@vkontakte/videoplayer-shared 1.0.63-beta.0 → 1.0.63-beta.1

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