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