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