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