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