@vkontakte/videoplayer-shared 1.0.62-dev.2bd92e6d.0 → 1.0.62-dev.4cc026f5.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.62-dev.2bd92e6d.0
3
- * Tue, 17 Jun 2025 15:04:21 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.62-dev.4cc026f5.0
3
+ * Mon, 23 Jun 2025 12:57:13 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-62/doc/
5
5
  */
6
- "use strict";var tu=Object.create;var ce=Object.defineProperty,nu=Object.defineProperties,iu=Object.getOwnPropertyDescriptor,ou=Object.getOwnPropertyDescriptors,au=Object.getOwnPropertyNames,Ht=Object.getOwnPropertySymbols,su=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty,uu=Object.prototype.propertyIsEnumerable;var Zt=Math.pow,Xt=(e,r,t)=>r in e?ce(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,q=(e,r)=>{for(var t in r||(r={}))Jt.call(r,t)&&Xt(e,t,r[t]);if(Ht)for(var t of Ht(r))uu.call(r,t)&&Xt(e,t,r[t]);return e},U=(e,r)=>nu(e,ou(r));var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),gr=(e,r)=>{for(var t in r)ce(e,t,{get:r[t],enumerable:!0})},en=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of au(r))!Jt.call(e,i)&&i!==t&&ce(e,i,{get:()=>r[i],enumerable:!(n=iu(r,i))||n.enumerable});return e};var G=(e,r,t)=>(t=e!=null?tu(su(e)):{},en(r||!e||!e.__esModule?ce(t,"default",{value:e,enumerable:!0}):t,e)),cu=e=>en(ce({},"__esModule",{value:!0}),e);var Z=(e,r,t)=>new Promise((n,i)=>{var a=c=>{try{s(t.next(c))}catch(p){i(p)}},u=c=>{try{s(t.throw(c))}catch(p){i(p)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,u);s((t=t.apply(e,r)).next())});var E=o((Or,dn)=>{"use strict";var le=function(e){return e&&e.Math===Math&&e};dn.exports=le(typeof globalThis=="object"&&globalThis)||le(typeof window=="object"&&window)||le(typeof self=="object"&&self)||le(typeof global=="object"&&global)||le(typeof Or=="object"&&Or)||function(){return this}()||Function("return this")()});var R=o((Rv,vn)=>{"use strict";vn.exports=function(e){try{return!!e()}catch(r){return!0}}});var pe=o((Pv,bn)=>{"use strict";var mu=R();bn.exports=!mu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var gn=o((Av,hn)=>{"use strict";var Tu=pe(),yn=Function.prototype,mn=yn.apply,Tn=yn.call;hn.exports=typeof Reflect=="object"&&Reflect.apply||(Tu?Tn.bind(mn):function(){return Tn.apply(mn,arguments)})});var C=o((_v,xn)=>{"use strict";var In=pe(),On=Function.prototype,xr=On.call,yu=In&&On.bind.bind(xr,xr);xn.exports=In?yu:function(e){return function(){return xr.apply(e,arguments)}}});var je=o((Lv,En)=>{"use strict";var wn=C(),hu=wn({}.toString),gu=wn("".slice);En.exports=function(e){return gu(hu(e),8,-1)}});var wr=o((jv,Sn)=>{"use strict";var Iu=je(),Ou=C();Sn.exports=function(e){if(Iu(e)==="Function")return Ou(e)}});var S=o((kv,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 _=o((Cv,Rn)=>{"use strict";var xu=R();Rn.exports=!xu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var B=o((Nv,Pn)=>{"use strict";var wu=pe(),ke=Function.prototype.call;Pn.exports=wu?ke.bind(ke):function(){return ke.apply(ke,arguments)}});var Sr=o(Ln=>{"use strict";var An={}.propertyIsEnumerable,_n=Object.getOwnPropertyDescriptor,Eu=_n&&!An.call({1:2},1);Ln.f=Eu?function(r){var t=_n(this,r);return!!t&&t.enumerable}:An});var fe=o((Vv,jn)=>{"use strict";jn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Cn=o((Dv,kn)=>{"use strict";var Su=C(),qu=R(),Ru=je(),qr=Object,Pu=Su("".split);kn.exports=qu(function(){return!qr("z").propertyIsEnumerable(0)})?function(e){return Ru(e)==="String"?Pu(e,""):qr(e)}:qr});var Ce=o((Fv,Nn)=>{"use strict";Nn.exports=function(e){return e==null}});var Ne=o((Uv,Mn)=>{"use strict";var Au=Ce(),_u=TypeError;Mn.exports=function(e){if(Au(e))throw new _u("Can't call method on "+e);return e}});var Y=o((Gv,Vn)=>{"use strict";var Lu=Cn(),ju=Ne();Vn.exports=function(e){return Lu(ju(e))}});var M=o((Qv,Dn)=>{"use strict";var ku=S();Dn.exports=function(e){return typeof e=="object"?e!==null:ku(e)}});var de=o((Bv,Fn)=>{"use strict";Fn.exports={}});var Me=o((Kv,Gn)=>{"use strict";var Rr=de(),Pr=E(),Cu=S(),Un=function(e){return Cu(e)?e:void 0};Gn.exports=function(e,r){return arguments.length<2?Un(Rr[e])||Un(Pr[e]):Rr[e]&&Rr[e][r]||Pr[e]&&Pr[e][r]}});var Ar=o((Wv,Qn)=>{"use strict";var Nu=C();Qn.exports=Nu({}.isPrototypeOf)});var $n=o(($v,Wn)=>{"use strict";var Mu=E(),Bn=Mu.navigator,Kn=Bn&&Bn.userAgent;Wn.exports=Kn?String(Kn):""});var ei=o((zv,Zn)=>{"use strict";var Jn=E(),_r=$n(),zn=Jn.process,Yn=Jn.Deno,Hn=zn&&zn.versions||Yn&&Yn.version,Xn=Hn&&Hn.v8,L,Ve;Xn&&(L=Xn.split("."),Ve=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!Ve&&_r&&(L=_r.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=_r.match(/Chrome\/(\d+)/),L&&(Ve=+L[1])));Zn.exports=Ve});var Lr=o((Yv,ti)=>{"use strict";var ri=ei(),Vu=R(),Du=E(),Fu=Du.String;ti.exports=!!Object.getOwnPropertySymbols&&!Vu(function(){var e=Symbol("symbol detection");return!Fu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ri&&ri<41})});var jr=o((Hv,ni)=>{"use strict";var Uu=Lr();ni.exports=Uu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var kr=o((Xv,ii)=>{"use strict";var Gu=Me(),Qu=S(),Bu=Ar(),Ku=jr(),Wu=Object;ii.exports=Ku?function(e){return typeof e=="symbol"}:function(e){var r=Gu("Symbol");return Qu(r)&&Bu(r.prototype,Wu(e))}});var De=o((Jv,oi)=>{"use strict";var $u=String;oi.exports=function(e){try{return $u(e)}catch(r){return"Object"}}});var ve=o((Zv,ai)=>{"use strict";var zu=S(),Yu=De(),Hu=TypeError;ai.exports=function(e){if(zu(e))return e;throw new Hu(Yu(e)+" is not a function")}});var Fe=o((eb,si)=>{"use strict";var Xu=ve(),Ju=Ce();si.exports=function(e,r){var t=e[r];return Ju(t)?void 0:Xu(t)}});var ci=o((rb,ui)=>{"use strict";var Cr=B(),Nr=S(),Mr=M(),Zu=TypeError;ui.exports=function(e,r){var t,n;if(r==="string"&&Nr(t=e.toString)&&!Mr(n=Cr(t,e))||Nr(t=e.valueOf)&&!Mr(n=Cr(t,e))||r!=="string"&&Nr(t=e.toString)&&!Mr(n=Cr(t,e)))return n;throw new Zu("Can't convert object to primitive value")}});var be=o((tb,li)=>{"use strict";li.exports=!0});var di=o((nb,fi)=>{"use strict";var pi=E(),ec=Object.defineProperty;fi.exports=function(e,r){try{ec(pi,e,{value:r,configurable:!0,writable:!0})}catch(t){pi[e]=r}return r}});var Ue=o((ib,mi)=>{"use strict";var rc=be(),tc=E(),nc=di(),vi="__core-js_shared__",bi=mi.exports=tc[vi]||nc(vi,{});(bi.versions||(bi.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 Vr=o((ob,yi)=>{"use strict";var Ti=Ue();yi.exports=function(e,r){return Ti[e]||(Ti[e]=r||{})}});var Ge=o((ab,hi)=>{"use strict";var ic=Ne(),oc=Object;hi.exports=function(e){return oc(ic(e))}});var V=o((sb,gi)=>{"use strict";var ac=C(),sc=Ge(),uc=ac({}.hasOwnProperty);gi.exports=Object.hasOwn||function(r,t){return uc(sc(r),t)}});var Dr=o((ub,Ii)=>{"use strict";var cc=C(),lc=0,pc=Math.random(),fc=cc(1 .toString);Ii.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fc(++lc+pc,36)}});var D=o((cb,xi)=>{"use strict";var dc=E(),vc=Vr(),Oi=V(),bc=Dr(),mc=Lr(),Tc=jr(),te=dc.Symbol,Fr=vc("wks"),yc=Tc?te.for||te:te&&te.withoutSetter||bc;xi.exports=function(e){return Oi(Fr,e)||(Fr[e]=mc&&Oi(te,e)?te[e]:yc("Symbol."+e)),Fr[e]}});var qi=o((lb,Si)=>{"use strict";var hc=B(),wi=M(),Ei=kr(),gc=Fe(),Ic=ci(),Oc=D(),xc=TypeError,wc=Oc("toPrimitive");Si.exports=function(e,r){if(!wi(e)||Ei(e))return e;var t=gc(e,wc),n;if(t){if(r===void 0&&(r="default"),n=hc(t,e,r),!wi(n)||Ei(n))return n;throw new xc("Can't convert object to primitive value")}return r===void 0&&(r="number"),Ic(e,r)}});var Ur=o((pb,Ri)=>{"use strict";var Ec=qi(),Sc=kr();Ri.exports=function(e){var r=Ec(e,"string");return Sc(r)?r:r+""}});var Qr=o((fb,Ai)=>{"use strict";var qc=E(),Pi=M(),Gr=qc.document,Rc=Pi(Gr)&&Pi(Gr.createElement);Ai.exports=function(e){return Rc?Gr.createElement(e):{}}});var Br=o((db,_i)=>{"use strict";var Pc=_(),Ac=R(),_c=Qr();_i.exports=!Pc&&!Ac(function(){return Object.defineProperty(_c("div"),"a",{get:function(){return 7}}).a!==7})});var ki=o(ji=>{"use strict";var Lc=_(),jc=B(),kc=Sr(),Cc=fe(),Nc=Y(),Mc=Ur(),Vc=V(),Dc=Br(),Li=Object.getOwnPropertyDescriptor;ji.f=Lc?Li:function(r,t){if(r=Nc(r),t=Mc(t),Dc)try{return Li(r,t)}catch(n){}if(Vc(r,t))return Cc(!jc(kc.f,r,t),r[t])}});var Ni=o((bb,Ci)=>{"use strict";var Fc=R(),Uc=S(),Gc=/#|\.prototype\./,me=function(e,r){var t=Bc[Qc(e)];return t===Wc?!0:t===Kc?!1:Uc(r)?Fc(r):!!r},Qc=me.normalize=function(e){return String(e).replace(Gc,".").toLowerCase()},Bc=me.data={},Kc=me.NATIVE="N",Wc=me.POLYFILL="P";Ci.exports=me});var Kr=o((mb,Vi)=>{"use strict";var Mi=wr(),$c=ve(),zc=pe(),Yc=Mi(Mi.bind);Vi.exports=function(e,r){return $c(e),r===void 0?e:zc?Yc(e,r):function(){return e.apply(r,arguments)}}});var Wr=o((Tb,Di)=>{"use strict";var Hc=_(),Xc=R();Di.exports=Hc&&Xc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var H=o((yb,Fi)=>{"use strict";var Jc=M(),Zc=String,el=TypeError;Fi.exports=function(e){if(Jc(e))return e;throw new el(Zc(e)+" is not an object")}});var ne=o(Gi=>{"use strict";var rl=_(),tl=Br(),nl=Wr(),Qe=H(),Ui=Ur(),il=TypeError,$r=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,zr="enumerable",Yr="configurable",Hr="writable";Gi.f=rl?nl?function(r,t,n){if(Qe(r),t=Ui(t),Qe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Hr in n&&!n[Hr]){var i=ol(r,t);i&&i[Hr]&&(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(Qe(r),t=Ui(t),Qe(n),tl)try{return $r(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new il("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ie=o((gb,Qi)=>{"use strict";var al=_(),sl=ne(),ul=fe();Qi.exports=al?function(e,r,t){return sl.f(e,r,ul(1,t))}:function(e,r,t){return e[r]=t,e}});var se=o((Ib,Ki)=>{"use strict";var Te=E(),cl=gn(),ll=wr(),pl=S(),fl=ki().f,dl=Ni(),oe=de(),vl=Kr(),ae=ie(),Bi=V();Ue();var bl=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 cl(e,this,arguments)};return r.prototype=e.prototype,r};Ki.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,u=n?Te:i?Te[t]:Te[t]&&Te[t].prototype,s=n?oe:oe[t]||ae(oe,t,{})[t],c=s.prototype,p,d,l,v,b,T,y,I,h;for(v in r)p=dl(n?v:t+(i?".":"#")+v,e.forced),d=!p&&u&&Bi(u,v),T=s[v],d&&(e.dontCallGetSet?(h=fl(u,v),y=h&&h.value):y=u[v]),b=d&&y?y:r[v],!(!p&&!a&&typeof T==typeof b)&&(e.bind&&d?I=vl(b,Te):e.wrap&&d?I=bl(b):a&&pl(b)?I=ll(b):I=b,(e.sham||b&&b.sham||T&&T.sham)&&ae(I,"sham",!0),ae(s,v,I),a&&(l=t+"Prototype",Bi(oe,l)||ae(oe,l,{}),ae(oe[l],v,b),e.real&&c&&(p||!c[v])&&ae(c,v,b)))}});var $i=o((Ob,Wi)=>{"use strict";var ml=Math.ceil,Tl=Math.floor;Wi.exports=Math.trunc||function(r){var t=+r;return(t>0?Tl:ml)(t)}});var Be=o((xb,zi)=>{"use strict";var yl=$i();zi.exports=function(e){var r=+e;return r!==r||r===0?0:yl(r)}});var Hi=o((wb,Yi)=>{"use strict";var hl=Be(),gl=Math.min;Yi.exports=function(e){var r=hl(e);return r>0?gl(r,9007199254740991):0}});var Ke=o((Eb,Xi)=>{"use strict";var Il=Hi();Xi.exports=function(e){return Il(e.length)}});var We=o((Sb,Ji)=>{"use strict";Ji.exports=function(){}});var Zi=o(()=>{"use strict";var Ol=se(),xl=Ge(),wl=Ke(),El=Be(),Sl=We();Ol({target:"Array",proto:!0},{at:function(r){var t=xl(this),n=wl(t),i=El(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});Sl("at")});var Xr=o((Pb,eo)=>{"use strict";var ql=Me();eo.exports=ql});var to=o((Ab,ro)=>{"use strict";Zi();var Rl=Xr();ro.exports=Rl("Array","at")});var io=o((_b,no)=>{"use strict";var Pl=to();no.exports=Pl});var ao=o((Lb,oo)=>{"use strict";var Al=io();oo.exports=Al});var tr=o((iT,Eo)=>{"use strict";var Cl=Vr(),Nl=Dr(),wo=Cl("keys");Eo.exports=function(e){return wo[e]||(wo[e]=Nl(e))}});var qo=o((oT,So)=>{"use strict";var Ml=R();So.exports=!Ml(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var nr=o((aT,Po)=>{"use strict";var Vl=V(),Dl=S(),Fl=Ge(),Ul=tr(),Gl=qo(),Ro=Ul("IE_PROTO"),Zr=Object,Ql=Zr.prototype;Po.exports=Gl?Zr.getPrototypeOf:function(e){var r=Fl(e);if(Vl(r,Ro))return r[Ro];var t=r.constructor;return Dl(t)&&r instanceof t?t.prototype:r instanceof Zr?Ql:null}});var _o=o((sT,Ao)=>{"use strict";var Bl=Be(),Kl=Math.max,Wl=Math.min;Ao.exports=function(e,r){var t=Bl(e);return t<0?Kl(t+r,0):Wl(t,r)}});var et=o((uT,jo)=>{"use strict";var $l=Y(),zl=_o(),Yl=Ke(),Lo=function(e){return function(r,t,n){var i=$l(r),a=Yl(i);if(a===0)return!e&&-1;var u=zl(n,a),s;if(e&&t!==t){for(;a>u;)if(s=i[u++],s!==s)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};jo.exports={includes:Lo(!0),indexOf:Lo(!1)}});var ir=o((cT,ko)=>{"use strict";ko.exports={}});var Mo=o((lT,No)=>{"use strict";var Hl=C(),rt=V(),Xl=Y(),Jl=et().indexOf,Zl=ir(),Co=Hl([].push);No.exports=function(e,r){var t=Xl(e),n=0,i=[],a;for(a in t)!rt(Zl,a)&&rt(t,a)&&Co(i,a);for(;r.length>n;)rt(t,a=r[n++])&&(~Jl(i,a)||Co(i,a));return i}});var tt=o((pT,Vo)=>{"use strict";Vo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nt=o((fT,Do)=>{"use strict";var ep=Mo(),rp=tt();Do.exports=Object.keys||function(r){return ep(r,rp)}});var Ko=o((dT,Bo)=>{"use strict";var Uo=_(),tp=R(),Go=C(),np=nr(),ip=nt(),op=Y(),ap=Sr().f,Qo=Go(ap),sp=Go([].push),up=Uo&&tp(function(){var e=Object.create(null);return e[2]=2,!Qo(e,2)}),Fo=function(e){return function(r){for(var t=op(r),n=ip(t),i=up&&np(t)===null,a=n.length,u=0,s=[],c;a>u;)c=n[u++],(!Uo||(i?c in t:Qo(t,c)))&&sp(s,e?[c,t[c]]:t[c]);return s}};Bo.exports={entries:Fo(!0),values:Fo(!1)}});var Wo=o(()=>{"use strict";var cp=se(),lp=Ko().entries;cp({target:"Object",stat:!0},{entries:function(r){return lp(r)}})});var zo=o((mT,$o)=>{"use strict";Wo();var pp=de();$o.exports=pp.Object.entries});var Ho=o((TT,Yo)=>{"use strict";var fp=zo();Yo.exports=fp});var it=o((yT,Xo)=>{"use strict";var dp=Ho();Xo.exports=dp});var na=o(()=>{"use strict";var mp=se(),Tp=et().includes,yp=R(),hp=We(),gp=yp(function(){return!Array(1).includes()});mp({target:"Array",proto:!0,forced:gp},{includes:function(r){return Tp(this,r,arguments.length>1?arguments[1]:void 0)}});hp("includes")});var oa=o(($T,ia)=>{"use strict";na();var Ip=Xr();ia.exports=Ip("Array","includes")});var sa=o((zT,aa)=>{"use strict";var Op=oa();aa.exports=Op});var ca=o((YT,ua)=>{"use strict";var xp=sa();ua.exports=xp});var X=o(($y,ba)=>{"use strict";ba.exports={}});var ya=o((zy,Ta)=>{"use strict";var qp=E(),Rp=S(),ma=qp.WeakMap;Ta.exports=Rp(ma)&&/native code/.test(String(ma))});var Oa=o((Yy,Ia)=>{"use strict";var Pp=ya(),ga=E(),Ap=M(),_p=ie(),qt=V(),Rt=Ue(),Lp=tr(),jp=ir(),ha="Object already initialized",Pt=ga.TypeError,kp=ga.WeakMap,sr,Ee,ur,Cp=function(e){return ur(e)?Ee(e):sr(e,{})},Np=function(e){return function(r){var t;if(!Ap(r)||(t=Ee(r)).type!==e)throw new Pt("Incompatible receiver, "+e+" required");return t}};Pp||Rt.state?(j=Rt.state||(Rt.state=new kp),j.get=j.get,j.has=j.has,j.set=j.set,sr=function(e,r){if(j.has(e))throw new Pt(ha);return r.facade=e,j.set(e,r),r},Ee=function(e){return j.get(e)||{}},ur=function(e){return j.has(e)}):(J=Lp("state"),jp[J]=!0,sr=function(e,r){if(qt(e,J))throw new Pt(ha);return r.facade=e,_p(e,J,r),r},Ee=function(e){return qt(e,J)?e[J]:{}},ur=function(e){return qt(e,J)});var j,J;Ia.exports={set:sr,get:Ee,has:ur,enforce:Cp,getterFor:Np}});var Ea=o((Hy,wa)=>{"use strict";var At=_(),Mp=V(),xa=Function.prototype,Vp=At&&Object.getOwnPropertyDescriptor,_t=Mp(xa,"name"),Dp=_t&&function(){}.name==="something",Fp=_t&&(!At||At&&Vp(xa,"name").configurable);wa.exports={EXISTS:_t,PROPER:Dp,CONFIGURABLE:Fp}});var qa=o(Sa=>{"use strict";var Up=_(),Gp=Wr(),Qp=ne(),Bp=H(),Kp=Y(),Wp=nt();Sa.f=Up&&!Gp?Object.defineProperties:function(r,t){Bp(r);for(var n=Kp(t),i=Wp(t),a=i.length,u=0,s;a>u;)Qp.f(r,s=i[u++],n[s]);return r}});var Pa=o((Jy,Ra)=>{"use strict";var $p=Me();Ra.exports=$p("document","documentElement")});var Ct=o((Zy,Na)=>{"use strict";var zp=H(),Yp=qa(),Aa=tt(),Hp=ir(),Xp=Pa(),Jp=Qr(),Zp=tr(),_a=">",La="<",jt="prototype",kt="script",ka=Zp("IE_PROTO"),Lt=function(){},Ca=function(e){return La+kt+_a+e+La+"/"+kt+_a},ja=function(e){e.write(Ca("")),e.close();var r=e.parentWindow.Object;return e=null,r},ef=function(){var e=Jp("iframe"),r="java"+kt+":",t;return e.style.display="none",Xp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Ca("document.F=Object")),t.close(),t.F},cr,lr=function(){try{cr=new ActiveXObject("htmlfile")}catch(r){}lr=typeof document!="undefined"?document.domain&&cr?ja(cr):ef():ja(cr);for(var e=Aa.length;e--;)delete lr[jt][Aa[e]];return lr()};Hp[ka]=!0;Na.exports=Object.create||function(r,t){var n;return r!==null?(Lt[jt]=zp(r),n=new Lt,Lt[jt]=null,n[ka]=r):n=lr(),t===void 0?n:Yp.f(n,t)}});var Nt=o((eh,Ma)=>{"use strict";var rf=ie();Ma.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:rf(e,r,t),e}});var Ft=o((rh,Fa)=>{"use strict";var tf=R(),nf=S(),of=M(),af=Ct(),Va=nr(),sf=Nt(),uf=D(),cf=be(),Dt=uf("iterator"),Da=!1,F,Mt,Vt;[].keys&&(Vt=[].keys(),"next"in Vt?(Mt=Va(Va(Vt)),Mt!==Object.prototype&&(F=Mt)):Da=!0);var lf=!of(F)||tf(function(){var e={};return F[Dt].call(e)!==e});lf?F={}:cf&&(F=af(F));nf(F[Dt])||sf(F,Dt,function(){return this});Fa.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:Da}});var pr=o((th,Ga)=>{"use strict";var pf=D(),ff=pf("toStringTag"),Ua={};Ua[ff]="z";Ga.exports=String(Ua)==="[object z]"});var Ut=o((nh,Qa)=>{"use strict";var df=pr(),vf=S(),fr=je(),bf=D(),mf=bf("toStringTag"),Tf=Object,yf=fr(function(){return arguments}())==="Arguments",hf=function(e,r){try{return e[r]}catch(t){}};Qa.exports=df?fr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=hf(r=Tf(e),mf))=="string"?t:yf?fr(r):(n=fr(r))==="Object"&&vf(r.callee)?"Arguments":n}});var Ka=o((ih,Ba)=>{"use strict";var gf=pr(),If=Ut();Ba.exports=gf?{}.toString:function(){return"[object "+If(this)+"]"}});var dr=o((oh,$a)=>{"use strict";var Of=pr(),xf=ne().f,wf=ie(),Ef=V(),Sf=Ka(),qf=D(),Wa=qf("toStringTag");$a.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Ef(i,Wa)||xf(i,Wa,{configurable:!0,value:r}),n&&!Of&&wf(i,"toString",Sf))}});var Ya=o((ah,za)=>{"use strict";var Rf=Ft().IteratorPrototype,Pf=Ct(),Af=fe(),_f=dr(),Lf=X(),jf=function(){return this};za.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Pf(Rf,{next:Af(+!n,t)}),_f(e,i,!1,!0),Lf[i]=jf,e}});var Xa=o((sh,Ha)=>{"use strict";var kf=C(),Cf=ve();Ha.exports=function(e,r,t){try{return kf(Cf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Za=o((uh,Ja)=>{"use strict";var Nf=M();Ja.exports=function(e){return Nf(e)||e===null}});var rs=o((ch,es)=>{"use strict";var Mf=Za(),Vf=String,Df=TypeError;es.exports=function(e){if(Mf(e))return e;throw new Df("Can't set "+Vf(e)+" as a prototype")}});var ns=o((lh,ts)=>{"use strict";var Ff=Xa(),Uf=M(),Gf=Ne(),Qf=rs();ts.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Ff(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return Gf(i),Qf(a),Uf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var vs=o((ph,ds)=>{"use strict";var Bf=se(),Kf=B(),vr=be(),ps=Ea(),Wf=S(),$f=Ya(),is=nr(),os=ns(),zf=dr(),Yf=ie(),Gt=Nt(),Hf=D(),as=X(),fs=Ft(),Xf=ps.PROPER,Jf=ps.CONFIGURABLE,ss=fs.IteratorPrototype,br=fs.BUGGY_SAFARI_ITERATORS,Se=Hf("iterator"),us="keys",qe="values",cs="entries",ls=function(){return this};ds.exports=function(e,r,t,n,i,a,u){$f(t,r,n);var s=function(h){if(h===i&&v)return v;if(!br&&h&&h in d)return d[h];switch(h){case us:return function(){return new t(this,h)};case qe:return function(){return new t(this,h)};case cs:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",p=!1,d=e.prototype,l=d[Se]||d["@@iterator"]||i&&d[i],v=!br&&l||s(i),b=r==="Array"&&d.entries||l,T,y,I;if(b&&(T=is(b.call(new e)),T!==Object.prototype&&T.next&&(!vr&&is(T)!==ss&&(os?os(T,ss):Wf(T[Se])||Gt(T,Se,ls)),zf(T,c,!0,!0),vr&&(as[c]=ls))),Xf&&i===qe&&l&&l.name!==qe&&(!vr&&Jf?Yf(d,"name",qe):(p=!0,v=function(){return Kf(l,this)})),i)if(y={values:s(qe),keys:a?v:s(us),entries:s(cs)},u)for(I in y)(br||p||!(I in d))&&Gt(d,I,y[I]);else Bf({target:r,proto:!0,forced:br||p},y);return(!vr||u)&&d[Se]!==v&&Gt(d,Se,v,{name:i}),as[r]=v,y}});var ms=o((fh,bs)=>{"use strict";bs.exports=function(e,r){return{value:e,done:r}}});var Bt=o((dh,Is)=>{"use strict";var Zf=Y(),Qt=We(),Ts=X(),hs=Oa(),ed=ne().f,rd=vs(),mr=ms(),td=be(),nd=_(),gs="Array Iterator",id=hs.set,od=hs.getterFor(gs);Is.exports=rd(Array,"Array",function(e,r){id(this,{type:gs,target:Zf(e),index:0,kind:r})},function(){var e=od(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 ys=Ts.Arguments=Ts.Array;Qt("keys");Qt("values");Qt("entries");if(!td&&nd&&ys.name!=="values")try{ed(ys,"name",{value:"values"})}catch(e){}});var xs=o((vh,Os)=>{"use strict";var ad=D(),sd=X(),ud=ad("iterator"),cd=Array.prototype;Os.exports=function(e){return e!==void 0&&(sd.Array===e||cd[ud]===e)}});var Kt=o((bh,Es)=>{"use strict";var ld=Ut(),ws=Fe(),pd=Ce(),fd=X(),dd=D(),vd=dd("iterator");Es.exports=function(e){if(!pd(e))return ws(e,vd)||ws(e,"@@iterator")||fd[ld(e)]}});var qs=o((mh,Ss)=>{"use strict";var bd=B(),md=ve(),Td=H(),yd=De(),hd=Kt(),gd=TypeError;Ss.exports=function(e,r){var t=arguments.length<2?hd(e):r;if(md(t))return Td(bd(t,e));throw new gd(yd(e)+" is not iterable")}});var As=o((Th,Ps)=>{"use strict";var Id=B(),Rs=H(),Od=Fe();Ps.exports=function(e,r,t){var n,i;Rs(e);try{if(n=Od(e,"return"),!n){if(r==="throw")throw t;return t}n=Id(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return Rs(n),t}});var Cs=o((yh,ks)=>{"use strict";var xd=Kr(),wd=B(),Ed=H(),Sd=De(),qd=xs(),Rd=Ke(),_s=Ar(),Pd=qs(),Ad=Kt(),Ls=As(),_d=TypeError,Tr=function(e,r){this.stopped=e,this.result=r},js=Tr.prototype;ks.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=xd(r,n),p,d,l,v,b,T,y,I=function(g){return p&&Ls(p,"normal",g),new Tr(!0,g)},h=function(g){return i?(Ed(g),s?c(g[0],g[1],I):c(g[0],g[1])):s?c(g,I):c(g)};if(a)p=e.iterator;else if(u)p=e;else{if(d=Ad(e),!d)throw new _d(Sd(e)+" is not iterable");if(qd(d)){for(l=0,v=Rd(e);v>l;l++)if(b=h(e[l]),b&&_s(js,b))return b;return new Tr(!1)}p=Pd(e,d)}for(T=a?e.next:p.next;!(y=wd(T,p)).done;){try{b=h(y.value)}catch(g){Ls(p,"throw",g)}if(typeof b=="object"&&b&&_s(js,b))return b}return new Tr(!1)}});var Ms=o((hh,Ns)=>{"use strict";var Ld=_(),jd=ne(),kd=fe();Ns.exports=function(e,r,t){Ld?jd.f(e,r,kd(0,t)):e[r]=t}});var Vs=o(()=>{"use strict";var Cd=se(),Nd=Cs(),Md=Ms();Cd({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Nd(r,function(n,i){Md(t,n,i)},{AS_ENTRIES:!0}),t}})});var Fs=o((Oh,Ds)=>{"use strict";Bt();Vs();var Vd=de();Ds.exports=Vd.Object.fromEntries});var Gs=o((xh,Us)=>{"use strict";Us.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 Bs=o(()=>{"use strict";Bt();var Dd=Gs(),Fd=E(),Ud=dr(),Qs=X();for(yr in Dd)Ud(Fd[yr],yr),Qs[yr]=Qs.Array;var yr});var Ws=o((Sh,Ks)=>{"use strict";var Gd=Fs();Bs();Ks.exports=Gd});var zs=o((qh,$s)=>{"use strict";var Qd=Ws();$s.exports=Qd});var ev={};gr(ev,{ErrorCategory:()=>fa,InterfaceLanguage:()=>Js,InternalsExposure:()=>Wt,Logger:()=>_e,Observable:()=>f,Subject:()=>N,Subscription:()=>w,SubscriptionRemovable:()=>Ie,TracerFactory:()=>rr,VERSION:()=>rn,VKNumericLanguage:()=>Xs,ValueSubject:()=>ge,VideoQuality:()=>$e,abortable:()=>pn,addScript:()=>un,areQualitiesExact:()=>To,assertEmptyArray:()=>sn,assertNever:()=>k,assertNonNullable:()=>nn,assertNotEmptyArray:()=>an,assertNullable:()=>on,assertQualityIsExact:()=>yo,buffer:()=>ut,checkNever:()=>tn,clearVideoElement:()=>Oo,cloneDeep:()=>go,cloneDeepWith:()=>ye,combine:()=>ot,createURL:()=>kl,debounce:()=>lt,debounceFn:()=>He,detectEmbed:()=>so,devNull:()=>hr,fillWithDefault:()=>ho,filter:()=>vt,filterChanged:()=>mt,flattenObject:()=>he,fromEvent:()=>ta,getExponentialDelay:()=>fn,getHighestQuality:()=>po,getTraceSubscriptionMethod:()=>xo,interval:()=>ea,isHigher:()=>uo,isHigherOrEqual:()=>co,isInvariantQuality:()=>Ye,isLower:()=>ze,isLowerOrEqual:()=>lo,isNonNullable:()=>$,isNullable:()=>ee,isValidURL:()=>jl,loadVKLangPack:()=>Kd,map:()=>Oe,mapTo:()=>yt,merge:()=>at,noop:()=>Q,now:()=>ln,observableFrom:()=>ra,observeElementSize:()=>Io,once:()=>ht,pairwise:()=>It,safeStorage:()=>Le,skip:()=>Et,tap:()=>xt,throttle:()=>ft,throttleFn:()=>Xe,timeCodeToString:()=>_l,timeout:()=>Zo,videoHeightToQuality:()=>vo,videoQualityToHeight:()=>mo,videoSizeToQuality:()=>bo});module.exports=cu(ev);var rn="1.0.62-dev.2bd92e6d.0";var w=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>{typeof t=="function"?t():t.unsubscribe()})}add(r){return this.subscriptions.push(r),this}};var k=e=>{throw new Error(`${e} is value of unexpected type`)},tn=e=>{};var Q=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:Q}:n={next:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:Q,error:Q};let i=typeof r=="function"?{next:s=>{try{let c=r(s);c instanceof Promise&&c.catch(p=>n.next(p))}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)},a;try{a=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new w().add(()=>{switch(i.next=Q,i.error=Q,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return k(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var N=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{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 w().add(()=>this.subscribers.delete(n))}};var _e=class{constructor(){this.log$=new N;this.logs=[];this.log=r=>{let t=U(q({},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=>q({component:r},t))}};function nn(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function on(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function $(e){return typeof e!="undefined"&&e!==null}function ee(e){return e==null}function an(e,r){if(!(e!=null&&e.length))throw new Error(r)}function sn(e,r){if(e!=null&&e.length)throw new Error(r)}var un=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),p.remove()});let a=()=>{s(),i("error")},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),p.removeEventListener("load",u),p.removeEventListener("error",a)},c;t&&(c=window.setTimeout(()=>{s(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",a),p.src=e,document.head.appendChild(p)});var cn,ln=typeof((cn=window.performance)==null?void 0:cn.now)=="function"?()=>window.performance.now():()=>Date.now();var pn=(e,r)=>(...t)=>Z(void 0,null,function*(){var u;let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=yield n.next(a);i=(u=s.done)!=null?u:!1,a=s.value}catch(s){yield n.throw(s)}return a});var fn=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let u=r;return u*=Zt(t,e),u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Le={};gr(Le,{clear:()=>bu,get:()=>pu,has:()=>du,isPersistent:()=>lu,remove:()=>vu,set:()=>fu});var O,z,Ir=`vk-videoplayer-dummy-key-${Math.random()}`,re=()=>{if(z!==void 0)return z;try{localStorage.setItem(Ir,"test"),localStorage.removeItem(Ir),z=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Ir),z=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)z=2;else throw r}else throw e}return z===2&&(O=new Map),z},lu=()=>re()===0,pu=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 O==null?void 0:O.get(e);default:k(r)}},fu=(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:O==null||O.set(e,r);return;default:k(t)}},du=e=>{var t;let r=re();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 k(r),!1}},vu=e=>{let r=re();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:O==null||O.delete(e);return;default:k(r)}},bu=()=>{let e=re();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:k(e)}};var Jr=G(ao(),1),so=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Jr.default)(r,-1),immediateOrigin:(0,Jr.default)(r,0)}};var $e=(l=>(l.INVARIANT="Invariant quality",l.Q_144P="144p",l.Q_240P="240p",l.Q_360P="360p",l.Q_480P="480p",l.Q_576P="576p",l.Q_720P="720p",l.Q_1080P="1080p",l.Q_1440P="1440p",l.Q_2160P="2160p",l.Q_4320P="4320p",l))($e||{});var P={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},uo=(e,r)=>P[e].height>P[r].height,co=(e,r)=>P[e].height>=P[r].height,ze=(e,r)=>P[e].height<P[r].height,lo=(e,r)=>P[e].height<=P[r].height,po=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:ze(r,t)?1:-1)[0],fo=Object.keys(P).sort((e,r)=>ze(e,r)?-1:1),vo=(e,r=.02)=>[...fo].find(n=>P[n].height*(1+r)>=e),bo=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return fo.find(i=>{let a=P[i];return a.width>=n&&a.height>=t})},mo=e=>P[e].height,Ye=e=>e==="Invariant quality",To=e=>e.every(r=>!Ye(r));function yo(e){if(Ye(e))throw new Error("Expected exact quality")}var ho=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=ho(a,i):t[n]=n in e?a:i}return t};var _l=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 He(e,r=0,t){let n,i,a,u,s,c,p=0,d=!1,l=!1,v=!0,b=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(d=!!t.leading,l="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,v="trailing"in t?!!t.trailing:v);function T(m){let A=n,W=i;return n=i=void 0,p=m,u=e.apply(W,A),u}function y(m,A){return b?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,A)}function I(m){if(b){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,s=y(Pe,r),d?T(m):u}function g(m){let A=m-c,W=m-p,Yt=r-A;return l?Math.min(Yt,a-W):Yt}function $t(m){let A=m-c,W=m-p;return c===void 0||A>=r||A<0||l&&W>=a}function Pe(){let m=Date.now();if($t(m))return zt(m);s=y(Pe,g(m))}function zt(m){return s=void 0,v&&n?T(m):(n=i=void 0,u)}function Zs(){s!==void 0&&I(s),p=0,n=c=i=s=void 0}function eu(){return s===void 0?u:zt(Date.now())}function ru(){return s!==void 0}function Ae(...m){let A=Date.now(),W=$t(A);if(n=m,i=this,c=A,W){if(s===void 0)return h(c);if(l)return s=y(Pe,r),T(c)}return s===void 0&&(s=y(Pe,r)),u}return Ae.cancel=Zs,Ae.flush=eu,Ae.pending=ru,Ae}var Xe=(e,r=0,t)=>He(e,r,U(q(q({},{leading:!0,trailing:!0}),t),{maxWait:r}));var ye=(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]=ye(e[n],r):t[n]=e[n]}return t};var go=e=>ye(e);var Ll=300,Io=(e,r=Ll)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Xe(u=>{let s=u[0];if(!s)return;let c,p;s.contentBoxSize&&s.contentBoxSize[0]?(p=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,p=s.contentRect.height),$(c)&&$(p)&&t.next({width:c,height:p})},r));return a.observe(e),()=>a.disconnect()});var he=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let a=he(e[i],r-1);for(let u in a)a.hasOwnProperty(u)&&(n[i+t+u]=a[u])}else n[i]=e[i];return n};var Oo=e=>{e.removeAttribute("src"),e.load()};var jl=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var kl=e=>{try{return new URL(e)}catch(r){return null}};var xo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?he(t):{value:t})},Je=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var x=class x{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];if(x.dynamicImportStatus==="failed")return this;x.dynamicImportStatus==="not_started"&&(x.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=x.dynamicImportPromise.then(()=>this.init({name:r,getParentContext:t},n))}init({name:r,getParentContext:t},n){this.span=x.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=x.dynamicImports.opentelemetryApi.trace.setSpan(x.dynamicImports.opentelemetryApi.context.active(),this.span)}loadOpentelemetry(){return Z(this,null,function*(){if(x.dynamicImportStatus==="not_started"){x.dynamicImportStatus="in_progress";try{let r=new Promise((u,s)=>setTimeout(s,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,a]=yield Promise.race([t,r]);x.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:a},x.dynamicImportStatus="completed"}catch(r){x.dynamicImportStatus="failed"}}})}isComponentTracerNotInitialized(){return ee(this.span)}log(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,U(q({},Je(t)),{type:"log"}),n))}error(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,U(q({},Je(t)),{type:"error"}),n))}critical(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,U(q({},Je(t)),{type:"critical"}),n))}createComponentTracer(r){let t=new x({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.childTracers.forEach(t=>t.end()),this.span.end()})}};x.dynamicImportStatus="not_started";var K=x;var Ze=class extends K{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let a=K.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new K.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,a.addSpanProcessor(new K.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),K.rootTracer=a.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var er=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var rr=class{static createRootTracer(r=!1){return r?new Ze:new er}};var ge=class extends N{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var Jo=G(it(),1);function ot(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return(0,Jo.default)(e).reduce((a,[u,s])=>a.add(s.subscribe(i(u))),new w)})}function at(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new w))}var Zo=e=>new f(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var ea=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var ra=e=>new f(r=>{e.forEach(t=>r.next(t))});var ta=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Ie=class extends w{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function ut(e){return r=>new f(t=>r.subscribe(new st(t,e)))}var st=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 vp={leading:!1,trailing:!0};function lt(e,r=vp){return t=>new f(n=>t.subscribe(new ct(n,e,r)))}var ct=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 bp={leading:!0,trailing:!1};function ft(e,r=bp){return t=>new f(n=>t.subscribe(new pt(n,e,r)))}var pt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,ee(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 vt(e){return r=>new f(t=>r.subscribe(new dt(t,e)))}var dt=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)}};var pa=G(ca(),1);var wp=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let u in i)if(!(0,pa.default)(a,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},Ep=(e,r)=>e instanceof Object&&r instanceof Object?wp(e,r):e===r;function mt(e=Ep){return r=>new f(t=>r.subscribe(new bt(t,e)))}var la={},bt=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=la}next(r){let t;try{t=this.lastValue===la||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?q({},r):r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Oe(e){return r=>new f(t=>r.subscribe(new Tt(t,e)))}var Tt=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 yt(e){return Oe(()=>e)}function ht(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function It(){return e=>new f(r=>e.subscribe(new gt(r)))}var gt=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 xt(e){return r=>new f(t=>r.subscribe(new Ot(t,e)))}var Ot=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)}};function Et(e){return r=>new f(t=>r.subscribe(new wt(t,e)))}var wt=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var fa=(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))(fa||{});var or=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,a=n.length;i<a;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,a=n.length;i<a;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},ue=class extends or{constructor(){super(),this.listeners||or.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)}},xe=class{constructor(){Object.defineProperty(this,"signal",{value:new ue,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&&(xe.prototype[Symbol.toStringTag]="AbortController",ue.prototype[Symbol.toStringTag]="AbortSignal");function ar(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 St(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!ar({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(p,d){let l;d&&d.signal&&(l=d.signal,delete d.signal);let v=new t(p,d);return l&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:l}),v},a.prototype=t.prototype);let u=r;return{fetch:(c,p)=>{let d=a&&a.prototype.isPrototypeOf(c)?c.signal:p?p.signal:void 0;if(d){let l;try{l=new DOMException("Aborted","AbortError")}catch(b){l=new Error("Aborted"),l.name="AbortError"}if(d.aborted)return Promise.reject(l);let v=new Promise((b,T)=>{d.addEventListener("abort",()=>T(l),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([v,u(c,p)])}return u(c,p)},Request:a}}var Sp=()=>"fetch"in window,we=Sp()&&ar({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),da=we?St({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,va=we?da.fetch:window.fetch,Qy=we?da.Request:window.Request,By=we?xe:window.AbortController,Ky=we?ue:window.AbortSignal;var Ys=G(it(),1),Hs=G(zs(),1);var Xs=(l=>(l.Armenian="58",l.Azerbaijani="57",l.Belarusian="114",l.English="3",l.Kazakh="97",l.Portuguese="73",l.Russian="0",l.Spanish="4",l.Ukrainian="1",l.Uzbek="65",l.Vietnamese="75",l))(Xs||{}),Bd="vk.com",Kd=(e,r,t)=>Z(void 0,null,function*(){let n=new URL(`https://${Bd}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=yield(yield va(n.toString())).json();return Wd(a,t)}),Wd=(e,r)=>(0,Hs.default)((0,Ys.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),$d(n)])),$d=e=>Array.isArray(e)?e[0]:e;var Js=(t=>(t.RU="ru",t.EN="en",t))(Js||{});var zd={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Yd=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Wt=class{constructor(r){this.id=Yd();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return zd[r]}};var hr={};gr(hr,{create:()=>Hd,destroy:()=>Xd,push:()=>Jd,subscribe:()=>Zd});var Re=new Map,Hd=(e,r)=>Re.set(e,r!=null?r:[]),Xd=e=>Re.delete(e),Jd=(e,r)=>{let t=Re.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Zd=(e,r)=>{let t=Re.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Re.set(e,r)}};
6
+ "use strict";var iu=Object.create;var ce=Object.defineProperty,ou=Object.defineProperties,su=Object.getOwnPropertyDescriptor,au=Object.getOwnPropertyDescriptors,uu=Object.getOwnPropertyNames,Ht=Object.getOwnPropertySymbols,lu=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty,cu=Object.prototype.propertyIsEnumerable;var Zt=Math.pow,Xt=(e,r,t)=>r in e?ce(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,q=(e,r)=>{for(var t in r||(r={}))Jt.call(r,t)&&Xt(e,t,r[t]);if(Ht)for(var t of Ht(r))cu.call(r,t)&&Xt(e,t,r[t]);return e},U=(e,r)=>ou(e,au(r));var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),gr=(e,r)=>{for(var t in r)ce(e,t,{get:r[t],enumerable:!0})},en=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of uu(r))!Jt.call(e,i)&&i!==t&&ce(e,i,{get:()=>r[i],enumerable:!(n=su(r,i))||n.enumerable});return e};var G=(e,r,t)=>(t=e!=null?iu(lu(e)):{},en(r||!e||!e.__esModule?ce(t,"default",{value:e,enumerable:!0}):t,e)),pu=e=>en(ce({},"__esModule",{value:!0}),e);var ee=(e,r,t)=>new Promise((n,i)=>{var o=l=>{try{a(t.next(l))}catch(p){i(p)}},u=l=>{try{a(t.throw(l))}catch(p){i(p)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,u);a((t=t.apply(e,r)).next())});var w=s((Or,bn)=>{"use strict";var pe=function(e){return e&&e.Math===Math&&e};bn.exports=pe(typeof globalThis=="object"&&globalThis)||pe(typeof window=="object"&&window)||pe(typeof self=="object"&&self)||pe(typeof global=="object"&&global)||pe(typeof Or=="object"&&Or)||function(){return this}()||Function("return this")()});var R=s((_d,dn)=>{"use strict";dn.exports=function(e){try{return!!e()}catch(r){return!0}}});var fe=s((Ad,vn)=>{"use strict";var yu=R();vn.exports=!yu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var gn=s((Ld,hn)=>{"use strict";var hu=fe(),yn=Function.prototype,mn=yn.apply,Tn=yn.call;hn.exports=typeof Reflect=="object"&&Reflect.apply||(hu?Tn.bind(mn):function(){return Tn.apply(mn,arguments)})});var j=s((Nd,xn)=>{"use strict";var In=fe(),On=Function.prototype,xr=On.call,gu=In&&On.bind.bind(xr,xr);xn.exports=In?gu:function(e){return function(){return xr.apply(e,arguments)}}});var Ne=s((Cd,wn)=>{"use strict";var En=j(),Iu=En({}.toString),Ou=En("".slice);wn.exports=function(e){return Ou(Iu(e),8,-1)}});var Er=s((jd,Sn)=>{"use strict";var xu=Ne(),Eu=j();Sn.exports=function(e){if(xu(e)==="Function")return Eu(e)}});var S=s((kd,qn)=>{"use strict";var wr=typeof document=="object"&&document.all;qn.exports=typeof wr=="undefined"&&wr!==void 0?function(e){return typeof e=="function"||e===wr}:function(e){return typeof e=="function"}});var A=s((Md,Rn)=>{"use strict";var wu=R();Rn.exports=!wu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Q=s((Vd,Pn)=>{"use strict";var Su=fe(),Ce=Function.prototype.call;Pn.exports=Su?Ce.bind(Ce):function(){return Ce.apply(Ce,arguments)}});var Sr=s(Ln=>{"use strict";var _n={}.propertyIsEnumerable,An=Object.getOwnPropertyDescriptor,qu=An&&!_n.call({1:2},1);Ln.f=qu?function(r){var t=An(this,r);return!!t&&t.enumerable}:_n});var be=s((Dd,Nn)=>{"use strict";Nn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var jn=s((Ud,Cn)=>{"use strict";var Ru=j(),Pu=R(),_u=Ne(),qr=Object,Au=Ru("".split);Cn.exports=Pu(function(){return!qr("z").propertyIsEnumerable(0)})?function(e){return _u(e)==="String"?Au(e,""):qr(e)}:qr});var je=s((Gd,kn)=>{"use strict";kn.exports=function(e){return e==null}});var ke=s((Bd,Mn)=>{"use strict";var Lu=je(),Nu=TypeError;Mn.exports=function(e){if(Lu(e))throw new Nu("Can't call method on "+e);return e}});var Y=s((Qd,Vn)=>{"use strict";var Cu=jn(),ju=ke();Vn.exports=function(e){return Cu(ju(e))}});var M=s((Kd,Fn)=>{"use strict";var ku=S();Fn.exports=function(e){return typeof e=="object"?e!==null:ku(e)}});var de=s((Wd,Dn)=>{"use strict";Dn.exports={}});var Me=s(($d,Gn)=>{"use strict";var Rr=de(),Pr=w(),Mu=S(),Un=function(e){return Mu(e)?e:void 0};Gn.exports=function(e,r){return arguments.length<2?Un(Rr[e])||Un(Pr[e]):Rr[e]&&Rr[e][r]||Pr[e]&&Pr[e][r]}});var _r=s((zd,Bn)=>{"use strict";var Vu=j();Bn.exports=Vu({}.isPrototypeOf)});var $n=s((Yd,Wn)=>{"use strict";var Fu=w(),Qn=Fu.navigator,Kn=Qn&&Qn.userAgent;Wn.exports=Kn?String(Kn):""});var ei=s((Hd,Zn)=>{"use strict";var Jn=w(),Ar=$n(),zn=Jn.process,Yn=Jn.Deno,Hn=zn&&zn.versions||Yn&&Yn.version,Xn=Hn&&Hn.v8,L,Ve;Xn&&(L=Xn.split("."),Ve=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!Ve&&Ar&&(L=Ar.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=Ar.match(/Chrome\/(\d+)/),L&&(Ve=+L[1])));Zn.exports=Ve});var Lr=s((Xd,ti)=>{"use strict";var ri=ei(),Du=R(),Uu=w(),Gu=Uu.String;ti.exports=!!Object.getOwnPropertySymbols&&!Du(function(){var e=Symbol("symbol detection");return!Gu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ri&&ri<41})});var Nr=s((Jd,ni)=>{"use strict";var Bu=Lr();ni.exports=Bu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Cr=s((Zd,ii)=>{"use strict";var Qu=Me(),Ku=S(),Wu=_r(),$u=Nr(),zu=Object;ii.exports=$u?function(e){return typeof e=="symbol"}:function(e){var r=Qu("Symbol");return Ku(r)&&Wu(r.prototype,zu(e))}});var Fe=s((ev,oi)=>{"use strict";var Yu=String;oi.exports=function(e){try{return Yu(e)}catch(r){return"Object"}}});var ve=s((rv,si)=>{"use strict";var Hu=S(),Xu=Fe(),Ju=TypeError;si.exports=function(e){if(Hu(e))return e;throw new Ju(Xu(e)+" is not a function")}});var De=s((tv,ai)=>{"use strict";var Zu=ve(),el=je();ai.exports=function(e,r){var t=e[r];return el(t)?void 0:Zu(t)}});var li=s((nv,ui)=>{"use strict";var jr=Q(),kr=S(),Mr=M(),rl=TypeError;ui.exports=function(e,r){var t,n;if(r==="string"&&kr(t=e.toString)&&!Mr(n=jr(t,e))||kr(t=e.valueOf)&&!Mr(n=jr(t,e))||r!=="string"&&kr(t=e.toString)&&!Mr(n=jr(t,e)))return n;throw new rl("Can't convert object to primitive value")}});var me=s((iv,ci)=>{"use strict";ci.exports=!0});var bi=s((ov,fi)=>{"use strict";var pi=w(),tl=Object.defineProperty;fi.exports=function(e,r){try{tl(pi,e,{value:r,configurable:!0,writable:!0})}catch(t){pi[e]=r}return r}});var Ue=s((sv,mi)=>{"use strict";var nl=me(),il=w(),ol=bi(),di="__core-js_shared__",vi=mi.exports=il[di]||ol(di,{});(vi.versions||(vi.versions=[])).push({version:"3.43.0",mode:nl?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Vr=s((av,yi)=>{"use strict";var Ti=Ue();yi.exports=function(e,r){return Ti[e]||(Ti[e]=r||{})}});var Ge=s((uv,hi)=>{"use strict";var sl=ke(),al=Object;hi.exports=function(e){return al(sl(e))}});var V=s((lv,gi)=>{"use strict";var ul=j(),ll=Ge(),cl=ul({}.hasOwnProperty);gi.exports=Object.hasOwn||function(r,t){return cl(ll(r),t)}});var Fr=s((cv,Ii)=>{"use strict";var pl=j(),fl=0,bl=Math.random(),dl=pl(1.1.toString);Ii.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+dl(++fl+bl,36)}});var F=s((pv,xi)=>{"use strict";var vl=w(),ml=Vr(),Oi=V(),Tl=Fr(),yl=Lr(),hl=Nr(),ne=vl.Symbol,Dr=ml("wks"),gl=hl?ne.for||ne:ne&&ne.withoutSetter||Tl;xi.exports=function(e){return Oi(Dr,e)||(Dr[e]=yl&&Oi(ne,e)?ne[e]:gl("Symbol."+e)),Dr[e]}});var qi=s((fv,Si)=>{"use strict";var Il=Q(),Ei=M(),wi=Cr(),Ol=De(),xl=li(),El=F(),wl=TypeError,Sl=El("toPrimitive");Si.exports=function(e,r){if(!Ei(e)||wi(e))return e;var t=Ol(e,Sl),n;if(t){if(r===void 0&&(r="default"),n=Il(t,e,r),!Ei(n)||wi(n))return n;throw new wl("Can't convert object to primitive value")}return r===void 0&&(r="number"),xl(e,r)}});var Ur=s((bv,Ri)=>{"use strict";var ql=qi(),Rl=Cr();Ri.exports=function(e){var r=ql(e,"string");return Rl(r)?r:r+""}});var Br=s((dv,_i)=>{"use strict";var Pl=w(),Pi=M(),Gr=Pl.document,_l=Pi(Gr)&&Pi(Gr.createElement);_i.exports=function(e){return _l?Gr.createElement(e):{}}});var Qr=s((vv,Ai)=>{"use strict";var Al=A(),Ll=R(),Nl=Br();Ai.exports=!Al&&!Ll(function(){return Object.defineProperty(Nl("div"),"a",{get:function(){return 7}}).a!==7})});var Ci=s(Ni=>{"use strict";var Cl=A(),jl=Q(),kl=Sr(),Ml=be(),Vl=Y(),Fl=Ur(),Dl=V(),Ul=Qr(),Li=Object.getOwnPropertyDescriptor;Ni.f=Cl?Li:function(r,t){if(r=Vl(r),t=Fl(t),Ul)try{return Li(r,t)}catch(n){}if(Dl(r,t))return Ml(!jl(kl.f,r,t),r[t])}});var ki=s((Tv,ji)=>{"use strict";var Gl=R(),Bl=S(),Ql=/#|\.prototype\./,Te=function(e,r){var t=Wl[Kl(e)];return t===zl?!0:t===$l?!1:Bl(r)?Gl(r):!!r},Kl=Te.normalize=function(e){return String(e).replace(Ql,".").toLowerCase()},Wl=Te.data={},$l=Te.NATIVE="N",zl=Te.POLYFILL="P";ji.exports=Te});var Kr=s((yv,Vi)=>{"use strict";var Mi=Er(),Yl=ve(),Hl=fe(),Xl=Mi(Mi.bind);Vi.exports=function(e,r){return Yl(e),r===void 0?e:Hl?Xl(e,r):function(){return e.apply(r,arguments)}}});var Wr=s((hv,Fi)=>{"use strict";var Jl=A(),Zl=R();Fi.exports=Jl&&Zl(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var H=s((gv,Di)=>{"use strict";var ec=M(),rc=String,tc=TypeError;Di.exports=function(e){if(ec(e))return e;throw new tc(rc(e)+" is not an object")}});var ie=s(Gi=>{"use strict";var nc=A(),ic=Qr(),oc=Wr(),Be=H(),Ui=Ur(),sc=TypeError,$r=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,zr="enumerable",Yr="configurable",Hr="writable";Gi.f=nc?oc?function(r,t,n){if(Be(r),t=Ui(t),Be(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Hr in n&&!n[Hr]){var i=ac(r,t);i&&i[Hr]&&(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(Be(r),t=Ui(t),Be(n),ic)try{return $r(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new sc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var oe=s((Ov,Bi)=>{"use strict";var uc=A(),lc=ie(),cc=be();Bi.exports=uc?function(e,r,t){return lc.f(e,r,cc(1,t))}:function(e,r,t){return e[r]=t,e}});var ue=s((xv,Ki)=>{"use strict";var ye=w(),pc=gn(),fc=Er(),bc=S(),dc=Ci().f,vc=ki(),se=de(),mc=Kr(),ae=oe(),Qi=V();Ue();var Tc=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 pc(e,this,arguments)};return r.prototype=e.prototype,r};Ki.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?ye:i?ye[t]:ye[t]&&ye[t].prototype,a=n?se:se[t]||ae(se,t,{})[t],l=a.prototype,p,b,c,d,v,T,y,g,h;for(d in r)p=vc(n?d:t+(i?".":"#")+d,e.forced),b=!p&&u&&Qi(u,d),T=a[d],b&&(e.dontCallGetSet?(h=dc(u,d),y=h&&h.value):y=u[d]),v=b&&y?y:r[d],!(!p&&!o&&typeof T==typeof v)&&(e.bind&&b?g=mc(v,ye):e.wrap&&b?g=Tc(v):o&&bc(v)?g=fc(v):g=v,(e.sham||v&&v.sham||T&&T.sham)&&ae(g,"sham",!0),ae(a,d,g),o&&(c=t+"Prototype",Qi(se,c)||ae(se,c,{}),ae(se[c],d,v),e.real&&l&&(p||!l[d])&&ae(l,d,v)))}});var $i=s((Ev,Wi)=>{"use strict";var yc=Math.ceil,hc=Math.floor;Wi.exports=Math.trunc||function(r){var t=+r;return(t>0?hc:yc)(t)}});var Qe=s((wv,zi)=>{"use strict";var gc=$i();zi.exports=function(e){var r=+e;return r!==r||r===0?0:gc(r)}});var Hi=s((Sv,Yi)=>{"use strict";var Ic=Qe(),Oc=Math.min;Yi.exports=function(e){var r=Ic(e);return r>0?Oc(r,9007199254740991):0}});var Ke=s((qv,Xi)=>{"use strict";var xc=Hi();Xi.exports=function(e){return xc(e.length)}});var We=s((Rv,Ji)=>{"use strict";Ji.exports=function(){}});var Zi=s(()=>{"use strict";var Ec=ue(),wc=Ge(),Sc=Ke(),qc=Qe(),Rc=We();Ec({target:"Array",proto:!0},{at:function(r){var t=wc(this),n=Sc(t),i=qc(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});Rc("at")});var Xr=s((Av,eo)=>{"use strict";var Pc=Me();eo.exports=Pc});var to=s((Lv,ro)=>{"use strict";Zi();var _c=Xr();ro.exports=_c("Array","at")});var io=s((Nv,no)=>{"use strict";var Ac=to();no.exports=Ac});var so=s((Cv,oo)=>{"use strict";var Lc=io();oo.exports=Lc});var tr=s((sT,wo)=>{"use strict";var Mc=Vr(),Vc=Fr(),Eo=Mc("keys");wo.exports=function(e){return Eo[e]||(Eo[e]=Vc(e))}});var qo=s((aT,So)=>{"use strict";var Fc=R();So.exports=!Fc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var nr=s((uT,Po)=>{"use strict";var Dc=V(),Uc=S(),Gc=Ge(),Bc=tr(),Qc=qo(),Ro=Bc("IE_PROTO"),Zr=Object,Kc=Zr.prototype;Po.exports=Qc?Zr.getPrototypeOf:function(e){var r=Gc(e);if(Dc(r,Ro))return r[Ro];var t=r.constructor;return Uc(t)&&r instanceof t?t.prototype:r instanceof Zr?Kc:null}});var Ao=s((lT,_o)=>{"use strict";var Wc=Qe(),$c=Math.max,zc=Math.min;_o.exports=function(e,r){var t=Wc(e);return t<0?$c(t+r,0):zc(t,r)}});var et=s((cT,No)=>{"use strict";var Yc=Y(),Hc=Ao(),Xc=Ke(),Lo=function(e){return function(r,t,n){var i=Yc(r),o=Xc(i);if(o===0)return!e&&-1;var u=Hc(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};No.exports={includes:Lo(!0),indexOf:Lo(!1)}});var ir=s((pT,Co)=>{"use strict";Co.exports={}});var Mo=s((fT,ko)=>{"use strict";var Jc=j(),rt=V(),Zc=Y(),ep=et().indexOf,rp=ir(),jo=Jc([].push);ko.exports=function(e,r){var t=Zc(e),n=0,i=[],o;for(o in t)!rt(rp,o)&&rt(t,o)&&jo(i,o);for(;r.length>n;)rt(t,o=r[n++])&&(~ep(i,o)||jo(i,o));return i}});var tt=s((bT,Vo)=>{"use strict";Vo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nt=s((dT,Fo)=>{"use strict";var tp=Mo(),np=tt();Fo.exports=Object.keys||function(r){return tp(r,np)}});var Ko=s((vT,Qo)=>{"use strict";var Uo=A(),ip=R(),Go=j(),op=nr(),sp=nt(),ap=Y(),up=Sr().f,Bo=Go(up),lp=Go([].push),cp=Uo&&ip(function(){var e=Object.create(null);return e[2]=2,!Bo(e,2)}),Do=function(e){return function(r){for(var t=ap(r),n=sp(t),i=cp&&op(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!Uo||(i?l in t:Bo(t,l)))&&lp(a,e?[l,t[l]]:t[l]);return a}};Qo.exports={entries:Do(!0),values:Do(!1)}});var Wo=s(()=>{"use strict";var pp=ue(),fp=Ko().entries;pp({target:"Object",stat:!0},{entries:function(r){return fp(r)}})});var zo=s((yT,$o)=>{"use strict";Wo();var bp=de();$o.exports=bp.Object.entries});var Ho=s((hT,Yo)=>{"use strict";var dp=zo();Yo.exports=dp});var it=s((gT,Xo)=>{"use strict";var vp=Ho();Xo.exports=vp});var ns=s(()=>{"use strict";var yp=ue(),hp=et().includes,gp=R(),Ip=We(),Op=gp(function(){return!Array(1).includes()});yp({target:"Array",proto:!0,forced:Op},{includes:function(r){return hp(this,r,arguments.length>1?arguments[1]:void 0)}});Ip("includes")});var os=s((YT,is)=>{"use strict";ns();var xp=Xr();is.exports=xp("Array","includes")});var as=s((HT,ss)=>{"use strict";var Ep=os();ss.exports=Ep});var ls=s((XT,us)=>{"use strict";var wp=as();us.exports=wp});var J=s((Zy,Ts)=>{"use strict";Ts.exports={}});var gs=s((eh,hs)=>{"use strict";var Pp=w(),_p=S(),ys=Pp.WeakMap;hs.exports=_p(ys)&&/native code/.test(String(ys))});var Es=s((rh,xs)=>{"use strict";var Ap=gs(),Os=w(),Lp=M(),Np=oe(),qt=V(),Rt=Ue(),Cp=tr(),jp=ir(),Is="Object already initialized",Pt=Os.TypeError,kp=Os.WeakMap,ar,we,ur,Mp=function(e){return ur(e)?we(e):ar(e,{})},Vp=function(e){return function(r){var t;if(!Lp(r)||(t=we(r)).type!==e)throw new Pt("Incompatible receiver, "+e+" required");return t}};Ap||Rt.state?(N=Rt.state||(Rt.state=new kp),N.get=N.get,N.has=N.has,N.set=N.set,ar=function(e,r){if(N.has(e))throw new Pt(Is);return r.facade=e,N.set(e,r),r},we=function(e){return N.get(e)||{}},ur=function(e){return N.has(e)}):(Z=Cp("state"),jp[Z]=!0,ar=function(e,r){if(qt(e,Z))throw new Pt(Is);return r.facade=e,Np(e,Z,r),r},we=function(e){return qt(e,Z)?e[Z]:{}},ur=function(e){return qt(e,Z)});var N,Z;xs.exports={set:ar,get:we,has:ur,enforce:Mp,getterFor:Vp}});var qs=s((th,Ss)=>{"use strict";var _t=A(),Fp=V(),ws=Function.prototype,Dp=_t&&Object.getOwnPropertyDescriptor,At=Fp(ws,"name"),Up=At&&function(){}.name==="something",Gp=At&&(!_t||_t&&Dp(ws,"name").configurable);Ss.exports={EXISTS:At,PROPER:Up,CONFIGURABLE:Gp}});var Ps=s(Rs=>{"use strict";var Bp=A(),Qp=Wr(),Kp=ie(),Wp=H(),$p=Y(),zp=nt();Rs.f=Bp&&!Qp?Object.defineProperties:function(r,t){Wp(r);for(var n=$p(t),i=zp(t),o=i.length,u=0,a;o>u;)Kp.f(r,a=i[u++],n[a]);return r}});var As=s((ih,_s)=>{"use strict";var Yp=Me();_s.exports=Yp("document","documentElement")});var jt=s((oh,Vs)=>{"use strict";var Hp=H(),Xp=Ps(),Ls=tt(),Jp=ir(),Zp=As(),ef=Br(),rf=tr(),Ns=">",Cs="<",Nt="prototype",Ct="script",ks=rf("IE_PROTO"),Lt=function(){},Ms=function(e){return Cs+Ct+Ns+e+Cs+"/"+Ct+Ns},js=function(e){e.write(Ms("")),e.close();var r=e.parentWindow.Object;return e=null,r},tf=function(){var e=ef("iframe"),r="java"+Ct+":",t;return e.style.display="none",Zp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Ms("document.F=Object")),t.close(),t.F},lr,cr=function(){try{lr=new ActiveXObject("htmlfile")}catch(r){}cr=typeof document!="undefined"?document.domain&&lr?js(lr):tf():js(lr);for(var e=Ls.length;e--;)delete cr[Nt][Ls[e]];return cr()};Jp[ks]=!0;Vs.exports=Object.create||function(r,t){var n;return r!==null?(Lt[Nt]=Hp(r),n=new Lt,Lt[Nt]=null,n[ks]=r):n=cr(),t===void 0?n:Xp.f(n,t)}});var kt=s((sh,Fs)=>{"use strict";var nf=oe();Fs.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:nf(e,r,t),e}});var Dt=s((ah,Gs)=>{"use strict";var of=R(),sf=S(),af=M(),uf=jt(),Ds=nr(),lf=kt(),cf=F(),pf=me(),Ft=cf("iterator"),Us=!1,D,Mt,Vt;[].keys&&(Vt=[].keys(),"next"in Vt?(Mt=Ds(Ds(Vt)),Mt!==Object.prototype&&(D=Mt)):Us=!0);var ff=!af(D)||of(function(){var e={};return D[Ft].call(e)!==e});ff?D={}:pf&&(D=uf(D));sf(D[Ft])||lf(D,Ft,function(){return this});Gs.exports={IteratorPrototype:D,BUGGY_SAFARI_ITERATORS:Us}});var pr=s((uh,Qs)=>{"use strict";var bf=F(),df=bf("toStringTag"),Bs={};Bs[df]="z";Qs.exports=String(Bs)==="[object z]"});var Ut=s((lh,Ks)=>{"use strict";var vf=pr(),mf=S(),fr=Ne(),Tf=F(),yf=Tf("toStringTag"),hf=Object,gf=fr(function(){return arguments}())==="Arguments",If=function(e,r){try{return e[r]}catch(t){}};Ks.exports=vf?fr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=If(r=hf(e),yf))=="string"?t:gf?fr(r):(n=fr(r))==="Object"&&mf(r.callee)?"Arguments":n}});var $s=s((ch,Ws)=>{"use strict";var Of=pr(),xf=Ut();Ws.exports=Of?{}.toString:function(){return"[object "+xf(this)+"]"}});var br=s((ph,Ys)=>{"use strict";var Ef=pr(),wf=ie().f,Sf=oe(),qf=V(),Rf=$s(),Pf=F(),zs=Pf("toStringTag");Ys.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(qf(i,zs)||wf(i,zs,{configurable:!0,value:r}),n&&!Ef&&Sf(i,"toString",Rf))}});var Xs=s((fh,Hs)=>{"use strict";var _f=Dt().IteratorPrototype,Af=jt(),Lf=be(),Nf=br(),Cf=J(),jf=function(){return this};Hs.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Af(_f,{next:Lf(+!n,t)}),Nf(e,i,!1,!0),Cf[i]=jf,e}});var Zs=s((bh,Js)=>{"use strict";var kf=j(),Mf=ve();Js.exports=function(e,r,t){try{return kf(Mf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ra=s((dh,ea)=>{"use strict";var Vf=M();ea.exports=function(e){return Vf(e)||e===null}});var na=s((vh,ta)=>{"use strict";var Ff=ra(),Df=String,Uf=TypeError;ta.exports=function(e){if(Ff(e))return e;throw new Uf("Can't set "+Df(e)+" as a prototype")}});var oa=s((mh,ia)=>{"use strict";var Gf=Zs(),Bf=M(),Qf=ke(),Kf=na();ia.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(i,o){return Qf(i),Kf(o),Bf(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var ma=s((Th,va)=>{"use strict";var Wf=ue(),$f=Q(),dr=me(),ba=qs(),zf=S(),Yf=Xs(),sa=nr(),aa=oa(),Hf=br(),Xf=oe(),Gt=kt(),Jf=F(),ua=J(),da=Dt(),Zf=ba.PROPER,eb=ba.CONFIGURABLE,la=da.IteratorPrototype,vr=da.BUGGY_SAFARI_ITERATORS,Se=Jf("iterator"),ca="keys",qe="values",pa="entries",fa=function(){return this};va.exports=function(e,r,t,n,i,o,u){Yf(t,r,n);var a=function(h){if(h===i&&d)return d;if(!vr&&h&&h in b)return b[h];switch(h){case ca:return function(){return new t(this,h)};case qe:return function(){return new t(this,h)};case pa:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,b=e.prototype,c=b[Se]||b["@@iterator"]||i&&b[i],d=!vr&&c||a(i),v=r==="Array"&&b.entries||c,T,y,g;if(v&&(T=sa(v.call(new e)),T!==Object.prototype&&T.next&&(!dr&&sa(T)!==la&&(aa?aa(T,la):zf(T[Se])||Gt(T,Se,fa)),Hf(T,l,!0,!0),dr&&(ua[l]=fa))),Zf&&i===qe&&c&&c.name!==qe&&(!dr&&eb?Xf(b,"name",qe):(p=!0,d=function(){return $f(c,this)})),i)if(y={values:a(qe),keys:o?d:a(ca),entries:a(pa)},u)for(g in y)(vr||p||!(g in b))&&Gt(b,g,y[g]);else Wf({target:r,proto:!0,forced:vr||p},y);return(!dr||u)&&b[Se]!==d&&Gt(b,Se,d,{name:i}),ua[r]=d,y}});var ya=s((yh,Ta)=>{"use strict";Ta.exports=function(e,r){return{value:e,done:r}}});var Qt=s((hh,xa)=>{"use strict";var rb=Y(),Bt=We(),ha=J(),Ia=Es(),tb=ie().f,nb=ma(),mr=ya(),ib=me(),ob=A(),Oa="Array Iterator",sb=Ia.set,ab=Ia.getterFor(Oa);xa.exports=nb(Array,"Array",function(e,r){sb(this,{type:Oa,target:rb(e),index:0,kind:r})},function(){var e=ab(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,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 ga=ha.Arguments=ha.Array;Bt("keys");Bt("values");Bt("entries");if(!ib&&ob&&ga.name!=="values")try{tb(ga,"name",{value:"values"})}catch(e){}});var wa=s((gh,Ea)=>{"use strict";var ub=F(),lb=J(),cb=ub("iterator"),pb=Array.prototype;Ea.exports=function(e){return e!==void 0&&(lb.Array===e||pb[cb]===e)}});var Kt=s((Ih,qa)=>{"use strict";var fb=Ut(),Sa=De(),bb=je(),db=J(),vb=F(),mb=vb("iterator");qa.exports=function(e){if(!bb(e))return Sa(e,mb)||Sa(e,"@@iterator")||db[fb(e)]}});var Pa=s((Oh,Ra)=>{"use strict";var Tb=Q(),yb=ve(),hb=H(),gb=Fe(),Ib=Kt(),Ob=TypeError;Ra.exports=function(e,r){var t=arguments.length<2?Ib(e):r;if(yb(t))return hb(Tb(t,e));throw new Ob(gb(e)+" is not iterable")}});var La=s((xh,Aa)=>{"use strict";var xb=Q(),_a=H(),Eb=De();Aa.exports=function(e,r,t){var n,i;_a(e);try{if(n=Eb(e,"return"),!n){if(r==="throw")throw t;return t}n=xb(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return _a(n),t}});var Ma=s((Eh,ka)=>{"use strict";var wb=Kr(),Sb=Q(),qb=H(),Rb=Fe(),Pb=wa(),_b=Ke(),Na=_r(),Ab=Pa(),Lb=Kt(),Ca=La(),Nb=TypeError,Tr=function(e,r){this.stopped=e,this.result=r},ja=Tr.prototype;ka.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),l=wb(r,n),p,b,c,d,v,T,y,g=function(I){return p&&Ca(p,"normal"),new Tr(!0,I)},h=function(I){return i?(qb(I),a?l(I[0],I[1],g):l(I[0],I[1])):a?l(I,g):l(I)};if(o)p=e.iterator;else if(u)p=e;else{if(b=Lb(e),!b)throw new Nb(Rb(e)+" is not iterable");if(Pb(b)){for(c=0,d=_b(e);d>c;c++)if(v=h(e[c]),v&&Na(ja,v))return v;return new Tr(!1)}p=Ab(e,b)}for(T=o?e.next:p.next;!(y=Sb(T,p)).done;){try{v=h(y.value)}catch(I){Ca(p,"throw",I)}if(typeof v=="object"&&v&&Na(ja,v))return v}return new Tr(!1)}});var Fa=s((wh,Va)=>{"use strict";var Cb=A(),jb=ie(),kb=be();Va.exports=function(e,r,t){Cb?jb.f(e,r,kb(0,t)):e[r]=t}});var Da=s(()=>{"use strict";var Mb=ue(),Vb=Ma(),Fb=Fa();Mb({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Vb(r,function(n,i){Fb(t,n,i)},{AS_ENTRIES:!0}),t}})});var Ga=s((Rh,Ua)=>{"use strict";Qt();Da();var Db=de();Ua.exports=Db.Object.fromEntries});var Qa=s((Ph,Ba)=>{"use strict";Ba.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 Wa=s(()=>{"use strict";Qt();var Ub=Qa(),Gb=w(),Bb=br(),Ka=J();for(yr in Ub)Bb(Gb[yr],yr),Ka[yr]=Ka.Array;var yr});var za=s((Lh,$a)=>{"use strict";var Qb=Ga();Wa();$a.exports=Qb});var Ha=s((Nh,Ya)=>{"use strict";var Kb=za();Ya.exports=Kb});var td={};gr(td,{ErrorCategory:()=>fs,InterfaceLanguage:()=>eu,InternalsExposure:()=>Wt,Logger:()=>Ae,Observable:()=>f,Subject:()=>k,Subscription:()=>E,SubscriptionRemovable:()=>Oe,TracerFactory:()=>rr,VERSION:()=>rn,VKNumericLanguage:()=>Za,ValueSubject:()=>Ie,VideoQuality:()=>$e,abortable:()=>pn,addScript:()=>un,areQualitiesExact:()=>To,assertEmptyArray:()=>an,assertNever:()=>C,assertNonNullable:()=>nn,assertNotEmptyArray:()=>sn,assertNullable:()=>on,assertQualityIsExact:()=>yo,buffer:()=>ut,checkNever:()=>tn,clearVideoElement:()=>Oo,cloneDeep:()=>go,cloneDeepWith:()=>he,combine:()=>ot,createURL:()=>kc,debounce:()=>ct,debounceFn:()=>He,detectEmbed:()=>ao,devNull:()=>hr,fillWithDefault:()=>ho,filter:()=>dt,filterChanged:()=>mt,flattenObject:()=>ge,fromEvent:()=>ts,getExponentialDelay:()=>fn,getHighestQuality:()=>po,getTraceSubscriptionMethod:()=>xo,interval:()=>es,isHigher:()=>uo,isHigherOrEqual:()=>lo,isInvariantQuality:()=>Ye,isLower:()=>ze,isLowerOrEqual:()=>co,isNonNullable:()=>$,isNullable:()=>re,isValidURL:()=>jc,loadVKLangPack:()=>$b,map:()=>xe,mapTo:()=>yt,merge:()=>st,noop:()=>B,now:()=>cn,observableFrom:()=>rs,observeElementSize:()=>Io,once:()=>ht,pairwise:()=>It,safeStorage:()=>Le,skip:()=>wt,tap:()=>xt,throttle:()=>ft,throttleFn:()=>Xe,timeCodeToString:()=>Nc,timeout:()=>Zo,videoHeightToQuality:()=>bo,videoQualityToHeight:()=>mo,videoSizeToQuality:()=>vo});module.exports=pu(td);var rn="1.0.62-dev.4cc026f5.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`)},tn=e=>{};var B=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:B}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:B,error:B};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=B,i.error=B,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return C(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var k=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{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 Ae=class{constructor(){this.log$=new k;this.logs=[];this.log=r=>{let t=U(q({},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=>q({component:r},t))}};function nn(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function on(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function $(e){return typeof e!="undefined"&&e!==null}function re(e){return e==null}function sn(e,r){if(!(e!=null&&e.length))throw new Error(r)}function an(e,r){if(e!=null&&e.length)throw new Error(r)}var un=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var ln,cn=typeof((ln=window.performance)==null?void 0:ln.now)=="function"?()=>window.performance.now():()=>Date.now();var pn=(e,r)=>(...t)=>ee(null,null,function*(){var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=yield n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){yield n.throw(a)}return o});var fn=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=Zt(t,e),u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Le={};gr(Le,{clear:()=>Tu,get:()=>bu,has:()=>vu,isPersistent:()=>fu,remove:()=>mu,set:()=>du});var O,z,Ir=`vk-videoplayer-dummy-key-${Math.random()}`,te=()=>{if(z!==void 0)return z;try{localStorage.setItem(Ir,"test"),localStorage.removeItem(Ir),z=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Ir),z=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)z=2;else throw r}else throw e}return z===2&&(O=new Map),z},fu=()=>te()===0,bu=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 O==null?void 0:O.get(e);default:C(r)}},du=(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:O==null||O.set(e,r);return;default:C(t)}},vu=e=>{var t;let r=te();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}},mu=e=>{let r=te();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:O==null||O.delete(e);return;default:C(r)}},Tu=()=>{let e=te();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 Jr=G(so(),1),ao=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Jr.default)(r,-1),immediateOrigin:(0,Jr.default)(r,0)}};var $e=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))($e||{});var P={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},uo=(e,r)=>P[e].height>P[r].height,lo=(e,r)=>P[e].height>=P[r].height,ze=(e,r)=>P[e].height<P[r].height,co=(e,r)=>P[e].height<=P[r].height,po=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:ze(r,t)?1:-1)[0],fo=Object.keys(P).sort((e,r)=>ze(e,r)?-1:1),bo=(e,r=.02)=>[...fo].find(n=>P[n].height*(1+r)>=e),vo=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return fo.find(i=>{let o=P[i];return o.width>=n&&o.height>=t})},mo=e=>P[e].height,Ye=e=>e==="Invariant quality",To=e=>e.every(r=>!Ye(r));function yo(e){if(Ye(e))throw new Error("Expected exact quality")}var ho=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=ho(o,i):t[n]=n in e?o:i}return t};var Nc=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 He(e,r=0,t){let n,i,o,u,a,l,p=0,b=!1,c=!1,d=!0,v=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,d="trailing"in t?!!t.trailing:d);function T(m){let _=n,W=i;return n=i=void 0,p=m,u=e.apply(W,_),u}function y(m,_){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,_)}function g(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=y(Pe,r),b?T(m):u}function I(m){let _=m-l,W=m-p,Yt=r-_;return c?Math.min(Yt,o-W):Yt}function $t(m){let _=m-l,W=m-p;return l===void 0||_>=r||_<0||c&&W>=o}function Pe(){let m=Date.now();if($t(m))return zt(m);a=y(Pe,I(m))}function zt(m){return a=void 0,d&&n?T(m):(n=i=void 0,u)}function ru(){a!==void 0&&g(a),p=0,n=l=i=a=void 0}function tu(){return a===void 0?u:zt(Date.now())}function nu(){return a!==void 0}function _e(...m){let _=Date.now(),W=$t(_);if(n=m,i=this,l=_,W){if(a===void 0)return h(l);if(c)return a=y(Pe,r),T(l)}return a===void 0&&(a=y(Pe,r)),u}return _e.cancel=ru,_e.flush=tu,_e.pending=nu,_e}var Xe=(e,r=0,t)=>He(e,r,U(q(q({},{leading:!0,trailing:!0}),t),{maxWait:r}));var he=(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]=he(e[n],r):t[n]=e[n]}return t};var go=e=>he(e);var Cc=300,Io=(e,r=Cc)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Xe(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),$(l)&&$(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var ge=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=ge(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var Oo=e=>{e.removeAttribute("src"),e.load()};var jc=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var kc=e=>{try{return new URL(e)}catch(r){return null}};var xo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ge(t):{value:t})},Je=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var x=class x{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];if(x.dynamicImportStatus==="failed")return this;x.dynamicImportStatus==="not_started"&&(x.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=x.dynamicImportPromise.then(()=>this.init({name:r,getParentContext:t},n))}init({name:r,getParentContext:t},n){this.span=x.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=x.dynamicImports.opentelemetryApi.trace.setSpan(x.dynamicImports.opentelemetryApi.context.active(),this.span)}loadOpentelemetry(){return ee(this,null,function*(){if(x.dynamicImportStatus==="not_started"){x.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=yield Promise.race([t,r]);x.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},x.dynamicImportStatus="completed"}catch(r){x.dynamicImportStatus="failed"}}})}isComponentTracerNotInitialized(){return re(this.span)}log(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,U(q({},Je(t)),{type:"log"}),n))}error(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,U(q({},Je(t)),{type:"error"}),n))}critical(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,U(q({},Je(t)),{type:"critical"}),n))}createComponentTracer(r){let t=new x({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.childTracers.forEach(t=>t.end()),this.span.end()})}};x.dynamicImportStatus="not_started";var K=x;var Ze=class extends K{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=K.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new K.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new K.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),K.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var er=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var rr=class{static createRootTracer(r=!1){return r?new Ze:new er}};var Ie=class extends k{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var Jo=G(it(),1);function ot(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return(0,Jo.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new E)})}function st(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var Zo=e=>new f(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var es=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var rs=e=>new f(r=>{e.forEach(t=>r.next(t))});var ts=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Oe=class extends E{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function ut(e){return r=>new f(t=>r.subscribe(new at(t,e)))}var at=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 mp={leading:!1,trailing:!0};function ct(e,r=mp){return t=>new f(n=>t.subscribe(new lt(n,e,r)))}var lt=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 Tp={leading:!0,trailing:!1};function ft(e,r=Tp){return t=>new f(n=>t.subscribe(new pt(n,e,r)))}var pt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,re(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 dt(e){return r=>new f(t=>r.subscribe(new bt(t,e)))}var bt=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)}};var ps=G(ls(),1);var Sp=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,ps.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},qp=(e,r)=>e instanceof Object&&r instanceof Object?Sp(e,r):e===r;function mt(e=qp){return r=>new f(t=>r.subscribe(new vt(t,e)))}var cs={},vt=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=cs}next(r){let t;try{t=this.lastValue===cs||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?q({},r):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 xe(e){return r=>new f(t=>r.subscribe(new Tt(t,e)))}var Tt=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 yt(e){return xe(()=>e)}function ht(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function It(){return e=>new f(r=>e.subscribe(new gt(r)))}var gt=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 xt(e){return r=>new f(t=>r.subscribe(new Ot(t,e)))}var Ot=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)}};function wt(e){return r=>new f(t=>r.subscribe(new Et(t,e)))}var Et=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var fs=(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))(fs||{});var{NativeAbortSignal:Vy,NativeAbortController:Fy}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function bs(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function ds(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var or=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},le=class extends or{constructor(){super(),this.listeners||or.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)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new X;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new X;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},X=class{constructor(){Object.defineProperty(this,"signal",{value:new le,writable:!0,configurable:!0})}abort(r){let t=ds(r),n=bs(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(X.prototype[Symbol.toStringTag]="AbortController",le.prototype[Symbol.toStringTag]="AbortSignal");function sr(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 St(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!sr({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(p,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let d=new t(p,b);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let b=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let d=new Promise((v,T)=>{b.addEventListener("abort",()=>T(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([d,u(l,p)])}return u(l,p)},Request:o}}var Rp=()=>"fetch"in window,Ee=Rp()&&sr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),vs=Ee?St({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,ms=Ee?vs.fetch:window.fetch,Yy=Ee?vs.Request:window.Request,Hy=Ee?X:window.AbortController,Xy=Ee?le:window.AbortSignal;var Xa=G(it(),1),Ja=G(Ha(),1);var Za=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(Za||{}),Wb="vk.com",$b=(e,r,t)=>ee(null,null,function*(){let n=new URL(`https://${Wb}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=yield(yield ms(n.toString())).json();return zb(o,t)}),zb=(e,r)=>(0,Ja.default)((0,Xa.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Yb(n)])),Yb=e=>Array.isArray(e)?e[0]:e;var eu=(t=>(t.RU="ru",t.EN="en",t))(eu||{});var Hb={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Xb=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Wt=class{constructor(r){this.id=Xb();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Hb[r]}};var hr={};gr(hr,{create:()=>Jb,destroy:()=>Zb,push:()=>ed,subscribe:()=>rd});var Re=new Map,Jb=(e,r)=>Re.set(e,r!=null?r:[]),Zb=e=>Re.delete(e),ed=(e,r)=>{let t=Re.get(e);t&&(typeof t=="function"?t(r):t.push(r))},rd=(e,r)=>{let t=Re.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Re.set(e,r)}};
package/es2015.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.62-dev.2bd92e6d.0
3
- * Tue, 17 Jun 2025 15:04:21 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.62-dev.4cc026f5.0
3
+ * Mon, 23 Jun 2025 12:57:13 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-62/doc/
5
5
  */
6
- var xs=Object.create;var Ee=Object.defineProperty,ws=Object.defineProperties,Es=Object.getOwnPropertyDescriptor,Ss=Object.getOwnPropertyDescriptors,qs=Object.getOwnPropertyNames,Nt=Object.getOwnPropertySymbols,Rs=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,Ps=Object.prototype.propertyIsEnumerable;var Dt=Math.pow,Mt=(e,r,t)=>r in e?Ee(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,q=(e,r)=>{for(var t in r||(r={}))Vt.call(r,t)&&Mt(e,t,r[t]);if(Nt)for(var t of Nt(r))Ps.call(r,t)&&Mt(e,t,r[t]);return e},F=(e,r)=>ws(e,Ss(r));var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ft=(e,r)=>{for(var t in r)Ee(e,t,{get:r[t],enumerable:!0})},As=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of qs(r))!Vt.call(e,i)&&i!==t&&Ee(e,i,{get:()=>r[i],enumerable:!(n=Es(r,i))||n.enumerable});return e};var se=(e,r,t)=>(t=e!=null?xs(Rs(e)):{},As(r||!e||!e.__esModule?Ee(t,"default",{value:e,enumerable:!0}):t,e));var X=(e,r,t)=>new Promise((n,i)=>{var a=c=>{try{s(t.next(c))}catch(p){i(p)}},u=c=>{try{s(t.throw(c))}catch(p){i(p)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,u);s((t=t.apply(e,r)).next())});var E=o((vr,Gt)=>{"use strict";var ce=function(e){return e&&e.Math===Math&&e};Gt.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof global=="object"&&global)||ce(typeof vr=="object"&&vr)||function(){return this}()||Function("return this")()});var R=o((Ov,Qt)=>{"use strict";Qt.exports=function(e){try{return!!e()}catch(r){return!0}}});var le=o((xv,Bt)=>{"use strict";var $s=R();Bt.exports=!$s(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Yt=o((wv,zt)=>{"use strict";var zs=le(),$t=Function.prototype,Kt=$t.apply,Wt=$t.call;zt.exports=typeof Reflect=="object"&&Reflect.apply||(zs?Wt.bind(Kt):function(){return Wt.apply(Kt,arguments)})});var k=o((Ev,Jt)=>{"use strict";var Ht=le(),Xt=Function.prototype,br=Xt.call,Ys=Ht&&Xt.bind.bind(br,br);Jt.exports=Ht?Ys:function(e){return function(){return br.apply(e,arguments)}}});var Se=o((Sv,en)=>{"use strict";var Zt=k(),Hs=Zt({}.toString),Xs=Zt("".slice);en.exports=function(e){return Xs(Hs(e),8,-1)}});var mr=o((qv,rn)=>{"use strict";var Js=Se(),Zs=k();rn.exports=function(e){if(Js(e)==="Function")return Zs(e)}});var S=o((Rv,tn)=>{"use strict";var Tr=typeof document=="object"&&document.all;tn.exports=typeof Tr=="undefined"&&Tr!==void 0?function(e){return typeof e=="function"||e===Tr}:function(e){return typeof e=="function"}});var _=o((Pv,nn)=>{"use strict";var eu=R();nn.exports=!eu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var G=o((Av,on)=>{"use strict";var ru=le(),qe=Function.prototype.call;on.exports=ru?qe.bind(qe):function(){return qe.apply(qe,arguments)}});var yr=o(un=>{"use strict";var an={}.propertyIsEnumerable,sn=Object.getOwnPropertyDescriptor,tu=sn&&!an.call({1:2},1);un.f=tu?function(r){var t=sn(this,r);return!!t&&t.enumerable}:an});var pe=o((Lv,cn)=>{"use strict";cn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var pn=o((jv,ln)=>{"use strict";var nu=k(),iu=R(),ou=Se(),hr=Object,au=nu("".split);ln.exports=iu(function(){return!hr("z").propertyIsEnumerable(0)})?function(e){return ou(e)==="String"?au(e,""):hr(e)}:hr});var Re=o((kv,fn)=>{"use strict";fn.exports=function(e){return e==null}});var Pe=o((Cv,dn)=>{"use strict";var su=Re(),uu=TypeError;dn.exports=function(e){if(su(e))throw new uu("Can't call method on "+e);return e}});var $=o((Nv,vn)=>{"use strict";var cu=pn(),lu=Pe();vn.exports=function(e){return cu(lu(e))}});var N=o((Mv,bn)=>{"use strict";var pu=S();bn.exports=function(e){return typeof e=="object"?e!==null:pu(e)}});var fe=o((Vv,mn)=>{"use strict";mn.exports={}});var Ae=o((Dv,yn)=>{"use strict";var gr=fe(),Ir=E(),fu=S(),Tn=function(e){return fu(e)?e:void 0};yn.exports=function(e,r){return arguments.length<2?Tn(gr[e])||Tn(Ir[e]):gr[e]&&gr[e][r]||Ir[e]&&Ir[e][r]}});var Or=o((Fv,hn)=>{"use strict";var du=k();hn.exports=du({}.isPrototypeOf)});var xn=o((Uv,On)=>{"use strict";var vu=E(),gn=vu.navigator,In=gn&&gn.userAgent;On.exports=In?String(In):""});var An=o((Gv,Pn)=>{"use strict";var Rn=E(),xr=xn(),wn=Rn.process,En=Rn.Deno,Sn=wn&&wn.versions||En&&En.version,qn=Sn&&Sn.v8,L,_e;qn&&(L=qn.split("."),_e=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!_e&&xr&&(L=xr.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=xr.match(/Chrome\/(\d+)/),L&&(_e=+L[1])));Pn.exports=_e});var wr=o((Qv,Ln)=>{"use strict";var _n=An(),bu=R(),mu=E(),Tu=mu.String;Ln.exports=!!Object.getOwnPropertySymbols&&!bu(function(){var e=Symbol("symbol detection");return!Tu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_n&&_n<41})});var Er=o((Bv,jn)=>{"use strict";var yu=wr();jn.exports=yu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Sr=o((Kv,kn)=>{"use strict";var hu=Ae(),gu=S(),Iu=Or(),Ou=Er(),xu=Object;kn.exports=Ou?function(e){return typeof e=="symbol"}:function(e){var r=hu("Symbol");return gu(r)&&Iu(r.prototype,xu(e))}});var Le=o((Wv,Cn)=>{"use strict";var wu=String;Cn.exports=function(e){try{return wu(e)}catch(r){return"Object"}}});var de=o(($v,Nn)=>{"use strict";var Eu=S(),Su=Le(),qu=TypeError;Nn.exports=function(e){if(Eu(e))return e;throw new qu(Su(e)+" is not a function")}});var je=o((zv,Mn)=>{"use strict";var Ru=de(),Pu=Re();Mn.exports=function(e,r){var t=e[r];return Pu(t)?void 0:Ru(t)}});var Dn=o((Yv,Vn)=>{"use strict";var qr=G(),Rr=S(),Pr=N(),Au=TypeError;Vn.exports=function(e,r){var t,n;if(r==="string"&&Rr(t=e.toString)&&!Pr(n=qr(t,e))||Rr(t=e.valueOf)&&!Pr(n=qr(t,e))||r!=="string"&&Rr(t=e.toString)&&!Pr(n=qr(t,e)))return n;throw new Au("Can't convert object to primitive value")}});var ve=o((Hv,Fn)=>{"use strict";Fn.exports=!0});var Qn=o((Xv,Gn)=>{"use strict";var Un=E(),_u=Object.defineProperty;Gn.exports=function(e,r){try{_u(Un,e,{value:r,configurable:!0,writable:!0})}catch(t){Un[e]=r}return r}});var ke=o((Jv,Wn)=>{"use strict";var Lu=ve(),ju=E(),ku=Qn(),Bn="__core-js_shared__",Kn=Wn.exports=ju[Bn]||ku(Bn,{});(Kn.versions||(Kn.versions=[])).push({version:"3.38.0",mode:Lu?"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 Ar=o((Zv,zn)=>{"use strict";var $n=ke();zn.exports=function(e,r){return $n[e]||($n[e]=r||{})}});var Ce=o((eb,Yn)=>{"use strict";var Cu=Pe(),Nu=Object;Yn.exports=function(e){return Nu(Cu(e))}});var M=o((rb,Hn)=>{"use strict";var Mu=k(),Vu=Ce(),Du=Mu({}.hasOwnProperty);Hn.exports=Object.hasOwn||function(r,t){return Du(Vu(r),t)}});var _r=o((tb,Xn)=>{"use strict";var Fu=k(),Uu=0,Gu=Math.random(),Qu=Fu(1 .toString);Xn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Qu(++Uu+Gu,36)}});var V=o((nb,Zn)=>{"use strict";var Bu=E(),Ku=Ar(),Jn=M(),Wu=_r(),$u=wr(),zu=Er(),ee=Bu.Symbol,Lr=Ku("wks"),Yu=zu?ee.for||ee:ee&&ee.withoutSetter||Wu;Zn.exports=function(e){return Jn(Lr,e)||(Lr[e]=$u&&Jn(ee,e)?ee[e]:Yu("Symbol."+e)),Lr[e]}});var ni=o((ib,ti)=>{"use strict";var Hu=G(),ei=N(),ri=Sr(),Xu=je(),Ju=Dn(),Zu=V(),ec=TypeError,rc=Zu("toPrimitive");ti.exports=function(e,r){if(!ei(e)||ri(e))return e;var t=Xu(e,rc),n;if(t){if(r===void 0&&(r="default"),n=Hu(t,e,r),!ei(n)||ri(n))return n;throw new ec("Can't convert object to primitive value")}return r===void 0&&(r="number"),Ju(e,r)}});var jr=o((ob,ii)=>{"use strict";var tc=ni(),nc=Sr();ii.exports=function(e){var r=tc(e,"string");return nc(r)?r:r+""}});var Cr=o((ab,ai)=>{"use strict";var ic=E(),oi=N(),kr=ic.document,oc=oi(kr)&&oi(kr.createElement);ai.exports=function(e){return oc?kr.createElement(e):{}}});var Nr=o((sb,si)=>{"use strict";var ac=_(),sc=R(),uc=Cr();si.exports=!ac&&!sc(function(){return Object.defineProperty(uc("div"),"a",{get:function(){return 7}}).a!==7})});var li=o(ci=>{"use strict";var cc=_(),lc=G(),pc=yr(),fc=pe(),dc=$(),vc=jr(),bc=M(),mc=Nr(),ui=Object.getOwnPropertyDescriptor;ci.f=cc?ui:function(r,t){if(r=dc(r),t=vc(t),mc)try{return ui(r,t)}catch(n){}if(bc(r,t))return fc(!lc(pc.f,r,t),r[t])}});var fi=o((cb,pi)=>{"use strict";var Tc=R(),yc=S(),hc=/#|\.prototype\./,be=function(e,r){var t=Ic[gc(e)];return t===xc?!0:t===Oc?!1:yc(r)?Tc(r):!!r},gc=be.normalize=function(e){return String(e).replace(hc,".").toLowerCase()},Ic=be.data={},Oc=be.NATIVE="N",xc=be.POLYFILL="P";pi.exports=be});var Mr=o((lb,vi)=>{"use strict";var di=mr(),wc=de(),Ec=le(),Sc=di(di.bind);vi.exports=function(e,r){return wc(e),r===void 0?e:Ec?Sc(e,r):function(){return e.apply(r,arguments)}}});var Vr=o((pb,bi)=>{"use strict";var qc=_(),Rc=R();bi.exports=qc&&Rc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var z=o((fb,mi)=>{"use strict";var Pc=N(),Ac=String,_c=TypeError;mi.exports=function(e){if(Pc(e))return e;throw new _c(Ac(e)+" is not an object")}});var re=o(yi=>{"use strict";var Lc=_(),jc=Nr(),kc=Vr(),Ne=z(),Ti=jr(),Cc=TypeError,Dr=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,Fr="enumerable",Ur="configurable",Gr="writable";yi.f=Lc?kc?function(r,t,n){if(Ne(r),t=Ti(t),Ne(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Gr in n&&!n[Gr]){var i=Nc(r,t);i&&i[Gr]&&(r[t]=n.value,n={configurable:Ur in n?n[Ur]:i[Ur],enumerable:Fr in n?n[Fr]:i[Fr],writable:!1})}return Dr(r,t,n)}:Dr:function(r,t,n){if(Ne(r),t=Ti(t),Ne(n),jc)try{return Dr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Cc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var te=o((vb,hi)=>{"use strict";var Mc=_(),Vc=re(),Dc=pe();hi.exports=Mc?function(e,r,t){return Vc.f(e,r,Dc(1,t))}:function(e,r,t){return e[r]=t,e}});var oe=o((bb,Ii)=>{"use strict";var me=E(),Fc=Yt(),Uc=mr(),Gc=S(),Qc=li().f,Bc=fi(),ne=fe(),Kc=Mr(),ie=te(),gi=M();ke();var Wc=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 Fc(e,this,arguments)};return r.prototype=e.prototype,r};Ii.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,u=n?me:i?me[t]:me[t]&&me[t].prototype,s=n?ne:ne[t]||ie(ne,t,{})[t],c=s.prototype,p,d,l,v,b,T,y,I,h;for(v in r)p=Bc(n?v:t+(i?".":"#")+v,e.forced),d=!p&&u&&gi(u,v),T=s[v],d&&(e.dontCallGetSet?(h=Qc(u,v),y=h&&h.value):y=u[v]),b=d&&y?y:r[v],!(!p&&!a&&typeof T==typeof b)&&(e.bind&&d?I=Kc(b,me):e.wrap&&d?I=Wc(b):a&&Gc(b)?I=Uc(b):I=b,(e.sham||b&&b.sham||T&&T.sham)&&ie(I,"sham",!0),ie(s,v,I),a&&(l=t+"Prototype",gi(ne,l)||ie(ne,l,{}),ie(ne[l],v,b),e.real&&c&&(p||!c[v])&&ie(c,v,b)))}});var xi=o((mb,Oi)=>{"use strict";var $c=Math.ceil,zc=Math.floor;Oi.exports=Math.trunc||function(r){var t=+r;return(t>0?zc:$c)(t)}});var Me=o((Tb,wi)=>{"use strict";var Yc=xi();wi.exports=function(e){var r=+e;return r!==r||r===0?0:Yc(r)}});var Si=o((yb,Ei)=>{"use strict";var Hc=Me(),Xc=Math.min;Ei.exports=function(e){var r=Hc(e);return r>0?Xc(r,9007199254740991):0}});var Ve=o((hb,qi)=>{"use strict";var Jc=Si();qi.exports=function(e){return Jc(e.length)}});var De=o((gb,Ri)=>{"use strict";Ri.exports=function(){}});var Pi=o(()=>{"use strict";var Zc=oe(),el=Ce(),rl=Ve(),tl=Me(),nl=De();Zc({target:"Array",proto:!0},{at:function(r){var t=el(this),n=rl(t),i=tl(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});nl("at")});var Qr=o((xb,Ai)=>{"use strict";var il=Ae();Ai.exports=il});var Li=o((wb,_i)=>{"use strict";Pi();var ol=Qr();_i.exports=ol("Array","at")});var ki=o((Eb,ji)=>{"use strict";var al=Li();ji.exports=al});var Ni=o((Sb,Ci)=>{"use strict";var sl=ki();Ci.exports=sl});var We=o((rT,Di)=>{"use strict";var wl=Ar(),El=_r(),Vi=wl("keys");Di.exports=function(e){return Vi[e]||(Vi[e]=El(e))}});var Ui=o((tT,Fi)=>{"use strict";var Sl=R();Fi.exports=!Sl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var $e=o((nT,Qi)=>{"use strict";var ql=M(),Rl=S(),Pl=Ce(),Al=We(),_l=Ui(),Gi=Al("IE_PROTO"),Xr=Object,Ll=Xr.prototype;Qi.exports=_l?Xr.getPrototypeOf:function(e){var r=Pl(e);if(ql(r,Gi))return r[Gi];var t=r.constructor;return Rl(t)&&r instanceof t?t.prototype:r instanceof Xr?Ll:null}});var Ki=o((iT,Bi)=>{"use strict";var jl=Me(),kl=Math.max,Cl=Math.min;Bi.exports=function(e,r){var t=jl(e);return t<0?kl(t+r,0):Cl(t,r)}});var Jr=o((oT,$i)=>{"use strict";var Nl=$(),Ml=Ki(),Vl=Ve(),Wi=function(e){return function(r,t,n){var i=Nl(r),a=Vl(i);if(a===0)return!e&&-1;var u=Ml(n,a),s;if(e&&t!==t){for(;a>u;)if(s=i[u++],s!==s)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};$i.exports={includes:Wi(!0),indexOf:Wi(!1)}});var ze=o((aT,zi)=>{"use strict";zi.exports={}});var Xi=o((sT,Hi)=>{"use strict";var Dl=k(),Zr=M(),Fl=$(),Ul=Jr().indexOf,Gl=ze(),Yi=Dl([].push);Hi.exports=function(e,r){var t=Fl(e),n=0,i=[],a;for(a in t)!Zr(Gl,a)&&Zr(t,a)&&Yi(i,a);for(;r.length>n;)Zr(t,a=r[n++])&&(~Ul(i,a)||Yi(i,a));return i}});var et=o((uT,Ji)=>{"use strict";Ji.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var rt=o((cT,Zi)=>{"use strict";var Ql=Xi(),Bl=et();Zi.exports=Object.keys||function(r){return Ql(r,Bl)}});var oo=o((lT,io)=>{"use strict";var ro=_(),Kl=R(),to=k(),Wl=$e(),$l=rt(),zl=$(),Yl=yr().f,no=to(Yl),Hl=to([].push),Xl=ro&&Kl(function(){var e=Object.create(null);return e[2]=2,!no(e,2)}),eo=function(e){return function(r){for(var t=zl(r),n=$l(t),i=Xl&&Wl(t)===null,a=n.length,u=0,s=[],c;a>u;)c=n[u++],(!ro||(i?c in t:no(t,c)))&&Hl(s,e?[c,t[c]]:t[c]);return s}};io.exports={entries:eo(!0),values:eo(!1)}});var ao=o(()=>{"use strict";var Jl=oe(),Zl=oo().entries;Jl({target:"Object",stat:!0},{entries:function(r){return Zl(r)}})});var uo=o((dT,so)=>{"use strict";ao();var ep=fe();so.exports=ep.Object.entries});var lo=o((vT,co)=>{"use strict";var rp=uo();co.exports=rp});var tt=o((bT,po)=>{"use strict";var tp=lo();po.exports=tp});var go=o(()=>{"use strict";var cp=oe(),lp=Jr().includes,pp=R(),fp=De(),dp=pp(function(){return!Array(1).includes()});cp({target:"Array",proto:!0,forced:dp},{includes:function(r){return lp(this,r,arguments.length>1?arguments[1]:void 0)}});fp("includes")});var Oo=o((BT,Io)=>{"use strict";go();var vp=Qr();Io.exports=vp("Array","includes")});var wo=o((KT,xo)=>{"use strict";var bp=Oo();xo.exports=bp});var So=o((WT,Eo)=>{"use strict";var mp=wo();Eo.exports=mp});var Y=o((By,Mo)=>{"use strict";Mo.exports={}});var Fo=o((Ky,Do)=>{"use strict";var Ip=E(),Op=S(),Vo=Ip.WeakMap;Do.exports=Op(Vo)&&/native code/.test(String(Vo))});var Bo=o((Wy,Qo)=>{"use strict";var xp=Fo(),Go=E(),wp=N(),Ep=te(),dt=M(),vt=ke(),Sp=We(),qp=ze(),Uo="Object already initialized",bt=Go.TypeError,Rp=Go.WeakMap,Ze,he,er,Pp=function(e){return er(e)?he(e):Ze(e,{})},Ap=function(e){return function(r){var t;if(!wp(r)||(t=he(r)).type!==e)throw new bt("Incompatible receiver, "+e+" required");return t}};xp||vt.state?(j=vt.state||(vt.state=new Rp),j.get=j.get,j.has=j.has,j.set=j.set,Ze=function(e,r){if(j.has(e))throw new bt(Uo);return r.facade=e,j.set(e,r),r},he=function(e){return j.get(e)||{}},er=function(e){return j.has(e)}):(H=Sp("state"),qp[H]=!0,Ze=function(e,r){if(dt(e,H))throw new bt(Uo);return r.facade=e,Ep(e,H,r),r},he=function(e){return dt(e,H)?e[H]:{}},er=function(e){return dt(e,H)});var j,H;Qo.exports={set:Ze,get:he,has:er,enforce:Pp,getterFor:Ap}});var $o=o(($y,Wo)=>{"use strict";var mt=_(),_p=M(),Ko=Function.prototype,Lp=mt&&Object.getOwnPropertyDescriptor,Tt=_p(Ko,"name"),jp=Tt&&function(){}.name==="something",kp=Tt&&(!mt||mt&&Lp(Ko,"name").configurable);Wo.exports={EXISTS:Tt,PROPER:jp,CONFIGURABLE:kp}});var Yo=o(zo=>{"use strict";var Cp=_(),Np=Vr(),Mp=re(),Vp=z(),Dp=$(),Fp=rt();zo.f=Cp&&!Np?Object.defineProperties:function(r,t){Vp(r);for(var n=Dp(t),i=Fp(t),a=i.length,u=0,s;a>u;)Mp.f(r,s=i[u++],n[s]);return r}});var Xo=o((Yy,Ho)=>{"use strict";var Up=Ae();Ho.exports=Up("document","documentElement")});var It=o((Hy,ia)=>{"use strict";var Gp=z(),Qp=Yo(),Jo=et(),Bp=ze(),Kp=Xo(),Wp=Cr(),$p=We(),Zo=">",ea="<",ht="prototype",gt="script",ta=$p("IE_PROTO"),yt=function(){},na=function(e){return ea+gt+Zo+e+ea+"/"+gt+Zo},ra=function(e){e.write(na("")),e.close();var r=e.parentWindow.Object;return e=null,r},zp=function(){var e=Wp("iframe"),r="java"+gt+":",t;return e.style.display="none",Kp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(na("document.F=Object")),t.close(),t.F},rr,tr=function(){try{rr=new ActiveXObject("htmlfile")}catch(r){}tr=typeof document!="undefined"?document.domain&&rr?ra(rr):zp():ra(rr);for(var e=Jo.length;e--;)delete tr[ht][Jo[e]];return tr()};Bp[ta]=!0;ia.exports=Object.create||function(r,t){var n;return r!==null?(yt[ht]=Gp(r),n=new yt,yt[ht]=null,n[ta]=r):n=tr(),t===void 0?n:Qp.f(n,t)}});var Ot=o((Xy,oa)=>{"use strict";var Yp=te();oa.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Yp(e,r,t),e}});var St=o((Jy,ua)=>{"use strict";var Hp=R(),Xp=S(),Jp=N(),Zp=It(),aa=$e(),ef=Ot(),rf=V(),tf=ve(),Et=rf("iterator"),sa=!1,D,xt,wt;[].keys&&(wt=[].keys(),"next"in wt?(xt=aa(aa(wt)),xt!==Object.prototype&&(D=xt)):sa=!0);var nf=!Jp(D)||Hp(function(){var e={};return D[Et].call(e)!==e});nf?D={}:tf&&(D=Zp(D));Xp(D[Et])||ef(D,Et,function(){return this});ua.exports={IteratorPrototype:D,BUGGY_SAFARI_ITERATORS:sa}});var nr=o((Zy,la)=>{"use strict";var of=V(),af=of("toStringTag"),ca={};ca[af]="z";la.exports=String(ca)==="[object z]"});var qt=o((eh,pa)=>{"use strict";var sf=nr(),uf=S(),ir=Se(),cf=V(),lf=cf("toStringTag"),pf=Object,ff=ir(function(){return arguments}())==="Arguments",df=function(e,r){try{return e[r]}catch(t){}};pa.exports=sf?ir:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=df(r=pf(e),lf))=="string"?t:ff?ir(r):(n=ir(r))==="Object"&&uf(r.callee)?"Arguments":n}});var da=o((rh,fa)=>{"use strict";var vf=nr(),bf=qt();fa.exports=vf?{}.toString:function(){return"[object "+bf(this)+"]"}});var or=o((th,ba)=>{"use strict";var mf=nr(),Tf=re().f,yf=te(),hf=M(),gf=da(),If=V(),va=If("toStringTag");ba.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(hf(i,va)||Tf(i,va,{configurable:!0,value:r}),n&&!mf&&yf(i,"toString",gf))}});var Ta=o((nh,ma)=>{"use strict";var Of=St().IteratorPrototype,xf=It(),wf=pe(),Ef=or(),Sf=Y(),qf=function(){return this};ma.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=xf(Of,{next:wf(+!n,t)}),Ef(e,i,!1,!0),Sf[i]=qf,e}});var ha=o((ih,ya)=>{"use strict";var Rf=k(),Pf=de();ya.exports=function(e,r,t){try{return Rf(Pf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Ia=o((oh,ga)=>{"use strict";var Af=N();ga.exports=function(e){return Af(e)||e===null}});var xa=o((ah,Oa)=>{"use strict";var _f=Ia(),Lf=String,jf=TypeError;Oa.exports=function(e){if(_f(e))return e;throw new jf("Can't set "+Lf(e)+" as a prototype")}});var Ea=o((sh,wa)=>{"use strict";var kf=ha(),Cf=N(),Nf=Pe(),Mf=xa();wa.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=kf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return Nf(i),Mf(a),Cf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var Na=o((uh,Ca)=>{"use strict";var Vf=oe(),Df=G(),ar=ve(),ja=$o(),Ff=S(),Uf=Ta(),Sa=$e(),qa=Ea(),Gf=or(),Qf=te(),Rt=Ot(),Bf=V(),Ra=Y(),ka=St(),Kf=ja.PROPER,Wf=ja.CONFIGURABLE,Pa=ka.IteratorPrototype,sr=ka.BUGGY_SAFARI_ITERATORS,ge=Bf("iterator"),Aa="keys",Ie="values",_a="entries",La=function(){return this};Ca.exports=function(e,r,t,n,i,a,u){Uf(t,r,n);var s=function(h){if(h===i&&v)return v;if(!sr&&h&&h in d)return d[h];switch(h){case Aa:return function(){return new t(this,h)};case Ie:return function(){return new t(this,h)};case _a:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",p=!1,d=e.prototype,l=d[ge]||d["@@iterator"]||i&&d[i],v=!sr&&l||s(i),b=r==="Array"&&d.entries||l,T,y,I;if(b&&(T=Sa(b.call(new e)),T!==Object.prototype&&T.next&&(!ar&&Sa(T)!==Pa&&(qa?qa(T,Pa):Ff(T[ge])||Rt(T,ge,La)),Gf(T,c,!0,!0),ar&&(Ra[c]=La))),Kf&&i===Ie&&l&&l.name!==Ie&&(!ar&&Wf?Qf(d,"name",Ie):(p=!0,v=function(){return Df(l,this)})),i)if(y={values:s(Ie),keys:a?v:s(Aa),entries:s(_a)},u)for(I in y)(sr||p||!(I in d))&&Rt(d,I,y[I]);else Vf({target:r,proto:!0,forced:sr||p},y);return(!ar||u)&&d[ge]!==v&&Rt(d,ge,v,{name:i}),Ra[r]=v,y}});var Va=o((ch,Ma)=>{"use strict";Ma.exports=function(e,r){return{value:e,done:r}}});var At=o((lh,Qa)=>{"use strict";var $f=$(),Pt=De(),Da=Y(),Ua=Bo(),zf=re().f,Yf=Na(),ur=Va(),Hf=ve(),Xf=_(),Ga="Array Iterator",Jf=Ua.set,Zf=Ua.getterFor(Ga);Qa.exports=Yf(Array,"Array",function(e,r){Jf(this,{type:Ga,target:$f(e),index:0,kind:r})},function(){var e=Zf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,ur(void 0,!0);switch(e.kind){case"keys":return ur(t,!1);case"values":return ur(r[t],!1)}return ur([t,r[t]],!1)},"values");var Fa=Da.Arguments=Da.Array;Pt("keys");Pt("values");Pt("entries");if(!Hf&&Xf&&Fa.name!=="values")try{zf(Fa,"name",{value:"values"})}catch(e){}});var Ka=o((ph,Ba)=>{"use strict";var ed=V(),rd=Y(),td=ed("iterator"),nd=Array.prototype;Ba.exports=function(e){return e!==void 0&&(rd.Array===e||nd[td]===e)}});var _t=o((fh,$a)=>{"use strict";var id=qt(),Wa=je(),od=Re(),ad=Y(),sd=V(),ud=sd("iterator");$a.exports=function(e){if(!od(e))return Wa(e,ud)||Wa(e,"@@iterator")||ad[id(e)]}});var Ya=o((dh,za)=>{"use strict";var cd=G(),ld=de(),pd=z(),fd=Le(),dd=_t(),vd=TypeError;za.exports=function(e,r){var t=arguments.length<2?dd(e):r;if(ld(t))return pd(cd(t,e));throw new vd(fd(e)+" is not iterable")}});var Ja=o((vh,Xa)=>{"use strict";var bd=G(),Ha=z(),md=je();Xa.exports=function(e,r,t){var n,i;Ha(e);try{if(n=md(e,"return"),!n){if(r==="throw")throw t;return t}n=bd(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return Ha(n),t}});var ns=o((bh,ts)=>{"use strict";var Td=Mr(),yd=G(),hd=z(),gd=Le(),Id=Ka(),Od=Ve(),Za=Or(),xd=Ya(),wd=_t(),es=Ja(),Ed=TypeError,cr=function(e,r){this.stopped=e,this.result=r},rs=cr.prototype;ts.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=Td(r,n),p,d,l,v,b,T,y,I=function(g){return p&&es(p,"normal",g),new cr(!0,g)},h=function(g){return i?(hd(g),s?c(g[0],g[1],I):c(g[0],g[1])):s?c(g,I):c(g)};if(a)p=e.iterator;else if(u)p=e;else{if(d=wd(e),!d)throw new Ed(gd(e)+" is not iterable");if(Id(d)){for(l=0,v=Od(e);v>l;l++)if(b=h(e[l]),b&&Za(rs,b))return b;return new cr(!1)}p=xd(e,d)}for(T=a?e.next:p.next;!(y=yd(T,p)).done;){try{b=h(y.value)}catch(g){es(p,"throw",g)}if(typeof b=="object"&&b&&Za(rs,b))return b}return new cr(!1)}});var os=o((mh,is)=>{"use strict";var Sd=_(),qd=re(),Rd=pe();is.exports=function(e,r,t){Sd?qd.f(e,r,Rd(0,t)):e[r]=t}});var as=o(()=>{"use strict";var Pd=oe(),Ad=ns(),_d=os();Pd({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Ad(r,function(n,i){_d(t,n,i)},{AS_ENTRIES:!0}),t}})});var us=o((hh,ss)=>{"use strict";At();as();var Ld=fe();ss.exports=Ld.Object.fromEntries});var ls=o((gh,cs)=>{"use strict";cs.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=o(()=>{"use strict";At();var jd=ls(),kd=E(),Cd=or(),ps=Y();for(lr in jd)Cd(kd[lr],lr),ps[lr]=ps.Array;var lr});var vs=o((xh,ds)=>{"use strict";var Nd=us();fs();ds.exports=Nd});var ms=o((wh,bs)=>{"use strict";var Md=vs();bs.exports=Md});var _s="1.0.62-dev.2bd92e6d.0";var w=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>{typeof t=="function"?t():t.unsubscribe()})}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},Ls=e=>{};var K=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:K}:n={next:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:K,error:K};let i=typeof r=="function"?{next:s=>{try{let c=r(s);c instanceof Promise&&c.catch(p=>n.next(p))}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)},a;try{a=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new w().add(()=>{switch(i.next=K,i.error=K,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return C(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var U=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{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 w().add(()=>this.subscribers.delete(n))}};var pr=class{constructor(){this.log$=new U;this.logs=[];this.log=r=>{let t=F(q({},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=>q({component:r},t))}};function js(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function ks(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function J(e){return typeof e!="undefined"&&e!==null}function ue(e){return e==null}function Cs(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Ns(e,r){if(e!=null&&e.length)throw new Error(r)}var Ms=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),p.remove()});let a=()=>{s(),i("error")},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),p.removeEventListener("load",u),p.removeEventListener("error",a)},c;t&&(c=window.setTimeout(()=>{s(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",a),p.src=e,document.head.appendChild(p)});var Ut,Vs=typeof((Ut=window.performance)==null?void 0:Ut.now)=="function"?()=>window.performance.now():()=>Date.now();var Ds=(e,r)=>(...t)=>X(void 0,null,function*(){var u;let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=yield n.next(a);i=(u=s.done)!=null?u:!1,a=s.value}catch(s){yield n.throw(s)}return a});var Fs=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let u=r;return u*=Dt(t,e),u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var dr={};Ft(dr,{clear:()=>Ws,get:()=>Gs,has:()=>Bs,isPersistent:()=>Us,remove:()=>Ks,set:()=>Qs});var O,W,fr=`vk-videoplayer-dummy-key-${Math.random()}`,Z=()=>{if(W!==void 0)return W;try{localStorage.setItem(fr,"test"),localStorage.removeItem(fr),W=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(fr),W=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)W=2;else throw r}else throw e}return W===2&&(O=new Map),W},Us=()=>Z()===0,Gs=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)}},Qs=(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:O==null||O.set(e,r);return;default:C(t)}},Bs=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}},Ks=e=>{let r=Z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:O==null||O.delete(e);return;default:C(r)}},Ws=()=>{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 Br=se(Ni(),1),ul=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Br.default)(r,-1),immediateOrigin:(0,Br.default)(r,0)}};var Kr=(l=>(l.INVARIANT="Invariant quality",l.Q_144P="144p",l.Q_240P="240p",l.Q_360P="360p",l.Q_480P="480p",l.Q_576P="576p",l.Q_720P="720p",l.Q_1080P="1080p",l.Q_1440P="1440p",l.Q_2160P="2160p",l.Q_4320P="4320p",l))(Kr||{});var P={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},cl=(e,r)=>P[e].height>P[r].height,ll=(e,r)=>P[e].height>=P[r].height,Wr=(e,r)=>P[e].height<P[r].height,pl=(e,r)=>P[e].height<=P[r].height,fl=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Wr(r,t)?1:-1)[0],Mi=Object.keys(P).sort((e,r)=>Wr(e,r)?-1:1),dl=(e,r=.02)=>[...Mi].find(n=>P[n].height*(1+r)>=e),vl=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Mi.find(i=>{let a=P[i];return a.width>=n&&a.height>=t})},bl=e=>P[e].height,$r=e=>e==="Invariant quality",ml=e=>e.every(r=>!$r(r));function Tl(e){if($r(e))throw new Error("Expected exact quality")}var yl=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=yl(a,i):t[n]=n in e?a:i}return t};var Lb=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 zr(e,r=0,t){let n,i,a,u,s,c,p=0,d=!1,l=!1,v=!0,b=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(d=!!t.leading,l="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,v="trailing"in t?!!t.trailing:v);function T(m){let A=n,B=i;return n=i=void 0,p=m,u=e.apply(B,A),u}function y(m,A){return b?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,A)}function I(m){if(b){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,s=y(xe,r),d?T(m):u}function g(m){let A=m-c,B=m-p,Ct=r-A;return l?Math.min(Ct,a-B):Ct}function jt(m){let A=m-c,B=m-p;return c===void 0||A>=r||A<0||l&&B>=a}function xe(){let m=Date.now();if(jt(m))return kt(m);s=y(xe,g(m))}function kt(m){return s=void 0,v&&n?T(m):(n=i=void 0,u)}function gs(){s!==void 0&&I(s),p=0,n=c=i=s=void 0}function Is(){return s===void 0?u:kt(Date.now())}function Os(){return s!==void 0}function we(...m){let A=Date.now(),B=jt(A);if(n=m,i=this,c=A,B){if(s===void 0)return h(c);if(l)return s=y(xe,r),T(c)}return s===void 0&&(s=y(xe,r)),u}return we.cancel=gs,we.flush=Is,we.pending=Os,we}var Yr=(e,r=0,t)=>zr(e,r,F(q(q({},{leading:!0,trailing:!0}),t),{maxWait:r}));var Fe=(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]=Fe(e[n],r):t[n]=e[n]}return t};var hl=e=>Fe(e);var gl=300,Il=(e,r=gl)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Yr(u=>{let s=u[0];if(!s)return;let c,p;s.contentBoxSize&&s.contentBoxSize[0]?(p=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,p=s.contentRect.height),J(c)&&J(p)&&t.next({width:c,height:p})},r));return a.observe(e),()=>a.disconnect()});var Ue=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let a=Ue(e[i],r-1);for(let u in a)a.hasOwnProperty(u)&&(n[i+t+u]=a[u])}else n[i]=e[i];return n};var Ol=e=>{e.removeAttribute("src"),e.load()};var Wb=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var zb=e=>{try{return new URL(e)}catch(r){return null}};var xl=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ue(t):{value:t})},Ge=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var x=class x{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];if(x.dynamicImportStatus==="failed")return this;x.dynamicImportStatus==="not_started"&&(x.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=x.dynamicImportPromise.then(()=>this.init({name:r,getParentContext:t},n))}init({name:r,getParentContext:t},n){this.span=x.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=x.dynamicImports.opentelemetryApi.trace.setSpan(x.dynamicImports.opentelemetryApi.context.active(),this.span)}loadOpentelemetry(){return X(this,null,function*(){if(x.dynamicImportStatus==="not_started"){x.dynamicImportStatus="in_progress";try{let r=new Promise((u,s)=>setTimeout(s,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,a]=yield Promise.race([t,r]);x.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:a},x.dynamicImportStatus="completed"}catch(r){x.dynamicImportStatus="failed"}}})}isComponentTracerNotInitialized(){return ue(this.span)}log(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,F(q({},Ge(t)),{type:"log"}),n))}error(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,F(q({},Ge(t)),{type:"error"}),n))}critical(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,F(q({},Ge(t)),{type:"critical"}),n))}createComponentTracer(r){let t=new x({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.childTracers.forEach(t=>t.end()),this.span.end()})}};x.dynamicImportStatus="not_started";var Q=x;var Qe=class extends Q{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let a=Q.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new Q.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,a.addSpanProcessor(new Q.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),Q.rootTracer=a.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var Be=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var Hr=class{static createRootTracer(r=!1){return r?new Qe:new Be}};var Ke=class extends U{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}};var fo=se(tt(),1);function vo(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return(0,fo.default)(e).reduce((a,[u,s])=>a.add(s.subscribe(i(u))),new w)})}function bo(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new w))}var np=e=>new f(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var ip=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var op=e=>new f(r=>{e.forEach(t=>r.next(t))});var ap=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Ye=class extends w{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function mo(e){return r=>new f(t=>r.subscribe(new nt(t,e)))}var nt=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 sp={leading:!1,trailing:!0};function To(e,r=sp){return t=>new f(n=>t.subscribe(new it(n,e,r)))}var it=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,J(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 up={leading:!0,trailing:!1};function yo(e,r=up){return t=>new f(n=>t.subscribe(new ot(n,e,r)))}var ot=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,ue(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 ho(e){return r=>new f(t=>r.subscribe(new at(t,e)))}var at=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)}};var Ro=se(So(),1);var Tp=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let u in i)if(!(0,Ro.default)(a,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},yp=(e,r)=>e instanceof Object&&r instanceof Object?Tp(e,r):e===r;function Po(e=yp){return r=>new f(t=>r.subscribe(new st(t,e)))}var qo={},st=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=qo}next(r){let t;try{t=this.lastValue===qo||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?q({},r):r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function He(e){return r=>new f(t=>r.subscribe(new ut(t,e)))}var ut=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 Ao(e){return He(()=>e)}function _o(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Lo(){return e=>new f(r=>e.subscribe(new ct(r)))}var ct=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 jo(e){return r=>new f(t=>r.subscribe(new lt(t,e)))}var lt=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)}};function ko(e){return r=>new f(t=>r.subscribe(new pt(t,e)))}var pt=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var hp=(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))(hp||{});var Xe=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,a=n.length;i<a;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,a=n.length;i<a;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},ae=class extends Xe{constructor(){super(),this.listeners||Xe.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)}},Te=class{constructor(){Object.defineProperty(this,"signal",{value:new ae,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&&(Te.prototype[Symbol.toStringTag]="AbortController",ae.prototype[Symbol.toStringTag]="AbortSignal");function Je(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 ft(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Je({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(p,d){let l;d&&d.signal&&(l=d.signal,delete d.signal);let v=new t(p,d);return l&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:l}),v},a.prototype=t.prototype);let u=r;return{fetch:(c,p)=>{let d=a&&a.prototype.isPrototypeOf(c)?c.signal:p?p.signal:void 0;if(d){let l;try{l=new DOMException("Aborted","AbortError")}catch(b){l=new Error("Aborted"),l.name="AbortError"}if(d.aborted)return Promise.reject(l);let v=new Promise((b,T)=>{d.addEventListener("abort",()=>T(l),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([v,u(c,p)])}return u(c,p)},Request:a}}var gp=()=>"fetch"in window,ye=gp()&&Je({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Co=ye?ft({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,No=ye?Co.fetch:window.fetch,Fy=ye?Co.Request:window.Request,Uy=ye?Te:window.AbortController,Gy=ye?ae:window.AbortSignal;var Ts=se(tt(),1),ys=se(ms(),1);var Vd=(l=>(l.Armenian="58",l.Azerbaijani="57",l.Belarusian="114",l.English="3",l.Kazakh="97",l.Portuguese="73",l.Russian="0",l.Spanish="4",l.Ukrainian="1",l.Uzbek="65",l.Vietnamese="75",l))(Vd||{}),Dd="vk.com",Sh=(e,r,t)=>X(void 0,null,function*(){let n=new URL(`https://${Dd}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=yield(yield No(n.toString())).json();return Fd(a,t)}),Fd=(e,r)=>(0,ys.default)((0,Ts.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Ud(n)])),Ud=e=>Array.isArray(e)?e[0]:e;var Gd=(t=>(t.RU="ru",t.EN="en",t))(Gd||{});var Qd={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Bd=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),hs=class{constructor(r){this.id=Bd();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Qd[r]}};var Lt={};Ft(Lt,{create:()=>Kd,destroy:()=>Wd,push:()=>$d,subscribe:()=>zd});var Oe=new Map,Kd=(e,r)=>Oe.set(e,r!=null?r:[]),Wd=e=>Oe.delete(e),$d=(e,r)=>{let t=Oe.get(e);t&&(typeof t=="function"?t(r):t.push(r))},zd=(e,r)=>{let t=Oe.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Oe.set(e,r)}};export{hp as ErrorCategory,Gd as InterfaceLanguage,hs as InternalsExposure,pr as Logger,f as Observable,U as Subject,w as Subscription,Ye as SubscriptionRemovable,Hr as TracerFactory,_s as VERSION,Vd as VKNumericLanguage,Ke as ValueSubject,Kr as VideoQuality,Ds as abortable,Ms as addScript,ml as areQualitiesExact,Ns as assertEmptyArray,C as assertNever,js as assertNonNullable,Cs as assertNotEmptyArray,ks as assertNullable,Tl as assertQualityIsExact,mo as buffer,Ls as checkNever,Ol as clearVideoElement,hl as cloneDeep,Fe as cloneDeepWith,vo as combine,zb as createURL,To as debounce,zr as debounceFn,ul as detectEmbed,Lt as devNull,yl as fillWithDefault,ho as filter,Po as filterChanged,Ue as flattenObject,ap as fromEvent,Fs as getExponentialDelay,fl as getHighestQuality,xl as getTraceSubscriptionMethod,ip as interval,cl as isHigher,ll as isHigherOrEqual,$r as isInvariantQuality,Wr as isLower,pl as isLowerOrEqual,J as isNonNullable,ue as isNullable,Wb as isValidURL,Sh as loadVKLangPack,He as map,Ao as mapTo,bo as merge,K as noop,Vs as now,op as observableFrom,Il as observeElementSize,_o as once,Lo as pairwise,dr as safeStorage,ko as skip,jo as tap,yo as throttle,Yr as throttleFn,Lb as timeCodeToString,np as timeout,dl as videoHeightToQuality,bl as videoQualityToHeight,vl as videoSizeToQuality};
6
+ var wa=Object.create;var we=Object.defineProperty,Sa=Object.defineProperties,qa=Object.getOwnPropertyDescriptor,Ra=Object.getOwnPropertyDescriptors,Pa=Object.getOwnPropertyNames,kt=Object.getOwnPropertySymbols,_a=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,Aa=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,Mt=(e,r,t)=>r in e?we(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,q=(e,r)=>{for(var t in r||(r={}))Vt.call(r,t)&&Mt(e,t,r[t]);if(kt)for(var t of kt(r))Aa.call(r,t)&&Mt(e,t,r[t]);return e},D=(e,r)=>Sa(e,Ra(r));var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Dt=(e,r)=>{for(var t in r)we(e,t,{get:r[t],enumerable:!0})},La=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Pa(r))!Vt.call(e,i)&&i!==t&&we(e,i,{get:()=>r[i],enumerable:!(n=qa(r,i))||n.enumerable});return e};var ue=(e,r,t)=>(t=e!=null?wa(_a(e)):{},La(r||!e||!e.__esModule?we(t,"default",{value:e,enumerable:!0}):t,e));var J=(e,r,t)=>new Promise((n,i)=>{var o=l=>{try{a(t.next(l))}catch(p){i(p)}},u=l=>{try{a(t.throw(l))}catch(p){i(p)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,u);a((t=t.apply(e,r)).next())});var w=s((dr,Gt)=>{"use strict";var ce=function(e){return e&&e.Math===Math&&e};Gt.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof global=="object"&&global)||ce(typeof dr=="object"&&dr)||function(){return this}()||Function("return this")()});var R=s((Ed,Bt)=>{"use strict";Bt.exports=function(e){try{return!!e()}catch(r){return!0}}});var pe=s((wd,Qt)=>{"use strict";var Ya=R();Qt.exports=!Ya(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Yt=s((Sd,zt)=>{"use strict";var Ha=pe(),$t=Function.prototype,Kt=$t.apply,Wt=$t.call;zt.exports=typeof Reflect=="object"&&Reflect.apply||(Ha?Wt.bind(Kt):function(){return Wt.apply(Kt,arguments)})});var C=s((qd,Jt)=>{"use strict";var Ht=pe(),Xt=Function.prototype,vr=Xt.call,Xa=Ht&&Xt.bind.bind(vr,vr);Jt.exports=Ht?Xa:function(e){return function(){return vr.apply(e,arguments)}}});var Se=s((Rd,en)=>{"use strict";var Zt=C(),Ja=Zt({}.toString),Za=Zt("".slice);en.exports=function(e){return Za(Ja(e),8,-1)}});var mr=s((Pd,rn)=>{"use strict";var eu=Se(),ru=C();rn.exports=function(e){if(eu(e)==="Function")return ru(e)}});var S=s((_d,tn)=>{"use strict";var Tr=typeof document=="object"&&document.all;tn.exports=typeof Tr=="undefined"&&Tr!==void 0?function(e){return typeof e=="function"||e===Tr}:function(e){return typeof e=="function"}});var A=s((Ad,nn)=>{"use strict";var tu=R();nn.exports=!tu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var G=s((Ld,on)=>{"use strict";var nu=pe(),qe=Function.prototype.call;on.exports=nu?qe.bind(qe):function(){return qe.apply(qe,arguments)}});var yr=s(un=>{"use strict";var sn={}.propertyIsEnumerable,an=Object.getOwnPropertyDescriptor,iu=an&&!sn.call({1:2},1);un.f=iu?function(r){var t=an(this,r);return!!t&&t.enumerable}:sn});var fe=s((Cd,ln)=>{"use strict";ln.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var pn=s((jd,cn)=>{"use strict";var ou=C(),su=R(),au=Se(),hr=Object,uu=ou("".split);cn.exports=su(function(){return!hr("z").propertyIsEnumerable(0)})?function(e){return au(e)==="String"?uu(e,""):hr(e)}:hr});var Re=s((kd,fn)=>{"use strict";fn.exports=function(e){return e==null}});var Pe=s((Md,bn)=>{"use strict";var lu=Re(),cu=TypeError;bn.exports=function(e){if(lu(e))throw new cu("Can't call method on "+e);return e}});var $=s((Vd,dn)=>{"use strict";var pu=pn(),fu=Pe();dn.exports=function(e){return pu(fu(e))}});var k=s((Fd,vn)=>{"use strict";var bu=S();vn.exports=function(e){return typeof e=="object"?e!==null:bu(e)}});var be=s((Dd,mn)=>{"use strict";mn.exports={}});var _e=s((Ud,yn)=>{"use strict";var gr=be(),Ir=w(),du=S(),Tn=function(e){return du(e)?e:void 0};yn.exports=function(e,r){return arguments.length<2?Tn(gr[e])||Tn(Ir[e]):gr[e]&&gr[e][r]||Ir[e]&&Ir[e][r]}});var Or=s((Gd,hn)=>{"use strict";var vu=C();hn.exports=vu({}.isPrototypeOf)});var xn=s((Bd,On)=>{"use strict";var mu=w(),gn=mu.navigator,In=gn&&gn.userAgent;On.exports=In?String(In):""});var _n=s((Qd,Pn)=>{"use strict";var Rn=w(),xr=xn(),En=Rn.process,wn=Rn.Deno,Sn=En&&En.versions||wn&&wn.version,qn=Sn&&Sn.v8,L,Ae;qn&&(L=qn.split("."),Ae=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!Ae&&xr&&(L=xr.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=xr.match(/Chrome\/(\d+)/),L&&(Ae=+L[1])));Pn.exports=Ae});var Er=s((Kd,Ln)=>{"use strict";var An=_n(),Tu=R(),yu=w(),hu=yu.String;Ln.exports=!!Object.getOwnPropertySymbols&&!Tu(function(){var e=Symbol("symbol detection");return!hu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&An&&An<41})});var wr=s((Wd,Nn)=>{"use strict";var gu=Er();Nn.exports=gu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Sr=s(($d,Cn)=>{"use strict";var Iu=_e(),Ou=S(),xu=Or(),Eu=wr(),wu=Object;Cn.exports=Eu?function(e){return typeof e=="symbol"}:function(e){var r=Iu("Symbol");return Ou(r)&&xu(r.prototype,wu(e))}});var Le=s((zd,jn)=>{"use strict";var Su=String;jn.exports=function(e){try{return Su(e)}catch(r){return"Object"}}});var de=s((Yd,kn)=>{"use strict";var qu=S(),Ru=Le(),Pu=TypeError;kn.exports=function(e){if(qu(e))return e;throw new Pu(Ru(e)+" is not a function")}});var Ne=s((Hd,Mn)=>{"use strict";var _u=de(),Au=Re();Mn.exports=function(e,r){var t=e[r];return Au(t)?void 0:_u(t)}});var Fn=s((Xd,Vn)=>{"use strict";var qr=G(),Rr=S(),Pr=k(),Lu=TypeError;Vn.exports=function(e,r){var t,n;if(r==="string"&&Rr(t=e.toString)&&!Pr(n=qr(t,e))||Rr(t=e.valueOf)&&!Pr(n=qr(t,e))||r!=="string"&&Rr(t=e.toString)&&!Pr(n=qr(t,e)))return n;throw new Lu("Can't convert object to primitive value")}});var ve=s((Jd,Dn)=>{"use strict";Dn.exports=!0});var Bn=s((Zd,Gn)=>{"use strict";var Un=w(),Nu=Object.defineProperty;Gn.exports=function(e,r){try{Nu(Un,e,{value:r,configurable:!0,writable:!0})}catch(t){Un[e]=r}return r}});var Ce=s((ev,Wn)=>{"use strict";var Cu=ve(),ju=w(),ku=Bn(),Qn="__core-js_shared__",Kn=Wn.exports=ju[Qn]||ku(Qn,{});(Kn.versions||(Kn.versions=[])).push({version:"3.43.0",mode:Cu?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var _r=s((rv,zn)=>{"use strict";var $n=Ce();zn.exports=function(e,r){return $n[e]||($n[e]=r||{})}});var je=s((tv,Yn)=>{"use strict";var Mu=Pe(),Vu=Object;Yn.exports=function(e){return Vu(Mu(e))}});var M=s((nv,Hn)=>{"use strict";var Fu=C(),Du=je(),Uu=Fu({}.hasOwnProperty);Hn.exports=Object.hasOwn||function(r,t){return Uu(Du(r),t)}});var Ar=s((iv,Xn)=>{"use strict";var Gu=C(),Bu=0,Qu=Math.random(),Ku=Gu(1.1.toString);Xn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ku(++Bu+Qu,36)}});var V=s((ov,Zn)=>{"use strict";var Wu=w(),$u=_r(),Jn=M(),zu=Ar(),Yu=Er(),Hu=wr(),re=Wu.Symbol,Lr=$u("wks"),Xu=Hu?re.for||re:re&&re.withoutSetter||zu;Zn.exports=function(e){return Jn(Lr,e)||(Lr[e]=Yu&&Jn(re,e)?re[e]:Xu("Symbol."+e)),Lr[e]}});var ni=s((sv,ti)=>{"use strict";var Ju=G(),ei=k(),ri=Sr(),Zu=Ne(),el=Fn(),rl=V(),tl=TypeError,nl=rl("toPrimitive");ti.exports=function(e,r){if(!ei(e)||ri(e))return e;var t=Zu(e,nl),n;if(t){if(r===void 0&&(r="default"),n=Ju(t,e,r),!ei(n)||ri(n))return n;throw new tl("Can't convert object to primitive value")}return r===void 0&&(r="number"),el(e,r)}});var Nr=s((av,ii)=>{"use strict";var il=ni(),ol=Sr();ii.exports=function(e){var r=il(e,"string");return ol(r)?r:r+""}});var jr=s((uv,si)=>{"use strict";var sl=w(),oi=k(),Cr=sl.document,al=oi(Cr)&&oi(Cr.createElement);si.exports=function(e){return al?Cr.createElement(e):{}}});var kr=s((lv,ai)=>{"use strict";var ul=A(),ll=R(),cl=jr();ai.exports=!ul&&!ll(function(){return Object.defineProperty(cl("div"),"a",{get:function(){return 7}}).a!==7})});var ci=s(li=>{"use strict";var pl=A(),fl=G(),bl=yr(),dl=fe(),vl=$(),ml=Nr(),Tl=M(),yl=kr(),ui=Object.getOwnPropertyDescriptor;li.f=pl?ui:function(r,t){if(r=vl(r),t=ml(t),yl)try{return ui(r,t)}catch(n){}if(Tl(r,t))return dl(!fl(bl.f,r,t),r[t])}});var fi=s((pv,pi)=>{"use strict";var hl=R(),gl=S(),Il=/#|\.prototype\./,me=function(e,r){var t=xl[Ol(e)];return t===wl?!0:t===El?!1:gl(r)?hl(r):!!r},Ol=me.normalize=function(e){return String(e).replace(Il,".").toLowerCase()},xl=me.data={},El=me.NATIVE="N",wl=me.POLYFILL="P";pi.exports=me});var Mr=s((fv,di)=>{"use strict";var bi=mr(),Sl=de(),ql=pe(),Rl=bi(bi.bind);di.exports=function(e,r){return Sl(e),r===void 0?e:ql?Rl(e,r):function(){return e.apply(r,arguments)}}});var Vr=s((bv,vi)=>{"use strict";var Pl=A(),_l=R();vi.exports=Pl&&_l(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var z=s((dv,mi)=>{"use strict";var Al=k(),Ll=String,Nl=TypeError;mi.exports=function(e){if(Al(e))return e;throw new Nl(Ll(e)+" is not an object")}});var te=s(yi=>{"use strict";var Cl=A(),jl=kr(),kl=Vr(),ke=z(),Ti=Nr(),Ml=TypeError,Fr=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,Dr="enumerable",Ur="configurable",Gr="writable";yi.f=Cl?kl?function(r,t,n){if(ke(r),t=Ti(t),ke(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Gr in n&&!n[Gr]){var i=Vl(r,t);i&&i[Gr]&&(r[t]=n.value,n={configurable:Ur in n?n[Ur]:i[Ur],enumerable:Dr in n?n[Dr]:i[Dr],writable:!1})}return Fr(r,t,n)}:Fr:function(r,t,n){if(ke(r),t=Ti(t),ke(n),jl)try{return Fr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Ml("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ne=s((mv,hi)=>{"use strict";var Fl=A(),Dl=te(),Ul=fe();hi.exports=Fl?function(e,r,t){return Dl.f(e,r,Ul(1,t))}:function(e,r,t){return e[r]=t,e}});var se=s((Tv,Ii)=>{"use strict";var Te=w(),Gl=Yt(),Bl=mr(),Ql=S(),Kl=ci().f,Wl=fi(),ie=be(),$l=Mr(),oe=ne(),gi=M();Ce();var zl=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 Gl(e,this,arguments)};return r.prototype=e.prototype,r};Ii.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?Te:i?Te[t]:Te[t]&&Te[t].prototype,a=n?ie:ie[t]||oe(ie,t,{})[t],l=a.prototype,p,b,c,d,v,T,y,g,h;for(d in r)p=Wl(n?d:t+(i?".":"#")+d,e.forced),b=!p&&u&&gi(u,d),T=a[d],b&&(e.dontCallGetSet?(h=Kl(u,d),y=h&&h.value):y=u[d]),v=b&&y?y:r[d],!(!p&&!o&&typeof T==typeof v)&&(e.bind&&b?g=$l(v,Te):e.wrap&&b?g=zl(v):o&&Ql(v)?g=Bl(v):g=v,(e.sham||v&&v.sham||T&&T.sham)&&oe(g,"sham",!0),oe(a,d,g),o&&(c=t+"Prototype",gi(ie,c)||oe(ie,c,{}),oe(ie[c],d,v),e.real&&l&&(p||!l[d])&&oe(l,d,v)))}});var xi=s((yv,Oi)=>{"use strict";var Yl=Math.ceil,Hl=Math.floor;Oi.exports=Math.trunc||function(r){var t=+r;return(t>0?Hl:Yl)(t)}});var Me=s((hv,Ei)=>{"use strict";var Xl=xi();Ei.exports=function(e){var r=+e;return r!==r||r===0?0:Xl(r)}});var Si=s((gv,wi)=>{"use strict";var Jl=Me(),Zl=Math.min;wi.exports=function(e){var r=Jl(e);return r>0?Zl(r,9007199254740991):0}});var Ve=s((Iv,qi)=>{"use strict";var ec=Si();qi.exports=function(e){return ec(e.length)}});var Fe=s((Ov,Ri)=>{"use strict";Ri.exports=function(){}});var Pi=s(()=>{"use strict";var rc=se(),tc=je(),nc=Ve(),ic=Me(),oc=Fe();rc({target:"Array",proto:!0},{at:function(r){var t=tc(this),n=nc(t),i=ic(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});oc("at")});var Br=s((wv,_i)=>{"use strict";var sc=_e();_i.exports=sc});var Li=s((Sv,Ai)=>{"use strict";Pi();var ac=Br();Ai.exports=ac("Array","at")});var Ci=s((qv,Ni)=>{"use strict";var uc=Li();Ni.exports=uc});var ki=s((Rv,ji)=>{"use strict";var lc=Ci();ji.exports=lc});var We=s((nT,Fi)=>{"use strict";var Sc=_r(),qc=Ar(),Vi=Sc("keys");Fi.exports=function(e){return Vi[e]||(Vi[e]=qc(e))}});var Ui=s((iT,Di)=>{"use strict";var Rc=R();Di.exports=!Rc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var $e=s((oT,Bi)=>{"use strict";var Pc=M(),_c=S(),Ac=je(),Lc=We(),Nc=Ui(),Gi=Lc("IE_PROTO"),Xr=Object,Cc=Xr.prototype;Bi.exports=Nc?Xr.getPrototypeOf:function(e){var r=Ac(e);if(Pc(r,Gi))return r[Gi];var t=r.constructor;return _c(t)&&r instanceof t?t.prototype:r instanceof Xr?Cc:null}});var Ki=s((sT,Qi)=>{"use strict";var jc=Me(),kc=Math.max,Mc=Math.min;Qi.exports=function(e,r){var t=jc(e);return t<0?kc(t+r,0):Mc(t,r)}});var Jr=s((aT,$i)=>{"use strict";var Vc=$(),Fc=Ki(),Dc=Ve(),Wi=function(e){return function(r,t,n){var i=Vc(r),o=Dc(i);if(o===0)return!e&&-1;var u=Fc(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};$i.exports={includes:Wi(!0),indexOf:Wi(!1)}});var ze=s((uT,zi)=>{"use strict";zi.exports={}});var Xi=s((lT,Hi)=>{"use strict";var Uc=C(),Zr=M(),Gc=$(),Bc=Jr().indexOf,Qc=ze(),Yi=Uc([].push);Hi.exports=function(e,r){var t=Gc(e),n=0,i=[],o;for(o in t)!Zr(Qc,o)&&Zr(t,o)&&Yi(i,o);for(;r.length>n;)Zr(t,o=r[n++])&&(~Bc(i,o)||Yi(i,o));return i}});var et=s((cT,Ji)=>{"use strict";Ji.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var rt=s((pT,Zi)=>{"use strict";var Kc=Xi(),Wc=et();Zi.exports=Object.keys||function(r){return Kc(r,Wc)}});var oo=s((fT,io)=>{"use strict";var ro=A(),$c=R(),to=C(),zc=$e(),Yc=rt(),Hc=$(),Xc=yr().f,no=to(Xc),Jc=to([].push),Zc=ro&&$c(function(){var e=Object.create(null);return e[2]=2,!no(e,2)}),eo=function(e){return function(r){for(var t=Hc(r),n=Yc(t),i=Zc&&zc(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!ro||(i?l in t:no(t,l)))&&Jc(a,e?[l,t[l]]:t[l]);return a}};io.exports={entries:eo(!0),values:eo(!1)}});var so=s(()=>{"use strict";var ep=se(),rp=oo().entries;ep({target:"Object",stat:!0},{entries:function(r){return rp(r)}})});var uo=s((vT,ao)=>{"use strict";so();var tp=be();ao.exports=tp.Object.entries});var co=s((mT,lo)=>{"use strict";var np=uo();lo.exports=np});var tt=s((TT,po)=>{"use strict";var ip=co();po.exports=ip});var go=s(()=>{"use strict";var pp=se(),fp=Jr().includes,bp=R(),dp=Fe(),vp=bp(function(){return!Array(1).includes()});pp({target:"Array",proto:!0,forced:vp},{includes:function(r){return fp(this,r,arguments.length>1?arguments[1]:void 0)}});dp("includes")});var Oo=s((WT,Io)=>{"use strict";go();var mp=Br();Io.exports=mp("Array","includes")});var Eo=s(($T,xo)=>{"use strict";var Tp=Oo();xo.exports=Tp});var So=s((zT,wo)=>{"use strict";var yp=Eo();wo.exports=yp});var H=s((Hy,Fo)=>{"use strict";Fo.exports={}});var Go=s((Xy,Uo)=>{"use strict";var xp=w(),Ep=S(),Do=xp.WeakMap;Uo.exports=Ep(Do)&&/native code/.test(String(Do))});var Wo=s((Jy,Ko)=>{"use strict";var wp=Go(),Qo=w(),Sp=k(),qp=ne(),bt=M(),dt=Ce(),Rp=We(),Pp=ze(),Bo="Object already initialized",vt=Qo.TypeError,_p=Qo.WeakMap,Ze,he,er,Ap=function(e){return er(e)?he(e):Ze(e,{})},Lp=function(e){return function(r){var t;if(!Sp(r)||(t=he(r)).type!==e)throw new vt("Incompatible receiver, "+e+" required");return t}};wp||dt.state?(N=dt.state||(dt.state=new _p),N.get=N.get,N.has=N.has,N.set=N.set,Ze=function(e,r){if(N.has(e))throw new vt(Bo);return r.facade=e,N.set(e,r),r},he=function(e){return N.get(e)||{}},er=function(e){return N.has(e)}):(X=Rp("state"),Pp[X]=!0,Ze=function(e,r){if(bt(e,X))throw new vt(Bo);return r.facade=e,qp(e,X,r),r},he=function(e){return bt(e,X)?e[X]:{}},er=function(e){return bt(e,X)});var N,X;Ko.exports={set:Ze,get:he,has:er,enforce:Ap,getterFor:Lp}});var Yo=s((Zy,zo)=>{"use strict";var mt=A(),Np=M(),$o=Function.prototype,Cp=mt&&Object.getOwnPropertyDescriptor,Tt=Np($o,"name"),jp=Tt&&function(){}.name==="something",kp=Tt&&(!mt||mt&&Cp($o,"name").configurable);zo.exports={EXISTS:Tt,PROPER:jp,CONFIGURABLE:kp}});var Xo=s(Ho=>{"use strict";var Mp=A(),Vp=Vr(),Fp=te(),Dp=z(),Up=$(),Gp=rt();Ho.f=Mp&&!Vp?Object.defineProperties:function(r,t){Dp(r);for(var n=Up(t),i=Gp(t),o=i.length,u=0,a;o>u;)Fp.f(r,a=i[u++],n[a]);return r}});var Zo=s((rh,Jo)=>{"use strict";var Bp=_e();Jo.exports=Bp("document","documentElement")});var It=s((th,ss)=>{"use strict";var Qp=z(),Kp=Xo(),es=et(),Wp=ze(),$p=Zo(),zp=jr(),Yp=We(),rs=">",ts="<",ht="prototype",gt="script",is=Yp("IE_PROTO"),yt=function(){},os=function(e){return ts+gt+rs+e+ts+"/"+gt+rs},ns=function(e){e.write(os("")),e.close();var r=e.parentWindow.Object;return e=null,r},Hp=function(){var e=zp("iframe"),r="java"+gt+":",t;return e.style.display="none",$p.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(os("document.F=Object")),t.close(),t.F},rr,tr=function(){try{rr=new ActiveXObject("htmlfile")}catch(r){}tr=typeof document!="undefined"?document.domain&&rr?ns(rr):Hp():ns(rr);for(var e=es.length;e--;)delete tr[ht][es[e]];return tr()};Wp[is]=!0;ss.exports=Object.create||function(r,t){var n;return r!==null?(yt[ht]=Qp(r),n=new yt,yt[ht]=null,n[is]=r):n=tr(),t===void 0?n:Kp.f(n,t)}});var Ot=s((nh,as)=>{"use strict";var Xp=ne();as.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Xp(e,r,t),e}});var St=s((ih,cs)=>{"use strict";var Jp=R(),Zp=S(),ef=k(),rf=It(),us=$e(),tf=Ot(),nf=V(),of=ve(),wt=nf("iterator"),ls=!1,F,xt,Et;[].keys&&(Et=[].keys(),"next"in Et?(xt=us(us(Et)),xt!==Object.prototype&&(F=xt)):ls=!0);var sf=!ef(F)||Jp(function(){var e={};return F[wt].call(e)!==e});sf?F={}:of&&(F=rf(F));Zp(F[wt])||tf(F,wt,function(){return this});cs.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:ls}});var nr=s((oh,fs)=>{"use strict";var af=V(),uf=af("toStringTag"),ps={};ps[uf]="z";fs.exports=String(ps)==="[object z]"});var qt=s((sh,bs)=>{"use strict";var lf=nr(),cf=S(),ir=Se(),pf=V(),ff=pf("toStringTag"),bf=Object,df=ir(function(){return arguments}())==="Arguments",vf=function(e,r){try{return e[r]}catch(t){}};bs.exports=lf?ir:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=vf(r=bf(e),ff))=="string"?t:df?ir(r):(n=ir(r))==="Object"&&cf(r.callee)?"Arguments":n}});var vs=s((ah,ds)=>{"use strict";var mf=nr(),Tf=qt();ds.exports=mf?{}.toString:function(){return"[object "+Tf(this)+"]"}});var or=s((uh,Ts)=>{"use strict";var yf=nr(),hf=te().f,gf=ne(),If=M(),Of=vs(),xf=V(),ms=xf("toStringTag");Ts.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(If(i,ms)||hf(i,ms,{configurable:!0,value:r}),n&&!yf&&gf(i,"toString",Of))}});var hs=s((lh,ys)=>{"use strict";var Ef=St().IteratorPrototype,wf=It(),Sf=fe(),qf=or(),Rf=H(),Pf=function(){return this};ys.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=wf(Ef,{next:Sf(+!n,t)}),qf(e,i,!1,!0),Rf[i]=Pf,e}});var Is=s((ch,gs)=>{"use strict";var _f=C(),Af=de();gs.exports=function(e,r,t){try{return _f(Af(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var xs=s((ph,Os)=>{"use strict";var Lf=k();Os.exports=function(e){return Lf(e)||e===null}});var ws=s((fh,Es)=>{"use strict";var Nf=xs(),Cf=String,jf=TypeError;Es.exports=function(e){if(Nf(e))return e;throw new jf("Can't set "+Cf(e)+" as a prototype")}});var qs=s((bh,Ss)=>{"use strict";var kf=Is(),Mf=k(),Vf=Pe(),Ff=ws();Ss.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=kf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Vf(i),Ff(o),Mf(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Vs=s((dh,Ms)=>{"use strict";var Df=se(),Uf=G(),sr=ve(),js=Yo(),Gf=S(),Bf=hs(),Rs=$e(),Ps=qs(),Qf=or(),Kf=ne(),Rt=Ot(),Wf=V(),_s=H(),ks=St(),$f=js.PROPER,zf=js.CONFIGURABLE,As=ks.IteratorPrototype,ar=ks.BUGGY_SAFARI_ITERATORS,ge=Wf("iterator"),Ls="keys",Ie="values",Ns="entries",Cs=function(){return this};Ms.exports=function(e,r,t,n,i,o,u){Bf(t,r,n);var a=function(h){if(h===i&&d)return d;if(!ar&&h&&h in b)return b[h];switch(h){case Ls:return function(){return new t(this,h)};case Ie:return function(){return new t(this,h)};case Ns:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,b=e.prototype,c=b[ge]||b["@@iterator"]||i&&b[i],d=!ar&&c||a(i),v=r==="Array"&&b.entries||c,T,y,g;if(v&&(T=Rs(v.call(new e)),T!==Object.prototype&&T.next&&(!sr&&Rs(T)!==As&&(Ps?Ps(T,As):Gf(T[ge])||Rt(T,ge,Cs)),Qf(T,l,!0,!0),sr&&(_s[l]=Cs))),$f&&i===Ie&&c&&c.name!==Ie&&(!sr&&zf?Kf(b,"name",Ie):(p=!0,d=function(){return Uf(c,this)})),i)if(y={values:a(Ie),keys:o?d:a(Ls),entries:a(Ns)},u)for(g in y)(ar||p||!(g in b))&&Rt(b,g,y[g]);else Df({target:r,proto:!0,forced:ar||p},y);return(!sr||u)&&b[ge]!==d&&Rt(b,ge,d,{name:i}),_s[r]=d,y}});var Ds=s((vh,Fs)=>{"use strict";Fs.exports=function(e,r){return{value:e,done:r}}});var _t=s((mh,Ks)=>{"use strict";var Yf=$(),Pt=Fe(),Us=H(),Bs=Wo(),Hf=te().f,Xf=Vs(),ur=Ds(),Jf=ve(),Zf=A(),Qs="Array Iterator",eb=Bs.set,rb=Bs.getterFor(Qs);Ks.exports=Xf(Array,"Array",function(e,r){eb(this,{type:Qs,target:Yf(e),index:0,kind:r})},function(){var e=rb(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,ur(void 0,!0);switch(e.kind){case"keys":return ur(t,!1);case"values":return ur(r[t],!1)}return ur([t,r[t]],!1)},"values");var Gs=Us.Arguments=Us.Array;Pt("keys");Pt("values");Pt("entries");if(!Jf&&Zf&&Gs.name!=="values")try{Hf(Gs,"name",{value:"values"})}catch(e){}});var $s=s((Th,Ws)=>{"use strict";var tb=V(),nb=H(),ib=tb("iterator"),ob=Array.prototype;Ws.exports=function(e){return e!==void 0&&(nb.Array===e||ob[ib]===e)}});var At=s((yh,Ys)=>{"use strict";var sb=qt(),zs=Ne(),ab=Re(),ub=H(),lb=V(),cb=lb("iterator");Ys.exports=function(e){if(!ab(e))return zs(e,cb)||zs(e,"@@iterator")||ub[sb(e)]}});var Xs=s((hh,Hs)=>{"use strict";var pb=G(),fb=de(),bb=z(),db=Le(),vb=At(),mb=TypeError;Hs.exports=function(e,r){var t=arguments.length<2?vb(e):r;if(fb(t))return bb(pb(t,e));throw new mb(db(e)+" is not iterable")}});var ea=s((gh,Zs)=>{"use strict";var Tb=G(),Js=z(),yb=Ne();Zs.exports=function(e,r,t){var n,i;Js(e);try{if(n=yb(e,"return"),!n){if(r==="throw")throw t;return t}n=Tb(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return Js(n),t}});var oa=s((Ih,ia)=>{"use strict";var hb=Mr(),gb=G(),Ib=z(),Ob=Le(),xb=$s(),Eb=Ve(),ra=Or(),wb=Xs(),Sb=At(),ta=ea(),qb=TypeError,lr=function(e,r){this.stopped=e,this.result=r},na=lr.prototype;ia.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),l=hb(r,n),p,b,c,d,v,T,y,g=function(I){return p&&ta(p,"normal"),new lr(!0,I)},h=function(I){return i?(Ib(I),a?l(I[0],I[1],g):l(I[0],I[1])):a?l(I,g):l(I)};if(o)p=e.iterator;else if(u)p=e;else{if(b=Sb(e),!b)throw new qb(Ob(e)+" is not iterable");if(xb(b)){for(c=0,d=Eb(e);d>c;c++)if(v=h(e[c]),v&&ra(na,v))return v;return new lr(!1)}p=wb(e,b)}for(T=o?e.next:p.next;!(y=gb(T,p)).done;){try{v=h(y.value)}catch(I){ta(p,"throw",I)}if(typeof v=="object"&&v&&ra(na,v))return v}return new lr(!1)}});var aa=s((Oh,sa)=>{"use strict";var Rb=A(),Pb=te(),_b=fe();sa.exports=function(e,r,t){Rb?Pb.f(e,r,_b(0,t)):e[r]=t}});var ua=s(()=>{"use strict";var Ab=se(),Lb=oa(),Nb=aa();Ab({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Lb(r,function(n,i){Nb(t,n,i)},{AS_ENTRIES:!0}),t}})});var ca=s((wh,la)=>{"use strict";_t();ua();var Cb=be();la.exports=Cb.Object.fromEntries});var fa=s((Sh,pa)=>{"use strict";pa.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 da=s(()=>{"use strict";_t();var jb=fa(),kb=w(),Mb=or(),ba=H();for(cr in jb)Mb(kb[cr],cr),ba[cr]=ba.Array;var cr});var ma=s((Ph,va)=>{"use strict";var Vb=ca();da();va.exports=Vb});var ya=s((_h,Ta)=>{"use strict";var Fb=ma();Ta.exports=Fb});var Na="1.0.62-dev.4cc026f5.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 j=e=>{throw new Error(`${e} is value of unexpected type`)},Ca=e=>{};var K=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:K}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:K,error:K};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=K,i.error=K,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return j(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var U=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{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 pr=class{constructor(){this.log$=new U;this.logs=[];this.log=r=>{let t=D(q({},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=>q({component:r},t))}};function ja(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function ka(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function Z(e){return typeof e!="undefined"&&e!==null}function le(e){return e==null}function Ma(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Va(e,r){if(e!=null&&e.length)throw new Error(r)}var Fa=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var Ut,Da=typeof((Ut=window.performance)==null?void 0:Ut.now)=="function"?()=>window.performance.now():()=>Date.now();var Ua=(e,r)=>(...t)=>J(null,null,function*(){var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=yield n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){yield n.throw(a)}return o});var Ga=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=Ft(t,e),u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var br={};Dt(br,{clear:()=>za,get:()=>Qa,has:()=>Wa,isPersistent:()=>Ba,remove:()=>$a,set:()=>Ka});var O,W,fr=`vk-videoplayer-dummy-key-${Math.random()}`,ee=()=>{if(W!==void 0)return W;try{localStorage.setItem(fr,"test"),localStorage.removeItem(fr),W=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(fr),W=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)W=2;else throw r}else throw e}return W===2&&(O=new Map),W},Ba=()=>ee()===0,Qa=e=>{var t,n;let r=ee();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:j(r)}},Ka=(e,r)=>{let t=ee();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:O==null||O.set(e,r);return;default:j(t)}},Wa=e=>{var t;let r=ee();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 j(r),!1}},$a=e=>{let r=ee();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:O==null||O.delete(e);return;default:j(r)}},za=()=>{let e=ee();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:j(e)}};var Qr=ue(ki(),1),cc=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Qr.default)(r,-1),immediateOrigin:(0,Qr.default)(r,0)}};var Kr=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Kr||{});var P={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},pc=(e,r)=>P[e].height>P[r].height,fc=(e,r)=>P[e].height>=P[r].height,Wr=(e,r)=>P[e].height<P[r].height,bc=(e,r)=>P[e].height<=P[r].height,dc=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Wr(r,t)?1:-1)[0],Mi=Object.keys(P).sort((e,r)=>Wr(e,r)?-1:1),vc=(e,r=.02)=>[...Mi].find(n=>P[n].height*(1+r)>=e),mc=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Mi.find(i=>{let o=P[i];return o.width>=n&&o.height>=t})},Tc=e=>P[e].height,$r=e=>e==="Invariant quality",yc=e=>e.every(r=>!$r(r));function hc(e){if($r(e))throw new Error("Expected exact quality")}var gc=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=gc(o,i):t[n]=n in e?o:i}return t};var Cv=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 zr(e,r=0,t){let n,i,o,u,a,l,p=0,b=!1,c=!1,d=!0,v=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,d="trailing"in t?!!t.trailing:d);function T(m){let _=n,Q=i;return n=i=void 0,p=m,u=e.apply(Q,_),u}function y(m,_){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,_)}function g(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=y(xe,r),b?T(m):u}function I(m){let _=m-l,Q=m-p,jt=r-_;return c?Math.min(jt,o-Q):jt}function Nt(m){let _=m-l,Q=m-p;return l===void 0||_>=r||_<0||c&&Q>=o}function xe(){let m=Date.now();if(Nt(m))return Ct(m);a=y(xe,I(m))}function Ct(m){return a=void 0,d&&n?T(m):(n=i=void 0,u)}function Oa(){a!==void 0&&g(a),p=0,n=l=i=a=void 0}function xa(){return a===void 0?u:Ct(Date.now())}function Ea(){return a!==void 0}function Ee(...m){let _=Date.now(),Q=Nt(_);if(n=m,i=this,l=_,Q){if(a===void 0)return h(l);if(c)return a=y(xe,r),T(l)}return a===void 0&&(a=y(xe,r)),u}return Ee.cancel=Oa,Ee.flush=xa,Ee.pending=Ea,Ee}var Yr=(e,r=0,t)=>zr(e,r,D(q(q({},{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 Ic=e=>De(e);var Oc=300,xc=(e,r=Oc)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Yr(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),Z(l)&&Z(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var Ue=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=Ue(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var Ec=e=>{e.removeAttribute("src"),e.load()};var zv=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Hv=e=>{try{return new URL(e)}catch(r){return null}};var wc=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ue(t):{value:t})},Ge=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var x=class x{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];if(x.dynamicImportStatus==="failed")return this;x.dynamicImportStatus==="not_started"&&(x.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=x.dynamicImportPromise.then(()=>this.init({name:r,getParentContext:t},n))}init({name:r,getParentContext:t},n){this.span=x.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=x.dynamicImports.opentelemetryApi.trace.setSpan(x.dynamicImports.opentelemetryApi.context.active(),this.span)}loadOpentelemetry(){return J(this,null,function*(){if(x.dynamicImportStatus==="not_started"){x.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=yield Promise.race([t,r]);x.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},x.dynamicImportStatus="completed"}catch(r){x.dynamicImportStatus="failed"}}})}isComponentTracerNotInitialized(){return le(this.span)}log(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,D(q({},Ge(t)),{type:"log"}),n))}error(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,D(q({},Ge(t)),{type:"error"}),n))}critical(r,t){let n=Date.now();this.initPromise.then(i=>this.span.addEvent(r,D(q({},Ge(t)),{type:"critical"}),n))}createComponentTracer(r){let t=new x({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.childTracers.forEach(t=>t.end()),this.span.end()})}};x.dynamicImportStatus="not_started";var B=x;var Be=class extends B{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=B.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new B.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new B.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),B.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var Qe=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var Hr=class{static createRootTracer(r=!1){return r?new Be:new Qe}};var Ke=class extends U{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}};var fo=ue(tt(),1);function bo(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return(0,fo.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new E)})}function vo(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var op=e=>new f(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var sp=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var ap=e=>new f(r=>{e.forEach(t=>r.next(t))});var up=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Ye=class extends E{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function mo(e){return r=>new f(t=>r.subscribe(new nt(t,e)))}var nt=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 lp={leading:!1,trailing:!0};function To(e,r=lp){return t=>new f(n=>t.subscribe(new it(n,e,r)))}var it=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Z(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var cp={leading:!0,trailing:!1};function yo(e,r=cp){return t=>new f(n=>t.subscribe(new ot(n,e,r)))}var ot=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,le(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 ho(e){return r=>new f(t=>r.subscribe(new st(t,e)))}var st=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)}};var Ro=ue(So(),1);var hp=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,Ro.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},gp=(e,r)=>e instanceof Object&&r instanceof Object?hp(e,r):e===r;function Po(e=gp){return r=>new f(t=>r.subscribe(new at(t,e)))}var qo={},at=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=qo}next(r){let t;try{t=this.lastValue===qo||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?q({},r):r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function He(e){return r=>new f(t=>r.subscribe(new ut(t,e)))}var ut=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 _o(e){return He(()=>e)}function Ao(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Lo(){return e=>new f(r=>e.subscribe(new lt(r)))}var lt=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 No(e){return r=>new f(t=>r.subscribe(new ct(t,e)))}var ct=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)}};function Co(e){return r=>new f(t=>r.subscribe(new pt(t,e)))}var pt=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ip=(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))(Ip||{});var{NativeAbortSignal:jy,NativeAbortController:ky}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function jo(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function ko(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var Xe=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},ae=class extends Xe{constructor(){super(),this.listeners||Xe.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)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new Y;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new Y;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},Y=class{constructor(){Object.defineProperty(this,"signal",{value:new ae,writable:!0,configurable:!0})}abort(r){let t=ko(r),n=jo(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(Y.prototype[Symbol.toStringTag]="AbortController",ae.prototype[Symbol.toStringTag]="AbortSignal");function Je(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 ft(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Je({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(p,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let d=new t(p,b);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let b=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let d=new Promise((v,T)=>{b.addEventListener("abort",()=>T(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([d,u(l,p)])}return u(l,p)},Request:o}}var Op=()=>"fetch"in window,ye=Op()&&Je({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Mo=ye?ft({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Vo=ye?Mo.fetch:window.fetch,Wy=ye?Mo.Request:window.Request,$y=ye?Y:window.AbortController,zy=ye?ae:window.AbortSignal;var ha=ue(tt(),1),ga=ue(ya(),1);var Db=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(Db||{}),Ub="vk.com",Lh=(e,r,t)=>J(null,null,function*(){let n=new URL(`https://${Ub}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=yield(yield Vo(n.toString())).json();return Gb(o,t)}),Gb=(e,r)=>(0,ga.default)((0,ha.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Bb(n)])),Bb=e=>Array.isArray(e)?e[0]:e;var Qb=(t=>(t.RU="ru",t.EN="en",t))(Qb||{});var Kb={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Wb=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Ia=class{constructor(r){this.id=Wb();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Kb[r]}};var Lt={};Dt(Lt,{create:()=>$b,destroy:()=>zb,push:()=>Yb,subscribe:()=>Hb});var Oe=new Map,$b=(e,r)=>Oe.set(e,r!=null?r:[]),zb=e=>Oe.delete(e),Yb=(e,r)=>{let t=Oe.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Hb=(e,r)=>{let t=Oe.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Oe.set(e,r)}};export{Ip as ErrorCategory,Qb as InterfaceLanguage,Ia as InternalsExposure,pr as Logger,f as Observable,U as Subject,E as Subscription,Ye as SubscriptionRemovable,Hr as TracerFactory,Na as VERSION,Db as VKNumericLanguage,Ke as ValueSubject,Kr as VideoQuality,Ua as abortable,Fa as addScript,yc as areQualitiesExact,Va as assertEmptyArray,j as assertNever,ja as assertNonNullable,Ma as assertNotEmptyArray,ka as assertNullable,hc as assertQualityIsExact,mo as buffer,Ca as checkNever,Ec as clearVideoElement,Ic as cloneDeep,De as cloneDeepWith,bo as combine,Hv as createURL,To as debounce,zr as debounceFn,cc as detectEmbed,Lt as devNull,gc as fillWithDefault,ho as filter,Po as filterChanged,Ue as flattenObject,up as fromEvent,Ga as getExponentialDelay,dc as getHighestQuality,wc as getTraceSubscriptionMethod,sp as interval,pc as isHigher,fc as isHigherOrEqual,$r as isInvariantQuality,Wr as isLower,bc as isLowerOrEqual,Z as isNonNullable,le as isNullable,zv as isValidURL,Lh as loadVKLangPack,He as map,_o as mapTo,vo as merge,K as noop,Da as now,ap as observableFrom,xc as observeElementSize,Ao as once,Lo as pairwise,br as safeStorage,Co as skip,No as tap,yo as throttle,Yr as throttleFn,Cv as timeCodeToString,op as timeout,vc as videoHeightToQuality,Tc as videoQualityToHeight,mc as videoSizeToQuality};