@vkontakte/videoplayer-shared 1.0.40-dev.53bf33a7.0 → 1.0.40-dev.85b25f2f.0

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