@vkontakte/videoplayer-shared 1.0.58-dev.ef87de0a.0 → 1.0.59-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/esnext.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.58-dev.ef87de0a.0
3
- * Thu, 10 Apr 2025 14:06:51 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-58/doc/
2
+ * @vkontakte/videoplayer-shared v1.0.59-beta.0
3
+ * Fri, 18 Apr 2025 12:40:59 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-59/doc/
5
5
  */
6
- "use strict";var $s=Object.create;var we=Object.defineProperty;var zs=Object.getOwnPropertyDescriptor;var Ys=Object.getOwnPropertyNames;var Hs=Object.getPrototypeOf,Xs=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),fr=(e,r)=>{for(var t in r)we(e,t,{get:r[t],enumerable:!0})},Kt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ys(r))!Xs.call(e,i)&&i!==t&&we(e,i,{get:()=>r[i],enumerable:!(n=zs(r,i))||n.enumerable});return e};var ne=(e,r,t)=>(t=e!=null?$s(Hs(e)):{},Kt(r||!e||!e.__esModule?we(t,"default",{value:e,enumerable:!0}):t,e)),Js=e=>Kt(we({},"__esModule",{value:!0}),e);var x=o((Tr,tn)=>{"use strict";var ie=function(e){return e&&e.Math===Math&&e};tn.exports=ie(typeof globalThis=="object"&&globalThis)||ie(typeof window=="object"&&window)||ie(typeof self=="object"&&self)||ie(typeof global=="object"&&global)||ie(typeof Tr=="object"&&Tr)||function(){return this}()||Function("return this")()});var w=o((Ib,nn)=>{"use strict";nn.exports=function(e){try{return!!e()}catch{return!0}}});var oe=o((Ob,on)=>{"use strict";var ou=w();on.exports=!ou(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var cn=o((xb,ln)=>{"use strict";var au=oe(),un=Function.prototype,an=un.apply,sn=un.call;ln.exports=typeof Reflect=="object"&&Reflect.apply||(au?sn.bind(an):function(){return sn.apply(an,arguments)})});var L=o((Eb,vn)=>{"use strict";var pn=oe(),fn=Function.prototype,mr=fn.call,su=pn&&fn.bind.bind(mr,mr);vn.exports=pn?su:function(e){return function(){return mr.apply(e,arguments)}}});var Ae=o((wb,dn)=>{"use strict";var bn=L(),uu=bn({}.toString),lu=bn("".slice);dn.exports=function(e){return lu(uu(e),8,-1)}});var yr=o((Sb,Tn)=>{"use strict";var cu=Ae(),pu=L();Tn.exports=function(e){if(cu(e)==="Function")return pu(e)}});var E=o((qb,mn)=>{"use strict";var hr=typeof document=="object"&&document.all;mn.exports=typeof hr>"u"&&hr!==void 0?function(e){return typeof e=="function"||e===hr}:function(e){return typeof e=="function"}});var R=o((Rb,yn)=>{"use strict";var fu=w();yn.exports=!fu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var F=o((Pb,hn)=>{"use strict";var vu=oe(),_e=Function.prototype.call;hn.exports=vu?_e.bind(_e):function(){return _e.apply(_e,arguments)}});var gr=o(On=>{"use strict";var gn={}.propertyIsEnumerable,In=Object.getOwnPropertyDescriptor,bu=In&&!gn.call({1:2},1);On.f=bu?function(r){var t=In(this,r);return!!t&&t.enumerable}:gn});var ae=o((_b,xn)=>{"use strict";xn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var wn=o((Lb,En)=>{"use strict";var du=L(),Tu=w(),mu=Ae(),Ir=Object,yu=du("".split);En.exports=Tu(function(){return!Ir("z").propertyIsEnumerable(0)})?function(e){return mu(e)==="String"?yu(e,""):Ir(e)}:Ir});var Le=o((jb,Sn)=>{"use strict";Sn.exports=function(e){return e==null}});var je=o((kb,qn)=>{"use strict";var hu=Le(),gu=TypeError;qn.exports=function(e){if(hu(e))throw new gu("Can't call method on "+e);return e}});var B=o((Cb,Rn)=>{"use strict";var Iu=wn(),Ou=je();Rn.exports=function(e){return Iu(Ou(e))}});var k=o((Nb,Pn)=>{"use strict";var xu=E();Pn.exports=function(e){return typeof e=="object"?e!==null:xu(e)}});var se=o((Mb,An)=>{"use strict";An.exports={}});var ke=o((Vb,Ln)=>{"use strict";var Or=se(),xr=x(),Eu=E(),_n=function(e){return Eu(e)?e:void 0};Ln.exports=function(e,r){return arguments.length<2?_n(Or[e])||_n(xr[e]):Or[e]&&Or[e][r]||xr[e]&&xr[e][r]}});var Er=o((Fb,jn)=>{"use strict";var wu=L();jn.exports=wu({}.isPrototypeOf)});var Mn=o((Db,Nn)=>{"use strict";var Su=x(),kn=Su.navigator,Cn=kn&&kn.userAgent;Nn.exports=Cn?String(Cn):""});var Bn=o((Ub,Qn)=>{"use strict";var Gn=x(),wr=Mn(),Vn=Gn.process,Fn=Gn.Deno,Dn=Vn&&Vn.versions||Fn&&Fn.version,Un=Dn&&Dn.v8,P,Ce;Un&&(P=Un.split("."),Ce=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!Ce&&wr&&(P=wr.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=wr.match(/Chrome\/(\d+)/),P&&(Ce=+P[1])));Qn.exports=Ce});var Sr=o((Gb,Wn)=>{"use strict";var Kn=Bn(),qu=w(),Ru=x(),Pu=Ru.String;Wn.exports=!!Object.getOwnPropertySymbols&&!qu(function(){var e=Symbol("symbol detection");return!Pu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Kn&&Kn<41})});var qr=o((Qb,$n)=>{"use strict";var Au=Sr();$n.exports=Au&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Rr=o((Bb,zn)=>{"use strict";var _u=ke(),Lu=E(),ju=Er(),ku=qr(),Cu=Object;zn.exports=ku?function(e){return typeof e=="symbol"}:function(e){var r=_u("Symbol");return Lu(r)&&ju(r.prototype,Cu(e))}});var Ne=o((Kb,Yn)=>{"use strict";var Nu=String;Yn.exports=function(e){try{return Nu(e)}catch{return"Object"}}});var ue=o((Wb,Hn)=>{"use strict";var Mu=E(),Vu=Ne(),Fu=TypeError;Hn.exports=function(e){if(Mu(e))return e;throw new Fu(Vu(e)+" is not a function")}});var Me=o(($b,Xn)=>{"use strict";var Du=ue(),Uu=Le();Xn.exports=function(e,r){var t=e[r];return Uu(t)?void 0:Du(t)}});var Zn=o((zb,Jn)=>{"use strict";var Pr=F(),Ar=E(),_r=k(),Gu=TypeError;Jn.exports=function(e,r){var t,n;if(r==="string"&&Ar(t=e.toString)&&!_r(n=Pr(t,e))||Ar(t=e.valueOf)&&!_r(n=Pr(t,e))||r!=="string"&&Ar(t=e.toString)&&!_r(n=Pr(t,e)))return n;throw new Gu("Can't convert object to primitive value")}});var le=o((Yb,ei)=>{"use strict";ei.exports=!0});var ni=o((Hb,ti)=>{"use strict";var ri=x(),Qu=Object.defineProperty;ti.exports=function(e,r){try{Qu(ri,e,{value:r,configurable:!0,writable:!0})}catch{ri[e]=r}return r}});var Ve=o((Xb,ai)=>{"use strict";var Bu=le(),Ku=x(),Wu=ni(),ii="__core-js_shared__",oi=ai.exports=Ku[ii]||Wu(ii,{});(oi.versions||(oi.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 Lr=o((Jb,ui)=>{"use strict";var si=Ve();ui.exports=function(e,r){return si[e]||(si[e]=r||{})}});var Fe=o((Zb,li)=>{"use strict";var $u=je(),zu=Object;li.exports=function(e){return zu($u(e))}});var C=o((ed,ci)=>{"use strict";var Yu=L(),Hu=Fe(),Xu=Yu({}.hasOwnProperty);ci.exports=Object.hasOwn||function(r,t){return Xu(Hu(r),t)}});var jr=o((rd,pi)=>{"use strict";var Ju=L(),Zu=0,el=Math.random(),rl=Ju(1 .toString);pi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rl(++Zu+el,36)}});var N=o((td,vi)=>{"use strict";var tl=x(),nl=Lr(),fi=C(),il=jr(),ol=Sr(),al=qr(),H=tl.Symbol,kr=nl("wks"),sl=al?H.for||H:H&&H.withoutSetter||il;vi.exports=function(e){return fi(kr,e)||(kr[e]=ol&&fi(H,e)?H[e]:sl("Symbol."+e)),kr[e]}});var mi=o((nd,Ti)=>{"use strict";var ul=F(),bi=k(),di=Rr(),ll=Me(),cl=Zn(),pl=N(),fl=TypeError,vl=pl("toPrimitive");Ti.exports=function(e,r){if(!bi(e)||di(e))return e;var t=ll(e,vl),n;if(t){if(r===void 0&&(r="default"),n=ul(t,e,r),!bi(n)||di(n))return n;throw new fl("Can't convert object to primitive value")}return r===void 0&&(r="number"),cl(e,r)}});var Cr=o((id,yi)=>{"use strict";var bl=mi(),dl=Rr();yi.exports=function(e){var r=bl(e,"string");return dl(r)?r:r+""}});var Mr=o((od,gi)=>{"use strict";var Tl=x(),hi=k(),Nr=Tl.document,ml=hi(Nr)&&hi(Nr.createElement);gi.exports=function(e){return ml?Nr.createElement(e):{}}});var Vr=o((ad,Ii)=>{"use strict";var yl=R(),hl=w(),gl=Mr();Ii.exports=!yl&&!hl(function(){return Object.defineProperty(gl("div"),"a",{get:function(){return 7}}).a!==7})});var Ei=o(xi=>{"use strict";var Il=R(),Ol=F(),xl=gr(),El=ae(),wl=B(),Sl=Cr(),ql=C(),Rl=Vr(),Oi=Object.getOwnPropertyDescriptor;xi.f=Il?Oi:function(r,t){if(r=wl(r),t=Sl(t),Rl)try{return Oi(r,t)}catch{}if(ql(r,t))return El(!Ol(xl.f,r,t),r[t])}});var Si=o((ud,wi)=>{"use strict";var Pl=w(),Al=E(),_l=/#|\.prototype\./,ce=function(e,r){var t=jl[Ll(e)];return t===Cl?!0:t===kl?!1:Al(r)?Pl(r):!!r},Ll=ce.normalize=function(e){return String(e).replace(_l,".").toLowerCase()},jl=ce.data={},kl=ce.NATIVE="N",Cl=ce.POLYFILL="P";wi.exports=ce});var Fr=o((ld,Ri)=>{"use strict";var qi=yr(),Nl=ue(),Ml=oe(),Vl=qi(qi.bind);Ri.exports=function(e,r){return Nl(e),r===void 0?e:Ml?Vl(e,r):function(){return e.apply(r,arguments)}}});var Dr=o((cd,Pi)=>{"use strict";var Fl=R(),Dl=w();Pi.exports=Fl&&Dl(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var K=o((pd,Ai)=>{"use strict";var Ul=k(),Gl=String,Ql=TypeError;Ai.exports=function(e){if(Ul(e))return e;throw new Ql(Gl(e)+" is not an object")}});var X=o(Li=>{"use strict";var Bl=R(),Kl=Vr(),Wl=Dr(),De=K(),_i=Cr(),$l=TypeError,Ur=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Gr="enumerable",Qr="configurable",Br="writable";Li.f=Bl?Wl?function(r,t,n){if(De(r),t=_i(t),De(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Br in n&&!n[Br]){var i=zl(r,t);i&&i[Br]&&(r[t]=n.value,n={configurable:Qr in n?n[Qr]:i[Qr],enumerable:Gr in n?n[Gr]:i[Gr],writable:!1})}return Ur(r,t,n)}:Ur:function(r,t,n){if(De(r),t=_i(t),De(n),Kl)try{return Ur(r,t,n)}catch{}if("get"in n||"set"in n)throw new $l("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var J=o((vd,ji)=>{"use strict";var Yl=R(),Hl=X(),Xl=ae();ji.exports=Yl?function(e,r,t){return Hl.f(e,r,Xl(1,t))}:function(e,r,t){return e[r]=t,e}});var re=o((bd,Ci)=>{"use strict";var pe=x(),Jl=cn(),Zl=yr(),ec=E(),rc=Ei().f,tc=Si(),Z=se(),nc=Fr(),ee=J(),ki=C();Ve();var ic=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 Jl(e,this,arguments)};return r.prototype=e.prototype,r};Ci.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,s=n?pe:i?pe[t]:pe[t]&&pe[t].prototype,u=n?Z:Z[t]||ee(Z,t,{})[t],p=u.prototype,c,v,l,b,d,m,y,I,h;for(b in r)c=tc(n?b:t+(i?".":"#")+b,e.forced),v=!c&&s&&ki(s,b),m=u[b],v&&(e.dontCallGetSet?(h=rc(s,b),y=h&&h.value):y=s[b]),d=v&&y?y:r[b],!(!c&&!a&&typeof m==typeof d)&&(e.bind&&v?I=nc(d,pe):e.wrap&&v?I=ic(d):a&&ec(d)?I=Zl(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&ee(I,"sham",!0),ee(u,b,I),a&&(l=t+"Prototype",ki(Z,l)||ee(Z,l,{}),ee(Z[l],b,d),e.real&&p&&(c||!p[b])&&ee(p,b,d)))}});var Mi=o((dd,Ni)=>{"use strict";var oc=Math.ceil,ac=Math.floor;Ni.exports=Math.trunc||function(r){var t=+r;return(t>0?ac:oc)(t)}});var Ue=o((Td,Vi)=>{"use strict";var sc=Mi();Vi.exports=function(e){var r=+e;return r!==r||r===0?0:sc(r)}});var Di=o((md,Fi)=>{"use strict";var uc=Ue(),lc=Math.min;Fi.exports=function(e){var r=uc(e);return r>0?lc(r,9007199254740991):0}});var Ge=o((yd,Ui)=>{"use strict";var cc=Di();Ui.exports=function(e){return cc(e.length)}});var Qe=o((hd,Gi)=>{"use strict";Gi.exports=function(){}});var Qi=o(()=>{"use strict";var pc=re(),fc=Fe(),vc=Ge(),bc=Ue(),dc=Qe();pc({target:"Array",proto:!0},{at:function(r){var t=fc(this),n=vc(t),i=bc(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});dc("at")});var Kr=o((Od,Bi)=>{"use strict";var Tc=ke();Bi.exports=Tc});var Wi=o((xd,Ki)=>{"use strict";Qi();var mc=Kr();Ki.exports=mc("Array","at")});var zi=o((Ed,$i)=>{"use strict";var yc=Wi();$i.exports=yc});var Hi=o((wd,Yi)=>{"use strict";var hc=zi();Yi.exports=hc});var Ye=o((AT,To)=>{"use strict";var Ec=Lr(),wc=jr(),bo=Ec("keys");To.exports=function(e){return bo[e]||(bo[e]=wc(e))}});var yo=o((_T,mo)=>{"use strict";var Sc=w();mo.exports=!Sc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var He=o((LT,go)=>{"use strict";var qc=C(),Rc=E(),Pc=Fe(),Ac=Ye(),_c=yo(),ho=Ac("IE_PROTO"),$r=Object,Lc=$r.prototype;go.exports=_c?$r.getPrototypeOf:function(e){var r=Pc(e);if(qc(r,ho))return r[ho];var t=r.constructor;return Rc(t)&&r instanceof t?t.prototype:r instanceof $r?Lc:null}});var Oo=o((jT,Io)=>{"use strict";var jc=Ue(),kc=Math.max,Cc=Math.min;Io.exports=function(e,r){var t=jc(e);return t<0?kc(t+r,0):Cc(t,r)}});var zr=o((kT,Eo)=>{"use strict";var Nc=B(),Mc=Oo(),Vc=Ge(),xo=function(e){return function(r,t,n){var i=Nc(r),a=Vc(i);if(a===0)return!e&&-1;var s=Mc(n,a),u;if(e&&t!==t){for(;a>s;)if(u=i[s++],u!==u)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};Eo.exports={includes:xo(!0),indexOf:xo(!1)}});var Xe=o((CT,wo)=>{"use strict";wo.exports={}});var Ro=o((NT,qo)=>{"use strict";var Fc=L(),Yr=C(),Dc=B(),Uc=zr().indexOf,Gc=Xe(),So=Fc([].push);qo.exports=function(e,r){var t=Dc(e),n=0,i=[],a;for(a in t)!Yr(Gc,a)&&Yr(t,a)&&So(i,a);for(;r.length>n;)Yr(t,a=r[n++])&&(~Uc(i,a)||So(i,a));return i}});var Hr=o((MT,Po)=>{"use strict";Po.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Xr=o((VT,Ao)=>{"use strict";var Qc=Ro(),Bc=Hr();Ao.exports=Object.keys||function(r){return Qc(r,Bc)}});var No=o((FT,Co)=>{"use strict";var Lo=R(),Kc=w(),jo=L(),Wc=He(),$c=Xr(),zc=B(),Yc=gr().f,ko=jo(Yc),Hc=jo([].push),Xc=Lo&&Kc(function(){var e=Object.create(null);return e[2]=2,!ko(e,2)}),_o=function(e){return function(r){for(var t=zc(r),n=$c(t),i=Xc&&Wc(t)===null,a=n.length,s=0,u=[],p;a>s;)p=n[s++],(!Lo||(i?p in t:ko(t,p)))&&Hc(u,e?[p,t[p]]:t[p]);return u}};Co.exports={entries:_o(!0),values:_o(!1)}});var Mo=o(()=>{"use strict";var Jc=re(),Zc=No().entries;Jc({target:"Object",stat:!0},{entries:function(r){return Zc(r)}})});var Fo=o((GT,Vo)=>{"use strict";Mo();var ep=se();Vo.exports=ep.Object.entries});var Uo=o((QT,Do)=>{"use strict";var rp=Fo();Do.exports=rp});var Jr=o((BT,Go)=>{"use strict";var tp=Uo();Go.exports=tp});var zo=o(()=>{"use strict";var op=re(),ap=zr().includes,sp=w(),up=Qe(),lp=sp(function(){return!Array(1).includes()});op({target:"Array",proto:!0,forced:lp},{includes:function(r){return ap(this,r,arguments.length>1?arguments[1]:void 0)}});up("includes")});var Ho=o((hm,Yo)=>{"use strict";zo();var cp=Kr();Yo.exports=cp("Array","includes")});var Jo=o((gm,Xo)=>{"use strict";var pp=Ho();Xo.exports=pp});var ea=o((Im,Zo)=>{"use strict";var fp=Jo();Zo.exports=fp});var W=o((yy,aa)=>{"use strict";aa.exports={}});var la=o((hy,ua)=>{"use strict";var dp=x(),Tp=E(),sa=dp.WeakMap;ua.exports=Tp(sa)&&/native code/.test(String(sa))});var va=o((gy,fa)=>{"use strict";var mp=la(),pa=x(),yp=k(),hp=J(),It=C(),Ot=Ve(),gp=Ye(),Ip=Xe(),ca="Object already initialized",xt=pa.TypeError,Op=pa.WeakMap,er,he,rr,xp=function(e){return rr(e)?he(e):er(e,{})},Ep=function(e){return function(r){var t;if(!yp(r)||(t=he(r)).type!==e)throw new xt("Incompatible receiver, "+e+" required");return t}};mp||Ot.state?(A=Ot.state||(Ot.state=new Op),A.get=A.get,A.has=A.has,A.set=A.set,er=function(e,r){if(A.has(e))throw new xt(ca);return r.facade=e,A.set(e,r),r},he=function(e){return A.get(e)||{}},rr=function(e){return A.has(e)}):($=gp("state"),Ip[$]=!0,er=function(e,r){if(It(e,$))throw new xt(ca);return r.facade=e,hp(e,$,r),r},he=function(e){return It(e,$)?e[$]:{}},rr=function(e){return It(e,$)});var A,$;fa.exports={set:er,get:he,has:rr,enforce:xp,getterFor:Ep}});var Ta=o((Iy,da)=>{"use strict";var Et=R(),wp=C(),ba=Function.prototype,Sp=Et&&Object.getOwnPropertyDescriptor,wt=wp(ba,"name"),qp=wt&&function(){}.name==="something",Rp=wt&&(!Et||Et&&Sp(ba,"name").configurable);da.exports={EXISTS:wt,PROPER:qp,CONFIGURABLE:Rp}});var ya=o(ma=>{"use strict";var Pp=R(),Ap=Dr(),_p=X(),Lp=K(),jp=B(),kp=Xr();ma.f=Pp&&!Ap?Object.defineProperties:function(r,t){Lp(r);for(var n=jp(t),i=kp(t),a=i.length,s=0,u;a>s;)_p.f(r,u=i[s++],n[u]);return r}});var ga=o((xy,ha)=>{"use strict";var Cp=ke();ha.exports=Cp("document","documentElement")});var Pt=o((Ey,qa)=>{"use strict";var Np=K(),Mp=ya(),Ia=Hr(),Vp=Xe(),Fp=ga(),Dp=Mr(),Up=Ye(),Oa=">",xa="<",qt="prototype",Rt="script",wa=Up("IE_PROTO"),St=function(){},Sa=function(e){return xa+Rt+Oa+e+xa+"/"+Rt+Oa},Ea=function(e){e.write(Sa("")),e.close();var r=e.parentWindow.Object;return e=null,r},Gp=function(){var e=Dp("iframe"),r="java"+Rt+":",t;return e.style.display="none",Fp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Sa("document.F=Object")),t.close(),t.F},tr,nr=function(){try{tr=new ActiveXObject("htmlfile")}catch{}nr=typeof document<"u"?document.domain&&tr?Ea(tr):Gp():Ea(tr);for(var e=Ia.length;e--;)delete nr[qt][Ia[e]];return nr()};Vp[wa]=!0;qa.exports=Object.create||function(r,t){var n;return r!==null?(St[qt]=Np(r),n=new St,St[qt]=null,n[wa]=r):n=nr(),t===void 0?n:Mp.f(n,t)}});var At=o((wy,Ra)=>{"use strict";var Qp=J();Ra.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Qp(e,r,t),e}});var kt=o((Sy,_a)=>{"use strict";var Bp=w(),Kp=E(),Wp=k(),$p=Pt(),Pa=He(),zp=At(),Yp=N(),Hp=le(),jt=Yp("iterator"),Aa=!1,M,_t,Lt;[].keys&&(Lt=[].keys(),"next"in Lt?(_t=Pa(Pa(Lt)),_t!==Object.prototype&&(M=_t)):Aa=!0);var Xp=!Wp(M)||Bp(function(){var e={};return M[jt].call(e)!==e});Xp?M={}:Hp&&(M=$p(M));Kp(M[jt])||zp(M,jt,function(){return this});_a.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:Aa}});var ir=o((qy,ja)=>{"use strict";var Jp=N(),Zp=Jp("toStringTag"),La={};La[Zp]="z";ja.exports=String(La)==="[object z]"});var Ct=o((Ry,ka)=>{"use strict";var ef=ir(),rf=E(),or=Ae(),tf=N(),nf=tf("toStringTag"),of=Object,af=or(function(){return arguments}())==="Arguments",sf=function(e,r){try{return e[r]}catch{}};ka.exports=ef?or:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=sf(r=of(e),nf))=="string"?t:af?or(r):(n=or(r))==="Object"&&rf(r.callee)?"Arguments":n}});var Na=o((Py,Ca)=>{"use strict";var uf=ir(),lf=Ct();Ca.exports=uf?{}.toString:function(){return"[object "+lf(this)+"]"}});var ar=o((Ay,Va)=>{"use strict";var cf=ir(),pf=X().f,ff=J(),vf=C(),bf=Na(),df=N(),Ma=df("toStringTag");Va.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(vf(i,Ma)||pf(i,Ma,{configurable:!0,value:r}),n&&!cf&&ff(i,"toString",bf))}});var Da=o((_y,Fa)=>{"use strict";var Tf=kt().IteratorPrototype,mf=Pt(),yf=ae(),hf=ar(),gf=W(),If=function(){return this};Fa.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=mf(Tf,{next:yf(+!n,t)}),hf(e,i,!1,!0),gf[i]=If,e}});var Ga=o((Ly,Ua)=>{"use strict";var Of=L(),xf=ue();Ua.exports=function(e,r,t){try{return Of(xf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var Ba=o((jy,Qa)=>{"use strict";var Ef=k();Qa.exports=function(e){return Ef(e)||e===null}});var Wa=o((ky,Ka)=>{"use strict";var wf=Ba(),Sf=String,qf=TypeError;Ka.exports=function(e){if(wf(e))return e;throw new qf("Can't set "+Sf(e)+" as a prototype")}});var za=o((Cy,$a)=>{"use strict";var Rf=Ga(),Pf=k(),Af=je(),_f=Wa();$a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Rf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,a){return Af(i),_f(a),Pf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var os=o((Ny,is)=>{"use strict";var Lf=re(),jf=F(),sr=le(),ts=Ta(),kf=E(),Cf=Da(),Ya=He(),Ha=za(),Nf=ar(),Mf=J(),Nt=At(),Vf=N(),Xa=W(),ns=kt(),Ff=ts.PROPER,Df=ts.CONFIGURABLE,Ja=ns.IteratorPrototype,ur=ns.BUGGY_SAFARI_ITERATORS,ge=Vf("iterator"),Za="keys",Ie="values",es="entries",rs=function(){return this};is.exports=function(e,r,t,n,i,a,s){Cf(t,r,n);var u=function(h){if(h===i&&b)return b;if(!ur&&h&&h in v)return v[h];switch(h){case Za:return function(){return new t(this,h)};case Ie:return function(){return new t(this,h)};case es:return function(){return new t(this,h)}}return function(){return new t(this)}},p=r+" Iterator",c=!1,v=e.prototype,l=v[ge]||v["@@iterator"]||i&&v[i],b=!ur&&l||u(i),d=r==="Array"&&v.entries||l,m,y,I;if(d&&(m=Ya(d.call(new e)),m!==Object.prototype&&m.next&&(!sr&&Ya(m)!==Ja&&(Ha?Ha(m,Ja):kf(m[ge])||Nt(m,ge,rs)),Nf(m,p,!0,!0),sr&&(Xa[p]=rs))),Ff&&i===Ie&&l&&l.name!==Ie&&(!sr&&Df?Mf(v,"name",Ie):(c=!0,b=function(){return jf(l,this)})),i)if(y={values:u(Ie),keys:a?b:u(Za),entries:u(es)},s)for(I in y)(ur||c||!(I in v))&&Nt(v,I,y[I]);else Lf({target:r,proto:!0,forced:ur||c},y);return(!sr||s)&&v[ge]!==b&&Nt(v,ge,b,{name:i}),Xa[r]=b,y}});var ss=o((My,as)=>{"use strict";as.exports=function(e,r){return{value:e,done:r}}});var Vt=o((Vy,fs)=>{"use strict";var Uf=B(),Mt=Qe(),us=W(),cs=va(),Gf=X().f,Qf=os(),lr=ss(),Bf=le(),Kf=R(),ps="Array Iterator",Wf=cs.set,$f=cs.getterFor(ps);fs.exports=Qf(Array,"Array",function(e,r){Wf(this,{type:ps,target:Uf(e),index:0,kind:r})},function(){var e=$f(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,lr(void 0,!0);switch(e.kind){case"keys":return lr(t,!1);case"values":return lr(r[t],!1)}return lr([t,r[t]],!1)},"values");var ls=us.Arguments=us.Array;Mt("keys");Mt("values");Mt("entries");if(!Bf&&Kf&&ls.name!=="values")try{Gf(ls,"name",{value:"values"})}catch{}});var bs=o((Fy,vs)=>{"use strict";var zf=N(),Yf=W(),Hf=zf("iterator"),Xf=Array.prototype;vs.exports=function(e){return e!==void 0&&(Yf.Array===e||Xf[Hf]===e)}});var Ft=o((Dy,Ts)=>{"use strict";var Jf=Ct(),ds=Me(),Zf=Le(),ev=W(),rv=N(),tv=rv("iterator");Ts.exports=function(e){if(!Zf(e))return ds(e,tv)||ds(e,"@@iterator")||ev[Jf(e)]}});var ys=o((Uy,ms)=>{"use strict";var nv=F(),iv=ue(),ov=K(),av=Ne(),sv=Ft(),uv=TypeError;ms.exports=function(e,r){var t=arguments.length<2?sv(e):r;if(iv(t))return ov(nv(t,e));throw new uv(av(e)+" is not iterable")}});var Is=o((Gy,gs)=>{"use strict";var lv=F(),hs=K(),cv=Me();gs.exports=function(e,r,t){var n,i;hs(e);try{if(n=cv(e,"return"),!n){if(r==="throw")throw t;return t}n=lv(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return hs(n),t}});var Ss=o((Qy,ws)=>{"use strict";var pv=Fr(),fv=F(),vv=K(),bv=Ne(),dv=bs(),Tv=Ge(),Os=Er(),mv=ys(),yv=Ft(),xs=Is(),hv=TypeError,cr=function(e,r){this.stopped=e,this.result=r},Es=cr.prototype;ws.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),u=!!(t&&t.INTERRUPTED),p=pv(r,n),c,v,l,b,d,m,y,I=function(g){return c&&xs(c,"normal",g),new cr(!0,g)},h=function(g){return i?(vv(g),u?p(g[0],g[1],I):p(g[0],g[1])):u?p(g,I):p(g)};if(a)c=e.iterator;else if(s)c=e;else{if(v=yv(e),!v)throw new hv(bv(e)+" is not iterable");if(dv(v)){for(l=0,b=Tv(e);b>l;l++)if(d=h(e[l]),d&&Os(Es,d))return d;return new cr(!1)}c=mv(e,v)}for(m=a?e.next:c.next;!(y=fv(m,c)).done;){try{d=h(y.value)}catch(g){xs(c,"throw",g)}if(typeof d=="object"&&d&&Os(Es,d))return d}return new cr(!1)}});var Rs=o((By,qs)=>{"use strict";var gv=R(),Iv=X(),Ov=ae();qs.exports=function(e,r,t){gv?Iv.f(e,r,Ov(0,t)):e[r]=t}});var Ps=o(()=>{"use strict";var xv=re(),Ev=Ss(),wv=Rs();xv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Ev(r,function(n,i){wv(t,n,i)},{AS_ENTRIES:!0}),t}})});var _s=o(($y,As)=>{"use strict";Vt();Ps();var Sv=se();As.exports=Sv.Object.fromEntries});var js=o((zy,Ls)=>{"use strict";Ls.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 Cs=o(()=>{"use strict";Vt();var qv=js(),Rv=x(),Pv=ar(),ks=W();for(pr in qv)Pv(Rv[pr],pr),ks[pr]=ks.Array;var pr});var Ms=o((Xy,Ns)=>{"use strict";var Av=_s();Cs();Ns.exports=Av});var Fs=o((Jy,Vs)=>{"use strict";var _v=Ms();Vs.exports=_v});var Gv={};fr(Gv,{ErrorCategory:()=>na,InterfaceLanguage:()=>Qs,InternalsExposure:()=>Dt,Logger:()=>Se,Observable:()=>f,Subject:()=>j,Subscription:()=>O,SubscriptionRemovable:()=>de,Tracer:()=>qe,VERSION:()=>Wt,VKNumericLanguage:()=>Gs,ValueSubject:()=>be,VideoQuality:()=>Be,abortable:()=>en,addScript:()=>Jt,areQualitiesExact:()=>ao,assertEmptyArray:()=>Xt,assertNever:()=>_,assertNonNullable:()=>zt,assertNotEmptyArray:()=>Ht,assertNullable:()=>Yt,assertQualityIsExact:()=>so,binarySearch:()=>fo,buffer:()=>tt,checkNever:()=>$t,clearVideoElement:()=>po,cloneDeep:()=>lo,cloneDeepWith:()=>fe,combine:()=>Zr,createURL:()=>xc,debounce:()=>it,debounceFn:()=>$e,detectEmbed:()=>Xi,devNull:()=>Ut,fillWithDefault:()=>uo,filter:()=>ut,filterChanged:()=>ct,flattenObject:()=>ve,fromEvent:()=>$o,getExponentialDelay:()=>rn,getHighestQuality:()=>ro,getTraceSubscriptionMethod:()=>vo,interval:()=>Ko,isHigher:()=>Ji,isHigherOrEqual:()=>Zi,isInvariantQuality:()=>We,isLower:()=>Ke,isLowerOrEqual:()=>eo,isNonNullable:()=>G,isNullable:()=>Pe,isValidURL:()=>Oc,loadVKLangPack:()=>jv,map:()=>Te,mapTo:()=>ft,merge:()=>et,noop:()=>V,now:()=>Zt,observableFrom:()=>Wo,observeElementSize:()=>co,once:()=>vt,pairwise:()=>dt,safeStorage:()=>dr,skip:()=>ht,tap:()=>mt,throttle:()=>at,throttleFn:()=>ze,timeCodeToString:()=>gc,timeout:()=>Bo,videoHeightToQuality:()=>no,videoQualityToHeight:()=>oo,videoSizeToQuality:()=>io});module.exports=Js(Gv);var Wt="1.0.58-dev.ef87de0a.0";var O=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 V=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){let n;t?typeof t=="function"?n={next:t,error:V}:n={next:s=>t.next(s),error:s=>t.error?.(s)}:n={next:V,error:V};let i=typeof r=="function"?{next:s=>{try{let u=r(s);u instanceof Promise&&u.catch(p=>n.next(p))}catch(u){n.next(u)}},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(i)}catch(s){i.error?.(s)}return new O().add(()=>{switch(i.next=V,i.error=V,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return _(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var j=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>n.error?.(t))}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new O().add(()=>this.subscribers.delete(n))}};var Se=class{constructor(){this.log$=new j;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{n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};var Re=require("@opentelemetry/api");var U=require("@tracer/opentelemetry"),vr=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},qe=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let s=(0,U.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new U.TracerMemorySpanExporter,p=new U.TracerMemorySpanExporter;this.spanExporter=u,s.addSpanProcessor(new U.TracerAllSpansProcessor({startedSpansExporter:u,endedSpansExporter:p})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=Re.trace.setSpan(Re.context.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new vr({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){return this.spanExporter?.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function zt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Yt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e<"u"&&e!==null}function Pe(e){return e==null}function Ht(e,r){if(!e?.length)throw new Error(r)}function Xt(e,r){if(e?.length)throw new Error(r)}var Jt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{u(),c.remove()});let a=()=>{u(),i("error")},s=()=>{u(),n()},u=()=>{p&&clearTimeout(p),c.removeEventListener("load",s),c.removeEventListener("error",a)},p;t&&(p=window.setTimeout(()=>{u(),i("timeout")},t));let c=document.createElement("script");c.addEventListener("load",s),c.addEventListener("error",a),c.src=e,document.head.appendChild(c)});var Zt=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var en=(e,r)=>async(...t)=>{let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=s.done??!1,a=s.value}catch(s){await n.throw(s)}return a};var rn=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let s=r;return s*=t**e,s*=1+(Math.random()*a*2-a),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,i),s};var dr={};fr(dr,{clear:()=>iu,get:()=>eu,has:()=>tu,isPersistent:()=>Zs,remove:()=>nu,set:()=>ru});var z,Q,br=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(Q!==void 0)return Q;try{localStorage.setItem(br,"test"),localStorage.removeItem(br),Q=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(br),Q=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Q=2;else throw r}else throw e}return Q===2&&(z=new Map),Q},Zs=()=>Y()===0,eu=e=>{let r=Y();switch(r){case 0:return localStorage.getItem(e)??void 0;case 1:return sessionStorage.getItem(e)??void 0;case 2:return z?.get(e);default:_(r)}},ru=(e,r)=>{let t=Y();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:z?.set(e,r);return;default:_(t)}},tu=e=>{let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return z?.has(e)??!1;default:return _(r),!1}},nu=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:z?.delete(e);return;default:_(r)}},iu=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return z?.clear();default:_(e)}};var Wr=ne(Hi(),1),Xi=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Wr.default)(r,-1),immediateOrigin:(0,Wr.default)(r,0)}};var Be=(l=>(l.INVARIANT="Invariant quality",l.Q_144P="144p",l.Q_240P="240p",l.Q_360P="360p",l.Q_480P="480p",l.Q_576P="576p",l.Q_720P="720p",l.Q_1080P="1080p",l.Q_1440P="1440p",l.Q_2160P="2160p",l.Q_4320P="4320p",l))(Be||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},Ji=(e,r)=>S[e].height>S[r].height,Zi=(e,r)=>S[e].height>=S[r].height,Ke=(e,r)=>S[e].height<S[r].height,eo=(e,r)=>S[e].height<=S[r].height,ro=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Ke(r,t)?1:-1)[0],to=Object.keys(S).sort((e,r)=>Ke(e,r)?-1:1),no=(e,r=.02)=>[...to].find(n=>S[n].height*(1+r)>=e),io=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return to.find(i=>{let a=S[i];return a.width>=n&&a.height>=t})},oo=e=>S[e].height,We=e=>e==="Invariant quality",ao=e=>e.every(r=>!We(r));function so(e){if(We(e))throw new Error("Expected exact quality")}var uo=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=uo(a,i):t[n]=n in e?a:i}return t};var gc=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 $e(e,r=0,t){let n,i,a,s,u,p,c=0,v=!1,l=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,l="maxWait"in t,a=t?.maxWait?Math.max(+t?.maxWait||0,r):a,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,D=i;return n=i=void 0,c=T,s=e.apply(D,q),s}function y(T,q){return d?(u&&window.cancelAnimationFrame(u),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function h(T){return c=T,u=y(xe,r),v?m(T):s}function g(T){let q=T-p,D=T-c,Bt=r-q;return l?Math.min(Bt,a-D):Bt}function Gt(T){let q=T-p,D=T-c;return p===void 0||q>=r||q<0||l&&D>=a}function xe(){let T=Date.now();if(Gt(T))return Qt(T);u=y(xe,g(T))}function Qt(T){return u=void 0,b&&n?m(T):(n=i=void 0,s)}function Bs(){u!==void 0&&I(u),c=0,n=p=i=u=void 0}function Ks(){return u===void 0?s:Qt(Date.now())}function Ws(){return u!==void 0}function Ee(...T){let q=Date.now(),D=Gt(q);if(n=T,i=this,p=q,D){if(u===void 0)return h(p);if(l)return u=y(xe,r),m(p)}return u===void 0&&(u=y(xe,r)),s}return Ee.cancel=Bs,Ee.flush=Ks,Ee.pending=Ws,Ee}var ze=(e,r=0,t)=>$e(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var fe=(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]=fe(e[n],r):t[n]=e[n]}return t};var lo=e=>fe(e);var Ic=300,co=(e,r=Ic)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(ze(s=>{let u=s[0];if(!u)return;let p,c;u.contentBoxSize&&u.contentBoxSize[0]?(c=u.contentBoxSize[0].blockSize,p=u.contentBoxSize[0].inlineSize):u.contentRect&&(p=u.contentRect.width,c=u.contentRect.height),G(p)&&G(c)&&t.next({width:p,height:c})},r));return a.observe(e),()=>a.disconnect()});var ve=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let a=ve(e[i],r-1);for(let s in a)a.hasOwnProperty(s)&&(n[i+t+s]=a[s])}else n[i]=e[i];return n};var po=e=>{e.removeAttribute("src"),e.load()};var Oc=e=>{let r;try{r=new URL(e)}catch{return!1}return r.protocol==="https:"};var xc=e=>{try{return new URL(e)}catch{return null}};var fo=(e,r)=>{let t=0,n=e.length-1;for(;t<=n;){let i=Math.floor((t+n)/2),a=r(e[i]);if(a===0)return i;a<0?t=i+1:n=i-1}return-1};var vo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ve(t):{value:t})};var be=class extends j{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}};var Qo=ne(Jr(),1);function Zr(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>s=>{a in t||n--,t[a]=s,n===0&&r.next(t)};return(0,Qo.default)(e).reduce((a,[s,u])=>a.add(u.subscribe(i(s))),new O)})}function et(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new O))}var Bo=e=>new f(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 Ko=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Wo=e=>new f(r=>{e.forEach(t=>r.next(t))});var $o=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var de=class extends O{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function tt(e){return r=>new f(t=>r.subscribe(new rt(t,e)))}var rt=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){this.destination.error?.(r)}};var np={leading:!1,trailing:!0};function it(e,r=np){return t=>new f(n=>t.subscribe(new nt(n,e,r)))}var nt=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){this.destination.error?.(r)}};var ip={leading:!0,trailing:!1};function at(e,r=ip){return t=>new f(n=>t.subscribe(new ot(n,e,r)))}var ot=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Pe(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){this.destination.error?.(r)}};function ut(e){return r=>new f(t=>r.subscribe(new st(t,e)))}var st=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){this.destination.error?.(r)}};var ta=ne(ea(),1);var vp=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let s in i)if(!(0,ta.default)(a,s)||i[s]!==n[s])return!1;return!0};return t(e,r)&&t(r,e)},bp=(e,r)=>e instanceof Object&&r instanceof Object?vp(e,r):e===r;function ct(e=bp){return r=>new f(t=>r.subscribe(new lt(t,e)))}var ra={},lt=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=ra}next(r){let t;try{t=this.lastValue===ra||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){this.destination.error?.(r)}};function Te(e){return r=>new f(t=>r.subscribe(new pt(t,e)))}var pt=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){this.destination.error?.(r)}};function ft(e){return Te(()=>e)}function vt(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{t=!0,r.error?.(a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function dt(){return e=>new f(r=>e.subscribe(new bt(r)))}var bt=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){this.destination.error?.(r)}};function mt(e){return r=>new f(t=>r.subscribe(new Tt(t,e)))}var Tt=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){this.destination.error?.(r)}};function ht(e){return r=>new f(t=>r.subscribe(new yt(t,e)))}var yt=class{constructor(r,t){this.destination=r;this.count=t;t<0&&this.destination.error?.(new Error("Count can not be less than zero"))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){this.destination.error?.(r)}};var na=(u=>(u.NETWORK="network",u.VIDEO_PIPELINE="video_pipeline",u.EXTERNAL_API="external_api",u.PARSER="parser",u.DOM="dom",u.WTF="wtf",u.FATAL="fatal",u))(na||{});var Je=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,a=n.length;i<a;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,a=n.length;i<a;i++){let s=n[i];try{s.callback.call(this,r)}catch(u){Promise.resolve().then(()=>{throw u})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},te=class extends Je{constructor(){super(),this.listeners||Je.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)}},me=class{constructor(){Object.defineProperty(this,"signal",{value:new te,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch{typeof document<"u"?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>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(me.prototype[Symbol.toStringTag]="AbortController",te.prototype[Symbol.toStringTag]="AbortSignal");function Ze(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 gt(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ze({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(c,v){let l;v&&v.signal&&(l=v.signal,delete v.signal);let b=new t(c,v);return l&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:l}),b},a.prototype=t.prototype);let s=r;return{fetch:(p,c)=>{let v=a&&a.prototype.isPrototypeOf(p)?p.signal:c?c.signal:void 0;if(v){let l;try{l=new DOMException("Aborted","AbortError")}catch{l=new Error("Aborted"),l.name="AbortError"}if(v.aborted)return Promise.reject(l);let b=new Promise((d,m)=>{v.addEventListener("abort",()=>m(l),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([b,s(p,c)])}return s(p,c)},Request:a}}var ye=Ze({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),ia=ye?gt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,oa=ye?ia.fetch:window.fetch,by=ye?ia.Request:window.Request,dy=ye?me:window.AbortController,Ty=ye?te:window.AbortSignal;var Ds=ne(Jr(),1),Us=ne(Fs(),1),Gs=(l=>(l.Armenian="58",l.Azerbaijani="57",l.Belarusian="114",l.English="3",l.Kazakh="97",l.Portuguese="73",l.Russian="0",l.Spanish="4",l.Ukrainian="1",l.Uzbek="65",l.Vietnamese="75",l))(Gs||{}),Lv="vk.com",jv=async(e,r,t)=>{let n=new URL(`https://${Lv}/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 oa(n.toString())).json();return kv(a,t)},kv=(e,r)=>(0,Us.default)((0,Ds.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Cv(n)])),Cv=e=>Array.isArray(e)?e[0]:e;var Qs=(t=>(t.RU="ru",t.EN="en",t))(Qs||{});var Nv={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Mv=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Dt=class{constructor(r){this.id=Mv();this.type=r,this.initWindowObjects()}getWindowObject(){let r=this.key();return window[r]?.[this.id]??{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Nv[r]}};var Ut={};fr(Ut,{create:()=>Vv,destroy:()=>Fv,push:()=>Dv,subscribe:()=>Uv});var Oe=new Map,Vv=(e,r)=>Oe.set(e,r??[]),Fv=e=>Oe.delete(e),Dv=(e,r)=>{let t=Oe.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Uv=(e,r)=>{let t=Oe.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Oe.set(e,r)}};
6
+ "use strict";var Bs=Object.create;var Ee=Object.defineProperty;var zs=Object.getOwnPropertyDescriptor;var Ks=Object.getOwnPropertyNames;var Ws=Object.getPrototypeOf,$s=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),lr=(e,r)=>{for(var t in r)Ee(e,t,{get:r[t],enumerable:!0})},Qt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ks(r))!$s.call(e,i)&&i!==t&&Ee(e,i,{get:()=>r[i],enumerable:!(n=zs(r,i))||n.enumerable});return e};var V=(e,r,t)=>(t=e!=null?Bs(Ws(e)):{},Qt(r||!e||!e.__esModule?Ee(t,"default",{value:e,enumerable:!0}):t,e)),Ys=e=>Qt(Ee({},"__esModule",{value:!0}),e);var x=o((dr,en)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};en.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof global=="object"&&global)||ne(typeof dr=="object"&&dr)||function(){return this}()||Function("return this")()});var S=o((gd,rn)=>{"use strict";rn.exports=function(e){try{return!!e()}catch{return!0}}});var ie=o((Id,tn)=>{"use strict";var tu=S();tn.exports=!tu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var un=o((Od,sn)=>{"use strict";var nu=ie(),an=Function.prototype,nn=an.apply,on=an.call;sn.exports=typeof Reflect=="object"&&Reflect.apply||(nu?on.bind(nn):function(){return on.apply(nn,arguments)})});var L=o((xd,pn)=>{"use strict";var cn=ie(),ln=Function.prototype,br=ln.call,iu=cn&&ln.bind.bind(br,br);pn.exports=cn?iu:function(e){return function(){return br.apply(e,arguments)}}});var Re=o((Ed,vn)=>{"use strict";var fn=L(),ou=fn({}.toString),au=fn("".slice);vn.exports=function(e){return au(ou(e),8,-1)}});var mr=o((Sd,dn)=>{"use strict";var su=Re(),uu=L();dn.exports=function(e){if(su(e)==="Function")return uu(e)}});var E=o((wd,bn)=>{"use strict";var Tr=typeof document=="object"&&document.all;bn.exports=typeof Tr>"u"&&Tr!==void 0?function(e){return typeof e=="function"||e===Tr}:function(e){return typeof e=="function"}});var R=o((qd,mn)=>{"use strict";var cu=S();mn.exports=!cu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var D=o((Rd,Tn)=>{"use strict";var lu=ie(),Pe=Function.prototype.call;Tn.exports=lu?Pe.bind(Pe):function(){return Pe.apply(Pe,arguments)}});var yr=o(gn=>{"use strict";var yn={}.propertyIsEnumerable,hn=Object.getOwnPropertyDescriptor,pu=hn&&!yn.call({1:2},1);gn.f=pu?function(r){var t=hn(this,r);return!!t&&t.enumerable}:yn});var oe=o((Ad,In)=>{"use strict";In.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var xn=o((_d,On)=>{"use strict";var fu=L(),vu=S(),du=Re(),hr=Object,bu=fu("".split);On.exports=vu(function(){return!hr("z").propertyIsEnumerable(0)})?function(e){return du(e)==="String"?bu(e,""):hr(e)}:hr});var Ae=o((Ld,En)=>{"use strict";En.exports=function(e){return e==null}});var _e=o((kd,Sn)=>{"use strict";var mu=Ae(),Tu=TypeError;Sn.exports=function(e){if(mu(e))throw new Tu("Can't call method on "+e);return e}});var B=o((jd,wn)=>{"use strict";var yu=xn(),hu=_e();wn.exports=function(e){return yu(hu(e))}});var j=o((Cd,qn)=>{"use strict";var gu=E();qn.exports=function(e){return typeof e=="object"?e!==null:gu(e)}});var ae=o((Nd,Rn)=>{"use strict";Rn.exports={}});var Le=o((Md,An)=>{"use strict";var gr=ae(),Ir=x(),Iu=E(),Pn=function(e){return Iu(e)?e:void 0};An.exports=function(e,r){return arguments.length<2?Pn(gr[e])||Pn(Ir[e]):gr[e]&&gr[e][r]||Ir[e]&&Ir[e][r]}});var Or=o((Vd,_n)=>{"use strict";var Ou=L();_n.exports=Ou({}.isPrototypeOf)});var Cn=o((Fd,jn)=>{"use strict";var xu=x(),Ln=xu.navigator,kn=Ln&&Ln.userAgent;jn.exports=kn?String(kn):""});var Gn=o((Dd,Un)=>{"use strict";var Dn=x(),xr=Cn(),Nn=Dn.process,Mn=Dn.Deno,Vn=Nn&&Nn.versions||Mn&&Mn.version,Fn=Vn&&Vn.v8,P,ke;Fn&&(P=Fn.split("."),ke=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!ke&&xr&&(P=xr.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=xr.match(/Chrome\/(\d+)/),P&&(ke=+P[1])));Un.exports=ke});var Er=o((Ud,Bn)=>{"use strict";var Qn=Gn(),Eu=S(),Su=x(),wu=Su.String;Bn.exports=!!Object.getOwnPropertySymbols&&!Eu(function(){var e=Symbol("symbol detection");return!wu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qn&&Qn<41})});var Sr=o((Gd,zn)=>{"use strict";var qu=Er();zn.exports=qu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var wr=o((Qd,Kn)=>{"use strict";var Ru=Le(),Pu=E(),Au=Or(),_u=Sr(),Lu=Object;Kn.exports=_u?function(e){return typeof e=="symbol"}:function(e){var r=Ru("Symbol");return Pu(r)&&Au(r.prototype,Lu(e))}});var je=o((Bd,Wn)=>{"use strict";var ku=String;Wn.exports=function(e){try{return ku(e)}catch{return"Object"}}});var se=o((zd,$n)=>{"use strict";var ju=E(),Cu=je(),Nu=TypeError;$n.exports=function(e){if(ju(e))return e;throw new Nu(Cu(e)+" is not a function")}});var Ce=o((Kd,Yn)=>{"use strict";var Mu=se(),Vu=Ae();Yn.exports=function(e,r){var t=e[r];return Vu(t)?void 0:Mu(t)}});var Xn=o((Wd,Hn)=>{"use strict";var qr=D(),Rr=E(),Pr=j(),Fu=TypeError;Hn.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 new Fu("Can't convert object to primitive value")}});var ue=o(($d,Jn)=>{"use strict";Jn.exports=!0});var ri=o((Yd,ei)=>{"use strict";var Zn=x(),Du=Object.defineProperty;ei.exports=function(e,r){try{Du(Zn,e,{value:r,configurable:!0,writable:!0})}catch{Zn[e]=r}return r}});var Ne=o((Hd,ii)=>{"use strict";var Uu=ue(),Gu=x(),Qu=ri(),ti="__core-js_shared__",ni=ii.exports=Gu[ti]||Qu(ti,{});(ni.versions||(ni.versions=[])).push({version:"3.38.0",mode:Uu?"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 Ar=o((Xd,ai)=>{"use strict";var oi=Ne();ai.exports=function(e,r){return oi[e]||(oi[e]=r||{})}});var Me=o((Jd,si)=>{"use strict";var Bu=_e(),zu=Object;si.exports=function(e){return zu(Bu(e))}});var C=o((Zd,ui)=>{"use strict";var Ku=L(),Wu=Me(),$u=Ku({}.hasOwnProperty);ui.exports=Object.hasOwn||function(r,t){return $u(Wu(r),t)}});var _r=o((eb,ci)=>{"use strict";var Yu=L(),Hu=0,Xu=Math.random(),Ju=Yu(1 .toString);ci.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ju(++Hu+Xu,36)}});var N=o((rb,pi)=>{"use strict";var Zu=x(),ec=Ar(),li=C(),rc=_r(),tc=Er(),nc=Sr(),H=Zu.Symbol,Lr=ec("wks"),ic=nc?H.for||H:H&&H.withoutSetter||rc;pi.exports=function(e){return li(Lr,e)||(Lr[e]=tc&&li(H,e)?H[e]:ic("Symbol."+e)),Lr[e]}});var bi=o((tb,di)=>{"use strict";var oc=D(),fi=j(),vi=wr(),ac=Ce(),sc=Xn(),uc=N(),cc=TypeError,lc=uc("toPrimitive");di.exports=function(e,r){if(!fi(e)||vi(e))return e;var t=ac(e,lc),n;if(t){if(r===void 0&&(r="default"),n=oc(t,e,r),!fi(n)||vi(n))return n;throw new cc("Can't convert object to primitive value")}return r===void 0&&(r="number"),sc(e,r)}});var kr=o((nb,mi)=>{"use strict";var pc=bi(),fc=wr();mi.exports=function(e){var r=pc(e,"string");return fc(r)?r:r+""}});var Cr=o((ib,yi)=>{"use strict";var vc=x(),Ti=j(),jr=vc.document,dc=Ti(jr)&&Ti(jr.createElement);yi.exports=function(e){return dc?jr.createElement(e):{}}});var Nr=o((ob,hi)=>{"use strict";var bc=R(),mc=S(),Tc=Cr();hi.exports=!bc&&!mc(function(){return Object.defineProperty(Tc("div"),"a",{get:function(){return 7}}).a!==7})});var Oi=o(Ii=>{"use strict";var yc=R(),hc=D(),gc=yr(),Ic=oe(),Oc=B(),xc=kr(),Ec=C(),Sc=Nr(),gi=Object.getOwnPropertyDescriptor;Ii.f=yc?gi:function(r,t){if(r=Oc(r),t=xc(t),Sc)try{return gi(r,t)}catch{}if(Ec(r,t))return Ic(!hc(gc.f,r,t),r[t])}});var Ei=o((sb,xi)=>{"use strict";var wc=S(),qc=E(),Rc=/#|\.prototype\./,ce=function(e,r){var t=Ac[Pc(e)];return t===Lc?!0:t===_c?!1:qc(r)?wc(r):!!r},Pc=ce.normalize=function(e){return String(e).replace(Rc,".").toLowerCase()},Ac=ce.data={},_c=ce.NATIVE="N",Lc=ce.POLYFILL="P";xi.exports=ce});var Mr=o((ub,wi)=>{"use strict";var Si=mr(),kc=se(),jc=ie(),Cc=Si(Si.bind);wi.exports=function(e,r){return kc(e),r===void 0?e:jc?Cc(e,r):function(){return e.apply(r,arguments)}}});var Vr=o((cb,qi)=>{"use strict";var Nc=R(),Mc=S();qi.exports=Nc&&Mc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var z=o((lb,Ri)=>{"use strict";var Vc=j(),Fc=String,Dc=TypeError;Ri.exports=function(e){if(Vc(e))return e;throw new Dc(Fc(e)+" is not an object")}});var X=o(Ai=>{"use strict";var Uc=R(),Gc=Nr(),Qc=Vr(),Ve=z(),Pi=kr(),Bc=TypeError,Fr=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Dr="enumerable",Ur="configurable",Gr="writable";Ai.f=Uc?Qc?function(r,t,n){if(Ve(r),t=Pi(t),Ve(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Gr in n&&!n[Gr]){var i=zc(r,t);i&&i[Gr]&&(r[t]=n.value,n={configurable:Ur in n?n[Ur]:i[Ur],enumerable:Dr in n?n[Dr]:i[Dr],writable:!1})}return Fr(r,t,n)}:Fr:function(r,t,n){if(Ve(r),t=Pi(t),Ve(n),Gc)try{return Fr(r,t,n)}catch{}if("get"in n||"set"in n)throw new Bc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var J=o((fb,_i)=>{"use strict";var Kc=R(),Wc=X(),$c=oe();_i.exports=Kc?function(e,r,t){return Wc.f(e,r,$c(1,t))}:function(e,r,t){return e[r]=t,e}});var re=o((vb,ki)=>{"use strict";var le=x(),Yc=un(),Hc=mr(),Xc=E(),Jc=Oi().f,Zc=Ei(),Z=ae(),el=Mr(),ee=J(),Li=C();Ne();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 Yc(e,this,arguments)};return r.prototype=e.prototype,r};ki.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,s=n?le:i?le[t]:le[t]&&le[t].prototype,u=n?Z:Z[t]||ee(Z,t,{})[t],p=u.prototype,l,v,c,d,b,T,y,I,h;for(d in r)l=Zc(n?d:t+(i?".":"#")+d,e.forced),v=!l&&s&&Li(s,d),T=u[d],v&&(e.dontCallGetSet?(h=Jc(s,d),y=h&&h.value):y=s[d]),b=v&&y?y:r[d],!(!l&&!a&&typeof T==typeof b)&&(e.bind&&v?I=el(b,le):e.wrap&&v?I=rl(b):a&&Xc(b)?I=Hc(b):I=b,(e.sham||b&&b.sham||T&&T.sham)&&ee(I,"sham",!0),ee(u,d,I),a&&(c=t+"Prototype",Li(Z,c)||ee(Z,c,{}),ee(Z[c],d,b),e.real&&p&&(l||!p[d])&&ee(p,d,b)))}});var Ci=o((db,ji)=>{"use strict";var tl=Math.ceil,nl=Math.floor;ji.exports=Math.trunc||function(r){var t=+r;return(t>0?nl:tl)(t)}});var Fe=o((bb,Ni)=>{"use strict";var il=Ci();Ni.exports=function(e){var r=+e;return r!==r||r===0?0:il(r)}});var Vi=o((mb,Mi)=>{"use strict";var ol=Fe(),al=Math.min;Mi.exports=function(e){var r=ol(e);return r>0?al(r,9007199254740991):0}});var De=o((Tb,Fi)=>{"use strict";var sl=Vi();Fi.exports=function(e){return sl(e.length)}});var Ue=o((yb,Di)=>{"use strict";Di.exports=function(){}});var Ui=o(()=>{"use strict";var ul=re(),cl=Me(),ll=De(),pl=Fe(),fl=Ue();ul({target:"Array",proto:!0},{at:function(r){var t=cl(this),n=ll(t),i=pl(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});fl("at")});var Qr=o((Ib,Gi)=>{"use strict";var vl=Le();Gi.exports=vl});var Bi=o((Ob,Qi)=>{"use strict";Ui();var dl=Qr();Qi.exports=dl("Array","at")});var Ki=o((xb,zi)=>{"use strict";var bl=Bi();zi.exports=bl});var $i=o((Eb,Wi)=>{"use strict";var ml=Ki();Wi.exports=ml});var We=o((qm,fo)=>{"use strict";var Il=Ar(),Ol=_r(),po=Il("keys");fo.exports=function(e){return po[e]||(po[e]=Ol(e))}});var bo=o((Rm,vo)=>{"use strict";var xl=S();vo.exports=!xl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var $e=o((Pm,To)=>{"use strict";var El=C(),Sl=E(),wl=Me(),ql=We(),Rl=bo(),mo=ql("IE_PROTO"),zr=Object,Pl=zr.prototype;To.exports=Rl?zr.getPrototypeOf:function(e){var r=wl(e);if(El(r,mo))return r[mo];var t=r.constructor;return Sl(t)&&r instanceof t?t.prototype:r instanceof zr?Pl:null}});var ho=o((Am,yo)=>{"use strict";var Al=Fe(),_l=Math.max,Ll=Math.min;yo.exports=function(e,r){var t=Al(e);return t<0?_l(t+r,0):Ll(t,r)}});var Kr=o((_m,Io)=>{"use strict";var kl=B(),jl=ho(),Cl=De(),go=function(e){return function(r,t,n){var i=kl(r),a=Cl(i);if(a===0)return!e&&-1;var s=jl(n,a),u;if(e&&t!==t){for(;a>s;)if(u=i[s++],u!==u)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};Io.exports={includes:go(!0),indexOf:go(!1)}});var Ye=o((Lm,Oo)=>{"use strict";Oo.exports={}});var So=o((km,Eo)=>{"use strict";var Nl=L(),Wr=C(),Ml=B(),Vl=Kr().indexOf,Fl=Ye(),xo=Nl([].push);Eo.exports=function(e,r){var t=Ml(e),n=0,i=[],a;for(a in t)!Wr(Fl,a)&&Wr(t,a)&&xo(i,a);for(;r.length>n;)Wr(t,a=r[n++])&&(~Vl(i,a)||xo(i,a));return i}});var $r=o((jm,wo)=>{"use strict";wo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Yr=o((Cm,qo)=>{"use strict";var Dl=So(),Ul=$r();qo.exports=Object.keys||function(r){return Dl(r,Ul)}});var ko=o((Nm,Lo)=>{"use strict";var Po=R(),Gl=S(),Ao=L(),Ql=$e(),Bl=Yr(),zl=B(),Kl=yr().f,_o=Ao(Kl),Wl=Ao([].push),$l=Po&&Gl(function(){var e=Object.create(null);return e[2]=2,!_o(e,2)}),Ro=function(e){return function(r){for(var t=zl(r),n=Bl(t),i=$l&&Ql(t)===null,a=n.length,s=0,u=[],p;a>s;)p=n[s++],(!Po||(i?p in t:_o(t,p)))&&Wl(u,e?[p,t[p]]:t[p]);return u}};Lo.exports={entries:Ro(!0),values:Ro(!1)}});var jo=o(()=>{"use strict";var Yl=re(),Hl=ko().entries;Yl({target:"Object",stat:!0},{entries:function(r){return Hl(r)}})});var No=o((Fm,Co)=>{"use strict";jo();var Xl=ae();Co.exports=Xl.Object.entries});var Vo=o((Dm,Mo)=>{"use strict";var Jl=No();Mo.exports=Jl});var Hr=o((Um,Fo)=>{"use strict";var Zl=Vo();Fo.exports=Zl});var zo=o(()=>{"use strict";var tp=re(),np=Kr().includes,ip=S(),op=Ue(),ap=ip(function(){return!Array(1).includes()});tp({target:"Array",proto:!0,forced:ap},{includes:function(r){return np(this,r,arguments.length>1?arguments[1]:void 0)}});op("includes")});var Wo=o((mT,Ko)=>{"use strict";zo();var sp=Qr();Ko.exports=sp("Array","includes")});var Yo=o((TT,$o)=>{"use strict";var up=Wo();$o.exports=up});var Xo=o((yT,Ho)=>{"use strict";var cp=Yo();Ho.exports=cp});var K=o((by,na)=>{"use strict";na.exports={}});var aa=o((my,oa)=>{"use strict";var fp=x(),vp=E(),ia=fp.WeakMap;oa.exports=vp(ia)&&/native code/.test(String(ia))});var la=o((Ty,ca)=>{"use strict";var dp=aa(),ua=x(),bp=j(),mp=J(),ht=C(),gt=Ne(),Tp=We(),yp=Ye(),sa="Object already initialized",It=ua.TypeError,hp=ua.WeakMap,Je,ye,Ze,gp=function(e){return Ze(e)?ye(e):Je(e,{})},Ip=function(e){return function(r){var t;if(!bp(r)||(t=ye(r)).type!==e)throw new It("Incompatible receiver, "+e+" required");return t}};dp||gt.state?(A=gt.state||(gt.state=new hp),A.get=A.get,A.has=A.has,A.set=A.set,Je=function(e,r){if(A.has(e))throw new It(sa);return r.facade=e,A.set(e,r),r},ye=function(e){return A.get(e)||{}},Ze=function(e){return A.has(e)}):(W=Tp("state"),yp[W]=!0,Je=function(e,r){if(ht(e,W))throw new It(sa);return r.facade=e,mp(e,W,r),r},ye=function(e){return ht(e,W)?e[W]:{}},Ze=function(e){return ht(e,W)});var A,W;ca.exports={set:Je,get:ye,has:Ze,enforce:gp,getterFor:Ip}});var va=o((yy,fa)=>{"use strict";var Ot=R(),Op=C(),pa=Function.prototype,xp=Ot&&Object.getOwnPropertyDescriptor,xt=Op(pa,"name"),Ep=xt&&function(){}.name==="something",Sp=xt&&(!Ot||Ot&&xp(pa,"name").configurable);fa.exports={EXISTS:xt,PROPER:Ep,CONFIGURABLE:Sp}});var ba=o(da=>{"use strict";var wp=R(),qp=Vr(),Rp=X(),Pp=z(),Ap=B(),_p=Yr();da.f=wp&&!qp?Object.defineProperties:function(r,t){Pp(r);for(var n=Ap(t),i=_p(t),a=i.length,s=0,u;a>s;)Rp.f(r,u=i[s++],n[u]);return r}});var Ta=o((gy,ma)=>{"use strict";var Lp=Le();ma.exports=Lp("document","documentElement")});var qt=o((Iy,Ea)=>{"use strict";var kp=z(),jp=ba(),ya=$r(),Cp=Ye(),Np=Ta(),Mp=Cr(),Vp=We(),ha=">",ga="<",St="prototype",wt="script",Oa=Vp("IE_PROTO"),Et=function(){},xa=function(e){return ga+wt+ha+e+ga+"/"+wt+ha},Ia=function(e){e.write(xa("")),e.close();var r=e.parentWindow.Object;return e=null,r},Fp=function(){var e=Mp("iframe"),r="java"+wt+":",t;return e.style.display="none",Np.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(xa("document.F=Object")),t.close(),t.F},er,rr=function(){try{er=new ActiveXObject("htmlfile")}catch{}rr=typeof document<"u"?document.domain&&er?Ia(er):Fp():Ia(er);for(var e=ya.length;e--;)delete rr[St][ya[e]];return rr()};Cp[Oa]=!0;Ea.exports=Object.create||function(r,t){var n;return r!==null?(Et[St]=kp(r),n=new Et,Et[St]=null,n[Oa]=r):n=rr(),t===void 0?n:jp.f(n,t)}});var Rt=o((Oy,Sa)=>{"use strict";var Dp=J();Sa.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Dp(e,r,t),e}});var Lt=o((xy,Ra)=>{"use strict";var Up=S(),Gp=E(),Qp=j(),Bp=qt(),wa=$e(),zp=Rt(),Kp=N(),Wp=ue(),_t=Kp("iterator"),qa=!1,M,Pt,At;[].keys&&(At=[].keys(),"next"in At?(Pt=wa(wa(At)),Pt!==Object.prototype&&(M=Pt)):qa=!0);var $p=!Qp(M)||Up(function(){var e={};return M[_t].call(e)!==e});$p?M={}:Wp&&(M=Bp(M));Gp(M[_t])||zp(M,_t,function(){return this});Ra.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:qa}});var tr=o((Ey,Aa)=>{"use strict";var Yp=N(),Hp=Yp("toStringTag"),Pa={};Pa[Hp]="z";Aa.exports=String(Pa)==="[object z]"});var kt=o((Sy,_a)=>{"use strict";var Xp=tr(),Jp=E(),nr=Re(),Zp=N(),ef=Zp("toStringTag"),rf=Object,tf=nr(function(){return arguments}())==="Arguments",nf=function(e,r){try{return e[r]}catch{}};_a.exports=Xp?nr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=nf(r=rf(e),ef))=="string"?t:tf?nr(r):(n=nr(r))==="Object"&&Jp(r.callee)?"Arguments":n}});var ka=o((wy,La)=>{"use strict";var of=tr(),af=kt();La.exports=of?{}.toString:function(){return"[object "+af(this)+"]"}});var ir=o((qy,Ca)=>{"use strict";var sf=tr(),uf=X().f,cf=J(),lf=C(),pf=ka(),ff=N(),ja=ff("toStringTag");Ca.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(lf(i,ja)||uf(i,ja,{configurable:!0,value:r}),n&&!sf&&cf(i,"toString",pf))}});var Ma=o((Ry,Na)=>{"use strict";var vf=Lt().IteratorPrototype,df=qt(),bf=oe(),mf=ir(),Tf=K(),yf=function(){return this};Na.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=df(vf,{next:bf(+!n,t)}),mf(e,i,!1,!0),Tf[i]=yf,e}});var Fa=o((Py,Va)=>{"use strict";var hf=L(),gf=se();Va.exports=function(e,r,t){try{return hf(gf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var Ua=o((Ay,Da)=>{"use strict";var If=j();Da.exports=function(e){return If(e)||e===null}});var Qa=o((_y,Ga)=>{"use strict";var Of=Ua(),xf=String,Ef=TypeError;Ga.exports=function(e){if(Of(e))return e;throw new Ef("Can't set "+xf(e)+" as a prototype")}});var za=o((Ly,Ba)=>{"use strict";var Sf=Fa(),wf=j(),qf=_e(),Rf=Qa();Ba.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Sf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,a){return qf(i),Rf(a),wf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var ts=o((ky,rs)=>{"use strict";var Pf=re(),Af=D(),or=ue(),Za=va(),_f=E(),Lf=Ma(),Ka=$e(),Wa=za(),kf=ir(),jf=J(),jt=Rt(),Cf=N(),$a=K(),es=Lt(),Nf=Za.PROPER,Mf=Za.CONFIGURABLE,Ya=es.IteratorPrototype,ar=es.BUGGY_SAFARI_ITERATORS,he=Cf("iterator"),Ha="keys",ge="values",Xa="entries",Ja=function(){return this};rs.exports=function(e,r,t,n,i,a,s){Lf(t,r,n);var u=function(h){if(h===i&&d)return d;if(!ar&&h&&h in v)return v[h];switch(h){case Ha:return function(){return new t(this,h)};case ge:return function(){return new t(this,h)};case Xa:return function(){return new t(this,h)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,v=e.prototype,c=v[he]||v["@@iterator"]||i&&v[i],d=!ar&&c||u(i),b=r==="Array"&&v.entries||c,T,y,I;if(b&&(T=Ka(b.call(new e)),T!==Object.prototype&&T.next&&(!or&&Ka(T)!==Ya&&(Wa?Wa(T,Ya):_f(T[he])||jt(T,he,Ja)),kf(T,p,!0,!0),or&&($a[p]=Ja))),Nf&&i===ge&&c&&c.name!==ge&&(!or&&Mf?jf(v,"name",ge):(l=!0,d=function(){return Af(c,this)})),i)if(y={values:u(ge),keys:a?d:u(Ha),entries:u(Xa)},s)for(I in y)(ar||l||!(I in v))&&jt(v,I,y[I]);else Pf({target:r,proto:!0,forced:ar||l},y);return(!or||s)&&v[he]!==d&&jt(v,he,d,{name:i}),$a[r]=d,y}});var is=o((jy,ns)=>{"use strict";ns.exports=function(e,r){return{value:e,done:r}}});var Nt=o((Cy,cs)=>{"use strict";var Vf=B(),Ct=Ue(),os=K(),ss=la(),Ff=X().f,Df=ts(),sr=is(),Uf=ue(),Gf=R(),us="Array Iterator",Qf=ss.set,Bf=ss.getterFor(us);cs.exports=Df(Array,"Array",function(e,r){Qf(this,{type:us,target:Vf(e),index:0,kind:r})},function(){var e=Bf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,sr(void 0,!0);switch(e.kind){case"keys":return sr(t,!1);case"values":return sr(r[t],!1)}return sr([t,r[t]],!1)},"values");var as=os.Arguments=os.Array;Ct("keys");Ct("values");Ct("entries");if(!Uf&&Gf&&as.name!=="values")try{Ff(as,"name",{value:"values"})}catch{}});var ps=o((Ny,ls)=>{"use strict";var zf=N(),Kf=K(),Wf=zf("iterator"),$f=Array.prototype;ls.exports=function(e){return e!==void 0&&(Kf.Array===e||$f[Wf]===e)}});var Mt=o((My,vs)=>{"use strict";var Yf=kt(),fs=Ce(),Hf=Ae(),Xf=K(),Jf=N(),Zf=Jf("iterator");vs.exports=function(e){if(!Hf(e))return fs(e,Zf)||fs(e,"@@iterator")||Xf[Yf(e)]}});var bs=o((Vy,ds)=>{"use strict";var ev=D(),rv=se(),tv=z(),nv=je(),iv=Mt(),ov=TypeError;ds.exports=function(e,r){var t=arguments.length<2?iv(e):r;if(rv(t))return tv(ev(t,e));throw new ov(nv(e)+" is not iterable")}});var ys=o((Fy,Ts)=>{"use strict";var av=D(),ms=z(),sv=Ce();Ts.exports=function(e,r,t){var n,i;ms(e);try{if(n=sv(e,"return"),!n){if(r==="throw")throw t;return t}n=av(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return ms(n),t}});var xs=o((Dy,Os)=>{"use strict";var uv=Mr(),cv=D(),lv=z(),pv=je(),fv=ps(),vv=De(),hs=Or(),dv=bs(),bv=Mt(),gs=ys(),mv=TypeError,ur=function(e,r){this.stopped=e,this.result=r},Is=ur.prototype;Os.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),u=!!(t&&t.INTERRUPTED),p=uv(r,n),l,v,c,d,b,T,y,I=function(g){return l&&gs(l,"normal",g),new ur(!0,g)},h=function(g){return i?(lv(g),u?p(g[0],g[1],I):p(g[0],g[1])):u?p(g,I):p(g)};if(a)l=e.iterator;else if(s)l=e;else{if(v=bv(e),!v)throw new mv(pv(e)+" is not iterable");if(fv(v)){for(c=0,d=vv(e);d>c;c++)if(b=h(e[c]),b&&hs(Is,b))return b;return new ur(!1)}l=dv(e,v)}for(T=a?e.next:l.next;!(y=cv(T,l)).done;){try{b=h(y.value)}catch(g){gs(l,"throw",g)}if(typeof b=="object"&&b&&hs(Is,b))return b}return new ur(!1)}});var Ss=o((Uy,Es)=>{"use strict";var Tv=R(),yv=X(),hv=oe();Es.exports=function(e,r,t){Tv?yv.f(e,r,hv(0,t)):e[r]=t}});var ws=o(()=>{"use strict";var gv=re(),Iv=xs(),Ov=Ss();gv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Iv(r,function(n,i){Ov(t,n,i)},{AS_ENTRIES:!0}),t}})});var Rs=o((By,qs)=>{"use strict";Nt();ws();var xv=ae();qs.exports=xv.Object.fromEntries});var As=o((zy,Ps)=>{"use strict";Ps.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 Ls=o(()=>{"use strict";Nt();var Ev=As(),Sv=x(),wv=ir(),_s=K();for(cr in Ev)wv(Sv[cr],cr),_s[cr]=_s.Array;var cr});var js=o(($y,ks)=>{"use strict";var qv=Rs();Ls();ks.exports=qv});var Ns=o((Yy,Cs)=>{"use strict";var Rv=js();Cs.exports=Rv});var Fv={};lr(Fv,{ErrorCategory:()=>ea,InterfaceLanguage:()=>Ds,InternalsExposure:()=>Vt,Logger:()=>Se,Observable:()=>f,Subject:()=>k,Subscription:()=>O,SubscriptionRemovable:()=>de,Tracer:()=>we,VERSION:()=>Bt,VKNumericLanguage:()=>Fs,ValueSubject:()=>ve,VideoQuality:()=>Ge,abortable:()=>Jt,addScript:()=>Ht,areQualitiesExact:()=>io,assertEmptyArray:()=>Yt,assertNever:()=>_,assertNonNullable:()=>Kt,assertNotEmptyArray:()=>$t,assertNullable:()=>Wt,assertQualityIsExact:()=>oo,buffer:()=>et,checkNever:()=>zt,clearVideoElement:()=>co,cloneDeep:()=>so,cloneDeepWith:()=>pe,combine:()=>Xr,createURL:()=>gl,debounce:()=>tt,debounceFn:()=>ze,detectEmbed:()=>Yi,devNull:()=>Ft,fillWithDefault:()=>ao,filter:()=>at,filterChanged:()=>ut,flattenObject:()=>fe,fromEvent:()=>Bo,getExponentialDelay:()=>Zt,getHighestQuality:()=>Zi,getTraceSubscriptionMethod:()=>lo,interval:()=>Go,isHigher:()=>Hi,isHigherOrEqual:()=>Xi,isInvariantQuality:()=>Be,isLower:()=>Qe,isLowerOrEqual:()=>Ji,isNonNullable:()=>G,isNullable:()=>qe,isValidURL:()=>hl,loadVKLangPack:()=>Av,map:()=>be,mapTo:()=>lt,merge:()=>Jr,noop:()=>F,now:()=>Xt,observableFrom:()=>Qo,observeElementSize:()=>uo,once:()=>pt,pairwise:()=>vt,safeStorage:()=>vr,skip:()=>Tt,tap:()=>bt,throttle:()=>it,throttleFn:()=>Ke,timeCodeToString:()=>Tl,timeout:()=>Uo,videoHeightToQuality:()=>ro,videoQualityToHeight:()=>no,videoSizeToQuality:()=>to});module.exports=Ys(Fv);var Bt="1.0.59-beta.0";var O=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`)},zt=e=>{};var F=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){let n;t?typeof t=="function"?n={next:t,error:F}:n={next:s=>t.next(s),error:s=>t.error?.(s)}:n={next:F,error:F};let i=typeof r=="function"?{next:s=>{try{let u=r(s);u instanceof Promise&&u.catch(p=>n.next(p))}catch(u){n.next(u)}},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(i)}catch(s){i.error?.(s)}return new O().add(()=>{switch(i.next=F,i.error=F,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return _(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var k=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>n.error?.(t))}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new O().add(()=>this.subscribers.delete(n))}};var Se=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{n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};var pr=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},we=class e{constructor({name:r,parentContext:t,tracer:n}){this.dynamicImportTimeout=5e3;this.childTracers=[];if(e.dynamicImportStatus==="failed")return this;e.dynamicImportStatus==="not_started"&&(e.dynamicImportPromise=this.loadOpentelemetry()),e.dynamicImportPromise.then(()=>this.init({name:r,parentContext:t,tracer:n}))}static{this.dynamicImportStatus="not_started"}init({name:r,parentContext:t,tracer:n}){let i=!n;if(i){let s=e.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new e.dynamicImports.tracer.TracerMemorySpanExporter,p=new e.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,s.addSpanProcessor(new e.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u,endedSpansExporter:p})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=e.dynamicImports.opentelemetryApi.trace.setSpan(e.dynamicImports.opentelemetryApi.context.active(),this.span),e.dynamicImportStatus="initialized"}async loadOpentelemetry(){if(e.dynamicImportStatus==="not_started"){e.dynamicImportStatus="in_progress";try{let r=new Promise((s,u)=>setTimeout(u,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,a]=await Promise.race([t,r]);e.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:a},e.dynamicImportStatus="completed"}catch{e.dynamicImportStatus="failed"}}}log(r,t){e.dynamicImportStatus==="initialized"&&this.span.addEvent(r,{...t,type:"log"})}error(r,t){e.dynamicImportStatus==="initialized"&&this.span.addEvent(r,{...t,type:"error"})}critical(r,t){e.dynamicImportStatus==="initialized"&&this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new pr({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){e.dynamicImportStatus==="initialized"&&(this.childTracers.forEach(r=>r.end()),this.span.end())}getFinishedSpans(){if(e.dynamicImportStatus==="initialized")return this.spanExporter?.getJsonData()}getTraceId(){return e.dynamicImportStatus!=="initialized"?"":this.span.spanContext().traceId}};function Kt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Wt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e<"u"&&e!==null}function qe(e){return e==null}function $t(e,r){if(!e?.length)throw new Error(r)}function Yt(e,r){if(e?.length)throw new Error(r)}var Ht=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{u(),l.remove()});let a=()=>{u(),i("error")},s=()=>{u(),n()},u=()=>{p&&clearTimeout(p),l.removeEventListener("load",s),l.removeEventListener("error",a)},p;t&&(p=window.setTimeout(()=>{u(),i("timeout")},t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",a),l.src=e,document.head.appendChild(l)});var Xt=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var Jt=(e,r)=>async(...t)=>{let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=s.done??!1,a=s.value}catch(s){await n.throw(s)}return a};var Zt=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let s=r;return s*=t**e,s*=1+(Math.random()*a*2-a),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,i),s};var vr={};lr(vr,{clear:()=>ru,get:()=>Xs,has:()=>Zs,isPersistent:()=>Hs,remove:()=>eu,set:()=>Js});var $,Q,fr=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(Q!==void 0)return Q;try{localStorage.setItem(fr,"test"),localStorage.removeItem(fr),Q=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(fr),Q=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Q=2;else throw r}else throw e}return Q===2&&($=new Map),Q},Hs=()=>Y()===0,Xs=e=>{let r=Y();switch(r){case 0:return localStorage.getItem(e)??void 0;case 1:return sessionStorage.getItem(e)??void 0;case 2:return $?.get(e);default:_(r)}},Js=(e,r)=>{let t=Y();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:$?.set(e,r);return;default:_(t)}},Zs=e=>{let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return $?.has(e)??!1;default:return _(r),!1}},eu=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:$?.delete(e);return;default:_(r)}},ru=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return $?.clear();default:_(e)}};var Br=V($i(),1),Yi=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Br.default)(r,-1),immediateOrigin:(0,Br.default)(r,0)}};var Ge=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Ge||{});var w={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},Hi=(e,r)=>w[e].height>w[r].height,Xi=(e,r)=>w[e].height>=w[r].height,Qe=(e,r)=>w[e].height<w[r].height,Ji=(e,r)=>w[e].height<=w[r].height,Zi=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Qe(r,t)?1:-1)[0],eo=Object.keys(w).sort((e,r)=>Qe(e,r)?-1:1),ro=(e,r=.02)=>[...eo].find(n=>w[n].height*(1+r)>=e),to=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return eo.find(i=>{let a=w[i];return a.width>=n&&a.height>=t})},no=e=>w[e].height,Be=e=>e==="Invariant quality",io=e=>e.every(r=>!Be(r));function oo(e){if(Be(e))throw new Error("Expected exact quality")}var ao=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=ao(a,i):t[n]=n in e?a:i}return t};var Tl=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,a,s,u,p,l=0,v=!1,c=!1,d=!0,b=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,c="maxWait"in t,a=t?.maxWait?Math.max(+t?.maxWait||0,r):a,d="trailing"in t?!!t.trailing:d);function T(m){let q=n,U=i;return n=i=void 0,l=m,s=e.apply(U,q),s}function y(m,q){return b?(u&&window.cancelAnimationFrame(u),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(b){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return l=m,u=y(Oe,r),v?T(m):s}function g(m){let q=m-p,U=m-l,Gt=r-q;return c?Math.min(Gt,a-U):Gt}function Dt(m){let q=m-p,U=m-l;return p===void 0||q>=r||q<0||c&&U>=a}function Oe(){let m=Date.now();if(Dt(m))return Ut(m);u=y(Oe,g(m))}function Ut(m){return u=void 0,d&&n?T(m):(n=i=void 0,s)}function Us(){u!==void 0&&I(u),l=0,n=p=i=u=void 0}function Gs(){return u===void 0?s:Ut(Date.now())}function Qs(){return u!==void 0}function xe(...m){let q=Date.now(),U=Dt(q);if(n=m,i=this,p=q,U){if(u===void 0)return h(p);if(c)return u=y(Oe,r),T(p)}return u===void 0&&(u=y(Oe,r)),s}return xe.cancel=Us,xe.flush=Gs,xe.pending=Qs,xe}var Ke=(e,r=0,t)=>ze(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var pe=(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]=pe(e[n],r):t[n]=e[n]}return t};var so=e=>pe(e);var yl=300,uo=(e,r=yl)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Ke(s=>{let u=s[0];if(!u)return;let p,l;u.contentBoxSize&&u.contentBoxSize[0]?(l=u.contentBoxSize[0].blockSize,p=u.contentBoxSize[0].inlineSize):u.contentRect&&(p=u.contentRect.width,l=u.contentRect.height),G(p)&&G(l)&&t.next({width:p,height:l})},r));return a.observe(e),()=>a.disconnect()});var fe=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let a=fe(e[i],r-1);for(let s in a)a.hasOwnProperty(s)&&(n[i+t+s]=a[s])}else n[i]=e[i];return n};var co=e=>{e.removeAttribute("src"),e.load()};var hl=e=>{let r;try{r=new URL(e)}catch{return!1}return r.protocol==="https:"};var gl=e=>{try{return new URL(e)}catch{return null}};var lo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?fe(t):{value:t})};var ve=class extends k{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}};var Do=V(Hr(),1);function Xr(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>s=>{a in t||n--,t[a]=s,n===0&&r.next(t)};return(0,Do.default)(e).reduce((a,[s,u])=>a.add(u.subscribe(i(s))),new O)})}function Jr(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new O))}var Uo=e=>new f(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 Go=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Qo=e=>new f(r=>{e.forEach(t=>r.next(t))});var Bo=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var de=class extends O{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function et(e){return r=>new f(t=>r.subscribe(new Zr(t,e)))}var Zr=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){this.destination.error?.(r)}};var ep={leading:!1,trailing:!0};function tt(e,r=ep){return t=>new f(n=>t.subscribe(new rt(n,e,r)))}var rt=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){this.destination.error?.(r)}};var rp={leading:!0,trailing:!1};function it(e,r=rp){return t=>new f(n=>t.subscribe(new nt(n,e,r)))}var nt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,qe(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){this.destination.error?.(r)}};function at(e){return r=>new f(t=>r.subscribe(new ot(t,e)))}var ot=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){this.destination.error?.(r)}};var Zo=V(Xo(),1);var lp=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let s in i)if(!(0,Zo.default)(a,s)||i[s]!==n[s])return!1;return!0};return t(e,r)&&t(r,e)},pp=(e,r)=>e instanceof Object&&r instanceof Object?lp(e,r):e===r;function ut(e=pp){return r=>new f(t=>r.subscribe(new st(t,e)))}var Jo={},st=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Jo}next(r){let t;try{t=this.lastValue===Jo||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){this.destination.error?.(r)}};function be(e){return r=>new f(t=>r.subscribe(new ct(t,e)))}var ct=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){this.destination.error?.(r)}};function lt(e){return be(()=>e)}function pt(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{t=!0,r.error?.(a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function vt(){return e=>new f(r=>e.subscribe(new ft(r)))}var ft=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){this.destination.error?.(r)}};function bt(e){return r=>new f(t=>r.subscribe(new dt(t,e)))}var dt=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){this.destination.error?.(r)}};function Tt(e){return r=>new f(t=>r.subscribe(new mt(t,e)))}var mt=class{constructor(r,t){this.destination=r;this.count=t;t<0&&this.destination.error?.(new Error("Count can not be less than zero"))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){this.destination.error?.(r)}};var ea=(u=>(u.NETWORK="network",u.VIDEO_PIPELINE="video_pipeline",u.EXTERNAL_API="external_api",u.PARSER="parser",u.DOM="dom",u.WTF="wtf",u.FATAL="fatal",u))(ea||{});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,a=n.length;i<a;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,a=n.length;i<a;i++){let s=n[i];try{s.callback.call(this,r)}catch(u){Promise.resolve().then(()=>{throw u})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},te=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)}},me=class{constructor(){Object.defineProperty(this,"signal",{value:new te,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch{typeof document<"u"?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>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(me.prototype[Symbol.toStringTag]="AbortController",te.prototype[Symbol.toStringTag]="AbortSignal");function Xe(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 yt(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Xe({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(l,v){let c;v&&v.signal&&(c=v.signal,delete v.signal);let d=new t(l,v);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},a.prototype=t.prototype);let s=r;return{fetch:(p,l)=>{let v=a&&a.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(v){let c;try{c=new DOMException("Aborted","AbortError")}catch{c=new Error("Aborted"),c.name="AbortError"}if(v.aborted)return Promise.reject(c);let d=new Promise((b,T)=>{v.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([d,s(p,l)])}return s(p,l)},Request:a}}var Te=Xe({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),ra=Te?yt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,ta=Te?ra.fetch:window.fetch,py=Te?ra.Request:window.Request,fy=Te?me:window.AbortController,vy=Te?te:window.AbortSignal;var Ms=V(Hr(),1),Vs=V(Ns(),1),Fs=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(Fs||{}),Pv="vk.com",Av=async(e,r,t)=>{let n=new URL(`https://${Pv}/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 ta(n.toString())).json();return _v(a,t)},_v=(e,r)=>(0,Vs.default)((0,Ms.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Lv(n)])),Lv=e=>Array.isArray(e)?e[0]:e;var Ds=(t=>(t.RU="ru",t.EN="en",t))(Ds||{});var kv={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},jv=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Vt=class{constructor(r){this.id=jv();this.type=r,this.initWindowObjects()}getWindowObject(){let r=this.key();return window[r]?.[this.id]??{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return kv[r]}};var Ft={};lr(Ft,{create:()=>Cv,destroy:()=>Nv,push:()=>Mv,subscribe:()=>Vv});var Ie=new Map,Cv=(e,r)=>Ie.set(e,r??[]),Nv=e=>Ie.delete(e),Mv=(e,r)=>{let t=Ie.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Vv=(e,r)=>{let t=Ie.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Ie.set(e,r)}};
package/esnext.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.58-dev.ef87de0a.0
3
- * Thu, 10 Apr 2025 14:06:51 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-58/doc/
2
+ * @vkontakte/videoplayer-shared v1.0.59-beta.0
3
+ * Fri, 18 Apr 2025 12:40:59 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-59/doc/
5
5
  */
6
- var fs=Object.create;var rr=Object.defineProperty;var vs=Object.getOwnPropertyDescriptor;var bs=Object.getOwnPropertyNames;var ds=Object.getPrototypeOf,Ts=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qt=(e,r)=>{for(var t in r)rr(e,t,{get:r[t],enumerable:!0})},ms=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of bs(r))!Ts.call(e,i)&&i!==t&&rr(e,i,{get:()=>r[i],enumerable:!(n=vs(r,i))||n.enumerable});return e};var te=(e,r,t)=>(t=e!=null?fs(ds(e)):{},ms(r||!e||!e.__esModule?rr(t,"default",{value:e,enumerable:!0}):t,e));var x=o((sr,At)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};At.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof global=="object"&&global)||ne(typeof sr=="object"&&sr)||function(){return this}()||Function("return this")()});var w=o((gb,_t)=>{"use strict";_t.exports=function(e){try{return!!e()}catch{return!0}}});var ie=o((Ib,Lt)=>{"use strict";var Vs=w();Lt.exports=!Vs(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Mt=o((Ob,Nt)=>{"use strict";var Fs=ie(),Ct=Function.prototype,jt=Ct.apply,kt=Ct.call;Nt.exports=typeof Reflect=="object"&&Reflect.apply||(Fs?kt.bind(jt):function(){return kt.apply(jt,arguments)})});var _=o((xb,Dt)=>{"use strict";var Vt=ie(),Ft=Function.prototype,ur=Ft.call,Ds=Vt&&Ft.bind.bind(ur,ur);Dt.exports=Vt?Ds:function(e){return function(){return ur.apply(e,arguments)}}});var he=o((Eb,Gt)=>{"use strict";var Ut=_(),Us=Ut({}.toString),Gs=Ut("".slice);Gt.exports=function(e){return Gs(Us(e),8,-1)}});var lr=o((wb,Qt)=>{"use strict";var Qs=he(),Bs=_();Qt.exports=function(e){if(Qs(e)==="Function")return Bs(e)}});var E=o((Sb,Bt)=>{"use strict";var cr=typeof document=="object"&&document.all;Bt.exports=typeof cr>"u"&&cr!==void 0?function(e){return typeof e=="function"||e===cr}:function(e){return typeof e=="function"}});var R=o((qb,Kt)=>{"use strict";var Ks=w();Kt.exports=!Ks(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var V=o((Rb,Wt)=>{"use strict";var Ws=ie(),ge=Function.prototype.call;Wt.exports=Ws?ge.bind(ge):function(){return ge.apply(ge,arguments)}});var pr=o(Yt=>{"use strict";var $t={}.propertyIsEnumerable,zt=Object.getOwnPropertyDescriptor,$s=zt&&!$t.call({1:2},1);Yt.f=$s?function(r){var t=zt(this,r);return!!t&&t.enumerable}:$t});var oe=o((Ab,Ht)=>{"use strict";Ht.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Jt=o((_b,Xt)=>{"use strict";var zs=_(),Ys=w(),Hs=he(),fr=Object,Xs=zs("".split);Xt.exports=Ys(function(){return!fr("z").propertyIsEnumerable(0)})?function(e){return Hs(e)==="String"?Xs(e,""):fr(e)}:fr});var Ie=o((Lb,Zt)=>{"use strict";Zt.exports=function(e){return e==null}});var Oe=o((jb,en)=>{"use strict";var Js=Ie(),Zs=TypeError;en.exports=function(e){if(Js(e))throw new Zs("Can't call method on "+e);return e}});var G=o((kb,rn)=>{"use strict";var eu=Jt(),ru=Oe();rn.exports=function(e){return eu(ru(e))}});var j=o((Cb,tn)=>{"use strict";var tu=E();tn.exports=function(e){return typeof e=="object"?e!==null:tu(e)}});var ae=o((Nb,nn)=>{"use strict";nn.exports={}});var xe=o((Mb,an)=>{"use strict";var vr=ae(),br=x(),nu=E(),on=function(e){return nu(e)?e:void 0};an.exports=function(e,r){return arguments.length<2?on(vr[e])||on(br[e]):vr[e]&&vr[e][r]||br[e]&&br[e][r]}});var dr=o((Vb,sn)=>{"use strict";var iu=_();sn.exports=iu({}.isPrototypeOf)});var pn=o((Fb,cn)=>{"use strict";var ou=x(),un=ou.navigator,ln=un&&un.userAgent;cn.exports=ln?String(ln):""});var yn=o((Db,mn)=>{"use strict";var Tn=x(),Tr=pn(),fn=Tn.process,vn=Tn.Deno,bn=fn&&fn.versions||vn&&vn.version,dn=bn&&bn.v8,P,Ee;dn&&(P=dn.split("."),Ee=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!Ee&&Tr&&(P=Tr.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=Tr.match(/Chrome\/(\d+)/),P&&(Ee=+P[1])));mn.exports=Ee});var mr=o((Ub,gn)=>{"use strict";var hn=yn(),au=w(),su=x(),uu=su.String;gn.exports=!!Object.getOwnPropertySymbols&&!au(function(){var e=Symbol("symbol detection");return!uu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&hn&&hn<41})});var yr=o((Gb,In)=>{"use strict";var lu=mr();In.exports=lu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var hr=o((Qb,On)=>{"use strict";var cu=xe(),pu=E(),fu=dr(),vu=yr(),bu=Object;On.exports=vu?function(e){return typeof e=="symbol"}:function(e){var r=cu("Symbol");return pu(r)&&fu(r.prototype,bu(e))}});var we=o((Bb,xn)=>{"use strict";var du=String;xn.exports=function(e){try{return du(e)}catch{return"Object"}}});var se=o((Kb,En)=>{"use strict";var Tu=E(),mu=we(),yu=TypeError;En.exports=function(e){if(Tu(e))return e;throw new yu(mu(e)+" is not a function")}});var Se=o((Wb,wn)=>{"use strict";var hu=se(),gu=Ie();wn.exports=function(e,r){var t=e[r];return gu(t)?void 0:hu(t)}});var qn=o(($b,Sn)=>{"use strict";var gr=V(),Ir=E(),Or=j(),Iu=TypeError;Sn.exports=function(e,r){var t,n;if(r==="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e))||Ir(t=e.valueOf)&&!Or(n=gr(t,e))||r!=="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e)))return n;throw new Iu("Can't convert object to primitive value")}});var ue=o((zb,Rn)=>{"use strict";Rn.exports=!0});var _n=o((Yb,An)=>{"use strict";var Pn=x(),Ou=Object.defineProperty;An.exports=function(e,r){try{Ou(Pn,e,{value:r,configurable:!0,writable:!0})}catch{Pn[e]=r}return r}});var qe=o((Hb,kn)=>{"use strict";var xu=ue(),Eu=x(),wu=_n(),Ln="__core-js_shared__",jn=kn.exports=Eu[Ln]||wu(Ln,{});(jn.versions||(jn.versions=[])).push({version:"3.38.0",mode:xu?"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 xr=o((Xb,Nn)=>{"use strict";var Cn=qe();Nn.exports=function(e,r){return Cn[e]||(Cn[e]=r||{})}});var Re=o((Jb,Mn)=>{"use strict";var Su=Oe(),qu=Object;Mn.exports=function(e){return qu(Su(e))}});var k=o((Zb,Vn)=>{"use strict";var Ru=_(),Pu=Re(),Au=Ru({}.hasOwnProperty);Vn.exports=Object.hasOwn||function(r,t){return Au(Pu(r),t)}});var Er=o((ed,Fn)=>{"use strict";var _u=_(),Lu=0,ju=Math.random(),ku=_u(1 .toString);Fn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ku(++Lu+ju,36)}});var C=o((rd,Un)=>{"use strict";var Cu=x(),Nu=xr(),Dn=k(),Mu=Er(),Vu=mr(),Fu=yr(),Y=Cu.Symbol,wr=Nu("wks"),Du=Fu?Y.for||Y:Y&&Y.withoutSetter||Mu;Un.exports=function(e){return Dn(wr,e)||(wr[e]=Vu&&Dn(Y,e)?Y[e]:Du("Symbol."+e)),wr[e]}});var Kn=o((td,Bn)=>{"use strict";var Uu=V(),Gn=j(),Qn=hr(),Gu=Se(),Qu=qn(),Bu=C(),Ku=TypeError,Wu=Bu("toPrimitive");Bn.exports=function(e,r){if(!Gn(e)||Qn(e))return e;var t=Gu(e,Wu),n;if(t){if(r===void 0&&(r="default"),n=Uu(t,e,r),!Gn(n)||Qn(n))return n;throw new Ku("Can't convert object to primitive value")}return r===void 0&&(r="number"),Qu(e,r)}});var Sr=o((nd,Wn)=>{"use strict";var $u=Kn(),zu=hr();Wn.exports=function(e){var r=$u(e,"string");return zu(r)?r:r+""}});var Rr=o((id,zn)=>{"use strict";var Yu=x(),$n=j(),qr=Yu.document,Hu=$n(qr)&&$n(qr.createElement);zn.exports=function(e){return Hu?qr.createElement(e):{}}});var Pr=o((od,Yn)=>{"use strict";var Xu=R(),Ju=w(),Zu=Rr();Yn.exports=!Xu&&!Ju(function(){return Object.defineProperty(Zu("div"),"a",{get:function(){return 7}}).a!==7})});var Jn=o(Xn=>{"use strict";var el=R(),rl=V(),tl=pr(),nl=oe(),il=G(),ol=Sr(),al=k(),sl=Pr(),Hn=Object.getOwnPropertyDescriptor;Xn.f=el?Hn:function(r,t){if(r=il(r),t=ol(t),sl)try{return Hn(r,t)}catch{}if(al(r,t))return nl(!rl(tl.f,r,t),r[t])}});var ei=o((sd,Zn)=>{"use strict";var ul=w(),ll=E(),cl=/#|\.prototype\./,le=function(e,r){var t=fl[pl(e)];return t===bl?!0:t===vl?!1:ll(r)?ul(r):!!r},pl=le.normalize=function(e){return String(e).replace(cl,".").toLowerCase()},fl=le.data={},vl=le.NATIVE="N",bl=le.POLYFILL="P";Zn.exports=le});var Ar=o((ud,ti)=>{"use strict";var ri=lr(),dl=se(),Tl=ie(),ml=ri(ri.bind);ti.exports=function(e,r){return dl(e),r===void 0?e:Tl?ml(e,r):function(){return e.apply(r,arguments)}}});var _r=o((ld,ni)=>{"use strict";var yl=R(),hl=w();ni.exports=yl&&hl(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=o((cd,ii)=>{"use strict";var gl=j(),Il=String,Ol=TypeError;ii.exports=function(e){if(gl(e))return e;throw new Ol(Il(e)+" is not an object")}});var H=o(ai=>{"use strict";var xl=R(),El=Pr(),wl=_r(),Pe=Q(),oi=Sr(),Sl=TypeError,Lr=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,jr="enumerable",kr="configurable",Cr="writable";ai.f=xl?wl?function(r,t,n){if(Pe(r),t=oi(t),Pe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Cr in n&&!n[Cr]){var i=ql(r,t);i&&i[Cr]&&(r[t]=n.value,n={configurable:kr in n?n[kr]:i[kr],enumerable:jr in n?n[jr]:i[jr],writable:!1})}return Lr(r,t,n)}:Lr:function(r,t,n){if(Pe(r),t=oi(t),Pe(n),El)try{return Lr(r,t,n)}catch{}if("get"in n||"set"in n)throw new Sl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var X=o((fd,si)=>{"use strict";var Rl=R(),Pl=H(),Al=oe();si.exports=Rl?function(e,r,t){return Pl.f(e,r,Al(1,t))}:function(e,r,t){return e[r]=t,e}});var ee=o((vd,li)=>{"use strict";var ce=x(),_l=Mt(),Ll=lr(),jl=E(),kl=Jn().f,Cl=ei(),J=ae(),Nl=Ar(),Z=X(),ui=k();qe();var Ml=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 _l(e,this,arguments)};return r.prototype=e.prototype,r};li.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,s=n?ce:i?ce[t]:ce[t]&&ce[t].prototype,u=n?J:J[t]||Z(J,t,{})[t],p=u.prototype,c,v,l,b,d,m,y,I,h;for(b in r)c=Cl(n?b:t+(i?".":"#")+b,e.forced),v=!c&&s&&ui(s,b),m=u[b],v&&(e.dontCallGetSet?(h=kl(s,b),y=h&&h.value):y=s[b]),d=v&&y?y:r[b],!(!c&&!a&&typeof m==typeof d)&&(e.bind&&v?I=Nl(d,ce):e.wrap&&v?I=Ml(d):a&&jl(d)?I=Ll(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&Z(I,"sham",!0),Z(u,b,I),a&&(l=t+"Prototype",ui(J,l)||Z(J,l,{}),Z(J[l],b,d),e.real&&p&&(c||!p[b])&&Z(p,b,d)))}});var pi=o((bd,ci)=>{"use strict";var Vl=Math.ceil,Fl=Math.floor;ci.exports=Math.trunc||function(r){var t=+r;return(t>0?Fl:Vl)(t)}});var Ae=o((dd,fi)=>{"use strict";var Dl=pi();fi.exports=function(e){var r=+e;return r!==r||r===0?0:Dl(r)}});var bi=o((Td,vi)=>{"use strict";var Ul=Ae(),Gl=Math.min;vi.exports=function(e){var r=Ul(e);return r>0?Gl(r,9007199254740991):0}});var _e=o((md,di)=>{"use strict";var Ql=bi();di.exports=function(e){return Ql(e.length)}});var Le=o((yd,Ti)=>{"use strict";Ti.exports=function(){}});var mi=o(()=>{"use strict";var Bl=ee(),Kl=Re(),Wl=_e(),$l=Ae(),zl=Le();Bl({target:"Array",proto:!0},{at:function(r){var t=Kl(this),n=Wl(t),i=$l(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});zl("at")});var Nr=o((Id,yi)=>{"use strict";var Yl=xe();yi.exports=Yl});var gi=o((Od,hi)=>{"use strict";mi();var Hl=Nr();hi.exports=Hl("Array","at")});var Oi=o((xd,Ii)=>{"use strict";var Xl=gi();Ii.exports=Xl});var Ei=o((Ed,xi)=>{"use strict";var Jl=Oi();xi.exports=Jl});var Ne=o((LT,qi)=>{"use strict";var Tc=xr(),mc=Er(),Si=Tc("keys");qi.exports=function(e){return Si[e]||(Si[e]=mc(e))}});var Pi=o((jT,Ri)=>{"use strict";var yc=w();Ri.exports=!yc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Me=o((kT,_i)=>{"use strict";var hc=k(),gc=E(),Ic=Re(),Oc=Ne(),xc=Pi(),Ai=Oc("IE_PROTO"),Qr=Object,Ec=Qr.prototype;_i.exports=xc?Qr.getPrototypeOf:function(e){var r=Ic(e);if(hc(r,Ai))return r[Ai];var t=r.constructor;return gc(t)&&r instanceof t?t.prototype:r instanceof Qr?Ec:null}});var ji=o((CT,Li)=>{"use strict";var wc=Ae(),Sc=Math.max,qc=Math.min;Li.exports=function(e,r){var t=wc(e);return t<0?Sc(t+r,0):qc(t,r)}});var Br=o((NT,Ci)=>{"use strict";var Rc=G(),Pc=ji(),Ac=_e(),ki=function(e){return function(r,t,n){var i=Rc(r),a=Ac(i);if(a===0)return!e&&-1;var s=Pc(n,a),u;if(e&&t!==t){for(;a>s;)if(u=i[s++],u!==u)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};Ci.exports={includes:ki(!0),indexOf:ki(!1)}});var Ve=o((MT,Ni)=>{"use strict";Ni.exports={}});var Fi=o((VT,Vi)=>{"use strict";var _c=_(),Kr=k(),Lc=G(),jc=Br().indexOf,kc=Ve(),Mi=_c([].push);Vi.exports=function(e,r){var t=Lc(e),n=0,i=[],a;for(a in t)!Kr(kc,a)&&Kr(t,a)&&Mi(i,a);for(;r.length>n;)Kr(t,a=r[n++])&&(~jc(i,a)||Mi(i,a));return i}});var Wr=o((FT,Di)=>{"use strict";Di.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var $r=o((DT,Ui)=>{"use strict";var Cc=Fi(),Nc=Wr();Ui.exports=Object.keys||function(r){return Cc(r,Nc)}});var $i=o((UT,Wi)=>{"use strict";var Qi=R(),Mc=w(),Bi=_(),Vc=Me(),Fc=$r(),Dc=G(),Uc=pr().f,Ki=Bi(Uc),Gc=Bi([].push),Qc=Qi&&Mc(function(){var e=Object.create(null);return e[2]=2,!Ki(e,2)}),Gi=function(e){return function(r){for(var t=Dc(r),n=Fc(t),i=Qc&&Vc(t)===null,a=n.length,s=0,u=[],p;a>s;)p=n[s++],(!Qi||(i?p in t:Ki(t,p)))&&Gc(u,e?[p,t[p]]:t[p]);return u}};Wi.exports={entries:Gi(!0),values:Gi(!1)}});var zi=o(()=>{"use strict";var Bc=ee(),Kc=$i().entries;Bc({target:"Object",stat:!0},{entries:function(r){return Kc(r)}})});var Hi=o((BT,Yi)=>{"use strict";zi();var Wc=ae();Yi.exports=Wc.Object.entries});var Ji=o((KT,Xi)=>{"use strict";var $c=Hi();Xi.exports=$c});var zr=o((WT,Zi)=>{"use strict";var zc=Ji();Zi.exports=zc});var so=o(()=>{"use strict";var rp=ee(),tp=Br().includes,np=w(),ip=Le(),op=np(function(){return!Array(1).includes()});rp({target:"Array",proto:!0,forced:op},{includes:function(r){return tp(this,r,arguments.length>1?arguments[1]:void 0)}});ip("includes")});var lo=o((Im,uo)=>{"use strict";so();var ap=Nr();uo.exports=ap("Array","includes")});var po=o((Om,co)=>{"use strict";var sp=lo();co.exports=sp});var vo=o((xm,fo)=>{"use strict";var up=po();fo.exports=up});var B=o((gy,wo)=>{"use strict";wo.exports={}});var Ro=o((Iy,qo)=>{"use strict";var fp=x(),vp=E(),So=fp.WeakMap;qo.exports=vp(So)&&/native code/.test(String(So))});var Lo=o((Oy,_o)=>{"use strict";var bp=Ro(),Ao=x(),dp=j(),Tp=X(),ot=k(),at=qe(),mp=Ne(),yp=Ve(),Po="Object already initialized",st=Ao.TypeError,hp=Ao.WeakMap,Qe,ve,Be,gp=function(e){return Be(e)?ve(e):Qe(e,{})},Ip=function(e){return function(r){var t;if(!dp(r)||(t=ve(r)).type!==e)throw new st("Incompatible receiver, "+e+" required");return t}};bp||at.state?(A=at.state||(at.state=new hp),A.get=A.get,A.has=A.has,A.set=A.set,Qe=function(e,r){if(A.has(e))throw new st(Po);return r.facade=e,A.set(e,r),r},ve=function(e){return A.get(e)||{}},Be=function(e){return A.has(e)}):(K=mp("state"),yp[K]=!0,Qe=function(e,r){if(ot(e,K))throw new st(Po);return r.facade=e,Tp(e,K,r),r},ve=function(e){return ot(e,K)?e[K]:{}},Be=function(e){return ot(e,K)});var A,K;_o.exports={set:Qe,get:ve,has:Be,enforce:gp,getterFor:Ip}});var Co=o((xy,ko)=>{"use strict";var ut=R(),Op=k(),jo=Function.prototype,xp=ut&&Object.getOwnPropertyDescriptor,lt=Op(jo,"name"),Ep=lt&&function(){}.name==="something",wp=lt&&(!ut||ut&&xp(jo,"name").configurable);ko.exports={EXISTS:lt,PROPER:Ep,CONFIGURABLE:wp}});var Mo=o(No=>{"use strict";var Sp=R(),qp=_r(),Rp=H(),Pp=Q(),Ap=G(),_p=$r();No.f=Sp&&!qp?Object.defineProperties:function(r,t){Pp(r);for(var n=Ap(t),i=_p(t),a=i.length,s=0,u;a>s;)Rp.f(r,u=i[s++],n[u]);return r}});var Fo=o((wy,Vo)=>{"use strict";var Lp=xe();Vo.exports=Lp("document","documentElement")});var vt=o((Sy,Wo)=>{"use strict";var jp=Q(),kp=Mo(),Do=Wr(),Cp=Ve(),Np=Fo(),Mp=Rr(),Vp=Ne(),Uo=">",Go="<",pt="prototype",ft="script",Bo=Vp("IE_PROTO"),ct=function(){},Ko=function(e){return Go+ft+Uo+e+Go+"/"+ft+Uo},Qo=function(e){e.write(Ko("")),e.close();var r=e.parentWindow.Object;return e=null,r},Fp=function(){var e=Mp("iframe"),r="java"+ft+":",t;return e.style.display="none",Np.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Ko("document.F=Object")),t.close(),t.F},Ke,We=function(){try{Ke=new ActiveXObject("htmlfile")}catch{}We=typeof document<"u"?document.domain&&Ke?Qo(Ke):Fp():Qo(Ke);for(var e=Do.length;e--;)delete We[pt][Do[e]];return We()};Cp[Bo]=!0;Wo.exports=Object.create||function(r,t){var n;return r!==null?(ct[pt]=jp(r),n=new ct,ct[pt]=null,n[Bo]=r):n=We(),t===void 0?n:kp.f(n,t)}});var bt=o((qy,$o)=>{"use strict";var Dp=X();$o.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Dp(e,r,t),e}});var yt=o((Ry,Ho)=>{"use strict";var Up=w(),Gp=E(),Qp=j(),Bp=vt(),zo=Me(),Kp=bt(),Wp=C(),$p=ue(),mt=Wp("iterator"),Yo=!1,N,dt,Tt;[].keys&&(Tt=[].keys(),"next"in Tt?(dt=zo(zo(Tt)),dt!==Object.prototype&&(N=dt)):Yo=!0);var zp=!Qp(N)||Up(function(){var e={};return N[mt].call(e)!==e});zp?N={}:$p&&(N=Bp(N));Gp(N[mt])||Kp(N,mt,function(){return this});Ho.exports={IteratorPrototype:N,BUGGY_SAFARI_ITERATORS:Yo}});var $e=o((Py,Jo)=>{"use strict";var Yp=C(),Hp=Yp("toStringTag"),Xo={};Xo[Hp]="z";Jo.exports=String(Xo)==="[object z]"});var ht=o((Ay,Zo)=>{"use strict";var Xp=$e(),Jp=E(),ze=he(),Zp=C(),ef=Zp("toStringTag"),rf=Object,tf=ze(function(){return arguments}())==="Arguments",nf=function(e,r){try{return e[r]}catch{}};Zo.exports=Xp?ze:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=nf(r=rf(e),ef))=="string"?t:tf?ze(r):(n=ze(r))==="Object"&&Jp(r.callee)?"Arguments":n}});var ra=o((_y,ea)=>{"use strict";var of=$e(),af=ht();ea.exports=of?{}.toString:function(){return"[object "+af(this)+"]"}});var Ye=o((Ly,na)=>{"use strict";var sf=$e(),uf=H().f,lf=X(),cf=k(),pf=ra(),ff=C(),ta=ff("toStringTag");na.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(cf(i,ta)||uf(i,ta,{configurable:!0,value:r}),n&&!sf&&lf(i,"toString",pf))}});var oa=o((jy,ia)=>{"use strict";var vf=yt().IteratorPrototype,bf=vt(),df=oe(),Tf=Ye(),mf=B(),yf=function(){return this};ia.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=bf(vf,{next:df(+!n,t)}),Tf(e,i,!1,!0),mf[i]=yf,e}});var sa=o((ky,aa)=>{"use strict";var hf=_(),gf=se();aa.exports=function(e,r,t){try{return hf(gf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var la=o((Cy,ua)=>{"use strict";var If=j();ua.exports=function(e){return If(e)||e===null}});var pa=o((Ny,ca)=>{"use strict";var Of=la(),xf=String,Ef=TypeError;ca.exports=function(e){if(Of(e))return e;throw new Ef("Can't set "+xf(e)+" as a prototype")}});var va=o((My,fa)=>{"use strict";var wf=sa(),Sf=j(),qf=Oe(),Rf=pa();fa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=wf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,a){return qf(i),Rf(a),Sf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var Ea=o((Vy,xa)=>{"use strict";var Pf=ee(),Af=V(),He=ue(),Ia=Co(),_f=E(),Lf=oa(),ba=Me(),da=va(),jf=Ye(),kf=X(),gt=bt(),Cf=C(),Ta=B(),Oa=yt(),Nf=Ia.PROPER,Mf=Ia.CONFIGURABLE,ma=Oa.IteratorPrototype,Xe=Oa.BUGGY_SAFARI_ITERATORS,be=Cf("iterator"),ya="keys",de="values",ha="entries",ga=function(){return this};xa.exports=function(e,r,t,n,i,a,s){Lf(t,r,n);var u=function(h){if(h===i&&b)return b;if(!Xe&&h&&h in v)return v[h];switch(h){case ya:return function(){return new t(this,h)};case de:return function(){return new t(this,h)};case ha:return function(){return new t(this,h)}}return function(){return new t(this)}},p=r+" Iterator",c=!1,v=e.prototype,l=v[be]||v["@@iterator"]||i&&v[i],b=!Xe&&l||u(i),d=r==="Array"&&v.entries||l,m,y,I;if(d&&(m=ba(d.call(new e)),m!==Object.prototype&&m.next&&(!He&&ba(m)!==ma&&(da?da(m,ma):_f(m[be])||gt(m,be,ga)),jf(m,p,!0,!0),He&&(Ta[p]=ga))),Nf&&i===de&&l&&l.name!==de&&(!He&&Mf?kf(v,"name",de):(c=!0,b=function(){return Af(l,this)})),i)if(y={values:u(de),keys:a?b:u(ya),entries:u(ha)},s)for(I in y)(Xe||c||!(I in v))&&gt(v,I,y[I]);else Pf({target:r,proto:!0,forced:Xe||c},y);return(!He||s)&&v[be]!==b&&gt(v,be,b,{name:i}),Ta[r]=b,y}});var Sa=o((Fy,wa)=>{"use strict";wa.exports=function(e,r){return{value:e,done:r}}});var Ot=o((Dy,_a)=>{"use strict";var Vf=G(),It=Le(),qa=B(),Pa=Lo(),Ff=H().f,Df=Ea(),Je=Sa(),Uf=ue(),Gf=R(),Aa="Array Iterator",Qf=Pa.set,Bf=Pa.getterFor(Aa);_a.exports=Df(Array,"Array",function(e,r){Qf(this,{type:Aa,target:Vf(e),index:0,kind:r})},function(){var e=Bf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Je(void 0,!0);switch(e.kind){case"keys":return Je(t,!1);case"values":return Je(r[t],!1)}return Je([t,r[t]],!1)},"values");var Ra=qa.Arguments=qa.Array;It("keys");It("values");It("entries");if(!Uf&&Gf&&Ra.name!=="values")try{Ff(Ra,"name",{value:"values"})}catch{}});var ja=o((Uy,La)=>{"use strict";var Kf=C(),Wf=B(),$f=Kf("iterator"),zf=Array.prototype;La.exports=function(e){return e!==void 0&&(Wf.Array===e||zf[$f]===e)}});var xt=o((Gy,Ca)=>{"use strict";var Yf=ht(),ka=Se(),Hf=Ie(),Xf=B(),Jf=C(),Zf=Jf("iterator");Ca.exports=function(e){if(!Hf(e))return ka(e,Zf)||ka(e,"@@iterator")||Xf[Yf(e)]}});var Ma=o((Qy,Na)=>{"use strict";var ev=V(),rv=se(),tv=Q(),nv=we(),iv=xt(),ov=TypeError;Na.exports=function(e,r){var t=arguments.length<2?iv(e):r;if(rv(t))return tv(ev(t,e));throw new ov(nv(e)+" is not iterable")}});var Da=o((By,Fa)=>{"use strict";var av=V(),Va=Q(),sv=Se();Fa.exports=function(e,r,t){var n,i;Va(e);try{if(n=sv(e,"return"),!n){if(r==="throw")throw t;return t}n=av(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return Va(n),t}});var Ka=o((Ky,Ba)=>{"use strict";var uv=Ar(),lv=V(),cv=Q(),pv=we(),fv=ja(),vv=_e(),Ua=dr(),bv=Ma(),dv=xt(),Ga=Da(),Tv=TypeError,Ze=function(e,r){this.stopped=e,this.result=r},Qa=Ze.prototype;Ba.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),u=!!(t&&t.INTERRUPTED),p=uv(r,n),c,v,l,b,d,m,y,I=function(g){return c&&Ga(c,"normal",g),new Ze(!0,g)},h=function(g){return i?(cv(g),u?p(g[0],g[1],I):p(g[0],g[1])):u?p(g,I):p(g)};if(a)c=e.iterator;else if(s)c=e;else{if(v=dv(e),!v)throw new Tv(pv(e)+" is not iterable");if(fv(v)){for(l=0,b=vv(e);b>l;l++)if(d=h(e[l]),d&&Ua(Qa,d))return d;return new Ze(!1)}c=bv(e,v)}for(m=a?e.next:c.next;!(y=lv(m,c)).done;){try{d=h(y.value)}catch(g){Ga(c,"throw",g)}if(typeof d=="object"&&d&&Ua(Qa,d))return d}return new Ze(!1)}});var $a=o((Wy,Wa)=>{"use strict";var mv=R(),yv=H(),hv=oe();Wa.exports=function(e,r,t){mv?yv.f(e,r,hv(0,t)):e[r]=t}});var za=o(()=>{"use strict";var gv=ee(),Iv=Ka(),Ov=$a();gv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Iv(r,function(n,i){Ov(t,n,i)},{AS_ENTRIES:!0}),t}})});var Ha=o((Yy,Ya)=>{"use strict";Ot();za();var xv=ae();Ya.exports=xv.Object.fromEntries});var Ja=o((Hy,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 es=o(()=>{"use strict";Ot();var Ev=Ja(),wv=x(),Sv=Ye(),Za=B();for(er in Ev)Sv(wv[er],er),Za[er]=Za.Array;var er});var ts=o((Zy,rs)=>{"use strict";var qv=Ha();es();rs.exports=qv});var is=o((eh,ns)=>{"use strict";var Rv=ts();ns.exports=Rv});var ys="1.0.58-dev.ef87de0a.0";var O=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`)},hs=e=>{};var D=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){let n;t?typeof t=="function"?n={next:t,error:D}:n={next:s=>t.next(s),error:s=>t.error?.(s)}:n={next:D,error:D};let i=typeof r=="function"?{next:s=>{try{let u=r(s);u instanceof Promise&&u.catch(p=>n.next(p))}catch(u){n.next(u)}},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(i)}catch(s){i.error?.(s)}return new O().add(()=>{switch(i.next=D,i.error=D,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 M=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>n.error?.(t))}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new O().add(()=>this.subscribers.delete(n))}};var tr=class{constructor(){this.log$=new M;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{n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};import{trace as gs,context as Is}from"@opentelemetry/api";import{TracerAllSpansProcessor as Os,TracerMemorySpanExporter as Rt,initTracerOpenTelemetry as xs}from"@tracer/opentelemetry";var nr=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},ir=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let s=xs({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new Rt,p=new Rt;this.spanExporter=u,s.addSpanProcessor(new Os({startedSpansExporter:u,endedSpansExporter:p})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=gs.setSpan(Is.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new nr({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){return this.spanExporter?.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function Es(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function ws(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function W(e){return typeof e<"u"&&e!==null}function or(e){return e==null}function Ss(e,r){if(!e?.length)throw new Error(r)}function qs(e,r){if(e?.length)throw new Error(r)}var Rs=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{u(),c.remove()});let a=()=>{u(),i("error")},s=()=>{u(),n()},u=()=>{p&&clearTimeout(p),c.removeEventListener("load",s),c.removeEventListener("error",a)},p;t&&(p=window.setTimeout(()=>{u(),i("timeout")},t));let c=document.createElement("script");c.addEventListener("load",s),c.addEventListener("error",a),c.src=e,document.head.appendChild(c)});var Ps=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var As=(e,r)=>async(...t)=>{let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=s.done??!1,a=s.value}catch(s){await n.throw(s)}return a};var _s=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let s=r;return s*=t**e,s*=1+(Math.random()*a*2-a),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,i),s};var Pt={};qt(Pt,{clear:()=>Ms,get:()=>js,has:()=>Cs,isPersistent:()=>Ls,remove:()=>Ns,set:()=>ks});var $,U,ar=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(U!==void 0)return U;try{localStorage.setItem(ar,"test"),localStorage.removeItem(ar),U=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ar),U=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)U=2;else throw r}else throw e}return U===2&&($=new Map),U},Ls=()=>z()===0,js=e=>{let r=z();switch(r){case 0:return localStorage.getItem(e)??void 0;case 1:return sessionStorage.getItem(e)??void 0;case 2:return $?.get(e);default:L(r)}},ks=(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:$?.set(e,r);return;default:L(t)}},Cs=e=>{let r=z();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return $?.has(e)??!1;default:return L(r),!1}},Ns=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:$?.delete(e);return;default:L(r)}},Ms=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return $?.clear();default:L(e)}};var Mr=te(Ei(),1),Zl=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Mr.default)(r,-1),immediateOrigin:(0,Mr.default)(r,0)}};var Vr=(l=>(l.INVARIANT="Invariant quality",l.Q_144P="144p",l.Q_240P="240p",l.Q_360P="360p",l.Q_480P="480p",l.Q_576P="576p",l.Q_720P="720p",l.Q_1080P="1080p",l.Q_1440P="1440p",l.Q_2160P="2160p",l.Q_4320P="4320p",l))(Vr||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},ec=(e,r)=>S[e].height>S[r].height,rc=(e,r)=>S[e].height>=S[r].height,Fr=(e,r)=>S[e].height<S[r].height,tc=(e,r)=>S[e].height<=S[r].height,nc=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Fr(r,t)?1:-1)[0],wi=Object.keys(S).sort((e,r)=>Fr(e,r)?-1:1),ic=(e,r=.02)=>[...wi].find(n=>S[n].height*(1+r)>=e),oc=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return wi.find(i=>{let a=S[i];return a.width>=n&&a.height>=t})},ac=e=>S[e].height,Dr=e=>e==="Invariant quality",sc=e=>e.every(r=>!Dr(r));function uc(e){if(Dr(e))throw new Error("Expected exact quality")}var lc=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=lc(a,i):t[n]=n in e?a:i}return t};var Ad=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 Ur(e,r=0,t){let n,i,a,s,u,p,c=0,v=!1,l=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,l="maxWait"in t,a=t?.maxWait?Math.max(+t?.maxWait||0,r):a,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,F=i;return n=i=void 0,c=T,s=e.apply(F,q),s}function y(T,q){return d?(u&&window.cancelAnimationFrame(u),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function h(T){return c=T,u=y(me,r),v?m(T):s}function g(T){let q=T-p,F=T-c,St=r-q;return l?Math.min(St,a-F):St}function Et(T){let q=T-p,F=T-c;return p===void 0||q>=r||q<0||l&&F>=a}function me(){let T=Date.now();if(Et(T))return wt(T);u=y(me,g(T))}function wt(T){return u=void 0,b&&n?m(T):(n=i=void 0,s)}function ls(){u!==void 0&&I(u),c=0,n=p=i=u=void 0}function cs(){return u===void 0?s:wt(Date.now())}function ps(){return u!==void 0}function ye(...T){let q=Date.now(),F=Et(q);if(n=T,i=this,p=q,F){if(u===void 0)return h(p);if(l)return u=y(me,r),m(p)}return u===void 0&&(u=y(me,r)),s}return ye.cancel=ls,ye.flush=cs,ye.pending=ps,ye}var Gr=(e,r=0,t)=>Ur(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var je=(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]=je(e[n],r):t[n]=e[n]}return t};var cc=e=>je(e);var pc=300,fc=(e,r=pc)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Gr(s=>{let u=s[0];if(!u)return;let p,c;u.contentBoxSize&&u.contentBoxSize[0]?(c=u.contentBoxSize[0].blockSize,p=u.contentBoxSize[0].inlineSize):u.contentRect&&(p=u.contentRect.width,c=u.contentRect.height),W(p)&&W(c)&&t.next({width:p,height:c})},r));return a.observe(e),()=>a.disconnect()});var ke=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let a=ke(e[i],r-1);for(let s in a)a.hasOwnProperty(s)&&(n[i+t+s]=a[s])}else n[i]=e[i];return n};var vc=e=>{e.removeAttribute("src"),e.load()};var Qd=e=>{let r;try{r=new URL(e)}catch{return!1}return r.protocol==="https:"};var Kd=e=>{try{return new URL(e)}catch{return null}};var bc=(e,r)=>{let t=0,n=e.length-1;for(;t<=n;){let i=Math.floor((t+n)/2),a=r(e[i]);if(a===0)return i;a<0?t=i+1:n=i-1}return-1};var dc=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ke(t):{value:t})};var Ce=class extends M{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}};var eo=te(zr(),1);function ro(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>s=>{a in t||n--,t[a]=s,n===0&&r.next(t)};return(0,eo.default)(e).reduce((a,[s,u])=>a.add(u.subscribe(i(s))),new O)})}function to(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new O))}var Yc=e=>new f(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 Hc=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Xc=e=>new f(r=>{e.forEach(t=>r.next(t))});var Jc=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Fe=class extends O{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function no(e){return r=>new f(t=>r.subscribe(new Yr(t,e)))}var Yr=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){this.destination.error?.(r)}};var Zc={leading:!1,trailing:!0};function io(e,r=Zc){return t=>new f(n=>t.subscribe(new Hr(n,e,r)))}var Hr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,W(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){this.destination.error?.(r)}};var ep={leading:!0,trailing:!1};function oo(e,r=ep){return t=>new f(n=>t.subscribe(new Xr(n,e,r)))}var Xr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,or(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){this.destination.error?.(r)}};function ao(e){return r=>new f(t=>r.subscribe(new Jr(t,e)))}var Jr=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){this.destination.error?.(r)}};var To=te(vo(),1);var lp=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let s in i)if(!(0,To.default)(a,s)||i[s]!==n[s])return!1;return!0};return t(e,r)&&t(r,e)},cp=(e,r)=>e instanceof Object&&r instanceof Object?lp(e,r):e===r;function mo(e=cp){return r=>new f(t=>r.subscribe(new Zr(t,e)))}var bo={},Zr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=bo}next(r){let t;try{t=this.lastValue===bo||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){this.destination.error?.(r)}};function De(e){return r=>new f(t=>r.subscribe(new et(t,e)))}var et=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){this.destination.error?.(r)}};function yo(e){return De(()=>e)}function ho(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{t=!0,r.error?.(a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function go(){return e=>new f(r=>e.subscribe(new rt(r)))}var rt=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){this.destination.error?.(r)}};function Io(e){return r=>new f(t=>r.subscribe(new tt(t,e)))}var tt=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){this.destination.error?.(r)}};function Oo(e){return r=>new f(t=>r.subscribe(new nt(t,e)))}var nt=class{constructor(r,t){this.destination=r;this.count=t;t<0&&this.destination.error?.(new Error("Count can not be less than zero"))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){this.destination.error?.(r)}};var pp=(u=>(u.NETWORK="network",u.VIDEO_PIPELINE="video_pipeline",u.EXTERNAL_API="external_api",u.PARSER="parser",u.DOM="dom",u.WTF="wtf",u.FATAL="fatal",u))(pp||{});var Ue=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,a=n.length;i<a;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,a=n.length;i<a;i++){let s=n[i];try{s.callback.call(this,r)}catch(u){Promise.resolve().then(()=>{throw u})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},re=class extends Ue{constructor(){super(),this.listeners||Ue.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)}},pe=class{constructor(){Object.defineProperty(this,"signal",{value:new re,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch{typeof document<"u"?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>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(pe.prototype[Symbol.toStringTag]="AbortController",re.prototype[Symbol.toStringTag]="AbortSignal");function Ge(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 it(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ge({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(c,v){let l;v&&v.signal&&(l=v.signal,delete v.signal);let b=new t(c,v);return l&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:l}),b},a.prototype=t.prototype);let s=r;return{fetch:(p,c)=>{let v=a&&a.prototype.isPrototypeOf(p)?p.signal:c?c.signal:void 0;if(v){let l;try{l=new DOMException("Aborted","AbortError")}catch{l=new Error("Aborted"),l.name="AbortError"}if(v.aborted)return Promise.reject(l);let b=new Promise((d,m)=>{v.addEventListener("abort",()=>m(l),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([b,s(p,c)])}return s(p,c)},Request:a}}var fe=Ge({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),xo=fe?it({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Eo=fe?xo.fetch:window.fetch,Ty=fe?xo.Request:window.Request,my=fe?pe:window.AbortController,yy=fe?re:window.AbortSignal;var os=te(zr(),1),as=te(is(),1),Pv=(l=>(l.Armenian="58",l.Azerbaijani="57",l.Belarusian="114",l.English="3",l.Kazakh="97",l.Portuguese="73",l.Russian="0",l.Spanish="4",l.Ukrainian="1",l.Uzbek="65",l.Vietnamese="75",l))(Pv||{}),Av="vk.com",th=async(e,r,t)=>{let n=new URL(`https://${Av}/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 Eo(n.toString())).json();return _v(a,t)},_v=(e,r)=>(0,as.default)((0,os.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Lv(n)])),Lv=e=>Array.isArray(e)?e[0]:e;var jv=(t=>(t.RU="ru",t.EN="en",t))(jv||{});var kv={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Cv=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),ss=class{constructor(r){this.id=Cv();this.type=r,this.initWindowObjects()}getWindowObject(){let r=this.key();return window[r]?.[this.id]??{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return kv[r]}};var us={};qt(us,{create:()=>Nv,destroy:()=>Mv,push:()=>Vv,subscribe:()=>Fv});var Te=new Map,Nv=(e,r)=>Te.set(e,r??[]),Mv=e=>Te.delete(e),Vv=(e,r)=>{let t=Te.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Fv=(e,r)=>{let t=Te.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Te.set(e,r)}};export{pp as ErrorCategory,jv as InterfaceLanguage,ss as InternalsExposure,tr as Logger,f as Observable,M as Subject,O as Subscription,Fe as SubscriptionRemovable,ir as Tracer,ys as VERSION,Pv as VKNumericLanguage,Ce as ValueSubject,Vr as VideoQuality,As as abortable,Rs as addScript,sc as areQualitiesExact,qs as assertEmptyArray,L as assertNever,Es as assertNonNullable,Ss as assertNotEmptyArray,ws as assertNullable,uc as assertQualityIsExact,bc as binarySearch,no as buffer,hs as checkNever,vc as clearVideoElement,cc as cloneDeep,je as cloneDeepWith,ro as combine,Kd as createURL,io as debounce,Ur as debounceFn,Zl as detectEmbed,us as devNull,lc as fillWithDefault,ao as filter,mo as filterChanged,ke as flattenObject,Jc as fromEvent,_s as getExponentialDelay,nc as getHighestQuality,dc as getTraceSubscriptionMethod,Hc as interval,ec as isHigher,rc as isHigherOrEqual,Dr as isInvariantQuality,Fr as isLower,tc as isLowerOrEqual,W as isNonNullable,or as isNullable,Qd as isValidURL,th as loadVKLangPack,De as map,yo as mapTo,to as merge,D as noop,Ps as now,Xc as observableFrom,fc as observeElementSize,ho as once,go as pairwise,Pt as safeStorage,Oo as skip,Io as tap,oo as throttle,Gr as throttleFn,Ad as timeCodeToString,Yc as timeout,ic as videoHeightToQuality,ac as videoQualityToHeight,oc as videoSizeToQuality};
6
+ var ps=Object.create;var rr=Object.defineProperty;var fs=Object.getOwnPropertyDescriptor;var vs=Object.getOwnPropertyNames;var ds=Object.getPrototypeOf,bs=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qt=(e,r)=>{for(var t in r)rr(e,t,{get:r[t],enumerable:!0})},ms=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of vs(r))!bs.call(e,i)&&i!==t&&rr(e,i,{get:()=>r[i],enumerable:!(n=fs(r,i))||n.enumerable});return e};var te=(e,r,t)=>(t=e!=null?ps(ds(e)):{},ms(r||!e||!e.__esModule?rr(t,"default",{value:e,enumerable:!0}):t,e));var x=o((sr,Pt)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Pt.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof global=="object"&&global)||ne(typeof sr=="object"&&sr)||function(){return this}()||Function("return this")()});var S=o((dd,At)=>{"use strict";At.exports=function(e){try{return!!e()}catch{return!0}}});var ie=o((bd,_t)=>{"use strict";var ks=S();_t.exports=!ks(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Nt=o((md,Ct)=>{"use strict";var js=ie(),jt=Function.prototype,Lt=jt.apply,kt=jt.call;Ct.exports=typeof Reflect=="object"&&Reflect.apply||(js?kt.bind(Lt):function(){return kt.apply(Lt,arguments)})});var _=o((Td,Ft)=>{"use strict";var Mt=ie(),Vt=Function.prototype,ur=Vt.call,Cs=Mt&&Vt.bind.bind(ur,ur);Ft.exports=Mt?Cs:function(e){return function(){return ur.apply(e,arguments)}}});var he=o((yd,Ut)=>{"use strict";var Dt=_(),Ns=Dt({}.toString),Ms=Dt("".slice);Ut.exports=function(e){return Ms(Ns(e),8,-1)}});var cr=o((hd,Gt)=>{"use strict";var Vs=he(),Fs=_();Gt.exports=function(e){if(Vs(e)==="Function")return Fs(e)}});var E=o((gd,Qt)=>{"use strict";var lr=typeof document=="object"&&document.all;Qt.exports=typeof lr>"u"&&lr!==void 0?function(e){return typeof e=="function"||e===lr}:function(e){return typeof e=="function"}});var R=o((Id,Bt)=>{"use strict";var Ds=S();Bt.exports=!Ds(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var V=o((Od,zt)=>{"use strict";var Us=ie(),ge=Function.prototype.call;zt.exports=Us?ge.bind(ge):function(){return ge.apply(ge,arguments)}});var pr=o($t=>{"use strict";var Kt={}.propertyIsEnumerable,Wt=Object.getOwnPropertyDescriptor,Gs=Wt&&!Kt.call({1:2},1);$t.f=Gs?function(r){var t=Wt(this,r);return!!t&&t.enumerable}:Kt});var oe=o((Ed,Yt)=>{"use strict";Yt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Xt=o((Sd,Ht)=>{"use strict";var Qs=_(),Bs=S(),zs=he(),fr=Object,Ks=Qs("".split);Ht.exports=Bs(function(){return!fr("z").propertyIsEnumerable(0)})?function(e){return zs(e)==="String"?Ks(e,""):fr(e)}:fr});var Ie=o((wd,Jt)=>{"use strict";Jt.exports=function(e){return e==null}});var Oe=o((qd,Zt)=>{"use strict";var Ws=Ie(),$s=TypeError;Zt.exports=function(e){if(Ws(e))throw new $s("Can't call method on "+e);return e}});var G=o((Rd,en)=>{"use strict";var Ys=Xt(),Hs=Oe();en.exports=function(e){return Ys(Hs(e))}});var k=o((Pd,rn)=>{"use strict";var Xs=E();rn.exports=function(e){return typeof e=="object"?e!==null:Xs(e)}});var ae=o((Ad,tn)=>{"use strict";tn.exports={}});var xe=o((_d,on)=>{"use strict";var vr=ae(),dr=x(),Js=E(),nn=function(e){return Js(e)?e:void 0};on.exports=function(e,r){return arguments.length<2?nn(vr[e])||nn(dr[e]):vr[e]&&vr[e][r]||dr[e]&&dr[e][r]}});var br=o((Ld,an)=>{"use strict";var Zs=_();an.exports=Zs({}.isPrototypeOf)});var ln=o((kd,cn)=>{"use strict";var eu=x(),sn=eu.navigator,un=sn&&sn.userAgent;cn.exports=un?String(un):""});var Tn=o((jd,mn)=>{"use strict";var bn=x(),mr=ln(),pn=bn.process,fn=bn.Deno,vn=pn&&pn.versions||fn&&fn.version,dn=vn&&vn.v8,P,Ee;dn&&(P=dn.split("."),Ee=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!Ee&&mr&&(P=mr.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=mr.match(/Chrome\/(\d+)/),P&&(Ee=+P[1])));mn.exports=Ee});var Tr=o((Cd,hn)=>{"use strict";var yn=Tn(),ru=S(),tu=x(),nu=tu.String;hn.exports=!!Object.getOwnPropertySymbols&&!ru(function(){var e=Symbol("symbol detection");return!nu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yn&&yn<41})});var yr=o((Nd,gn)=>{"use strict";var iu=Tr();gn.exports=iu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var hr=o((Md,In)=>{"use strict";var ou=xe(),au=E(),su=br(),uu=yr(),cu=Object;In.exports=uu?function(e){return typeof e=="symbol"}:function(e){var r=ou("Symbol");return au(r)&&su(r.prototype,cu(e))}});var Se=o((Vd,On)=>{"use strict";var lu=String;On.exports=function(e){try{return lu(e)}catch{return"Object"}}});var se=o((Fd,xn)=>{"use strict";var pu=E(),fu=Se(),vu=TypeError;xn.exports=function(e){if(pu(e))return e;throw new vu(fu(e)+" is not a function")}});var we=o((Dd,En)=>{"use strict";var du=se(),bu=Ie();En.exports=function(e,r){var t=e[r];return bu(t)?void 0:du(t)}});var wn=o((Ud,Sn)=>{"use strict";var gr=V(),Ir=E(),Or=k(),mu=TypeError;Sn.exports=function(e,r){var t,n;if(r==="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e))||Ir(t=e.valueOf)&&!Or(n=gr(t,e))||r!=="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e)))return n;throw new mu("Can't convert object to primitive value")}});var ue=o((Gd,qn)=>{"use strict";qn.exports=!0});var An=o((Qd,Pn)=>{"use strict";var Rn=x(),Tu=Object.defineProperty;Pn.exports=function(e,r){try{Tu(Rn,e,{value:r,configurable:!0,writable:!0})}catch{Rn[e]=r}return r}});var qe=o((Bd,kn)=>{"use strict";var yu=ue(),hu=x(),gu=An(),_n="__core-js_shared__",Ln=kn.exports=hu[_n]||gu(_n,{});(Ln.versions||(Ln.versions=[])).push({version:"3.38.0",mode:yu?"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 xr=o((zd,Cn)=>{"use strict";var jn=qe();Cn.exports=function(e,r){return jn[e]||(jn[e]=r||{})}});var Re=o((Kd,Nn)=>{"use strict";var Iu=Oe(),Ou=Object;Nn.exports=function(e){return Ou(Iu(e))}});var j=o((Wd,Mn)=>{"use strict";var xu=_(),Eu=Re(),Su=xu({}.hasOwnProperty);Mn.exports=Object.hasOwn||function(r,t){return Su(Eu(r),t)}});var Er=o(($d,Vn)=>{"use strict";var wu=_(),qu=0,Ru=Math.random(),Pu=wu(1 .toString);Vn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Pu(++qu+Ru,36)}});var C=o((Yd,Dn)=>{"use strict";var Au=x(),_u=xr(),Fn=j(),Lu=Er(),ku=Tr(),ju=yr(),Y=Au.Symbol,Sr=_u("wks"),Cu=ju?Y.for||Y:Y&&Y.withoutSetter||Lu;Dn.exports=function(e){return Fn(Sr,e)||(Sr[e]=ku&&Fn(Y,e)?Y[e]:Cu("Symbol."+e)),Sr[e]}});var Bn=o((Hd,Qn)=>{"use strict";var Nu=V(),Un=k(),Gn=hr(),Mu=we(),Vu=wn(),Fu=C(),Du=TypeError,Uu=Fu("toPrimitive");Qn.exports=function(e,r){if(!Un(e)||Gn(e))return e;var t=Mu(e,Uu),n;if(t){if(r===void 0&&(r="default"),n=Nu(t,e,r),!Un(n)||Gn(n))return n;throw new Du("Can't convert object to primitive value")}return r===void 0&&(r="number"),Vu(e,r)}});var wr=o((Xd,zn)=>{"use strict";var Gu=Bn(),Qu=hr();zn.exports=function(e){var r=Gu(e,"string");return Qu(r)?r:r+""}});var Rr=o((Jd,Wn)=>{"use strict";var Bu=x(),Kn=k(),qr=Bu.document,zu=Kn(qr)&&Kn(qr.createElement);Wn.exports=function(e){return zu?qr.createElement(e):{}}});var Pr=o((Zd,$n)=>{"use strict";var Ku=R(),Wu=S(),$u=Rr();$n.exports=!Ku&&!Wu(function(){return Object.defineProperty($u("div"),"a",{get:function(){return 7}}).a!==7})});var Xn=o(Hn=>{"use strict";var Yu=R(),Hu=V(),Xu=pr(),Ju=oe(),Zu=G(),ec=wr(),rc=j(),tc=Pr(),Yn=Object.getOwnPropertyDescriptor;Hn.f=Yu?Yn:function(r,t){if(r=Zu(r),t=ec(t),tc)try{return Yn(r,t)}catch{}if(rc(r,t))return Ju(!Hu(Xu.f,r,t),r[t])}});var Zn=o((rb,Jn)=>{"use strict";var nc=S(),ic=E(),oc=/#|\.prototype\./,ce=function(e,r){var t=sc[ac(e)];return t===cc?!0:t===uc?!1:ic(r)?nc(r):!!r},ac=ce.normalize=function(e){return String(e).replace(oc,".").toLowerCase()},sc=ce.data={},uc=ce.NATIVE="N",cc=ce.POLYFILL="P";Jn.exports=ce});var Ar=o((tb,ri)=>{"use strict";var ei=cr(),lc=se(),pc=ie(),fc=ei(ei.bind);ri.exports=function(e,r){return lc(e),r===void 0?e:pc?fc(e,r):function(){return e.apply(r,arguments)}}});var _r=o((nb,ti)=>{"use strict";var vc=R(),dc=S();ti.exports=vc&&dc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=o((ib,ni)=>{"use strict";var bc=k(),mc=String,Tc=TypeError;ni.exports=function(e){if(bc(e))return e;throw new Tc(mc(e)+" is not an object")}});var H=o(oi=>{"use strict";var yc=R(),hc=Pr(),gc=_r(),Pe=Q(),ii=wr(),Ic=TypeError,Lr=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,kr="enumerable",jr="configurable",Cr="writable";oi.f=yc?gc?function(r,t,n){if(Pe(r),t=ii(t),Pe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Cr in n&&!n[Cr]){var i=Oc(r,t);i&&i[Cr]&&(r[t]=n.value,n={configurable:jr in n?n[jr]:i[jr],enumerable:kr in n?n[kr]:i[kr],writable:!1})}return Lr(r,t,n)}:Lr:function(r,t,n){if(Pe(r),t=ii(t),Pe(n),hc)try{return Lr(r,t,n)}catch{}if("get"in n||"set"in n)throw new Ic("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var X=o((ab,ai)=>{"use strict";var xc=R(),Ec=H(),Sc=oe();ai.exports=xc?function(e,r,t){return Ec.f(e,r,Sc(1,t))}:function(e,r,t){return e[r]=t,e}});var ee=o((sb,ui)=>{"use strict";var le=x(),wc=Nt(),qc=cr(),Rc=E(),Pc=Xn().f,Ac=Zn(),J=ae(),_c=Ar(),Z=X(),si=j();qe();var Lc=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 wc(e,this,arguments)};return r.prototype=e.prototype,r};ui.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,s=n?le:i?le[t]:le[t]&&le[t].prototype,u=n?J:J[t]||Z(J,t,{})[t],p=u.prototype,l,v,c,d,b,T,y,I,h;for(d in r)l=Ac(n?d:t+(i?".":"#")+d,e.forced),v=!l&&s&&si(s,d),T=u[d],v&&(e.dontCallGetSet?(h=Pc(s,d),y=h&&h.value):y=s[d]),b=v&&y?y:r[d],!(!l&&!a&&typeof T==typeof b)&&(e.bind&&v?I=_c(b,le):e.wrap&&v?I=Lc(b):a&&Rc(b)?I=qc(b):I=b,(e.sham||b&&b.sham||T&&T.sham)&&Z(I,"sham",!0),Z(u,d,I),a&&(c=t+"Prototype",si(J,c)||Z(J,c,{}),Z(J[c],d,b),e.real&&p&&(l||!p[d])&&Z(p,d,b)))}});var li=o((ub,ci)=>{"use strict";var kc=Math.ceil,jc=Math.floor;ci.exports=Math.trunc||function(r){var t=+r;return(t>0?jc:kc)(t)}});var Ae=o((cb,pi)=>{"use strict";var Cc=li();pi.exports=function(e){var r=+e;return r!==r||r===0?0:Cc(r)}});var vi=o((lb,fi)=>{"use strict";var Nc=Ae(),Mc=Math.min;fi.exports=function(e){var r=Nc(e);return r>0?Mc(r,9007199254740991):0}});var _e=o((pb,di)=>{"use strict";var Vc=vi();di.exports=function(e){return Vc(e.length)}});var Le=o((fb,bi)=>{"use strict";bi.exports=function(){}});var mi=o(()=>{"use strict";var Fc=ee(),Dc=Re(),Uc=_e(),Gc=Ae(),Qc=Le();Fc({target:"Array",proto:!0},{at:function(r){var t=Dc(this),n=Uc(t),i=Gc(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});Qc("at")});var Nr=o((bb,Ti)=>{"use strict";var Bc=xe();Ti.exports=Bc});var hi=o((mb,yi)=>{"use strict";mi();var zc=Nr();yi.exports=zc("Array","at")});var Ii=o((Tb,gi)=>{"use strict";var Kc=hi();gi.exports=Kc});var xi=o((yb,Oi)=>{"use strict";var Wc=Ii();Oi.exports=Wc});var Ne=o((Em,wi)=>{"use strict";var ll=xr(),pl=Er(),Si=ll("keys");wi.exports=function(e){return Si[e]||(Si[e]=pl(e))}});var Ri=o((Sm,qi)=>{"use strict";var fl=S();qi.exports=!fl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Me=o((wm,Ai)=>{"use strict";var vl=j(),dl=E(),bl=Re(),ml=Ne(),Tl=Ri(),Pi=ml("IE_PROTO"),Qr=Object,yl=Qr.prototype;Ai.exports=Tl?Qr.getPrototypeOf:function(e){var r=bl(e);if(vl(r,Pi))return r[Pi];var t=r.constructor;return dl(t)&&r instanceof t?t.prototype:r instanceof Qr?yl:null}});var Li=o((qm,_i)=>{"use strict";var hl=Ae(),gl=Math.max,Il=Math.min;_i.exports=function(e,r){var t=hl(e);return t<0?gl(t+r,0):Il(t,r)}});var Br=o((Rm,ji)=>{"use strict";var Ol=G(),xl=Li(),El=_e(),ki=function(e){return function(r,t,n){var i=Ol(r),a=El(i);if(a===0)return!e&&-1;var s=xl(n,a),u;if(e&&t!==t){for(;a>s;)if(u=i[s++],u!==u)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===t)return e||s||0;return!e&&-1}};ji.exports={includes:ki(!0),indexOf:ki(!1)}});var Ve=o((Pm,Ci)=>{"use strict";Ci.exports={}});var Vi=o((Am,Mi)=>{"use strict";var Sl=_(),zr=j(),wl=G(),ql=Br().indexOf,Rl=Ve(),Ni=Sl([].push);Mi.exports=function(e,r){var t=wl(e),n=0,i=[],a;for(a in t)!zr(Rl,a)&&zr(t,a)&&Ni(i,a);for(;r.length>n;)zr(t,a=r[n++])&&(~ql(i,a)||Ni(i,a));return i}});var Kr=o((_m,Fi)=>{"use strict";Fi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Wr=o((Lm,Di)=>{"use strict";var Pl=Vi(),Al=Kr();Di.exports=Object.keys||function(r){return Pl(r,Al)}});var Ki=o((km,zi)=>{"use strict";var Gi=R(),_l=S(),Qi=_(),Ll=Me(),kl=Wr(),jl=G(),Cl=pr().f,Bi=Qi(Cl),Nl=Qi([].push),Ml=Gi&&_l(function(){var e=Object.create(null);return e[2]=2,!Bi(e,2)}),Ui=function(e){return function(r){for(var t=jl(r),n=kl(t),i=Ml&&Ll(t)===null,a=n.length,s=0,u=[],p;a>s;)p=n[s++],(!Gi||(i?p in t:Bi(t,p)))&&Nl(u,e?[p,t[p]]:t[p]);return u}};zi.exports={entries:Ui(!0),values:Ui(!1)}});var Wi=o(()=>{"use strict";var Vl=ee(),Fl=Ki().entries;Vl({target:"Object",stat:!0},{entries:function(r){return Fl(r)}})});var Yi=o((Nm,$i)=>{"use strict";Wi();var Dl=ae();$i.exports=Dl.Object.entries});var Xi=o((Mm,Hi)=>{"use strict";var Ul=Yi();Hi.exports=Ul});var $r=o((Vm,Ji)=>{"use strict";var Gl=Xi();Ji.exports=Gl});var ao=o(()=>{"use strict";var Yl=ee(),Hl=Br().includes,Xl=S(),Jl=Le(),Zl=Xl(function(){return!Array(1).includes()});Yl({target:"Array",proto:!0,forced:Zl},{includes:function(r){return Hl(this,r,arguments.length>1?arguments[1]:void 0)}});Jl("includes")});var uo=o((vT,so)=>{"use strict";ao();var ep=Nr();so.exports=ep("Array","includes")});var lo=o((dT,co)=>{"use strict";var rp=uo();co.exports=rp});var fo=o((bT,po)=>{"use strict";var tp=lo();po.exports=tp});var B=o((fy,Eo)=>{"use strict";Eo.exports={}});var qo=o((vy,wo)=>{"use strict";var ap=x(),sp=E(),So=ap.WeakMap;wo.exports=sp(So)&&/native code/.test(String(So))});var _o=o((dy,Ao)=>{"use strict";var up=qo(),Po=x(),cp=k(),lp=X(),ot=j(),at=qe(),pp=Ne(),fp=Ve(),Ro="Object already initialized",st=Po.TypeError,vp=Po.WeakMap,Qe,ve,Be,dp=function(e){return Be(e)?ve(e):Qe(e,{})},bp=function(e){return function(r){var t;if(!cp(r)||(t=ve(r)).type!==e)throw new st("Incompatible receiver, "+e+" required");return t}};up||at.state?(A=at.state||(at.state=new vp),A.get=A.get,A.has=A.has,A.set=A.set,Qe=function(e,r){if(A.has(e))throw new st(Ro);return r.facade=e,A.set(e,r),r},ve=function(e){return A.get(e)||{}},Be=function(e){return A.has(e)}):(z=pp("state"),fp[z]=!0,Qe=function(e,r){if(ot(e,z))throw new st(Ro);return r.facade=e,lp(e,z,r),r},ve=function(e){return ot(e,z)?e[z]:{}},Be=function(e){return ot(e,z)});var A,z;Ao.exports={set:Qe,get:ve,has:Be,enforce:dp,getterFor:bp}});var jo=o((by,ko)=>{"use strict";var ut=R(),mp=j(),Lo=Function.prototype,Tp=ut&&Object.getOwnPropertyDescriptor,ct=mp(Lo,"name"),yp=ct&&function(){}.name==="something",hp=ct&&(!ut||ut&&Tp(Lo,"name").configurable);ko.exports={EXISTS:ct,PROPER:yp,CONFIGURABLE:hp}});var No=o(Co=>{"use strict";var gp=R(),Ip=_r(),Op=H(),xp=Q(),Ep=G(),Sp=Wr();Co.f=gp&&!Ip?Object.defineProperties:function(r,t){xp(r);for(var n=Ep(t),i=Sp(t),a=i.length,s=0,u;a>s;)Op.f(r,u=i[s++],n[u]);return r}});var Vo=o((Ty,Mo)=>{"use strict";var wp=xe();Mo.exports=wp("document","documentElement")});var vt=o((yy,zo)=>{"use strict";var qp=Q(),Rp=No(),Fo=Kr(),Pp=Ve(),Ap=Vo(),_p=Rr(),Lp=Ne(),Do=">",Uo="<",pt="prototype",ft="script",Qo=Lp("IE_PROTO"),lt=function(){},Bo=function(e){return Uo+ft+Do+e+Uo+"/"+ft+Do},Go=function(e){e.write(Bo("")),e.close();var r=e.parentWindow.Object;return e=null,r},kp=function(){var e=_p("iframe"),r="java"+ft+":",t;return e.style.display="none",Ap.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Bo("document.F=Object")),t.close(),t.F},ze,Ke=function(){try{ze=new ActiveXObject("htmlfile")}catch{}Ke=typeof document<"u"?document.domain&&ze?Go(ze):kp():Go(ze);for(var e=Fo.length;e--;)delete Ke[pt][Fo[e]];return Ke()};Pp[Qo]=!0;zo.exports=Object.create||function(r,t){var n;return r!==null?(lt[pt]=qp(r),n=new lt,lt[pt]=null,n[Qo]=r):n=Ke(),t===void 0?n:Rp.f(n,t)}});var dt=o((hy,Ko)=>{"use strict";var jp=X();Ko.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:jp(e,r,t),e}});var yt=o((gy,Yo)=>{"use strict";var Cp=S(),Np=E(),Mp=k(),Vp=vt(),Wo=Me(),Fp=dt(),Dp=C(),Up=ue(),Tt=Dp("iterator"),$o=!1,N,bt,mt;[].keys&&(mt=[].keys(),"next"in mt?(bt=Wo(Wo(mt)),bt!==Object.prototype&&(N=bt)):$o=!0);var Gp=!Mp(N)||Cp(function(){var e={};return N[Tt].call(e)!==e});Gp?N={}:Up&&(N=Vp(N));Np(N[Tt])||Fp(N,Tt,function(){return this});Yo.exports={IteratorPrototype:N,BUGGY_SAFARI_ITERATORS:$o}});var We=o((Iy,Xo)=>{"use strict";var Qp=C(),Bp=Qp("toStringTag"),Ho={};Ho[Bp]="z";Xo.exports=String(Ho)==="[object z]"});var ht=o((Oy,Jo)=>{"use strict";var zp=We(),Kp=E(),$e=he(),Wp=C(),$p=Wp("toStringTag"),Yp=Object,Hp=$e(function(){return arguments}())==="Arguments",Xp=function(e,r){try{return e[r]}catch{}};Jo.exports=zp?$e:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Xp(r=Yp(e),$p))=="string"?t:Hp?$e(r):(n=$e(r))==="Object"&&Kp(r.callee)?"Arguments":n}});var ea=o((xy,Zo)=>{"use strict";var Jp=We(),Zp=ht();Zo.exports=Jp?{}.toString:function(){return"[object "+Zp(this)+"]"}});var Ye=o((Ey,ta)=>{"use strict";var ef=We(),rf=H().f,tf=X(),nf=j(),of=ea(),af=C(),ra=af("toStringTag");ta.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(nf(i,ra)||rf(i,ra,{configurable:!0,value:r}),n&&!ef&&tf(i,"toString",of))}});var ia=o((Sy,na)=>{"use strict";var sf=yt().IteratorPrototype,uf=vt(),cf=oe(),lf=Ye(),pf=B(),ff=function(){return this};na.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=uf(sf,{next:cf(+!n,t)}),lf(e,i,!1,!0),pf[i]=ff,e}});var aa=o((wy,oa)=>{"use strict";var vf=_(),df=se();oa.exports=function(e,r,t){try{return vf(df(Object.getOwnPropertyDescriptor(e,r)[t]))}catch{}}});var ua=o((qy,sa)=>{"use strict";var bf=k();sa.exports=function(e){return bf(e)||e===null}});var la=o((Ry,ca)=>{"use strict";var mf=ua(),Tf=String,yf=TypeError;ca.exports=function(e){if(mf(e))return e;throw new yf("Can't set "+Tf(e)+" as a prototype")}});var fa=o((Py,pa)=>{"use strict";var hf=aa(),gf=k(),If=Oe(),Of=la();pa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=hf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch{}return function(i,a){return If(i),Of(a),gf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var xa=o((Ay,Oa)=>{"use strict";var xf=ee(),Ef=V(),He=ue(),ga=jo(),Sf=E(),wf=ia(),va=Me(),da=fa(),qf=Ye(),Rf=X(),gt=dt(),Pf=C(),ba=B(),Ia=yt(),Af=ga.PROPER,_f=ga.CONFIGURABLE,ma=Ia.IteratorPrototype,Xe=Ia.BUGGY_SAFARI_ITERATORS,de=Pf("iterator"),Ta="keys",be="values",ya="entries",ha=function(){return this};Oa.exports=function(e,r,t,n,i,a,s){wf(t,r,n);var u=function(h){if(h===i&&d)return d;if(!Xe&&h&&h in v)return v[h];switch(h){case Ta:return function(){return new t(this,h)};case be:return function(){return new t(this,h)};case ya:return function(){return new t(this,h)}}return function(){return new t(this)}},p=r+" Iterator",l=!1,v=e.prototype,c=v[de]||v["@@iterator"]||i&&v[i],d=!Xe&&c||u(i),b=r==="Array"&&v.entries||c,T,y,I;if(b&&(T=va(b.call(new e)),T!==Object.prototype&&T.next&&(!He&&va(T)!==ma&&(da?da(T,ma):Sf(T[de])||gt(T,de,ha)),qf(T,p,!0,!0),He&&(ba[p]=ha))),Af&&i===be&&c&&c.name!==be&&(!He&&_f?Rf(v,"name",be):(l=!0,d=function(){return Ef(c,this)})),i)if(y={values:u(be),keys:a?d:u(Ta),entries:u(ya)},s)for(I in y)(Xe||l||!(I in v))&&gt(v,I,y[I]);else xf({target:r,proto:!0,forced:Xe||l},y);return(!He||s)&&v[de]!==d&&gt(v,de,d,{name:i}),ba[r]=d,y}});var Sa=o((_y,Ea)=>{"use strict";Ea.exports=function(e,r){return{value:e,done:r}}});var Ot=o((Ly,Aa)=>{"use strict";var Lf=G(),It=Le(),wa=B(),Ra=_o(),kf=H().f,jf=xa(),Je=Sa(),Cf=ue(),Nf=R(),Pa="Array Iterator",Mf=Ra.set,Vf=Ra.getterFor(Pa);Aa.exports=jf(Array,"Array",function(e,r){Mf(this,{type:Pa,target:Lf(e),index:0,kind:r})},function(){var e=Vf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Je(void 0,!0);switch(e.kind){case"keys":return Je(t,!1);case"values":return Je(r[t],!1)}return Je([t,r[t]],!1)},"values");var qa=wa.Arguments=wa.Array;It("keys");It("values");It("entries");if(!Cf&&Nf&&qa.name!=="values")try{kf(qa,"name",{value:"values"})}catch{}});var La=o((ky,_a)=>{"use strict";var Ff=C(),Df=B(),Uf=Ff("iterator"),Gf=Array.prototype;_a.exports=function(e){return e!==void 0&&(Df.Array===e||Gf[Uf]===e)}});var xt=o((jy,ja)=>{"use strict";var Qf=ht(),ka=we(),Bf=Ie(),zf=B(),Kf=C(),Wf=Kf("iterator");ja.exports=function(e){if(!Bf(e))return ka(e,Wf)||ka(e,"@@iterator")||zf[Qf(e)]}});var Na=o((Cy,Ca)=>{"use strict";var $f=V(),Yf=se(),Hf=Q(),Xf=Se(),Jf=xt(),Zf=TypeError;Ca.exports=function(e,r){var t=arguments.length<2?Jf(e):r;if(Yf(t))return Hf($f(t,e));throw new Zf(Xf(e)+" is not iterable")}});var Fa=o((Ny,Va)=>{"use strict";var ev=V(),Ma=Q(),rv=we();Va.exports=function(e,r,t){var n,i;Ma(e);try{if(n=rv(e,"return"),!n){if(r==="throw")throw t;return t}n=ev(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return Ma(n),t}});var Ba=o((My,Qa)=>{"use strict";var tv=Ar(),nv=V(),iv=Q(),ov=Se(),av=La(),sv=_e(),Da=br(),uv=Na(),cv=xt(),Ua=Fa(),lv=TypeError,Ze=function(e,r){this.stopped=e,this.result=r},Ga=Ze.prototype;Qa.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),u=!!(t&&t.INTERRUPTED),p=tv(r,n),l,v,c,d,b,T,y,I=function(g){return l&&Ua(l,"normal",g),new Ze(!0,g)},h=function(g){return i?(iv(g),u?p(g[0],g[1],I):p(g[0],g[1])):u?p(g,I):p(g)};if(a)l=e.iterator;else if(s)l=e;else{if(v=cv(e),!v)throw new lv(ov(e)+" is not iterable");if(av(v)){for(c=0,d=sv(e);d>c;c++)if(b=h(e[c]),b&&Da(Ga,b))return b;return new Ze(!1)}l=uv(e,v)}for(T=a?e.next:l.next;!(y=nv(T,l)).done;){try{b=h(y.value)}catch(g){Ua(l,"throw",g)}if(typeof b=="object"&&b&&Da(Ga,b))return b}return new Ze(!1)}});var Ka=o((Vy,za)=>{"use strict";var pv=R(),fv=H(),vv=oe();za.exports=function(e,r,t){pv?fv.f(e,r,vv(0,t)):e[r]=t}});var Wa=o(()=>{"use strict";var dv=ee(),bv=Ba(),mv=Ka();dv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return bv(r,function(n,i){mv(t,n,i)},{AS_ENTRIES:!0}),t}})});var Ya=o((Uy,$a)=>{"use strict";Ot();Wa();var Tv=ae();$a.exports=Tv.Object.fromEntries});var Xa=o((Gy,Ha)=>{"use strict";Ha.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 Za=o(()=>{"use strict";Ot();var yv=Xa(),hv=x(),gv=Ye(),Ja=B();for(er in yv)gv(hv[er],er),Ja[er]=Ja.Array;var er});var rs=o((zy,es)=>{"use strict";var Iv=Ya();Za();es.exports=Iv});var ns=o((Ky,ts)=>{"use strict";var Ov=rs();ts.exports=Ov});var Ts="1.0.59-beta.0";var O=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`)},ys=e=>{};var D=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){let n;t?typeof t=="function"?n={next:t,error:D}:n={next:s=>t.next(s),error:s=>t.error?.(s)}:n={next:D,error:D};let i=typeof r=="function"?{next:s=>{try{let u=r(s);u instanceof Promise&&u.catch(p=>n.next(p))}catch(u){n.next(u)}},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(i)}catch(s){i.error?.(s)}return new O().add(()=>{switch(i.next=D,i.error=D,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 M=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>n.error?.(t))}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new O().add(()=>this.subscribers.delete(n))}};var tr=class{constructor(){this.log$=new M;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{n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};var nr=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},ir=class e{constructor({name:r,parentContext:t,tracer:n}){this.dynamicImportTimeout=5e3;this.childTracers=[];if(e.dynamicImportStatus==="failed")return this;e.dynamicImportStatus==="not_started"&&(e.dynamicImportPromise=this.loadOpentelemetry()),e.dynamicImportPromise.then(()=>this.init({name:r,parentContext:t,tracer:n}))}static{this.dynamicImportStatus="not_started"}init({name:r,parentContext:t,tracer:n}){let i=!n;if(i){let s=e.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new e.dynamicImports.tracer.TracerMemorySpanExporter,p=new e.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,s.addSpanProcessor(new e.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u,endedSpansExporter:p})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=e.dynamicImports.opentelemetryApi.trace.setSpan(e.dynamicImports.opentelemetryApi.context.active(),this.span),e.dynamicImportStatus="initialized"}async loadOpentelemetry(){if(e.dynamicImportStatus==="not_started"){e.dynamicImportStatus="in_progress";try{let r=new Promise((s,u)=>setTimeout(u,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,a]=await Promise.race([t,r]);e.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:a},e.dynamicImportStatus="completed"}catch{e.dynamicImportStatus="failed"}}}log(r,t){e.dynamicImportStatus==="initialized"&&this.span.addEvent(r,{...t,type:"log"})}error(r,t){e.dynamicImportStatus==="initialized"&&this.span.addEvent(r,{...t,type:"error"})}critical(r,t){e.dynamicImportStatus==="initialized"&&this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new nr({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){e.dynamicImportStatus==="initialized"&&(this.childTracers.forEach(r=>r.end()),this.span.end())}getFinishedSpans(){if(e.dynamicImportStatus==="initialized")return this.spanExporter?.getJsonData()}getTraceId(){return e.dynamicImportStatus!=="initialized"?"":this.span.spanContext().traceId}};function hs(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function gs(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function K(e){return typeof e<"u"&&e!==null}function or(e){return e==null}function Is(e,r){if(!e?.length)throw new Error(r)}function Os(e,r){if(e?.length)throw new Error(r)}var xs=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{u(),l.remove()});let a=()=>{u(),i("error")},s=()=>{u(),n()},u=()=>{p&&clearTimeout(p),l.removeEventListener("load",s),l.removeEventListener("error",a)},p;t&&(p=window.setTimeout(()=>{u(),i("timeout")},t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",a),l.src=e,document.head.appendChild(l)});var Es=typeof window.performance?.now=="function"?()=>window.performance.now():()=>Date.now();var Ss=(e,r)=>async(...t)=>{let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=s.done??!1,a=s.value}catch(s){await n.throw(s)}return a};var ws=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let s=r;return s*=t**e,s*=1+(Math.random()*a*2-a),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,i),s};var Rt={};qt(Rt,{clear:()=>Ls,get:()=>Rs,has:()=>As,isPersistent:()=>qs,remove:()=>_s,set:()=>Ps});var W,U,ar=`vk-videoplayer-dummy-key-${Math.random()}`,$=()=>{if(U!==void 0)return U;try{localStorage.setItem(ar,"test"),localStorage.removeItem(ar),U=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ar),U=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)U=2;else throw r}else throw e}return U===2&&(W=new Map),U},qs=()=>$()===0,Rs=e=>{let r=$();switch(r){case 0:return localStorage.getItem(e)??void 0;case 1:return sessionStorage.getItem(e)??void 0;case 2:return W?.get(e);default:L(r)}},Ps=(e,r)=>{let t=$();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:W?.set(e,r);return;default:L(t)}},As=e=>{let r=$();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return W?.has(e)??!1;default:return L(r),!1}},_s=e=>{let r=$();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:W?.delete(e);return;default:L(r)}},Ls=()=>{let e=$();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return W?.clear();default:L(e)}};var Mr=te(xi(),1),$c=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Mr.default)(r,-1),immediateOrigin:(0,Mr.default)(r,0)}};var Vr=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Vr||{});var w={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},Yc=(e,r)=>w[e].height>w[r].height,Hc=(e,r)=>w[e].height>=w[r].height,Fr=(e,r)=>w[e].height<w[r].height,Xc=(e,r)=>w[e].height<=w[r].height,Jc=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Fr(r,t)?1:-1)[0],Ei=Object.keys(w).sort((e,r)=>Fr(e,r)?-1:1),Zc=(e,r=.02)=>[...Ei].find(n=>w[n].height*(1+r)>=e),el=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Ei.find(i=>{let a=w[i];return a.width>=n&&a.height>=t})},rl=e=>w[e].height,Dr=e=>e==="Invariant quality",tl=e=>e.every(r=>!Dr(r));function nl(e){if(Dr(e))throw new Error("Expected exact quality")}var il=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=il(a,i):t[n]=n in e?a:i}return t};var Eb=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 Ur(e,r=0,t){let n,i,a,s,u,p,l=0,v=!1,c=!1,d=!0,b=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,c="maxWait"in t,a=t?.maxWait?Math.max(+t?.maxWait||0,r):a,d="trailing"in t?!!t.trailing:d);function T(m){let q=n,F=i;return n=i=void 0,l=m,s=e.apply(F,q),s}function y(m,q){return b?(u&&window.cancelAnimationFrame(u),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(b){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return l=m,u=y(Te,r),v?T(m):s}function g(m){let q=m-p,F=m-l,wt=r-q;return c?Math.min(wt,a-F):wt}function Et(m){let q=m-p,F=m-l;return p===void 0||q>=r||q<0||c&&F>=a}function Te(){let m=Date.now();if(Et(m))return St(m);u=y(Te,g(m))}function St(m){return u=void 0,d&&n?T(m):(n=i=void 0,s)}function us(){u!==void 0&&I(u),l=0,n=p=i=u=void 0}function cs(){return u===void 0?s:St(Date.now())}function ls(){return u!==void 0}function ye(...m){let q=Date.now(),F=Et(q);if(n=m,i=this,p=q,F){if(u===void 0)return h(p);if(c)return u=y(Te,r),T(p)}return u===void 0&&(u=y(Te,r)),s}return ye.cancel=us,ye.flush=cs,ye.pending=ls,ye}var Gr=(e,r=0,t)=>Ur(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var ke=(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]=ke(e[n],r):t[n]=e[n]}return t};var ol=e=>ke(e);var al=300,sl=(e,r=al)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Gr(s=>{let u=s[0];if(!u)return;let p,l;u.contentBoxSize&&u.contentBoxSize[0]?(l=u.contentBoxSize[0].blockSize,p=u.contentBoxSize[0].inlineSize):u.contentRect&&(p=u.contentRect.width,l=u.contentRect.height),K(p)&&K(l)&&t.next({width:p,height:l})},r));return a.observe(e),()=>a.disconnect()});var je=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let a=je(e[i],r-1);for(let s in a)a.hasOwnProperty(s)&&(n[i+t+s]=a[s])}else n[i]=e[i];return n};var ul=e=>{e.removeAttribute("src"),e.load()};var Mb=e=>{let r;try{r=new URL(e)}catch{return!1}return r.protocol==="https:"};var Fb=e=>{try{return new URL(e)}catch{return null}};var cl=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?je(t):{value:t})};var Ce=class extends M{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}};var Zi=te($r(),1);function eo(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>s=>{a in t||n--,t[a]=s,n===0&&r.next(t)};return(0,Zi.default)(e).reduce((a,[s,u])=>a.add(u.subscribe(i(s))),new O)})}function ro(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new O))}var Ql=e=>new f(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 Bl=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var zl=e=>new f(r=>{e.forEach(t=>r.next(t))});var Kl=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Fe=class extends O{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function to(e){return r=>new f(t=>r.subscribe(new Yr(t,e)))}var Yr=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){this.destination.error?.(r)}};var Wl={leading:!1,trailing:!0};function no(e,r=Wl){return t=>new f(n=>t.subscribe(new Hr(n,e,r)))}var Hr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,K(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){this.destination.error?.(r)}};var $l={leading:!0,trailing:!1};function io(e,r=$l){return t=>new f(n=>t.subscribe(new Xr(n,e,r)))}var Xr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,or(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){this.destination.error?.(r)}};function oo(e){return r=>new f(t=>r.subscribe(new Jr(t,e)))}var Jr=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){this.destination.error?.(r)}};var bo=te(fo(),1);var np=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let s in i)if(!(0,bo.default)(a,s)||i[s]!==n[s])return!1;return!0};return t(e,r)&&t(r,e)},ip=(e,r)=>e instanceof Object&&r instanceof Object?np(e,r):e===r;function mo(e=ip){return r=>new f(t=>r.subscribe(new Zr(t,e)))}var vo={},Zr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=vo}next(r){let t;try{t=this.lastValue===vo||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){this.destination.error?.(r)}};function De(e){return r=>new f(t=>r.subscribe(new et(t,e)))}var et=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){this.destination.error?.(r)}};function To(e){return De(()=>e)}function yo(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{t=!0,r.error?.(a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function ho(){return e=>new f(r=>e.subscribe(new rt(r)))}var rt=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){this.destination.error?.(r)}};function go(e){return r=>new f(t=>r.subscribe(new tt(t,e)))}var tt=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){this.destination.error?.(r)}};function Io(e){return r=>new f(t=>r.subscribe(new nt(t,e)))}var nt=class{constructor(r,t){this.destination=r;this.count=t;t<0&&this.destination.error?.(new Error("Count can not be less than zero"))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){this.destination.error?.(r)}};var op=(u=>(u.NETWORK="network",u.VIDEO_PIPELINE="video_pipeline",u.EXTERNAL_API="external_api",u.PARSER="parser",u.DOM="dom",u.WTF="wtf",u.FATAL="fatal",u))(op||{});var Ue=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,a=n.length;i<a;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,a=n.length;i<a;i++){let s=n[i];try{s.callback.call(this,r)}catch(u){Promise.resolve().then(()=>{throw u})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},re=class extends Ue{constructor(){super(),this.listeners||Ue.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)}},pe=class{constructor(){Object.defineProperty(this,"signal",{value:new re,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch{typeof document<"u"?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>"u")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch{n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol<"u"&&Symbol.toStringTag&&(pe.prototype[Symbol.toStringTag]="AbortController",re.prototype[Symbol.toStringTag]="AbortSignal");function Ge(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 it(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ge({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(l,v){let c;v&&v.signal&&(c=v.signal,delete v.signal);let d=new t(l,v);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},a.prototype=t.prototype);let s=r;return{fetch:(p,l)=>{let v=a&&a.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(v){let c;try{c=new DOMException("Aborted","AbortError")}catch{c=new Error("Aborted"),c.name="AbortError"}if(v.aborted)return Promise.reject(c);let d=new Promise((b,T)=>{v.addEventListener("abort",()=>T(c),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([d,s(p,l)])}return s(p,l)},Request:a}}var fe=Ge({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Oo=fe?it({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,xo=fe?Oo.fetch:window.fetch,uy=fe?Oo.Request:window.Request,cy=fe?pe:window.AbortController,ly=fe?re:window.AbortSignal;var is=te($r(),1),os=te(ns(),1),xv=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(xv||{}),Ev="vk.com",$y=async(e,r,t)=>{let n=new URL(`https://${Ev}/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 xo(n.toString())).json();return Sv(a,t)},Sv=(e,r)=>(0,os.default)((0,is.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),wv(n)])),wv=e=>Array.isArray(e)?e[0]:e;var qv=(t=>(t.RU="ru",t.EN="en",t))(qv||{});var Rv={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Pv=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),as=class{constructor(r){this.id=Pv();this.type=r,this.initWindowObjects()}getWindowObject(){let r=this.key();return window[r]?.[this.id]??{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Rv[r]}};var ss={};qt(ss,{create:()=>Av,destroy:()=>_v,push:()=>Lv,subscribe:()=>kv});var me=new Map,Av=(e,r)=>me.set(e,r??[]),_v=e=>me.delete(e),Lv=(e,r)=>{let t=me.get(e);t&&(typeof t=="function"?t(r):t.push(r))},kv=(e,r)=>{let t=me.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);me.set(e,r)}};export{op as ErrorCategory,qv as InterfaceLanguage,as as InternalsExposure,tr as Logger,f as Observable,M as Subject,O as Subscription,Fe as SubscriptionRemovable,ir as Tracer,Ts as VERSION,xv as VKNumericLanguage,Ce as ValueSubject,Vr as VideoQuality,Ss as abortable,xs as addScript,tl as areQualitiesExact,Os as assertEmptyArray,L as assertNever,hs as assertNonNullable,Is as assertNotEmptyArray,gs as assertNullable,nl as assertQualityIsExact,to as buffer,ys as checkNever,ul as clearVideoElement,ol as cloneDeep,ke as cloneDeepWith,eo as combine,Fb as createURL,no as debounce,Ur as debounceFn,$c as detectEmbed,ss as devNull,il as fillWithDefault,oo as filter,mo as filterChanged,je as flattenObject,Kl as fromEvent,ws as getExponentialDelay,Jc as getHighestQuality,cl as getTraceSubscriptionMethod,Bl as interval,Yc as isHigher,Hc as isHigherOrEqual,Dr as isInvariantQuality,Fr as isLower,Xc as isLowerOrEqual,K as isNonNullable,or as isNullable,Mb as isValidURL,$y as loadVKLangPack,De as map,To as mapTo,ro as merge,D as noop,Es as now,zl as observableFrom,sl as observeElementSize,yo as once,ho as pairwise,Rt as safeStorage,Io as skip,go as tap,io as throttle,Gr as throttleFn,Eb as timeCodeToString,Ql as timeout,Zc as videoHeightToQuality,rl as videoQualityToHeight,el as videoSizeToQuality};