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