@vkontakte/videoplayer-shared 1.0.40-dev.e44f3731.0 → 1.0.40-dev.ebad2f59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +2 -1
- package/types/types/index.d.ts +3 -0
package/es2018.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.40-dev.
|
|
3
|
-
* Mon, 02 Sep 2024
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.40-dev.ebad2f59.0
|
|
3
|
+
* Mon, 02 Sep 2024 11:17: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&<&&(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.e44f3731.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 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 k=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=k(),ju=co({}.toString),ku=co("".slice);lo.exports=function(e){return ku(ju(e),8,-1)}});var fo=u((MT,po)=>{"use strict";var Vu=k(),Du=C(),Fu=ze(),Zr=Object,Gu=Vu("".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((kT,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((VT,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 V=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,_o)=>{"use strict";var Hu=w(),Ro=V(),tt=Hu.document,Xu=Ro(tt)&&Ro(tt.createElement);_o.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=V(),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=k();jo.exports=uc({}.isPrototypeOf)});var Fo=u((ZT,Do)=>{"use strict";var cc=w(),ko=cc.navigator,Vo=ko&&ko.userAgent;Do.exports=Vo?String(Vo):""});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&<&&(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=V(),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 Rc=Oe(),_c=w(),Pc=ai(),si="__core-js_shared__",ui=ci.exports=_c[si]||Pc(si,{});(ui.versions||(ui.versions=[])).push({version:"3.38.0",mode:Rc?"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=k(),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=k(),jc=0,kc=Math.random(),Vc=Mc(1 .toString);di.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Vc(++jc+kc,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=V(),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,Ri)=>{"use strict";var sl=Tt(),ul=yt(),Ei=sl("keys");Ri.exports=function(e){return Ei[e]||(Ei[e]=ul(e))}});var ar=u((Ih,_i)=>{"use strict";_i.exports={}});var Ci=u((Oh,Ai)=>{"use strict";var cl=So(),qi=w(),ll=V(),pl=se(),Et=D(),Rt=nr(),fl=ir(),vl=ar(),Pi="Object already initialized",_t=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 _t("Incompatible receiver, "+e+" required");return t}};cl||Rt.state?(q=Rt.state||(Rt.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 _t(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 _t(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 ki=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,Vi)=>{"use strict";var hl=ze(),yl=k();Vi.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(),Rl=D(),_l=ot(),Ui=Object.getOwnPropertyDescriptor;Qi.f=xl?Ui:function(r,t){if(r=wl(r),t=El(t),_l)try{return Ui(r,t)}catch(n){}if(Rl(r,t))return Sl(!Il(Ol.f,r,t),r[t])}});var $i=u((_h,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(),kl=ge(),Vl=Yi(Yi.bind);zi.exports=function(e,r){return jl(e),r===void 0?e:kl?Vl(e,r):function(){return e.apply(r,arguments)}}});var At=u((qh,Xi)=>{"use strict";var Re=w(),Dl=ki(),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?Re:o?Re[t]:Re[t]&&Re[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,Re):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((kh,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((Vh,va)=>{"use strict";var up=k(),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 kt=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=kt();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,_a)=>{"use strict";var xp=H(),Ip=ya(),Ia=kt(),Op=ar(),Sp=xa(),wp=nt(),Ep=ir(),Oa=">",Sa="<",Dt="prototype",Ft="script",Ea=Ep("IE_PROTO"),Vt=function(){},Ra=function(e){return Sa+Ft+Oa+e+Sa+"/"+Ft+Oa},wa=function(e){e.write(Ra("")),e.close();var r=e.parentWindow.Object;return e=null,r},Rp=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(Ra("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):Rp():wa(cr);for(var e=Ia.length;e--;)delete lr[Dt][Ia[e]];return lr()};Op[Ea]=!0;_a.exports=Object.create||function(r,t){var n;return r!==null?(Vt[Dt]=xp(r),n=new Vt,Vt[Dt]=null,n[Ea]=r):n=lr(),t===void 0?n:Ip.f(n,t)}});var qa=u((Qh,Pa)=>{"use strict";var _p=C();Pa.exports=!_p(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(),kp=E(),Vp=V(),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=!Vp(G)||jp(function(){var e={};return G[$t].call(e)!==e});Up?G={}:Bp&&(G=Dp(G));kp(G[$t])||Fp(G,$t,function(){return this});ja.exports={IteratorPrototype:G,BUGGY_SAFARI_ITERATORS:Ma}});var pr=u((Yh,Va)=>{"use strict";var Qp=F(),Wp=Qp("toStringTag"),ka={};ka[Wp]="z";Va.exports=String(ka)==="[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=k(),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=V();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=V(),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(),Rf=Wa(),es=Ut(),rs=Za(),_f=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,_e=qf("iterator"),os="keys",Pe="values",is="entries",as=function(){return this};cs.exports=function(e,r,t,n,o,i,a){Rf(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[_e]||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[_e])||Ht(T,_e,as)),_f(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[_e]!==d&&Ht(p,_e,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(),kf=N(),ms="Array Iterator",Vf=bs.set,Df=bs.getterFor(ms);Ts.exports=Mf(Array,"Array",function(e,r){Vf(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&&kf&&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(),Rs=ct(),cv=Os(),lv=Zt(),_s=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&&_s(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&&Rs(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){_s(l,"throw",g)}if(typeof b=="object"&&b&&Rs(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 Vs=u((by,ks)=>{"use strict";ks.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=Vs(),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 _v={};nn(_v,{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:()=>_n,areQualitiesExact:()=>Un,assertEmptyArray:()=>Rn,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:()=>kr,debounceFn:()=>We,detectEmbed:()=>Ln,fillWithDefault:()=>Wn,filter:()=>Gr,filterChanged:()=>Ur,flattenObject:()=>be,fromEvent:()=>Zn,getExponentialDelay:()=>Nn,getHighestQuality:()=>Vn,getTraceSubscriptionMethod:()=>zn,interval:()=>Xn,isHigher:()=>Mn,isHigherOrEqual:()=>jn,isInvariantQuality:()=>Qe,isLower:()=>Ue,isLowerOrEqual:()=>kn,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(_v);var an="1.0.40-dev.ebad2f59.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 ke(e){return yu(e.traceId)&&gu(e.spanId)}function gn(e){return new U(e)}var Or=re.getInstance(),Ve=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)&&ke(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 Ve,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 Ve},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=ke,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 Rr=On.getInstance();var K=require("@tracer/opentelemetry"),_r=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},De=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let o=!n;if(o){let a=(0,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=Rr.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 _r({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){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 Rn(e,r){if(e!=null&&e.length)throw new Error(r)}var _n=(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:()=>Ru,isPersistent:()=>Su,remove:()=>_u,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)}},Ru=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}},_u=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 R={"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)=>R[e].height>R[r].height,jn=(e,r)=>R[e].height>=R[r].height,Ue=(e,r)=>R[e].height<R[r].height,kn=(e,r)=>R[e].height<=R[r].height,Vn=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(R).sort((e,r)=>Ue(e,r)?-1:1),Fn=(e,r=.02)=>[...Dn].find(n=>R[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=R[o];return i.width>=n&&i.height>=t})},Bn=e=>R[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 _=n,W=o;return n=o=void 0,l=m,a=e.apply(W,_),a}function h(m,_){return b?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,_)}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 _=m-c,W=m-l,tn=r-_;return f?Math.min(tn,i-W):tn}function en(m){let _=m-c,W=m-l;return c===void 0||_>=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 _=Date.now(),W=en(_);if(n=m,o=this,c=_,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 kr(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 Vr(n,e,r)))}var Vr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,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,RT=ye?to.Request:window.Request,_T=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),Rv(n)])),Rv=e=>Array.isArray(e)?e[0]:e;var $s=(t=>(t.RU="ru",t.EN="en",t))($s||{});
|
package/es2018.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.40-dev.
|
|
3
|
-
* Mon, 02 Sep 2024
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.40-dev.ebad2f59.0
|
|
3
|
+
* Mon, 02 Sep 2024 11:17: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.e44f3731.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 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 Rn=be(),_n=Function.prototype,Dr=_n.call,Nu=Rn&&_n.bind.bind(Dr,Dr);Pn.exports=Rn?Nu:function(e){return function(){return Dr.apply(e,arguments)}}});var Ve=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(),ku=A(),Vu=Ve(),Fr=Object,Du=ju("".split);Cn.exports=ku(function(){return!Fr("z").propertyIsEnumerable(0)})?function(e){return Vu(e)==="String"?Du(e,""):Fr(e)}:Fr});var De=u((jT,Ln)=>{"use strict";Ln.exports=function(e){return e==null}});var Fe=u((kT,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((VT,jn)=>{"use strict";var Bu=Nn(),Uu=Fe();jn.exports=function(e){return Bu(Uu(e))}});var Vn=u((DT,kn)=>{"use strict";kn.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 k=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=k(),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=k(),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=k(),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 Ro=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(),Rc=Ro(),_o="__core-js_shared__",Po=qo.exports=Ec[_o]||Rc(_o,{});(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 _c=Fe(),Pc=Object;No.exports=function(e){return Pc(_c(e))}});var V=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,ko)=>{"use strict";var kc=S(),Vc=ot(),jo=V(),Dc=at(),Fc=Jr(),Gc=Zr(),oe=kc.Symbol,st=Vc("wks"),Bc=Gc?oe.for||oe:oe&&oe.withoutSetter||Dc;ko.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(),Vo=k(),Do=et(),Qc=We(),Wc=Oo(),Kc=D(),$c=TypeError,Yc=Kc("toPrimitive");Fo.exports=function(e,r){if(!Vo(e)||Do(e))return e;var t=Qc(e,Yc),n;if(t){if(r===void 0&&(r="default"),n=Uc(t,e,r),!Vo(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=k(),cl=ae(),vt=V(),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=Ve(),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=V(),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((_h,vi)=>{"use strict";var Rl=A(),_l=w(),Pl=/#|\.prototype\./,xe=function(e,r){var t=Al[ql(e)];return t===Nl?!0:t===Cl?!1:_l(r)?Rl(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(),kl=oi(),Vl=mt(),Dl=w(),Fl=fi().f,Gl=di(),se=Be(),Bl=Tt(),ue=ae(),Ti=V();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 kl(e,this,arguments)};return r.prototype=e.prototype,r};hi.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,i=e.proto,a=n?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=Vl(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=V(),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 _i=u((Mh,Ri)=>{"use strict";var ep=xt(),rp=Math.min;Ri.exports=function(e){var r=ep(e);return r>0?rp(r,9007199254740991):0}});var It=u((jh,Pi)=>{"use strict";var tp=_i();Pi.exports=function(e){return tp(e.length)}});var Ci=u((kh,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((Vh,Li)=>{"use strict";var ap=j(),Ot=V(),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 Vi=u((Fh,ki)=>{"use strict";var lp=Mi(),pp=St();ki.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=Vi();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 _t=u((Uh,zi)=>{"use strict";var yp=Y(),gp=Fi(),Ui=St(),xp=ze(),Ip=Bi(),Op=Qr(),Sp=Ye(),Qi=">",Wi="<",Et="prototype",Rt="script",$i=Sp("IE_PROTO"),wt=function(){},Yi=function(e){return Wi+Rt+Qi+e+Wi+"/"+Rt+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"+Rt+":",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 Rp=V(),_p=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(Rp(r,Ji))return r[Ji];var t=r.constructor;return _p(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=k(),kp=_t(),ra=qt(),Vp=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=kp(F));Mp(F[Lt])||Vp(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=Ve(),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=V(),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=_t(),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=k();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=k(),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(),_a=xi(),Sf=w(),wf=fa(),xa=qt(),Ia=ga(),Ef=tr(),Rf=ae(),kt=At(),_f=D(),Oa=$(),Pa=Mt(),Pf=_a.PROPER,qf=_a.CONFIGURABLE,Sa=Pa.IteratorPrototype,or=Pa.BUGGY_SAFARI_ITERATORS,Oe=_f("iterator"),wa="keys",Se="values",Ea="entries",Ra=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])||kt(T,Oe,Ra)),Ef(T,c,!0,!0),nr&&(Oa[c]=Ra))),Pf&&o===Se&&f&&f.name!==Se&&(!nr&&qf?Rf(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))&&kt(p,x,h[x]);else If({target:r,proto:!0,forced:or||l},h);return(!nr||a)&&p[Oe]!==d&&kt(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,Va)=>{"use strict";var Af=ne(),Vt=Vn(),La=$(),ja=Zo(),Cf=ie().f,Nf=Aa(),ir=Na(),Lf=he(),Mf=C(),ka="Array Iterator",jf=ja.set,kf=ja.getterFor(ka);Va.exports=Nf(Array,"Array",function(e,r){jf(this,{type:ka,target:Af(e),index:0,kind:r})},function(){var e=kf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,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;Vt("keys");Vt("values");Vt("entries");if(!Lf&&Mf&&Ma.name!=="values")try{Cf(Ma,"name",{value:"values"})}catch(e){}});var Fa=u((ay,Da)=>{"use strict";var Vf=D(),Df=$(),Ff=Vf("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.ebad2f59.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 Rs=L.split(".")[0],ce=Symbol.for("opentelemetry.js.api."+Rs),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 _s=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],a;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(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([],_s(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},ks=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},lr="context",Vs=new 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,ks([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)||Vs},e.prototype.disable=function(){this._getContextManager().disable(),X(lr,J.instance())},e}();var Re;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Re||(Re={}));var pr="0000000000000000",fr="00000000000000000000000000000000",Jt={traceId:fr,spanId:pr,traceFlags:Re.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 _e(e){return e.getValue(vr)||void 0}function Zt(){return _e(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=_e(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=_e,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 R={"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)=>R[e].height>R[r].height,pu=(e,r)=>R[e].height>=R[r].height,Er=(e,r)=>R[e].height<R[r].height,fu=(e,r)=>R[e].height<=R[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(R).sort((e,r)=>Er(e,r)?-1:1),du=(e,r=.02)=>[...ln].find(n=>R[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=R[o];return i.width>=n&&i.height>=t})},mu=e=>R[e].height,Rr=e=>e==="Invariant quality",Tu=e=>e.every(r=>!Rr(r));function hu(e){if(Rr(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 _r(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 _=n,Q=o;return n=o=void 0,l=m,a=e.apply(Q,_),a}function h(m,_){return b?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,_)}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 _=m-c,Q=m-l,Ut=r-_;return f?Math.min(Ut,i-Q):Ut}function Gt(m){let _=m-c,Q=m-l;return c===void 0||_>=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 _=Date.now(),Q=Gt(_);if(n=m,o=this,c=_,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)=>_r(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var Ce=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=Ce(e[n],r):t[n]=e[n]}return t};var 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 Ru=e=>new v(r=>{e.forEach(t=>r.next(t))});var _u=(e,r)=>new v(t=>{let n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function 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 kr(t,e)))}var kr=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 ke(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Vr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!ke({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=ke({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),On=de?Vr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Sn=de?On.fetch:window.fetch,RT=de?On.Request:window.Request,_T=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,_r as debounceFn,cu as detectEmbed,yu as fillWithDefault,mn as filter,hn as filterChanged,Ne as flattenObject,_u as fromEvent,tu as getExponentialDelay,vu as getHighestQuality,Su as getTraceSubscriptionMethod,Eu as interval,lu as isHigher,pu as isHigherOrEqual,Rr 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,Ru 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};
|