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