(function(g){var window=this;/*
 SPDX-License-Identifier: Apache-2.0
*/
/*

 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.io/license
*/
/*

 Copyright 2017 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
'use strict';var Bpb=function(a){a.mutedAutoplay=!1;a.endSeconds=NaN;a.limitedPlaybackDurationInSeconds=NaN;g.$S(a)},Cpb=function(){return{I:"svg",
X:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z"}}]}},
Dpb=function(a){var b=i5;
try{return i5=!1,a()}finally{i5=b}},Epb=function(a){var b=i5;
try{return i5=!0,a()}finally{i5=b}},Fpb=function(){},j5=function(a,b){for(;a.length>b;)a.pop()},Gpb=function(a){a=Array(a);
j5(a,0);return a},Hpb=function(a,b,c){if(null==c)a.removeAttribute(b);
else{var d=0===b.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===b.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":null;d?a.setAttributeNS(d,b,c):a.setAttribute(b,c)}},Jpb=function(a,b,c){a=a.style;
if("string"===typeof c)a.cssText=c;else{a.cssText="";for(var d in c)if(Ipb.call(c,d)){b=a;var e=d,f=c[d];0<=e.indexOf("-")?b.setProperty(e,f):b[e]=f}}},Kpb=function(a,b,c){var d=typeof c;
"object"===d||"function"===d?a[b]=c:Hpb(a,b,c)},Lpb=function(){var a=new Fpb;
a.__default=Kpb;a.style=Jpb;return a},Mpb=function(a,b,c,d){(d[b]||d.__default)(a,b,c)},Npb=function(a){this.created=[];
this.j=[];this.node=a},Opb=function(a,b){this.j=null;
this.B=a;this.key=b;this.text=void 0},Ppb=function(a,b,c){b=new Opb(b,c);
return a.__incrementalDOMData=b},k5=function(a,b){if(a.__incrementalDOMData)return a.__incrementalDOMData;
var c=1===a.nodeType?a.localName:a.nodeName,d=1===a.nodeType?a.getAttribute("key"):null;b=Ppb(a,c,1===a.nodeType?d||b:null);if(1===a.nodeType&&(a=a.attributes,c=a.length)){d=b.j||(b.j=Gpb(2*c));for(var e=0,f=0;e<c;e+=1,f+=2){var h=a[e],l=h.value;d[f]=h.name;d[f+1]=l}}return b},Qpb=function(a,b,c,d,e){return b==c&&d==e},o5=function(a){for(var b=l5,c=m5();c!==a;){var d=c.nextSibling;
b.removeChild(c);n5.j.push(c);c=d}},m5=function(){return p5?p5.nextSibling:l5.firstChild},Rpb=function(a,b){p5=m5();
var c;a:{if(c=p5){do{var d=c,e=a,f=b,h=k5(d,f);if(q5(d,e,h.B,f,h.key))break a}while(b&&(c=c.nextSibling))}c=null}c||("#text"===a?(a=r5.createTextNode(""),Ppb(a,"#text",null)):(c=r5,d=l5,"function"===typeof a?c=new a:c=(d="svg"===a?"http://www.w3.org/2000/svg":"math"===a?"http://www.w3.org/1998/Math/MathML":null==d||"foreignObject"===k5(d).B?null:d.namespaceURI)?c.createElementNS(d,a):c.createElement(a),Ppb(c,a,b),a=c),n5.created.push(a),c=a);a=c;if(a!==p5){if(0<=s5.indexOf(a))for(b=l5,c=a.nextSibling,
d=p5;null!==d&&d!==a;)e=d.nextSibling,b.insertBefore(d,c),d=e;else l5.insertBefore(a,p5);p5=a}},Spb=function(a,b){Rpb(a,b);
l5=p5;p5=null;return l5},Upb=function(a,b){b=void 0===b?{}:b;
var c=void 0===b.matches?Qpb:b.matches;return function(d,e,f){var h=n5,l=r5,m=s5,n=t5,p=p5,q=l5,r=q5;r5=d.ownerDocument;n5=new Npb(d);q5=c;t5=[];p5=null;var t=l5=d.parentNode,v,x=Tpb.call(d);if((v=11===x.nodeType||9===x.nodeType?x.activeElement:null)&&d.contains(v)){for(x=[];v!==t;)x.push(v),v=v.parentNode||(t?v.host:null);t=x}else t=[];s5=t;try{return a(d,e,f)}finally{d=n5,u5&&0<d.j.length&&u5(d.j),r5=l,n5=h,q5=r,t5=n,p5=p,l5=q,s5=m}}},Vpb=function(a,b,c,d){v5.push(Mpb);
v5.push(a);v5.push(b);v5.push(c);v5.push(d)},Wpb=function(a){Rpb("#text",null);
var b=p5;var c=k5(b);if(c.text!==a){c=c.text=a;for(var d=1;d<arguments.length;d+=1)c=(0,arguments[d])(c);b.data!==c&&(b.data=c)}},x5=function(a,b){var c=w5;
w5=a;try{return b()}finally{w5=c}},Xpb=function(a,b){return Object.is(a,b)},y5=function(a){var b=Ypb;
Ypb=a;return b},Zpb=function(a){a.Xl=!0;
if(void 0!==a.qk){var b=z5;z5=!0;try{for(var c=g.u(a.qk),d=c.next();!d.done;d=c.next()){var e=d.value;e.Xl||Zpb(e)}}finally{z5=b}}var f;null==(f=a.aW)||f.call(a,a)},$pb=function(a){a&&(a.WP=0);
return y5(a)},cqb=function(a,b){y5(b);
if(a&&void 0!==a.Dk&&void 0!==a.yr&&void 0!==a.aB){if(aqb(a))for(b=a.WP;b<a.Dk.length;b++)bqb(a.Dk[b],a.yr[b]);for(;a.Dk.length>a.WP;)a.Dk.pop(),a.aB.pop(),a.yr.pop()}},dqb=function(a){A5(a);
for(var b=0;b<a.Dk.length;b++){var c=a.Dk[b],d=a.aB[b];if(d!==c.version)return!0;if(!aqb(c)||c.Xl)if(c.Xl||1!==c.pY)(c.q_(c)||dqb(c))&&c.r_(c),c.Xl=!1,c.pY=1;if(d!==c.version)return!0}return!1},bqb=function(a,b){null!=a.qk||(a.qk=[]);
null!=a.pw||(a.pw=[]);A5(a);if(1===a.qk.length)for(var c=0;c<a.Dk.length;c++)bqb(a.Dk[c],a.yr[c]);c=a.qk.length-1;a.qk[b]=a.qk[c];a.pw[b]=a.pw[c];a.qk.length--;a.pw.length--;b<a.qk.length&&(c=a.pw[b],a=a.qk[b],A5(a),a.yr[c]=b)},aqb=function(a){var b,c;
return a.ZV||0<(null!=(c=null==a?void 0:null==(b=a.qk)?void 0:b.length)?c:0)},A5=function(a){null!=a.Dk||(a.Dk=[]);
null!=a.yr||(a.yr=[]);null!=a.aB||(a.aB=[])},hqb=function(a,b,c){function d(f){e.Sy=f}
var e=Object.create(eqb);c&&(e.mN=!0);e.Ls=a;e.schedule=b;a={};e.eB=(a.notify=function(){return Zpb(e)},a.HF=function(){if(null!==e.Ls){if(z5)throw Error("Schedulers cannot synchronously execute watches while scheduling.");
e.Xl=!1;if(!e.MX||dqb(e)){e.MX=!0;var f=$pb(e);try{e.Sy(),e.Sy=fqb,e.Ls(d)}finally{cqb(e,f)}}}},a.Slb=function(){return e.Sy()},a.destroy=function(){if(null!==e.Ls||null!==e.schedule){A5(e);
if(aqb(e))for(var f=0;f<e.Dk.length;f++)bqb(e.Dk[f],e.yr[f]);e.Dk.length=e.aB.length=e.yr.length=0;e.qk&&(e.qk.length=e.pw.length=0);e.Sy();e.Ls=null;e.schedule=null;e.Sy=fqb}},a[gqb]=e,a);
return e.eB},fqb=function(){},iqb=function(a){return Object.create(Object.assign({},B5,{mN:a}))},C5=function(a,b){a=y5(a);
try{return b()}finally{y5(a)}},D5=function(a){var b=!!w5,c=jqb(void 0===b?!0:b);
x5(c,function(){return void a(c)});
return function(){return void kqb(c)}},jqb=function(a){var b={};
(void 0===a||a)&&lqb(b);return b},lqb=function(a){var b=w5;
b&&!b.isDisposed&&(b.YE||(b.YE=[]),b.YE.push(a))},nqb=function(a){var b;
null==(b=a.YE)||b.forEach(kqb);a.YE&&(a.YE=[]);a.SC&&(C5(mqb,function(){for(var c=g.u(a.SC),d=c.next();!d.done;d=c.next())d=d.value,d()}),a.SC=[])},kqb=function(a){if(!a.isDisposed){a.isDisposed=!0;
var b;null==(b=a.a$)||b.call(a);nqb(a)}},pqb=function(a){var b=w5;
b&&b!==oqb&&(b.SC||(b.SC=[]),b.SC.push(a))},E5=function(a){this.props=a;
this.C=!1},qqb=function(){if(i5)throw Error("Reactive components are not allowed to use useState or other memoization based hooks.");
return F5},G5=function(a){E5.call(this,a);
var b=this;this.Lz=[];this.D=0;this.G=D5(function(c){b.DH=c;pqb(function(){rqb(b,b.el)})})},rqb=function(a,b){if(!a.C&&b){a.C=!0;
try{a.xH()}catch(e){var c,d;null==(d=H5.SD)||d.call(H5,null==(c=a.j)?void 0:c.Nu,e)}I5.xH(a);a.el=null;b.__instance&&delete b.__instance}},sqb=function(a){if(a){var b;
null==(b=a._disposeRef)||b.call(a);var c;null==(c=a._disposeEffects)||c.call(a);a.__instance&&(b=a.__instance,rqb(b,a),b instanceof G5&&b.G());for(b=0;b<a.childNodes.length;b++)sqb(a.childNodes[b])}},uqb=function(a){1===tqb.push(a)&&requestAnimationFrame(function(){setTimeout(function(){var b=[].concat(g.pa(tqb));
tqb=[];b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;try{for(var d=0;d<c.length;d++)sqb(c[d])}catch(e){d=c=void 0,null==(d=(c=H5).SD)||d.call(c,"unknown",e)}}})})},vqb=function(a,b){var c=g.Ia.apply(2,arguments),d;
b=null!=(d=b)?d:{};return{type:a,props:b,children:c}},wqb=function(a){return a.children},K5=function(a,b){return J5.apply(null,[a,
b].concat(g.pa(g.Ia.apply(2,arguments))))},L5=function(a,b){var c=J5;
J5=a;try{return b()}finally{J5=c}},xqb=function(a){Dpb(function(){return L5(vqb,a)})},M5=function(a){a=document.createTextNode(String(a));
a._isSignalTextNode=!0;return a},N5=function(a){a=typeof a;
return"string"===a||"number"===a||"boolean"===a},O5=function(a){return a instanceof g.be||a instanceof g.ge||a instanceof g.me||!1},yqb=function(a,b){a.parentElement&&a.parentElement.replaceChild(b,a);
return b},zqb=function(a,b){a.textContent!==String(b)&&(a.textContent=String(b));
return a},P5=function(a,b){var c=a[0].parentElement;
if(c)if(a[0].previousSibling||a[a.length-1].nextSibling){c.insertBefore(b,a[0]);for(var d=a.length-1;0<=d;d--)c.removeChild(a[d])}else c.textContent="",c.appendChild(b);return b},Aqb=function(a,b){if(a[0].parentElement)for(var c=a[0].parentElement,d=b.length,e=a.length,f=d,h=0,l=0,m=a[e-1].nextSibling,n=null;h<e||l<f;)if(a[h]===b[l])h++,l++;
else{for(;a[e-1]===b[f-1];)e--,f--;if(e===h)for(var p=f<d?l?b[l-1].nextSibling:b[f-l]:m;l<f;)c.insertBefore(b[l++],p);else if(f===l)for(;h<e;)n&&n.has(a[h])||c.removeChild(a[h]),h++;else if(a[h]===b[f-1]&&b[l]===a[e-1])p=a[--e].nextSibling,c.insertBefore(b[l++],a[h++].nextSibling),c.insertBefore(b[--f],p),a[e]=b[f];else{if(!n)for(n=new Map,p=l;p<f;)n.set(b[p],p++);p=n.get(a[h]);if(null==p)c.removeChild(a[h]),h++;else if(l<p&&p<f){for(var q=h,r=1,t=void 0;++q<e&&q<f&&null!=(t=n.get(a[q]))&&t===p+r;)r++;
if(r>p-l)for(q=a[h];l<p;)c.insertBefore(b[l++],q);else c.replaceChild(b[l++],a[h++])}else h++}}return b},Q5=function(a){return g.bb(a)?"nodeType"in a:!1},Cqb=function(a){a.isDisposed||Bqb.add(a)},Dqb=function(a){a.isDisposed||(R5.add(a),1===R5.size&&Promise.resolve().then(function(){for(var b=g.u(R5),c=b.next();!c.done;c=b.next())c=c.value,R5.delete(c),c.HF()}))},Eqb=function(a,b,c){var d=hqb(function(){var e=d;
e.isDisposed||(nqb(e),x5(e,b))},a,void 0===c?!1:c);
lqb(d);d.a$=function(){d.destroy();Bqb.delete(d);kqb(d)};
return d},Fqb=function(a){Eqb(Cqb,a).HF()},Gqb=function(a){Eqb(Cqb,a,!0).HF()},Iqb=function(a){var b=[];
({}.Mlb?Gqb:Fqb)(function(){var c=b[0],d=b.Bq,e=L5(S5,a);c=Hqb(c,e,b);Array.isArray(c)||(b.Bq=[c]);e=b.Bq;if(d){d=Array.isArray(d)?d[0]:d;var f=d[T5],h=d._disposeEffects;d._disposeEffects=void 0;d=Array.isArray(e)?e[0]:e;d[T5]=f;d[T5]&&(d[T5].fZ=d===e?1:e.length);d._disposeEffects=h}b[0]=c});
return b},Hqb=function(a,b,c){for(;"function"===typeof b;)b=b();
if(null==b?0:b.type){var d;throw Error("Encountered a VNode when only real nodes are expected. Tag name: "+(null==(d=b.type)?void 0:d.Nu));}if(null==a)return null==b?document.createTextNode(""):N5(b)?M5(b):O5(b)?M5(b.toString()):Q5(b)?b:0===b.length?document.createTextNode(""):Jqb(b,c);if(Q5(a)){if(null==b)return yqb(a,document.createTextNode(""));if(N5(b))return zqb(a,b);if(O5(b))return zqb(a,b.toString());if(Q5(b))return yqb(a,b);if(0===b.length)return yqb(a,document.createTextNode(""));b=Jqb(b,
c);Aqb([a],c.Bq);return b}a=Kqb(a);if(null==b)return P5(a,document.createTextNode(""));if(N5(b))return P5(a,M5(b));if(O5(b))return P5(a,M5(b.toString()));if(Q5(b))return Aqb(a,[b])[0];if(0===b.length)return P5(a,document.createTextNode(""));b=Jqb(b,c);Aqb(a,c.Bq);return b},Kqb=function(a,b){b=void 0===b?[]:b;
return U5(a,b)},Jqb=function(a,b){b.Bq=U5(a,[],!0);
return a},U5=function(a,b,c,d,e){b=void 0===b?[]:b;
c=void 0===c?!1:c;e=void 0===e?-1:e;if(null==a)return b;N5(a)&&(a=M5(a),d&&c&&(d[e]=a));O5(a)&&(a=M5(a.toString()),d&&c&&(d[e]=a));if(Q5(a))return Lqb(b,a);if(Array.isArray(a)){for(d=0;d<a.length;d++)U5(a[d],b,c,a,d);return b}if("function"===typeof a)return a=Iqb(a)[0],d&&c&&(d[e]=a),Lqb(b,a);if(null==a?0:a.type){var f=a;a=L5(S5,function(){return K5.apply(null,[f.type,f.props].concat(g.pa(f.children)))});
return U5(a,b,c)}throw Error("Unrecognized JSXResult type in flattening.");},Lqb=function(a,b){Array.isArray(a)?a.push(b):a.appendChild(b);
return a},Nqb=function(a,b){var c,d,e=D5(function(n){d=n;
c=L5(S5,function(){return Epb(function(){return C5(Mqb,function(){return a(b)})})})}),f=null!=c&&c.Bq?c.Bq:c,h=Array.isArray(f)?f[0]:f,l,m=null!=(l=null==b?void 0:b.idomKey)?l:a;
l=a.Y0;h._disposeEffects=e;e=h[T5]||{};Object.assign(e,{key:m,props:l?b:void 0,fZ:f!==h?f.length:1,owner:d,k8:!!h[T5]});h[T5]=e;x5(d,function(){});
return c},Qqb=function(a,b,c){if(Object.hasOwnProperty.call(Oqb,a)&&(a=Oqb[a],Object.hasOwnProperty.call(a,b)&&(a=a[b],a instanceof Array))){for(var d=null,e=!1,f=0,h=a.length;f<h;++f){var l=a[f],m=l.zi;
if(!m)return l.Gd;null===d&&(d={});m=Object.hasOwnProperty.call(d,m)?d[m]:d[m]=c(m);if(m===l.Qi)return l.Gd;null==m&&(e=!0)}if(e)return null}b=Pqb[b];return"number"===typeof b?b:null},Sqb=function(a,b,c){if(null===c||void 0===c)return c;
var d=Qqb(a.tagName.toLowerCase(),b,function(){throw Error("Contingent attribute/property lookups are not supported.");});
if(null===d)return c;d=Rqb[d];var e;if(null==(e=d.At)?0:e.call(d,c)){if(d.Sr)return d.Sr(c);throw Error("Value Handler's unwrap function does not exist.");}return d.Aq?d.Aq(a.tagName,b,String(c)):c},Tqb=function(a,b){var c=V5;
null==a._disposeEffects&&null!=a._signalProps&&(a._disposeEffects=D5(function(){Fqb(function(){for(var d=a._signalProps,e=a._signalValues,f=0;f<d.length;f++){var h=d[f],l=b[h]();e[f]!==l&&(e[f]=l,c(a,h,l))}})}))},Uqb=function(a,b){a._disposeEffects=D5(function(){a._isSignalTextNode=!0;
Fqb(function(){var c=b();null==c&&(c="");var d=typeof c;if("object"===d||"function"===d)throw Error("Invalid text node kind: "+d+". Text nodes must be primitives like numbers, strings, or null, but an object type was passed. See go/cow-errors#invalid-text-nodes for more information.");a.textContent=String(c)})})},V5=function(a,b,c){if(!1===c&&Vqb.has(b))Hpb(a,b,null);
else if("idomKey"!==b&&"skip"!==b&&"skipchildren"!==b&&"children"!==b&&"el"!==b)if(b.startsWith("on"))if(":"===b[2]){var d=c.f7(0),e=b.slice(3);if(i5)a.addEventListener(e,d),pqb(function(){return void a.removeEventListener(e,d)});
else{if(Wqb.includes(e))throw Error("The on:"+e+" attribute is not supported in an IDOM component because Element#on"+(e+" is not a valid property."));a["on"+e]=d}}else Xqb(a,b,c);else"function"!==typeof c||null!=a._disposeEffects?(H5.z6&&(c=Sqb(a,b,c)),"style"===b?Yqb(a,b,c):b.startsWith("prop:")?a[b.slice(5)]=c:Xqb(a,b,c)):(a._signalProps||(a._signalProps=[]),a._signalValues||(a._signalValues=[]),a._signalProps.push(b))},Zqb=function(a,b,c){c=(void 0===c?{}:c).kP;
if(null==b?0:b.el){var d=b.el;if("function"===typeof d)d(a);else{var e;null==(e=d.daa)||e.call(d,a);a._disposeRef||(a._disposeRef=function(){var f;null==(f=d.Zaa)||f.call(d);delete a._disposeRef},c&&pqb(function(){var f;
return void(null==(f=a._disposeRef)?void 0:f.call(a))}))}}},brb=function(a,b){var c=g.Ia.apply(2,arguments);
if(a===wqb)return c;if("function"===typeof a){var d=b;0<c.length&&(null!=d||(d={}),1===c.length?d.children=c[0]:d.children=c);c=$qb(a,d);!1===c&&(c=arb(a,d));return c}d=document.createElement(a);for(var e in b)V5(d,e,b[e]);Tqb(d,b);Kqb(c,d);Zqb(d,b,{kP:!0});return d},$qb=function(a,b){if(a.qnb||a.kP)return!1;
b||(b={});var c=new G5(b);c.B=a;var d=Dpb(function(){return C5(Mqb,function(){return c.lx(b)})});
if(!(d instanceof HTMLElement))return d;d.__instance=c;c.el=d;c.j=a;a.Nu=d.tagName.toLowerCase();I5.ZC(c);return d},crb=function(a){a=Eqb(Dqb,a);
Dqb(a)},erb=function(a){crb(function(){C5(drb,a)})},frb=function(a){var b=y5(drb);
try{return C5(drb,a)}finally{y5(b)}},grb=function(a){var b=null,c;
return{value:null,daa:function(d){if(c&&d!==c){var e;null==(e=b)||e();c._disposeRef=void 0}c=d;b=a(d)||null},
Zaa:function(){var d;null==(d=b)||d()}}},hrb=function(a){var b=qqb();
if(null==b)throw Error("A valid hook context was not found. Please ensure you are using components from TSX and not invoking the component function directly");var c=b.D++;b.Lz||(b.Lz=[]);var d=b.Lz;d[c]||(d[c]={key:a,host:b});if(a!==d[c].key){var e,f;a=(null==(e=b.j)?void 0:e.name)||(null==(f=b.B)?void 0:f.name);throw Error("Hook called out of order in "+a+". Hooks must be invoked unconditionally and in the same order every render. This could happen if you conditionally invoke a hook.");}return d[c]},
irb=function(a,b){return!a||a.length!==(null==b?void 0:b.length)||a.some(function(c,d){return c!==b[d]})},jrb=function(a,b){var c=hrb("onChange"),d=qqb();
irb(c.fh,b)&&(c.fh=b,c.WZ=a,d.Hy||(d.Hy=[]),d.Hy.push(c))},W5=function(a,b){jrb(function(){return frb(a)},b)},krb=function(a){i5?erb(a):jrb(function(){return Dpb(function(){return frb(a)})},[])},mrb=function(a){var b=[].concat(g.pa(a));
a.length=0;a=g.u(b);for(b=a.next();!b.done;b=a.next()){b=b.value;lrb(b);var c=b.WZ;b.WZ=null;if(c=null==c?void 0:c())b.VZ=c}},lrb=function(a){var b=a.VZ;
a.VZ=null;null==b||b()},X5=function(a){var b=[];
if(i5)return a();var c=hrb("useMemoInternal");irb(c.fh,b)&&(c.fh=b,c.value=a());return c.value},Y5=function(){var a=X5(function(){return grb(function(b){a.value=b;
return function(){a.value=null}})});
return a},nrb=function(a){var b=w5;
return{f7:function(){return function(c){b.isDisposed||!0!==a(c)&&c.stopPropagation()}}}},orb=function(a){if("function"===typeof a.children)return a.children(),null;
a=g.u(a.children);for(var b=a.next();!b.done;b=a.next())b=b.value,b();return null},rrb=function(a,b,c){((void 0===c?0:c)?prb:qrb)(a,function(){Z5(b)})},Z5=function(a){if(void 0!==a&&null!==a)if(Array.isArray(a)){a=g.u(a);
for(var b=a.next();!b.done;b=a.next())Z5(b.value)}else if(a instanceof g.be||a instanceof g.ge||a instanceof g.me)Wpb(a.toString());else if(Q5(a)){if(m5()!==a)throw Error("Encountered a real dom node where a vdom node was expected. Real dom nodes should only come from the reactive renderer, and they can't be passed in JSX expressions directly. Tag name: "+a.tagName);p5=m5()}else{var c=typeof a;if("boolean"===c||"number"===c||"string"===c)Wpb(a);else if("function"===typeof a){b=l5;var d=m5();if(!d||
!d._isSignalTextNode){var e=b.insertBefore,f=document.createTextNode("");Uqb(f,a);e.call(b,f,d)}p5=m5()}else{if("string"===typeof a.type){a.rq||Spb(a.type,a.props.idomKey);d=l5;for(var h in a.props)a.props[h]!==srb&&(e=a.props[h],f=t5,f.push(h),f.push(e));e=H5.attributes;e=void 0===e?trb:e;f=l5;var l=k5(f),m=e;e=t5;l=l.j||(l.j=Gpb(e.length));for(var n=!l.length||!1,p=0;p<e.length;p+=2){h=e[p];if(n)l[p]=h;else if(l[p]!==h)break;var q=e[p+1];if(n||l[p+1]!==q)l[p+1]=q,Vpb(f,h,q,m)}if(p<e.length||p<l.length){for(p=
n=p;p<l.length;p+=2)$5[l[p]]=l[p+1];for(p=n;p<e.length;p+=2)n=e[p],h=e[p+1],$5[n]!==h&&Vpb(f,n,h,m),l[p]=n,l[p+1]=h,delete $5[n];j5(l,e.length);for(b in $5)Vpb(f,b,void 0,m),delete $5[b]}b=urb;urb=f=v5.length;for(m=b;m<f;m+=5)(0,v5[m])(v5[m+1],v5[m+2],v5[m+3],v5[m+4]);urb=b;j5(v5,b);j5(e,0);Tqb(d,a.props);(a.props.skip||a.props.skipchildren)&&l5.hasChildNodes()?p5=l5.lastChild:Z5(a.children);o5(null);p5=l5;l5=l5.parentNode;a.rq&&(a.rq=!1);Zqb(d,a.props);return d}if(a.type===wqb)Z5(a.children);else if(!vrb(a)){try{f=
a.type;var r=f.Nu;if(f===orb)a.props.children=a.children,f(a.props);else{0<a.children.length&&(a.props.children=a.children);var t;(t=a.props).idomKey||(t.idomKey=f);b=!1;if(r){var v=Spb(r,a.props.idomKey);a.rq=!0;m=v.__instance}if(!m){b=!0;var x=a.props,A;if(void 0===(null==(A=f.prototype)?void 0:A.lx)){var E=new G5(x);E.B=f}else E=new f(x);E.j=f;E.sM={XP:E.state,fP:!1};m=E;m.props=null;v&&(v.__instance=m,m.el=v)}var F,G=null!=(F=m.sM)?F:{XP:m.state,fP:!1},M=G.fP,P=G.XP;m.sM=void 0;f.c7&&(P=f.c7(a.props,
P));b=!b&&!M&&!1;m.props=a.props;m.state=P;if(b)p5=l5.lastChild;else{b=m;I5.CV(b);var R=b.lx(b.props);R?(b.props.idomKey&&(R.props.idomKey=b.props.idomKey),q=R):q=void 0;if(b=q)if(b.rq=a.rq,l=Z5(b),a.rq=b.rq,!f.Nu)if(l)f.Nu=l.tagName.toLowerCase(),l.__instance=m,m.el=l;else if(null==(p=m.Lz)?0:p.length)null==(n=H5.SD)||n.call(H5,"unknown",Error("A component used hooks, but failed to return a host element"));m.ZC();I5.ZC(m)}}}catch(ba){b=ba,null==(e=H5.SD)||e.call(H5,null==(d=a.type)?void 0:d.Nu,b)}a.rq&&
(o5(null),p5=l5,l5=l5.parentNode,a.rq=!1)}}}},vrb=function(a){var b=a.type;
if(!b.kP)return!1;a.props.children=1<a.children.length?a.children:a.children[0];var c,d=null!=(c=a.props.idomKey)?c:a.type,e;if(m5()&&(null==(e=m5()[T5])?void 0:e.key)===d){d=m5();c=d[T5];if(!c)throw Error("Reactive data has been lost on node. Tag name: "+d.tagName);if(!b.Y0){for(b=0;b<c.fZ;b++)p5=m5();var f;null==(f=c.Qob)||f.call(c,a.props);return!0}f=w5;b=b.Y0(a.props,c.props,null!==f?f:c.owner,c.k8);a=a.props;if(c=c.props)c.children=a.children,c.y6=a.y6,c.fallback=a.fallback;Z5(b);return!0}a=
Nqb(a.type,a.props);a=null!=a&&a.Bq?a.Bq:a;a=Array.isArray(a)?a:[a];a=g.u(a);for(b=a.next();!b.done;b=a.next())l5.insertBefore(b.value,m5()),p5=m5();return!0},wrb=function(a){var b=qqb(),c=X5(function(){return{value:"function"===typeof a?a():a}});
return[c.value,function(d){if(null!==F5)throw Error("Can't set state during rendering");c.value="function"===typeof d?d(c.value):d;b.sM={XP:b.state,fP:!0};x5(b.DH,function(){xqb(function(){if(b.el){var e,f={props:b.props,type:b.j,children:null!=(e=b.props.children)?e:[]};try{rrb(b.el,f,!0)}catch(m){var h,l;null==(l=H5.SD)||l.call(H5,null==(h=b.j)?void 0:h.Nu,m)}}})})}]},xrb=function(){return X5(function(){return{value:null}})},Brb=function(a){var b=yrb;
zrb.push(a);Arb||(b(function(){for(var c=g.u(zrb),d=c.next();!d.done;d=c.next())d=d.value,d();zrb.length=0;Arb=!1}),Arb=!0)},yrb=function(a){Promise.resolve().then(a)},Crb=function(a){a=g.u(wrb(a));
var b=a.next().value,c=a.next().value;return[b,function(d){Brb(function(){c(d)})}]},Drb=function(a){function b(){var l=a.J.kd()?"\u0421\u043a\u0440\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e Shorts":"\u0421\u043a\u0440\u044b\u0442\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438";
e(l)}
var c=g.u(wrb("\u0421\u043a\u0440\u044b\u0442\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438")),d=c.next().value,e=c.next().value;W5(function(){var l=a.J;l.addEventListener("videodatachange",b);return function(){l.removeEventListener("videodatachange",b)}},[a.J]);
var f=X5(function(){return(new g.RF(g.dG())).element}),h=Y5();
krb(function(){h.value.appendChild(f)});
return K5("button",{class:"ytp-button ytp-collapse","aria-label":d,"on:click":nrb(function(){a.action&&a.action()})},K5("div",{class:"ytp-collapse-icon",
el:h,skip:!0}))},Erb=function(a){function b(){var h=a.J.kd()?"\u0415\u0449\u0451 \u0432\u0438\u0434\u0435\u043e Shorts":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e";
e(h)}
var c=g.u(Crb("\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e")),d=c.next().value,e=c.next().value,f=Y5();W5(function(){a.eB&&(a.eB.value=f.value)},[a.eB]);
W5(function(){var h=a.J;h.addEventListener("videodatachange",b);return function(){h.removeEventListener("videodatachange",b)}},[a.J]);
return K5("button",{el:f,class:"ytp-button ytp-expand","on:click":nrb(function(){a.action&&a.action()})},d)},Frb=function(a,b){var c=xrb();
W5(function(){var d=new g.p2(a);d.B=!0;c.value=d;return function(){var e;null==(e=c.value)||e.dispose()}},[a,
b]);return c},Grb=function(a){function b(x){a:{var A=g.u([1,
16,32]);for(var E=A.next();!E.done;E=A.next())if(g.JG(x,E.value)){A=!0;break a}A=!1}if(!A){var F;null!=(F=p.value)&&F.WD()&&h(g.JG(x,4)&&!g.JG(x,2)&&!g.JG(x,1024))}}
function c(){b(a.J.Xb())}
function d(x){b(x.state)}
var e=g.u(Crb(!1)),f=e.next().value,h=e.next().value,l=g.u(Crb(!1));e=l.next().value;var m=l.next().value,n=Y5(),p=Frb(a.J,a.Ze),q=Y5();l=xrb();var r=xrb();W5(function(){var x=a.J,A=x.kd()?157212:172777;r.value=new g.I;x.createClientVe(q.value,r.value,A);x.addEventListener("presentingplayerstatechange",d);x.addEventListener("videodatachange",c);A="0"===x.U().controlsType;g.bv(x.getRootNode(),"ytp-pause-overlay-controls-hidden",A);return function(){x.removeEventListener("videodatachange",c);x.removeEventListener("presentingplayerstatechange",
d);var E;null==(E=r.value)||E.dispose()}},[a.J]);
W5(function(){var x;null==(x=p.value)||x.Ja(n.value)},[p]);
var t=a.J;if(f)if(g.bv(t.getRootNode(),"ytp-expand-pause-overlay",!e),e)l.value.focus();else{var v=p.value;g.q2(v);v.show();q.value.focus()}q.value&&t.logVisibility(q.value,f&&!e);return K5("ytp-pause-overlay",{el:q,class:"ytp-pause-overlay","aria-hidden":!f},K5(Drb,{J:a.J,Ze:a.Ze,action:function(){m(!0)}}),K5(Erb,{J:a.J,
Ze:a.Ze,action:function(){m(!1)},
eB:l}),K5("div",{el:n,skip:!0}))},Hrb=function(a){g.V.call(this,{I:"div",
S:"ytp-related-on-error-overlay"});var b=this;this.api=a;this.K=this.B=0;this.G=new g.IK(this);this.j=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.V({I:"h2",S:"ytp-related-title",ya:"{{title}}"});this.previous=new g.V({I:"button",La:["ytp-button","ytp-previous"],X:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438"},V:[g.$F()]});
this.ma=new g.o2(function(f){b.suggestions.element.scrollLeft=-f});
this.D=this.C=0;this.N=!0;this.next=new g.V({I:"button",La:["ytp-button","ytp-next"],X:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438"},V:[g.aG()]});g.N(this,this.G);a=a.U();this.api.L("embeds_web_enable_pause_overlay_rounding")&&g.Yu(this.element,"ytp-error-overlay-round-corners");this.Y=a.D;g.N(this,this.title);this.title.Ja(this.element);this.suggestions=
new g.V({I:"div",S:"ytp-suggestions"});g.N(this,this.suggestions);this.suggestions.Ja(this.element);g.N(this,this.previous);this.previous.Ja(this.element);this.previous.Ta("click",this.E2,this);g.N(this,this.ma);for(var c={Pz:0};16>c.Pz;c={Pz:c.Pz},c.Pz++){var d=new g.V({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image",V:[{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",ya:"{{duration}}"}]},{I:"div",
S:"ytp-suggestion-title",X:{title:"{{hover_title}}"},ya:"{{title}}"},{I:"div",S:"ytp-suggestion-author",ya:"{{views_or_author}}"}]});g.N(this,d);d.Ja(this.suggestions.element);var e=d.Ga("ytp-suggestion-link");g.ks(e,"transitionDelay",c.Pz/20+"s");this.G.T(e,"click",function(f){return function(h){var l=f.Pz,m=b.suggestionData[l],n=m.sessionData;g.UR(b.api.U())&&b.api.L("web_player_log_click_before_generating_ve_conversion_params")?(b.api.logClick(b.j[l].element),l=m.Tk(),m={},g.nUa(b.api,m,"emb_rel_err"),
l=g.an(l,m),g.aV(l,b.api,h)):g.$U(h,b.api,b.Y,n||void 0)&&b.api.Ko(m.videoId,n,m.playlistId)}}(c));
this.j.push(d)}g.N(this,this.next);this.next.Ja(this.element);this.next.Ta("click",this.D2,this);this.G.T(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.qb().getPlayerSize());this.onVideoDataChange();this.show()},Irb=function(a,b){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var c=Math.floor(-a.C/(a.D+a.B)),d=Math.min(c+a.columns,a.suggestionData.length)-1;c<=d;c++)a.api.logVisibility(a.j[c].element,b)},Jrb=function(a){a.next.element.style.bottom=
a.K+"px";
a.previous.element.style.bottom=a.K+"px";var b=a.C,c=a.containerWidth-a.suggestionData.length*(a.D+a.B);g.bv(a.element,"ytp-scroll-min",0<=b);g.bv(a.element,"ytp-scroll-max",b<=c)},Krb=function(a){for(var b=0;b<a.suggestionData.length;b++){var c=a.suggestionData[b],d=a.j[b],e=c.shortViewCount?c.shortViewCount:c.author,f=c.Tk(),h=a.api.U();
if(g.UR(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var l={};g.WT(a.api,"addEmbedsConversionTrackingParams",[l]);f=g.an(f,g.pP(l,"emb_rel_err"))}d.element.style.display="";l=d.Ga("ytp-suggestion-title");g.nv.test(c.title)?l.dir="rtl":g.$hb.test(c.title)&&(l.dir="ltr");l=d.Ga("ytp-suggestion-author");g.nv.test(e)?l.dir="rtl":g.$hb.test(e)&&(l.dir="ltr");d.update({views_or_author:e,duration:c.isLivePlayback?"\u0412 \u044d\u0444\u0438\u0440\u0435":c.lengthSeconds?g.TG(c.lengthSeconds):
"",link:f,hover_title:c.title,title:c.title,aria_label:c.ariaLabel||null,is_live:c.isLivePlayback});e=d.Ga("ytp-suggestion-image");f=c.hh();e.style.backgroundImage=f?"url("+f+")":"";h.L("web_player_log_click_before_generating_ve_conversion_params")&&(a.api.createServerVe(d.element,d),(c=(c=c.sessionData)&&c.itct)&&a.api.setTrackingParams(d.element,c))}for(;b<a.j.length;b++)a.j[b].element.style.display="none";Jrb(a)},a6=function(a){g.lW.call(this,a);
var b=this;this.j=null;var c=a.U(),d={target:c.Y},e=["ytp-small-redirect"];c.C?e.push("no-link"):(c=g.rS(c),d.href=c,d["aria-label"]="\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430 YouTube \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u0435\u043e");var f=new g.V({I:"a",La:e,X:d,V:[{I:"svg",X:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0V0z",fill:"none"}},{I:"path",
X:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]}]});f.Ja(this.element);a.createClientVe(f.element,this,178053);this.T(f.element,"click",function(h){Lrb(b,h,f.element)});
g.N(this,f);a.U().C||(this.j=new Hrb(a),this.j.Ja(this.element),g.N(this,this.j));this.T(a,"videodatachange",function(){b.show()});
this.resize(this.api.qb().getPlayerSize())},Lrb=function(a,b,c){b.preventDefault();
a.api.logClick(c);b=c.getAttribute("href");c={};g.WT(a.api,"addEmbedsConversionTrackingParams",[c]);b=g.md(c)?b:g.an(b,c);g.Ue(b)},Mrb=function(a,b){a.Ga("ytp-error-content").style.paddingTop="0px";
var c=a.Ga("ytp-error-content"),d=c.clientHeight;a.j&&a.j.resize(b,b.height-d);c.style.paddingTop=(b.height-(a.j?a.j.element.clientHeight:0))/2-d/2+"px"},Prb=function(a,b){var c=a.api.U(),d;
b.reason&&(Nrb(b.reason)?d=g.ZF(b.reason):d=g.mW(g.YF(b.reason)),a.Ud(d,"content"));var e;b.subreason&&(Nrb(b.subreason)?e=g.ZF(b.subreason):e=g.mW(g.YF(b.subreason)),a.Ud(e,"subreason"));if(b.proceedButton&&b.proceedButton.buttonRenderer){d=a.Ga("ytp-error-content-wrap-subreason");b=b.proceedButton.buttonRenderer;var f=g.If("A");if(b.text&&b.text.simpleText&&(e=b.text.simpleText,f.textContent=e,!Orb(d,e)&&(!c.C||c.embedsErrorLinks))){var h;c=null==(h=g.U(null==b?void 0:b.navigationEndpoint,g.pG))?
void 0:h.url;var l;h=null==(l=g.U(null==b?void 0:b.navigationEndpoint,g.pG))?void 0:l.target;c&&(f.setAttribute("href",c),a.api.createClientVe(f,a,178424),a.T(f,"click",function(m){Lrb(a,m,f)}));
h&&f.setAttribute("target",h);l=g.If("DIV");l.appendChild(f);d.appendChild(l)}}},Nrb=function(a){if(a.runs)for(var b=0;b<a.runs.length;b++)if(a.runs[b].navigationEndpoint)return!0;
return!1},Orb=function(a,b){a=g.xf("A",a);
for(var c=0;c<a.length;c++)if(a[c].textContent===b)return!0;return!1},b6=function(a,b){g.V.call(this,{I:"a",
La:["ytp-impression-link"],X:{target:"{{target}}",href:"{{url}}","aria-label":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 YouTube"},V:[{I:"div",S:"ytp-impression-link-content",X:{"aria-hidden":"true"},V:[{I:"div",S:"ytp-impression-link-text",ya:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430"},{I:"div",S:"ytp-impression-link-logo",V:[Cpb()]}]}]});this.api=a;this.Ze=b;this.updateValue("target",a.U().Y);this.api.createClientVe(this.element,this,
96714);this.T(this.api,"presentingplayerstatechange",this.Ak);this.T(this.api,"videoplayerreset",this.j);this.T(this.element,"click",this.onClick);this.j()},Qrb=function(a){var b={};
g.WT(a.api,"addEmbedsConversionTrackingParams",[b]);return g.an(a.api.getVideoUrl(),g.pP(b,"emb_imp_woyt"))},c6=function(a){g.V.call(this,{I:"div",
La:["ytp-mobile-a11y-hidden-seek-button"],V:[{I:"button",La:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],X:{"aria-label":"\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0430\u0437\u0430\u0434","aria-hidden":"false"}},{I:"button",La:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],X:{"aria-label":"\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434 \u0432\u043f\u0435\u0440\u0435\u0434",
"aria-hidden":"false"}}]});this.api=a;this.j=this.Ga("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.Ga("ytp-mobile-a11y-hidden-seek-button-forward");this.api.createClientVe(this.j,this,141902);this.api.createClientVe(this.forwardButton,this,141903);this.T(this.api,"presentingplayerstatechange",this.Ak);this.T(this.j,"click",this.B);this.T(this.forwardButton,"click",this.C);this.Ak()},d6=function(a){g.V.call(this,{I:"div",
S:"ytp-muted-autoplay-endscreen-overlay",V:[{I:"div",S:"ytp-muted-autoplay-end-panel",V:[{I:"button",La:["ytp-muted-autoplay-end-text","ytp-button"],ya:"{{text}}"}]}]});this.api=a;this.D=this.Ga("ytp-muted-autoplay-end-panel");this.B=!1;this.api.createClientVe(this.element,this,52428);this.T(this.api,"presentingplayerstatechange",this.C);this.T(a,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.Ta("click",this.onClick);this.hide()},e6=function(a){var b=a.U();
g.V.call(this,{I:"a",La:["ytp-watermark","yt-uix-sessionlink"],X:{target:b.Y,href:"{{url}}","aria-label":g.aK("\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430\u00a0$WEBSITE",{WEBSITE:g.gS(b)}),"data-sessionlink":"feature=player-watermark"},V:[Cpb()]});this.api=a;this.j=null;this.B=!1;this.state=a.Xb();a.createClientVe(this.element,this,76758);this.T(a,"videodatachange",this.e1);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,
"presentingplayerstatechange",this.onStateChange);this.T(a,"appresize",this.Yb);this.Hc(this.state);this.onVideoDataChange();this.Yb(a.qb().getPlayerSize())},Trb=function(a){g.V.call(this,{I:"div",
S:"ytp-muted-autoplay-overlay",V:[{I:"div",S:"ytp-muted-autoplay-bottom-buttons",V:[{I:"button",La:["ytp-muted-autoplay-equalizer","ytp-button"],X:{"aria-label":"\u0418\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0431\u0435\u0437 \u0437\u0432\u0443\u043a\u0430"},V:[{I:"div",La:["ytp-muted-autoplay-equalizer-icon"],V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},V:[{I:"g",
X:{fill:"#fff"},V:[{I:"rect",S:"ytp-equalizer-bar-left",X:{height:"9",width:"4",x:"1",y:"7"}},{I:"rect",S:"ytp-equalizer-bar-middle",X:{height:"14",width:"4",x:"6",y:"2"}},{I:"rect",S:"ytp-equalizer-bar-right",X:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});var b=this;this.api=a;this.bottomButtons=this.Ga("ytp-muted-autoplay-bottom-buttons");this.Ga("ytp-muted-autoplay-equalizer");this.C=new g.Qu(this.j8,4E3,this);this.B=!1;a.createClientVe(this.element,this,39306);this.T(a,"presentingplayerstatechange",
this.GL);this.T(a,"onMutedAutoplayStarts",function(){Rrb(b);b.GL();Srb(b);b.B=!1});
this.T(a,"onAutoplayBlocked",this.onAutoplayBlocked);this.Ta("click",this.onClick);this.T(a,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();g.aU(a.app)&&(Rrb(this),this.GL(),Srb(this));g.N(this,this.C)},Srb=function(a){a.Jb&&a.j&&(a.j.show(),a.C.start())},Rrb=function(a){a.watermark||(a.watermark=new e6(a.api),g.N(a,a.watermark),a.watermark.Ja(a.bottomButtons,0),g.bv(a.watermark.element,"ytp-muted-autoplay-watermark",!0),a.j=new g.CG(a.watermark,0,!0,100),g.N(a,a.j))},f6=function(a){g.V.call(this,
{I:"div",
S:"ytp-pause-overlay",X:{tabIndex:"-1"}});var b=this;this.api=a;this.C=new g.IK(this);this.D=new g.CG(this,1E3,!1,100,function(){b.j.B=!1},function(){b.j.B=!0});
this.B=!1;this.expandButton=new g.V({I:"button",La:["ytp-button","ytp-expand"],ya:this.api.kd()?"\u0415\u0449\u0451 \u0432\u0438\u0434\u0435\u043e Shorts":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e"});"0"===a.U().controlsType&&g.Yu(a.getRootNode(),"ytp-pause-overlay-controls-hidden");this.api.L("embeds_web_enable_pause_overlay_rounding")&&g.Yu(this.element,"ytp-pause-overlay-round-corners");g.N(this,this.C);g.N(this,this.D);
var c=new g.V({I:"button",La:["ytp-button","ytp-collapse"],X:{"aria-label":this.api.kd()?"\u0421\u043a\u0440\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e Shorts":"\u0421\u043a\u0440\u044b\u0442\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438"},V:[{I:"div",S:"ytp-collapse-icon",V:[g.dG()]}]});g.N(this,c);c.Ja(this.element);c.Ta("click",this.G,this);g.N(this,this.expandButton);this.expandButton.Ja(this.element);this.expandButton.Ta("click",
this.K,this);this.j=new g.p2(a);g.N(this,this.j);this.j.B=!1;this.j.Ja(this.element);this.api.kd()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.C.T(this.api,"presentingplayerstatechange",this.Sa);this.C.T(this.api,"videodatachange",this.Sa);this.hide()},g6=function(a){g.V.call(this,{I:"div",
La:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-countdown-timer",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},V:[{I:"circle",S:"ytp-svg-countdown-timer-ring",X:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{I:"circle",S:"ytp-svg-countdown-timer-background",X:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3",
"stroke-width":"4",transform:"rotate(-90)"}}]},{I:"span",S:"ytp-countdown-timer-time",ya:"{{duration}}"}]}]});this.api=a;this.K=this.Ga("ytp-svg-countdown-timer-ring");this.j=null;this.D=this.C=0;this.B=!1;this.G=0;this.api.createClientVe(this.element,this,159628)},Vrb=function(a){a.j||(a.C=5E3,a.D=(0,g.pD)(),a.j=new g.Ou(function(){Urb(a)},null),Urb(a))},Urb=function(a){if(!a.B){var b=Math.min((0,g.pD)()-a.D,a.C);
var c=a.C-b;b=0===a.C?0:Math.max(c/a.C,0);c=Math.round(c/1E3);a.K.setAttribute("stroke-dashoffset",""+-211*(b+1));a.updateValue("duration",c);0>=b&&a.j?h6(a):a.j&&a.j.start()}},h6=function(a){a.j&&(a.j.dispose(),a.j=null,a.B=!1)},Xrb=function(a){g.RV.call(this,a);
this.J=a;this.j=new g.IK(this);this.B=null;this.N=!1;this.countdownTimer=null;this.Y=!1;Wrb(this);g.N(this,this.j);this.load()},Zrb=function(a){var b=g.sgb(a.J);
if(b!==a.Y&&(a.Y=b,a.G&&(a.G.dispose(),a.G=null),a.C&&(a.C.dispose(),a.C=null),a.D&&(a.D.dispose(),a.D=null),a.B&&(a.B.stop(),a.B.dispose(),a.B=null),b)){var c=g.cU(a.J);a.J.kd()&&(a.D=new g.V({I:"div",S:"ytp-pause-overlay-backdrop",X:{tabIndex:"-1"}}),g.N(a,a.D),g.oU(a.J,a.D.element,4),a.B=new g.CG(a.D,1E3,!1,100),g.N(a,a.B),a.D.hide());a.G=new g.V({I:"div",S:"ytp-pause-overlay-container",X:{tabIndex:"-1"}});g.N(a,a.G);a.J.L("embeds_web_enable_keto_pause_overlay")?(b=a.G.element,c=K5(Grb,{J:a.J,
Ze:c}),rrb(b,c,!1)):(a.C=new f6(a.J,c),g.N(a,a.C),a.C.Ja(a.G.element));g.oU(a.J,a.G.element,4);Yrb(a,a.J.Xb())}},Yrb=function(a,b){a.B&&(!g.JG(b,4)&&!g.JG(b,2)||g.JG(b,1024)?a.B.hide():a.B.show())},Wrb=function(a){var b=a.J;
a=!!b.kd();g.bv(b.getRootNode(),"ytp-shorts-mode",a);if(b=b.getVideoData())b.QU=a},i6=function(a,b){var c=a.J.U();
a={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:0===a.J.getCurrentTime()?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":0===a.J.getPlayerState()?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.Dfa(a.J.U().loaderUrl),eventType:b,youtubeHost:g.Vm(a.J.U().Ea)||""};a.embeddedPlayerMode=c.Ia;g.bD("embedsAdEvent",a)};var i5=!1;var Ipb=Object.prototype.hasOwnProperty;Fpb.prototype=Object.create(null);var trb=Lpb();var u5=null;var Tpb="undefined"!==typeof Node&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};var n5=null,p5=null,l5=null,r5=null,s5=[],q5=Qpb,t5=[],qrb=function(a){return Upb(function(b,c,d){l5=p5=b;p5=null;c(d);o5(null);p5=l5;l5=l5.parentNode;return b},a)}(),prb=function(a){return Upb(function(b,c,d){var e={nextSibling:b};
p5=e;c(d);l5&&o5(b.nextSibling);return e===p5?null:p5},a)}();var v5=[],urb=0;var $5=new Fpb;var H5={attributes:Lpb(),SD:function(a,b){throw b;},
z6:!0};var I5={Jlb:function(){},
Unb:function(){},
Nlb:function(){},
CV:function(){},
Klb:function(){},
o6:function(){},
ZC:function(){},
xH:function(){},
p6:function(){}};var w5=null;var Ypb=null,z5=!1,gqb=Symbol("SIGNAL"),B5={version:0,pY:0,Xl:!1,Dk:void 0,aB:void 0,yr:void 0,WP:0,qk:void 0,pw:void 0,mN:!1,ZV:!1,q_:function(){return!1},
r_:function(){},
aW:function(){},
Ylb:function(){}};var $rb=Symbol("UNSET"),asb=Symbol("COMPUTING"),bsb=Symbol("ERRORED");Object.assign({},B5,{value:$rb,Xl:!0,error:null,wW:Xpb,q_:function(a){return a.value===$rb||a.value===asb},
r_:function(a){if(a.value===asb)throw Error("Detected cycle in computations.");var b=a.value;a.value=asb;var c=$pb(a);try{var d=a.Wlb()}catch(e){d=bsb,a.error=e}finally{cqb(a,c)}b!==$rb&&b!==bsb&&d!==bsb&&a.wW(b,d)?a.value=b:(a.value=d,a.version++)}});Object.assign({},B5,{wW:Xpb,value:void 0});var eqb=Object.assign({},B5,{ZV:!0,mN:!1,aW:function(a){null!==a.schedule&&a.schedule(a.eB)},
MX:!1,Sy:fqb});var mqb=iqb(!1);var Mqb=iqb(!0);var oqb={};E5.prototype.ZC=function(){};
E5.prototype.o6=function(){};
E5.prototype.xH=function(){};
E5.prototype.p6=function(){};var F5=null;g.w(G5,E5);G5.prototype.lx=function(a){var b=this,c=F5;F5=this;this.D=0;try{return C5(Mqb,function(){return x5(b.DH,function(){return b.B(a)})})}finally{F5=c}};var tqb=[];(function(){var a=u5;u5=function(b){null==a||a(b);uqb(b)}})();
var J5=vqb;var S5;var srb=Symbol("ATTR_TAG_VALUE");var T5=Symbol("reactiveData");var Bqb=new Set,R5=new Set;var arb=Nqb;var Vqb=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var Pqb={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-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:3,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,
itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,poster:3,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:11,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},Oqb={a:{href:[{Gd:3}]},area:{href:[{Gd:3}]},audio:{src:[{Gd:3}]},button:{formaction:[{Gd:3}],
formmethod:[{Gd:1}]},form:{action:[{Gd:3}],method:[{Gd:1}]},iframe:{srcdoc:[{Gd:2}]},img:{src:[{Gd:3}]},input:{accept:[{Gd:1}],formaction:[{Gd:3}],formmethod:[{Gd:1}],pattern:[{Gd:1}],readonly:[{Gd:1}],src:[{Gd:3}]},link:{href:[{Gd:3,zi:"rel",Qi:"alternate"},{Gd:3,zi:"rel",Qi:"author"},{Gd:3,zi:"rel",Qi:"bookmark"},{Gd:3,zi:"rel",Qi:"canonical"},{Gd:3,zi:"rel",Qi:"cite"},{Gd:3,zi:"rel",Qi:"help"},{Gd:3,zi:"rel",Qi:"icon"},{Gd:3,zi:"rel",Qi:"license"},{Gd:3,zi:"rel",Qi:"next"},{Gd:3,zi:"rel",Qi:"prefetch"},
{Gd:3,zi:"rel",Qi:"dns-prefetch"},{Gd:3,zi:"rel",Qi:"prerender"},{Gd:3,zi:"rel",Qi:"preconnect"},{Gd:3,zi:"rel",Qi:"preload"},{Gd:3,zi:"rel",Qi:"prev"},{Gd:3,zi:"rel",Qi:"search"},{Gd:3,zi:"rel",Qi:"subresource"}]},script:{defer:[{Gd:1}]},source:{src:[{Gd:3}]},textarea:{readonly:[{Gd:1}]},video:{src:[{Gd:3}]}};g.Tv.getInstance();var csb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,j6={},Rqb=(j6[1]={Aq:null,At:null,Sr:null},j6[2]={Aq:function(){return g.xe.toString()},
At:function(a){return a instanceof g.oe},
Sr:function(a){return g.pe(a)}},j6[3]={Aq:function(a,b,c){return csb.test(c)?c:g.xe.toString()},
At:function(a){return a instanceof g.ge},
Sr:function(a){return g.ke(a)}},j6[4]={Aq:function(){return g.xe.toString()},
At:function(a){return a instanceof g.be},
Sr:function(a){return g.ee(a)}},j6[5]={Aq:null,
At:function(a){return a instanceof g.me},
Sr:function(a){return a.toString()}},j6[7]={Aq:null,
At:null,Sr:null},j6[8]={Aq:null,At:null,Sr:null},j6[10]={Aq:null,At:function(a){return a instanceof g.Zd},
Sr:function(a){return a.toString()}},j6);var dsb=Lpb(),Xqb=dsb.__default,Yqb=dsb.style,Wqb=["focusin","focusout"];var drb=iqb(!0);S5=brb;(function(a){var b={},c;for(c in a)b={j_:void 0,YY:void 0},b.j_=I5[c],b.YY=a[c],I5[c]=function(d){return function(){var e=g.Ia.apply(0,arguments);d.j_.apply(null,g.pa(e));d.YY.apply(null,g.pa(e))}}(b)})({CV:function(a){x5(a.DH,function(){var b;
(null==(b=a.Hy)?0:b.length)&&mrb(a.Hy)})},
ZC:function(a){x5(a.DH,function(){var b;(null==(b=a.Hy)?0:b.length)&&mrb(a.Hy)})},
xH:function(a){var b;(null==(b=a.Lz)?0:b.length)&&a.Lz.forEach(lrb)}});S5=brb;var esb={},fsb=(esb.__default=function(){return V5},esb.style=function(){return V5},esb),k6;
for(k6 in fsb)H5.attributes[k6]=fsb[k6](H5.attributes[k6]);var zrb=[],Arb=!1;g.w(Hrb,g.V);g.k=Hrb.prototype;g.k.hide=function(){this.N=!0;g.V.prototype.hide.call(this);Irb(this,!1)};
g.k.show=function(){this.N=!1;g.V.prototype.show.call(this);Irb(this,!0)};
g.k.isHidden=function(){return this.N};
g.k.D2=function(){this.scrollTo(this.C-this.containerWidth)};
g.k.E2=function(){this.scrollTo(this.C+this.containerWidth)};
g.k.resize=function(a,b){var c=this.api.U(),d=16/9,e=650<=a.width,f=480>a.width||290>a.height,h=Math.min(this.suggestionData.length,this.j.length);if(150>=Math.min(a.width,a.height)||0===h||!c.me)this.hide();else{var l;if(e){var m=l=28;this.B=16}else this.B=m=l=8;if(f){var n=6;e=14;var p=12;f=24;c=12}else n=8,e=18,p=16,f=36,c=16;a=a.width-(48+l+m);l=Math.ceil(a/150);l=Math.min(3,l);m=a/l-this.B;var q=Math.floor(m/d);b&&q+100>b&&50<m&&(q=Math.max(b,50/d),l=Math.ceil(a/(d*(q-100)+this.B)),m=a/l-this.B,
q=Math.floor(m/d));50>m||g.lU(this.api)?this.hide():this.show();for(b=0;b<h;b++){d=this.j[b];var r=d.Ga("ytp-suggestion-image");r.style.width=m+"px";r.style.height=q+"px";d.Ga("ytp-suggestion-title").style.width=m+"px";d.Ga("ytp-suggestion-author").style.width=m+"px";d=d.Ga("ytp-suggestion-duration");d.style.display=d&&100>m?"none":""}h=e+n+p+4;this.K=h+c+(q-f)/2;this.suggestions.element.style.height=q+h+"px";this.D=m;this.containerWidth=a;this.columns=l;this.C=0;this.suggestions.element.scrollLeft=
-0;Jrb(this)}};
g.k.onVideoDataChange=function(){var a=this.api.getVideoData(),b=this.api.U();this.Y=a.Of?!1:b.D;a.suggestions?this.suggestionData=g.ot(a.suggestions,function(c){return c&&!c.playlistId}):this.suggestionData.length=0;
Krb(this);a.Of?this.title.update({title:g.aK('\u0414\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0435 "$DNI_RELATED_CHANNEL"',{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u044d\u0442\u0438 \u0440\u043e\u043b\u0438\u043a\u0438"})};
g.k.scrollTo=function(a){a=g.He(a,this.containerWidth-this.suggestionData.length*(this.D+this.B),0);this.ma.start(this.C,a,1E3);this.C=a;Jrb(this);Irb(this,!0)};g.w(a6,g.lW);a6.prototype.show=function(){g.lW.prototype.show.call(this);Mrb(this,this.api.qb().getPlayerSize())};
a6.prototype.resize=function(a){g.lW.prototype.resize.call(this,a);this.j&&(Mrb(this,a),g.bv(this.element,"related-on-error-overlay-visible",!this.j.isHidden()))};
a6.prototype.B=function(a){g.lW.prototype.B.call(this,a);var b=this.api.getVideoData();if(b.oC||b.playerErrorMessageRenderer)(a=b.oC)?Prb(this,a):b.playerErrorMessageRenderer&&Prb(this,b.playerErrorMessageRenderer);else{var c;a.qn&&(b.oy?Nrb(b.oy)?c=g.ZF(b.oy):c=g.mW(g.YF(b.oy)):c=g.mW(a.qn),this.Ud(c,"subreason"))}};g.w(b6,g.V);b6.prototype.Ak=function(){this.api.Xb().isCued()||(this.hide(),this.api.logVisibility(this.element,!1))};
b6.prototype.j=function(){var a=this.api.getVideoData(),b=this.api.U(),c=this.api.getVideoData().Of,d=b.Fe,e=!b.me,f=this.Ze.Vg();b=b.C;d||f||c||e||b||this.api.kd()||!a.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(a=Qrb(this),this.updateValue("url",a),this.show())};
b6.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=Qrb(this);g.aV(b,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
b6.prototype.show=function(){this.api.Xb().isCued()&&(g.V.prototype.show.call(this),this.api.hasVe(this.element)&&this.api.logVisibility(this.element,!0))};g.w(c6,g.V);c6.prototype.Ak=function(){var a=this.api.Xb();!this.api.Uh()||g.JG(a,2)&&g.iU(this.api)||g.JG(a,64)?(this.api.logVisibility(this.j,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.j,!0),this.api.logVisibility(this.forwardButton,!0))};
c6.prototype.B=function(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.j)};
c6.prototype.C=function(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)};g.w(d6,g.V);d6.prototype.C=function(){var a=this.api.Xb(),b=this.api.getVideoData();this.api.U().L("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.JG(a,2)&&!this.Jb?(this.show(),this.j||(this.j=new g.jW(this.api),g.N(this,this.j),this.j.Ja(this.D,0),this.j.show()),a=this.api.getVideoData(),this.updateValue("text",a.B1),g.bv(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element,this.Jb),this.api.zc("onMutedAutoplayEnds")):this.hide())};
d6.prototype.onClick=function(){if(!this.B){this.j&&(this.j.xa(),this.j=null);g.bv(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();Bpb(a);this.api.loadVideoById(a.videoId,b);this.api.oA();this.api.logClick(this.element);this.hide();this.B=!0}};
d6.prototype.onMutedAutoplayStarts=function(){this.B=!1;this.j&&(this.j.xa(),this.j=null)};g.w(e6,g.V);g.k=e6.prototype;g.k.e1=function(){var a=this.api.getVideoData(),b=this.api.U().Fe&&!g.JG(this.state,2)&&!g.QT(this.api.getVideoData(1));a.mutedAutoplay||g.UF(this,b);this.api.logVisibility(this.element,b)};
g.k.onStateChange=function(a){this.Hc(a.state)};
g.k.Hc=function(a){this.state!==a&&(this.state=a);this.e1()};
g.k.onVideoDataChange=function(){var a=this.api.U();a.C&&g.Yu(this.element,"ytp-no-hover");this.api.getVideoData().videoId&&!a.C?(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a),this.j||(this.j=this.Ta("click",this.onClick))):this.j&&(this.updateValue("url",null),this.Tc(this.j),this.j=null)};
g.k.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.getVideoUrl(!g.UG(a),!1,!0,!0);if(this.api.L("web_player_log_click_before_generating_ve_conversion_params")){var c={};g.WT(this.api,"addEmbedsConversionTrackingParams",[c]);b=g.an(b,g.pP(c,"emb_yt_watermark"))}g.aV(b,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
g.k.Yb=function(a){if((a=480>a.width)&&!this.B||!a&&this.B){var b=new g.V(Cpb()),c=this.Ga("ytp-watermark");g.bv(c,"ytp-watermark-small",a);g.Pf(c);b.Ja(c);this.B=a}};g.w(Trb,g.V);g.k=Trb.prototype;g.k.GL=function(){var a=this.api.Xb(),b=this.api.getVideoData();this.api.U().L("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&!g.JG(a,2)?this.Jb||(g.V.prototype.show.call(this),this.api.logVisibility(this.element,this.Jb)):this.hide()};
g.k.j8=function(){this.j&&this.j.hide()};
g.k.onAutoplayBlocked=function(){this.hide();Bpb(this.api.getVideoData())};
g.k.onClick=function(){if(!this.B){g.bv(this.api.getRootNode(),"ytp-muted-autoplay",!1);var a=this.api.getVideoData(),b=this.api.getCurrentTime();Bpb(a);this.api.loadVideoById(a.videoId,b);this.api.oA();this.api.logClick(this.element);this.api.zc("onMutedAutoplayEnds");this.B=!0}};
g.k.onMutedAutoplayEnds=function(){this.watermark&&(this.watermark.xa(),this.watermark=null)};g.w(f6,g.V);f6.prototype.hide=function(){g.$u(this.api.getRootNode(),"ytp-expand-pause-overlay");g.V.prototype.hide.call(this)};
f6.prototype.G=function(){this.B=!0;g.$u(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.kd()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()};
f6.prototype.K=function(){this.B=!1;g.Yu(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.kd()&&this.api.logVisibility(this.element,!0);this.focus()};
f6.prototype.Sa=function(){var a=this.api.Xb();g.JG(a,1)||g.JG(a,16)||g.JG(a,32)||(!g.JG(a,4)||g.JG(a,2)||g.JG(a,1024)?(this.B||this.api.logVisibility(this.element,!1),this.D.hide()):this.j.WD()&&(this.B||(g.Yu(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.q2(this.j),this.j.show(),this.api.logVisibility(this.element,!0)),this.D.show()))};g.w(g6,g.V);g6.prototype.show=function(){g.V.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
g6.prototype.xa=function(){h6(this);g.V.prototype.xa.call(this)};g.w(Xrb,g.RV);g.k=Xrb.prototype;g.k.xl=function(){return!1};
g.k.create=function(){var a=this.J.U(),b=g.cU(this.J),c,d=null==(c=this.J.getVideoData())?void 0:c.clientPlaybackNonce;d&&g.QH({clientPlaybackNonce:d});a.Za&&Zrb(this);a.L("embeds_enable_muted_autoplay")&&(this.Z=new Trb(this.J),g.N(this,this.Z),g.oU(this.J,this.Z.element,4),this.va=new d6(this.J),g.N(this,this.va),g.oU(this.J,this.va.element,4));a.Fe&&(this.watermark=new e6(this.J),g.N(this,this.watermark),g.oU(this.J,this.watermark.element,8));b&&(this.K=new b6(this.J,b),g.N(this,this.K),g.oU(this.J,
this.K.element,8),g.aU(this.J.app)&&(this.onMutedAutoplayStarts(),this.K.hide()));a.B&&(this.ma=new c6(this.J),g.N(this,this.ma),g.oU(this.J,this.ma.element,4));this.j.T(this.J,"appresize",this.Yb);this.j.T(this.J,"presentingplayerstatechange",this.Ak);this.j.T(this.J,"videodatachange",this.onVideoDataChange);this.j.T(this.J,"videoplayerreset",this.Qw);this.j.T(this.J,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.j.T(this.J,"onAdStart",this.onAdStart);this.j.T(this.J,"onAdComplete",this.onAdComplete);
this.j.T(this.J,"onAdSkip",this.onAdSkip);this.j.T(this.J,"onAdStateChange",this.onAdStateChange);if(this.N=g.qC(g.cS(a)))this.countdownTimer=new g6(this.J),g.N(this,this.countdownTimer),g.oU(this.J,this.countdownTimer.element,4),this.countdownTimer.hide(),this.j.T(this.J,g.VJ("embeds"),this.onCueRangeEnter),this.j.T(this.J,g.WJ("embeds"),this.onCueRangeExit);this.Gc(this.J.Xb());this.player.Ng("embed");var e,f;(null==(e=this.J.U().getWebPlayerContextConfig())?0:null==(f=e.embedsHostFlags)?0:f.allowOverridingVisitorDataPlayerVars)&&
(a=g.rB("IDENTITY_MEMENTO"))&&this.J.Dm("onMementoChange",a)};
g.k.onCueRangeEnter=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(this.countdownTimer.show(),Vrb(this.countdownTimer))};
g.k.onCueRangeExit=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(h6(this.countdownTimer),this.countdownTimer.hide())};
g.k.Yb=function(){var a=this.J.qb().getPlayerSize();this.Eg&&this.Eg.resize(a)};
g.k.Qw=function(){Wrb(this)};
g.k.Ak=function(a){this.Gc(a.state)};
g.k.Gc=function(a){g.JG(a,128)?(this.Eg||(this.Eg=new a6(this.J),g.N(this,this.Eg),g.oU(this.J,this.Eg.element,4)),this.Eg.B(a.Tg),this.Eg.show(),g.Yu(this.J.getRootNode(),"ytp-embed-error")):this.Eg&&(this.Eg.dispose(),this.Eg=null,g.$u(this.J.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.j)if(g.JG(a,64))this.countdownTimer.hide(),h6(this.countdownTimer);else if(a.isPaused()){var b=this.countdownTimer;b.B||(b.B=!0,b.G=(0,g.pD)())}else a.isPlaying()&&this.countdownTimer.B&&
(b=this.countdownTimer,b.B&&(b.D+=(0,g.pD)()-b.G,b.B=!1,Urb(b)));Yrb(this,a)};
g.k.onMutedAutoplayStarts=function(){this.J.getVideoData().mutedAutoplay&&this.Z&&g.bv(this.J.getRootNode(),"ytp-muted-autoplay",!0)};
g.k.onVideoDataChange=function(a,b){var c=this.oE!==b.videoId;a=!c&&"dataloaded"===a;var d={isShortsModeEnabled:!!this.J.kd()};g.bD("embedsVideoDataDidChange",{clientPlaybackNonce:b.clientPlaybackNonce,isReload:a,runtimeEnabledFeatures:d});c&&(this.oE=b.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.N&&(this.J.Cf("embeds"),b.isAd()||5>b.limitedPlaybackDurationInSeconds||g.lU(this.J)||(b=Math.max(1E3*(b.startSeconds+b.limitedPlaybackDurationInSeconds-5),0),
b=new g.UJ(b,b+5E3,{id:"countdown timer",namespace:"embeds"}),this.J.yf([b]))),this.J.U().Za&&(Wrb(this),Zrb(this)));this.J.U().C&&this.C&&this.C.detach()};
g.k.onAdStart=function(){i6(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")};
g.k.onAdComplete=function(){i6(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")};
g.k.onAdSkip=function(){i6(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")};
g.k.onAdStateChange=function(a){2===a&&i6(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.QV("embed",Xrb);})(_yt_player);
