@vkontakte/videoplayer-shared 1.0.39 → 1.0.40-dev.c0101e19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.39
3
- * Mon, 26 Aug 2024 13:06:59 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-39/doc/
2
+ * @vkontakte/videoplayer-shared v1.0.40-dev.c0101e19.0
3
+ * Thu, 29 Aug 2024 21:32:16 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-40/doc/
5
5
  */
6
- "use strict";var ia=Object.create;var he=Object.defineProperty;var oa=Object.getOwnPropertyDescriptor;var sa=Object.getOwnPropertyNames;var aa=Object.getPrototypeOf,ua=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qt=(e,r)=>{for(var t in r)he(e,t,{get:r[t],enumerable:!0})},Rt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of sa(r))!ua.call(e,i)&&i!==t&&he(e,i,{get:()=>r[i],enumerable:!(n=oa(r,i))||n.enumerable});return e};var la=(e,r,t)=>(t=e!=null?ia(aa(e)):{},Rt(r||!e||!e.__esModule?he(t,"default",{value:e,enumerable:!0}):t,e)),ca=e=>Rt(he({},"__esModule",{value:!0}),e);var A=o((Wb,pn)=>{"use strict";pn.exports=function(e){try{return!!e()}catch(r){return!0}}});var se=o(($b,fn)=>{"use strict";var Ia=A();fn.exports=!Ia(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var N=o((zb,dn)=>{"use strict";var vn=se(),bn=Function.prototype,Or=bn.call,Oa=vn&&bn.bind.bind(Or,Or);dn.exports=vn?Oa:function(e){return function(){return Or.apply(e,arguments)}}});var Pe=o((Yb,mn)=>{"use strict";var Tn=N(),xa=Tn({}.toString),wa=Tn("".slice);mn.exports=function(e){return wa(xa(e),8,-1)}});var yn=o((Kb,hn)=>{"use strict";var Ea=N(),Sa=A(),qa=Pe(),xr=Object,Ra=Ea("".split);hn.exports=Sa(function(){return!xr("z").propertyIsEnumerable(0)})?function(e){return qa(e)==="String"?Ra(e,""):xr(e)}:xr});var _e=o((Hb,gn)=>{"use strict";gn.exports=function(e){return e==null}});var Ae=o((Xb,In)=>{"use strict";var Pa=_e(),_a=TypeError;In.exports=function(e){if(Pa(e))throw new _a("Can't call method on "+e);return e}});var K=o((Jb,On)=>{"use strict";var Aa=yn(),Ca=Ae();On.exports=function(e){return Aa(Ca(e))}});var wn=o((Zb,xn)=>{"use strict";xn.exports=function(){}});var Q=o((ed,En)=>{"use strict";En.exports={}});var w=o((wr,Sn)=>{"use strict";var ae=function(e){return e&&e.Math===Math&&e};Sn.exports=ae(typeof globalThis=="object"&&globalThis)||ae(typeof window=="object"&&window)||ae(typeof self=="object"&&self)||ae(typeof global=="object"&&global)||ae(typeof wr=="object"&&wr)||function(){return this}()||Function("return this")()});var E=o((rd,qn)=>{"use strict";var Er=typeof document=="object"&&document.all;qn.exports=typeof Er=="undefined"&&Er!==void 0?function(e){return typeof e=="function"||e===Er}:function(e){return typeof e=="function"}});var _n=o((td,Pn)=>{"use strict";var La=w(),Na=E(),Rn=La.WeakMap;Pn.exports=Na(Rn)&&/native code/.test(String(Rn))});var M=o((nd,An)=>{"use strict";var Ma=E();An.exports=function(e){return typeof e=="object"?e!==null:Ma(e)}});var C=o((id,Cn)=>{"use strict";var ja=A();Cn.exports=!ja(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var qr=o((od,Nn)=>{"use strict";var ka=w(),Ln=M(),Sr=ka.document,Va=Ln(Sr)&&Ln(Sr.createElement);Nn.exports=function(e){return Va?Sr.createElement(e):{}}});var Rr=o((sd,Mn)=>{"use strict";var Da=C(),Fa=A(),Ua=qr();Mn.exports=!Da&&!Fa(function(){return Object.defineProperty(Ua("div"),"a",{get:function(){return 7}}).a!==7})});var Pr=o((ad,jn)=>{"use strict";var Ga=C(),Ba=A();jn.exports=Ga&&Ba(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var W=o((ud,kn)=>{"use strict";var Qa=M(),Wa=String,$a=TypeError;kn.exports=function(e){if(Qa(e))return e;throw new $a(Wa(e)+" is not an object")}});var F=o((ld,Vn)=>{"use strict";var za=se(),Ce=Function.prototype.call;Vn.exports=za?Ce.bind(Ce):function(){return Ce.apply(Ce,arguments)}});var Le=o((cd,Dn)=>{"use strict";Dn.exports={}});var Cr=o((pd,Un)=>{"use strict";var _r=Le(),Ar=w(),Ya=E(),Fn=function(e){return Ya(e)?e:void 0};Un.exports=function(e,r){return arguments.length<2?Fn(_r[e])||Fn(Ar[e]):_r[e]&&_r[e][r]||Ar[e]&&Ar[e][r]}});var Lr=o((fd,Gn)=>{"use strict";var Ka=N();Gn.exports=Ka({}.isPrototypeOf)});var $n=o((vd,Wn)=>{"use strict";var Ha=w(),Bn=Ha.navigator,Qn=Bn&&Bn.userAgent;Wn.exports=Qn?String(Qn):""});var Zn=o((bd,Jn)=>{"use strict";var Xn=w(),Nr=$n(),zn=Xn.process,Yn=Xn.Deno,Kn=zn&&zn.versions||Yn&&Yn.version,Hn=Kn&&Kn.v8,R,Ne;Hn&&(R=Hn.split("."),Ne=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ne&&Nr&&(R=Nr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Nr.match(/Chrome\/(\d+)/),R&&(Ne=+R[1])));Jn.exports=Ne});var Mr=o((dd,ri)=>{"use strict";var ei=Zn(),Xa=A(),Ja=w(),Za=Ja.String;ri.exports=!!Object.getOwnPropertySymbols&&!Xa(function(){var e=Symbol("symbol detection");return!Za(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ei&&ei<41})});var jr=o((Td,ti)=>{"use strict";var eu=Mr();ti.exports=eu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var kr=o((md,ni)=>{"use strict";var ru=Cr(),tu=E(),nu=Lr(),iu=jr(),ou=Object;ni.exports=iu?function(e){return typeof e=="symbol"}:function(e){var r=ru("Symbol");return tu(r)&&nu(r.prototype,ou(e))}});var Me=o((hd,ii)=>{"use strict";var su=String;ii.exports=function(e){try{return su(e)}catch(r){return"Object"}}});var ue=o((yd,oi)=>{"use strict";var au=E(),uu=Me(),lu=TypeError;oi.exports=function(e){if(au(e))return e;throw new lu(uu(e)+" is not a function")}});var je=o((gd,si)=>{"use strict";var cu=ue(),pu=_e();si.exports=function(e,r){var t=e[r];return pu(t)?void 0:cu(t)}});var ui=o((Id,ai)=>{"use strict";var Vr=F(),Dr=E(),Fr=M(),fu=TypeError;ai.exports=function(e,r){var t,n;if(r==="string"&&Dr(t=e.toString)&&!Fr(n=Vr(t,e))||Dr(t=e.valueOf)&&!Fr(n=Vr(t,e))||r!=="string"&&Dr(t=e.toString)&&!Fr(n=Vr(t,e)))return n;throw new fu("Can't convert object to primitive value")}});var le=o((Od,li)=>{"use strict";li.exports=!0});var fi=o((xd,pi)=>{"use strict";var ci=w(),vu=Object.defineProperty;pi.exports=function(e,r){try{vu(ci,e,{value:r,configurable:!0,writable:!0})}catch(t){ci[e]=r}return r}});var ke=o((wd,di)=>{"use strict";var bu=le(),du=w(),Tu=fi(),vi="__core-js_shared__",bi=di.exports=du[vi]||Tu(vi,{});(bi.versions||(bi.versions=[])).push({version:"3.38.0",mode:bu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Ur=o((Ed,mi)=>{"use strict";var Ti=ke();mi.exports=function(e,r){return Ti[e]||(Ti[e]=r||{})}});var Gr=o((Sd,hi)=>{"use strict";var mu=Ae(),hu=Object;hi.exports=function(e){return hu(mu(e))}});var j=o((qd,yi)=>{"use strict";var yu=N(),gu=Gr(),Iu=yu({}.hasOwnProperty);yi.exports=Object.hasOwn||function(r,t){return Iu(gu(r),t)}});var Br=o((Rd,gi)=>{"use strict";var Ou=N(),xu=0,wu=Math.random(),Eu=Ou(1 .toString);gi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Eu(++xu+wu,36)}});var k=o((Pd,Oi)=>{"use strict";var Su=w(),qu=Ur(),Ii=j(),Ru=Br(),Pu=Mr(),_u=jr(),H=Su.Symbol,Qr=qu("wks"),Au=_u?H.for||H:H&&H.withoutSetter||Ru;Oi.exports=function(e){return Ii(Qr,e)||(Qr[e]=Pu&&Ii(H,e)?H[e]:Au("Symbol."+e)),Qr[e]}});var Si=o((_d,Ei)=>{"use strict";var Cu=F(),xi=M(),wi=kr(),Lu=je(),Nu=ui(),Mu=k(),ju=TypeError,ku=Mu("toPrimitive");Ei.exports=function(e,r){if(!xi(e)||wi(e))return e;var t=Lu(e,ku),n;if(t){if(r===void 0&&(r="default"),n=Cu(t,e,r),!xi(n)||wi(n))return n;throw new ju("Can't convert object to primitive value")}return r===void 0&&(r="number"),Nu(e,r)}});var Wr=o((Ad,qi)=>{"use strict";var Vu=Si(),Du=kr();qi.exports=function(e){var r=Vu(e,"string");return Du(r)?r:r+""}});var X=o(Pi=>{"use strict";var Fu=C(),Uu=Rr(),Gu=Pr(),Ve=W(),Ri=Wr(),Bu=TypeError,$r=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,zr="enumerable",Yr="configurable",Kr="writable";Pi.f=Fu?Gu?function(r,t,n){if(Ve(r),t=Ri(t),Ve(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Kr in n&&!n[Kr]){var i=Qu(r,t);i&&i[Kr]&&(r[t]=n.value,n={configurable:Yr in n?n[Yr]:i[Yr],enumerable:zr in n?n[zr]:i[zr],writable:!1})}return $r(r,t,n)}:$r:function(r,t,n){if(Ve(r),t=Ri(t),Ve(n),Uu)try{return $r(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Bu("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ce=o((Ld,_i)=>{"use strict";_i.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var J=o((Nd,Ai)=>{"use strict";var Wu=C(),$u=X(),zu=ce();Ai.exports=Wu?function(e,r,t){return $u.f(e,r,zu(1,t))}:function(e,r,t){return e[r]=t,e}});var De=o((Md,Li)=>{"use strict";var Yu=Ur(),Ku=Br(),Ci=Yu("keys");Li.exports=function(e){return Ci[e]||(Ci[e]=Ku(e))}});var Fe=o((jd,Ni)=>{"use strict";Ni.exports={}});var Vi=o((kd,ki)=>{"use strict";var Hu=_n(),ji=w(),Xu=M(),Ju=J(),Hr=j(),Xr=ke(),Zu=De(),el=Fe(),Mi="Object already initialized",Jr=ji.TypeError,rl=ji.WeakMap,Ue,pe,Ge,tl=function(e){return Ge(e)?pe(e):Ue(e,{})},nl=function(e){return function(r){var t;if(!Xu(r)||(t=pe(r)).type!==e)throw new Jr("Incompatible receiver, "+e+" required");return t}};Hu||Xr.state?(P=Xr.state||(Xr.state=new rl),P.get=P.get,P.has=P.has,P.set=P.set,Ue=function(e,r){if(P.has(e))throw new Jr(Mi);return r.facade=e,P.set(e,r),r},pe=function(e){return P.get(e)||{}},Ge=function(e){return P.has(e)}):($=Zu("state"),el[$]=!0,Ue=function(e,r){if(Hr(e,$))throw new Jr(Mi);return r.facade=e,Ju(e,$,r),r},pe=function(e){return Hr(e,$)?e[$]:{}},Ge=function(e){return Hr(e,$)});var P,$;ki.exports={set:Ue,get:pe,has:Ge,enforce:tl,getterFor:nl}});var Bi=o((Vd,Gi)=>{"use strict";var il=se(),Ui=Function.prototype,Di=Ui.apply,Fi=Ui.call;Gi.exports=typeof Reflect=="object"&&Reflect.apply||(il?Fi.bind(Di):function(){return Fi.apply(Di,arguments)})});var Zr=o((Dd,Qi)=>{"use strict";var ol=Pe(),sl=N();Qi.exports=function(e){if(ol(e)==="Function")return sl(e)}});var Yi=o(zi=>{"use strict";var Wi={}.propertyIsEnumerable,$i=Object.getOwnPropertyDescriptor,al=$i&&!Wi.call({1:2},1);zi.f=al?function(r){var t=$i(this,r);return!!t&&t.enumerable}:Wi});var Xi=o(Hi=>{"use strict";var ul=C(),ll=F(),cl=Yi(),pl=ce(),fl=K(),vl=Wr(),bl=j(),dl=Rr(),Ki=Object.getOwnPropertyDescriptor;Hi.f=ul?Ki:function(r,t){if(r=fl(r),t=vl(t),dl)try{return Ki(r,t)}catch(n){}if(bl(r,t))return pl(!ll(cl.f,r,t),r[t])}});var Zi=o((Gd,Ji)=>{"use strict";var Tl=A(),ml=E(),hl=/#|\.prototype\./,fe=function(e,r){var t=gl[yl(e)];return t===Ol?!0:t===Il?!1:ml(r)?Tl(r):!!r},yl=fe.normalize=function(e){return String(e).replace(hl,".").toLowerCase()},gl=fe.data={},Il=fe.NATIVE="N",Ol=fe.POLYFILL="P";Ji.exports=fe});var et=o((Bd,ro)=>{"use strict";var eo=Zr(),xl=ue(),wl=se(),El=eo(eo.bind);ro.exports=function(e,r){return xl(e),r===void 0?e:wl?El(e,r):function(){return e.apply(r,arguments)}}});var rt=o((Qd,no)=>{"use strict";var ve=w(),Sl=Bi(),ql=Zr(),Rl=E(),Pl=Xi().f,_l=Zi(),Z=Le(),Al=et(),ee=J(),to=j();ke();var Cl=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Sl(e,this,arguments)};return r.prototype=e.prototype,r};no.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,u=n?ve:i?ve[t]:ve[t]&&ve[t].prototype,a=n?Z:Z[t]||ee(Z,t,{})[t],f=a.prototype,l,c,p,b,d,m,h,I,y;for(b in r)l=_l(n?b:t+(i?".":"#")+b,e.forced),c=!l&&u&&to(u,b),m=a[b],c&&(e.dontCallGetSet?(y=Pl(u,b),h=y&&y.value):h=u[b]),d=c&&h?h:r[b],!(!l&&!s&&typeof m==typeof d)&&(e.bind&&c?I=Al(d,ve):e.wrap&&c?I=Cl(d):s&&Rl(d)?I=ql(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&ee(I,"sham",!0),ee(a,b,I),s&&(p=t+"Prototype",to(Z,p)||ee(Z,p,{}),ee(Z[p],b,d),e.real&&f&&(l||!f[b])&&ee(f,b,d)))}});var so=o((Wd,oo)=>{"use strict";var tt=C(),Ll=j(),io=Function.prototype,Nl=tt&&Object.getOwnPropertyDescriptor,nt=Ll(io,"name"),Ml=nt&&function(){}.name==="something",jl=nt&&(!tt||tt&&Nl(io,"name").configurable);oo.exports={EXISTS:nt,PROPER:Ml,CONFIGURABLE:jl}});var uo=o(($d,ao)=>{"use strict";var kl=Math.ceil,Vl=Math.floor;ao.exports=Math.trunc||function(r){var t=+r;return(t>0?Vl:kl)(t)}});var it=o((zd,lo)=>{"use strict";var Dl=uo();lo.exports=function(e){var r=+e;return r!==r||r===0?0:Dl(r)}});var po=o((Yd,co)=>{"use strict";var Fl=it(),Ul=Math.max,Gl=Math.min;co.exports=function(e,r){var t=Fl(e);return t<0?Ul(t+r,0):Gl(t,r)}});var vo=o((Kd,fo)=>{"use strict";var Bl=it(),Ql=Math.min;fo.exports=function(e){var r=Bl(e);return r>0?Ql(r,9007199254740991):0}});var ot=o((Hd,bo)=>{"use strict";var Wl=vo();bo.exports=function(e){return Wl(e.length)}});var ho=o((Xd,mo)=>{"use strict";var $l=K(),zl=po(),Yl=ot(),To=function(e){return function(r,t,n){var i=$l(r),s=Yl(i);if(s===0)return!e&&-1;var u=zl(n,s),a;if(e&&t!==t){for(;s>u;)if(a=i[u++],a!==a)return!0}else for(;s>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};mo.exports={includes:To(!0),indexOf:To(!1)}});var Io=o((Jd,go)=>{"use strict";var Kl=N(),st=j(),Hl=K(),Xl=ho().indexOf,Jl=Fe(),yo=Kl([].push);go.exports=function(e,r){var t=Hl(e),n=0,i=[],s;for(s in t)!st(Jl,s)&&st(t,s)&&yo(i,s);for(;r.length>n;)st(t,s=r[n++])&&(~Xl(i,s)||yo(i,s));return i}});var at=o((Zd,Oo)=>{"use strict";Oo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var wo=o((eT,xo)=>{"use strict";var Zl=Io(),ec=at();xo.exports=Object.keys||function(r){return Zl(r,ec)}});var So=o(Eo=>{"use strict";var rc=C(),tc=Pr(),nc=X(),ic=W(),oc=K(),sc=wo();Eo.f=rc&&!tc?Object.defineProperties:function(r,t){ic(r);for(var n=oc(t),i=sc(t),s=i.length,u=0,a;s>u;)nc.f(r,a=i[u++],n[a]);return r}});var Ro=o((tT,qo)=>{"use strict";var ac=Cr();qo.exports=ac("document","documentElement")});var pt=o((nT,Mo)=>{"use strict";var uc=W(),lc=So(),Po=at(),cc=Fe(),pc=Ro(),fc=qr(),vc=De(),_o=">",Ao="<",lt="prototype",ct="script",Lo=vc("IE_PROTO"),ut=function(){},No=function(e){return Ao+ct+_o+e+Ao+"/"+ct+_o},Co=function(e){e.write(No("")),e.close();var r=e.parentWindow.Object;return e=null,r},bc=function(){var e=fc("iframe"),r="java"+ct+":",t;return e.style.display="none",pc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(No("document.F=Object")),t.close(),t.F},Be,Qe=function(){try{Be=new ActiveXObject("htmlfile")}catch(r){}Qe=typeof document!="undefined"?document.domain&&Be?Co(Be):bc():Co(Be);for(var e=Po.length;e--;)delete Qe[lt][Po[e]];return Qe()};cc[Lo]=!0;Mo.exports=Object.create||function(r,t){var n;return r!==null?(ut[lt]=uc(r),n=new ut,ut[lt]=null,n[Lo]=r):n=Qe(),t===void 0?n:lc.f(n,t)}});var ko=o((iT,jo)=>{"use strict";var dc=A();jo.exports=!dc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var vt=o((oT,Do)=>{"use strict";var Tc=j(),mc=E(),hc=Gr(),yc=De(),gc=ko(),Vo=yc("IE_PROTO"),ft=Object,Ic=ft.prototype;Do.exports=gc?ft.getPrototypeOf:function(e){var r=hc(e);if(Tc(r,Vo))return r[Vo];var t=r.constructor;return mc(t)&&r instanceof t?t.prototype:r instanceof ft?Ic:null}});var bt=o((sT,Fo)=>{"use strict";var Oc=J();Fo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Oc(e,r,t),e}});var ht=o((aT,Bo)=>{"use strict";var xc=A(),wc=E(),Ec=M(),Sc=pt(),Uo=vt(),qc=bt(),Rc=k(),Pc=le(),mt=Rc("iterator"),Go=!1,V,dt,Tt;[].keys&&(Tt=[].keys(),"next"in Tt?(dt=Uo(Uo(Tt)),dt!==Object.prototype&&(V=dt)):Go=!0);var _c=!Ec(V)||xc(function(){var e={};return V[mt].call(e)!==e});_c?V={}:Pc&&(V=Sc(V));wc(V[mt])||qc(V,mt,function(){return this});Bo.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Go}});var We=o((uT,Wo)=>{"use strict";var Ac=k(),Cc=Ac("toStringTag"),Qo={};Qo[Cc]="z";Wo.exports=String(Qo)==="[object z]"});var yt=o((lT,$o)=>{"use strict";var Lc=We(),Nc=E(),$e=Pe(),Mc=k(),jc=Mc("toStringTag"),kc=Object,Vc=$e(function(){return arguments}())==="Arguments",Dc=function(e,r){try{return e[r]}catch(t){}};$o.exports=Lc?$e:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Dc(r=kc(e),jc))=="string"?t:Vc?$e(r):(n=$e(r))==="Object"&&Nc(r.callee)?"Arguments":n}});var Yo=o((cT,zo)=>{"use strict";var Fc=We(),Uc=yt();zo.exports=Fc?{}.toString:function(){return"[object "+Uc(this)+"]"}});var ze=o((pT,Ho)=>{"use strict";var Gc=We(),Bc=X().f,Qc=J(),Wc=j(),$c=Yo(),zc=k(),Ko=zc("toStringTag");Ho.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Wc(i,Ko)||Bc(i,Ko,{configurable:!0,value:r}),n&&!Gc&&Qc(i,"toString",$c))}});var Jo=o((fT,Xo)=>{"use strict";var Yc=ht().IteratorPrototype,Kc=pt(),Hc=ce(),Xc=ze(),Jc=Q(),Zc=function(){return this};Xo.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Kc(Yc,{next:Hc(+!n,t)}),Xc(e,i,!1,!0),Jc[i]=Zc,e}});var es=o((vT,Zo)=>{"use strict";var ep=N(),rp=ue();Zo.exports=function(e,r,t){try{return ep(rp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ts=o((bT,rs)=>{"use strict";var tp=M();rs.exports=function(e){return tp(e)||e===null}});var is=o((dT,ns)=>{"use strict";var np=ts(),ip=String,op=TypeError;ns.exports=function(e){if(np(e))return e;throw new op("Can't set "+ip(e)+" as a prototype")}});var ss=o((TT,os)=>{"use strict";var sp=es(),ap=M(),up=Ae(),lp=is();os.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=sp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,s){return up(i),lp(s),ap(i)&&(e?t(i,s):i.__proto__=s),i}}():void 0)});var ms=o((mT,Ts)=>{"use strict";var cp=rt(),pp=F(),Ye=le(),bs=so(),fp=E(),vp=Jo(),as=vt(),us=ss(),bp=ze(),dp=J(),gt=bt(),Tp=k(),ls=Q(),ds=ht(),mp=bs.PROPER,hp=bs.CONFIGURABLE,cs=ds.IteratorPrototype,Ke=ds.BUGGY_SAFARI_ITERATORS,be=Tp("iterator"),ps="keys",de="values",fs="entries",vs=function(){return this};Ts.exports=function(e,r,t,n,i,s,u){vp(t,r,n);var a=function(y){if(y===i&&b)return b;if(!Ke&&y&&y in c)return c[y];switch(y){case ps:return function(){return new t(this,y)};case de:return function(){return new t(this,y)};case fs:return function(){return new t(this,y)}}return function(){return new t(this)}},f=r+" Iterator",l=!1,c=e.prototype,p=c[be]||c["@@iterator"]||i&&c[i],b=!Ke&&p||a(i),d=r==="Array"&&c.entries||p,m,h,I;if(d&&(m=as(d.call(new e)),m!==Object.prototype&&m.next&&(!Ye&&as(m)!==cs&&(us?us(m,cs):fp(m[be])||gt(m,be,vs)),bp(m,f,!0,!0),Ye&&(ls[f]=vs))),mp&&i===de&&p&&p.name!==de&&(!Ye&&hp?dp(c,"name",de):(l=!0,b=function(){return pp(p,this)})),i)if(h={values:a(de),keys:s?b:a(ps),entries:a(fs)},u)for(I in h)(Ke||l||!(I in c))&&gt(c,I,h[I]);else cp({target:r,proto:!0,forced:Ke||l},h);return(!Ye||u)&&c[be]!==b&&gt(c,be,b,{name:i}),ls[r]=b,h}});var ys=o((hT,hs)=>{"use strict";hs.exports=function(e,r){return{value:e,done:r}}});var Ot=o((yT,ws)=>{"use strict";var yp=K(),It=wn(),gs=Q(),Os=Vi(),gp=X().f,Ip=ms(),He=ys(),Op=le(),xp=C(),xs="Array Iterator",wp=Os.set,Ep=Os.getterFor(xs);ws.exports=Ip(Array,"Array",function(e,r){wp(this,{type:xs,target:yp(e),index:0,kind:r})},function(){var e=Ep(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,He(void 0,!0);switch(e.kind){case"keys":return He(t,!1);case"values":return He(r[t],!1)}return He([t,r[t]],!1)},"values");var Is=gs.Arguments=gs.Array;It("keys");It("values");It("entries");if(!Op&&xp&&Is.name!=="values")try{gp(Is,"name",{value:"values"})}catch(e){}});var Ss=o((gT,Es)=>{"use strict";var Sp=k(),qp=Q(),Rp=Sp("iterator"),Pp=Array.prototype;Es.exports=function(e){return e!==void 0&&(qp.Array===e||Pp[Rp]===e)}});var xt=o((IT,Rs)=>{"use strict";var _p=yt(),qs=je(),Ap=_e(),Cp=Q(),Lp=k(),Np=Lp("iterator");Rs.exports=function(e){if(!Ap(e))return qs(e,Np)||qs(e,"@@iterator")||Cp[_p(e)]}});var _s=o((OT,Ps)=>{"use strict";var Mp=F(),jp=ue(),kp=W(),Vp=Me(),Dp=xt(),Fp=TypeError;Ps.exports=function(e,r){var t=arguments.length<2?Dp(e):r;if(jp(t))return kp(Mp(t,e));throw new Fp(Vp(e)+" is not iterable")}});var Ls=o((xT,Cs)=>{"use strict";var Up=F(),As=W(),Gp=je();Cs.exports=function(e,r,t){var n,i;As(e);try{if(n=Gp(e,"return"),!n){if(r==="throw")throw t;return t}n=Up(n,e)}catch(s){i=!0,n=s}if(r==="throw")throw t;if(i)throw n;return As(n),t}});var Vs=o((wT,ks)=>{"use strict";var Bp=et(),Qp=F(),Wp=W(),$p=Me(),zp=Ss(),Yp=ot(),Ns=Lr(),Kp=_s(),Hp=xt(),Ms=Ls(),Xp=TypeError,Xe=function(e,r){this.stopped=e,this.result=r},js=Xe.prototype;ks.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),f=Bp(r,n),l,c,p,b,d,m,h,I=function(g){return l&&Ms(l,"normal",g),new Xe(!0,g)},y=function(g){return i?(Wp(g),a?f(g[0],g[1],I):f(g[0],g[1])):a?f(g,I):f(g)};if(s)l=e.iterator;else if(u)l=e;else{if(c=Hp(e),!c)throw new Xp($p(e)+" is not iterable");if(zp(c)){for(p=0,b=Yp(e);b>p;p++)if(d=y(e[p]),d&&Ns(js,d))return d;return new Xe(!1)}l=Kp(e,c)}for(m=s?e.next:l.next;!(h=Qp(m,l)).done;){try{d=y(h.value)}catch(g){Ms(l,"throw",g)}if(typeof d=="object"&&d&&Ns(js,d))return d}return new Xe(!1)}});var Fs=o((ET,Ds)=>{"use strict";var Jp=C(),Zp=X(),ef=ce();Ds.exports=function(e,r,t){Jp?Zp.f(e,r,ef(0,t)):e[r]=t}});var Us=o(()=>{"use strict";var rf=rt(),tf=Vs(),nf=Fs();rf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return tf(r,function(n,i){nf(t,n,i)},{AS_ENTRIES:!0}),t}})});var Bs=o((RT,Gs)=>{"use strict";Ot();Us();var of=Le();Gs.exports=of.Object.fromEntries});var Ws=o((PT,Qs)=>{"use strict";Qs.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var zs=o(()=>{"use strict";Ot();var sf=Ws(),af=w(),uf=ze(),$s=Q();for(Je in sf)uf(af[Je],Je),$s[Je]=$s.Array;var Je});var Ks=o((CT,Ys)=>{"use strict";var lf=Bs();zs();Ys.exports=lf});var Xs=o((LT,Hs)=>{"use strict";var cf=Ks();Hs.exports=cf});var df={};qt(df,{ErrorCategory:()=>un,InterfaceLanguage:()=>ea,Logger:()=>ye,Observable:()=>v,Subject:()=>L,Subscription:()=>x,VERSION:()=>Pt,VKNumericLanguage:()=>Zs,ValueSubject:()=>te,VideoQuality:()=>Oe,abortable:()=>Vt,addScript:()=>Mt,areQualitiesExact:()=>Ht,assertEmptyArray:()=>Nt,assertNever:()=>_,assertNonNullable:()=>At,assertNotEmptyArray:()=>Lt,assertNullable:()=>Ct,assertQualityIsExact:()=>Xt,buffer:()=>or,checkNever:()=>_t,clearVideoElement:()=>rn,clientChecker:()=>Dt,cloneDeep:()=>Zt,cloneDeepWith:()=>re,combine:()=>tr,debounce:()=>ar,debounceFn:()=>Ee,detectEmbed:()=>Ut,fillWithDefault:()=>Jt,filter:()=>pr,filterChanged:()=>vr,fromEvent:()=>sn,getExponentialDelay:()=>Ft,getHighestQuality:()=>Wt,interval:()=>nn,isHigher:()=>Gt,isHigherOrEqual:()=>Bt,isInvariantQuality:()=>we,isLower:()=>xe,isLowerOrEqual:()=>Qt,isMobile:()=>er,isNonNullable:()=>G,isNullable:()=>ge,loadVKLangPack:()=>ff,map:()=>ne,mapTo:()=>dr,merge:()=>nr,noop:()=>D,now:()=>kt,observableFrom:()=>on,observeElementSize:()=>en,once:()=>Tr,pairwise:()=>hr,safeStorage:()=>Ie,tap:()=>gr,throttle:()=>lr,throttleFn:()=>Se,timeCodeToString:()=>ma,timeout:()=>tn,videoHeightToQuality:()=>zt,videoQualityToHeight:()=>Kt,videoSizeToQuality:()=>Yt});module.exports=ca(df);var Pt="1.0.39";var x=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var _=e=>{throw new Error(`${e} is value of unexpected type`)},_t=e=>{};var D=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:a=>t.next(a),error:a=>{var f;return(f=t.error)==null?void 0:f.call(t,a)}}:n={next:D,error:D};let i=typeof r=="function"?{next:a=>{try{r(a)}catch(f){n.next(f)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},s;try{s=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new x().add(()=>{switch(i.next=D,i.error=D,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return _(s)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var ye=class{constructor(){this.log$=new L;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};function At(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ct(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e!="undefined"&&e!==null}function ge(e){return e==null}function Lt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Nt(e,r){if(e!=null&&e.length)throw new Error(r)}var Mt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),l.remove()});let s=()=>{a(),i()},u=()=>{a(),n()},a=()=>{f&&clearTimeout(f),l.removeEventListener("load",u),l.removeEventListener("error",s)},f;t&&(f=window.setTimeout(s,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",s),l.src=e,document.head.appendChild(l)});var jt,kt=typeof((jt=window.performance)==null?void 0:jt.now)=="function"?()=>window.performance.now():()=>Date.now();var Vt=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,s;for(;!i&&!e.aborted;)try{let a=await n.next(s);i=(u=a.done)!=null?u:!1,s=a.value}catch(a){await n.throw(a)}return s};var er=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},Ze=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=er()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,s=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,f=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||f||l||i||s||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,s=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||s||a||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Dt=new Ze;var Ft=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:s=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Ie={};qt(Ie,{clear:()=>Ta,get:()=>fa,has:()=>ba,isPersistent:()=>pa,remove:()=>da,set:()=>va});var O,B,rr=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(B!==void 0)return B;try{localStorage.setItem(rr,"test"),localStorage.removeItem(rr),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(rr),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(O=new Map),B},pa=()=>z()===0,fa=e=>{var t,n;let r=z();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:_(r)}},va=(e,r)=>{let t=z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:_(t)}},ba=e=>{var t;let r=z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return _(r),!1}},da=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:_(r)}},Ta=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:_(e)}};var Ut=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Oe=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Oe||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Gt=(e,r)=>S[e].height>S[r].height,Bt=(e,r)=>S[e].height>=S[r].height,xe=(e,r)=>S[e].height<S[r].height,Qt=(e,r)=>S[e].height<=S[r].height,Wt=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:xe(r,t)?1:-1)[0],$t=Object.keys(S).sort((e,r)=>xe(e,r)?-1:1),zt=(e,r=.02)=>[...$t].find(n=>S[n].height*(1+r)>=e),Yt=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return $t.find(i=>{let s=S[i];return s.width>=n&&s.height>=t})},Kt=e=>S[e].height,we=e=>e==="Invariant quality",Ht=e=>e.every(r=>!we(r));function Xt(e){if(we(e))throw new Error("Expected exact quality")}var Jt=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],s=e[n];Array.isArray(i)&&Array.isArray(s)?t[n]=s:typeof i=="object"&&typeof s=="object"?t[n]=Jt(s,i):t[n]=n in e?s:i}return t};var ma=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Ee(e,r=0,t){let n,i,s,u,a,f,l=0,c=!1,p=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(c=!!t.leading,p="maxWait"in t,s=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):s,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,U=i;return n=i=void 0,l=T,u=e.apply(U,q),u}function h(T,q){return d?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function y(T){return l=T,a=h(Te,r),c?m(T):u}function g(T){let q=T-f,U=T-l,St=r-q;return p?Math.min(St,s-U):St}function wt(T){let q=T-f,U=T-l;return f===void 0||q>=r||q<0||p&&U>=s}function Te(){let T=Date.now();if(wt(T))return Et(T);a=h(Te,g(T))}function Et(T){return a=void 0,b&&n?m(T):(n=i=void 0,u)}function ra(){a!==void 0&&I(a),l=0,n=f=i=a=void 0}function ta(){return a===void 0?u:Et(Date.now())}function na(){return a!==void 0}function me(...T){let q=Date.now(),U=wt(q);if(n=T,i=this,f=q,U){if(a===void 0)return y(f);if(p)return a=h(Te,r),m(f)}return a===void 0&&(a=h(Te,r)),u}return me.cancel=ra,me.flush=ta,me.pending=na,me}var Se=(e,r=0,t)=>Ee(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var re=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=re(e[n],r):t[n]=e[n]}return t};var Zt=e=>re(e);var ha=300,en=(e,r=ha)=>new v(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(Se(u=>{let a=u[0];if(!a)return;let f,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,f=a.contentBoxSize[0].inlineSize):a.contentRect&&(f=a.contentRect.width,l=a.contentRect.height),G(f)&&G(l)&&t.next({width:f,height:l})},r));return s.observe(e),()=>s.disconnect()});var rn=e=>{e.removeAttribute("src"),e.load()};var te=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function tr(e){return new v(r=>{let t={},n=Object.keys(e).length,i=s=>u=>{s in t||n--,t[s]=u,n===0&&r.next(t)};return Object.entries(e).reduce((s,[u,a])=>s.add(a.subscribe(i(u))),new x)})}function nr(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var tn=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var nn=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var on=e=>new v(r=>{e.forEach(t=>r.next(t))});var sn=(e,r)=>new v(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function or(e){return r=>new v(t=>r.subscribe(new ir(t,e)))}var ir=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ya={leading:!1,trailing:!0};function ar(e,r=ya){return t=>new v(n=>t.subscribe(new sr(n,e,r)))}var sr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,G(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ga={leading:!0,trailing:!1};function lr(e,r=ga){return t=>new v(n=>t.subscribe(new ur(n,e,r)))}var ur=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,ge(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function pr(e){return r=>new v(t=>r.subscribe(new cr(t,e)))}var cr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function vr(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new fr(t,e)))}var an={},fr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=an}next(r){let t;try{t=this.lastValue===an||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ne(e){return r=>new v(t=>r.subscribe(new br(t,e)))}var br=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function dr(e){return ne(()=>e)}function Tr(){return e=>new v(r=>{let t=!1,n=!1,i=e.subscribe(s=>{t||(t=!0,r.next(s)),n&&i.unsubscribe()},s=>{var u;t=!0,(u=r.error)==null||u.call(r,s),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function hr(){return e=>new v(r=>e.subscribe(new mr(r)))}var mr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function gr(e){return r=>new v(t=>r.subscribe(new yr(t,e)))}var yr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var un=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(un||{});var qe=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,s=n.length;i<s;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,s=n.length;i<s;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},Y=class extends qe{constructor(){super(),this.listeners||qe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},ie=class{constructor(){Object.defineProperty(this,"signal",{value:new Y,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ie.prototype[Symbol.toStringTag]="AbortController",Y.prototype[Symbol.toStringTag]="AbortSignal");function Re(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Ir(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Re({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:s};let s=t;(s&&!s.prototype.hasOwnProperty("signal")||i)&&(s=function(l,c){let p;c&&c.signal&&(p=c.signal,delete c.signal);let b=new t(l,c);return p&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),b},s.prototype=t.prototype);let u=r;return{fetch:(f,l)=>{let c=s&&s.prototype.isPrototypeOf(f)?f.signal:l?l.signal:void 0;if(c){let p;try{p=new DOMException("Aborted","AbortError")}catch(d){p=new Error("Aborted"),p.name="AbortError"}if(c.aborted)return Promise.reject(p);let b=new Promise((d,m)=>{c.addEventListener("abort",()=>m(p),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(f,l)])}return u(f,l)},Request:s}}var oe=Re({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),ln=oe?Ir({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,cn=oe?ln.fetch:window.fetch,Ub=oe?ln.Request:window.Request,Gb=oe?ie:window.AbortController,Bb=oe?Y:window.AbortSignal;var Js=la(Xs(),1),Zs=(p=>(p.Armenian="58",p.Azerbaijani="57",p.Belarusian="114",p.English="3",p.Kazakh="97",p.Portuguese="73",p.Russian="0",p.Spanish="4",p.Ukrainian="1",p.Uzbek="65",p.Vietnamese="75",p))(Zs||{}),pf="vk.com",ff=async(e,r,t)=>{let n=new URL(`https://${pf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let s=await(await cn(n.toString())).json();return vf(s,t)},vf=(e,r)=>(0,Js.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),bf(n)])),bf=e=>Array.isArray(e)?e[0]:e;var ea=(t=>(t.RU="ru",t.EN="en",t))(ea||{});
6
+ "use strict";var ia=Object.create;var he=Object.defineProperty;var oa=Object.getOwnPropertyDescriptor;var sa=Object.getOwnPropertyNames;var aa=Object.getPrototypeOf,ua=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qt=(e,r)=>{for(var t in r)he(e,t,{get:r[t],enumerable:!0})},Rt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of sa(r))!ua.call(e,i)&&i!==t&&he(e,i,{get:()=>r[i],enumerable:!(n=oa(r,i))||n.enumerable});return e};var la=(e,r,t)=>(t=e!=null?ia(aa(e)):{},Rt(r||!e||!e.__esModule?he(t,"default",{value:e,enumerable:!0}):t,e)),ca=e=>Rt(he({},"__esModule",{value:!0}),e);var A=o((Wb,pn)=>{"use strict";pn.exports=function(e){try{return!!e()}catch(r){return!0}}});var se=o(($b,fn)=>{"use strict";var Ia=A();fn.exports=!Ia(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var N=o((zb,dn)=>{"use strict";var vn=se(),bn=Function.prototype,Or=bn.call,Oa=vn&&bn.bind.bind(Or,Or);dn.exports=vn?Oa:function(e){return function(){return Or.apply(e,arguments)}}});var Pe=o((Yb,mn)=>{"use strict";var Tn=N(),xa=Tn({}.toString),wa=Tn("".slice);mn.exports=function(e){return wa(xa(e),8,-1)}});var yn=o((Kb,hn)=>{"use strict";var Ea=N(),Sa=A(),qa=Pe(),xr=Object,Ra=Ea("".split);hn.exports=Sa(function(){return!xr("z").propertyIsEnumerable(0)})?function(e){return qa(e)==="String"?Ra(e,""):xr(e)}:xr});var _e=o((Hb,gn)=>{"use strict";gn.exports=function(e){return e==null}});var Ae=o((Xb,In)=>{"use strict";var Pa=_e(),_a=TypeError;In.exports=function(e){if(Pa(e))throw new _a("Can't call method on "+e);return e}});var K=o((Jb,On)=>{"use strict";var Aa=yn(),Ca=Ae();On.exports=function(e){return Aa(Ca(e))}});var wn=o((Zb,xn)=>{"use strict";xn.exports=function(){}});var Q=o((ed,En)=>{"use strict";En.exports={}});var w=o((wr,Sn)=>{"use strict";var ae=function(e){return e&&e.Math===Math&&e};Sn.exports=ae(typeof globalThis=="object"&&globalThis)||ae(typeof window=="object"&&window)||ae(typeof self=="object"&&self)||ae(typeof global=="object"&&global)||ae(typeof wr=="object"&&wr)||function(){return this}()||Function("return this")()});var E=o((rd,qn)=>{"use strict";var Er=typeof document=="object"&&document.all;qn.exports=typeof Er=="undefined"&&Er!==void 0?function(e){return typeof e=="function"||e===Er}:function(e){return typeof e=="function"}});var _n=o((td,Pn)=>{"use strict";var La=w(),Na=E(),Rn=La.WeakMap;Pn.exports=Na(Rn)&&/native code/.test(String(Rn))});var M=o((nd,An)=>{"use strict";var Ma=E();An.exports=function(e){return typeof e=="object"?e!==null:Ma(e)}});var C=o((id,Cn)=>{"use strict";var ja=A();Cn.exports=!ja(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var qr=o((od,Nn)=>{"use strict";var ka=w(),Ln=M(),Sr=ka.document,Va=Ln(Sr)&&Ln(Sr.createElement);Nn.exports=function(e){return Va?Sr.createElement(e):{}}});var Rr=o((sd,Mn)=>{"use strict";var Da=C(),Fa=A(),Ua=qr();Mn.exports=!Da&&!Fa(function(){return Object.defineProperty(Ua("div"),"a",{get:function(){return 7}}).a!==7})});var Pr=o((ad,jn)=>{"use strict";var Ga=C(),Ba=A();jn.exports=Ga&&Ba(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var W=o((ud,kn)=>{"use strict";var Qa=M(),Wa=String,$a=TypeError;kn.exports=function(e){if(Qa(e))return e;throw new $a(Wa(e)+" is not an object")}});var F=o((ld,Vn)=>{"use strict";var za=se(),Ce=Function.prototype.call;Vn.exports=za?Ce.bind(Ce):function(){return Ce.apply(Ce,arguments)}});var Le=o((cd,Dn)=>{"use strict";Dn.exports={}});var Cr=o((pd,Un)=>{"use strict";var _r=Le(),Ar=w(),Ya=E(),Fn=function(e){return Ya(e)?e:void 0};Un.exports=function(e,r){return arguments.length<2?Fn(_r[e])||Fn(Ar[e]):_r[e]&&_r[e][r]||Ar[e]&&Ar[e][r]}});var Lr=o((fd,Gn)=>{"use strict";var Ka=N();Gn.exports=Ka({}.isPrototypeOf)});var $n=o((vd,Wn)=>{"use strict";var Ha=w(),Bn=Ha.navigator,Qn=Bn&&Bn.userAgent;Wn.exports=Qn?String(Qn):""});var Zn=o((bd,Jn)=>{"use strict";var Xn=w(),Nr=$n(),zn=Xn.process,Yn=Xn.Deno,Kn=zn&&zn.versions||Yn&&Yn.version,Hn=Kn&&Kn.v8,R,Ne;Hn&&(R=Hn.split("."),Ne=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ne&&Nr&&(R=Nr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Nr.match(/Chrome\/(\d+)/),R&&(Ne=+R[1])));Jn.exports=Ne});var Mr=o((dd,ri)=>{"use strict";var ei=Zn(),Xa=A(),Ja=w(),Za=Ja.String;ri.exports=!!Object.getOwnPropertySymbols&&!Xa(function(){var e=Symbol("symbol detection");return!Za(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ei&&ei<41})});var jr=o((Td,ti)=>{"use strict";var eu=Mr();ti.exports=eu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var kr=o((md,ni)=>{"use strict";var ru=Cr(),tu=E(),nu=Lr(),iu=jr(),ou=Object;ni.exports=iu?function(e){return typeof e=="symbol"}:function(e){var r=ru("Symbol");return tu(r)&&nu(r.prototype,ou(e))}});var Me=o((hd,ii)=>{"use strict";var su=String;ii.exports=function(e){try{return su(e)}catch(r){return"Object"}}});var ue=o((yd,oi)=>{"use strict";var au=E(),uu=Me(),lu=TypeError;oi.exports=function(e){if(au(e))return e;throw new lu(uu(e)+" is not a function")}});var je=o((gd,si)=>{"use strict";var cu=ue(),pu=_e();si.exports=function(e,r){var t=e[r];return pu(t)?void 0:cu(t)}});var ui=o((Id,ai)=>{"use strict";var Vr=F(),Dr=E(),Fr=M(),fu=TypeError;ai.exports=function(e,r){var t,n;if(r==="string"&&Dr(t=e.toString)&&!Fr(n=Vr(t,e))||Dr(t=e.valueOf)&&!Fr(n=Vr(t,e))||r!=="string"&&Dr(t=e.toString)&&!Fr(n=Vr(t,e)))return n;throw new fu("Can't convert object to primitive value")}});var le=o((Od,li)=>{"use strict";li.exports=!0});var fi=o((xd,pi)=>{"use strict";var ci=w(),vu=Object.defineProperty;pi.exports=function(e,r){try{vu(ci,e,{value:r,configurable:!0,writable:!0})}catch(t){ci[e]=r}return r}});var ke=o((wd,di)=>{"use strict";var bu=le(),du=w(),Tu=fi(),vi="__core-js_shared__",bi=di.exports=du[vi]||Tu(vi,{});(bi.versions||(bi.versions=[])).push({version:"3.38.0",mode:bu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Ur=o((Ed,mi)=>{"use strict";var Ti=ke();mi.exports=function(e,r){return Ti[e]||(Ti[e]=r||{})}});var Gr=o((Sd,hi)=>{"use strict";var mu=Ae(),hu=Object;hi.exports=function(e){return hu(mu(e))}});var j=o((qd,yi)=>{"use strict";var yu=N(),gu=Gr(),Iu=yu({}.hasOwnProperty);yi.exports=Object.hasOwn||function(r,t){return Iu(gu(r),t)}});var Br=o((Rd,gi)=>{"use strict";var Ou=N(),xu=0,wu=Math.random(),Eu=Ou(1 .toString);gi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Eu(++xu+wu,36)}});var k=o((Pd,Oi)=>{"use strict";var Su=w(),qu=Ur(),Ii=j(),Ru=Br(),Pu=Mr(),_u=jr(),H=Su.Symbol,Qr=qu("wks"),Au=_u?H.for||H:H&&H.withoutSetter||Ru;Oi.exports=function(e){return Ii(Qr,e)||(Qr[e]=Pu&&Ii(H,e)?H[e]:Au("Symbol."+e)),Qr[e]}});var Si=o((_d,Ei)=>{"use strict";var Cu=F(),xi=M(),wi=kr(),Lu=je(),Nu=ui(),Mu=k(),ju=TypeError,ku=Mu("toPrimitive");Ei.exports=function(e,r){if(!xi(e)||wi(e))return e;var t=Lu(e,ku),n;if(t){if(r===void 0&&(r="default"),n=Cu(t,e,r),!xi(n)||wi(n))return n;throw new ju("Can't convert object to primitive value")}return r===void 0&&(r="number"),Nu(e,r)}});var Wr=o((Ad,qi)=>{"use strict";var Vu=Si(),Du=kr();qi.exports=function(e){var r=Vu(e,"string");return Du(r)?r:r+""}});var X=o(Pi=>{"use strict";var Fu=C(),Uu=Rr(),Gu=Pr(),Ve=W(),Ri=Wr(),Bu=TypeError,$r=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,zr="enumerable",Yr="configurable",Kr="writable";Pi.f=Fu?Gu?function(r,t,n){if(Ve(r),t=Ri(t),Ve(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Kr in n&&!n[Kr]){var i=Qu(r,t);i&&i[Kr]&&(r[t]=n.value,n={configurable:Yr in n?n[Yr]:i[Yr],enumerable:zr in n?n[zr]:i[zr],writable:!1})}return $r(r,t,n)}:$r:function(r,t,n){if(Ve(r),t=Ri(t),Ve(n),Uu)try{return $r(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Bu("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ce=o((Ld,_i)=>{"use strict";_i.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var J=o((Nd,Ai)=>{"use strict";var Wu=C(),$u=X(),zu=ce();Ai.exports=Wu?function(e,r,t){return $u.f(e,r,zu(1,t))}:function(e,r,t){return e[r]=t,e}});var De=o((Md,Li)=>{"use strict";var Yu=Ur(),Ku=Br(),Ci=Yu("keys");Li.exports=function(e){return Ci[e]||(Ci[e]=Ku(e))}});var Fe=o((jd,Ni)=>{"use strict";Ni.exports={}});var Vi=o((kd,ki)=>{"use strict";var Hu=_n(),ji=w(),Xu=M(),Ju=J(),Hr=j(),Xr=ke(),Zu=De(),el=Fe(),Mi="Object already initialized",Jr=ji.TypeError,rl=ji.WeakMap,Ue,pe,Ge,tl=function(e){return Ge(e)?pe(e):Ue(e,{})},nl=function(e){return function(r){var t;if(!Xu(r)||(t=pe(r)).type!==e)throw new Jr("Incompatible receiver, "+e+" required");return t}};Hu||Xr.state?(P=Xr.state||(Xr.state=new rl),P.get=P.get,P.has=P.has,P.set=P.set,Ue=function(e,r){if(P.has(e))throw new Jr(Mi);return r.facade=e,P.set(e,r),r},pe=function(e){return P.get(e)||{}},Ge=function(e){return P.has(e)}):($=Zu("state"),el[$]=!0,Ue=function(e,r){if(Hr(e,$))throw new Jr(Mi);return r.facade=e,Ju(e,$,r),r},pe=function(e){return Hr(e,$)?e[$]:{}},Ge=function(e){return Hr(e,$)});var P,$;ki.exports={set:Ue,get:pe,has:Ge,enforce:tl,getterFor:nl}});var Bi=o((Vd,Gi)=>{"use strict";var il=se(),Ui=Function.prototype,Di=Ui.apply,Fi=Ui.call;Gi.exports=typeof Reflect=="object"&&Reflect.apply||(il?Fi.bind(Di):function(){return Fi.apply(Di,arguments)})});var Zr=o((Dd,Qi)=>{"use strict";var ol=Pe(),sl=N();Qi.exports=function(e){if(ol(e)==="Function")return sl(e)}});var Yi=o(zi=>{"use strict";var Wi={}.propertyIsEnumerable,$i=Object.getOwnPropertyDescriptor,al=$i&&!Wi.call({1:2},1);zi.f=al?function(r){var t=$i(this,r);return!!t&&t.enumerable}:Wi});var Xi=o(Hi=>{"use strict";var ul=C(),ll=F(),cl=Yi(),pl=ce(),fl=K(),vl=Wr(),bl=j(),dl=Rr(),Ki=Object.getOwnPropertyDescriptor;Hi.f=ul?Ki:function(r,t){if(r=fl(r),t=vl(t),dl)try{return Ki(r,t)}catch(n){}if(bl(r,t))return pl(!ll(cl.f,r,t),r[t])}});var Zi=o((Gd,Ji)=>{"use strict";var Tl=A(),ml=E(),hl=/#|\.prototype\./,fe=function(e,r){var t=gl[yl(e)];return t===Ol?!0:t===Il?!1:ml(r)?Tl(r):!!r},yl=fe.normalize=function(e){return String(e).replace(hl,".").toLowerCase()},gl=fe.data={},Il=fe.NATIVE="N",Ol=fe.POLYFILL="P";Ji.exports=fe});var et=o((Bd,ro)=>{"use strict";var eo=Zr(),xl=ue(),wl=se(),El=eo(eo.bind);ro.exports=function(e,r){return xl(e),r===void 0?e:wl?El(e,r):function(){return e.apply(r,arguments)}}});var rt=o((Qd,no)=>{"use strict";var ve=w(),Sl=Bi(),ql=Zr(),Rl=E(),Pl=Xi().f,_l=Zi(),Z=Le(),Al=et(),ee=J(),to=j();ke();var Cl=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Sl(e,this,arguments)};return r.prototype=e.prototype,r};no.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,u=n?ve:i?ve[t]:ve[t]&&ve[t].prototype,a=n?Z:Z[t]||ee(Z,t,{})[t],f=a.prototype,l,c,p,b,d,m,h,I,y;for(b in r)l=_l(n?b:t+(i?".":"#")+b,e.forced),c=!l&&u&&to(u,b),m=a[b],c&&(e.dontCallGetSet?(y=Pl(u,b),h=y&&y.value):h=u[b]),d=c&&h?h:r[b],!(!l&&!s&&typeof m==typeof d)&&(e.bind&&c?I=Al(d,ve):e.wrap&&c?I=Cl(d):s&&Rl(d)?I=ql(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&ee(I,"sham",!0),ee(a,b,I),s&&(p=t+"Prototype",to(Z,p)||ee(Z,p,{}),ee(Z[p],b,d),e.real&&f&&(l||!f[b])&&ee(f,b,d)))}});var so=o((Wd,oo)=>{"use strict";var tt=C(),Ll=j(),io=Function.prototype,Nl=tt&&Object.getOwnPropertyDescriptor,nt=Ll(io,"name"),Ml=nt&&function(){}.name==="something",jl=nt&&(!tt||tt&&Nl(io,"name").configurable);oo.exports={EXISTS:nt,PROPER:Ml,CONFIGURABLE:jl}});var uo=o(($d,ao)=>{"use strict";var kl=Math.ceil,Vl=Math.floor;ao.exports=Math.trunc||function(r){var t=+r;return(t>0?Vl:kl)(t)}});var it=o((zd,lo)=>{"use strict";var Dl=uo();lo.exports=function(e){var r=+e;return r!==r||r===0?0:Dl(r)}});var po=o((Yd,co)=>{"use strict";var Fl=it(),Ul=Math.max,Gl=Math.min;co.exports=function(e,r){var t=Fl(e);return t<0?Ul(t+r,0):Gl(t,r)}});var vo=o((Kd,fo)=>{"use strict";var Bl=it(),Ql=Math.min;fo.exports=function(e){var r=Bl(e);return r>0?Ql(r,9007199254740991):0}});var ot=o((Hd,bo)=>{"use strict";var Wl=vo();bo.exports=function(e){return Wl(e.length)}});var ho=o((Xd,mo)=>{"use strict";var $l=K(),zl=po(),Yl=ot(),To=function(e){return function(r,t,n){var i=$l(r),s=Yl(i);if(s===0)return!e&&-1;var u=zl(n,s),a;if(e&&t!==t){for(;s>u;)if(a=i[u++],a!==a)return!0}else for(;s>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};mo.exports={includes:To(!0),indexOf:To(!1)}});var Io=o((Jd,go)=>{"use strict";var Kl=N(),st=j(),Hl=K(),Xl=ho().indexOf,Jl=Fe(),yo=Kl([].push);go.exports=function(e,r){var t=Hl(e),n=0,i=[],s;for(s in t)!st(Jl,s)&&st(t,s)&&yo(i,s);for(;r.length>n;)st(t,s=r[n++])&&(~Xl(i,s)||yo(i,s));return i}});var at=o((Zd,Oo)=>{"use strict";Oo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var wo=o((eT,xo)=>{"use strict";var Zl=Io(),ec=at();xo.exports=Object.keys||function(r){return Zl(r,ec)}});var So=o(Eo=>{"use strict";var rc=C(),tc=Pr(),nc=X(),ic=W(),oc=K(),sc=wo();Eo.f=rc&&!tc?Object.defineProperties:function(r,t){ic(r);for(var n=oc(t),i=sc(t),s=i.length,u=0,a;s>u;)nc.f(r,a=i[u++],n[a]);return r}});var Ro=o((tT,qo)=>{"use strict";var ac=Cr();qo.exports=ac("document","documentElement")});var pt=o((nT,Mo)=>{"use strict";var uc=W(),lc=So(),Po=at(),cc=Fe(),pc=Ro(),fc=qr(),vc=De(),_o=">",Ao="<",lt="prototype",ct="script",Lo=vc("IE_PROTO"),ut=function(){},No=function(e){return Ao+ct+_o+e+Ao+"/"+ct+_o},Co=function(e){e.write(No("")),e.close();var r=e.parentWindow.Object;return e=null,r},bc=function(){var e=fc("iframe"),r="java"+ct+":",t;return e.style.display="none",pc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(No("document.F=Object")),t.close(),t.F},Be,Qe=function(){try{Be=new ActiveXObject("htmlfile")}catch(r){}Qe=typeof document!="undefined"?document.domain&&Be?Co(Be):bc():Co(Be);for(var e=Po.length;e--;)delete Qe[lt][Po[e]];return Qe()};cc[Lo]=!0;Mo.exports=Object.create||function(r,t){var n;return r!==null?(ut[lt]=uc(r),n=new ut,ut[lt]=null,n[Lo]=r):n=Qe(),t===void 0?n:lc.f(n,t)}});var ko=o((iT,jo)=>{"use strict";var dc=A();jo.exports=!dc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var vt=o((oT,Do)=>{"use strict";var Tc=j(),mc=E(),hc=Gr(),yc=De(),gc=ko(),Vo=yc("IE_PROTO"),ft=Object,Ic=ft.prototype;Do.exports=gc?ft.getPrototypeOf:function(e){var r=hc(e);if(Tc(r,Vo))return r[Vo];var t=r.constructor;return mc(t)&&r instanceof t?t.prototype:r instanceof ft?Ic:null}});var bt=o((sT,Fo)=>{"use strict";var Oc=J();Fo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Oc(e,r,t),e}});var ht=o((aT,Bo)=>{"use strict";var xc=A(),wc=E(),Ec=M(),Sc=pt(),Uo=vt(),qc=bt(),Rc=k(),Pc=le(),mt=Rc("iterator"),Go=!1,V,dt,Tt;[].keys&&(Tt=[].keys(),"next"in Tt?(dt=Uo(Uo(Tt)),dt!==Object.prototype&&(V=dt)):Go=!0);var _c=!Ec(V)||xc(function(){var e={};return V[mt].call(e)!==e});_c?V={}:Pc&&(V=Sc(V));wc(V[mt])||qc(V,mt,function(){return this});Bo.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Go}});var We=o((uT,Wo)=>{"use strict";var Ac=k(),Cc=Ac("toStringTag"),Qo={};Qo[Cc]="z";Wo.exports=String(Qo)==="[object z]"});var yt=o((lT,$o)=>{"use strict";var Lc=We(),Nc=E(),$e=Pe(),Mc=k(),jc=Mc("toStringTag"),kc=Object,Vc=$e(function(){return arguments}())==="Arguments",Dc=function(e,r){try{return e[r]}catch(t){}};$o.exports=Lc?$e:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Dc(r=kc(e),jc))=="string"?t:Vc?$e(r):(n=$e(r))==="Object"&&Nc(r.callee)?"Arguments":n}});var Yo=o((cT,zo)=>{"use strict";var Fc=We(),Uc=yt();zo.exports=Fc?{}.toString:function(){return"[object "+Uc(this)+"]"}});var ze=o((pT,Ho)=>{"use strict";var Gc=We(),Bc=X().f,Qc=J(),Wc=j(),$c=Yo(),zc=k(),Ko=zc("toStringTag");Ho.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Wc(i,Ko)||Bc(i,Ko,{configurable:!0,value:r}),n&&!Gc&&Qc(i,"toString",$c))}});var Jo=o((fT,Xo)=>{"use strict";var Yc=ht().IteratorPrototype,Kc=pt(),Hc=ce(),Xc=ze(),Jc=Q(),Zc=function(){return this};Xo.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Kc(Yc,{next:Hc(+!n,t)}),Xc(e,i,!1,!0),Jc[i]=Zc,e}});var es=o((vT,Zo)=>{"use strict";var ep=N(),rp=ue();Zo.exports=function(e,r,t){try{return ep(rp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ts=o((bT,rs)=>{"use strict";var tp=M();rs.exports=function(e){return tp(e)||e===null}});var is=o((dT,ns)=>{"use strict";var np=ts(),ip=String,op=TypeError;ns.exports=function(e){if(np(e))return e;throw new op("Can't set "+ip(e)+" as a prototype")}});var ss=o((TT,os)=>{"use strict";var sp=es(),ap=M(),up=Ae(),lp=is();os.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=sp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,s){return up(i),lp(s),ap(i)&&(e?t(i,s):i.__proto__=s),i}}():void 0)});var ms=o((mT,Ts)=>{"use strict";var cp=rt(),pp=F(),Ye=le(),bs=so(),fp=E(),vp=Jo(),as=vt(),us=ss(),bp=ze(),dp=J(),gt=bt(),Tp=k(),ls=Q(),ds=ht(),mp=bs.PROPER,hp=bs.CONFIGURABLE,cs=ds.IteratorPrototype,Ke=ds.BUGGY_SAFARI_ITERATORS,be=Tp("iterator"),ps="keys",de="values",fs="entries",vs=function(){return this};Ts.exports=function(e,r,t,n,i,s,u){vp(t,r,n);var a=function(y){if(y===i&&b)return b;if(!Ke&&y&&y in c)return c[y];switch(y){case ps:return function(){return new t(this,y)};case de:return function(){return new t(this,y)};case fs:return function(){return new t(this,y)}}return function(){return new t(this)}},f=r+" Iterator",l=!1,c=e.prototype,p=c[be]||c["@@iterator"]||i&&c[i],b=!Ke&&p||a(i),d=r==="Array"&&c.entries||p,m,h,I;if(d&&(m=as(d.call(new e)),m!==Object.prototype&&m.next&&(!Ye&&as(m)!==cs&&(us?us(m,cs):fp(m[be])||gt(m,be,vs)),bp(m,f,!0,!0),Ye&&(ls[f]=vs))),mp&&i===de&&p&&p.name!==de&&(!Ye&&hp?dp(c,"name",de):(l=!0,b=function(){return pp(p,this)})),i)if(h={values:a(de),keys:s?b:a(ps),entries:a(fs)},u)for(I in h)(Ke||l||!(I in c))&&gt(c,I,h[I]);else cp({target:r,proto:!0,forced:Ke||l},h);return(!Ye||u)&&c[be]!==b&&gt(c,be,b,{name:i}),ls[r]=b,h}});var ys=o((hT,hs)=>{"use strict";hs.exports=function(e,r){return{value:e,done:r}}});var Ot=o((yT,ws)=>{"use strict";var yp=K(),It=wn(),gs=Q(),Os=Vi(),gp=X().f,Ip=ms(),He=ys(),Op=le(),xp=C(),xs="Array Iterator",wp=Os.set,Ep=Os.getterFor(xs);ws.exports=Ip(Array,"Array",function(e,r){wp(this,{type:xs,target:yp(e),index:0,kind:r})},function(){var e=Ep(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,He(void 0,!0);switch(e.kind){case"keys":return He(t,!1);case"values":return He(r[t],!1)}return He([t,r[t]],!1)},"values");var Is=gs.Arguments=gs.Array;It("keys");It("values");It("entries");if(!Op&&xp&&Is.name!=="values")try{gp(Is,"name",{value:"values"})}catch(e){}});var Ss=o((gT,Es)=>{"use strict";var Sp=k(),qp=Q(),Rp=Sp("iterator"),Pp=Array.prototype;Es.exports=function(e){return e!==void 0&&(qp.Array===e||Pp[Rp]===e)}});var xt=o((IT,Rs)=>{"use strict";var _p=yt(),qs=je(),Ap=_e(),Cp=Q(),Lp=k(),Np=Lp("iterator");Rs.exports=function(e){if(!Ap(e))return qs(e,Np)||qs(e,"@@iterator")||Cp[_p(e)]}});var _s=o((OT,Ps)=>{"use strict";var Mp=F(),jp=ue(),kp=W(),Vp=Me(),Dp=xt(),Fp=TypeError;Ps.exports=function(e,r){var t=arguments.length<2?Dp(e):r;if(jp(t))return kp(Mp(t,e));throw new Fp(Vp(e)+" is not iterable")}});var Ls=o((xT,Cs)=>{"use strict";var Up=F(),As=W(),Gp=je();Cs.exports=function(e,r,t){var n,i;As(e);try{if(n=Gp(e,"return"),!n){if(r==="throw")throw t;return t}n=Up(n,e)}catch(s){i=!0,n=s}if(r==="throw")throw t;if(i)throw n;return As(n),t}});var Vs=o((wT,ks)=>{"use strict";var Bp=et(),Qp=F(),Wp=W(),$p=Me(),zp=Ss(),Yp=ot(),Ns=Lr(),Kp=_s(),Hp=xt(),Ms=Ls(),Xp=TypeError,Xe=function(e,r){this.stopped=e,this.result=r},js=Xe.prototype;ks.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),f=Bp(r,n),l,c,p,b,d,m,h,I=function(g){return l&&Ms(l,"normal",g),new Xe(!0,g)},y=function(g){return i?(Wp(g),a?f(g[0],g[1],I):f(g[0],g[1])):a?f(g,I):f(g)};if(s)l=e.iterator;else if(u)l=e;else{if(c=Hp(e),!c)throw new Xp($p(e)+" is not iterable");if(zp(c)){for(p=0,b=Yp(e);b>p;p++)if(d=y(e[p]),d&&Ns(js,d))return d;return new Xe(!1)}l=Kp(e,c)}for(m=s?e.next:l.next;!(h=Qp(m,l)).done;){try{d=y(h.value)}catch(g){Ms(l,"throw",g)}if(typeof d=="object"&&d&&Ns(js,d))return d}return new Xe(!1)}});var Fs=o((ET,Ds)=>{"use strict";var Jp=C(),Zp=X(),ef=ce();Ds.exports=function(e,r,t){Jp?Zp.f(e,r,ef(0,t)):e[r]=t}});var Us=o(()=>{"use strict";var rf=rt(),tf=Vs(),nf=Fs();rf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return tf(r,function(n,i){nf(t,n,i)},{AS_ENTRIES:!0}),t}})});var Bs=o((RT,Gs)=>{"use strict";Ot();Us();var of=Le();Gs.exports=of.Object.fromEntries});var Ws=o((PT,Qs)=>{"use strict";Qs.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var zs=o(()=>{"use strict";Ot();var sf=Ws(),af=w(),uf=ze(),$s=Q();for(Je in sf)uf(af[Je],Je),$s[Je]=$s.Array;var Je});var Ks=o((CT,Ys)=>{"use strict";var lf=Bs();zs();Ys.exports=lf});var Xs=o((LT,Hs)=>{"use strict";var cf=Ks();Hs.exports=cf});var df={};qt(df,{ErrorCategory:()=>un,InterfaceLanguage:()=>ea,Logger:()=>ye,Observable:()=>v,Subject:()=>L,Subscription:()=>x,VERSION:()=>Pt,VKNumericLanguage:()=>Zs,ValueSubject:()=>te,VideoQuality:()=>Oe,abortable:()=>Vt,addScript:()=>Mt,areQualitiesExact:()=>Ht,assertEmptyArray:()=>Nt,assertNever:()=>_,assertNonNullable:()=>At,assertNotEmptyArray:()=>Lt,assertNullable:()=>Ct,assertQualityIsExact:()=>Xt,buffer:()=>or,checkNever:()=>_t,clearVideoElement:()=>rn,clientChecker:()=>Dt,cloneDeep:()=>Zt,cloneDeepWith:()=>re,combine:()=>tr,debounce:()=>ar,debounceFn:()=>Ee,detectEmbed:()=>Ut,fillWithDefault:()=>Jt,filter:()=>pr,filterChanged:()=>vr,fromEvent:()=>sn,getExponentialDelay:()=>Ft,getHighestQuality:()=>Wt,interval:()=>nn,isHigher:()=>Gt,isHigherOrEqual:()=>Bt,isInvariantQuality:()=>we,isLower:()=>xe,isLowerOrEqual:()=>Qt,isMobile:()=>er,isNonNullable:()=>G,isNullable:()=>ge,loadVKLangPack:()=>ff,map:()=>ne,mapTo:()=>dr,merge:()=>nr,noop:()=>D,now:()=>kt,observableFrom:()=>on,observeElementSize:()=>en,once:()=>Tr,pairwise:()=>hr,safeStorage:()=>Ie,tap:()=>gr,throttle:()=>lr,throttleFn:()=>Se,timeCodeToString:()=>ma,timeout:()=>tn,videoHeightToQuality:()=>zt,videoQualityToHeight:()=>Kt,videoSizeToQuality:()=>Yt});module.exports=ca(df);var Pt="1.0.40-dev.c0101e19.0";var x=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var _=e=>{throw new Error(`${e} is value of unexpected type`)},_t=e=>{};var D=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:a=>t.next(a),error:a=>{var f;return(f=t.error)==null?void 0:f.call(t,a)}}:n={next:D,error:D};let i=typeof r=="function"?{next:a=>{try{r(a)}catch(f){n.next(f)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},s;try{s=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new x().add(()=>{switch(i.next=D,i.error=D,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return _(s)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var ye=class{constructor(){this.log$=new L;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};function At(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ct(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e!="undefined"&&e!==null}function ge(e){return e==null}function Lt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Nt(e,r){if(e!=null&&e.length)throw new Error(r)}var Mt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),l.remove()});let s=()=>{a(),i()},u=()=>{a(),n()},a=()=>{f&&clearTimeout(f),l.removeEventListener("load",u),l.removeEventListener("error",s)},f;t&&(f=window.setTimeout(s,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",s),l.src=e,document.head.appendChild(l)});var jt,kt=typeof((jt=window.performance)==null?void 0:jt.now)=="function"?()=>window.performance.now():()=>Date.now();var Vt=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,s;for(;!i&&!e.aborted;)try{let a=await n.next(s);i=(u=a.done)!=null?u:!1,s=a.value}catch(a){await n.throw(a)}return s};var er=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},Ze=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=er()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,s=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,f=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||f||l||i||s||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,s=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||s||a||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Dt=new Ze;var Ft=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:s=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Ie={};qt(Ie,{clear:()=>Ta,get:()=>fa,has:()=>ba,isPersistent:()=>pa,remove:()=>da,set:()=>va});var O,B,rr=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(B!==void 0)return B;try{localStorage.setItem(rr,"test"),localStorage.removeItem(rr),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(rr),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(O=new Map),B},pa=()=>z()===0,fa=e=>{var t,n;let r=z();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:_(r)}},va=(e,r)=>{let t=z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:_(t)}},ba=e=>{var t;let r=z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return _(r),!1}},da=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:_(r)}},Ta=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:_(e)}};var Ut=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Oe=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Oe||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Gt=(e,r)=>S[e].height>S[r].height,Bt=(e,r)=>S[e].height>=S[r].height,xe=(e,r)=>S[e].height<S[r].height,Qt=(e,r)=>S[e].height<=S[r].height,Wt=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:xe(r,t)?1:-1)[0],$t=Object.keys(S).sort((e,r)=>xe(e,r)?-1:1),zt=(e,r=.02)=>[...$t].find(n=>S[n].height*(1+r)>=e),Yt=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return $t.find(i=>{let s=S[i];return s.width>=n&&s.height>=t})},Kt=e=>S[e].height,we=e=>e==="Invariant quality",Ht=e=>e.every(r=>!we(r));function Xt(e){if(we(e))throw new Error("Expected exact quality")}var Jt=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],s=e[n];Array.isArray(i)&&Array.isArray(s)?t[n]=s:typeof i=="object"&&typeof s=="object"?t[n]=Jt(s,i):t[n]=n in e?s:i}return t};var ma=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Ee(e,r=0,t){let n,i,s,u,a,f,l=0,c=!1,p=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(c=!!t.leading,p="maxWait"in t,s=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):s,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,U=i;return n=i=void 0,l=T,u=e.apply(U,q),u}function h(T,q){return d?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function y(T){return l=T,a=h(Te,r),c?m(T):u}function g(T){let q=T-f,U=T-l,St=r-q;return p?Math.min(St,s-U):St}function wt(T){let q=T-f,U=T-l;return f===void 0||q>=r||q<0||p&&U>=s}function Te(){let T=Date.now();if(wt(T))return Et(T);a=h(Te,g(T))}function Et(T){return a=void 0,b&&n?m(T):(n=i=void 0,u)}function ra(){a!==void 0&&I(a),l=0,n=f=i=a=void 0}function ta(){return a===void 0?u:Et(Date.now())}function na(){return a!==void 0}function me(...T){let q=Date.now(),U=wt(q);if(n=T,i=this,f=q,U){if(a===void 0)return y(f);if(p)return a=h(Te,r),m(f)}return a===void 0&&(a=h(Te,r)),u}return me.cancel=ra,me.flush=ta,me.pending=na,me}var Se=(e,r=0,t)=>Ee(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var re=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=re(e[n],r):t[n]=e[n]}return t};var Zt=e=>re(e);var ha=300,en=(e,r=ha)=>new v(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(Se(u=>{let a=u[0];if(!a)return;let f,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,f=a.contentBoxSize[0].inlineSize):a.contentRect&&(f=a.contentRect.width,l=a.contentRect.height),G(f)&&G(l)&&t.next({width:f,height:l})},r));return s.observe(e),()=>s.disconnect()});var rn=e=>{e.removeAttribute("src"),e.load()};var te=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function tr(e){return new v(r=>{let t={},n=Object.keys(e).length,i=s=>u=>{s in t||n--,t[s]=u,n===0&&r.next(t)};return Object.entries(e).reduce((s,[u,a])=>s.add(a.subscribe(i(u))),new x)})}function nr(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var tn=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var nn=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var on=e=>new v(r=>{e.forEach(t=>r.next(t))});var sn=(e,r)=>new v(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function or(e){return r=>new v(t=>r.subscribe(new ir(t,e)))}var ir=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ya={leading:!1,trailing:!0};function ar(e,r=ya){return t=>new v(n=>t.subscribe(new sr(n,e,r)))}var sr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,G(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ga={leading:!0,trailing:!1};function lr(e,r=ga){return t=>new v(n=>t.subscribe(new ur(n,e,r)))}var ur=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,ge(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function pr(e){return r=>new v(t=>r.subscribe(new cr(t,e)))}var cr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function vr(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new fr(t,e)))}var an={},fr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=an}next(r){let t;try{t=this.lastValue===an||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ne(e){return r=>new v(t=>r.subscribe(new br(t,e)))}var br=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function dr(e){return ne(()=>e)}function Tr(){return e=>new v(r=>{let t=!1,n=!1,i=e.subscribe(s=>{t||(t=!0,r.next(s)),n&&i.unsubscribe()},s=>{var u;t=!0,(u=r.error)==null||u.call(r,s),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function hr(){return e=>new v(r=>e.subscribe(new mr(r)))}var mr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function gr(e){return r=>new v(t=>r.subscribe(new yr(t,e)))}var yr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var un=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(un||{});var qe=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,s=n.length;i<s;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,s=n.length;i<s;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},Y=class extends qe{constructor(){super(),this.listeners||qe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},ie=class{constructor(){Object.defineProperty(this,"signal",{value:new Y,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ie.prototype[Symbol.toStringTag]="AbortController",Y.prototype[Symbol.toStringTag]="AbortSignal");function Re(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Ir(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Re({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:s};let s=t;(s&&!s.prototype.hasOwnProperty("signal")||i)&&(s=function(l,c){let p;c&&c.signal&&(p=c.signal,delete c.signal);let b=new t(l,c);return p&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),b},s.prototype=t.prototype);let u=r;return{fetch:(f,l)=>{let c=s&&s.prototype.isPrototypeOf(f)?f.signal:l?l.signal:void 0;if(c){let p;try{p=new DOMException("Aborted","AbortError")}catch(d){p=new Error("Aborted"),p.name="AbortError"}if(c.aborted)return Promise.reject(p);let b=new Promise((d,m)=>{c.addEventListener("abort",()=>m(p),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(f,l)])}return u(f,l)},Request:s}}var oe=Re({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),ln=oe?Ir({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,cn=oe?ln.fetch:window.fetch,Ub=oe?ln.Request:window.Request,Gb=oe?ie:window.AbortController,Bb=oe?Y:window.AbortSignal;var Js=la(Xs(),1),Zs=(p=>(p.Armenian="58",p.Azerbaijani="57",p.Belarusian="114",p.English="3",p.Kazakh="97",p.Portuguese="73",p.Russian="0",p.Spanish="4",p.Ukrainian="1",p.Uzbek="65",p.Vietnamese="75",p))(Zs||{}),pf="vk.com",ff=async(e,r,t)=>{let n=new URL(`https://${pf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let s=await(await cn(n.toString())).json();return vf(s,t)},vf=(e,r)=>(0,Js.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),bf(n)])),bf=e=>Array.isArray(e)?e[0]:e;var ea=(t=>(t.RU="ru",t.EN="en",t))(ea||{});
package/es2018.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.39
3
- * Mon, 26 Aug 2024 13:06:59 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-39/doc/
2
+ * @vkontakte/videoplayer-shared v1.0.40-dev.c0101e19.0
3
+ * Thu, 29 Aug 2024 21:32:16 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-40/doc/
5
5
  */
6
- var ws=Object.create;var Qe=Object.defineProperty;var Es=Object.getOwnPropertyDescriptor;var Ss=Object.getOwnPropertyNames;var qs=Object.getPrototypeOf,Rs=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ps=(e,r)=>{for(var t in r)Qe(e,t,{get:r[t],enumerable:!0})},_s=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ss(r))!Rs.call(e,i)&&i!==t&&Qe(e,i,{get:()=>r[i],enumerable:!(n=Es(r,i))||n.enumerable});return e};var As=(e,r,t)=>(t=e!=null?ws(qs(e)):{},_s(r||!e||!e.__esModule?Qe(t,"default",{value:e,enumerable:!0}):t,e));var _=o((Gb,Ct)=>{"use strict";Ct.exports=function(e){try{return!!e()}catch(r){return!0}}});var ne=o((Bb,Lt)=>{"use strict";var ma=_();Lt.exports=!ma(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var L=o((Qb,jt)=>{"use strict";var Nt=ne(),Mt=Function.prototype,cr=Mt.call,ha=Nt&&Mt.bind.bind(cr,cr);jt.exports=Nt?ha:function(e){return function(){return cr.apply(e,arguments)}}});var ge=o((Wb,Vt)=>{"use strict";var kt=L(),ya=kt({}.toString),ga=kt("".slice);Vt.exports=function(e){return ga(ya(e),8,-1)}});var Ft=o(($b,Dt)=>{"use strict";var Ia=L(),Oa=_(),xa=ge(),pr=Object,wa=Ia("".split);Dt.exports=Oa(function(){return!pr("z").propertyIsEnumerable(0)})?function(e){return xa(e)==="String"?wa(e,""):pr(e)}:pr});var Ie=o((zb,Ut)=>{"use strict";Ut.exports=function(e){return e==null}});var Oe=o((Yb,Gt)=>{"use strict";var Ea=Ie(),Sa=TypeError;Gt.exports=function(e){if(Ea(e))throw new Sa("Can't call method on "+e);return e}});var K=o((Kb,Bt)=>{"use strict";var qa=Ft(),Ra=Oe();Bt.exports=function(e){return qa(Ra(e))}});var Wt=o((Hb,Qt)=>{"use strict";Qt.exports=function(){}});var B=o((Xb,$t)=>{"use strict";$t.exports={}});var x=o((fr,zt)=>{"use strict";var ie=function(e){return e&&e.Math===Math&&e};zt.exports=ie(typeof globalThis=="object"&&globalThis)||ie(typeof window=="object"&&window)||ie(typeof self=="object"&&self)||ie(typeof global=="object"&&global)||ie(typeof fr=="object"&&fr)||function(){return this}()||Function("return this")()});var w=o((Jb,Yt)=>{"use strict";var vr=typeof document=="object"&&document.all;Yt.exports=typeof vr=="undefined"&&vr!==void 0?function(e){return typeof e=="function"||e===vr}:function(e){return typeof e=="function"}});var Xt=o((Zb,Ht)=>{"use strict";var Pa=x(),_a=w(),Kt=Pa.WeakMap;Ht.exports=_a(Kt)&&/native code/.test(String(Kt))});var N=o((ed,Jt)=>{"use strict";var Aa=w();Jt.exports=function(e){return typeof e=="object"?e!==null:Aa(e)}});var A=o((rd,Zt)=>{"use strict";var Ca=_();Zt.exports=!Ca(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var dr=o((td,rn)=>{"use strict";var La=x(),en=N(),br=La.document,Na=en(br)&&en(br.createElement);rn.exports=function(e){return Na?br.createElement(e):{}}});var Tr=o((nd,tn)=>{"use strict";var Ma=A(),ja=_(),ka=dr();tn.exports=!Ma&&!ja(function(){return Object.defineProperty(ka("div"),"a",{get:function(){return 7}}).a!==7})});var mr=o((id,nn)=>{"use strict";var Va=A(),Da=_();nn.exports=Va&&Da(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=o((od,on)=>{"use strict";var Fa=N(),Ua=String,Ga=TypeError;on.exports=function(e){if(Fa(e))return e;throw new Ga(Ua(e)+" is not an object")}});var D=o((sd,sn)=>{"use strict";var Ba=ne(),xe=Function.prototype.call;sn.exports=Ba?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var we=o((ad,an)=>{"use strict";an.exports={}});var gr=o((ud,ln)=>{"use strict";var hr=we(),yr=x(),Qa=w(),un=function(e){return Qa(e)?e:void 0};ln.exports=function(e,r){return arguments.length<2?un(hr[e])||un(yr[e]):hr[e]&&hr[e][r]||yr[e]&&yr[e][r]}});var Ir=o((ld,cn)=>{"use strict";var Wa=L();cn.exports=Wa({}.isPrototypeOf)});var bn=o((cd,vn)=>{"use strict";var $a=x(),pn=$a.navigator,fn=pn&&pn.userAgent;vn.exports=fn?String(fn):""});var In=o((pd,gn)=>{"use strict";var yn=x(),Or=bn(),dn=yn.process,Tn=yn.Deno,mn=dn&&dn.versions||Tn&&Tn.version,hn=mn&&mn.v8,R,Ee;hn&&(R=hn.split("."),Ee=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ee&&Or&&(R=Or.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Or.match(/Chrome\/(\d+)/),R&&(Ee=+R[1])));gn.exports=Ee});var xr=o((fd,xn)=>{"use strict";var On=In(),za=_(),Ya=x(),Ka=Ya.String;xn.exports=!!Object.getOwnPropertySymbols&&!za(function(){var e=Symbol("symbol detection");return!Ka(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&On&&On<41})});var wr=o((vd,wn)=>{"use strict";var Ha=xr();wn.exports=Ha&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Er=o((bd,En)=>{"use strict";var Xa=gr(),Ja=w(),Za=Ir(),eu=wr(),ru=Object;En.exports=eu?function(e){return typeof e=="symbol"}:function(e){var r=Xa("Symbol");return Ja(r)&&Za(r.prototype,ru(e))}});var Se=o((dd,Sn)=>{"use strict";var tu=String;Sn.exports=function(e){try{return tu(e)}catch(r){return"Object"}}});var oe=o((Td,qn)=>{"use strict";var nu=w(),iu=Se(),ou=TypeError;qn.exports=function(e){if(nu(e))return e;throw new ou(iu(e)+" is not a function")}});var qe=o((md,Rn)=>{"use strict";var su=oe(),au=Ie();Rn.exports=function(e,r){var t=e[r];return au(t)?void 0:su(t)}});var _n=o((hd,Pn)=>{"use strict";var Sr=D(),qr=w(),Rr=N(),uu=TypeError;Pn.exports=function(e,r){var t,n;if(r==="string"&&qr(t=e.toString)&&!Rr(n=Sr(t,e))||qr(t=e.valueOf)&&!Rr(n=Sr(t,e))||r!=="string"&&qr(t=e.toString)&&!Rr(n=Sr(t,e)))return n;throw new uu("Can't convert object to primitive value")}});var se=o((yd,An)=>{"use strict";An.exports=!0});var Nn=o((gd,Ln)=>{"use strict";var Cn=x(),lu=Object.defineProperty;Ln.exports=function(e,r){try{lu(Cn,e,{value:r,configurable:!0,writable:!0})}catch(t){Cn[e]=r}return r}});var Re=o((Id,kn)=>{"use strict";var cu=se(),pu=x(),fu=Nn(),Mn="__core-js_shared__",jn=kn.exports=pu[Mn]||fu(Mn,{});(jn.versions||(jn.versions=[])).push({version:"3.38.0",mode:cu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Pr=o((Od,Dn)=>{"use strict";var Vn=Re();Dn.exports=function(e,r){return Vn[e]||(Vn[e]=r||{})}});var _r=o((xd,Fn)=>{"use strict";var vu=Oe(),bu=Object;Fn.exports=function(e){return bu(vu(e))}});var M=o((wd,Un)=>{"use strict";var du=L(),Tu=_r(),mu=du({}.hasOwnProperty);Un.exports=Object.hasOwn||function(r,t){return mu(Tu(r),t)}});var Ar=o((Ed,Gn)=>{"use strict";var hu=L(),yu=0,gu=Math.random(),Iu=hu(1 .toString);Gn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Iu(++yu+gu,36)}});var j=o((Sd,Qn)=>{"use strict";var Ou=x(),xu=Pr(),Bn=M(),wu=Ar(),Eu=xr(),Su=wr(),H=Ou.Symbol,Cr=xu("wks"),qu=Su?H.for||H:H&&H.withoutSetter||wu;Qn.exports=function(e){return Bn(Cr,e)||(Cr[e]=Eu&&Bn(H,e)?H[e]:qu("Symbol."+e)),Cr[e]}});var Yn=o((qd,zn)=>{"use strict";var Ru=D(),Wn=N(),$n=Er(),Pu=qe(),_u=_n(),Au=j(),Cu=TypeError,Lu=Au("toPrimitive");zn.exports=function(e,r){if(!Wn(e)||$n(e))return e;var t=Pu(e,Lu),n;if(t){if(r===void 0&&(r="default"),n=Ru(t,e,r),!Wn(n)||$n(n))return n;throw new Cu("Can't convert object to primitive value")}return r===void 0&&(r="number"),_u(e,r)}});var Lr=o((Rd,Kn)=>{"use strict";var Nu=Yn(),Mu=Er();Kn.exports=function(e){var r=Nu(e,"string");return Mu(r)?r:r+""}});var X=o(Xn=>{"use strict";var ju=A(),ku=Tr(),Vu=mr(),Pe=Q(),Hn=Lr(),Du=TypeError,Nr=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Mr="enumerable",jr="configurable",kr="writable";Xn.f=ju?Vu?function(r,t,n){if(Pe(r),t=Hn(t),Pe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&kr in n&&!n[kr]){var i=Fu(r,t);i&&i[kr]&&(r[t]=n.value,n={configurable:jr in n?n[jr]:i[jr],enumerable:Mr in n?n[Mr]:i[Mr],writable:!1})}return Nr(r,t,n)}:Nr:function(r,t,n){if(Pe(r),t=Hn(t),Pe(n),ku)try{return Nr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Du("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ae=o((_d,Jn)=>{"use strict";Jn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var J=o((Ad,Zn)=>{"use strict";var Uu=A(),Gu=X(),Bu=ae();Zn.exports=Uu?function(e,r,t){return Gu.f(e,r,Bu(1,t))}:function(e,r,t){return e[r]=t,e}});var _e=o((Cd,ri)=>{"use strict";var Qu=Pr(),Wu=Ar(),ei=Qu("keys");ri.exports=function(e){return ei[e]||(ei[e]=Wu(e))}});var Ae=o((Ld,ti)=>{"use strict";ti.exports={}});var si=o((Nd,oi)=>{"use strict";var $u=Xt(),ii=x(),zu=N(),Yu=J(),Vr=M(),Dr=Re(),Ku=_e(),Hu=Ae(),ni="Object already initialized",Fr=ii.TypeError,Xu=ii.WeakMap,Ce,ue,Le,Ju=function(e){return Le(e)?ue(e):Ce(e,{})},Zu=function(e){return function(r){var t;if(!zu(r)||(t=ue(r)).type!==e)throw new Fr("Incompatible receiver, "+e+" required");return t}};$u||Dr.state?(P=Dr.state||(Dr.state=new Xu),P.get=P.get,P.has=P.has,P.set=P.set,Ce=function(e,r){if(P.has(e))throw new Fr(ni);return r.facade=e,P.set(e,r),r},ue=function(e){return P.get(e)||{}},Le=function(e){return P.has(e)}):(W=Ku("state"),Hu[W]=!0,Ce=function(e,r){if(Vr(e,W))throw new Fr(ni);return r.facade=e,Yu(e,W,r),r},ue=function(e){return Vr(e,W)?e[W]:{}},Le=function(e){return Vr(e,W)});var P,W;oi.exports={set:Ce,get:ue,has:Le,enforce:Ju,getterFor:Zu}});var pi=o((Md,ci)=>{"use strict";var el=ne(),li=Function.prototype,ai=li.apply,ui=li.call;ci.exports=typeof Reflect=="object"&&Reflect.apply||(el?ui.bind(ai):function(){return ui.apply(ai,arguments)})});var Ur=o((jd,fi)=>{"use strict";var rl=ge(),tl=L();fi.exports=function(e){if(rl(e)==="Function")return tl(e)}});var Ti=o(di=>{"use strict";var vi={}.propertyIsEnumerable,bi=Object.getOwnPropertyDescriptor,nl=bi&&!vi.call({1:2},1);di.f=nl?function(r){var t=bi(this,r);return!!t&&t.enumerable}:vi});var yi=o(hi=>{"use strict";var il=A(),ol=D(),sl=Ti(),al=ae(),ul=K(),ll=Lr(),cl=M(),pl=Tr(),mi=Object.getOwnPropertyDescriptor;hi.f=il?mi:function(r,t){if(r=ul(r),t=ll(t),pl)try{return mi(r,t)}catch(n){}if(cl(r,t))return al(!ol(sl.f,r,t),r[t])}});var Ii=o((Dd,gi)=>{"use strict";var fl=_(),vl=w(),bl=/#|\.prototype\./,le=function(e,r){var t=Tl[dl(e)];return t===hl?!0:t===ml?!1:vl(r)?fl(r):!!r},dl=le.normalize=function(e){return String(e).replace(bl,".").toLowerCase()},Tl=le.data={},ml=le.NATIVE="N",hl=le.POLYFILL="P";gi.exports=le});var Gr=o((Fd,xi)=>{"use strict";var Oi=Ur(),yl=oe(),gl=ne(),Il=Oi(Oi.bind);xi.exports=function(e,r){return yl(e),r===void 0?e:gl?Il(e,r):function(){return e.apply(r,arguments)}}});var Br=o((Ud,Ei)=>{"use strict";var ce=x(),Ol=pi(),xl=Ur(),wl=w(),El=yi().f,Sl=Ii(),Z=we(),ql=Gr(),ee=J(),wi=M();Re();var Rl=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Ol(e,this,arguments)};return r.prototype=e.prototype,r};Ei.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,u=n?ce:i?ce[t]:ce[t]&&ce[t].prototype,a=n?Z:Z[t]||ee(Z,t,{})[t],f=a.prototype,l,c,p,b,d,m,h,I,y;for(b in r)l=Sl(n?b:t+(i?".":"#")+b,e.forced),c=!l&&u&&wi(u,b),m=a[b],c&&(e.dontCallGetSet?(y=El(u,b),h=y&&y.value):h=u[b]),d=c&&h?h:r[b],!(!l&&!s&&typeof m==typeof d)&&(e.bind&&c?I=ql(d,ce):e.wrap&&c?I=Rl(d):s&&wl(d)?I=xl(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&ee(I,"sham",!0),ee(a,b,I),s&&(p=t+"Prototype",wi(Z,p)||ee(Z,p,{}),ee(Z[p],b,d),e.real&&f&&(l||!f[b])&&ee(f,b,d)))}});var Ri=o((Gd,qi)=>{"use strict";var Qr=A(),Pl=M(),Si=Function.prototype,_l=Qr&&Object.getOwnPropertyDescriptor,Wr=Pl(Si,"name"),Al=Wr&&function(){}.name==="something",Cl=Wr&&(!Qr||Qr&&_l(Si,"name").configurable);qi.exports={EXISTS:Wr,PROPER:Al,CONFIGURABLE:Cl}});var _i=o((Bd,Pi)=>{"use strict";var Ll=Math.ceil,Nl=Math.floor;Pi.exports=Math.trunc||function(r){var t=+r;return(t>0?Nl:Ll)(t)}});var $r=o((Qd,Ai)=>{"use strict";var Ml=_i();Ai.exports=function(e){var r=+e;return r!==r||r===0?0:Ml(r)}});var Li=o((Wd,Ci)=>{"use strict";var jl=$r(),kl=Math.max,Vl=Math.min;Ci.exports=function(e,r){var t=jl(e);return t<0?kl(t+r,0):Vl(t,r)}});var Mi=o(($d,Ni)=>{"use strict";var Dl=$r(),Fl=Math.min;Ni.exports=function(e){var r=Dl(e);return r>0?Fl(r,9007199254740991):0}});var zr=o((zd,ji)=>{"use strict";var Ul=Mi();ji.exports=function(e){return Ul(e.length)}});var Di=o((Yd,Vi)=>{"use strict";var Gl=K(),Bl=Li(),Ql=zr(),ki=function(e){return function(r,t,n){var i=Gl(r),s=Ql(i);if(s===0)return!e&&-1;var u=Bl(n,s),a;if(e&&t!==t){for(;s>u;)if(a=i[u++],a!==a)return!0}else for(;s>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Vi.exports={includes:ki(!0),indexOf:ki(!1)}});var Gi=o((Kd,Ui)=>{"use strict";var Wl=L(),Yr=M(),$l=K(),zl=Di().indexOf,Yl=Ae(),Fi=Wl([].push);Ui.exports=function(e,r){var t=$l(e),n=0,i=[],s;for(s in t)!Yr(Yl,s)&&Yr(t,s)&&Fi(i,s);for(;r.length>n;)Yr(t,s=r[n++])&&(~zl(i,s)||Fi(i,s));return i}});var Kr=o((Hd,Bi)=>{"use strict";Bi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Wi=o((Xd,Qi)=>{"use strict";var Kl=Gi(),Hl=Kr();Qi.exports=Object.keys||function(r){return Kl(r,Hl)}});var zi=o($i=>{"use strict";var Xl=A(),Jl=mr(),Zl=X(),ec=Q(),rc=K(),tc=Wi();$i.f=Xl&&!Jl?Object.defineProperties:function(r,t){ec(r);for(var n=rc(t),i=tc(t),s=i.length,u=0,a;s>u;)Zl.f(r,a=i[u++],n[a]);return r}});var Ki=o((Zd,Yi)=>{"use strict";var nc=gr();Yi.exports=nc("document","documentElement")});var Zr=o((eT,to)=>{"use strict";var ic=Q(),oc=zi(),Hi=Kr(),sc=Ae(),ac=Ki(),uc=dr(),lc=_e(),Xi=">",Ji="<",Xr="prototype",Jr="script",eo=lc("IE_PROTO"),Hr=function(){},ro=function(e){return Ji+Jr+Xi+e+Ji+"/"+Jr+Xi},Zi=function(e){e.write(ro("")),e.close();var r=e.parentWindow.Object;return e=null,r},cc=function(){var e=uc("iframe"),r="java"+Jr+":",t;return e.style.display="none",ac.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ro("document.F=Object")),t.close(),t.F},Ne,Me=function(){try{Ne=new ActiveXObject("htmlfile")}catch(r){}Me=typeof document!="undefined"?document.domain&&Ne?Zi(Ne):cc():Zi(Ne);for(var e=Hi.length;e--;)delete Me[Xr][Hi[e]];return Me()};sc[eo]=!0;to.exports=Object.create||function(r,t){var n;return r!==null?(Hr[Xr]=ic(r),n=new Hr,Hr[Xr]=null,n[eo]=r):n=Me(),t===void 0?n:oc.f(n,t)}});var io=o((rT,no)=>{"use strict";var pc=_();no.exports=!pc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var rt=o((tT,so)=>{"use strict";var fc=M(),vc=w(),bc=_r(),dc=_e(),Tc=io(),oo=dc("IE_PROTO"),et=Object,mc=et.prototype;so.exports=Tc?et.getPrototypeOf:function(e){var r=bc(e);if(fc(r,oo))return r[oo];var t=r.constructor;return vc(t)&&r instanceof t?t.prototype:r instanceof et?mc:null}});var tt=o((nT,ao)=>{"use strict";var hc=J();ao.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:hc(e,r,t),e}});var st=o((iT,co)=>{"use strict";var yc=_(),gc=w(),Ic=N(),Oc=Zr(),uo=rt(),xc=tt(),wc=j(),Ec=se(),ot=wc("iterator"),lo=!1,k,nt,it;[].keys&&(it=[].keys(),"next"in it?(nt=uo(uo(it)),nt!==Object.prototype&&(k=nt)):lo=!0);var Sc=!Ic(k)||yc(function(){var e={};return k[ot].call(e)!==e});Sc?k={}:Ec&&(k=Oc(k));gc(k[ot])||xc(k,ot,function(){return this});co.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:lo}});var je=o((oT,fo)=>{"use strict";var qc=j(),Rc=qc("toStringTag"),po={};po[Rc]="z";fo.exports=String(po)==="[object z]"});var at=o((sT,vo)=>{"use strict";var Pc=je(),_c=w(),ke=ge(),Ac=j(),Cc=Ac("toStringTag"),Lc=Object,Nc=ke(function(){return arguments}())==="Arguments",Mc=function(e,r){try{return e[r]}catch(t){}};vo.exports=Pc?ke:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Mc(r=Lc(e),Cc))=="string"?t:Nc?ke(r):(n=ke(r))==="Object"&&_c(r.callee)?"Arguments":n}});var To=o((aT,bo)=>{"use strict";var jc=je(),kc=at();bo.exports=jc?{}.toString:function(){return"[object "+kc(this)+"]"}});var Ve=o((uT,ho)=>{"use strict";var Vc=je(),Dc=X().f,Fc=J(),Uc=M(),Gc=To(),Bc=j(),mo=Bc("toStringTag");ho.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Uc(i,mo)||Dc(i,mo,{configurable:!0,value:r}),n&&!Vc&&Fc(i,"toString",Gc))}});var go=o((lT,yo)=>{"use strict";var Qc=st().IteratorPrototype,Wc=Zr(),$c=ae(),zc=Ve(),Yc=B(),Kc=function(){return this};yo.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Wc(Qc,{next:$c(+!n,t)}),zc(e,i,!1,!0),Yc[i]=Kc,e}});var Oo=o((cT,Io)=>{"use strict";var Hc=L(),Xc=oe();Io.exports=function(e,r,t){try{return Hc(Xc(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var wo=o((pT,xo)=>{"use strict";var Jc=N();xo.exports=function(e){return Jc(e)||e===null}});var So=o((fT,Eo)=>{"use strict";var Zc=wo(),ep=String,rp=TypeError;Eo.exports=function(e){if(Zc(e))return e;throw new rp("Can't set "+ep(e)+" as a prototype")}});var Ro=o((vT,qo)=>{"use strict";var tp=Oo(),np=N(),ip=Oe(),op=So();qo.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=tp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,s){return ip(i),op(s),np(i)&&(e?t(i,s):i.__proto__=s),i}}():void 0)});var Do=o((bT,Vo)=>{"use strict";var sp=Br(),ap=D(),De=se(),jo=Ri(),up=w(),lp=go(),Po=rt(),_o=Ro(),cp=Ve(),pp=J(),ut=tt(),fp=j(),Ao=B(),ko=st(),vp=jo.PROPER,bp=jo.CONFIGURABLE,Co=ko.IteratorPrototype,Fe=ko.BUGGY_SAFARI_ITERATORS,pe=fp("iterator"),Lo="keys",fe="values",No="entries",Mo=function(){return this};Vo.exports=function(e,r,t,n,i,s,u){lp(t,r,n);var a=function(y){if(y===i&&b)return b;if(!Fe&&y&&y in c)return c[y];switch(y){case Lo:return function(){return new t(this,y)};case fe:return function(){return new t(this,y)};case No:return function(){return new t(this,y)}}return function(){return new t(this)}},f=r+" Iterator",l=!1,c=e.prototype,p=c[pe]||c["@@iterator"]||i&&c[i],b=!Fe&&p||a(i),d=r==="Array"&&c.entries||p,m,h,I;if(d&&(m=Po(d.call(new e)),m!==Object.prototype&&m.next&&(!De&&Po(m)!==Co&&(_o?_o(m,Co):up(m[pe])||ut(m,pe,Mo)),cp(m,f,!0,!0),De&&(Ao[f]=Mo))),vp&&i===fe&&p&&p.name!==fe&&(!De&&bp?pp(c,"name",fe):(l=!0,b=function(){return ap(p,this)})),i)if(h={values:a(fe),keys:s?b:a(Lo),entries:a(No)},u)for(I in h)(Fe||l||!(I in c))&&ut(c,I,h[I]);else sp({target:r,proto:!0,forced:Fe||l},h);return(!De||u)&&c[pe]!==b&&ut(c,pe,b,{name:i}),Ao[r]=b,h}});var Uo=o((dT,Fo)=>{"use strict";Fo.exports=function(e,r){return{value:e,done:r}}});var ct=o((TT,$o)=>{"use strict";var dp=K(),lt=Wt(),Go=B(),Qo=si(),Tp=X().f,mp=Do(),Ue=Uo(),hp=se(),yp=A(),Wo="Array Iterator",gp=Qo.set,Ip=Qo.getterFor(Wo);$o.exports=mp(Array,"Array",function(e,r){gp(this,{type:Wo,target:dp(e),index:0,kind:r})},function(){var e=Ip(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Ue(void 0,!0);switch(e.kind){case"keys":return Ue(t,!1);case"values":return Ue(r[t],!1)}return Ue([t,r[t]],!1)},"values");var Bo=Go.Arguments=Go.Array;lt("keys");lt("values");lt("entries");if(!hp&&yp&&Bo.name!=="values")try{Tp(Bo,"name",{value:"values"})}catch(e){}});var Yo=o((mT,zo)=>{"use strict";var Op=j(),xp=B(),wp=Op("iterator"),Ep=Array.prototype;zo.exports=function(e){return e!==void 0&&(xp.Array===e||Ep[wp]===e)}});var pt=o((hT,Ho)=>{"use strict";var Sp=at(),Ko=qe(),qp=Ie(),Rp=B(),Pp=j(),_p=Pp("iterator");Ho.exports=function(e){if(!qp(e))return Ko(e,_p)||Ko(e,"@@iterator")||Rp[Sp(e)]}});var Jo=o((yT,Xo)=>{"use strict";var Ap=D(),Cp=oe(),Lp=Q(),Np=Se(),Mp=pt(),jp=TypeError;Xo.exports=function(e,r){var t=arguments.length<2?Mp(e):r;if(Cp(t))return Lp(Ap(t,e));throw new jp(Np(e)+" is not iterable")}});var rs=o((gT,es)=>{"use strict";var kp=D(),Zo=Q(),Vp=qe();es.exports=function(e,r,t){var n,i;Zo(e);try{if(n=Vp(e,"return"),!n){if(r==="throw")throw t;return t}n=kp(n,e)}catch(s){i=!0,n=s}if(r==="throw")throw t;if(i)throw n;return Zo(n),t}});var ss=o((IT,os)=>{"use strict";var Dp=Gr(),Fp=D(),Up=Q(),Gp=Se(),Bp=Yo(),Qp=zr(),ts=Ir(),Wp=Jo(),$p=pt(),ns=rs(),zp=TypeError,Ge=function(e,r){this.stopped=e,this.result=r},is=Ge.prototype;os.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),f=Dp(r,n),l,c,p,b,d,m,h,I=function(g){return l&&ns(l,"normal",g),new Ge(!0,g)},y=function(g){return i?(Up(g),a?f(g[0],g[1],I):f(g[0],g[1])):a?f(g,I):f(g)};if(s)l=e.iterator;else if(u)l=e;else{if(c=$p(e),!c)throw new zp(Gp(e)+" is not iterable");if(Bp(c)){for(p=0,b=Qp(e);b>p;p++)if(d=y(e[p]),d&&ts(is,d))return d;return new Ge(!1)}l=Wp(e,c)}for(m=s?e.next:l.next;!(h=Fp(m,l)).done;){try{d=y(h.value)}catch(g){ns(l,"throw",g)}if(typeof d=="object"&&d&&ts(is,d))return d}return new Ge(!1)}});var us=o((OT,as)=>{"use strict";var Yp=A(),Kp=X(),Hp=ae();as.exports=function(e,r,t){Yp?Kp.f(e,r,Hp(0,t)):e[r]=t}});var ls=o(()=>{"use strict";var Xp=Br(),Jp=ss(),Zp=us();Xp({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Jp(r,function(n,i){Zp(t,n,i)},{AS_ENTRIES:!0}),t}})});var ps=o((ET,cs)=>{"use strict";ct();ls();var ef=we();cs.exports=ef.Object.fromEntries});var vs=o((ST,fs)=>{"use strict";fs.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var ds=o(()=>{"use strict";ct();var rf=vs(),tf=x(),nf=Ve(),bs=B();for(Be in rf)nf(tf[Be],Be),bs[Be]=bs.Array;var Be});var ms=o((PT,Ts)=>{"use strict";var of=ps();ds();Ts.exports=of});var ys=o((_T,hs)=>{"use strict";var sf=ms();hs.exports=sf});var Cs="1.0.39";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},Ls=e=>{};var U=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:a=>t.next(a),error:a=>{var f;return(f=t.error)==null?void 0:f.call(t,a)}}:n={next:U,error:U};let i=typeof r=="function"?{next:a=>{try{r(a)}catch(f){n.next(f)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},s;try{s=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=U,i.error=U,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return C(s)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var V=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var We=class{constructor(){this.log$=new V;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};function Ns(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ms(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function $(e){return typeof e!="undefined"&&e!==null}function $e(e){return e==null}function js(e,r){if(!(e!=null&&e.length))throw new Error(r)}function ks(e,r){if(e!=null&&e.length)throw new Error(r)}var Vs=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),l.remove()});let s=()=>{a(),i()},u=()=>{a(),n()},a=()=>{f&&clearTimeout(f),l.removeEventListener("load",u),l.removeEventListener("error",s)},f;t&&(f=window.setTimeout(s,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",s),l.src=e,document.head.appendChild(l)});var dt,Ds=typeof((dt=window.performance)==null?void 0:dt.now)=="function"?()=>window.performance.now():()=>Date.now();var Fs=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,s;for(;!i&&!e.aborted;)try{let a=await n.next(s);i=(u=a.done)!=null?u:!1,s=a.value}catch(a){await n.throw(a)}return s};var Tt=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},ze=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=Tt()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,s=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,f=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||f||l||i||s||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,s=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||s||a||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Us=new ze;var Gs=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:s=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Ke={};Ps(Ke,{clear:()=>Ys,get:()=>Qs,has:()=>$s,isPersistent:()=>Bs,remove:()=>zs,set:()=>Ws});var O,G,Ye=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(G!==void 0)return G;try{localStorage.setItem(Ye,"test"),localStorage.removeItem(Ye),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Ye),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(O=new Map),G},Bs=()=>z()===0,Qs=e=>{var t,n;let r=z();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:C(r)}},Ws=(e,r)=>{let t=z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:C(t)}},$s=e=>{var t;let r=z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return C(r),!1}},zs=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:C(r)}},Ys=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:C(e)}};var Ks=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var He=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(He||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Hs=(e,r)=>S[e].height>S[r].height,Xs=(e,r)=>S[e].height>=S[r].height,Xe=(e,r)=>S[e].height<S[r].height,Js=(e,r)=>S[e].height<=S[r].height,Zs=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Xe(r,t)?1:-1)[0],mt=Object.keys(S).sort((e,r)=>Xe(e,r)?-1:1),ea=(e,r=.02)=>[...mt].find(n=>S[n].height*(1+r)>=e),ra=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return mt.find(i=>{let s=S[i];return s.width>=n&&s.height>=t})},ta=e=>S[e].height,Je=e=>e==="Invariant quality",na=e=>e.every(r=>!Je(r));function ia(e){if(Je(e))throw new Error("Expected exact quality")}var oa=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],s=e[n];Array.isArray(i)&&Array.isArray(s)?t[n]=s:typeof i=="object"&&typeof s=="object"?t[n]=oa(s,i):t[n]=n in e?s:i}return t};var Uf=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Ze(e,r=0,t){let n,i,s,u,a,f,l=0,c=!1,p=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(c=!!t.leading,p="maxWait"in t,s=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):s,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,F=i;return n=i=void 0,l=T,u=e.apply(F,q),u}function h(T,q){return d?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function y(T){return l=T,a=h(ve,r),c?m(T):u}function g(T){let q=T-f,F=T-l,bt=r-q;return p?Math.min(bt,s-F):bt}function ft(T){let q=T-f,F=T-l;return f===void 0||q>=r||q<0||p&&F>=s}function ve(){let T=Date.now();if(ft(T))return vt(T);a=h(ve,g(T))}function vt(T){return a=void 0,b&&n?m(T):(n=i=void 0,u)}function Is(){a!==void 0&&I(a),l=0,n=f=i=a=void 0}function Os(){return a===void 0?u:vt(Date.now())}function xs(){return a!==void 0}function be(...T){let q=Date.now(),F=ft(q);if(n=T,i=this,f=q,F){if(a===void 0)return y(f);if(p)return a=h(ve,r),m(f)}return a===void 0&&(a=h(ve,r)),u}return be.cancel=Is,be.flush=Os,be.pending=xs,be}var er=(e,r=0,t)=>Ze(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var de=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=de(e[n],r):t[n]=e[n]}return t};var sa=e=>de(e);var aa=300,ua=(e,r=aa)=>new v(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(er(u=>{let a=u[0];if(!a)return;let f,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,f=a.contentBoxSize[0].inlineSize):a.contentRect&&(f=a.contentRect.width,l=a.contentRect.height),$(f)&&$(l)&&t.next({width:f,height:l})},r));return s.observe(e),()=>s.disconnect()});var la=e=>{e.removeAttribute("src"),e.load()};var Te=class extends V{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function ht(e){return new v(r=>{let t={},n=Object.keys(e).length,i=s=>u=>{s in t||n--,t[s]=u,n===0&&r.next(t)};return Object.entries(e).reduce((s,[u,a])=>s.add(a.subscribe(i(u))),new E)})}function yt(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var ca=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var pa=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var fa=e=>new v(r=>{e.forEach(t=>r.next(t))});var va=(e,r)=>new v(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function gt(e){return r=>new v(t=>r.subscribe(new rr(t,e)))}var rr=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ba={leading:!1,trailing:!0};function It(e,r=ba){return t=>new v(n=>t.subscribe(new tr(n,e,r)))}var tr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,$(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var da={leading:!0,trailing:!1};function Ot(e,r=da){return t=>new v(n=>t.subscribe(new nr(n,e,r)))}var nr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,$e(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function xt(e){return r=>new v(t=>r.subscribe(new ir(t,e)))}var ir=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Et(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new or(t,e)))}var wt={},or=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=wt}next(r){let t;try{t=this.lastValue===wt||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function me(e){return r=>new v(t=>r.subscribe(new sr(t,e)))}var sr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function St(e){return me(()=>e)}function qt(){return e=>new v(r=>{let t=!1,n=!1,i=e.subscribe(s=>{t||(t=!0,r.next(s)),n&&i.unsubscribe()},s=>{var u;t=!0,(u=r.error)==null||u.call(r,s),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Rt(){return e=>new v(r=>e.subscribe(new ar(r)))}var ar=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Pt(e){return r=>new v(t=>r.subscribe(new ur(t,e)))}var ur=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ta=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(Ta||{});var he=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,s=n.length;i<s;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,s=n.length;i<s;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},Y=class extends he{constructor(){super(),this.listeners||he.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},re=class{constructor(){Object.defineProperty(this,"signal",{value:new Y,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(re.prototype[Symbol.toStringTag]="AbortController",Y.prototype[Symbol.toStringTag]="AbortSignal");function ye(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function lr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!ye({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:s};let s=t;(s&&!s.prototype.hasOwnProperty("signal")||i)&&(s=function(l,c){let p;c&&c.signal&&(p=c.signal,delete c.signal);let b=new t(l,c);return p&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),b},s.prototype=t.prototype);let u=r;return{fetch:(f,l)=>{let c=s&&s.prototype.isPrototypeOf(f)?f.signal:l?l.signal:void 0;if(c){let p;try{p=new DOMException("Aborted","AbortError")}catch(d){p=new Error("Aborted"),p.name="AbortError"}if(c.aborted)return Promise.reject(p);let b=new Promise((d,m)=>{c.addEventListener("abort",()=>m(p),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(f,l)])}return u(f,l)},Request:s}}var te=ye({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),_t=te?lr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,At=te?_t.fetch:window.fetch,Vb=te?_t.Request:window.Request,Db=te?re:window.AbortController,Fb=te?Y:window.AbortSignal;var gs=As(ys(),1),af=(p=>(p.Armenian="58",p.Azerbaijani="57",p.Belarusian="114",p.English="3",p.Kazakh="97",p.Portuguese="73",p.Russian="0",p.Spanish="4",p.Ukrainian="1",p.Uzbek="65",p.Vietnamese="75",p))(af||{}),uf="vk.com",CT=async(e,r,t)=>{let n=new URL(`https://${uf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let s=await(await At(n.toString())).json();return lf(s,t)},lf=(e,r)=>(0,gs.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),cf(n)])),cf=e=>Array.isArray(e)?e[0]:e;var pf=(t=>(t.RU="ru",t.EN="en",t))(pf||{});export{Ta as ErrorCategory,pf as InterfaceLanguage,We as Logger,v as Observable,V as Subject,E as Subscription,Cs as VERSION,af as VKNumericLanguage,Te as ValueSubject,He as VideoQuality,Fs as abortable,Vs as addScript,na as areQualitiesExact,ks as assertEmptyArray,C as assertNever,Ns as assertNonNullable,js as assertNotEmptyArray,Ms as assertNullable,ia as assertQualityIsExact,gt as buffer,Ls as checkNever,la as clearVideoElement,Us as clientChecker,sa as cloneDeep,de as cloneDeepWith,ht as combine,It as debounce,Ze as debounceFn,Ks as detectEmbed,oa as fillWithDefault,xt as filter,Et as filterChanged,va as fromEvent,Gs as getExponentialDelay,Zs as getHighestQuality,pa as interval,Hs as isHigher,Xs as isHigherOrEqual,Je as isInvariantQuality,Xe as isLower,Js as isLowerOrEqual,Tt as isMobile,$ as isNonNullable,$e as isNullable,CT as loadVKLangPack,me as map,St as mapTo,yt as merge,U as noop,Ds as now,fa as observableFrom,ua as observeElementSize,qt as once,Rt as pairwise,Ke as safeStorage,Pt as tap,Ot as throttle,er as throttleFn,Uf as timeCodeToString,ca as timeout,ea as videoHeightToQuality,ta as videoQualityToHeight,ra as videoSizeToQuality};
6
+ var ws=Object.create;var Qe=Object.defineProperty;var Es=Object.getOwnPropertyDescriptor;var Ss=Object.getOwnPropertyNames;var qs=Object.getPrototypeOf,Rs=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ps=(e,r)=>{for(var t in r)Qe(e,t,{get:r[t],enumerable:!0})},_s=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ss(r))!Rs.call(e,i)&&i!==t&&Qe(e,i,{get:()=>r[i],enumerable:!(n=Es(r,i))||n.enumerable});return e};var As=(e,r,t)=>(t=e!=null?ws(qs(e)):{},_s(r||!e||!e.__esModule?Qe(t,"default",{value:e,enumerable:!0}):t,e));var _=o((Gb,Ct)=>{"use strict";Ct.exports=function(e){try{return!!e()}catch(r){return!0}}});var ne=o((Bb,Lt)=>{"use strict";var ma=_();Lt.exports=!ma(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var L=o((Qb,jt)=>{"use strict";var Nt=ne(),Mt=Function.prototype,cr=Mt.call,ha=Nt&&Mt.bind.bind(cr,cr);jt.exports=Nt?ha:function(e){return function(){return cr.apply(e,arguments)}}});var ge=o((Wb,Vt)=>{"use strict";var kt=L(),ya=kt({}.toString),ga=kt("".slice);Vt.exports=function(e){return ga(ya(e),8,-1)}});var Ft=o(($b,Dt)=>{"use strict";var Ia=L(),Oa=_(),xa=ge(),pr=Object,wa=Ia("".split);Dt.exports=Oa(function(){return!pr("z").propertyIsEnumerable(0)})?function(e){return xa(e)==="String"?wa(e,""):pr(e)}:pr});var Ie=o((zb,Ut)=>{"use strict";Ut.exports=function(e){return e==null}});var Oe=o((Yb,Gt)=>{"use strict";var Ea=Ie(),Sa=TypeError;Gt.exports=function(e){if(Ea(e))throw new Sa("Can't call method on "+e);return e}});var K=o((Kb,Bt)=>{"use strict";var qa=Ft(),Ra=Oe();Bt.exports=function(e){return qa(Ra(e))}});var Wt=o((Hb,Qt)=>{"use strict";Qt.exports=function(){}});var B=o((Xb,$t)=>{"use strict";$t.exports={}});var x=o((fr,zt)=>{"use strict";var ie=function(e){return e&&e.Math===Math&&e};zt.exports=ie(typeof globalThis=="object"&&globalThis)||ie(typeof window=="object"&&window)||ie(typeof self=="object"&&self)||ie(typeof global=="object"&&global)||ie(typeof fr=="object"&&fr)||function(){return this}()||Function("return this")()});var w=o((Jb,Yt)=>{"use strict";var vr=typeof document=="object"&&document.all;Yt.exports=typeof vr=="undefined"&&vr!==void 0?function(e){return typeof e=="function"||e===vr}:function(e){return typeof e=="function"}});var Xt=o((Zb,Ht)=>{"use strict";var Pa=x(),_a=w(),Kt=Pa.WeakMap;Ht.exports=_a(Kt)&&/native code/.test(String(Kt))});var N=o((ed,Jt)=>{"use strict";var Aa=w();Jt.exports=function(e){return typeof e=="object"?e!==null:Aa(e)}});var A=o((rd,Zt)=>{"use strict";var Ca=_();Zt.exports=!Ca(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var dr=o((td,rn)=>{"use strict";var La=x(),en=N(),br=La.document,Na=en(br)&&en(br.createElement);rn.exports=function(e){return Na?br.createElement(e):{}}});var Tr=o((nd,tn)=>{"use strict";var Ma=A(),ja=_(),ka=dr();tn.exports=!Ma&&!ja(function(){return Object.defineProperty(ka("div"),"a",{get:function(){return 7}}).a!==7})});var mr=o((id,nn)=>{"use strict";var Va=A(),Da=_();nn.exports=Va&&Da(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=o((od,on)=>{"use strict";var Fa=N(),Ua=String,Ga=TypeError;on.exports=function(e){if(Fa(e))return e;throw new Ga(Ua(e)+" is not an object")}});var D=o((sd,sn)=>{"use strict";var Ba=ne(),xe=Function.prototype.call;sn.exports=Ba?xe.bind(xe):function(){return xe.apply(xe,arguments)}});var we=o((ad,an)=>{"use strict";an.exports={}});var gr=o((ud,ln)=>{"use strict";var hr=we(),yr=x(),Qa=w(),un=function(e){return Qa(e)?e:void 0};ln.exports=function(e,r){return arguments.length<2?un(hr[e])||un(yr[e]):hr[e]&&hr[e][r]||yr[e]&&yr[e][r]}});var Ir=o((ld,cn)=>{"use strict";var Wa=L();cn.exports=Wa({}.isPrototypeOf)});var bn=o((cd,vn)=>{"use strict";var $a=x(),pn=$a.navigator,fn=pn&&pn.userAgent;vn.exports=fn?String(fn):""});var In=o((pd,gn)=>{"use strict";var yn=x(),Or=bn(),dn=yn.process,Tn=yn.Deno,mn=dn&&dn.versions||Tn&&Tn.version,hn=mn&&mn.v8,R,Ee;hn&&(R=hn.split("."),Ee=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Ee&&Or&&(R=Or.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Or.match(/Chrome\/(\d+)/),R&&(Ee=+R[1])));gn.exports=Ee});var xr=o((fd,xn)=>{"use strict";var On=In(),za=_(),Ya=x(),Ka=Ya.String;xn.exports=!!Object.getOwnPropertySymbols&&!za(function(){var e=Symbol("symbol detection");return!Ka(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&On&&On<41})});var wr=o((vd,wn)=>{"use strict";var Ha=xr();wn.exports=Ha&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Er=o((bd,En)=>{"use strict";var Xa=gr(),Ja=w(),Za=Ir(),eu=wr(),ru=Object;En.exports=eu?function(e){return typeof e=="symbol"}:function(e){var r=Xa("Symbol");return Ja(r)&&Za(r.prototype,ru(e))}});var Se=o((dd,Sn)=>{"use strict";var tu=String;Sn.exports=function(e){try{return tu(e)}catch(r){return"Object"}}});var oe=o((Td,qn)=>{"use strict";var nu=w(),iu=Se(),ou=TypeError;qn.exports=function(e){if(nu(e))return e;throw new ou(iu(e)+" is not a function")}});var qe=o((md,Rn)=>{"use strict";var su=oe(),au=Ie();Rn.exports=function(e,r){var t=e[r];return au(t)?void 0:su(t)}});var _n=o((hd,Pn)=>{"use strict";var Sr=D(),qr=w(),Rr=N(),uu=TypeError;Pn.exports=function(e,r){var t,n;if(r==="string"&&qr(t=e.toString)&&!Rr(n=Sr(t,e))||qr(t=e.valueOf)&&!Rr(n=Sr(t,e))||r!=="string"&&qr(t=e.toString)&&!Rr(n=Sr(t,e)))return n;throw new uu("Can't convert object to primitive value")}});var se=o((yd,An)=>{"use strict";An.exports=!0});var Nn=o((gd,Ln)=>{"use strict";var Cn=x(),lu=Object.defineProperty;Ln.exports=function(e,r){try{lu(Cn,e,{value:r,configurable:!0,writable:!0})}catch(t){Cn[e]=r}return r}});var Re=o((Id,kn)=>{"use strict";var cu=se(),pu=x(),fu=Nn(),Mn="__core-js_shared__",jn=kn.exports=pu[Mn]||fu(Mn,{});(jn.versions||(jn.versions=[])).push({version:"3.38.0",mode:cu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Pr=o((Od,Dn)=>{"use strict";var Vn=Re();Dn.exports=function(e,r){return Vn[e]||(Vn[e]=r||{})}});var _r=o((xd,Fn)=>{"use strict";var vu=Oe(),bu=Object;Fn.exports=function(e){return bu(vu(e))}});var M=o((wd,Un)=>{"use strict";var du=L(),Tu=_r(),mu=du({}.hasOwnProperty);Un.exports=Object.hasOwn||function(r,t){return mu(Tu(r),t)}});var Ar=o((Ed,Gn)=>{"use strict";var hu=L(),yu=0,gu=Math.random(),Iu=hu(1 .toString);Gn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Iu(++yu+gu,36)}});var j=o((Sd,Qn)=>{"use strict";var Ou=x(),xu=Pr(),Bn=M(),wu=Ar(),Eu=xr(),Su=wr(),H=Ou.Symbol,Cr=xu("wks"),qu=Su?H.for||H:H&&H.withoutSetter||wu;Qn.exports=function(e){return Bn(Cr,e)||(Cr[e]=Eu&&Bn(H,e)?H[e]:qu("Symbol."+e)),Cr[e]}});var Yn=o((qd,zn)=>{"use strict";var Ru=D(),Wn=N(),$n=Er(),Pu=qe(),_u=_n(),Au=j(),Cu=TypeError,Lu=Au("toPrimitive");zn.exports=function(e,r){if(!Wn(e)||$n(e))return e;var t=Pu(e,Lu),n;if(t){if(r===void 0&&(r="default"),n=Ru(t,e,r),!Wn(n)||$n(n))return n;throw new Cu("Can't convert object to primitive value")}return r===void 0&&(r="number"),_u(e,r)}});var Lr=o((Rd,Kn)=>{"use strict";var Nu=Yn(),Mu=Er();Kn.exports=function(e){var r=Nu(e,"string");return Mu(r)?r:r+""}});var X=o(Xn=>{"use strict";var ju=A(),ku=Tr(),Vu=mr(),Pe=Q(),Hn=Lr(),Du=TypeError,Nr=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Mr="enumerable",jr="configurable",kr="writable";Xn.f=ju?Vu?function(r,t,n){if(Pe(r),t=Hn(t),Pe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&kr in n&&!n[kr]){var i=Fu(r,t);i&&i[kr]&&(r[t]=n.value,n={configurable:jr in n?n[jr]:i[jr],enumerable:Mr in n?n[Mr]:i[Mr],writable:!1})}return Nr(r,t,n)}:Nr:function(r,t,n){if(Pe(r),t=Hn(t),Pe(n),ku)try{return Nr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Du("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ae=o((_d,Jn)=>{"use strict";Jn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var J=o((Ad,Zn)=>{"use strict";var Uu=A(),Gu=X(),Bu=ae();Zn.exports=Uu?function(e,r,t){return Gu.f(e,r,Bu(1,t))}:function(e,r,t){return e[r]=t,e}});var _e=o((Cd,ri)=>{"use strict";var Qu=Pr(),Wu=Ar(),ei=Qu("keys");ri.exports=function(e){return ei[e]||(ei[e]=Wu(e))}});var Ae=o((Ld,ti)=>{"use strict";ti.exports={}});var si=o((Nd,oi)=>{"use strict";var $u=Xt(),ii=x(),zu=N(),Yu=J(),Vr=M(),Dr=Re(),Ku=_e(),Hu=Ae(),ni="Object already initialized",Fr=ii.TypeError,Xu=ii.WeakMap,Ce,ue,Le,Ju=function(e){return Le(e)?ue(e):Ce(e,{})},Zu=function(e){return function(r){var t;if(!zu(r)||(t=ue(r)).type!==e)throw new Fr("Incompatible receiver, "+e+" required");return t}};$u||Dr.state?(P=Dr.state||(Dr.state=new Xu),P.get=P.get,P.has=P.has,P.set=P.set,Ce=function(e,r){if(P.has(e))throw new Fr(ni);return r.facade=e,P.set(e,r),r},ue=function(e){return P.get(e)||{}},Le=function(e){return P.has(e)}):(W=Ku("state"),Hu[W]=!0,Ce=function(e,r){if(Vr(e,W))throw new Fr(ni);return r.facade=e,Yu(e,W,r),r},ue=function(e){return Vr(e,W)?e[W]:{}},Le=function(e){return Vr(e,W)});var P,W;oi.exports={set:Ce,get:ue,has:Le,enforce:Ju,getterFor:Zu}});var pi=o((Md,ci)=>{"use strict";var el=ne(),li=Function.prototype,ai=li.apply,ui=li.call;ci.exports=typeof Reflect=="object"&&Reflect.apply||(el?ui.bind(ai):function(){return ui.apply(ai,arguments)})});var Ur=o((jd,fi)=>{"use strict";var rl=ge(),tl=L();fi.exports=function(e){if(rl(e)==="Function")return tl(e)}});var Ti=o(di=>{"use strict";var vi={}.propertyIsEnumerable,bi=Object.getOwnPropertyDescriptor,nl=bi&&!vi.call({1:2},1);di.f=nl?function(r){var t=bi(this,r);return!!t&&t.enumerable}:vi});var yi=o(hi=>{"use strict";var il=A(),ol=D(),sl=Ti(),al=ae(),ul=K(),ll=Lr(),cl=M(),pl=Tr(),mi=Object.getOwnPropertyDescriptor;hi.f=il?mi:function(r,t){if(r=ul(r),t=ll(t),pl)try{return mi(r,t)}catch(n){}if(cl(r,t))return al(!ol(sl.f,r,t),r[t])}});var Ii=o((Dd,gi)=>{"use strict";var fl=_(),vl=w(),bl=/#|\.prototype\./,le=function(e,r){var t=Tl[dl(e)];return t===hl?!0:t===ml?!1:vl(r)?fl(r):!!r},dl=le.normalize=function(e){return String(e).replace(bl,".").toLowerCase()},Tl=le.data={},ml=le.NATIVE="N",hl=le.POLYFILL="P";gi.exports=le});var Gr=o((Fd,xi)=>{"use strict";var Oi=Ur(),yl=oe(),gl=ne(),Il=Oi(Oi.bind);xi.exports=function(e,r){return yl(e),r===void 0?e:gl?Il(e,r):function(){return e.apply(r,arguments)}}});var Br=o((Ud,Ei)=>{"use strict";var ce=x(),Ol=pi(),xl=Ur(),wl=w(),El=yi().f,Sl=Ii(),Z=we(),ql=Gr(),ee=J(),wi=M();Re();var Rl=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Ol(e,this,arguments)};return r.prototype=e.prototype,r};Ei.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,u=n?ce:i?ce[t]:ce[t]&&ce[t].prototype,a=n?Z:Z[t]||ee(Z,t,{})[t],f=a.prototype,l,c,p,b,d,m,h,I,y;for(b in r)l=Sl(n?b:t+(i?".":"#")+b,e.forced),c=!l&&u&&wi(u,b),m=a[b],c&&(e.dontCallGetSet?(y=El(u,b),h=y&&y.value):h=u[b]),d=c&&h?h:r[b],!(!l&&!s&&typeof m==typeof d)&&(e.bind&&c?I=ql(d,ce):e.wrap&&c?I=Rl(d):s&&wl(d)?I=xl(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&ee(I,"sham",!0),ee(a,b,I),s&&(p=t+"Prototype",wi(Z,p)||ee(Z,p,{}),ee(Z[p],b,d),e.real&&f&&(l||!f[b])&&ee(f,b,d)))}});var Ri=o((Gd,qi)=>{"use strict";var Qr=A(),Pl=M(),Si=Function.prototype,_l=Qr&&Object.getOwnPropertyDescriptor,Wr=Pl(Si,"name"),Al=Wr&&function(){}.name==="something",Cl=Wr&&(!Qr||Qr&&_l(Si,"name").configurable);qi.exports={EXISTS:Wr,PROPER:Al,CONFIGURABLE:Cl}});var _i=o((Bd,Pi)=>{"use strict";var Ll=Math.ceil,Nl=Math.floor;Pi.exports=Math.trunc||function(r){var t=+r;return(t>0?Nl:Ll)(t)}});var $r=o((Qd,Ai)=>{"use strict";var Ml=_i();Ai.exports=function(e){var r=+e;return r!==r||r===0?0:Ml(r)}});var Li=o((Wd,Ci)=>{"use strict";var jl=$r(),kl=Math.max,Vl=Math.min;Ci.exports=function(e,r){var t=jl(e);return t<0?kl(t+r,0):Vl(t,r)}});var Mi=o(($d,Ni)=>{"use strict";var Dl=$r(),Fl=Math.min;Ni.exports=function(e){var r=Dl(e);return r>0?Fl(r,9007199254740991):0}});var zr=o((zd,ji)=>{"use strict";var Ul=Mi();ji.exports=function(e){return Ul(e.length)}});var Di=o((Yd,Vi)=>{"use strict";var Gl=K(),Bl=Li(),Ql=zr(),ki=function(e){return function(r,t,n){var i=Gl(r),s=Ql(i);if(s===0)return!e&&-1;var u=Bl(n,s),a;if(e&&t!==t){for(;s>u;)if(a=i[u++],a!==a)return!0}else for(;s>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Vi.exports={includes:ki(!0),indexOf:ki(!1)}});var Gi=o((Kd,Ui)=>{"use strict";var Wl=L(),Yr=M(),$l=K(),zl=Di().indexOf,Yl=Ae(),Fi=Wl([].push);Ui.exports=function(e,r){var t=$l(e),n=0,i=[],s;for(s in t)!Yr(Yl,s)&&Yr(t,s)&&Fi(i,s);for(;r.length>n;)Yr(t,s=r[n++])&&(~zl(i,s)||Fi(i,s));return i}});var Kr=o((Hd,Bi)=>{"use strict";Bi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Wi=o((Xd,Qi)=>{"use strict";var Kl=Gi(),Hl=Kr();Qi.exports=Object.keys||function(r){return Kl(r,Hl)}});var zi=o($i=>{"use strict";var Xl=A(),Jl=mr(),Zl=X(),ec=Q(),rc=K(),tc=Wi();$i.f=Xl&&!Jl?Object.defineProperties:function(r,t){ec(r);for(var n=rc(t),i=tc(t),s=i.length,u=0,a;s>u;)Zl.f(r,a=i[u++],n[a]);return r}});var Ki=o((Zd,Yi)=>{"use strict";var nc=gr();Yi.exports=nc("document","documentElement")});var Zr=o((eT,to)=>{"use strict";var ic=Q(),oc=zi(),Hi=Kr(),sc=Ae(),ac=Ki(),uc=dr(),lc=_e(),Xi=">",Ji="<",Xr="prototype",Jr="script",eo=lc("IE_PROTO"),Hr=function(){},ro=function(e){return Ji+Jr+Xi+e+Ji+"/"+Jr+Xi},Zi=function(e){e.write(ro("")),e.close();var r=e.parentWindow.Object;return e=null,r},cc=function(){var e=uc("iframe"),r="java"+Jr+":",t;return e.style.display="none",ac.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ro("document.F=Object")),t.close(),t.F},Ne,Me=function(){try{Ne=new ActiveXObject("htmlfile")}catch(r){}Me=typeof document!="undefined"?document.domain&&Ne?Zi(Ne):cc():Zi(Ne);for(var e=Hi.length;e--;)delete Me[Xr][Hi[e]];return Me()};sc[eo]=!0;to.exports=Object.create||function(r,t){var n;return r!==null?(Hr[Xr]=ic(r),n=new Hr,Hr[Xr]=null,n[eo]=r):n=Me(),t===void 0?n:oc.f(n,t)}});var io=o((rT,no)=>{"use strict";var pc=_();no.exports=!pc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var rt=o((tT,so)=>{"use strict";var fc=M(),vc=w(),bc=_r(),dc=_e(),Tc=io(),oo=dc("IE_PROTO"),et=Object,mc=et.prototype;so.exports=Tc?et.getPrototypeOf:function(e){var r=bc(e);if(fc(r,oo))return r[oo];var t=r.constructor;return vc(t)&&r instanceof t?t.prototype:r instanceof et?mc:null}});var tt=o((nT,ao)=>{"use strict";var hc=J();ao.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:hc(e,r,t),e}});var st=o((iT,co)=>{"use strict";var yc=_(),gc=w(),Ic=N(),Oc=Zr(),uo=rt(),xc=tt(),wc=j(),Ec=se(),ot=wc("iterator"),lo=!1,k,nt,it;[].keys&&(it=[].keys(),"next"in it?(nt=uo(uo(it)),nt!==Object.prototype&&(k=nt)):lo=!0);var Sc=!Ic(k)||yc(function(){var e={};return k[ot].call(e)!==e});Sc?k={}:Ec&&(k=Oc(k));gc(k[ot])||xc(k,ot,function(){return this});co.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:lo}});var je=o((oT,fo)=>{"use strict";var qc=j(),Rc=qc("toStringTag"),po={};po[Rc]="z";fo.exports=String(po)==="[object z]"});var at=o((sT,vo)=>{"use strict";var Pc=je(),_c=w(),ke=ge(),Ac=j(),Cc=Ac("toStringTag"),Lc=Object,Nc=ke(function(){return arguments}())==="Arguments",Mc=function(e,r){try{return e[r]}catch(t){}};vo.exports=Pc?ke:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Mc(r=Lc(e),Cc))=="string"?t:Nc?ke(r):(n=ke(r))==="Object"&&_c(r.callee)?"Arguments":n}});var To=o((aT,bo)=>{"use strict";var jc=je(),kc=at();bo.exports=jc?{}.toString:function(){return"[object "+kc(this)+"]"}});var Ve=o((uT,ho)=>{"use strict";var Vc=je(),Dc=X().f,Fc=J(),Uc=M(),Gc=To(),Bc=j(),mo=Bc("toStringTag");ho.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Uc(i,mo)||Dc(i,mo,{configurable:!0,value:r}),n&&!Vc&&Fc(i,"toString",Gc))}});var go=o((lT,yo)=>{"use strict";var Qc=st().IteratorPrototype,Wc=Zr(),$c=ae(),zc=Ve(),Yc=B(),Kc=function(){return this};yo.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Wc(Qc,{next:$c(+!n,t)}),zc(e,i,!1,!0),Yc[i]=Kc,e}});var Oo=o((cT,Io)=>{"use strict";var Hc=L(),Xc=oe();Io.exports=function(e,r,t){try{return Hc(Xc(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var wo=o((pT,xo)=>{"use strict";var Jc=N();xo.exports=function(e){return Jc(e)||e===null}});var So=o((fT,Eo)=>{"use strict";var Zc=wo(),ep=String,rp=TypeError;Eo.exports=function(e){if(Zc(e))return e;throw new rp("Can't set "+ep(e)+" as a prototype")}});var Ro=o((vT,qo)=>{"use strict";var tp=Oo(),np=N(),ip=Oe(),op=So();qo.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=tp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,s){return ip(i),op(s),np(i)&&(e?t(i,s):i.__proto__=s),i}}():void 0)});var Do=o((bT,Vo)=>{"use strict";var sp=Br(),ap=D(),De=se(),jo=Ri(),up=w(),lp=go(),Po=rt(),_o=Ro(),cp=Ve(),pp=J(),ut=tt(),fp=j(),Ao=B(),ko=st(),vp=jo.PROPER,bp=jo.CONFIGURABLE,Co=ko.IteratorPrototype,Fe=ko.BUGGY_SAFARI_ITERATORS,pe=fp("iterator"),Lo="keys",fe="values",No="entries",Mo=function(){return this};Vo.exports=function(e,r,t,n,i,s,u){lp(t,r,n);var a=function(y){if(y===i&&b)return b;if(!Fe&&y&&y in c)return c[y];switch(y){case Lo:return function(){return new t(this,y)};case fe:return function(){return new t(this,y)};case No:return function(){return new t(this,y)}}return function(){return new t(this)}},f=r+" Iterator",l=!1,c=e.prototype,p=c[pe]||c["@@iterator"]||i&&c[i],b=!Fe&&p||a(i),d=r==="Array"&&c.entries||p,m,h,I;if(d&&(m=Po(d.call(new e)),m!==Object.prototype&&m.next&&(!De&&Po(m)!==Co&&(_o?_o(m,Co):up(m[pe])||ut(m,pe,Mo)),cp(m,f,!0,!0),De&&(Ao[f]=Mo))),vp&&i===fe&&p&&p.name!==fe&&(!De&&bp?pp(c,"name",fe):(l=!0,b=function(){return ap(p,this)})),i)if(h={values:a(fe),keys:s?b:a(Lo),entries:a(No)},u)for(I in h)(Fe||l||!(I in c))&&ut(c,I,h[I]);else sp({target:r,proto:!0,forced:Fe||l},h);return(!De||u)&&c[pe]!==b&&ut(c,pe,b,{name:i}),Ao[r]=b,h}});var Uo=o((dT,Fo)=>{"use strict";Fo.exports=function(e,r){return{value:e,done:r}}});var ct=o((TT,$o)=>{"use strict";var dp=K(),lt=Wt(),Go=B(),Qo=si(),Tp=X().f,mp=Do(),Ue=Uo(),hp=se(),yp=A(),Wo="Array Iterator",gp=Qo.set,Ip=Qo.getterFor(Wo);$o.exports=mp(Array,"Array",function(e,r){gp(this,{type:Wo,target:dp(e),index:0,kind:r})},function(){var e=Ip(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Ue(void 0,!0);switch(e.kind){case"keys":return Ue(t,!1);case"values":return Ue(r[t],!1)}return Ue([t,r[t]],!1)},"values");var Bo=Go.Arguments=Go.Array;lt("keys");lt("values");lt("entries");if(!hp&&yp&&Bo.name!=="values")try{Tp(Bo,"name",{value:"values"})}catch(e){}});var Yo=o((mT,zo)=>{"use strict";var Op=j(),xp=B(),wp=Op("iterator"),Ep=Array.prototype;zo.exports=function(e){return e!==void 0&&(xp.Array===e||Ep[wp]===e)}});var pt=o((hT,Ho)=>{"use strict";var Sp=at(),Ko=qe(),qp=Ie(),Rp=B(),Pp=j(),_p=Pp("iterator");Ho.exports=function(e){if(!qp(e))return Ko(e,_p)||Ko(e,"@@iterator")||Rp[Sp(e)]}});var Jo=o((yT,Xo)=>{"use strict";var Ap=D(),Cp=oe(),Lp=Q(),Np=Se(),Mp=pt(),jp=TypeError;Xo.exports=function(e,r){var t=arguments.length<2?Mp(e):r;if(Cp(t))return Lp(Ap(t,e));throw new jp(Np(e)+" is not iterable")}});var rs=o((gT,es)=>{"use strict";var kp=D(),Zo=Q(),Vp=qe();es.exports=function(e,r,t){var n,i;Zo(e);try{if(n=Vp(e,"return"),!n){if(r==="throw")throw t;return t}n=kp(n,e)}catch(s){i=!0,n=s}if(r==="throw")throw t;if(i)throw n;return Zo(n),t}});var ss=o((IT,os)=>{"use strict";var Dp=Gr(),Fp=D(),Up=Q(),Gp=Se(),Bp=Yo(),Qp=zr(),ts=Ir(),Wp=Jo(),$p=pt(),ns=rs(),zp=TypeError,Ge=function(e,r){this.stopped=e,this.result=r},is=Ge.prototype;os.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),f=Dp(r,n),l,c,p,b,d,m,h,I=function(g){return l&&ns(l,"normal",g),new Ge(!0,g)},y=function(g){return i?(Up(g),a?f(g[0],g[1],I):f(g[0],g[1])):a?f(g,I):f(g)};if(s)l=e.iterator;else if(u)l=e;else{if(c=$p(e),!c)throw new zp(Gp(e)+" is not iterable");if(Bp(c)){for(p=0,b=Qp(e);b>p;p++)if(d=y(e[p]),d&&ts(is,d))return d;return new Ge(!1)}l=Wp(e,c)}for(m=s?e.next:l.next;!(h=Fp(m,l)).done;){try{d=y(h.value)}catch(g){ns(l,"throw",g)}if(typeof d=="object"&&d&&ts(is,d))return d}return new Ge(!1)}});var us=o((OT,as)=>{"use strict";var Yp=A(),Kp=X(),Hp=ae();as.exports=function(e,r,t){Yp?Kp.f(e,r,Hp(0,t)):e[r]=t}});var ls=o(()=>{"use strict";var Xp=Br(),Jp=ss(),Zp=us();Xp({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Jp(r,function(n,i){Zp(t,n,i)},{AS_ENTRIES:!0}),t}})});var ps=o((ET,cs)=>{"use strict";ct();ls();var ef=we();cs.exports=ef.Object.fromEntries});var vs=o((ST,fs)=>{"use strict";fs.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var ds=o(()=>{"use strict";ct();var rf=vs(),tf=x(),nf=Ve(),bs=B();for(Be in rf)nf(tf[Be],Be),bs[Be]=bs.Array;var Be});var ms=o((PT,Ts)=>{"use strict";var of=ps();ds();Ts.exports=of});var ys=o((_T,hs)=>{"use strict";var sf=ms();hs.exports=sf});var Cs="1.0.40-dev.c0101e19.0";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},Ls=e=>{};var U=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:a=>t.next(a),error:a=>{var f;return(f=t.error)==null?void 0:f.call(t,a)}}:n={next:U,error:U};let i=typeof r=="function"?{next:a=>{try{r(a)}catch(f){n.next(f)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},s;try{s=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=U,i.error=U,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return C(s)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var V=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var We=class{constructor(){this.log$=new V;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};function Ns(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ms(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function $(e){return typeof e!="undefined"&&e!==null}function $e(e){return e==null}function js(e,r){if(!(e!=null&&e.length))throw new Error(r)}function ks(e,r){if(e!=null&&e.length)throw new Error(r)}var Vs=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),l.remove()});let s=()=>{a(),i()},u=()=>{a(),n()},a=()=>{f&&clearTimeout(f),l.removeEventListener("load",u),l.removeEventListener("error",s)},f;t&&(f=window.setTimeout(s,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",s),l.src=e,document.head.appendChild(l)});var dt,Ds=typeof((dt=window.performance)==null?void 0:dt.now)=="function"?()=>window.performance.now():()=>Date.now();var Fs=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,s;for(;!i&&!e.aborted;)try{let a=await n.next(s);i=(u=a.done)!=null?u:!1,s=a.value}catch(a){await n.throw(a)}return s};var Tt=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},ze=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=Tt()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,s=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,f=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||f||l||i||s||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,s=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||s||a||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Us=new ze;var Gs=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:s=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Ke={};Ps(Ke,{clear:()=>Ys,get:()=>Qs,has:()=>$s,isPersistent:()=>Bs,remove:()=>zs,set:()=>Ws});var O,G,Ye=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(G!==void 0)return G;try{localStorage.setItem(Ye,"test"),localStorage.removeItem(Ye),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Ye),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(O=new Map),G},Bs=()=>z()===0,Qs=e=>{var t,n;let r=z();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:C(r)}},Ws=(e,r)=>{let t=z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:C(t)}},$s=e=>{var t;let r=z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return C(r),!1}},zs=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:C(r)}},Ys=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:C(e)}};var Ks=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var He=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(He||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Hs=(e,r)=>S[e].height>S[r].height,Xs=(e,r)=>S[e].height>=S[r].height,Xe=(e,r)=>S[e].height<S[r].height,Js=(e,r)=>S[e].height<=S[r].height,Zs=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Xe(r,t)?1:-1)[0],mt=Object.keys(S).sort((e,r)=>Xe(e,r)?-1:1),ea=(e,r=.02)=>[...mt].find(n=>S[n].height*(1+r)>=e),ra=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return mt.find(i=>{let s=S[i];return s.width>=n&&s.height>=t})},ta=e=>S[e].height,Je=e=>e==="Invariant quality",na=e=>e.every(r=>!Je(r));function ia(e){if(Je(e))throw new Error("Expected exact quality")}var oa=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],s=e[n];Array.isArray(i)&&Array.isArray(s)?t[n]=s:typeof i=="object"&&typeof s=="object"?t[n]=oa(s,i):t[n]=n in e?s:i}return t};var Uf=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Ze(e,r=0,t){let n,i,s,u,a,f,l=0,c=!1,p=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(c=!!t.leading,p="maxWait"in t,s=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):s,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,F=i;return n=i=void 0,l=T,u=e.apply(F,q),u}function h(T,q){return d?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function y(T){return l=T,a=h(ve,r),c?m(T):u}function g(T){let q=T-f,F=T-l,bt=r-q;return p?Math.min(bt,s-F):bt}function ft(T){let q=T-f,F=T-l;return f===void 0||q>=r||q<0||p&&F>=s}function ve(){let T=Date.now();if(ft(T))return vt(T);a=h(ve,g(T))}function vt(T){return a=void 0,b&&n?m(T):(n=i=void 0,u)}function Is(){a!==void 0&&I(a),l=0,n=f=i=a=void 0}function Os(){return a===void 0?u:vt(Date.now())}function xs(){return a!==void 0}function be(...T){let q=Date.now(),F=ft(q);if(n=T,i=this,f=q,F){if(a===void 0)return y(f);if(p)return a=h(ve,r),m(f)}return a===void 0&&(a=h(ve,r)),u}return be.cancel=Is,be.flush=Os,be.pending=xs,be}var er=(e,r=0,t)=>Ze(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var de=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=de(e[n],r):t[n]=e[n]}return t};var sa=e=>de(e);var aa=300,ua=(e,r=aa)=>new v(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(er(u=>{let a=u[0];if(!a)return;let f,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,f=a.contentBoxSize[0].inlineSize):a.contentRect&&(f=a.contentRect.width,l=a.contentRect.height),$(f)&&$(l)&&t.next({width:f,height:l})},r));return s.observe(e),()=>s.disconnect()});var la=e=>{e.removeAttribute("src"),e.load()};var Te=class extends V{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function ht(e){return new v(r=>{let t={},n=Object.keys(e).length,i=s=>u=>{s in t||n--,t[s]=u,n===0&&r.next(t)};return Object.entries(e).reduce((s,[u,a])=>s.add(a.subscribe(i(u))),new E)})}function yt(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var ca=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var pa=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var fa=e=>new v(r=>{e.forEach(t=>r.next(t))});var va=(e,r)=>new v(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function gt(e){return r=>new v(t=>r.subscribe(new rr(t,e)))}var rr=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ba={leading:!1,trailing:!0};function It(e,r=ba){return t=>new v(n=>t.subscribe(new tr(n,e,r)))}var tr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,$(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var da={leading:!0,trailing:!1};function Ot(e,r=da){return t=>new v(n=>t.subscribe(new nr(n,e,r)))}var nr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,$e(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function xt(e){return r=>new v(t=>r.subscribe(new ir(t,e)))}var ir=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Et(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new or(t,e)))}var wt={},or=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=wt}next(r){let t;try{t=this.lastValue===wt||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function me(e){return r=>new v(t=>r.subscribe(new sr(t,e)))}var sr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function St(e){return me(()=>e)}function qt(){return e=>new v(r=>{let t=!1,n=!1,i=e.subscribe(s=>{t||(t=!0,r.next(s)),n&&i.unsubscribe()},s=>{var u;t=!0,(u=r.error)==null||u.call(r,s),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Rt(){return e=>new v(r=>e.subscribe(new ar(r)))}var ar=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Pt(e){return r=>new v(t=>r.subscribe(new ur(t,e)))}var ur=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ta=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(Ta||{});var he=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,s=n.length;i<s;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,s=n.length;i<s;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},Y=class extends he{constructor(){super(),this.listeners||he.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},re=class{constructor(){Object.defineProperty(this,"signal",{value:new Y,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(re.prototype[Symbol.toStringTag]="AbortController",Y.prototype[Symbol.toStringTag]="AbortSignal");function ye(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function lr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!ye({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:s};let s=t;(s&&!s.prototype.hasOwnProperty("signal")||i)&&(s=function(l,c){let p;c&&c.signal&&(p=c.signal,delete c.signal);let b=new t(l,c);return p&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),b},s.prototype=t.prototype);let u=r;return{fetch:(f,l)=>{let c=s&&s.prototype.isPrototypeOf(f)?f.signal:l?l.signal:void 0;if(c){let p;try{p=new DOMException("Aborted","AbortError")}catch(d){p=new Error("Aborted"),p.name="AbortError"}if(c.aborted)return Promise.reject(p);let b=new Promise((d,m)=>{c.addEventListener("abort",()=>m(p),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(f,l)])}return u(f,l)},Request:s}}var te=ye({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),_t=te?lr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,At=te?_t.fetch:window.fetch,Vb=te?_t.Request:window.Request,Db=te?re:window.AbortController,Fb=te?Y:window.AbortSignal;var gs=As(ys(),1),af=(p=>(p.Armenian="58",p.Azerbaijani="57",p.Belarusian="114",p.English="3",p.Kazakh="97",p.Portuguese="73",p.Russian="0",p.Spanish="4",p.Ukrainian="1",p.Uzbek="65",p.Vietnamese="75",p))(af||{}),uf="vk.com",CT=async(e,r,t)=>{let n=new URL(`https://${uf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let s=await(await At(n.toString())).json();return lf(s,t)},lf=(e,r)=>(0,gs.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),cf(n)])),cf=e=>Array.isArray(e)?e[0]:e;var pf=(t=>(t.RU="ru",t.EN="en",t))(pf||{});export{Ta as ErrorCategory,pf as InterfaceLanguage,We as Logger,v as Observable,V as Subject,E as Subscription,Cs as VERSION,af as VKNumericLanguage,Te as ValueSubject,He as VideoQuality,Fs as abortable,Vs as addScript,na as areQualitiesExact,ks as assertEmptyArray,C as assertNever,Ns as assertNonNullable,js as assertNotEmptyArray,Ms as assertNullable,ia as assertQualityIsExact,gt as buffer,Ls as checkNever,la as clearVideoElement,Us as clientChecker,sa as cloneDeep,de as cloneDeepWith,ht as combine,It as debounce,Ze as debounceFn,Ks as detectEmbed,oa as fillWithDefault,xt as filter,Et as filterChanged,va as fromEvent,Gs as getExponentialDelay,Zs as getHighestQuality,pa as interval,Hs as isHigher,Xs as isHigherOrEqual,Je as isInvariantQuality,Xe as isLower,Js as isLowerOrEqual,Tt as isMobile,$ as isNonNullable,$e as isNullable,CT as loadVKLangPack,me as map,St as mapTo,yt as merge,U as noop,Ds as now,fa as observableFrom,ua as observeElementSize,qt as once,Rt as pairwise,Ke as safeStorage,Pt as tap,Ot as throttle,er as throttleFn,Uf as timeCodeToString,ca as timeout,ea as videoHeightToQuality,ta as videoQualityToHeight,ra as videoSizeToQuality};