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