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