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