@vkontakte/videoplayer-shared 1.0.62-dev.2bd92e6d.0 → 1.0.62-dev.4cc026f5.0

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