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