@vkontakte/videoplayer 1.1.42 → 1.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.42
3
- * Thu, 12 Sep 2024 14:31:00 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-42/doc/
2
+ * @vkontakte/videoplayer v1.1.43
3
+ * Thu, 12 Sep 2024 15:14:21 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-43/doc/
5
5
  */
6
- "use strict";var Q_=Object.create;var Kl=Object.defineProperty,Y_=Object.defineProperties,Z_=Object.getOwnPropertyDescriptor,X_=Object.getOwnPropertyDescriptors,J_=Object.getOwnPropertyNames,Wc=Object.getOwnPropertySymbols,x_=Object.getPrototypeOf,jc=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable;var Ms=(i,e,t)=>e in i?Kl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,lt=(i,e)=>{for(var t in e||(e={}))jc.call(e,t)&&Ms(i,t,e[t]);if(Wc)for(var t of Wc(e))$_.call(e,t)&&Ms(i,t,e[t]);return i},Bt=(i,e)=>Y_(i,X_(e));var eh=(i,e)=>{for(var t in e)Kl(i,t,{get:e[t],enumerable:!0})},Gc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of J_(e))!jc.call(i,o)&&o!==t&&Kl(i,o,{get:()=>e[o],enumerable:!(n=Z_(e,o))||n.enumerable});return i};var Qc=(i,e,t)=>(t=i!=null?Q_(x_(i)):{},Gc(e||!i||!i.__esModule?Kl(t,"default",{value:i,enumerable:!0}):t,i)),th=i=>Gc(Kl({},"__esModule",{value:!0}),i);var Ki=(i,e,t)=>Ms(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});var i8={};eh(i8,{GridTypes:()=>yo,InterfaceLanguage:()=>Ol.InterfaceLanguage,VERSION:()=>Ho,VKNumericLanguage:()=>Ol.VKNumericLanguage,VideoFormat:()=>Ls.VideoFormat,VideoQuality:()=>Ls.VideoQuality,loadVKLangPack:()=>Ol.loadVKLangPack,registerPlayerWebComponent:()=>t8});module.exports=th(i8);function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function Vs(i){return i()}function sr(){return Object.create(null)}function nt(i){i.forEach(Vs)}function Vi(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var rr;function Rs(i,e){return i===e?!0:(rr||(rr=document.createElement("a")),rr.href=e,i===rr.href)}function Yc(i){return Object.keys(i).length===0}function Xt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Xt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Xt(e,t))}function Ae(i,e,t,n){if(i){let o=Zc(i,e,t,n);return i[0](o)}}function Zc(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Zc(e,t,n,r);i.p(l,o)}}function Re(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Xc(i){return i==null?"":i}var qo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var ar=class i{constructor(e){Ki(this,"_listeners","WeakMap"in qo?new WeakMap:void 0);Ki(this,"_observer");Ki(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};ar.entries="WeakMap"in qo?new WeakMap:void 0;var Jc=!1;function xc(){Jc=!0}function $c(){Jc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=ef(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,oh(n,o)}}function ef(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function oh(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ri(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function mt(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Jt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)c(i,t,e[t])}function tf(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function ki(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var ur;function lh(){if(ur===void 0){ur=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){ur=!0}}return ur}function sl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=lh(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function nf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bn(i,e){return new i(e)}var vo;function so(i){vo=i}function al(){if(!vo)throw new Error("Function called outside component initialization");return vo}function Ot(i){al().$$.on_mount.push(i)}function Zn(i){al().$$.on_destroy.push(i)}function ul(i,e){return al().$$.context.set(i,e),e}function cl(i){return al().$$.context.get(i)}function Wl(){return al().$$.context}function Fn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Do=[];var ge=[],dl=[],qs=[],lf=Promise.resolve(),Ds=!1;function Ns(){Ds||(Ds=!0,lf.then(cr))}function Xn(){return Ns(),lf}function Jn(i){dl.push(i)}function He(i){qs.push(i)}var Bs=new Set,fl=0;function cr(){if(fl!==0)return;let i=vo;do{try{for(;fl<Do.length;){let e=Do[fl];fl++,so(e),fh(e.$$)}}catch(e){throw Do.length=0,fl=0,e}for(so(null),Do.length=0,fl=0;ge.length;)ge.pop()();for(let e=0;e<dl.length;e+=1){let t=dl[e];Bs.has(t)||(Bs.add(t),t())}dl.length=0}while(Do.length);for(;qs.length;)qs.pop()();Ds=!1,Bs.clear(),so(i)}function fh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Jn)}}function rf(i){let e=[],t=[];dl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),dl=e}var fr=new Set,No;function fe(){No={r:0,c:[],p:No}}function de(){No.r||nt(No.c),No=No.p}function d(i,e){i&&i.i&&(fr.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(fr.has(i))return;fr.add(i),No.c.push(()=>{fr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function At(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function sf(i){return typeof i=="object"&&i!==null?i:{}}var dh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],mh=new Set([...dh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Jn(()=>{let r=i.$$.on_mount.map(Vs).filter(Vi);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Jn)}function R(i,e){let t=i.$$;t.fragment!==null&&(rf(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function _h(i,e){i.$$.dirty[0]===-1&&(Do.push(i),Ns(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=vo;so(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:sr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:sr(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&_h(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){xc();let m=tf(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),$c(),cr()}so(s)}var hh;typeof HTMLElement=="function"&&(hh=class extends HTMLElement{constructor(e,t,n){super();Ki(this,"$$ctor");Ki(this,"$$s");Ki(this,"$$c");Ki(this,"$$cn",!1);Ki(this,"$$d",{});Ki(this,"$$r",!1);Ki(this,"$$p_d",{});Ki(this,"$$l",{});Ki(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&k(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=nf(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Os(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Bt(lt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Os(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Os(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Os(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){Ki(this,"$$");Ki(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Vi(t))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Yc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var af="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(af);var hq=require("@vkontakte/videoplayer-core"),$n=require("@vkontakte/videoplayer-shared"),n_=require("@vkontakte/videoplayer-statistics");var ml=require("@vkontakte/videoplayer-shared");var gh={isMobile:void 0,defaultLanguage:ml.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ml.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},uf=i=>(0,ml.fillWithDefault)(i,gh),cf=i=>ul("ui-config",i),Kt=()=>cl("ui-config");var jl="vk_player_debug_panel_opened";var ff="videoplayer",df="videoplayer";var to={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},mf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),pf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),_f=new Set(["ShiftRight","ShiftLeft"]);var hf=["TIMELINE"],Gl=[...hf,"GRAPH_BUTTON"],Fs=[...hf,"PLAY_BUTTON"],dr=[...Gl,"PLAY_BUTTON"];var yo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(yo||{}),Fo={xs:0,s:1,m:2,l:3,xl:4};var pl=[];function Gn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!pl.length;for(let u of n)u[1](),pl.push(u,i);if(s){for(let u=0;u<pl.length;u+=2)pl[u][0](pl[u+1]);pl.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Bi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Gn(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Vi(g)?g:Se},w=o.map((g,C)=>Xt(g,v=>{u[C]=v,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Ql=require("@vkontakte/videoplayer-shared"),gf=require("@vkontakte/videoplayer-core"),bf=require("@vkontakte/videoplayer-statistics");var mr="prod",Ho="1.1.42";var zo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var vf=Symbol("storeContext"),yf=Symbol("microStoresContext"),wf=(i,e)=>{ul(vf,i),ul(yf,e),mr==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=cl(vf);return(0,Ql.assertNonNullable)(i,"Store context is empty!"),i},Qn=()=>{let i=cl(yf);return(0,Ql.assertNonNullable)(i,"MicroStores context is empty!"),i},It=(i,e)=>Hs(i,i.getValue(),e),Hs=(i,e,t)=>Gn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),kf=(i,e,t)=>{var I,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ho} (core: ${gf.VERSION}, stat: ${bf.VERSION}, shared: ${Ql.VERSION})`,f=$e(t.state.errorLog$),m=f.length?`
6
+ "use strict";var Q_=Object.create;var Kl=Object.defineProperty,Y_=Object.defineProperties,Z_=Object.getOwnPropertyDescriptor,X_=Object.getOwnPropertyDescriptors,J_=Object.getOwnPropertyNames,Wc=Object.getOwnPropertySymbols,x_=Object.getPrototypeOf,jc=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable;var Ms=(i,e,t)=>e in i?Kl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,lt=(i,e)=>{for(var t in e||(e={}))jc.call(e,t)&&Ms(i,t,e[t]);if(Wc)for(var t of Wc(e))$_.call(e,t)&&Ms(i,t,e[t]);return i},Bt=(i,e)=>Y_(i,X_(e));var eh=(i,e)=>{for(var t in e)Kl(i,t,{get:e[t],enumerable:!0})},Gc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of J_(e))!jc.call(i,o)&&o!==t&&Kl(i,o,{get:()=>e[o],enumerable:!(n=Z_(e,o))||n.enumerable});return i};var Qc=(i,e,t)=>(t=i!=null?Q_(x_(i)):{},Gc(e||!i||!i.__esModule?Kl(t,"default",{value:i,enumerable:!0}):t,i)),th=i=>Gc(Kl({},"__esModule",{value:!0}),i);var Ki=(i,e,t)=>Ms(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});var i8={};eh(i8,{GridTypes:()=>yo,InterfaceLanguage:()=>Ol.InterfaceLanguage,VERSION:()=>Ho,VKNumericLanguage:()=>Ol.VKNumericLanguage,VideoFormat:()=>Ls.VideoFormat,VideoQuality:()=>Ls.VideoQuality,loadVKLangPack:()=>Ol.loadVKLangPack,registerPlayerWebComponent:()=>t8});module.exports=th(i8);function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function Vs(i){return i()}function sr(){return Object.create(null)}function nt(i){i.forEach(Vs)}function Vi(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var rr;function Rs(i,e){return i===e?!0:(rr||(rr=document.createElement("a")),rr.href=e,i===rr.href)}function Yc(i){return Object.keys(i).length===0}function Xt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Xt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Xt(e,t))}function Ae(i,e,t,n){if(i){let o=Zc(i,e,t,n);return i[0](o)}}function Zc(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Zc(e,t,n,r);i.p(l,o)}}function Re(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Xc(i){return i==null?"":i}var qo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var ar=class i{constructor(e){Ki(this,"_listeners","WeakMap"in qo?new WeakMap:void 0);Ki(this,"_observer");Ki(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};ar.entries="WeakMap"in qo?new WeakMap:void 0;var Jc=!1;function xc(){Jc=!0}function $c(){Jc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=ef(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,oh(n,o)}}function ef(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function oh(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ri(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function mt(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Jt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)c(i,t,e[t])}function tf(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function ki(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var ur;function lh(){if(ur===void 0){ur=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){ur=!0}}return ur}function sl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=lh(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function nf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bn(i,e){return new i(e)}var vo;function so(i){vo=i}function al(){if(!vo)throw new Error("Function called outside component initialization");return vo}function Ot(i){al().$$.on_mount.push(i)}function Zn(i){al().$$.on_destroy.push(i)}function ul(i,e){return al().$$.context.set(i,e),e}function cl(i){return al().$$.context.get(i)}function Wl(){return al().$$.context}function Fn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Do=[];var ge=[],dl=[],qs=[],lf=Promise.resolve(),Ds=!1;function Ns(){Ds||(Ds=!0,lf.then(cr))}function Xn(){return Ns(),lf}function Jn(i){dl.push(i)}function He(i){qs.push(i)}var Bs=new Set,fl=0;function cr(){if(fl!==0)return;let i=vo;do{try{for(;fl<Do.length;){let e=Do[fl];fl++,so(e),fh(e.$$)}}catch(e){throw Do.length=0,fl=0,e}for(so(null),Do.length=0,fl=0;ge.length;)ge.pop()();for(let e=0;e<dl.length;e+=1){let t=dl[e];Bs.has(t)||(Bs.add(t),t())}dl.length=0}while(Do.length);for(;qs.length;)qs.pop()();Ds=!1,Bs.clear(),so(i)}function fh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Jn)}}function rf(i){let e=[],t=[];dl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),dl=e}var fr=new Set,No;function fe(){No={r:0,c:[],p:No}}function de(){No.r||nt(No.c),No=No.p}function d(i,e){i&&i.i&&(fr.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(fr.has(i))return;fr.add(i),No.c.push(()=>{fr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function At(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function sf(i){return typeof i=="object"&&i!==null?i:{}}var dh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],mh=new Set([...dh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Jn(()=>{let r=i.$$.on_mount.map(Vs).filter(Vi);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Jn)}function R(i,e){let t=i.$$;t.fragment!==null&&(rf(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function _h(i,e){i.$$.dirty[0]===-1&&(Do.push(i),Ns(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=vo;so(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:sr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:sr(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&_h(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){xc();let m=tf(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),$c(),cr()}so(s)}var hh;typeof HTMLElement=="function"&&(hh=class extends HTMLElement{constructor(e,t,n){super();Ki(this,"$$ctor");Ki(this,"$$s");Ki(this,"$$c");Ki(this,"$$cn",!1);Ki(this,"$$d",{});Ki(this,"$$r",!1);Ki(this,"$$p_d",{});Ki(this,"$$l",{});Ki(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&k(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=nf(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Os(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Bt(lt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Os(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Os(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Os(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){Ki(this,"$$");Ki(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Vi(t))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Yc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var af="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(af);var hq=require("@vkontakte/videoplayer-core"),$n=require("@vkontakte/videoplayer-shared"),n_=require("@vkontakte/videoplayer-statistics");var ml=require("@vkontakte/videoplayer-shared");var gh={isMobile:void 0,defaultLanguage:ml.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ml.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},uf=i=>(0,ml.fillWithDefault)(i,gh),cf=i=>ul("ui-config",i),Kt=()=>cl("ui-config");var jl="vk_player_debug_panel_opened";var ff="videoplayer",df="videoplayer";var to={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},mf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),pf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),_f=new Set(["ShiftRight","ShiftLeft"]);var hf=["TIMELINE"],Gl=[...hf,"GRAPH_BUTTON"],Fs=[...hf,"PLAY_BUTTON"],dr=[...Gl,"PLAY_BUTTON"];var yo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(yo||{}),Fo={xs:0,s:1,m:2,l:3,xl:4};var pl=[];function Gn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!pl.length;for(let u of n)u[1](),pl.push(u,i);if(s){for(let u=0;u<pl.length;u+=2)pl[u][0](pl[u+1]);pl.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Bi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Gn(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Vi(g)?g:Se},w=o.map((g,C)=>Xt(g,v=>{u[C]=v,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Ql=require("@vkontakte/videoplayer-shared"),gf=require("@vkontakte/videoplayer-core"),bf=require("@vkontakte/videoplayer-statistics");var mr="prod",Ho="1.1.43";var zo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var vf=Symbol("storeContext"),yf=Symbol("microStoresContext"),wf=(i,e)=>{ul(vf,i),ul(yf,e),mr==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=cl(vf);return(0,Ql.assertNonNullable)(i,"Store context is empty!"),i},Qn=()=>{let i=cl(yf);return(0,Ql.assertNonNullable)(i,"MicroStores context is empty!"),i},It=(i,e)=>Hs(i,i.getValue(),e),Hs=(i,e,t)=>Gn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),kf=(i,e,t)=>{var I,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ho} (core: ${gf.VERSION}, stat: ${bf.VERSION}, shared: ${Ql.VERSION})`,f=$e(t.state.errorLog$),m=f.length?`
7
7
  `+f.map((N,te)=>{var se;let _e=`${te}) Type: ${N.id}
8
8
  `,Z=`Message: ${N.message} (${N.thrown})
9
9
  `,x=`Trace: ${(se=N.thrown)==null?void 0:se.stack}
package/es2015.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.42
3
- * Thu, 12 Sep 2024 14:31:00 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-42/doc/
2
+ * @vkontakte/videoplayer v1.1.43
3
+ * Thu, 12 Sep 2024 15:14:21 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-43/doc/
5
5
  */
6
- var y_=Object.defineProperty,w_=Object.defineProperties;var k_=Object.getOwnPropertyDescriptors;var Rc=Object.getOwnPropertySymbols;var C_=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable;var hs=(i,e,t)=>e in i?y_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,lt=(i,e)=>{for(var t in e||(e={}))C_.call(e,t)&&hs(i,t,e[t]);if(Rc)for(var t of Rc(e))S_.call(e,t)&&hs(i,t,e[t]);return i},Vt=(i,e)=>w_(i,k_(e));var zi=(i,e,t)=>hs(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function gs(i){return i()}function Yl(){return Object.create(null)}function nt(i){i.forEach(gs)}function Ai(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ql;function bs(i,e){return i===e?!0:(Ql||(Ql=document.createElement("a")),Ql.href=e,i===Ql.href)}function Bc(i){return Object.keys(i).length===0}function Yt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Yt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Yt(e,t))}function Ae(i,e,t,n){if(i){let o=qc(i,e,t,n);return i[0](o)}}function qc(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=qc(e,t,n,r);i.p(l,o)}}function Re(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Dc(i){return i==null?"":i}var Lo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Zl=class i{constructor(e){zi(this,"_listeners","WeakMap"in Lo?new WeakMap:void 0);zi(this,"_observer");zi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Zl.entries="WeakMap"in Lo?new WeakMap:void 0;var Nc=!1;function Oc(){Nc=!0}function Fc(){Nc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=Hc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,I_(n,o)}}function Hc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function I_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Mi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function mt(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Zt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)c(i,t,e[t])}function zc(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function yi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Xl;function E_(){if(Xl===void 0){Xl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Xl=!0}}return Xl}function tl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=E_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Uc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ln(i,e){return new i(e)}var mo;function no(i){mo=i}function il(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Dt(i){il().$$.on_mount.push(i)}function Gn(i){il().$$.on_destroy.push(i)}function nl(i,e){return il().$$.context.set(i,e),e}function ol(i){return il().$$.context.get(i)}function Al(){return il().$$.context}function qn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Ao=[];var ge=[],rl=[],ys=[],Wc=Promise.resolve(),ws=!1;function ks(){ws||(ws=!0,Wc.then(Jl))}function Qn(){return ks(),Wc}function Yn(i){rl.push(i)}function He(i){ys.push(i)}var vs=new Set,ll=0;function Jl(){if(ll!==0)return;let i=mo;do{try{for(;ll<Ao.length;){let e=Ao[ll];ll++,no(e),B_(e.$$)}}catch(e){throw Ao.length=0,ll=0,e}for(no(null),Ao.length=0,ll=0;ge.length;)ge.pop()();for(let e=0;e<rl.length;e+=1){let t=rl[e];vs.has(t)||(vs.add(t),t())}rl.length=0}while(Ao.length);for(;ys.length;)ys.pop()();ws=!1,vs.clear(),no(i)}function B_(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Yn)}}function jc(i){let e=[],t=[];rl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),rl=e}var xl=new Set,Mo;function fe(){Mo={r:0,c:[],p:Mo}}function de(){Mo.r||nt(Mo.c),Mo=Mo.p}function d(i,e){i&&i.i&&(xl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(xl.has(i))return;xl.add(i),Mo.c.push(()=>{xl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Lt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Gc(i){return typeof i=="object"&&i!==null?i:{}}var q_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],D_=new Set([...q_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Yn(()=>{let r=i.$$.on_mount.map(gs).filter(Ai);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Yn)}function R(i,e){let t=i.$$;t.fragment!==null&&(jc(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function O_(i,e){i.$$.dirty[0]===-1&&(Ao.push(i),ks(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=mo;no(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:Yl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Yl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&O_(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Oc();let m=zc(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Fc(),Jl()}no(s)}var F_;typeof HTMLElement=="function"&&(F_=class extends HTMLElement{constructor(e,t,n){super();zi(this,"$$ctor");zi(this,"$$s");zi(this,"$$c");zi(this,"$$cn",!1);zi(this,"$$d",{});zi(this,"$$r",!1);zi(this,"$$p_d",{});zi(this,"$$l",{});zi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&k(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Uc(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Cs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Vt(lt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Cs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Cs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Cs(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){zi(this,"$$");zi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Ai(t))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Bc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Qc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Qc);import"@vkontakte/videoplayer-core";import{noop as Sl,safeStorage as Y6,throttleFn as Z6}from"@vkontakte/videoplayer-shared";import{SeekAction as X6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as H_,fillWithDefault as z_,VideoQuality as U_}from"@vkontakte/videoplayer-shared";var K_={isMobile:void 0,defaultLanguage:H_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:U_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Yc=i=>z_(i,K_),Zc=i=>nl("ui-config",i),zt=()=>ol("ui-config");var Ml="vk_player_debug_panel_opened";var Xc="videoplayer",Jc="videoplayer";var xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},xc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),$c=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ef=new Set(["ShiftRight","ShiftLeft"]);var tf=["TIMELINE"],Vl=[...tf,"GRAPH_BUTTON"],Ss=[...tf,"PLAY_BUTTON"],$l=[...Vl,"PLAY_BUTTON"];var Ro=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Ro||{}),Bo={xs:0,s:1,m:2,l:3,xl:4};var sl=[];function Un(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!sl.length;for(let u of n)u[1](),sl.push(u,i);if(s){for(let u=0;u<sl.length;u+=2)sl[u][0](sl[u+1]);sl.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Vi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Un(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ai(g)?g:Se},w=o.map((g,C)=>Yt(g,v=>{u[C]=v,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){nt(w),m(),s=!1}})}import{assertNonNullable as nf,VERSION as W_}from"@vkontakte/videoplayer-shared";import{VERSION as j_}from"@vkontakte/videoplayer-core";import{VERSION as G_}from"@vkontakte/videoplayer-statistics";var er="prod",al="1.1.42";var qo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var of=Symbol("storeContext"),lf=Symbol("microStoresContext"),rf=(i,e)=>{nl(of,i),nl(lf,e),er==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=ol(of);return nf(i,"Store context is empty!"),i},Kn=()=>{let i=ol(lf);return nf(i,"MicroStores context is empty!"),i},Pt=(i,e)=>Ts(i,i.getValue(),e),Ts=(i,e,t)=>Un(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),sf=(i,e,t)=>{var I,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${al} (core: ${j_}, stat: ${G_}, shared: ${W_})`,f=$e(t.state.errorLog$),m=f.length?`
6
+ var y_=Object.defineProperty,w_=Object.defineProperties;var k_=Object.getOwnPropertyDescriptors;var Rc=Object.getOwnPropertySymbols;var C_=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable;var hs=(i,e,t)=>e in i?y_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,lt=(i,e)=>{for(var t in e||(e={}))C_.call(e,t)&&hs(i,t,e[t]);if(Rc)for(var t of Rc(e))S_.call(e,t)&&hs(i,t,e[t]);return i},Vt=(i,e)=>w_(i,k_(e));var zi=(i,e,t)=>hs(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function gs(i){return i()}function Yl(){return Object.create(null)}function nt(i){i.forEach(gs)}function Ai(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ql;function bs(i,e){return i===e?!0:(Ql||(Ql=document.createElement("a")),Ql.href=e,i===Ql.href)}function Bc(i){return Object.keys(i).length===0}function Yt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Yt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Yt(e,t))}function Ae(i,e,t,n){if(i){let o=qc(i,e,t,n);return i[0](o)}}function qc(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=qc(e,t,n,r);i.p(l,o)}}function Re(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Dc(i){return i==null?"":i}var Lo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Zl=class i{constructor(e){zi(this,"_listeners","WeakMap"in Lo?new WeakMap:void 0);zi(this,"_observer");zi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Zl.entries="WeakMap"in Lo?new WeakMap:void 0;var Nc=!1;function Oc(){Nc=!0}function Fc(){Nc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=Hc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,I_(n,o)}}function Hc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function I_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Mi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function mt(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Zt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)c(i,t,e[t])}function zc(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function yi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Xl;function E_(){if(Xl===void 0){Xl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Xl=!0}}return Xl}function tl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=E_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Uc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Ln(i,e){return new i(e)}var mo;function no(i){mo=i}function il(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Dt(i){il().$$.on_mount.push(i)}function Gn(i){il().$$.on_destroy.push(i)}function nl(i,e){return il().$$.context.set(i,e),e}function ol(i){return il().$$.context.get(i)}function Al(){return il().$$.context}function qn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Ao=[];var ge=[],rl=[],ys=[],Wc=Promise.resolve(),ws=!1;function ks(){ws||(ws=!0,Wc.then(Jl))}function Qn(){return ks(),Wc}function Yn(i){rl.push(i)}function He(i){ys.push(i)}var vs=new Set,ll=0;function Jl(){if(ll!==0)return;let i=mo;do{try{for(;ll<Ao.length;){let e=Ao[ll];ll++,no(e),B_(e.$$)}}catch(e){throw Ao.length=0,ll=0,e}for(no(null),Ao.length=0,ll=0;ge.length;)ge.pop()();for(let e=0;e<rl.length;e+=1){let t=rl[e];vs.has(t)||(vs.add(t),t())}rl.length=0}while(Ao.length);for(;ys.length;)ys.pop()();ws=!1,vs.clear(),no(i)}function B_(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Yn)}}function jc(i){let e=[],t=[];rl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),rl=e}var xl=new Set,Mo;function fe(){Mo={r:0,c:[],p:Mo}}function de(){Mo.r||nt(Mo.c),Mo=Mo.p}function d(i,e){i&&i.i&&(xl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(xl.has(i))return;xl.add(i),Mo.c.push(()=>{xl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Lt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Gc(i){return typeof i=="object"&&i!==null?i:{}}var q_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],D_=new Set([...q_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Yn(()=>{let r=i.$$.on_mount.map(gs).filter(Ai);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Yn)}function R(i,e){let t=i.$$;t.fragment!==null&&(jc(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function O_(i,e){i.$$.dirty[0]===-1&&(Ao.push(i),ks(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=mo;no(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:Yl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Yl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&O_(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Oc();let m=zc(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Fc(),Jl()}no(s)}var F_;typeof HTMLElement=="function"&&(F_=class extends HTMLElement{constructor(e,t,n){super();zi(this,"$$ctor");zi(this,"$$s");zi(this,"$$c");zi(this,"$$cn",!1);zi(this,"$$d",{});zi(this,"$$r",!1);zi(this,"$$p_d",{});zi(this,"$$l",{});zi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&k(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Uc(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Cs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Vt(lt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Cs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Cs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Cs(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){zi(this,"$$");zi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Ai(t))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Bc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Qc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Qc);import"@vkontakte/videoplayer-core";import{noop as Sl,safeStorage as Y6,throttleFn as Z6}from"@vkontakte/videoplayer-shared";import{SeekAction as X6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as H_,fillWithDefault as z_,VideoQuality as U_}from"@vkontakte/videoplayer-shared";var K_={isMobile:void 0,defaultLanguage:H_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:U_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Yc=i=>z_(i,K_),Zc=i=>nl("ui-config",i),zt=()=>ol("ui-config");var Ml="vk_player_debug_panel_opened";var Xc="videoplayer",Jc="videoplayer";var xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},xc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),$c=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ef=new Set(["ShiftRight","ShiftLeft"]);var tf=["TIMELINE"],Vl=[...tf,"GRAPH_BUTTON"],Ss=[...tf,"PLAY_BUTTON"],$l=[...Vl,"PLAY_BUTTON"];var Ro=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Ro||{}),Bo={xs:0,s:1,m:2,l:3,xl:4};var sl=[];function Un(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!sl.length;for(let u of n)u[1](),sl.push(u,i);if(s){for(let u=0;u<sl.length;u+=2)sl[u][0](sl[u+1]);sl.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Vi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Un(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ai(g)?g:Se},w=o.map((g,C)=>Yt(g,v=>{u[C]=v,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){nt(w),m(),s=!1}})}import{assertNonNullable as nf,VERSION as W_}from"@vkontakte/videoplayer-shared";import{VERSION as j_}from"@vkontakte/videoplayer-core";import{VERSION as G_}from"@vkontakte/videoplayer-statistics";var er="prod",al="1.1.43";var qo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var of=Symbol("storeContext"),lf=Symbol("microStoresContext"),rf=(i,e)=>{nl(of,i),nl(lf,e),er==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=ol(of);return nf(i,"Store context is empty!"),i},Kn=()=>{let i=ol(lf);return nf(i,"MicroStores context is empty!"),i},Pt=(i,e)=>Ts(i,i.getValue(),e),Ts=(i,e,t)=>Un(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),sf=(i,e,t)=>{var I,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${al} (core: ${j_}, stat: ${G_}, shared: ${W_})`,f=$e(t.state.errorLog$),m=f.length?`
7
7
  `+f.map((N,te)=>{var se;let _e=`${te}) Type: ${N.id}
8
8
  `,Z=`Message: ${N.message} (${N.thrown})
9
9
  `,x=`Trace: ${(se=N.thrown)==null?void 0:se.stack}
package/es2018.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.42
3
- * Thu, 12 Sep 2024 14:31:00 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-42/doc/
2
+ * @vkontakte/videoplayer v1.1.43
3
+ * Thu, 12 Sep 2024 15:14:21 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-43/doc/
5
5
  */
6
- "use strict";var z_=Object.create;var Hl=Object.defineProperty;var U_=Object.getOwnPropertyDescriptor;var K_=Object.getOwnPropertyNames;var W_=Object.getPrototypeOf,j_=Object.prototype.hasOwnProperty;var G_=(i,e,t)=>e in i?Hl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Q_=(i,e)=>{for(var t in e)Hl(i,t,{get:e[t],enumerable:!0})},Hc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of K_(e))!j_.call(i,o)&&o!==t&&Hl(i,o,{get:()=>e[o],enumerable:!(n=U_(e,o))||n.enumerable});return i};var zc=(i,e,t)=>(t=i!=null?z_(W_(i)):{},Hc(e||!i||!i.__esModule?Hl(t,"default",{value:i,enumerable:!0}):t,i)),Y_=i=>Hc(Hl({},"__esModule",{value:!0}),i);var Hi=(i,e,t)=>G_(i,typeof e!="symbol"?e+"":e,t);var Z6={};Q_(Z6,{GridTypes:()=>go,InterfaceLanguage:()=>ql.InterfaceLanguage,VERSION:()=>No,VKNumericLanguage:()=>ql.VKNumericLanguage,VideoFormat:()=>Ps.VideoFormat,VideoQuality:()=>Ps.VideoQuality,loadVKLangPack:()=>ql.loadVKLangPack,registerPlayerWebComponent:()=>Y6});module.exports=Y_(Z6);function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function Es(i){return i()}function or(){return Object.create(null)}function nt(i){i.forEach(Es)}function Li(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var nr;function Ls(i,e){return i===e?!0:(nr||(nr=document.createElement("a")),nr.href=e,i===nr.href)}function Uc(i){return Object.keys(i).length===0}function Qt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Qt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Qt(e,t))}function Ae(i,e,t,n){if(i){let o=Kc(i,e,t,n);return i[0](o)}}function Kc(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Kc(e,t,n,r);i.p(l,o)}}function Re(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Wc(i){return i==null?"":i}var Vo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var lr=class i{constructor(e){Hi(this,"_listeners","WeakMap"in Vo?new WeakMap:void 0);Hi(this,"_observer");Hi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};lr.entries="WeakMap"in Vo?new WeakMap:void 0;var jc=!1;function Gc(){jc=!0}function Qc(){jc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=Yc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,J_(n,o)}}function Yc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function J_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ai(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function dt(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Yt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)c(i,t,e[t])}function Zc(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function vi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var rr;function x_(){if(rr===void 0){rr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){rr=!0}}return rr}function ol(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=x_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Xc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Mn(i,e){return new i(e)}var ho;function oo(i){ho=i}function ll(){if(!ho)throw new Error("Function called outside component initialization");return ho}function qt(i){ll().$$.on_mount.push(i)}function Gn(i){ll().$$.on_destroy.push(i)}function rl(i,e){return ll().$$.context.set(i,e),e}function sl(i){return ll().$$.context.get(i)}function zl(){return ll().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Ro=[];var ge=[],ul=[],Ms=[],xc=Promise.resolve(),Vs=!1;function Rs(){Vs||(Vs=!0,xc.then(sr))}function Qn(){return Rs(),xc}function Yn(i){ul.push(i)}function He(i){Ms.push(i)}var As=new Set,al=0;function sr(){if(al!==0)return;let i=ho;do{try{for(;al<Ro.length;){let e=Ro[al];al++,oo(e),oh(e.$$)}}catch(e){throw Ro.length=0,al=0,e}for(oo(null),Ro.length=0,al=0;ge.length;)ge.pop()();for(let e=0;e<ul.length;e+=1){let t=ul[e];As.has(t)||(As.add(t),t())}ul.length=0}while(Ro.length);for(;Ms.length;)Ms.pop()();Vs=!1,As.clear(),oo(i)}function oh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Yn)}}function $c(i){let e=[],t=[];ul.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ul=e}var ar=new Set,Bo;function fe(){Bo={r:0,c:[],p:Bo}}function de(){Bo.r||nt(Bo.c),Bo=Bo.p}function d(i,e){i&&i.i&&(ar.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ar.has(i))return;ar.add(i),Bo.c.push(()=>{ar.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Et(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function ef(i){return typeof i=="object"&&i!==null?i:{}}var lh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],rh=new Set([...lh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Yn(()=>{let r=i.$$.on_mount.map(Es).filter(Li);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Yn)}function R(i,e){let t=i.$$;t.fragment!==null&&($c(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ah(i,e){i.$$.dirty[0]===-1&&(Ro.push(i),Rs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=ho;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:or(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:or(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&ah(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Gc();let m=Zc(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Qc(),sr()}oo(s)}var uh;typeof HTMLElement=="function"&&(uh=class extends HTMLElement{constructor(e,t,n){super();Hi(this,"$$ctor");Hi(this,"$$s");Hi(this,"$$c");Hi(this,"$$cn",!1);Hi(this,"$$d",{});Hi(this,"$$r",!1);Hi(this,"$$p_d",{});Hi(this,"$$l",{});Hi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&k(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Xc(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Bs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Bs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Bs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Bs(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){Hi(this,"$$");Hi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Li(t))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Uc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var tf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(tf);var GB=require("@vkontakte/videoplayer-core"),Xn=require("@vkontakte/videoplayer-shared"),Jp=require("@vkontakte/videoplayer-statistics");var cl=require("@vkontakte/videoplayer-shared");var ch={isMobile:void 0,defaultLanguage:cl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:cl.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},nf=i=>(0,cl.fillWithDefault)(i,ch),of=i=>rl("ui-config",i),Ht=()=>sl("ui-config");var Ul="vk_player_debug_panel_opened";var lf="videoplayer",rf="videoplayer";var xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},sf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),af=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),uf=new Set(["ShiftRight","ShiftLeft"]);var cf=["TIMELINE"],Kl=[...cf,"GRAPH_BUTTON"],qs=[...cf,"PLAY_BUTTON"],ur=[...Kl,"PLAY_BUTTON"];var go=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(go||{}),Do={xs:0,s:1,m:2,l:3,xl:4};var fl=[];function Kn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!fl.length;for(let u of n)u[1](),fl.push(u,i);if(s){for(let u=0;u<fl.length;u+=2)fl[u][0](fl[u+1]);fl.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Mi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Kn(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Li(g)?g:Se},w=o.map((g,C)=>Qt(g,v=>{u[C]=v,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Wl=require("@vkontakte/videoplayer-shared"),ff=require("@vkontakte/videoplayer-core"),df=require("@vkontakte/videoplayer-statistics");var cr="prod",No="1.1.42";var Oo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var mf=Symbol("storeContext"),pf=Symbol("microStoresContext"),_f=(i,e)=>{rl(mf,i),rl(pf,e),cr==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=sl(mf);return(0,Wl.assertNonNullable)(i,"Store context is empty!"),i},Wn=()=>{let i=sl(pf);return(0,Wl.assertNonNullable)(i,"MicroStores context is empty!"),i},Tt=(i,e)=>Ds(i,i.getValue(),e),Ds=(i,e,t)=>Kn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),hf=(i,e,t)=>{var I,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${No} (core: ${ff.VERSION}, stat: ${df.VERSION}, shared: ${Wl.VERSION})`,f=$e(t.state.errorLog$),m=f.length?`
6
+ "use strict";var z_=Object.create;var Hl=Object.defineProperty;var U_=Object.getOwnPropertyDescriptor;var K_=Object.getOwnPropertyNames;var W_=Object.getPrototypeOf,j_=Object.prototype.hasOwnProperty;var G_=(i,e,t)=>e in i?Hl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Q_=(i,e)=>{for(var t in e)Hl(i,t,{get:e[t],enumerable:!0})},Hc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of K_(e))!j_.call(i,o)&&o!==t&&Hl(i,o,{get:()=>e[o],enumerable:!(n=U_(e,o))||n.enumerable});return i};var zc=(i,e,t)=>(t=i!=null?z_(W_(i)):{},Hc(e||!i||!i.__esModule?Hl(t,"default",{value:i,enumerable:!0}):t,i)),Y_=i=>Hc(Hl({},"__esModule",{value:!0}),i);var Hi=(i,e,t)=>G_(i,typeof e!="symbol"?e+"":e,t);var Z6={};Q_(Z6,{GridTypes:()=>go,InterfaceLanguage:()=>ql.InterfaceLanguage,VERSION:()=>No,VKNumericLanguage:()=>ql.VKNumericLanguage,VideoFormat:()=>Ps.VideoFormat,VideoQuality:()=>Ps.VideoQuality,loadVKLangPack:()=>ql.loadVKLangPack,registerPlayerWebComponent:()=>Y6});module.exports=Y_(Z6);function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function Es(i){return i()}function or(){return Object.create(null)}function nt(i){i.forEach(Es)}function Li(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var nr;function Ls(i,e){return i===e?!0:(nr||(nr=document.createElement("a")),nr.href=e,i===nr.href)}function Uc(i){return Object.keys(i).length===0}function Qt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Qt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Qt(e,t))}function Ae(i,e,t,n){if(i){let o=Kc(i,e,t,n);return i[0](o)}}function Kc(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Kc(e,t,n,r);i.p(l,o)}}function Re(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Wc(i){return i==null?"":i}var Vo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var lr=class i{constructor(e){Hi(this,"_listeners","WeakMap"in Vo?new WeakMap:void 0);Hi(this,"_observer");Hi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};lr.entries="WeakMap"in Vo?new WeakMap:void 0;var jc=!1;function Gc(){jc=!0}function Qc(){jc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=Yc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,J_(n,o)}}function Yc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function J_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ai(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function dt(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Yt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)c(i,t,e[t])}function Zc(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function vi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var rr;function x_(){if(rr===void 0){rr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){rr=!0}}return rr}function ol(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=x_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Xc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Mn(i,e){return new i(e)}var ho;function oo(i){ho=i}function ll(){if(!ho)throw new Error("Function called outside component initialization");return ho}function qt(i){ll().$$.on_mount.push(i)}function Gn(i){ll().$$.on_destroy.push(i)}function rl(i,e){return ll().$$.context.set(i,e),e}function sl(i){return ll().$$.context.get(i)}function zl(){return ll().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Ro=[];var ge=[],ul=[],Ms=[],xc=Promise.resolve(),Vs=!1;function Rs(){Vs||(Vs=!0,xc.then(sr))}function Qn(){return Rs(),xc}function Yn(i){ul.push(i)}function He(i){Ms.push(i)}var As=new Set,al=0;function sr(){if(al!==0)return;let i=ho;do{try{for(;al<Ro.length;){let e=Ro[al];al++,oo(e),oh(e.$$)}}catch(e){throw Ro.length=0,al=0,e}for(oo(null),Ro.length=0,al=0;ge.length;)ge.pop()();for(let e=0;e<ul.length;e+=1){let t=ul[e];As.has(t)||(As.add(t),t())}ul.length=0}while(Ro.length);for(;Ms.length;)Ms.pop()();Vs=!1,As.clear(),oo(i)}function oh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Yn)}}function $c(i){let e=[],t=[];ul.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ul=e}var ar=new Set,Bo;function fe(){Bo={r:0,c:[],p:Bo}}function de(){Bo.r||nt(Bo.c),Bo=Bo.p}function d(i,e){i&&i.i&&(ar.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ar.has(i))return;ar.add(i),Bo.c.push(()=>{ar.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Et(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function ef(i){return typeof i=="object"&&i!==null?i:{}}var lh=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],rh=new Set([...lh]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Yn(()=>{let r=i.$$.on_mount.map(Es).filter(Li);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Yn)}function R(i,e){let t=i.$$;t.fragment!==null&&($c(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ah(i,e){i.$$.dirty[0]===-1&&(Ro.push(i),Rs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=ho;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:or(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:or(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&ah(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Gc();let m=Zc(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Qc(),sr()}oo(s)}var uh;typeof HTMLElement=="function"&&(uh=class extends HTMLElement{constructor(e,t,n){super();Hi(this,"$$ctor");Hi(this,"$$s");Hi(this,"$$c");Hi(this,"$$cn",!1);Hi(this,"$$d",{});Hi(this,"$$r",!1);Hi(this,"$$p_d",{});Hi(this,"$$l",{});Hi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&k(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Xc(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Bs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Bs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Bs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Bs(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){Hi(this,"$$");Hi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Li(t))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Uc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var tf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(tf);var GB=require("@vkontakte/videoplayer-core"),Xn=require("@vkontakte/videoplayer-shared"),Jp=require("@vkontakte/videoplayer-statistics");var cl=require("@vkontakte/videoplayer-shared");var ch={isMobile:void 0,defaultLanguage:cl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:cl.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},nf=i=>(0,cl.fillWithDefault)(i,ch),of=i=>rl("ui-config",i),Ht=()=>sl("ui-config");var Ul="vk_player_debug_panel_opened";var lf="videoplayer",rf="videoplayer";var xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},sf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),af=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),uf=new Set(["ShiftRight","ShiftLeft"]);var cf=["TIMELINE"],Kl=[...cf,"GRAPH_BUTTON"],qs=[...cf,"PLAY_BUTTON"],ur=[...Kl,"PLAY_BUTTON"];var go=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(go||{}),Do={xs:0,s:1,m:2,l:3,xl:4};var fl=[];function Kn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!fl.length;for(let u of n)u[1](),fl.push(u,i);if(s){for(let u=0;u<fl.length;u+=2)fl[u][0](fl[u+1]);fl.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Mi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Kn(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Li(g)?g:Se},w=o.map((g,C)=>Qt(g,v=>{u[C]=v,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Wl=require("@vkontakte/videoplayer-shared"),ff=require("@vkontakte/videoplayer-core"),df=require("@vkontakte/videoplayer-statistics");var cr="prod",No="1.1.43";var Oo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var mf=Symbol("storeContext"),pf=Symbol("microStoresContext"),_f=(i,e)=>{rl(mf,i),rl(pf,e),cr==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=sl(mf);return(0,Wl.assertNonNullable)(i,"Store context is empty!"),i},Wn=()=>{let i=sl(pf);return(0,Wl.assertNonNullable)(i,"MicroStores context is empty!"),i},Tt=(i,e)=>Ds(i,i.getValue(),e),Ds=(i,e,t)=>Kn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),hf=(i,e,t)=>{var I,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${No} (core: ${ff.VERSION}, stat: ${df.VERSION}, shared: ${Wl.VERSION})`,f=$e(t.state.errorLog$),m=f.length?`
7
7
  `+f.map((N,te)=>{var se;let _e=`${te}) Type: ${N.id}
8
8
  `,Z=`Message: ${N.message} (${N.thrown})
9
9
  `,x=`Trace: ${(se=N.thrown)==null?void 0:se.stack}
package/es2018.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.42
3
- * Thu, 12 Sep 2024 14:31:00 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-42/doc/
2
+ * @vkontakte/videoplayer v1.1.43
3
+ * Thu, 12 Sep 2024 15:14:21 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-43/doc/
5
5
  */
6
- var __=Object.defineProperty;var h_=(i,e,t)=>e in i?__(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Oi=(i,e,t)=>h_(i,typeof e!="symbol"?e+"":e,t);function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function ms(i){return i()}function jl(){return Object.create(null)}function nt(i){i.forEach(ms)}function Ii(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Wl;function ps(i,e){return i===e?!0:(Wl||(Wl=document.createElement("a")),Wl.href=e,i===Wl.href)}function Lc(i){return Object.keys(i).length===0}function jt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return jt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(jt(e,t))}function Ae(i,e,t,n){if(i){let o=Ac(i,e,t,n);return i[0](o)}}function Ac(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Ac(e,t,n,r);i.p(l,o)}}function Re(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Mc(i){return i==null?"":i}var Po=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Gl=class i{constructor(e){Oi(this,"_listeners","WeakMap"in Po?new WeakMap:void 0);Oi(this,"_observer");Oi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Gl.entries="WeakMap"in Po?new WeakMap:void 0;var Vc=!1;function Rc(){Vc=!0}function Bc(){Vc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=qc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,v_(n,o)}}function qc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function v_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ei(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function dt(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Gt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)c(i,t,e[t])}function Dc(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Ql;function y_(){if(Ql===void 0){Ql=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Ql=!0}}return Ql}function xo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=y_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Nc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Pn(i,e){return new i(e)}var uo;function eo(i){uo=i}function $o(){if(!uo)throw new Error("Function called outside component initialization");return uo}function Rt(i){$o().$$.on_mount.push(i)}function Kn(i){$o().$$.on_destroy.push(i)}function el(i,e){return $o().$$.context.set(i,e),e}function tl(i){return $o().$$.context.get(i)}function Il(){return $o().$$.context}function Vn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Io=[];var ge=[],nl=[],hs=[],Fc=Promise.resolve(),gs=!1;function bs(){gs||(gs=!0,Fc.then(Yl))}function Wn(){return bs(),Fc}function jn(i){nl.push(i)}function He(i){hs.push(i)}var _s=new Set,il=0;function Yl(){if(il!==0)return;let i=uo;do{try{for(;il<Io.length;){let e=Io[il];il++,eo(e),P_(e.$$)}}catch(e){throw Io.length=0,il=0,e}for(eo(null),Io.length=0,il=0;ge.length;)ge.pop()();for(let e=0;e<nl.length;e+=1){let t=nl[e];_s.has(t)||(_s.add(t),t())}nl.length=0}while(Io.length);for(;hs.length;)hs.pop()();gs=!1,_s.clear(),eo(i)}function P_(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(jn)}}function Hc(i){let e=[],t=[];nl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),nl=e}var Zl=new Set,Eo;function fe(){Eo={r:0,c:[],p:Eo}}function de(){Eo.r||nt(Eo.c),Eo=Eo.p}function d(i,e){i&&i.i&&(Zl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Zl.has(i))return;Zl.add(i),Eo.c.push(()=>{Zl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function zc(i){return typeof i=="object"&&i!==null?i:{}}var I_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],E_=new Set([...I_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),jn(()=>{let r=i.$$.on_mount.map(ms).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(jn)}function R(i,e){let t=i.$$;t.fragment!==null&&(Hc(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function A_(i,e){i.$$.dirty[0]===-1&&(Io.push(i),bs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=uo;eo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:jl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:jl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&A_(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Rc();let m=Dc(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Bc(),Yl()}eo(s)}var M_;typeof HTMLElement=="function"&&(M_=class extends HTMLElement{constructor(e,t,n){super();Oi(this,"$$ctor");Oi(this,"$$s");Oi(this,"$$c");Oi(this,"$$cn",!1);Oi(this,"$$d",{});Oi(this,"$$r",!1);Oi(this,"$$p_d",{});Oi(this,"$$l",{});Oi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&k(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Nc(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=vs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=vs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=vs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function vs(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){Oi(this,"$$");Oi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Ii(t))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Lc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Uc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Uc);import"@vkontakte/videoplayer-core";import{noop as wl,safeStorage as H6,throttleFn as z6}from"@vkontakte/videoplayer-shared";import{SeekAction as U6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as V_,fillWithDefault as R_,VideoQuality as B_}from"@vkontakte/videoplayer-shared";var q_={isMobile:void 0,defaultLanguage:V_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:B_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Kc=i=>R_(i,q_),Wc=i=>el("ui-config",i),Ot=()=>tl("ui-config");var El="vk_player_debug_panel_opened";var jc="videoplayer",Gc="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Qc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Yc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Zc=new Set(["ShiftRight","ShiftLeft"]);var Xc=["TIMELINE"],Ll=[...Xc,"GRAPH_BUTTON"],ys=[...Xc,"PLAY_BUTTON"],Xl=[...Ll,"PLAY_BUTTON"];var Ao=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Ao||{}),Mo={xs:0,s:1,m:2,l:3,xl:4};var ol=[];function Fn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!ol.length;for(let u of n)u[1](),ol.push(u,i);if(s){for(let u=0;u<ol.length;u+=2)ol[u][0](ol[u+1]);ol.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Li(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Fn(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ii(g)?g:Se},w=o.map((g,C)=>jt(g,v=>{u[C]=v,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){nt(w),m(),s=!1}})}import{assertNonNullable as Jc,VERSION as D_}from"@vkontakte/videoplayer-shared";import{VERSION as N_}from"@vkontakte/videoplayer-core";import{VERSION as O_}from"@vkontakte/videoplayer-statistics";var Jl="prod",ll="1.1.42";var Vo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var xc=Symbol("storeContext"),$c=Symbol("microStoresContext"),ef=(i,e)=>{el(xc,i),el($c,e),Jl==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=tl(xc);return Jc(i,"Store context is empty!"),i},Hn=()=>{let i=tl($c);return Jc(i,"MicroStores context is empty!"),i},St=(i,e)=>ws(i,i.getValue(),e),ws=(i,e,t)=>Fn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),tf=(i,e,t)=>{var I,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ll} (core: ${N_}, stat: ${O_}, shared: ${D_})`,f=$e(t.state.errorLog$),m=f.length?`
6
+ var __=Object.defineProperty;var h_=(i,e,t)=>e in i?__(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Oi=(i,e,t)=>h_(i,typeof e!="symbol"?e+"":e,t);function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function ms(i){return i()}function jl(){return Object.create(null)}function nt(i){i.forEach(ms)}function Ii(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Wl;function ps(i,e){return i===e?!0:(Wl||(Wl=document.createElement("a")),Wl.href=e,i===Wl.href)}function Lc(i){return Object.keys(i).length===0}function jt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return jt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(jt(e,t))}function Ae(i,e,t,n){if(i){let o=Ac(i,e,t,n);return i[0](o)}}function Ac(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Ac(e,t,n,r);i.p(l,o)}}function Re(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Mc(i){return i==null?"":i}var Po=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Gl=class i{constructor(e){Oi(this,"_listeners","WeakMap"in Po?new WeakMap:void 0);Oi(this,"_observer");Oi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Gl.entries="WeakMap"in Po?new WeakMap:void 0;var Vc=!1;function Rc(){Vc=!0}function Bc(){Vc=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=qc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,v_(n,o)}}function qc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function v_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ei(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function B(){return Ne(" ")}function dt(){return Ne("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Gt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)c(i,t,e[t])}function Dc(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Ql;function y_(){if(Ql===void 0){Ql=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Ql=!0}}return Ql}function xo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=y_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Nc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Pn(i,e){return new i(e)}var uo;function eo(i){uo=i}function $o(){if(!uo)throw new Error("Function called outside component initialization");return uo}function Rt(i){$o().$$.on_mount.push(i)}function Kn(i){$o().$$.on_destroy.push(i)}function el(i,e){return $o().$$.context.set(i,e),e}function tl(i){return $o().$$.context.get(i)}function Il(){return $o().$$.context}function Vn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Io=[];var ge=[],nl=[],hs=[],Fc=Promise.resolve(),gs=!1;function bs(){gs||(gs=!0,Fc.then(Yl))}function Wn(){return bs(),Fc}function jn(i){nl.push(i)}function He(i){hs.push(i)}var _s=new Set,il=0;function Yl(){if(il!==0)return;let i=uo;do{try{for(;il<Io.length;){let e=Io[il];il++,eo(e),P_(e.$$)}}catch(e){throw Io.length=0,il=0,e}for(eo(null),Io.length=0,il=0;ge.length;)ge.pop()();for(let e=0;e<nl.length;e+=1){let t=nl[e];_s.has(t)||(_s.add(t),t())}nl.length=0}while(Io.length);for(;hs.length;)hs.pop()();gs=!1,_s.clear(),eo(i)}function P_(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(jn)}}function Hc(i){let e=[],t=[];nl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),nl=e}var Zl=new Set,Eo;function fe(){Eo={r:0,c:[],p:Eo}}function de(){Eo.r||nt(Eo.c),Eo=Eo.p}function d(i,e){i&&i.i&&(Zl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Zl.has(i))return;Zl.add(i),Eo.c.push(()=>{Zl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function zc(i){return typeof i=="object"&&i!==null?i:{}}var I_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],E_=new Set([...I_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),jn(()=>{let r=i.$$.on_mount.map(ms).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(jn)}function R(i,e){let t=i.$$;t.fragment!==null&&(Hc(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function A_(i,e){i.$$.dirty[0]===-1&&(Io.push(i),bs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=uo;eo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:jl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:jl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),f&&A_(i,m)),h}):[],u.update(),f=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Rc();let m=Dc(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Bc(),Yl()}eo(s)}var M_;typeof HTMLElement=="function"&&(M_=class extends HTMLElement{constructor(e,t,n){super();Oi(this,"$$ctor");Oi(this,"$$s");Oi(this,"$$c");Oi(this,"$$cn",!1);Oi(this,"$$d",{});Oi(this,"$$r",!1);Oi(this,"$$p_d",{});Oi(this,"$$l",{});Oi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&c(a,"name",l)},m:function(f,m){S(f,a,m)},d:function(f){f&&k(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Nc(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=vs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=vs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=vs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function vs(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){Oi(this,"$$");Oi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Se}$on(e,t){if(!Ii(t))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Lc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Uc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Uc);import"@vkontakte/videoplayer-core";import{noop as wl,safeStorage as H6,throttleFn as z6}from"@vkontakte/videoplayer-shared";import{SeekAction as U6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as V_,fillWithDefault as R_,VideoQuality as B_}from"@vkontakte/videoplayer-shared";var q_={isMobile:void 0,defaultLanguage:V_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:B_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Kc=i=>R_(i,q_),Wc=i=>el("ui-config",i),Ot=()=>tl("ui-config");var El="vk_player_debug_panel_opened";var jc="videoplayer",Gc="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Qc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Yc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Zc=new Set(["ShiftRight","ShiftLeft"]);var Xc=["TIMELINE"],Ll=[...Xc,"GRAPH_BUTTON"],ys=[...Xc,"PLAY_BUTTON"],Xl=[...Ll,"PLAY_BUTTON"];var Ao=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Ao||{}),Mo={xs:0,s:1,m:2,l:3,xl:4};var ol=[];function Fn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!ol.length;for(let u of n)u[1](),ol.push(u,i);if(s){for(let u=0;u<ol.length;u+=2)ol[u][0](ol[u+1]);ol.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Li(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Fn(t,(l,a)=>{let s=!1,u=[],f=0,m=Se,h=()=>{if(f)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ii(g)?g:Se},w=o.map((g,C)=>jt(g,v=>{u[C]=v,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){nt(w),m(),s=!1}})}import{assertNonNullable as Jc,VERSION as D_}from"@vkontakte/videoplayer-shared";import{VERSION as N_}from"@vkontakte/videoplayer-core";import{VERSION as O_}from"@vkontakte/videoplayer-statistics";var Jl="prod",ll="1.1.43";var Vo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var xc=Symbol("storeContext"),$c=Symbol("microStoresContext"),ef=(i,e)=>{el(xc,i),el($c,e),Jl==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=tl(xc);return Jc(i,"Store context is empty!"),i},Hn=()=>{let i=tl($c);return Jc(i,"MicroStores context is empty!"),i},St=(i,e)=>ws(i,i.getValue(),e),ws=(i,e,t)=>Fn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),tf=(i,e,t)=>{var I,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ll} (core: ${N_}, stat: ${O_}, shared: ${D_})`,f=$e(t.state.errorLog$),m=f.length?`
7
7
  `+f.map((N,te)=>{var se;let _e=`${te}) Type: ${N.id}
8
8
  `,Z=`Message: ${N.message} (${N.thrown})
9
9
  `,x=`Trace: ${(se=N.thrown)==null?void 0:se.stack}
package/esnext.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.42
3
- * Thu, 12 Sep 2024 14:31:00 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-42/doc/
2
+ * @vkontakte/videoplayer v1.1.43
3
+ * Thu, 12 Sep 2024 15:14:21 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-43/doc/
5
5
  */
6
- "use strict";var O_=Object.create;var er=Object.defineProperty;var F_=Object.getOwnPropertyDescriptor;var H_=Object.getOwnPropertyNames;var z_=Object.getPrototypeOf,U_=Object.prototype.hasOwnProperty;var K_=(t,e)=>{for(var i in e)er(t,i,{get:e[i],enumerable:!0})},qc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of H_(e))!U_.call(t,o)&&o!==i&&er(t,o,{get:()=>e[o],enumerable:!(n=F_(e,o))||n.enumerable});return t};var Nc=(t,e,i)=>(i=t!=null?O_(z_(t)):{},qc(e||!t||!t.__esModule?er(i,"default",{value:t,enumerable:!0}):i,t)),W_=t=>qc(er({},"__esModule",{value:!0}),t);var j6={};K_(j6,{GridTypes:()=>_o,InterfaceLanguage:()=>Al.InterfaceLanguage,VERSION:()=>Vo,VKNumericLanguage:()=>Al.VKNumericLanguage,VideoFormat:()=>Ss.VideoFormat,VideoQuality:()=>Ss.VideoQuality,loadVKLangPack:()=>Al.loadVKLangPack,registerPlayerWebComponent:()=>W6});module.exports=W_(j6);function Se(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function Ts(t){return t()}function ir(){return Object.create(null)}function tt(t){t.forEach(Ts)}function Ai(t){return typeof t=="function"}function F(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var tr;function Is(t,e){return t===e?!0:(tr||(tr=document.createElement("a")),tr.href=e,t===tr.href)}function Oc(t){return Object.keys(t).length===0}function Ht(t,...e){if(t==null){for(let n of e)n(void 0);return Se}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ht(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Ht(e,i))}function Ie(t,e,i,n){if(t){let o=Fc(t,e,i,n);return t[0](o)}}function Fc(t,e,i,n){return t[1]&&n?ue(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Fc(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ve(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Hc(t){return t??""}var Io=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var nr=class t{_listeners="WeakMap"in Io?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};nr.entries="WeakMap"in Io?new WeakMap:void 0;var zc=!1;function Uc(){zc=!0}function Kc(){zc=!1}function m(t,e){t.appendChild(e)}function Pe(t,e,i){let n=Wc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,Q_(n,o)}}function Wc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Q_(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Li(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function M(){return Re(" ")}function ut(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function zt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ye(t,e){for(let i in e)c(t,i,e[i])}function jc(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function vi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var or;function Y_(){if(or===void 0){or=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{or=!0}}return or}function xo(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=Y_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Gc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function wn(t,e){return new t(e)}var po;function $n(t){po=t}function $o(){if(!po)throw new Error("Function called outside component initialization");return po}function It(t){$o().$$.on_mount.push(t)}function Kn(t){$o().$$.on_destroy.push(t)}function el(t,e){return $o().$$.context.set(t,e),e}function tl(t){return $o().$$.context.get(t)}function ql(){return $o().$$.context}function In(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Eo=[];var be=[],nl=[],As=[],Yc=Promise.resolve(),Ls=!1;function Ms(){Ls||(Ls=!0,Yc.then(lr))}function Wn(){return Ms(),Yc}function jn(t){nl.push(t)}function Ne(t){As.push(t)}var Es=new Set,il=0;function lr(){if(il!==0)return;let t=po;do{try{for(;il<Eo.length;){let e=Eo[il];il++,$n(e),eh(e.$$)}}catch(e){throw Eo.length=0,il=0,e}for($n(null),Eo.length=0,il=0;be.length;)be.pop()();for(let e=0;e<nl.length;e+=1){let i=nl[e];Es.has(i)||(Es.add(i),i())}nl.length=0}while(Eo.length);for(;As.length;)As.pop()();Ls=!1,Es.clear(),$n(t)}function eh(t){if(t.fragment!==null){t.update(),tt(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(jn)}}function Zc(t){let e=[],i=[];nl.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),nl=e}var rr=new Set,Ao;function me(){Ao={r:0,c:[],p:Ao}}function pe(){Ao.r||tt(Ao.c),Ao=Ao.p}function d(t,e){t&&t.i&&(rr.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(rr.has(t))return;rr.add(t),Ao.c.push(()=>{rr.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Pt(t){return t?.length!==void 0?t:Array.from(t)}function Be(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Xc(t){return typeof t=="object"&&t!==null?t:{}}var th=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],ih=new Set([...th]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),jn(()=>{let l=t.$$.on_mount.map(Ts).filter(Ai);t.$$.on_destroy?t.$$.on_destroy.push(...l):tt(l),t.$$.on_mount=[]}),o.forEach(jn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Zc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function oh(t,e){t.$$.dirty[0]===-1&&(Eo.push(t),Ms(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,i,n,o,l,r=null,a=[-1]){let s=po;$n(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Se,not_equal:o,bound:ir(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ir(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&oh(t,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Uc();let p=jc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Kc(),lr()}$n(s)}var lh;typeof HTMLElement=="function"&&(lh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Gc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=Vs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=Vs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Vs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Vs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Se}$on(e,i){if(!Ai(i))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Oc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Jc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Jc);var OB=require("@vkontakte/videoplayer-core"),Qn=require("@vkontakte/videoplayer-shared"),Qp=require("@vkontakte/videoplayer-statistics");var ol=require("@vkontakte/videoplayer-shared");var rh={isMobile:void 0,defaultLanguage:ol.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ol.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},xc=t=>(0,ol.fillWithDefault)(t,rh),$c=t=>el("ui-config",t),Rt=()=>tl("ui-config");var Nl="vk_player_debug_panel_opened";var ef="videoplayer",tf="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},nf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),of=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),lf=new Set(["ShiftRight","ShiftLeft"]);var rf=["TIMELINE"],Ol=[...rf,"GRAPH_BUTTON"],Rs=[...rf,"PLAY_BUTTON"],sr=[...Ol,"PLAY_BUTTON"];var _o=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(_o||{}),Mo={xs:0,s:1,m:2,l:3,xl:4};var ll=[];function On(t,e){return{subscribe:De(t,e).subscribe}}function De(t,e=Se){let i,n=new Set;function o(a){if(F(t,a)&&(t=a,i)){let s=!ll.length;for(let u of n)u[1](),ll.push(u,t);if(s){for(let u=0;u<ll.length;u+=2)ll[u][0](ll[u+1]);ll.length=0}}}function l(a){o(a(t))}function r(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Se),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Mi(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return On(i,(r,a)=>{let s=!1,u=[],f=0,p=Se,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ai(g)?g:Se},k=o.map((g,S)=>Ht(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){tt(k),p(),s=!1}})}var Fl=require("@vkontakte/videoplayer-shared"),sf=require("@vkontakte/videoplayer-core"),af=require("@vkontakte/videoplayer-statistics");var ar="prod",Vo="1.1.42";var Ro=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var uf=Symbol("storeContext"),cf=Symbol("microStoresContext"),ff=(t,e)=>{el(uf,t),el(cf,e),ar==="dev"&&(window.app={store:t,microStores:e})},it=()=>{let t=tl(uf);return(0,Fl.assertNonNullable)(t,"Store context is empty!"),t},Fn=()=>{let t=tl(cf);return(0,Fl.assertNonNullable)(t,"MicroStores context is empty!"),t},bt=(t,e)=>Bs(t,t.getValue(),e),Bs=(t,e,i)=>On(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),df=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Vo} (core: ${sf.VERSION}, stat: ${af.VERSION}, shared: ${Fl.VERSION})`,f=Je(i.state.errorLog$),p=f.length?`
6
+ "use strict";var O_=Object.create;var er=Object.defineProperty;var F_=Object.getOwnPropertyDescriptor;var H_=Object.getOwnPropertyNames;var z_=Object.getPrototypeOf,U_=Object.prototype.hasOwnProperty;var K_=(t,e)=>{for(var i in e)er(t,i,{get:e[i],enumerable:!0})},qc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of H_(e))!U_.call(t,o)&&o!==i&&er(t,o,{get:()=>e[o],enumerable:!(n=F_(e,o))||n.enumerable});return t};var Nc=(t,e,i)=>(i=t!=null?O_(z_(t)):{},qc(e||!t||!t.__esModule?er(i,"default",{value:t,enumerable:!0}):i,t)),W_=t=>qc(er({},"__esModule",{value:!0}),t);var j6={};K_(j6,{GridTypes:()=>_o,InterfaceLanguage:()=>Al.InterfaceLanguage,VERSION:()=>Vo,VKNumericLanguage:()=>Al.VKNumericLanguage,VideoFormat:()=>Ss.VideoFormat,VideoQuality:()=>Ss.VideoQuality,loadVKLangPack:()=>Al.loadVKLangPack,registerPlayerWebComponent:()=>W6});module.exports=W_(j6);function Se(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function Ts(t){return t()}function ir(){return Object.create(null)}function tt(t){t.forEach(Ts)}function Ai(t){return typeof t=="function"}function F(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var tr;function Is(t,e){return t===e?!0:(tr||(tr=document.createElement("a")),tr.href=e,t===tr.href)}function Oc(t){return Object.keys(t).length===0}function Ht(t,...e){if(t==null){for(let n of e)n(void 0);return Se}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ht(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Ht(e,i))}function Ie(t,e,i,n){if(t){let o=Fc(t,e,i,n);return t[0](o)}}function Fc(t,e,i,n){return t[1]&&n?ue(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Fc(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ve(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Hc(t){return t??""}var Io=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var nr=class t{_listeners="WeakMap"in Io?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};nr.entries="WeakMap"in Io?new WeakMap:void 0;var zc=!1;function Uc(){zc=!0}function Kc(){zc=!1}function m(t,e){t.appendChild(e)}function Pe(t,e,i){let n=Wc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,Q_(n,o)}}function Wc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Q_(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Li(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function M(){return Re(" ")}function ut(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function zt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ye(t,e){for(let i in e)c(t,i,e[i])}function jc(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function vi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var or;function Y_(){if(or===void 0){or=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{or=!0}}return or}function xo(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=Y_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Gc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function wn(t,e){return new t(e)}var po;function $n(t){po=t}function $o(){if(!po)throw new Error("Function called outside component initialization");return po}function It(t){$o().$$.on_mount.push(t)}function Kn(t){$o().$$.on_destroy.push(t)}function el(t,e){return $o().$$.context.set(t,e),e}function tl(t){return $o().$$.context.get(t)}function ql(){return $o().$$.context}function In(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Eo=[];var be=[],nl=[],As=[],Yc=Promise.resolve(),Ls=!1;function Ms(){Ls||(Ls=!0,Yc.then(lr))}function Wn(){return Ms(),Yc}function jn(t){nl.push(t)}function Ne(t){As.push(t)}var Es=new Set,il=0;function lr(){if(il!==0)return;let t=po;do{try{for(;il<Eo.length;){let e=Eo[il];il++,$n(e),eh(e.$$)}}catch(e){throw Eo.length=0,il=0,e}for($n(null),Eo.length=0,il=0;be.length;)be.pop()();for(let e=0;e<nl.length;e+=1){let i=nl[e];Es.has(i)||(Es.add(i),i())}nl.length=0}while(Eo.length);for(;As.length;)As.pop()();Ls=!1,Es.clear(),$n(t)}function eh(t){if(t.fragment!==null){t.update(),tt(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(jn)}}function Zc(t){let e=[],i=[];nl.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),nl=e}var rr=new Set,Ao;function me(){Ao={r:0,c:[],p:Ao}}function pe(){Ao.r||tt(Ao.c),Ao=Ao.p}function d(t,e){t&&t.i&&(rr.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(rr.has(t))return;rr.add(t),Ao.c.push(()=>{rr.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Pt(t){return t?.length!==void 0?t:Array.from(t)}function Be(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Xc(t){return typeof t=="object"&&t!==null?t:{}}var th=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],ih=new Set([...th]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),jn(()=>{let l=t.$$.on_mount.map(Ts).filter(Ai);t.$$.on_destroy?t.$$.on_destroy.push(...l):tt(l),t.$$.on_mount=[]}),o.forEach(jn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Zc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function oh(t,e){t.$$.dirty[0]===-1&&(Eo.push(t),Ms(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,i,n,o,l,r=null,a=[-1]){let s=po;$n(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Se,not_equal:o,bound:ir(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ir(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&oh(t,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Uc();let p=jc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Kc(),lr()}$n(s)}var lh;typeof HTMLElement=="function"&&(lh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Gc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=Vs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=Vs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Vs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Vs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Se}$on(e,i){if(!Ai(i))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Oc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Jc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Jc);var OB=require("@vkontakte/videoplayer-core"),Qn=require("@vkontakte/videoplayer-shared"),Qp=require("@vkontakte/videoplayer-statistics");var ol=require("@vkontakte/videoplayer-shared");var rh={isMobile:void 0,defaultLanguage:ol.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ol.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},xc=t=>(0,ol.fillWithDefault)(t,rh),$c=t=>el("ui-config",t),Rt=()=>tl("ui-config");var Nl="vk_player_debug_panel_opened";var ef="videoplayer",tf="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},nf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),of=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),lf=new Set(["ShiftRight","ShiftLeft"]);var rf=["TIMELINE"],Ol=[...rf,"GRAPH_BUTTON"],Rs=[...rf,"PLAY_BUTTON"],sr=[...Ol,"PLAY_BUTTON"];var _o=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(_o||{}),Mo={xs:0,s:1,m:2,l:3,xl:4};var ll=[];function On(t,e){return{subscribe:De(t,e).subscribe}}function De(t,e=Se){let i,n=new Set;function o(a){if(F(t,a)&&(t=a,i)){let s=!ll.length;for(let u of n)u[1](),ll.push(u,t);if(s){for(let u=0;u<ll.length;u+=2)ll[u][0](ll[u+1]);ll.length=0}}}function l(a){o(a(t))}function r(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Se),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Mi(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return On(i,(r,a)=>{let s=!1,u=[],f=0,p=Se,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ai(g)?g:Se},k=o.map((g,S)=>Ht(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){tt(k),p(),s=!1}})}var Fl=require("@vkontakte/videoplayer-shared"),sf=require("@vkontakte/videoplayer-core"),af=require("@vkontakte/videoplayer-statistics");var ar="prod",Vo="1.1.43";var Ro=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var uf=Symbol("storeContext"),cf=Symbol("microStoresContext"),ff=(t,e)=>{el(uf,t),el(cf,e),ar==="dev"&&(window.app={store:t,microStores:e})},it=()=>{let t=tl(uf);return(0,Fl.assertNonNullable)(t,"Store context is empty!"),t},Fn=()=>{let t=tl(cf);return(0,Fl.assertNonNullable)(t,"MicroStores context is empty!"),t},bt=(t,e)=>Bs(t,t.getValue(),e),Bs=(t,e,i)=>On(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),df=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Vo} (core: ${sf.VERSION}, stat: ${af.VERSION}, shared: ${Fl.VERSION})`,f=Je(i.state.errorLog$),p=f.length?`
7
7
  `+f.map((E,v)=>{let y=`${v}) Type: ${E.id}
8
8
  `,T=`Message: ${E.message} (${E.thrown})
9
9
  `,W=`Trace: ${E.thrown?.stack}
package/esnext.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.42
3
- * Thu, 12 Sep 2024 14:31:00 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-42/doc/
2
+ * @vkontakte/videoplayer v1.1.43
3
+ * Thu, 12 Sep 2024 15:14:21 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-43/doc/
5
5
  */
6
- function Se(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function fs(t){return t()}function Kl(){return Object.create(null)}function tt(t){t.forEach(fs)}function Ii(t){return typeof t=="function"}function F(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Ul;function ds(t,e){return t===e?!0:(Ul||(Ul=document.createElement("a")),Ul.href=e,t===Ul.href)}function Pc(t){return Object.keys(t).length===0}function Ot(t,...e){if(t==null){for(let n of e)n(void 0);return Se}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ot(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Ot(e,i))}function Ie(t,e,i,n){if(t){let o=Tc(t,e,i,n);return t[0](o)}}function Tc(t,e,i,n){return t[1]&&n?ue(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Tc(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ve(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Ic(t){return t??""}var ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Wl=class t{_listeners="WeakMap"in ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};Wl.entries="WeakMap"in ko?new WeakMap:void 0;var Ec=!1;function Ac(){Ec=!0}function Lc(){Ec=!1}function m(t,e){t.appendChild(e)}function Pe(t,e,i){let n=Mc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,p_(n,o)}}function Mc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function p_(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Ei(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function M(){return Re(" ")}function ut(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Ft(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ye(t,e){for(let i in e)c(t,i,e[i])}function Vc(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function gi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var jl;function __(){if(jl===void 0){jl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{jl=!0}}return jl}function Go(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=__(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Rc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function gn(t,e){return new t(e)}var so;function Zn(t){so=t}function Qo(){if(!so)throw new Error("Function called outside component initialization");return so}function Pt(t){Qo().$$.on_mount.push(t)}function Hn(t){Qo().$$.on_destroy.push(t)}function Yo(t,e){return Qo().$$.context.set(t,e),e}function Zo(t){return Qo().$$.context.get(t)}function Cl(){return Qo().$$.context}function Cn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var wo=[];var be=[],Jo=[],ps=[],Dc=Promise.resolve(),_s=!1;function hs(){_s||(_s=!0,Dc.then(Gl))}function zn(){return hs(),Dc}function Un(t){Jo.push(t)}function Ne(t){ps.push(t)}var ms=new Set,Xo=0;function Gl(){if(Xo!==0)return;let t=so;do{try{for(;Xo<wo.length;){let e=wo[Xo];Xo++,Zn(e),k_(e.$$)}}catch(e){throw wo.length=0,Xo=0,e}for(Zn(null),wo.length=0,Xo=0;be.length;)be.pop()();for(let e=0;e<Jo.length;e+=1){let i=Jo[e];ms.has(i)||(ms.add(i),i())}Jo.length=0}while(wo.length);for(;ps.length;)ps.pop()();_s=!1,ms.clear(),Zn(t)}function k_(t){if(t.fragment!==null){t.update(),tt(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Un)}}function qc(t){let e=[],i=[];Jo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Jo=e}var Ql=new Set,Co;function me(){Co={r:0,c:[],p:Co}}function pe(){Co.r||tt(Co.c),Co=Co.p}function d(t,e){t&&t.i&&(Ql.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Ql.has(t))return;Ql.add(t),Co.c.push(()=>{Ql.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function St(t){return t?.length!==void 0?t:Array.from(t)}function Be(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Nc(t){return typeof t=="object"&&t!==null?t:{}}var w_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],C_=new Set([...w_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Un(()=>{let l=t.$$.on_mount.map(fs).filter(Ii);t.$$.on_destroy?t.$$.on_destroy.push(...l):tt(l),t.$$.on_mount=[]}),o.forEach(Un)}function L(t,e){let i=t.$$;i.fragment!==null&&(qc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function P_(t,e){t.$$.dirty[0]===-1&&(wo.push(t),hs(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,i,n,o,l,r=null,a=[-1]){let s=so;Zn(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Se,not_equal:o,bound:Kl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Kl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&P_(t,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ac();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Lc(),Gl()}Zn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Rc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=gs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=gs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=gs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function gs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Se}$on(e,i){if(!Ii(i))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as _l,safeStorage as D6,throttleFn as q6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as I_,fillWithDefault as E_,VideoQuality as A_}from"@vkontakte/videoplayer-shared";var L_={isMobile:void 0,defaultLanguage:I_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:A_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Fc=t=>E_(t,L_),Hc=t=>Yo("ui-config",t),Mt=()=>Zo("ui-config");var Sl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),jc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],Pl=[...Gc,"GRAPH_BUTTON"],bs=[...Gc,"PLAY_BUTTON"],Yl=[...Pl,"PLAY_BUTTON"];var Po=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Po||{}),To={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Bn(t,e){return{subscribe:De(t,e).subscribe}}function De(t,e=Se){let i,n=new Set;function o(a){if(F(t,a)&&(t=a,i)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,t);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(t))}function r(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Se),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ai(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Bn(i,(r,a)=>{let s=!1,u=[],f=0,p=Se,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ii(g)?g:Se},k=o.map((g,S)=>Ot(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){tt(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as M_}from"@vkontakte/videoplayer-shared";import{VERSION as V_}from"@vkontakte/videoplayer-core";import{VERSION as R_}from"@vkontakte/videoplayer-statistics";var Zl="prod",$o="1.1.42";var Io=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(t,e)=>{Yo(Yc,t),Yo(Zc,e),Zl==="dev"&&(window.app={store:t,microStores:e})},it=()=>{let t=Zo(Yc);return Qc(t,"Store context is empty!"),t},Dn=()=>{let t=Zo(Zc);return Qc(t,"MicroStores context is empty!"),t},gt=(t,e)=>vs(t,t.getValue(),e),vs=(t,e,i)=>Bn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),Jc=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${V_}, stat: ${R_}, shared: ${M_})`,f=Je(i.state.errorLog$),p=f.length?`
6
+ function Se(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function fs(t){return t()}function Kl(){return Object.create(null)}function tt(t){t.forEach(fs)}function Ii(t){return typeof t=="function"}function F(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Ul;function ds(t,e){return t===e?!0:(Ul||(Ul=document.createElement("a")),Ul.href=e,t===Ul.href)}function Pc(t){return Object.keys(t).length===0}function Ot(t,...e){if(t==null){for(let n of e)n(void 0);return Se}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ot(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Ot(e,i))}function Ie(t,e,i,n){if(t){let o=Tc(t,e,i,n);return t[0](o)}}function Tc(t,e,i,n){return t[1]&&n?ue(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Tc(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ve(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Ic(t){return t??""}var ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Wl=class t{_listeners="WeakMap"in ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};Wl.entries="WeakMap"in ko?new WeakMap:void 0;var Ec=!1;function Ac(){Ec=!0}function Lc(){Ec=!1}function m(t,e){t.appendChild(e)}function Pe(t,e,i){let n=Mc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,p_(n,o)}}function Mc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function p_(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Ei(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function M(){return Re(" ")}function ut(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Ft(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ye(t,e){for(let i in e)c(t,i,e[i])}function Vc(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function gi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var jl;function __(){if(jl===void 0){jl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{jl=!0}}return jl}function Go(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=__(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Rc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function gn(t,e){return new t(e)}var so;function Zn(t){so=t}function Qo(){if(!so)throw new Error("Function called outside component initialization");return so}function Pt(t){Qo().$$.on_mount.push(t)}function Hn(t){Qo().$$.on_destroy.push(t)}function Yo(t,e){return Qo().$$.context.set(t,e),e}function Zo(t){return Qo().$$.context.get(t)}function Cl(){return Qo().$$.context}function Cn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var wo=[];var be=[],Jo=[],ps=[],Dc=Promise.resolve(),_s=!1;function hs(){_s||(_s=!0,Dc.then(Gl))}function zn(){return hs(),Dc}function Un(t){Jo.push(t)}function Ne(t){ps.push(t)}var ms=new Set,Xo=0;function Gl(){if(Xo!==0)return;let t=so;do{try{for(;Xo<wo.length;){let e=wo[Xo];Xo++,Zn(e),k_(e.$$)}}catch(e){throw wo.length=0,Xo=0,e}for(Zn(null),wo.length=0,Xo=0;be.length;)be.pop()();for(let e=0;e<Jo.length;e+=1){let i=Jo[e];ms.has(i)||(ms.add(i),i())}Jo.length=0}while(wo.length);for(;ps.length;)ps.pop()();_s=!1,ms.clear(),Zn(t)}function k_(t){if(t.fragment!==null){t.update(),tt(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Un)}}function qc(t){let e=[],i=[];Jo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Jo=e}var Ql=new Set,Co;function me(){Co={r:0,c:[],p:Co}}function pe(){Co.r||tt(Co.c),Co=Co.p}function d(t,e){t&&t.i&&(Ql.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Ql.has(t))return;Ql.add(t),Co.c.push(()=>{Ql.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function St(t){return t?.length!==void 0?t:Array.from(t)}function Be(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Nc(t){return typeof t=="object"&&t!==null?t:{}}var w_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],C_=new Set([...w_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Un(()=>{let l=t.$$.on_mount.map(fs).filter(Ii);t.$$.on_destroy?t.$$.on_destroy.push(...l):tt(l),t.$$.on_mount=[]}),o.forEach(Un)}function L(t,e){let i=t.$$;i.fragment!==null&&(qc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function P_(t,e){t.$$.dirty[0]===-1&&(wo.push(t),hs(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,i,n,o,l,r=null,a=[-1]){let s=so;Zn(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Se,not_equal:o,bound:Kl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Kl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&P_(t,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ac();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Lc(),Gl()}Zn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Rc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=gs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=gs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=gs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function gs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Se}$on(e,i){if(!Ii(i))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as _l,safeStorage as D6,throttleFn as q6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as I_,fillWithDefault as E_,VideoQuality as A_}from"@vkontakte/videoplayer-shared";var L_={isMobile:void 0,defaultLanguage:I_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:A_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Fc=t=>E_(t,L_),Hc=t=>Yo("ui-config",t),Mt=()=>Zo("ui-config");var Sl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),jc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],Pl=[...Gc,"GRAPH_BUTTON"],bs=[...Gc,"PLAY_BUTTON"],Yl=[...Pl,"PLAY_BUTTON"];var Po=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Po||{}),To={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Bn(t,e){return{subscribe:De(t,e).subscribe}}function De(t,e=Se){let i,n=new Set;function o(a){if(F(t,a)&&(t=a,i)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,t);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(t))}function r(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Se),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ai(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Bn(i,(r,a)=>{let s=!1,u=[],f=0,p=Se,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ii(g)?g:Se},k=o.map((g,S)=>Ot(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){tt(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as M_}from"@vkontakte/videoplayer-shared";import{VERSION as V_}from"@vkontakte/videoplayer-core";import{VERSION as R_}from"@vkontakte/videoplayer-statistics";var Zl="prod",$o="1.1.43";var Io=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(t,e)=>{Yo(Yc,t),Yo(Zc,e),Zl==="dev"&&(window.app={store:t,microStores:e})},it=()=>{let t=Zo(Yc);return Qc(t,"Store context is empty!"),t},Dn=()=>{let t=Zo(Zc);return Qc(t,"MicroStores context is empty!"),t},gt=(t,e)=>vs(t,t.getValue(),e),vs=(t,e,i)=>Bn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),Jc=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${V_}, stat: ${R_}, shared: ${M_})`,f=Je(i.state.errorLog$),p=f.length?`
7
7
  `+f.map((E,v)=>{let y=`${v}) Type: ${E.id}
8
8
  `,T=`Message: ${E.message} (${E.thrown})
9
9
  `,W=`Trace: ${E.thrown?.stack}
package/evergreen.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.42
3
- * Thu, 12 Sep 2024 14:31:00 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-42/doc/
2
+ * @vkontakte/videoplayer v1.1.43
3
+ * Thu, 12 Sep 2024 15:14:21 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-43/doc/
5
5
  */
6
- function Se(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function fs(t){return t()}function Kl(){return Object.create(null)}function tt(t){t.forEach(fs)}function Ii(t){return typeof t=="function"}function F(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Ul;function ds(t,e){return t===e?!0:(Ul||(Ul=document.createElement("a")),Ul.href=e,t===Ul.href)}function Pc(t){return Object.keys(t).length===0}function Ot(t,...e){if(t==null){for(let n of e)n(void 0);return Se}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ot(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Ot(e,i))}function Ie(t,e,i,n){if(t){let o=Tc(t,e,i,n);return t[0](o)}}function Tc(t,e,i,n){return t[1]&&n?ue(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Tc(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ve(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Ic(t){return t??""}var ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Wl=class t{_listeners="WeakMap"in ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};Wl.entries="WeakMap"in ko?new WeakMap:void 0;var Ec=!1;function Ac(){Ec=!0}function Lc(){Ec=!1}function m(t,e){t.appendChild(e)}function Pe(t,e,i){let n=Mc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,p_(n,o)}}function Mc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function p_(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Ei(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function M(){return Re(" ")}function ut(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Ft(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ye(t,e){for(let i in e)c(t,i,e[i])}function Vc(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function gi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var jl;function __(){if(jl===void 0){jl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{jl=!0}}return jl}function Go(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=__(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Rc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function gn(t,e){return new t(e)}var so;function Zn(t){so=t}function Qo(){if(!so)throw new Error("Function called outside component initialization");return so}function Pt(t){Qo().$$.on_mount.push(t)}function Hn(t){Qo().$$.on_destroy.push(t)}function Yo(t,e){return Qo().$$.context.set(t,e),e}function Zo(t){return Qo().$$.context.get(t)}function Cl(){return Qo().$$.context}function Cn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var wo=[];var be=[],Jo=[],ps=[],Dc=Promise.resolve(),_s=!1;function hs(){_s||(_s=!0,Dc.then(Gl))}function zn(){return hs(),Dc}function Un(t){Jo.push(t)}function Ne(t){ps.push(t)}var ms=new Set,Xo=0;function Gl(){if(Xo!==0)return;let t=so;do{try{for(;Xo<wo.length;){let e=wo[Xo];Xo++,Zn(e),k_(e.$$)}}catch(e){throw wo.length=0,Xo=0,e}for(Zn(null),wo.length=0,Xo=0;be.length;)be.pop()();for(let e=0;e<Jo.length;e+=1){let i=Jo[e];ms.has(i)||(ms.add(i),i())}Jo.length=0}while(wo.length);for(;ps.length;)ps.pop()();_s=!1,ms.clear(),Zn(t)}function k_(t){if(t.fragment!==null){t.update(),tt(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Un)}}function qc(t){let e=[],i=[];Jo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Jo=e}var Ql=new Set,Co;function me(){Co={r:0,c:[],p:Co}}function pe(){Co.r||tt(Co.c),Co=Co.p}function d(t,e){t&&t.i&&(Ql.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Ql.has(t))return;Ql.add(t),Co.c.push(()=>{Ql.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function St(t){return t?.length!==void 0?t:Array.from(t)}function Be(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Nc(t){return typeof t=="object"&&t!==null?t:{}}var w_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],C_=new Set([...w_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Un(()=>{let l=t.$$.on_mount.map(fs).filter(Ii);t.$$.on_destroy?t.$$.on_destroy.push(...l):tt(l),t.$$.on_mount=[]}),o.forEach(Un)}function L(t,e){let i=t.$$;i.fragment!==null&&(qc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function P_(t,e){t.$$.dirty[0]===-1&&(wo.push(t),hs(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,i,n,o,l,r=null,a=[-1]){let s=so;Zn(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Se,not_equal:o,bound:Kl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Kl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&P_(t,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ac();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Lc(),Gl()}Zn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Rc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=gs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=gs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=gs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function gs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Se}$on(e,i){if(!Ii(i))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as _l,safeStorage as D6,throttleFn as q6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as I_,fillWithDefault as E_,VideoQuality as A_}from"@vkontakte/videoplayer-shared";var L_={isMobile:void 0,defaultLanguage:I_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:A_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Fc=t=>E_(t,L_),Hc=t=>Yo("ui-config",t),Mt=()=>Zo("ui-config");var Sl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),jc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],Pl=[...Gc,"GRAPH_BUTTON"],bs=[...Gc,"PLAY_BUTTON"],Yl=[...Pl,"PLAY_BUTTON"];var Po=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Po||{}),To={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Bn(t,e){return{subscribe:De(t,e).subscribe}}function De(t,e=Se){let i,n=new Set;function o(a){if(F(t,a)&&(t=a,i)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,t);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(t))}function r(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Se),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ai(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Bn(i,(r,a)=>{let s=!1,u=[],f=0,p=Se,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ii(g)?g:Se},k=o.map((g,S)=>Ot(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){tt(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as M_}from"@vkontakte/videoplayer-shared";import{VERSION as V_}from"@vkontakte/videoplayer-core";import{VERSION as R_}from"@vkontakte/videoplayer-statistics";var Zl="prod",$o="1.1.42";var Io=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(t,e)=>{Yo(Yc,t),Yo(Zc,e),Zl==="dev"&&(window.app={store:t,microStores:e})},it=()=>{let t=Zo(Yc);return Qc(t,"Store context is empty!"),t},Dn=()=>{let t=Zo(Zc);return Qc(t,"MicroStores context is empty!"),t},gt=(t,e)=>vs(t,t.getValue(),e),vs=(t,e,i)=>Bn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),Jc=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${V_}, stat: ${R_}, shared: ${M_})`,f=Je(i.state.errorLog$),p=f.length?`
6
+ function Se(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function fs(t){return t()}function Kl(){return Object.create(null)}function tt(t){t.forEach(fs)}function Ii(t){return typeof t=="function"}function F(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Ul;function ds(t,e){return t===e?!0:(Ul||(Ul=document.createElement("a")),Ul.href=e,t===Ul.href)}function Pc(t){return Object.keys(t).length===0}function Ot(t,...e){if(t==null){for(let n of e)n(void 0);return Se}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ot(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Ot(e,i))}function Ie(t,e,i,n){if(t){let o=Tc(t,e,i,n);return t[0](o)}}function Tc(t,e,i,n){return t[1]&&n?ue(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Tc(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ve(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Ic(t){return t??""}var ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Wl=class t{_listeners="WeakMap"in ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};Wl.entries="WeakMap"in ko?new WeakMap:void 0;var Ec=!1;function Ac(){Ec=!0}function Lc(){Ec=!1}function m(t,e){t.appendChild(e)}function Pe(t,e,i){let n=Mc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,p_(n,o)}}function Mc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function p_(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Ei(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function M(){return Re(" ")}function ut(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Ft(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ye(t,e){for(let i in e)c(t,i,e[i])}function Vc(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function gi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var jl;function __(){if(jl===void 0){jl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{jl=!0}}return jl}function Go(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=__(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Rc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function gn(t,e){return new t(e)}var so;function Zn(t){so=t}function Qo(){if(!so)throw new Error("Function called outside component initialization");return so}function Pt(t){Qo().$$.on_mount.push(t)}function Hn(t){Qo().$$.on_destroy.push(t)}function Yo(t,e){return Qo().$$.context.set(t,e),e}function Zo(t){return Qo().$$.context.get(t)}function Cl(){return Qo().$$.context}function Cn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var wo=[];var be=[],Jo=[],ps=[],Dc=Promise.resolve(),_s=!1;function hs(){_s||(_s=!0,Dc.then(Gl))}function zn(){return hs(),Dc}function Un(t){Jo.push(t)}function Ne(t){ps.push(t)}var ms=new Set,Xo=0;function Gl(){if(Xo!==0)return;let t=so;do{try{for(;Xo<wo.length;){let e=wo[Xo];Xo++,Zn(e),k_(e.$$)}}catch(e){throw wo.length=0,Xo=0,e}for(Zn(null),wo.length=0,Xo=0;be.length;)be.pop()();for(let e=0;e<Jo.length;e+=1){let i=Jo[e];ms.has(i)||(ms.add(i),i())}Jo.length=0}while(wo.length);for(;ps.length;)ps.pop()();_s=!1,ms.clear(),Zn(t)}function k_(t){if(t.fragment!==null){t.update(),tt(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Un)}}function qc(t){let e=[],i=[];Jo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Jo=e}var Ql=new Set,Co;function me(){Co={r:0,c:[],p:Co}}function pe(){Co.r||tt(Co.c),Co=Co.p}function d(t,e){t&&t.i&&(Ql.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Ql.has(t))return;Ql.add(t),Co.c.push(()=>{Ql.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function St(t){return t?.length!==void 0?t:Array.from(t)}function Be(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Nc(t){return typeof t=="object"&&t!==null?t:{}}var w_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],C_=new Set([...w_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Un(()=>{let l=t.$$.on_mount.map(fs).filter(Ii);t.$$.on_destroy?t.$$.on_destroy.push(...l):tt(l),t.$$.on_mount=[]}),o.forEach(Un)}function L(t,e){let i=t.$$;i.fragment!==null&&(qc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function P_(t,e){t.$$.dirty[0]===-1&&(wo.push(t),hs(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,i,n,o,l,r=null,a=[-1]){let s=so;Zn(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Se,not_equal:o,bound:Kl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Kl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&P_(t,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ac();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Lc(),Gl()}Zn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Rc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=gs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=gs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=gs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function gs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Se}$on(e,i){if(!Ii(i))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as _l,safeStorage as D6,throttleFn as q6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as I_,fillWithDefault as E_,VideoQuality as A_}from"@vkontakte/videoplayer-shared";var L_={isMobile:void 0,defaultLanguage:I_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:A_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Fc=t=>E_(t,L_),Hc=t=>Yo("ui-config",t),Mt=()=>Zo("ui-config");var Sl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),jc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],Pl=[...Gc,"GRAPH_BUTTON"],bs=[...Gc,"PLAY_BUTTON"],Yl=[...Pl,"PLAY_BUTTON"];var Po=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Po||{}),To={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Bn(t,e){return{subscribe:De(t,e).subscribe}}function De(t,e=Se){let i,n=new Set;function o(a){if(F(t,a)&&(t=a,i)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,t);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(t))}function r(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Se),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ai(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Bn(i,(r,a)=>{let s=!1,u=[],f=0,p=Se,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ii(g)?g:Se},k=o.map((g,S)=>Ot(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){tt(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as M_}from"@vkontakte/videoplayer-shared";import{VERSION as V_}from"@vkontakte/videoplayer-core";import{VERSION as R_}from"@vkontakte/videoplayer-statistics";var Zl="prod",$o="1.1.43";var Io=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(t,e)=>{Yo(Yc,t),Yo(Zc,e),Zl==="dev"&&(window.app={store:t,microStores:e})},it=()=>{let t=Zo(Yc);return Qc(t,"Store context is empty!"),t},Dn=()=>{let t=Zo(Zc);return Qc(t,"MicroStores context is empty!"),t},gt=(t,e)=>vs(t,t.getValue(),e),vs=(t,e,i)=>Bn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),Jc=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${V_}, stat: ${R_}, shared: ${M_})`,f=Je(i.state.errorLog$),p=f.length?`
7
7
  `+f.map((E,v)=>{let y=`${v}) Type: ${E.id}
8
8
  `,T=`Message: ${E.message} (${E.thrown})
9
9
  `,W=`Trace: ${E.thrown?.stack}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.42",
3
+ "version": "1.1.43",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "@vkontakte/videoplayer-core": "^2.0.110",
53
- "@vkontakte/videoplayer-interactive": "1.0.18-beta.0",
53
+ "@vkontakte/videoplayer-interactive": "^1.0.18",
54
54
  "@vkontakte/videoplayer-shared": "^1.0.42",
55
55
  "@vkontakte/videoplayer-statistics": "^1.0.57"
56
56
  }