@vkontakte/videoplayer 1.1.72 → 1.1.73-dev.365c92fe.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.72
3
- * Tue, 23 Sep 2025 10:50:27 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-72/doc/
2
+ * @vkontakte/videoplayer v1.1.73-dev.365c92fe.0
3
+ * Thu, 02 Oct 2025 15:55:55 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-73/doc/
5
5
  */
6
- "use strict";var J_=Object.create;var Wl=Object.defineProperty,e0=Object.defineProperties,t0=Object.getOwnPropertyDescriptor,i0=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertyNames,Xv=Object.getOwnPropertySymbols,n0=Object.getPrototypeOf,Jv=Object.prototype.hasOwnProperty,r0=Object.prototype.propertyIsEnumerable;var eg=t=>{throw TypeError(t)};var _p=(t,e,i)=>e in t?Wl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))Jv.call(e,i)&&_p(t,i,e[i]);if(Xv)for(var i of Xv(e))r0.call(e,i)&&_p(t,i,e[i]);return t},Ht=(t,e)=>e0(t,i0(e));var s0=(t,e)=>{for(var i in e)Wl(t,i,{get:e[i],enumerable:!0})},tg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of o0(e))!Jv.call(t,n)&&n!==i&&Wl(t,n,{get:()=>e[n],enumerable:!(o=t0(e,n))||o.enumerable});return t};var ig=(t,e,i)=>(i=t!=null?J_(n0(t)):{},tg(e||!t||!t.__esModule?Wl(i,"default",{value:t,enumerable:!0}):i,t)),a0=t=>tg(Wl({},"__esModule",{value:!0}),t);var Jn=(t,e,i)=>_p(t,typeof e!="symbol"?e+"":e,i),bp=(t,e,i)=>e.has(t)||eg("Cannot "+i);var Li=(t,e,i)=>(bp(t,e,"read from private field"),i?i.call(t):e.get(t)),ks=(t,e,i)=>e.has(t)?eg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Qa=(t,e,i,o)=>(bp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),og=(t,e,i)=>(bp(t,e,"access private method"),i);var St=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())});var T5={};s0(T5,{ControlButtonType:()=>Qd,GridTypes:()=>Wr,InterfaceLanguage:()=>Ul.InterfaceLanguage,MenuItemType:()=>Sl,PlayerPhase:()=>ds,VERSION:()=>ga,VKNumericLanguage:()=>Ul.VKNumericLanguage,VideoFormat:()=>dp.VideoFormat,VideoQuality:()=>dp.VideoQuality,loadVKLangPack:()=>Ul.loadVKLangPack,registerPlayerWebComponent:()=>C5});module.exports=a0(T5);var Ps="[",As="[!",Xs="]",ts={};var eo=Symbol(),On=Symbol("filename"),ng=Symbol("hmr"),rg="http://www.w3.org/1999/xhtml",Ac="http://www.w3.org/2000/svg";var $p="@attach";var Mc=!0;var ag,lg,sg=(lg=(ag=globalThis.process)==null?void 0:ag.env)==null?void 0:lg.NODE_ENV,Le=sg&&!sg.toLowerCase().startsWith("prod");var er=Array.isArray,dg=Array.prototype.indexOf,Kl=Array.from,yp=Object.keys,po=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,Lc=Object.getOwnPropertyDescriptors,xp=Object.prototype,cg=Array.prototype,Js=Object.getPrototypeOf,wp=Object.isExtensible;function Ms(t){return typeof t=="function"}var ce=()=>{};function ug(t){return t()}function Ls(t){for(var e=0;e<t.length;e++)t[e]()}var qo=Symbol("$state"),Ga=Symbol("legacy props"),pg=Symbol(""),Vc=Symbol("proxy path"),Rc=1,ja=3,tr=8;function Nc(t){return t===this.v}function Ya(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function fg(t,e){return t!==e}function Za(t){return!Ya(t,this.v)}function mg(){if(Le){let t=new Error(`derived_references_self
6
+ "use strict";var i_=Object.create;var zl=Object.defineProperty,o_=Object.defineProperties,n_=Object.getOwnPropertyDescriptor,r_=Object.getOwnPropertyDescriptors,s_=Object.getOwnPropertyNames,tg=Object.getOwnPropertySymbols,a_=Object.getPrototypeOf,ig=Object.prototype.hasOwnProperty,l_=Object.prototype.propertyIsEnumerable;var og=t=>{throw TypeError(t)};var bp=(t,e,i)=>e in t?zl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))ig.call(e,i)&&bp(t,i,e[i]);if(tg)for(var i of tg(e))l_.call(e,i)&&bp(t,i,e[i]);return t},Ht=(t,e)=>o_(t,r_(e));var d_=(t,e)=>{for(var i in e)zl(t,i,{get:e[i],enumerable:!0})},ng=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of s_(e))!ig.call(t,n)&&n!==i&&zl(t,n,{get:()=>e[n],enumerable:!(o=n_(e,n))||o.enumerable});return t};var rg=(t,e,i)=>(i=t!=null?i_(a_(t)):{},ng(e||!t||!t.__esModule?zl(i,"default",{value:t,enumerable:!0}):i,t)),c_=t=>ng(zl({},"__esModule",{value:!0}),t);var tr=(t,e,i)=>bp(t,typeof e!="symbol"?e+"":e,i),$p=(t,e,i)=>e.has(t)||og("Cannot "+i);var Ni=(t,e,i)=>($p(t,e,"read from private field"),i?i.call(t):e.get(t)),ks=(t,e,i)=>e.has(t)?og("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),qa=(t,e,i,o)=>($p(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),sg=(t,e,i)=>($p(t,e,"access private method"),i);var St=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())});var L5={};d_(L5,{ControlButtonType:()=>qd,GridTypes:()=>qr,InterfaceLanguage:()=>Fl.InterfaceLanguage,MenuItemType:()=>wl,PlayerPhase:()=>ls,VERSION:()=>va,VKNumericLanguage:()=>Fl.VKNumericLanguage,VideoFormat:()=>cp.VideoFormat,VideoQuality:()=>cp.VideoQuality,loadVKLangPack:()=>Fl.loadVKLangPack,registerPlayerWebComponent:()=>M5});module.exports=c_(L5);var Ps="[",As="[!",Zs="]",ts={};var io=Symbol(),Bn=Symbol("filename"),ag=Symbol("hmr"),lg="http://www.w3.org/1999/xhtml",Mc="http://www.w3.org/2000/svg";var yp="@attach";var Lc=!0;var cg,ug,dg=(ug=(cg=globalThis.process)==null?void 0:cg.env)==null?void 0:ug.NODE_ENV,Me=dg&&!dg.toLowerCase().startsWith("prod");var ir=Array.isArray,pg=Array.prototype.indexOf,Wl=Array.from,xp=Object.keys,mo=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,Vc=Object.getOwnPropertyDescriptors,wp=Object.prototype,fg=Array.prototype,Xs=Object.getPrototypeOf,Sp=Object.isExtensible;function Ms(t){return typeof t=="function"}var de=()=>{};function mg(t){return t()}function Ls(t){for(var e=0;e<t.length;e++)t[e]()}var Qo=Symbol("$state"),Qa=Symbol("legacy props"),vg=Symbol(""),Rc=Symbol("proxy path"),Nc=1,Ga=3,or=8;function Oc(t){return t===this.v}function ja(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function gg(t,e){return t!==e}function Ya(t){return!ja(t,this.v)}function hg(){if(Me){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
8
- https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function vg(t){if(Le){let e=new Error(`effect_in_teardown
8
+ https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function _g(t){if(Me){let e=new Error(`effect_in_teardown
9
9
  \`${t}\` cannot be used inside an effect cleanup function
10
- https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function gg(){if(Le){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function hg(t){if(Le){let e=new Error(`effect_orphan
10
+ https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function bg(){if(Me){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function $g(t){if(Me){let e=new Error(`effect_orphan
11
11
  \`${t}\` can only be used inside an effect (e.g. during component initialisation)
12
- https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function _g(){if(Le){let t=new Error(`effect_update_depth_exceeded
12
+ https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function yg(){if(Me){let t=new Error(`effect_update_depth_exceeded
13
13
  Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
14
- https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function bg(){if(Le){let t=new Error(`hydration_failed
14
+ https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function xg(){if(Me){let t=new Error(`hydration_failed
15
15
  Failed to hydrate the application
16
- https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function $g(){if(Le){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function yg(t){if(Le){let e=new Error(`props_invalid_value
16
+ https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function wg(){if(Me){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Sg(t){if(Me){let e=new Error(`props_invalid_value
17
17
  Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
18
- https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function xg(t){if(Le){let e=new Error(`props_rest_readonly
18
+ https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Cg(t){if(Me){let e=new Error(`props_rest_readonly
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
- https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function wg(t){if(Le){let e=new Error(`rune_outside_svelte
20
+ https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Tg(t){if(Me){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Sg(){if(Le){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cg(){if(Le){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Tg(){if(Le){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var is=!1,os=!1;function Eg(){is=!0}var ql=null;function fs(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
22
+ https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Eg(){if(Me){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ig(){if(Me){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function kg(){if(Me){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var is=!1,os=!1;function Pg(){is=!0}var Kl=null;function fs(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;po(e,"stack",{value:n.join(`
25
- `)}),po(e,"name",{value:`${t}Error`})}return e}function Or(t,e){return t.label=e,Oc(t.v,e),t}function Oc(t,e){var i;return(i=t==null?void 0:t[Vc])==null||i.call(t,e),t}function Xa(t){if(Le){let e=new Error(`lifecycle_outside_component
24
+ `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;mo(e,"stack",{value:n.join(`
25
+ `)}),mo(e,"name",{value:`${t}Error`})}return e}function Br(t,e){return t.label=e,Bc(t.v,e),t}function Bc(t,e){var i;return(i=t==null?void 0:t[Rc])==null||i.call(t,e),t}function Za(t){if(Me){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Bt=null;function Ql(t){Bt=t}var ir=null;function Gl(t){ir=t}function Ja(t){return Tp("getContext").get(t)}function el(t,e){return Tp("setContext").set(t,e),e}function jl(){return Tp("getAllContexts")}function U(t,e=!1,i){var o=Bt={p:Bt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};is&&!e&&(Bt.l={s:null,u:null,r1:[],r2:$r(!1)}),Qo(()=>{o.d=!0}),Le&&(Bt.function=i,ir=i)}function z(t){var l,d;let e=Bt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=bt,o=kt;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];fo(s.effect),Fi(s.reaction),Mo(s.fn)}}finally{fo(i),Fi(o)}}Bt=e.p,Le&&(ir=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ns(){return!is||Bt!==null&&Bt.l===null}function Tp(t){var e;return Bt===null&&Xa(t),(e=Bt.c)!=null?e:Bt.c=new Map(d0(Bt)||void 0)}function d0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var c0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ai(t){if(typeof t!="object"||t===null||qo in t)return t;let e=Js(t);if(e!==xp&&e!==cg)return t;var i=new Map,o=er(t),n=Y(0),s=Le&&os?fs("CreatedAt"):null,l=kt,d=f=>{var v=kt;Fi(l);var p=f();return Fi(v),p};o&&i.set("length",Y(t.length,s));var a="";function u(f){a=f,Or(n,`${a} version`);for(let[v,p]of i)Or(p,ea(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Sg();var x=i.get(v);return x===void 0?x=d(()=>{var w=Y(p.value,s);return i.set(v,w),Le&&typeof v=="string"&&Or(w,ea(a,v)),w}):O(x,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let y=d(()=>Y(eo,s));i.set(v,y),Ep(n),Le&&Or(y,ea(a,v))}}else{if(o&&typeof v=="string"){var x=i.get("length"),w=Number(v);Number.isInteger(w)&&w<x.v&&O(x,w)}O(p,eo),Ep(n)}return!0},get(f,v,p){var S;if(v===qo)return t;if(Le&&v===Vc)return u;var x=i.get(v),w=v in f;if(x===void 0&&(!w||(S=rn(f,v))!=null&&S.writable)&&(x=d(()=>{var T=ai(w?f[v]:eo),E=Y(T,s);return Le&&Or(E,ea(a,v)),E}),i.set(v,x)),x!==void 0){var y=r(x);return y===eo?void 0:y}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var x=i.get(v);x&&(p.value=r(x))}else if(p===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==eo)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,v){var y;if(v===qo)return!0;var p=i.get(v),x=p!==void 0&&p.v!==eo||Reflect.has(f,v);if(p!==void 0||bt!==null&&(!x||(y=rn(f,v))!=null&&y.writable)){p===void 0&&(p=d(()=>{var S=x?ai(f[v]):eo,T=Y(S,s);return Le&&Or(T,ea(a,v)),T}),i.set(v,p));var w=r(p);if(w===eo)return!1}return x},set(f,v,p,x){var R;var w=i.get(v),y=v in f;if(o&&v==="length")for(var S=p;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?O(T,eo):S in f&&(T=d(()=>Y(eo,s)),i.set(S+"",T),Le&&Or(T,ea(a,S)))}if(w===void 0)(!y||(R=rn(f,v))!=null&&R.writable)&&(w=d(()=>Y(void 0,s)),O(w,ai(p)),i.set(v,w),Le&&Or(w,ea(a,v)));else{y=w.v!==eo;var E=d(()=>ai(p));O(w,E)}var V=Reflect.getOwnPropertyDescriptor(f,v);if(V!=null&&V.set&&V.set.call(x,p),!y){if(o&&typeof v=="string"){var k=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=k.v&&O(k,I+1)}Ep(n)}return!0},ownKeys(f){r(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==eo});for(var[p,x]of i)x.v!==eo&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Cg()}})}function ea(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:c0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Ep(t,e=1){O(t,t.v+e)}function tl(t){try{if(t!==null&&typeof t=="object"&&qo in t)return t[qo]}catch(e){}return t}function Ip(t,e){return Object.is(tl(t),tl(e))}function Br(t){var e=2050,i=kt!==null&&(kt.f&2)!==0?kt:null;bt===null||i!==null&&(i.f&256)!==0?e|=256:bt.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:Nc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:bt};return Le&&os&&(o.created=fs("CreatedAt")),o}function g(t){let e=Br(t);return Hc(e),e}function Dr(t){let e=Br(t);return e.equals=Za,e}function Bc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ui(e[i])}}var kp=[];function u0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Mp(t){var e,i=bt;if(fo(u0(t)),Le){let o=ta;Pp(new Set);try{kp.includes(t)&&mg(),kp.push(t),Bc(t),e=Dc(t)}finally{fo(i),Pp(o),kp.pop()}}else try{Bc(t),e=Dc(t)}finally{fo(i)}return e}function Lp(t){var e=Mp(t);if(t.equals(e)||(t.v=e,t.wv=Yl()),!ms){var i=(vs||(t.f&256)!==0)&&t.deps!==null?4096:1024;yn(t,i)}}var ta=new Set,il=new Map;function Pp(t){ta=t}function $r(t,e){var i={f:0,v:t,reactions:null,equals:Nc,rv:0,wv:0};return Le&&os&&(i.created=e!=null?e:fs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Y(t,e){let i=$r(t,e);return Hc(i),i}function rs(t,e=!1,i=!0){var n,s;let o=$r(t);return e||(o.equals=Za),is&&i&&Bt!==null&&Bt.l!==null&&((s=(n=Bt.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;kt!==null&&(!rr||(kt.f&262144)!==0)&&ns()&&(kt.f&262162)!==0&&!((n=jo)!=null&&n[1].includes(t)&&jo[0]===kt)&&Tg();let o=i?ai(e):e;return Le&&Oc(o,t.label),ol(t,o)}function ol(t,e){if(!t.equals(e)){var i=t.v;if(ms?il.set(t,e):il.set(t,i),t.v=e,Le&&os&&(t.updated=fs("UpdatedAt"),bt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Mp(t),yn(t,(t.f&256)===0?1024:4096)),t.wv=Yl(),kg(t,2048),ns()&&bt!==null&&(bt.f&1024)!==0&&(bt.f&96)===0&&(nr===null?Pg([t]):nr.push(t)),Le&&ta.size>0){let o=Array.from(ta);for(let n of o)(n.f&1024)!==0&&yn(n,4096),oa(n)&&nl(n);ta.clear()}}return e}function kg(t,e){var i=t.reactions;if(i!==null)for(var o=ns(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===bt)){if(Le&&(d&262144)!==0){ta.add(l);continue}yn(l,e),(d&1280)!==0&&((d&2)!==0?kg(l,4096):Xl(l))}}}var rl="font-weight: bold",sl="font-weight: normal";function Ag(t,e,i){Le?console.warn(`%c[svelte] hydration_attribute_changed
27
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Ot=null;function ql(t){Ot=t}var nr=null;function Ql(t){nr=t}function Xa(t){return Ep("getContext").get(t)}function Ja(t,e){return Ep("setContext").set(t,e),e}function Gl(){return Ep("getAllContexts")}function U(t,e=!1,i){var o=Ot={p:Ot,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};is&&!e&&(Ot.l={s:null,u:null,r1:[],r2:yr(!1)}),Go(()=>{o.d=!0}),Me&&(Ot.function=i,nr=i)}function z(t){var l,d;let e=Ot;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=ht,o=Mt;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];vo(s.effect),Wi(s.reaction),Ro(s.fn)}}finally{vo(i),Wi(o)}}Ot=e.p,Me&&(nr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ns(){return!is||Ot!==null&&Ot.l===null}function Ep(t){var e;return Ot===null&&Za(t),(e=Ot.c)!=null?e:Ot.c=new Map(p_(Ot)||void 0)}function p_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var f_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ii(t){if(typeof t!="object"||t===null||Qo in t)return t;let e=Xs(t);if(e!==wp&&e!==fg)return t;var i=new Map,o=ir(t),n=Z(0),s=Me&&os?fs("CreatedAt"):null,l=Mt,d=f=>{var m=Mt;Wi(l);var p=f();return Wi(m),p};o&&i.set("length",Z(t.length,s));var a="";function u(f){a=f,Br(n,`${a} version`);for(let[m,p]of i)Br(p,Js(a,m))}return new Proxy(t,{defineProperty(f,m,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Eg();var w=i.get(m);return w===void 0?w=d(()=>{var x=Z(p.value,s);return i.set(m,x),Me&&typeof m=="string"&&Br(x,Js(a,m)),x}):O(w,p.value,!0),!0},deleteProperty(f,m){var p=i.get(m);if(p===void 0){if(m in f){let y=d(()=>Z(io,s));i.set(m,y),Ip(n),Me&&Br(y,Js(a,m))}}else{if(o&&typeof m=="string"){var w=i.get("length"),x=Number(m);Number.isInteger(x)&&x<w.v&&O(w,x)}O(p,io),Ip(n)}return!0},get(f,m,p){var T;if(m===Qo)return t;if(Me&&m===Rc)return u;var w=i.get(m),x=m in f;if(w===void 0&&(!x||(T=nn(f,m))!=null&&T.writable)&&(w=d(()=>{var C=ii(x?f[m]:io),E=Z(C,s);return Me&&Br(E,Js(a,m)),E}),i.set(m,w)),w!==void 0){var y=r(w);return y===io?void 0:y}return Reflect.get(f,m,p)},getOwnPropertyDescriptor(f,m){var p=Reflect.getOwnPropertyDescriptor(f,m);if(p&&"value"in p){var w=i.get(m);w&&(p.value=r(w))}else if(p===void 0){var x=i.get(m),y=x==null?void 0:x.v;if(x!==void 0&&y!==io)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,m){var y;if(m===Qo)return!0;var p=i.get(m),w=p!==void 0&&p.v!==io||Reflect.has(f,m);if(p!==void 0||ht!==null&&(!w||(y=nn(f,m))!=null&&y.writable)){p===void 0&&(p=d(()=>{var T=w?ii(f[m]):io,C=Z(T,s);return Me&&Br(C,Js(a,m)),C}),i.set(m,p));var x=r(p);if(x===io)return!1}return w},set(f,m,p,w){var N;var x=i.get(m),y=m in f;if(o&&m==="length")for(var T=p;T<x.v;T+=1){var C=i.get(T+"");C!==void 0?O(C,io):T in f&&(C=d(()=>Z(io,s)),i.set(T+"",C),Me&&Br(C,Js(a,T)))}if(x===void 0)(!y||(N=nn(f,m))!=null&&N.writable)&&(x=d(()=>Z(void 0,s)),O(x,ii(p)),i.set(m,x),Me&&Br(x,Js(a,m)));else{y=x.v!==io;var E=d(()=>ii(p));O(x,E)}var V=Reflect.getOwnPropertyDescriptor(f,m);if(V!=null&&V.set&&V.set.call(w,p),!y){if(o&&typeof m=="string"){var k=i.get("length"),I=Number(m);Number.isInteger(I)&&I>=k.v&&O(k,I+1)}Ip(n)}return!0},ownKeys(f){r(n);var m=Reflect.ownKeys(f).filter(x=>{var y=i.get(x);return y===void 0||y.v!==io});for(var[p,w]of i)w.v!==io&&!(p in f)&&m.push(p);return m},setPrototypeOf(){Ig()}})}function Js(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:f_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Ip(t,e=1){O(t,t.v+e)}function el(t){try{if(t!==null&&typeof t=="object"&&Qo in t)return t[Qo]}catch(e){}return t}function kp(t,e){return Object.is(el(t),el(e))}function Dr(t){var e=2050,i=Mt!==null&&(Mt.f&2)!==0?Mt:null;ht===null||i!==null&&(i.f&256)!==0?e|=256:ht.f|=1048576;let o={ctx:Ot,deps:null,effects:null,equals:Oc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:ht};return Me&&os&&(o.created=fs("CreatedAt")),o}function g(t){let e=Dr(t);return Fc(e),e}function Hr(t){let e=Dr(t);return e.equals=Ya,e}function Dc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ki(e[i])}}var Pp=[];function m_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Lp(t){var e,i=ht;if(vo(m_(t)),Me){let o=ea;Ap(new Set);try{Pp.includes(t)&&hg(),Pp.push(t),Dc(t),e=Hc(t)}finally{vo(i),Ap(o),Pp.pop()}}else try{Dc(t),e=Hc(t)}finally{vo(i)}return e}function Vp(t){var e=Lp(t);if(t.equals(e)||(t.v=e,t.wv=jl()),!ms){var i=(vs||(t.f&256)!==0)&&t.deps!==null?4096:1024;hn(t,i)}}var ea=new Set,tl=new Map;function Ap(t){ea=t}function yr(t,e){var i={f:0,v:t,reactions:null,equals:Oc,rv:0,wv:0};return Me&&os&&(i.created=e!=null?e:fs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Z(t,e){let i=yr(t,e);return Fc(i),i}function rs(t,e=!1,i=!0){var n,s;let o=yr(t);return e||(o.equals=Ya),is&&i&&Ot!==null&&Ot.l!==null&&((s=(n=Ot.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;Mt!==null&&(!ar||(Mt.f&262144)!==0)&&ns()&&(Mt.f&262162)!==0&&!((n=Yo)!=null&&n[1].includes(t)&&Yo[0]===Mt)&&kg();let o=i?ii(e):e;return Me&&Bc(o,t.label),il(t,o)}function il(t,e){if(!t.equals(e)){var i=t.v;if(ms?tl.set(t,e):tl.set(t,i),t.v=e,Me&&os&&(t.updated=fs("UpdatedAt"),ht!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Lp(t),hn(t,(t.f&256)===0?1024:4096)),t.wv=jl(),Mg(t,2048),ns()&&ht!==null&&(ht.f&1024)!==0&&(ht.f&96)===0&&(sr===null?Lg([t]):sr.push(t)),Me&&ea.size>0){let o=Array.from(ea);for(let n of o)(n.f&1024)!==0&&hn(n,4096),ia(n)&&ol(n);ea.clear()}}return e}function Mg(t,e){var i=t.reactions;if(i!==null)for(var o=ns(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===ht)){if(Me&&(d&262144)!==0){ea.add(l);continue}hn(l,e),(d&1280)!==0&&((d&2)!==0?Mg(l,4096):Zl(l))}}}var nl="font-weight: bold",rl="font-weight: normal";function Vg(t,e,i){Me?console.warn(`%c[svelte] hydration_attribute_changed
28
28
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
29
- https://svelte.dev/e/hydration_attribute_changed`,rl,sl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Mg(t){Le?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,nl,rl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Rg(t){Me?console.warn(`%c[svelte] hydration_html_changed
30
30
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
31
- https://svelte.dev/e/hydration_html_changed`,rl,sl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Vs(t){Le?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,nl,rl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Vs(t){Me?console.warn(`%c[svelte] hydration_mismatch
32
32
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
33
- https://svelte.dev/e/hydration_mismatch`,rl,sl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Lg(){Le?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,nl,rl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Ng(){Me?console.warn(`%c[svelte] lifecycle_double_unmount
34
34
  %cTried to unmount a component that was not mounted
35
- https://svelte.dev/e/lifecycle_double_unmount`,rl,sl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Vg(){Le?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",rl,sl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Fc(t){Le?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,nl,rl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Og(){Me?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",nl,rl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Uc(t){Me?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
36
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,rl,sl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var et=!1;function mo(t){et=t}var $t;function Si(t){if(t===null)throw Vs(),ts;return $t=t}function zi(){return Si(Yo($t))}function h(t){if(et){if(Yo($t)!==null)throw Vs(),ts;$t=t}}function Te(t=1){if(et){for(var e=t,i=$t;e--;)i=Yo(i);$t=i}}function na(){for(var t=0,e=$t;;){if(e.nodeType===tr){var i=e.data;if(i===Xs){if(t===0)return e;t-=1}else(i===Ps||i===As)&&(t+=1)}var o=Yo(e);e.remove(),e=o}}function Uc(t){if(!t||t.nodeType!==tr)throw Vs(),ts;return t.data}function Rg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(tl(this[a])===s){Fc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(tl(this[a])===s){Fc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(tl(this[a])===s){Fc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ra,Ng,Jl,Og,Bg;function zc(){if(ra===void 0){ra=window,Ng=document,Jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Og=rn(e,"firstChild").get,Bg=rn(e,"nextSibling").get,wp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),wp(i)&&(i.__t=void 0),Le&&(t.__svelte_meta=null,Rg())}}function xn(t=""){return document.createTextNode(t)}function Ti(t){return Og.call(t)}function Yo(t){return Bg.call(t)}function _(t,e){if(!et)return Ti(t);var i=Ti($t);if(i===null)i=$t.appendChild(xn());else if(e&&i.nodeType!==ja){var o=xn();return i==null||i.before(o),Si(o),o}return Si(i),i}function he(t,e){var n,s;if(!et){var i=Ti(t);return i.nodeType===8&&i.data===""?Yo(i):i}if(e&&((n=$t)==null?void 0:n.nodeType)!==ja){var o=xn();return(s=$t)==null||s.before(o),Si(o),o}return $t}function P(t,e=1,i=!1){let o=et?$t:t;for(var n;e--;)n=o,o=Yo(o);if(!et)return o;if(i&&(o==null?void 0:o.nodeType)!==ja){var s=xn();return o===null?n==null||n.after(s):o.before(s),Si(s),s}return Si(o),o}function ed(t){t.textContent=""}function Np(t){bt===null&&kt===null&&hg(t),kt!==null&&(kt.f&256)!==0&&bt===null&&gg(),ms&&vg(t)}function p0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function sa(t,e,i,o=!0){var a;var n=bt;if(Le)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Bt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Le&&(s.component_function=ir),i)try{nl(s),s.f|=32768}catch(u){throw Ui(s),u}else e!==null&&Xl(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&p0(s,n),kt!==null&&(kt.f&2)!==0)){var d=kt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Qo(t){let e=sa(8,null,!1);return yn(e,1024),e.teardown=t,e}function qe(t){var n;Np("$effect");var e=bt!==null&&(bt.f&32)!==0&&Bt!==null&&!Bt.m;if(Le&&po(t,"name",{value:"$effect"}),e){var i=Bt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:bt,reaction:kt})}else{var o=Mo(t);return o}}function od(t){return Np("$effect.pre"),Le&&po(t,"name",{value:"$effect.pre"}),Zo(t)}function qc(t){let e=sa(64,t,!0);return()=>{Ui(e)}}function Hg(t){let e=sa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Fn(e,()=>{Ui(e),o(void 0)}):(Ui(e),o(void 0))})}function Mo(t){return sa(4,t,!1)}function Zo(t){return sa(8,t,!0)}function B(t,e=[],i=Br){if(Le)return Zo(()=>{var n=bt,s=()=>t(...l.map(r));po(n.fn,"name",{value:"{expression}"}),po(s,"name",{value:"{expression}"});let l=e.map(i);Wi(s)});let o=e.map(i);return Wi(()=>t(...o.map(r)))}function Wi(t,e=0){return sa(24|e,t,!0)}function Vi(t,e=!0){return sa(40,t,!0,e)}function Op(t){var e=t.teardown;if(e!==null){let i=ms,o=kt;Vp(!0),Fi(null);try{e.call(null)}finally{Vp(i),Fi(o)}}}function Bp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Ui(i,e),i=o}}function Fg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ui(e),e=i}}function Ui(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Dp(t.nodes_start,t.nodes_end),i=!0),Bp(t,e&&!i),nd(t,0),yn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Op(t);var n=t.parent;n!==null&&n.first!==null&&Hp(t),Le&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Dp(t,e){for(;t!==null;){var i=t===e?null:Yo(t);t.remove(),t=i}}function Hp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Fn(t,e){var i=[];Qc(t,i,!0),Fp(i,()=>{Ui(t),e&&e()})}function Fp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Qc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Qc(o,e,s?i:!1),o=n}}}function hs(t){Ug(t,!0)}function Ug(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Ug(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var rd=[],Up=[];function zg(){var t=rd;rd=[],Ls(t)}function f0(){var t=Up;Up=[],Ls(t)}function wn(t){rd.length===0&&queueMicrotask(zg),rd.push(t)}function Wg(){rd.length>0&&zg(),Up.length>0&&f0()}function qg(t){var e=bt;if(Le&&t instanceof Error&&m0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else sd(t,e)}function sd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Kg=new WeakSet;function m0(t,e){var l,d;if(Kg.has(t))return;Kg.add(t);let i=rn(t,"message");if(!(i&&!i.configurable)){for(var o=Jl?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,nl,rl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var tt=!1;function go(t){tt=t}var _t;function Si(t){if(t===null)throw Vs(),ts;return _t=t}function qi(){return Si(Zo(_t))}function h(t){if(tt){if(Zo(_t)!==null)throw Vs(),ts;_t=t}}function Ce(t=1){if(tt){for(var e=t,i=_t;e--;)i=Zo(i);_t=i}}function oa(){for(var t=0,e=_t;;){if(e.nodeType===or){var i=e.data;if(i===Zs){if(t===0)return e;t-=1}else(i===Ps||i===As)&&(t+=1)}var o=Zo(e);e.remove(),e=o}}function zc(t){if(!t||t.nodeType!==or)throw Vs(),ts;return t.data}function Bg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(el(this[a])===s){Uc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(el(this[a])===s){Uc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(el(this[a])===s){Uc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var na,Dg,Xl,Hg,Fg;function Wc(){if(na===void 0){na=window,Dg=document,Xl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Hg=nn(e,"firstChild").get,Fg=nn(e,"nextSibling").get,Sp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Sp(i)&&(i.__t=void 0),Me&&(t.__svelte_meta=null,Bg())}}function _n(t=""){return document.createTextNode(t)}function Ii(t){return Hg.call(t)}function Zo(t){return Fg.call(t)}function _(t,e){if(!tt)return Ii(t);var i=Ii(_t);if(i===null)i=_t.appendChild(_n());else if(e&&i.nodeType!==Ga){var o=_n();return i==null||i.before(o),Si(o),o}return Si(i),i}function fe(t,e){var n,s;if(!tt){var i=Ii(t);return i.nodeType===8&&i.data===""?Zo(i):i}if(e&&((n=_t)==null?void 0:n.nodeType)!==Ga){var o=_n();return(s=_t)==null||s.before(o),Si(o),o}return _t}function P(t,e=1,i=!1){let o=tt?_t:t;for(var n;e--;)n=o,o=Zo(o);if(!tt)return o;if(i&&(o==null?void 0:o.nodeType)!==Ga){var s=_n();return o===null?n==null||n.after(s):o.before(s),Si(s),s}return Si(o),o}function Jl(t){t.textContent=""}function Op(t){ht===null&&Mt===null&&$g(t),Mt!==null&&(Mt.f&256)!==0&&ht===null&&bg(),ms&&_g(t)}function v_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ra(t,e,i,o=!0){var a;var n=ht;if(Me)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Ot,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Me&&(s.component_function=nr),i)try{ol(s),s.f|=32768}catch(u){throw Ki(s),u}else e!==null&&Zl(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&v_(s,n),Mt!==null&&(Mt.f&2)!==0)){var d=Mt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Go(t){let e=ra(8,null,!1);return hn(e,1024),e.teardown=t,e}function qe(t){var n;Op("$effect");var e=ht!==null&&(ht.f&32)!==0&&Ot!==null&&!Ot.m;if(Me&&mo(t,"name",{value:"$effect"}),e){var i=Ot;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:ht,reaction:Mt})}else{var o=Ro(t);return o}}function id(t){return Op("$effect.pre"),Me&&mo(t,"name",{value:"$effect.pre"}),Xo(t)}function Qc(t){let e=ra(64,t,!0);return()=>{Ki(e)}}function zg(t){let e=ra(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Un(e,()=>{Ki(e),o(void 0)}):(Ki(e),o(void 0))})}function Ro(t){return ra(4,t,!1)}function Xo(t){return ra(8,t,!0)}function B(t,e=[],i=Dr){if(Me)return Xo(()=>{var n=ht,s=()=>t(...l.map(r));mo(n.fn,"name",{value:"{expression}"}),mo(s,"name",{value:"{expression}"});let l=e.map(i);Qi(s)});let o=e.map(i);return Qi(()=>t(...o.map(r)))}function Qi(t,e=0){return ra(24|e,t,!0)}function Oi(t,e=!0){return ra(40,t,!0,e)}function Bp(t){var e=t.teardown;if(e!==null){let i=ms,o=Mt;Rp(!0),Wi(null);try{e.call(null)}finally{Rp(i),Wi(o)}}}function Dp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Ki(i,e),i=o}}function Wg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ki(e),e=i}}function Ki(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Hp(t.nodes_start,t.nodes_end),i=!0),Dp(t,e&&!i),od(t,0),hn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Bp(t);var n=t.parent;n!==null&&n.first!==null&&Fp(t),Me&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Hp(t,e){for(;t!==null;){var i=t===e?null:Zo(t);t.remove(),t=i}}function Fp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Un(t,e){var i=[];Gc(t,i,!0),Up(i,()=>{Ki(t),e&&e()})}function Up(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Gc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Gc(o,e,s?i:!1),o=n}}}function hs(t){Kg(t,!0)}function Kg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Kg(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var nd=[],zp=[];function qg(){var t=nd;nd=[],Ls(t)}function g_(){var t=zp;zp=[],Ls(t)}function bn(t){nd.length===0&&queueMicrotask(qg),nd.push(t)}function Qg(){nd.length>0&&qg(),zp.length>0&&g_()}function jg(t){var e=ht;if(Me&&t instanceof Error&&h_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else rd(t,e)}function rd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Gg=new WeakSet;function h_(t,e){var l,d;if(Gg.has(t))return;Gg.add(t);let i=nn(t,"message");if(!(i&&!i.configurable)){for(var o=Xl?" ":" ",n=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)n+=`
39
- ${o}in ${(d=s.function)==null?void 0:d[On].split("/").pop()}`,s=s.p;po(t,"message",{value:t.message+`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Bn].split("/").pop()}`,s=s.p;mo(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&po(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&mo(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var aa=!1,al=null,la=!1,ms=!1;function Vp(t){ms=t}var ad=[],ld=[],kt=null,rr=!1;function Fi(t){kt=t}var bt=null;function fo(t){bt=t}var jo=null;function Hc(t){kt!==null&&kt.f&2097152&&(jo===null?jo=[kt,[t]]:jo[1].push(t))}var Sn=null,sr=0,nr=null;function Pg(t){nr=t}var jg=1,jc=0,vs=!1,Yc=null;function Yl(){return++jg}function oa(t){var v,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,s,l=(e&512)!==0,d=o&&bt!==null&&!vs,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)s=i[n],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<a;n++)if(s=i[n],oa(s)&&Lp(s),s.wv>t.wv)return!0}(!o||bt!==null&&!vs)&&yn(t,1024)}return!1}function Yg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];jo!=null&&jo[1].includes(t)&&jo[0]===kt||((s.f&2)!==0?Yg(s,e,!1):e===s&&(i?yn(s,2048):(s.f&1024)!==0&&yn(s,4096),Xl(s)))}}function Dc(t){var x,w;var e=Sn,i=sr,o=nr,n=kt,s=vs,l=jo,d=Bt,a=rr,u=t.f;Sn=null,sr=0,nr=null,vs=(u&256)!==0&&(rr||!la||kt===null),kt=(u&96)===0?t:null,jo=null,Ql(t.ctx),rr=!1,jc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(Sn!==null){var p;if(nd(t,sr),v!==null&&sr>0)for(v.length=sr+Sn.length,p=0;p<Sn.length;p++)v[sr+p]=Sn[p];else t.deps=v=Sn;if(!vs||(u&2)!==0&&t.reactions!==null)for(p=sr;p<v.length;p++)((w=(x=v[p]).reactions)!=null?w:x.reactions=[]).push(t)}else v!==null&&sr<v.length&&(nd(t,sr),v.length=sr);if(ns()&&nr!==null&&!rr&&v!==null&&(t.f&6146)===0)for(p=0;p<nr.length;p++)Yg(nr[p],t);return n!==null&&n!==t&&(jc++,nr!==null&&(o===null?o=nr:o.push(...nr))),f}catch(y){qg(y)}finally{Sn=e,sr=i,nr=o,kt=n,vs=s,jo=l,Ql(d),rr=a,t.f^=2097152}}function v0(t,e){let i=e.reactions;if(i!==null){var o=dg.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(Sn===null||!Sn.includes(e))&&(yn(e,4096),(e.f&768)===0&&(e.f^=512),Bc(e),nd(e,0))}function nd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)v0(t,i[o])}function nl(t){var e=t.f;if((e&16384)===0){yn(t,1024);var i=bt,o=la;if(bt=t,la=!0,Le){var n=ir;Gl(t.component_function)}try{(e&16)!==0?Fg(t):Bp(t),Op(t);var s=Dc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=jg,Le&&os&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Yl(),l.set_during_effect=!1);Le&&ld.push(t)}finally{la=o,bt=i,Le&&Gl(n)}}}function Qg(){console.error("Last ten effects were: ",ld.slice(-10).map(t=>t.fn)),ld=[]}function g0(){try{_g()}catch(t){if(Le&&po(t,"stack",{value:""}),al!==null)if(Le)try{sd(t,al)}catch(e){throw Qg(),e}else sd(t,al);else throw Le&&Qg(),t}}function Wp(){var t=la;try{var e=0;for(la=!0;ad.length>0;){e++>1e3&&g0();var i=ad,o=i.length;ad=[];for(var n=0;n<o;n++){var s=_0(i[n]);h0(s)}il.clear()}}finally{aa=!1,la=t,al=null,Le&&(ld=[])}}function h0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&oa(o)&&(nl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Hp(o):o.fn=null))}}function Xl(t){aa||(aa=!0,queueMicrotask(Wp));for(var e=al=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}ad.push(e)}function _0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:oa(i)&&nl(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function ll(t){var e;for(t&&(aa=!0,Wp(),aa=!0,e=t());;){if(Wg(),ad.length===0)return aa=!1,al=null,Le&&(ld=[]),e;aa=!0,Wp()}}function Lo(){return St(this,null,function*(){yield Promise.resolve(),ll()})}function r(t){var e=t.f,i=(e&2)!==0;if(Yc!==null&&Yc.add(t),kt!==null&&!rr){if(!(jo!=null&&jo[1].includes(t))||jo[0]!==kt){var o=kt.deps;t.rv<jc&&(t.rv=jc,Sn===null&&o!==null&&o[sr]===t?sr++:Sn===null?Sn=[t]:(!vs||!Sn.includes(t))&&Sn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,oa(n)&&Lp(n)),Le&&os&&!rr&&ql!==null&&kt!==null&&ql.reaction===kt)if(t.trace)t.trace();else{var l=fs("TracedAt");if(l){var d=ql.entries.get(t);d===void 0&&(d={traces:[]},ql.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ms&&il.has(t)?il.get(t):t.v}function Ct(t){var e=rr;try{return rr=!0,t()}finally{rr=e}}var b0=-7169;function yn(t,e){t.f=t.f&b0|e}function Xc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(qo in t)Zc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&qo in i&&Zc(i)}}}function Zc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Zc(t[o],e)}catch(n){}let i=Js(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Lc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Kp(t,e){if(e){let i=document.body;t.autofocus=!0,wn(()=>{document.activeElement===i&&t.focus()})}}function dd(t){var e=kt,i=bt;Fi(null),fo(null);try{return t()}finally{Fi(e),fo(i)}}var qp=new Set,Jc=new Set;function da(t){if(!et)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Qp(t,e,i,o={}){function n(s){if(o.capture||dl.call(e,s),!s.cancelBubble)return dd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?wn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var s={capture:o,passive:n},l=Qp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Qo(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)qp.add(t[e]);for(var i of Jc)i(t)}function dl(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=n[l]||t.target,s!==e){po(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=kt,v=bt;Fi(null),fo(null);try{for(var p,x=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(er(y)){var[S,...T]=y;S.apply(s,[t,...T])}else y.call(s,t)}catch(V){p?x.push(V):p=V}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let V of x)queueMicrotask(()=>{throw V});throw p}}finally{t.__root=e,delete t.currentTarget,Fi(f),fo(v)}}}var y0;function Zg(){y0=void 0}function cl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Vo(t,e){var i=bt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(et)return Vo($t,null),$t;n===void 0&&(n=cl(s?t:"<!>"+t),i||(n=Ti(n)));var l=o||Jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=Ti(l),a=l.lastChild;Vo(d,a)}else Vo(l,l);return l}}function S0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(et)return Vo($t,null),$t;if(!l){var d=cl(s),a=Ti(d);if(n)for(l=document.createDocumentFragment();Ti(a);)l.appendChild(Ti(a));else l=Ti(a)}var u=l.cloneNode(!0);if(n){var f=Ti(u),v=u.lastChild;Vo(f,v)}else Vo(u,u);return u}}function Ee(t,e){return S0(t,e,"svg")}function ss(t=""){if(!et){var e=xn(t+"");return Vo(e,e),e}var i=$t;return i.nodeType!==ja&&(i.before(i=xn()),Si(i)),Vo(i,i),i}function Ke(){if(et)return Vo($t,null),$t;var t=document.createDocumentFragment(),e=document.createComment(""),i=xn();return t.append(e,i),Vo(e,i),t}function $(t,e){if(et){bt.nodes_end=$t,zi();return}t!==null&&t.before(e)}var C0=/\r/g;function Jg(t){t=t.replace(C0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function eh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var T0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function th(t){return T0.includes(t)}var E0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var I0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ih(t){var e;return t=t.toLowerCase(),(e=I0[t])!=null?e:t}var vS=[...E0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var k0=["touchstart","touchmove"];function oh(t){return k0.includes(t)}var P0=["$state","$state.raw","$derived","$derived.by"],gS=[...P0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var A0=["textarea","script","style","title"];function nh(t){return A0.includes(t)}function eu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var cd=!0;function tu(t){cd=t}function $e(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function as(t,e){return rh(t,e)}function jp(t,e){var l;zc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=et,n=$t;try{for(var s=Ti(i);s&&(s.nodeType!==tr||s.data!==Ps);)s=Yo(s);if(!s)throw ts;mo(!0),Si(s),zi();let d=rh(t,Ht(W({},e),{anchor:s}));if($t===null||$t.nodeType!==tr||$t.data!==Xs)throw Vs(),ts;return mo(!1),d}catch(d){if(d===ts)return e.recover===!1&&bg(),zc(),ed(i),mo(!1),as(t,e);throw d}finally{mo(o),Si(n),Zg()}}var ul=new Map;function rh(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){zc();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var x=v[p];if(!d.has(x)){d.add(x);var w=oh(x);e.addEventListener(x,dl,{passive:w});var y=ul.get(x);y===void 0?(document.addEventListener(x,dl,{passive:w}),ul.set(x,1)):ul.set(x,y+1)}}};a(Kl(qp)),Jc.add(a);var u=void 0,f=Hg(()=>{var v=i!=null?i:e.appendChild(xn());return Vi(()=>{if(s){U({});var p=Bt;p.c=s}n&&(o.$$events=n),et&&Vo(v,null),cd=l,u=t(v,o)||{},cd=!0,et&&(bt.nodes_end=$t),s&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,dl);var x=ul.get(p);--x===0?(document.removeEventListener(p,dl),ul.delete(p)):ul.set(p,x)}Jc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Gp.set(u,f),u}var Gp=new WeakMap;function ca(t,e){let i=Gp.get(t);return i?(Gp.delete(t),i(e)):(Le&&Lg(),Promise.resolve())}function xe(t,e,...i){var o=t,n=ce,s;Wi(()=>{n!==(n=e())&&(s&&(Ui(s),s=null),Le&&n==null&&$g(),s=Vi(()=>n(o,...i)))},65536),et&&(o=$t)}if(Le){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;wg(e)},set:o=>{i=o}})}};R0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var R0;function Vt(t){Bt===null&&Xa("onMount"),is&&Bt.l!==null?V0(Bt).m.push(t):qe(()=>{let e=Ct(t);if(typeof e=="function")return e})}function ln(t){Bt===null&&Xa("onDestroy"),Vt(()=>()=>Ct(t))}function V0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var sh=new Map;function ah(t,e){var i=sh.get(t);i||(i=new Set,sh.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){et&&i===0&&zi();var n=t,s=null,l=null,d=eo,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,v(x,p)},v=(p,x)=>{if(d===(d=p))return;let w=!1;if(et&&o!==-1){if(i===0){let S=Uc(n);S===Ps?o=0:S===As?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=na(),Si(n),mo(!1),w=!0,o=-1)}d?(s?hs(s):x&&(s=Vi(()=>x(n))),l&&Fn(l,()=>{l=null})):(l?hs(l):x&&(l=Vi(()=>x(n,[i+1,o]))),s&&Fn(s,()=>{s=null})),w&&mo(!0)};Wi(()=>{u=!1,e(f),u||v(null,null)},a),et&&(n=$t)}function ua(t,e,i){et&&zi();var o=t,n=eo,s,l=ns()?fg:Ya;Wi(()=>{l(n,n=e())&&(s&&Fn(s),s=Vi(()=>i(o)))}),et&&(o=$t)}var Ns=null;function Xp(t){Ns=t}function ud(t,e){return e}function B0(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Qc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;ed(a),a.append(i),o.clear(),Rs(t,e[0].prev,e[s-1].next)}Fp(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Rs(t,f.prev,f.next)),Ui(f.e,!d)}})}function Ii(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=et?Si(Ti(u)):u.appendChild(xn())}et&&zi();var f=null,v=!1,p=Dr(()=>{var x=i();return er(x)?x:x==null?[]:Kl(x)});Wi(()=>{var x=r(p),w=x.length;if(v&&w===0)return;v=w===0;let y=!1;if(et){var S=Uc(l)===As;S!==(w===0)&&(l=na(),Si(l),mo(!1),y=!0)}if(et){for(var T=null,E,V=0;V<w;V++){if($t.nodeType===tr&&$t.data===Xs){l=$t,y=!0,mo(!1);break}var k=x[V],I=o(k,V);E=ch($t,d,T,null,k,I,V,n,e,i),d.items.set(I,E),T=E}w>0&&Si(na())}et||D0(x,d,l,n,e,o,i),s!==null&&(w===0?f?hs(f):f=Vi(()=>s(l)):f!==null&&Fn(f,()=>{f=null})),y&&mo(!0),r(p)}),et&&(l=$t)}function D0(t,e,i,o,n,s,l){var oe,pe,ye,me;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,v=e.first,p=v,x,w=null,y,S=[],T=[],E,V,k,I;if(d)for(I=0;I<u;I+=1)E=t[I],V=s(E,I),k=f.get(V),k!==void 0&&((oe=k.a)==null||oe.measure(),(y!=null?y:y=new Set).add(k));for(I=0;I<u;I+=1){if(E=t[I],V=s(E,I),k=f.get(V),k===void 0){var R=p?p.e.nodes_start:i;w=ch(R,e,w,w===null?e.first:w.next,E,V,I,o,n,l),f.set(V,w),S=[],T=[],p=w.next;continue}if(a&&H0(k,E,I,n),(k.e.f&8192)!==0&&(hs(k.e),d&&((pe=k.a)==null||pe.unfix(),(y!=null?y:y=new Set).delete(k))),k!==p){if(x!==void 0&&x.has(k)){if(S.length<T.length){var Z=T[0],H;w=Z.prev;var F=S[0],K=S[S.length-1];for(H=0;H<S.length;H+=1)lh(S[H],Z,i);for(H=0;H<T.length;H+=1)x.delete(T[H]);Rs(e,F.prev,K.next),Rs(e,w,F),Rs(e,K,Z),p=Z,w=K,I-=1,S=[],T=[]}else x.delete(k),lh(k,p,i),Rs(e,k.prev,k.next),Rs(e,k,w===null?e.first:w.next),Rs(e,w,k),w=k;continue}for(S=[],T=[];p!==null&&p.k!==V;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;k=p}S.push(k),w=k,p=k.next}if(p!==null||x!==void 0){for(var ee=x===void 0?[]:Kl(x);p!==null;)(p.e.f&8192)===0&&ee.push(p),p=p.next;var j=ee.length;if(j>0){var ue=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<j;I+=1)(ye=ee[I].a)==null||ye.measure();for(I=0;I<j;I+=1)(me=ee[I].a)==null||me.fix()}B0(e,ee,ue,f)}}d&&wn(()=>{var Pe;if(y!==void 0)for(k of y)(Pe=k.a)==null||Pe.apply()}),bt.first=e.first&&e.first.e,bt.last=w&&w.e}function H0(t,e,i,o){(o&1)!==0&&ol(t.v,e),(o&2)!==0?ol(t.i,i):t.i=i}function ch(t,e,i,o,n,s,l,d,a,u){var f=Ns,v=(a&1)!==0,p=(a&16)===0,x=v?p?rs(n,!1,!1):$r(n):n,w=(a&2)===0?l:$r(l);Le&&v&&(x.trace=()=>{var S=typeof w=="number"?l:w.v;u()[S]});var y={i:w,v:x,k:s,a:null,e:null,prev:i,next:o};Ns=y;try{return y.e=Vi(()=>d(t,x,w,u),et),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ns=f}}function lh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Yo(s);n.before(s),s=l}}function Rs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function F0(t,e,i){var s,l;if(!e||e===Jg(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=ir)!=null&&l[On]&&(o=`in ${ir[On]}`),Mg(eu(o))}function pd(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var x;var d=bt;if(l===(l=(x=e())!=null?x:"")){et&&zi();return}if(d.nodes_start!==null&&(Dp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(et){for(var a=$t.data,u=zi(),f=u;u!==null&&(u.nodeType!==tr||u.data!=="");)f=u,u=Yo(u);if(u===null)throw Vs(),ts;Le&&!n&&F0(u.parentNode,a,l),Vo($t,f),s=Si(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=cl(v);if((i||o)&&(p=Ti(p)),Vo(Ti(p),p.lastChild),i||o)for(;Ti(p);)s.before(Ti(p));else s.before(p)}})}function ki(t,e,i){et&&zi();var o=t,n,s;Wi(()=>{n!==(n=e())&&(s&&(Fn(s),s=null),n&&(s=Vi(()=>i(o,n))))},65536),et&&(o=$t)}function pa(t,e,i,o,n,s){var w;let l=et;et&&zi();var d=Le&&s&&((w=Bt)==null?void 0:w.function[On]),a,u,f=null;et&&$t.nodeType===Rc&&(f=$t,zi());var v=et?$t:t,p,x=Ns;Wi(()=>{let y=e()||null;var S=n?n():i||y==="svg"?Ac:null;if(y!==a){var T=Ns;Xp(x),p&&(y===null?Fn(p,()=>{p=null,u=null}):y===u?hs(p):(Ui(p),tu(!1))),y&&y!==u&&(p=Vi(()=>{if(f=et?f:S?document.createElementNS(S,y):document.createElement(y),Le&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Vo(f,f),o){et&&nh(y)&&f.append(document.createComment(""));var E=et?Ti(f):f.appendChild(xn());et&&(E===null?mo(!1):Si(E)),o(f,E)}bt.nodes_end=f,v.before(f)})),a=y,a&&(u=a),tu(!0),Xp(T)}},65536),l&&(mo(!0),Si(v))}var ef;function uh(t){return ef=t.target,new Jp(t)}var _s,yr,Jp=class{constructor(e){ks(this,_s);ks(this,yr);var s,l;var i=new Map,o=(d,a)=>{var u=rs(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Ht(W({},e.props||{}),{$$events:{}}),{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Ga?!0:(r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return O((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Qa(this,yr,(e.hydrate?jp:as)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&ll(),Qa(this,_s,n.$$events);for(let d of Object.keys(Li(this,yr)))d==="$set"||d==="$destroy"||d==="$on"||po(this,d,{get(){return Li(this,yr)[d]},set(a){Li(this,yr)[d]=a},enumerable:!0});Li(this,yr).$set=d=>{Object.assign(n,d)},Li(this,yr).$destroy=()=>{ca(Li(this,yr))}}$set(e){Li(this,yr).$set(e)}$on(e,i){Li(this,_s)[e]=Li(this,_s)[e]||[];let o=(...n)=>i.call(this,...n);return Li(this,_s)[e].push(o),()=>{Li(this,_s)[e]=Li(this,_s)[e].filter(n=>n!==o)}}$destroy(){Li(this,yr).$destroy()}};_s=new WeakMap,yr=new WeakMap;function Q(t,e){wn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=ef)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Le&&ah(e.hash,d)}})}function bs(t,e){var i=void 0,o;Wi(()=>{i!==(i=e())&&(o&&(Ui(o),o=null),i&&(o=Vi(()=>{Mo(()=>i(t))})))})}function ph(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=ph(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function fh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=ph(t))&&(o&&(o+=" "),o+=e);return o}function fd(t){return typeof t=="object"?fh(t):t!=null?t:""}var mh=[...`
44
- \r\f\xA0\v\uFEFF`];function gh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||mh.includes(o[l-1]))&&(d===o.length||mh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function vh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function tf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function hh(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(tf)),n&&a.push(...Object.keys(n).map(tf));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var x=tf(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=vh(o)),n&&(i+=vh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,s){var l=t.__className;if(et||l!==i||l===void 0){var d=gh(i,o,s);(!et||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var u=!!s[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return s}function of(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function at(t,e,i,o){var n=t.__style;if(et||n!==e){var s=hh(e,o);(!et||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(of(t,i==null?void 0:i[0],o[0]),of(t,i==null?void 0:i[1],o[1],"important")):of(t,i,o));return o}function md(t,e,i){if(t.multiple){if(e==null)return;if(!er(e))return Vg();for(var o of t.options)o.selected=e.includes(_h(o));return}for(o of t.options){var n=_h(o);if(Ip(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function nf(t){var e=new MutationObserver(()=>{md(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Qo(()=>{e.disconnect()})}function _h(t){return"__value"in t?t.__value:t.value}var pl=Symbol("class"),fl=Symbol("style"),yh=Symbol("is custom element"),xh=Symbol("is html");function wh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ue(t,e,i,o){var n=Ch(t);if(et&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||j0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[pg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Th(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Sh(t,e,i,o,n=!1){var k;var s=Ch(t),l=s[yh],d=!s[xh];let a=et&&l;a&&mo(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=fd(i.class):(o||i[pl])&&(i.class=null),i[fl]&&((k=i.style)!=null||(i.style=null));var p=Th(t);for(let I in i){let R=i[I];if(f&&I==="value"&&R==null){t.value=t.__value="",u[I]=R;continue}if(I==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,x,R,o,e==null?void 0:e[pl],i[pl]),u[I]=R,u[pl]=i[pl];continue}if(I==="style"){at(t,R,e==null?void 0:e[fl],i[fl]),u[I]=R,u[fl]=i[fl];continue}var w=u[I];if(!(R===w&&!(R===void 0&&t.hasAttribute(I)))){u[I]=R;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let Z={},H="$$"+I,F=I.slice(2);var S=th(F);if(eh(F)&&(F=F.slice(0,-7),Z.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(F,u[H],Z),u[H]=null}if(R!=null)if(S)t[`__${F}`]=R,ct([F]);else{let K=function(ee){u[I].call(this,ee)};var V=K;u[H]=Qp(F,t,K,Z)}else S&&(t[`__${F}`]=void 0)}else if(I==="style")Ue(t,I,R);else if(I==="autofocus")Kp(t,!!R);else if(!l&&(I==="__value"||I==="value"&&R!=null))t.value=t.__value=R;else if(I==="selected"&&f)wh(t,R);else{var T=I;d||(T=ih(T));var E=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let Z=t,H=e===void 0;if(T==="value"){let F=Z.defaultValue;Z.removeAttribute(T),Z.defaultValue=F,Z.value=Z.__value=H?F:null}else{let F=Z.defaultChecked;Z.removeAttribute(T),Z.defaultChecked=F,Z.checked=H?F:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&Ue(t,T,R,n)}}}return a&&mo(!0),u}function Ae(t,e,i=[],o,n=!1,s=Br){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Wi(()=>{var p=e(...l.map(r)),x=Sh(t,d,p,o,n);f&&u&&"value"in p&&md(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Ui(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===$p&&(!d||w!==d[y])&&(a[y]&&Ui(a[y]),a[y]=Vi(()=>bs(t,()=>w))),x[y]=w}d=x}),u){var v=t;Mo(()=>{md(v,d.value),nf(v)})}f=!0}function Ch(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[yh]:t.nodeName.includes("-"),[xh]:t.namespaceURI===rg}}var bh=new Map;function Th(t){var e=bh.get(t.nodeName);if(e)return e;bh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Lc(o);for(var s in i)i[s].set&&e.push(s);o=Js(o)}return e}function j0(t,e,i){var o;Le&&(e==="srcset"&&Y0(t,i)||rf((o=t.getAttribute(e))!=null?o:"",i)||Ag(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function rf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function $h(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Y0(t,e){var i=$h(t.srcset),o=$h(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(rf(i[l][0],n)||rf(n,i[l][0])))}var Z0=Mc?()=>performance.now():()=>Date.now(),Ur={tick:t=>(Mc?requestAnimationFrame:ce)(t),now:()=>Z0(),tasks:new Set};function Eh(){let t=Ur.now();Ur.tasks.forEach(e=>{e.c(t)||(Ur.tasks.delete(e),e.f())}),Ur.tasks.size!==0&&Ur.tick(Eh)}function Ih(t){let e;return Ur.tasks.size===0&&Ur.tick(Eh),{promise:new Promise(i=>{Ur.tasks.add(e={c:t,f:i})}),abort(){Ur.tasks.delete(e)}}}function iu(t,e){dd(()=>{t.dispatchEvent(new CustomEvent(e))})}function tb(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function kh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=tb(n.trim());e[l]=s.trim()}return e}var ib=t=>t;function af(t,e,i,o){var V;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,v=e.style.overflow,p,x;function w(){var R;var k=kt,I=bt;Fi(null),fo(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Fi(k),fo(I)}}var y={is_global:d,in(){var k;if(e.inert=f,!n){x==null||x.abort(),(k=x==null?void 0:x.reset)==null||k.call(x);return}s||p==null||p.abort(),iu(e,"introstart"),p=sf(e,w(),x,1,()=>{iu(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(k){if(!s){k==null||k(),u=void 0;return}e.inert=!0,iu(e,"outrostart"),x=sf(e,w(),p,0,()=>{iu(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},S=bt;if(((V=S.transitions)!=null?V:S.transitions=[]).push(y),n&&cd){var T=d;if(!T){for(var E=S.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&Mo(()=>{Ct(()=>y.in())})}}function sf(t,e,i,o,n){var s=o===1;if(Ms(e)){var l,d=!1;return wn(()=>{if(!d){var S=e({direction:s?"in":"out"});l=sf(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ce,deactivate:ce,reset:ce,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=ib}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=kh(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var F;y.cancel();var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-S,E=e.duration*Math.abs(T),V=[];if(E>0){var k=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),R=0;R<=I;R+=1){var Z=S+T*v(R/I),H=kh(u(Z,1-Z));V.push(H),k||(k=H.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var K=y.currentTime;return S+T*v(K/E)},f&&Ih(()=>{if(y.playState!=="running")return!1;var K=w();return f(K,1-K),!0})}y=t.animate(V,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ce)},deactivate:()=>{n=ce},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Os,ml,vd,nu,Ph,ru=class ru{constructor(e){ks(this,nu);ks(this,Os,new WeakMap);ks(this,ml);ks(this,vd);Qa(this,vd,e)}observe(e,i){var o=Li(this,Os).get(e)||new Set;return o.add(i),Li(this,Os).set(e,o),og(this,nu,Ph).call(this).observe(e,Li(this,vd)),()=>{var n=Li(this,Os).get(e);n.delete(i),n.size===0&&(Li(this,Os).delete(e),Li(this,ml).unobserve(e))}}};Os=new WeakMap,ml=new WeakMap,vd=new WeakMap,nu=new WeakSet,Ph=function(){var e;return(e=Li(this,ml))!=null?e:Qa(this,ml,new ResizeObserver(i=>{for(var o of i){ru.entries.set(o.target,o);for(var n of Li(this,Os).get(o.target)||[])n(o)}}))},Jn(ru,"entries",new WeakMap);var lf=ru;var ob=new lf({box:"border-box"});function ar(t,e,i){var o=ob.observe(t,()=>i(t[e]));Mo(()=>(Ct(()=>i(t[e])),o))}function Ah(t,e){return t===e||(t==null?void 0:t[qo])===e}function nt(t={},e,i,o){return Mo(()=>{var n,s;return Zo(()=>{n=s,s=(o==null?void 0:o())||[],Ct(()=>{t!==i(...s)&&(e(t,...s),n&&Ah(i(...n),t)&&e(null,...n))})}),()=>{wn(()=>{s&&Ah(i(...s),t)&&e(null,...s)})}}),t}function zr(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Xc(e.s);if(t){let n=0,s={},l=Br(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&od(()=>{Mh(e,o),Ls(i.b)}),qe(()=>{let n=Ct(()=>i.m.map(ug));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&qe(()=>{Mh(e,o),Ls(i.a)})}function Mh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function gd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ce;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var vl=[];function xr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ce){let i=null,o=new Set;function n(d){if(Ya(t,d)&&(t=d,i)){let a=!vl.length;for(let u of o)u[1](),vl.push(u,t);if(a){for(let u=0;u<vl.length;u+=2)vl[u][0](vl[u+1]);vl.length=0}}}function s(d){n(d(t))}function l(d,a=ce){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||ce),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function Ei(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return xr(i,(l,d)=>{let a=!1,u=[],f=0,v=ce,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ce},x=n.map((w,y)=>gd(w,S=>{u[y]=S,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Ls(x),v(),a=!1}})}function we(t){let e;return gd(t,i=>e=i)(),e}var su=!1,df=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:rs(void 0),unsubscribe:ce};if(o.store!==t&&!(df in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ce;else{var n=!0;o.unsubscribe=gd(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&df in i?we(t):r(o.source)}function Fe(){let t={};function e(){Qo(()=>{for(var i in t)t[i].unsubscribe();po(t,df,{enumerable:!1,value:!0})})}return[t,e]}function cf(t){var e=su;try{return su=!1,[t(),su]}finally{su=e}}var cb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Le&&xg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Oe(t,e,i){return new Proxy(Le?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},cb)}var ub={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ms(n)&&(n=n());let s=rn(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=rn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===qo||e===Ga)return!1;for(let i of t.props)if(Ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ms(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function $s(...t){return new Proxy({props:t},ub)}function Lh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var Z,H;var n=(i&1)!==0,s=!is||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=cf(()=>t[e]):u=t[e];var f=qo in t||Ga in t,v=l&&((H=(Z=rn(t,e))==null?void 0:Z.set)!=null?H:f&&e in t&&(F=>t[e]=F))||void 0,p=o,x=!0,w=!1,y=()=>(w=!0,x&&(x=!1,d?p=Ct(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&yg(e),u=y(),v&&v(u));var S;if(s)S=()=>{var F=t[e];return F===void 0?y():(x=!0,w=!1,F)};else{var T=(n?Br:Dr)(()=>t[e]);T.f|=131072,S=()=>{var F=r(T);return F!==void 0&&(p=void 0),F===void 0?p:F}}if((i&4)===0&&s)return S;if(v){var E=t.$$legacy;return function(F,K){return arguments.length>0?((!s||!K||E||a)&&v(K?S():F),F):S()}}var V=!1,k=!1,I=rs(u),R=Br(()=>{var F=S(),K=r(I);return V?(V=!1,k=!0,K):(k=!1,I.v=F)});return l&&r(R),n||(R.equals=Za),function(F,K){if(Yc!==null&&(V=k,S(),r(I)),arguments.length>0){let ee=K?r(R):s&&l?ai(F):F;if(!R.equals(ee)){if(V=!0,O(I,ee),w&&p!==void 0&&(p=ee),Lh(R))return F;Ct(()=>r(R))}return F}return Lh(R)?R.v:r(R)}}var pb;typeof HTMLElement=="function"&&(pb=class extends HTMLElement{constructor(e,i,o){super();Jn(this,"$$ctor");Jn(this,"$$s");Jn(this,"$$c");Jn(this,"$$cn",!1);Jn(this,"$$d",{});Jn(this,"$$r",!1);Jn(this,"$$p_d",{});Jn(this,"$$l",{});Jn(this,"$$l_u",new Map);Jn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return St(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=fb(this);for(let s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=uf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=uh({component:this.$$ctor,target:this.shadowRoot||this,props:Ht(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=qc(()=>{Zo(()=>{var s;this.$$r=!0;for(let l of yp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=uf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=uf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return yp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function uf(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){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(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function fb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Vh="5";var Rh,Nh,Oh;typeof window!="undefined"&&((Oh=(Nh=(Rh=window.__svelte)!=null?Rh:window.__svelte={}).v)!=null?Oh:Nh.v=new Set).add(Vh);var Rl=require("@vkontakte/videoplayer-core/es2015"),nZ=require("@vkontakte/videoplayer-core/es2015"),za=require("@vkontakte/videoplayer-shared/es2015"),N_=require("@vkontakte/videoplayer-statistics/es2015");var fa=require("@vkontakte/videoplayer-shared/es2015");var mb={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:fa.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:fa.VideoQuality.Q_480P,highQualityLimit:fa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!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,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,usePuid:!0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0"},Bh=t=>(0,fa.fillWithDefault)(t,mb),Dh=t=>el("ui-config",t),At=()=>Ja("ui-config");var hd="vk_player_debug_panel_opened";var Hh="videoplayer",Fh="videoplayer";var ls={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),zh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wh=new Set(["ShiftRight","ShiftLeft"]);var Kh=["TIMELINE"],_d=[...Kh,"GRAPH_BUTTON"],pf=[...Kh,"PLAY_BUTTON"],bd=[..._d,"PLAY_BUTTON"];var Wr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Wr||{}),va={xs:0,s:1,m:2,l:3,xl:4};var $d=require("@vkontakte/videoplayer-shared/es2015"),qh=require("@vkontakte/videoplayer-core/es2015"),Qh=require("@vkontakte/videoplayer-statistics/es2015");var au="prod",ga="1.1.72";var ha=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Gh=Symbol("storeContext"),jh=Symbol("microStoresContext"),Yh=(t,e)=>{el(Gh,t),el(jh,e),au==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Ja(Gh);return(0,$d.assertNonNullable)(t,"Store context is empty!"),t},xo=()=>{let t=Ja(jh);return(0,$d.assertNonNullable)(t,"MicroStores context is empty!"),t},ni=(t,e)=>du(t,t.getValue(),e),du=(t,e,i)=>xr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Zh=(t,e,i,o)=>{var R,Z,H,F,K,ee,j,ue;let n=t.info,{width:s,height:l}=we(i.ui.playerSize),d=(Z=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?Z:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ga} (core: ${qh.VERSION}, stat: ${Qh.VERSION}, shared: ${$d.VERSION})`,v=we(i.state.errorLog$),p=v.length?`
45
- `+v.map((oe,pe)=>{var re;let ye=`${pe}) Type: ${oe.id}
46
- `,me=`Message: ${oe.message} (${oe.thrown})
47
- `,Pe=`Trace: ${(re=oe.thrown)==null?void 0:re.stack}
48
- `;return ye+me+Pe}).join(`
49
- `):void 0,x=i.state.isAudioDisabled?"disabled":we(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(K=w==null?void 0:w.codec)!=null?K:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&S.push(`Audio: ${(ee=y==null?void 0:y.codec)!=null?ee:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let oe=n.availableQualitiesFps$.getValue()[T];E=oe?`${oe}fps`:""}let V=(ue=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?ue:0,k=Math.max(V-we(i.state.positionExact$),0),I={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:we(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${u} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:x,Position:`${we(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${we(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(I).filter(([oe,pe])=>pe!==void 0).map(([oe,pe])=>`${oe}: ${pe}`).join(`
50
- `)},Xh=(t,e,i)=>{var Z,H,F,K;let o=t.info,{width:n,height:s}=we(i.ui.playerSize),l={version:ga,viewport:`${n}x${s}`,volume:Math.round(we(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(v&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-we(i.state.positionExact$),0)),l.position=we(i.state.positionExact$);let x=o.throughputEstimation$.getValue();x&&(l.speed=x);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=we(i.vsid);typeof E=="string"&&(l.vsid=E);let V=(Z=t.info.currentVideoStream$.getValue())==null?void 0:Z.codec;V&&(l.videoCodec=V);let k=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;k&&(l.audioCodec=k),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(l.hdr=!0);let R=(K=t.info.currentAudioStream$.getValue())==null?void 0:K.language;return R&&(l.audioLanguage=R),l},Jh=(t,e)=>ha(t,e,"mp4"),e1=t=>!t.type,t1=t=>!!t.type,i1=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},lu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return St(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var bi=require("@vkontakte/videoplayer-shared/es2015"),OA=require("@vkontakte/videoplayer-core/es2015");var o1="vk_player_prefer_traffic_saving_enabled",n1="vk_player_preferred_volume",r1="vk_player_prefer_volume_mute",gf="vk_player_preferred_quality",ff="vk_player_preferred_default_quality_settings",mf="vk_player_preferred_quality_settings_by_video",s1="vk_player_preferred_stream_language",a1="vk_player_preferred_rate",l1="vk_player_preferred_autoplay_next",vf="vk_player_preferred_subtitles_language",d1="vk_player_user_video_prefs",c1=t=>t>1?1:t<0?0:t,hf=t=>bi.safeStorage.set(n1,c1(t).toString(10)),cu=()=>{let t=bi.safeStorage.get(n1);return(0,bi.isNullable)(t)?void 0:c1(parseFloat(t))},_f=(t,e)=>bi.safeStorage.set(gf,JSON.stringify({videoId:t,value:e})),uu=()=>bi.safeStorage.remove(gf),bf=t=>{let e=bi.safeStorage.get(gf);if((0,bi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){uu();return}return o},$f=(t,e)=>{e?bi.safeStorage.set(t,"true"):bi.safeStorage.remove(t)},yf=t=>bi.safeStorage.get(t)==="true",xf=t=>$f(r1,t),u1=()=>yf(r1),yd=t=>$f(o1,t),wf=()=>yf(o1),p1=()=>bi.safeStorage.get(s1),Sf=t=>bi.safeStorage.set(s1,t),Cf=()=>bi.safeStorage.get(vf),Tf=t=>{t?bi.safeStorage.set(vf,t):bi.safeStorage.remove(vf)},f1=t=>bi.safeStorage.set(a1,JSON.stringify({rate:t})),m1=()=>{let t=bi.safeStorage.get(a1);if((0,bi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},v1=t=>$f(l1,t),g1=()=>yf(l1),vb=()=>{let t=f=>{bi.safeStorage.set(ff,JSON.stringify(f))},e=()=>{try{let f=bi.safeStorage.get(ff);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=bi.safeStorage.get(mf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{bi.safeStorage.set(mf,JSON.stringify(f))},n=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return Ht(W({},v),{appliesTo:"to-video"});v&&s();let p=e();return p?Ht(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{bi.safeStorage.remove(mf)},l=()=>{bi.safeStorage.remove(ff)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":yd(!0);break;case"exact_quality":_f(f,v.quality)}s(),l()}},u=f=>{let v=bf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}wf()&&t({type:"traffic_saving",videoId:f}),yd(!1),uu()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Cf,savePreferredSubtitlesLanguage:Tf}},{getPreferredQualitySettings:h1,migrateSettingsToLegacyWay:_1,savePreferredQualitySettings:pu,savePreferredDefaultQualitySettings:BA,removePreferredQualitySettingsByVideo:DA,getPreferredDefaultQualitySettings:fu}=vb(),gb=3,hb=3,b1=()=>{let t=bi.safeStorage.get(d1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},mu=(t,e)=>{var n,s;let i=b1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},Ef=(t,e,i)=>{var l,d,a;let o=(l=b1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=_b(o);bi.safeStorage.set(d1,JSON.stringify(s))};function _b(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(hb),e.reduce((o,[n])=>(o[n]=bb(t[n]),o),{})}function bb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(gb),Object.fromEntries(e)}var Mv=require("@vkontakte/videoplayer-core/es2015");var $b=Ee('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function xd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=$b();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var gl=require("@vkontakte/videoplayer-shared/es2015");var yb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
43
+ `)})}}var sa=!1,sl=null,aa=!1,ms=!1;function Rp(t){ms=t}var sd=[],ad=[],Mt=null,ar=!1;function Wi(t){Mt=t}var ht=null;function vo(t){ht=t}var Yo=null;function Fc(t){Mt!==null&&Mt.f&2097152&&(Yo===null?Yo=[Mt,[t]]:Yo[1].push(t))}var $n=null,lr=0,sr=null;function Lg(t){sr=t}var Xg=1,Yc=0,vs=!1,Zc=null;function jl(){return++Xg}function ia(t){var m,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,s,l=(e&512)!==0,d=o&&ht!==null&&!vs,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)s=i[n],(l||!((m=s==null?void 0:s.reactions)!=null&&m.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<a;n++)if(s=i[n],ia(s)&&Vp(s),s.wv>t.wv)return!0}(!o||ht!==null&&!vs)&&hn(t,1024)}return!1}function Jg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Yo!=null&&Yo[1].includes(t)&&Yo[0]===Mt||((s.f&2)!==0?Jg(s,e,!1):e===s&&(i?hn(s,2048):(s.f&1024)!==0&&hn(s,4096),Zl(s)))}}function Hc(t){var w,x;var e=$n,i=lr,o=sr,n=Mt,s=vs,l=Yo,d=Ot,a=ar,u=t.f;$n=null,lr=0,sr=null,vs=(u&256)!==0&&(ar||!aa||Mt===null),Mt=(u&96)===0?t:null,Yo=null,ql(t.ctx),ar=!1,Yc++,t.f|=2097152;try{var f=(0,t.fn)(),m=t.deps;if($n!==null){var p;if(od(t,lr),m!==null&&lr>0)for(m.length=lr+$n.length,p=0;p<$n.length;p++)m[lr+p]=$n[p];else t.deps=m=$n;if(!vs||(u&2)!==0&&t.reactions!==null)for(p=lr;p<m.length;p++)((x=(w=m[p]).reactions)!=null?x:w.reactions=[]).push(t)}else m!==null&&lr<m.length&&(od(t,lr),m.length=lr);if(ns()&&sr!==null&&!ar&&m!==null&&(t.f&6146)===0)for(p=0;p<sr.length;p++)Jg(sr[p],t);return n!==null&&n!==t&&(Yc++,sr!==null&&(o===null?o=sr:o.push(...sr))),f}catch(y){jg(y)}finally{$n=e,lr=i,sr=o,Mt=n,vs=s,Yo=l,ql(d),ar=a,t.f^=2097152}}function __(t,e){let i=e.reactions;if(i!==null){var o=pg.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&($n===null||!$n.includes(e))&&(hn(e,4096),(e.f&768)===0&&(e.f^=512),Dc(e),od(e,0))}function od(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)__(t,i[o])}function ol(t){var e=t.f;if((e&16384)===0){hn(t,1024);var i=ht,o=aa;if(ht=t,aa=!0,Me){var n=nr;Ql(t.component_function)}try{(e&16)!==0?Wg(t):Dp(t),Bp(t);var s=Hc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Xg,Me&&os&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=jl(),l.set_during_effect=!1);Me&&ad.push(t)}finally{aa=o,ht=i,Me&&Ql(n)}}}function Yg(){console.error("Last ten effects were: ",ad.slice(-10).map(t=>t.fn)),ad=[]}function b_(){try{yg()}catch(t){if(Me&&mo(t,"stack",{value:""}),sl!==null)if(Me)try{rd(t,sl)}catch(e){throw Yg(),e}else rd(t,sl);else throw Me&&Yg(),t}}function Kp(){var t=aa;try{var e=0;for(aa=!0;sd.length>0;){e++>1e3&&b_();var i=sd,o=i.length;sd=[];for(var n=0;n<o;n++){var s=y_(i[n]);$_(s)}tl.clear()}}finally{sa=!1,aa=t,sl=null,Me&&(ad=[])}}function $_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ia(o)&&(ol(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Fp(o):o.fn=null))}}function Zl(t){sa||(sa=!0,queueMicrotask(Kp));for(var e=sl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}sd.push(e)}function y_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:ia(i)&&ol(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function al(t){var e;for(t&&(sa=!0,Kp(),sa=!0,e=t());;){if(Qg(),sd.length===0)return sa=!1,sl=null,Me&&(ad=[]),e;sa=!0,Kp()}}function No(){return St(this,null,function*(){yield Promise.resolve(),al()})}function r(t){var e=t.f,i=(e&2)!==0;if(Zc!==null&&Zc.add(t),Mt!==null&&!ar){if(!(Yo!=null&&Yo[1].includes(t))||Yo[0]!==Mt){var o=Mt.deps;t.rv<Yc&&(t.rv=Yc,$n===null&&o!==null&&o[lr]===t?lr++:$n===null?$n=[t]:(!vs||!$n.includes(t))&&$n.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,ia(n)&&Vp(n)),Me&&os&&!ar&&Kl!==null&&Mt!==null&&Kl.reaction===Mt)if(t.trace)t.trace();else{var l=fs("TracedAt");if(l){var d=Kl.entries.get(t);d===void 0&&(d={traces:[]},Kl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ms&&tl.has(t)?tl.get(t):t.v}function Ct(t){var e=ar;try{return ar=!0,t()}finally{ar=e}}var x_=-7169;function hn(t,e){t.f=t.f&x_|e}function Jc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Qo in t)Xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Qo in i&&Xc(i)}}}function Xc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Xc(t[o],e)}catch(n){}let i=Xs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Vc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function qp(t,e){if(e){let i=document.body;t.autofocus=!0,bn(()=>{document.activeElement===i&&t.focus()})}}function ld(t){var e=Mt,i=ht;Wi(null),vo(null);try{return t()}finally{Wi(e),vo(i)}}var Qp=new Set,eu=new Set;function la(t){if(!tt)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Gp(t,e,i,o={}){function n(s){if(o.capture||ll.call(e,s),!s.cancelBubble)return ld(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?bn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var s={capture:o,passive:n},l=Gp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Go(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)Qp.add(t[e]);for(var i of eu)i(t)}function ll(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=n[l]||t.target,s!==e){mo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Mt,m=ht;Wi(null),vo(null);try{for(var p,w=[];s!==null;){var x=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(ir(y)){var[T,...C]=y;T.apply(s,[t,...C])}else y.call(s,t)}catch(V){p?w.push(V):p=V}if(t.cancelBubble||x===e||x===null)break;s=x}if(p){for(let V of w)queueMicrotask(()=>{throw V});throw p}}finally{t.__root=e,delete t.currentTarget,Wi(f),vo(m)}}}var S_;function eh(){S_=void 0}function dl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Oo(t,e){var i=ht;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function A(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(tt)return Oo(_t,null),_t;n===void 0&&(n=dl(s?t:"<!>"+t),i||(n=Ii(n)));var l=o||Xl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=Ii(l),a=l.lastChild;Oo(d,a)}else Oo(l,l);return l}}function E_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(tt)return Oo(_t,null),_t;if(!l){var d=dl(s),a=Ii(d);if(n)for(l=document.createDocumentFragment();Ii(a);)l.appendChild(Ii(a));else l=Ii(a)}var u=l.cloneNode(!0);if(n){var f=Ii(u),m=u.lastChild;Oo(f,m)}else Oo(u,u);return u}}function Te(t,e){return E_(t,e,"svg")}function ss(t=""){if(!tt){var e=_n(t+"");return Oo(e,e),e}var i=_t;return i.nodeType!==Ga&&(i.before(i=_n()),Si(i)),Oo(i,i),i}function We(){if(tt)return Oo(_t,null),_t;var t=document.createDocumentFragment(),e=document.createComment(""),i=_n();return t.append(e,i),Oo(e,i),t}function b(t,e){if(tt){ht.nodes_end=_t,qi();return}t!==null&&t.before(e)}var I_=/\r/g;function ih(t){t=t.replace(I_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function oh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var k_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function nh(t){return k_.includes(t)}var P_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var A_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function rh(t){var e;return t=t.toLowerCase(),(e=A_[t])!=null?e:t}var xS=[...P_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var M_=["touchstart","touchmove"];function sh(t){return M_.includes(t)}var L_=["$state","$state.raw","$derived","$derived.by"],wS=[...L_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var V_=["textarea","script","style","title"];function ah(t){return V_.includes(t)}function tu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var dd=!0;function iu(t){dd=t}function be(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function zr(t,e){return lh(t,e)}function Yp(t,e){var l;Wc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=tt,n=_t;try{for(var s=Ii(i);s&&(s.nodeType!==or||s.data!==Ps);)s=Zo(s);if(!s)throw ts;go(!0),Si(s),qi();let d=lh(t,Ht(W({},e),{anchor:s}));if(_t===null||_t.nodeType!==or||_t.data!==Zs)throw Vs(),ts;return go(!1),d}catch(d){if(d===ts)return e.recover===!1&&xg(),Wc(),Jl(i),go(!1),zr(t,e);throw d}finally{go(o),Si(n),eh()}}var cl=new Map;function lh(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Wc();var d=new Set,a=m=>{for(var p=0;p<m.length;p++){var w=m[p];if(!d.has(w)){d.add(w);var x=sh(w);e.addEventListener(w,ll,{passive:x});var y=cl.get(w);y===void 0?(document.addEventListener(w,ll,{passive:x}),cl.set(w,1)):cl.set(w,y+1)}}};a(Wl(Qp)),eu.add(a);var u=void 0,f=zg(()=>{var m=i!=null?i:e.appendChild(_n());return Oi(()=>{if(s){U({});var p=Ot;p.c=s}n&&(o.$$events=n),tt&&Oo(m,null),dd=l,u=t(m,o)||{},dd=!0,tt&&(ht.nodes_end=_t),s&&z()}),()=>{var x;for(var p of d){e.removeEventListener(p,ll);var w=cl.get(p);--w===0?(document.removeEventListener(p,ll),cl.delete(p)):cl.set(p,w)}eu.delete(a),m!==i&&((x=m.parentNode)==null||x.removeChild(m))}});return jp.set(u,f),u}var jp=new WeakMap;function da(t,e){let i=jp.get(t);return i?(jp.delete(t),i(e)):(Me&&Ng(),Promise.resolve())}function ye(t,e,...i){var o=t,n=de,s;Qi(()=>{n!==(n=e())&&(s&&(Ki(s),s=null),Me&&n==null&&wg(),s=Oi(()=>n(o,...i)))},65536),tt&&(o=_t)}if(Me){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Tg(e)},set:o=>{i=o}})}};B_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var B_;function Vt(t){Ot===null&&Za("onMount"),is&&Ot.l!==null?O_(Ot).m.push(t):qe(()=>{let e=Ct(t);if(typeof e=="function")return e})}function an(t){Ot===null&&Za("onDestroy"),Vt(()=>()=>Ct(t))}function O_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var dh=new Map;function ch(t,e){var i=dh.get(t);i||(i=new Set,dh.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){tt&&i===0&&qi();var n=t,s=null,l=null,d=io,a=i>0?65536:0,u=!1;let f=(p,w=!0)=>{u=!0,m(w,p)},m=(p,w)=>{if(d===(d=p))return;let x=!1;if(tt&&o!==-1){if(i===0){let T=zc(n);T===Ps?o=0:T===As?o=1/0:(o=parseInt(T.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=oa(),Si(n),go(!1),x=!0,o=-1)}d?(s?hs(s):w&&(s=Oi(()=>w(n))),l&&Un(l,()=>{l=null})):(l?hs(l):w&&(l=Oi(()=>w(n,[i+1,o]))),s&&Un(s,()=>{s=null})),x&&go(!0)};Qi(()=>{u=!1,e(f),u||m(null,null)},a),tt&&(n=_t)}function ca(t,e,i){tt&&qi();var o=t,n=io,s,l=ns()?gg:ja;Qi(()=>{l(n,n=e())&&(s&&Un(s),s=Oi(()=>i(o)))}),tt&&(o=_t)}var Ns=null;function Jp(t){Ns=t}function cd(t,e){return e}function F_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Gc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Jl(a),a.append(i),o.clear(),Rs(t,e[0].prev,e[s-1].next)}Up(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Rs(t,f.prev,f.next)),Ki(f.e,!d)}})}function Mi(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=tt?Si(Ii(u)):u.appendChild(_n())}tt&&qi();var f=null,m=!1,p=Hr(()=>{var w=i();return ir(w)?w:w==null?[]:Wl(w)});Qi(()=>{var w=r(p),x=w.length;if(m&&x===0)return;m=x===0;let y=!1;if(tt){var T=zc(l)===As;T!==(x===0)&&(l=oa(),Si(l),go(!1),y=!0)}if(tt){for(var C=null,E,V=0;V<x;V++){if(_t.nodeType===or&&_t.data===Zs){l=_t,y=!0,go(!1);break}var k=w[V],I=o(k,V);E=fh(_t,d,C,null,k,I,V,n,e,i),d.items.set(I,E),C=E}x>0&&Si(oa())}tt||U_(w,d,l,n,e,o,i),s!==null&&(x===0?f?hs(f):f=Oi(()=>s(l)):f!==null&&Un(f,()=>{f=null})),y&&go(!0),r(p)}),tt&&(l=_t)}function U_(t,e,i,o,n,s,l){var X,ue,me,pe;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,m=e.first,p=m,w,x=null,y,T=[],C=[],E,V,k,I;if(d)for(I=0;I<u;I+=1)E=t[I],V=s(E,I),k=f.get(V),k!==void 0&&((X=k.a)==null||X.measure(),(y!=null?y:y=new Set).add(k));for(I=0;I<u;I+=1){if(E=t[I],V=s(E,I),k=f.get(V),k===void 0){var N=p?p.e.nodes_start:i;x=fh(N,e,x,x===null?e.first:x.next,E,V,I,o,n,l),f.set(V,x),T=[],C=[],p=x.next;continue}if(a&&z_(k,E,I,n),(k.e.f&8192)!==0&&(hs(k.e),d&&((ue=k.a)==null||ue.unfix(),(y!=null?y:y=new Set).delete(k))),k!==p){if(w!==void 0&&w.has(k)){if(T.length<C.length){var J=C[0],H;x=J.prev;var F=T[0],Q=T[T.length-1];for(H=0;H<T.length;H+=1)uh(T[H],J,i);for(H=0;H<C.length;H+=1)w.delete(C[H]);Rs(e,F.prev,Q.next),Rs(e,x,F),Rs(e,Q,J),p=J,x=Q,I-=1,T=[],C=[]}else w.delete(k),uh(k,p,i),Rs(e,k.prev,k.next),Rs(e,k,x===null?e.first:x.next),Rs(e,x,k),x=k;continue}for(T=[],C=[];p!==null&&p.k!==V;)(p.e.f&8192)===0&&(w!=null?w:w=new Set).add(p),C.push(p),p=p.next;if(p===null)continue;k=p}T.push(k),x=k,p=k.next}if(p!==null||w!==void 0){for(var ie=w===void 0?[]:Wl(w);p!==null;)(p.e.f&8192)===0&&ie.push(p),p=p.next;var Y=ie.length;if(Y>0){var ge=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<Y;I+=1)(me=ie[I].a)==null||me.measure();for(I=0;I<Y;I+=1)(pe=ie[I].a)==null||pe.fix()}F_(e,ie,ge,f)}}d&&bn(()=>{var Pe;if(y!==void 0)for(k of y)(Pe=k.a)==null||Pe.apply()}),ht.first=e.first&&e.first.e,ht.last=x&&x.e}function z_(t,e,i,o){(o&1)!==0&&il(t.v,e),(o&2)!==0?il(t.i,i):t.i=i}function fh(t,e,i,o,n,s,l,d,a,u){var f=Ns,m=(a&1)!==0,p=(a&16)===0,w=m?p?rs(n,!1,!1):yr(n):n,x=(a&2)===0?l:yr(l);Me&&m&&(w.trace=()=>{var T=typeof x=="number"?l:x.v;u()[T]});var y={i:x,v:w,k:s,a:null,e:null,prev:i,next:o};Ns=y;try{return y.e=Oi(()=>d(t,w,x,u),tt),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ns=f}}function uh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Zo(s);n.before(s),s=l}}function Rs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function W_(t,e,i){var s,l;if(!e||e===ih(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=nr)!=null&&l[Bn]&&(o=`in ${nr[Bn]}`),Rg(tu(o))}function ud(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var w;var d=ht;if(l===(l=(w=e())!=null?w:"")){tt&&qi();return}if(d.nodes_start!==null&&(Hp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(tt){for(var a=_t.data,u=qi(),f=u;u!==null&&(u.nodeType!==or||u.data!=="");)f=u,u=Zo(u);if(u===null)throw Vs(),ts;Me&&!n&&W_(u.parentNode,a,l),Oo(_t,f),s=Si(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var p=dl(m);if((i||o)&&(p=Ii(p)),Oo(Ii(p),p.lastChild),i||o)for(;Ii(p);)s.before(Ii(p));else s.before(p)}})}function Li(t,e,i){tt&&qi();var o=t,n,s;Qi(()=>{n!==(n=e())&&(s&&(Un(s),s=null),n&&(s=Oi(()=>i(o,n))))},65536),tt&&(o=_t)}function ua(t,e,i,o,n,s){var x;let l=tt;tt&&qi();var d=Me&&s&&((x=Ot)==null?void 0:x.function[Bn]),a,u,f=null;tt&&_t.nodeType===Nc&&(f=_t,qi());var m=tt?_t:t,p,w=Ns;Qi(()=>{let y=e()||null;var T=n?n():i||y==="svg"?Mc:null;if(y!==a){var C=Ns;Jp(w),p&&(y===null?Un(p,()=>{p=null,u=null}):y===u?hs(p):(Ki(p),iu(!1))),y&&y!==u&&(p=Oi(()=>{if(f=tt?f:T?document.createElementNS(T,y):document.createElement(y),Me&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Oo(f,f),o){tt&&ah(y)&&f.append(document.createComment(""));var E=tt?Ii(f):f.appendChild(_n());tt&&(E===null?go(!1):Si(E)),o(f,E)}ht.nodes_end=f,m.before(f)})),a=y,a&&(u=a),iu(!0),Jp(C)}},65536),l&&(go(!0),Si(m))}var tf;function mh(t){return tf=t.target,new ef(t)}var _s,xr,ef=class{constructor(e){ks(this,_s);ks(this,xr);var s,l;var i=new Map,o=(d,a)=>{var u=rs(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Ht(W({},e.props||{}),{$$events:{}}),{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Qa?!0:(r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return O((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});qa(this,xr,(e.hydrate?Yp:zr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&al(),qa(this,_s,n.$$events);for(let d of Object.keys(Ni(this,xr)))d==="$set"||d==="$destroy"||d==="$on"||mo(this,d,{get(){return Ni(this,xr)[d]},set(a){Ni(this,xr)[d]=a},enumerable:!0});Ni(this,xr).$set=d=>{Object.assign(n,d)},Ni(this,xr).$destroy=()=>{da(Ni(this,xr))}}$set(e){Ni(this,xr).$set(e)}$on(e,i){Ni(this,_s)[e]=Ni(this,_s)[e]||[];let o=(...n)=>i.call(this,...n);return Ni(this,_s)[e].push(o),()=>{Ni(this,_s)[e]=Ni(this,_s)[e].filter(n=>n!==o)}}$destroy(){Ni(this,xr).$destroy()}};_s=new WeakMap,xr=new WeakMap;function K(t,e){bn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=tf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Me&&ch(e.hash,d)}})}function bs(t,e){var i=void 0,o;Qi(()=>{i!==(i=e())&&(o&&(Ki(o),o=null),i&&(o=Oi(()=>{Ro(()=>i(t))})))})}function vh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=vh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function gh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=vh(t))&&(o&&(o+=" "),o+=e);return o}function pd(t){return typeof t=="object"?gh(t):t!=null?t:""}var hh=[...`
44
+ \r\f\xA0\v\uFEFF`];function bh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||hh.includes(o[l-1]))&&(d===o.length||hh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function _h(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function of(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function $h(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(of)),n&&a.push(...Object.keys(n).map(of));var u=0,f=-1;let y=t.length;for(var m=0;m<y;m++){var p=t[m];if(d?p==="/"&&t[m-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[m+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=m;else if(p===";"||m===y-1){if(f!==-1){var w=of(t.substring(u,f).trim());if(!a.includes(w)){p!==";"&&m++;var x=t.substring(u,m).trim();i+=" "+x+";"}}u=m+1,f=-1}}}}return o&&(i+=_h(o)),n&&(i+=_h(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ne(t,e,i,o,n,s){var l=t.__className;if(tt||l!==i||l===void 0){var d=bh(i,o,s);(!tt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var u=!!s[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return s}function nf(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function lt(t,e,i,o){var n=t.__style;if(tt||n!==e){var s=$h(e,o);(!tt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(nf(t,i==null?void 0:i[0],o[0]),nf(t,i==null?void 0:i[1],o[1],"important")):nf(t,i,o));return o}function fd(t,e,i){if(t.multiple){if(e==null)return;if(!ir(e))return Og();for(var o of t.options)o.selected=e.includes(yh(o));return}for(o of t.options){var n=yh(o);if(kp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function rf(t){var e=new MutationObserver(()=>{fd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Go(()=>{e.disconnect()})}function yh(t){return"__value"in t?t.__value:t.value}var ul=Symbol("class"),pl=Symbol("style"),Sh=Symbol("is custom element"),Ch=Symbol("is html");function Th(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ze(t,e,i,o){var n=Ih(t);if(tt&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||X_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[vg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&kh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Eh(t,e,i,o,n=!1){var k;var s=Ih(t),l=s[Sh],d=!s[Ch];let a=tt&&l;a&&go(!1);var u=e||{},f=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=pd(i.class):(o||i[ul])&&(i.class=null),i[pl]&&((k=i.style)!=null||(i.style=null));var p=kh(t);for(let I in i){let N=i[I];if(f&&I==="value"&&N==null){t.value=t.__value="",u[I]=N;continue}if(I==="class"){var w=t.namespaceURI==="http://www.w3.org/1999/xhtml";ne(t,w,N,o,e==null?void 0:e[ul],i[ul]),u[I]=N,u[ul]=i[ul];continue}if(I==="style"){lt(t,N,e==null?void 0:e[pl],i[pl]),u[I]=N,u[pl]=i[pl];continue}var x=u[I];if(!(N===x&&!(N===void 0&&t.hasAttribute(I)))){u[I]=N;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let J={},H="$$"+I,F=I.slice(2);var T=nh(F);if(oh(F)&&(F=F.slice(0,-7),J.capture=!0),!T&&x){if(N!=null)continue;t.removeEventListener(F,u[H],J),u[H]=null}if(N!=null)if(T)t[`__${F}`]=N,ct([F]);else{let Q=function(ie){u[I].call(this,ie)};var V=Q;u[H]=Gp(F,t,Q,J)}else T&&(t[`__${F}`]=void 0)}else if(I==="style")ze(t,I,N);else if(I==="autofocus")qp(t,!!N);else if(!l&&(I==="__value"||I==="value"&&N!=null))t.value=t.__value=N;else if(I==="selected"&&f)Th(t,N);else{var C=I;d||(C=rh(C));var E=C==="defaultValue"||C==="defaultChecked";if(N==null&&!l&&!E)if(s[I]=null,C==="value"||C==="checked"){let J=t,H=e===void 0;if(C==="value"){let F=J.defaultValue;J.removeAttribute(C),J.defaultValue=F,J.value=J.__value=H?F:null}else{let F=J.defaultChecked;J.removeAttribute(C),J.defaultChecked=F,J.checked=H?F:!1}}else t.removeAttribute(I);else E||p.includes(C)&&(l||typeof N!="string")?t[C]=N:typeof N!="function"&&ze(t,C,N,n)}}}return a&&go(!0),u}function Ae(t,e,i=[],o,n=!1,s=Dr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Qi(()=>{var p=e(...l.map(r)),w=Eh(t,d,p,o,n);f&&u&&"value"in p&&fd(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Ki(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var x=p[y];y.description===yp&&(!d||x!==d[y])&&(a[y]&&Ki(a[y]),a[y]=Oi(()=>bs(t,()=>x))),w[y]=x}d=w}),u){var m=t;Ro(()=>{fd(m,d.value),rf(m)})}f=!0}function Ih(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Sh]:t.nodeName.includes("-"),[Ch]:t.namespaceURI===lg}}var xh=new Map;function kh(t){var e=xh.get(t.nodeName);if(e)return e;xh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Vc(o);for(var s in i)i[s].set&&e.push(s);o=Xs(o)}return e}function X_(t,e,i){var o;Me&&(e==="srcset"&&J_(t,i)||sf((o=t.getAttribute(e))!=null?o:"",i)||Vg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function sf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function wh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function J_(t,e){var i=wh(t.srcset),o=wh(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(sf(i[l][0],n)||sf(n,i[l][0])))}var eb=Lc?()=>performance.now():()=>Date.now(),Wr={tick:t=>(Lc?requestAnimationFrame:de)(t),now:()=>eb(),tasks:new Set};function Ph(){let t=Wr.now();Wr.tasks.forEach(e=>{e.c(t)||(Wr.tasks.delete(e),e.f())}),Wr.tasks.size!==0&&Wr.tick(Ph)}function Ah(t){let e;return Wr.tasks.size===0&&Wr.tick(Ph),{promise:new Promise(i=>{Wr.tasks.add(e={c:t,f:i})}),abort(){Wr.tasks.delete(e)}}}function ou(t,e){ld(()=>{t.dispatchEvent(new CustomEvent(e))})}function nb(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Mh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=nb(n.trim());e[l]=s.trim()}return e}var rb=t=>t;function lf(t,e,i,o){var V;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,m=e.style.overflow,p,w;function x(){var N;var k=Mt,I=ht;Wi(null),vo(null);try{return u!=null?u:u=i()(e,(N=o==null?void 0:o())!=null?N:{},{direction:a})}finally{Wi(k),vo(I)}}var y={is_global:d,in(){var k;if(e.inert=f,!n){w==null||w.abort(),(k=w==null?void 0:w.reset)==null||k.call(w);return}s||p==null||p.abort(),ou(e,"introstart"),p=af(e,x(),w,1,()=>{ou(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=m})},out(k){if(!s){k==null||k(),u=void 0;return}e.inert=!0,ou(e,"outrostart"),w=af(e,x(),p,0,()=>{ou(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),w==null||w.abort()}},T=ht;if(((V=T.transitions)!=null?V:T.transitions=[]).push(y),n&&dd){var C=d;if(!C){for(var E=T.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&Ro(()=>{Ct(()=>y.in())})}}function af(t,e,i,o,n){var s=o===1;if(Ms(e)){var l,d=!1;return bn(()=>{if(!d){var T=e({direction:s?"in":"out"});l=af(t,T,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:de,deactivate:de,reset:de,t:()=>o};let{delay:a=0,css:u,tick:f,easing:m=rb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var w=Mh(u(0,1));p.push(w,w)}var x=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var F;y.cancel();var T=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var C=o-T,E=e.duration*Math.abs(C),V=[];if(E>0){var k=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var J=T+C*m(N/I),H=Mh(u(J,1-J));V.push(H),k||(k=H.overflow==="hidden")}k&&(t.style.overflow="hidden"),x=()=>{var Q=y.currentTime;return T+C*m(Q/E)},f&&Ah(()=>{if(y.playState!=="running")return!1;var Q=x();return f(Q,1-Q),!0})}y=t.animate(V,{duration:E,fill:"forwards"}),y.onfinish=()=>{x=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=de)},deactivate:()=>{n=de},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>x()}}var Os,fl,md,ru,Lh,su=class su{constructor(e){ks(this,ru);ks(this,Os,new WeakMap);ks(this,fl);ks(this,md);qa(this,md,e)}observe(e,i){var o=Ni(this,Os).get(e)||new Set;return o.add(i),Ni(this,Os).set(e,o),sg(this,ru,Lh).call(this).observe(e,Ni(this,md)),()=>{var n=Ni(this,Os).get(e);n.delete(i),n.size===0&&(Ni(this,Os).delete(e),Ni(this,fl).unobserve(e))}}};Os=new WeakMap,fl=new WeakMap,md=new WeakMap,ru=new WeakSet,Lh=function(){var e;return(e=Ni(this,fl))!=null?e:qa(this,fl,new ResizeObserver(i=>{for(var o of i){su.entries.set(o.target,o);for(var n of Ni(this,Os).get(o.target)||[])n(o)}}))},tr(su,"entries",new WeakMap);var df=su;var sb=new df({box:"border-box"});function dr(t,e,i){var o=sb.observe(t,()=>i(t[e]));Ro(()=>(Ct(()=>i(t[e])),o))}function Vh(t,e){return t===e||(t==null?void 0:t[Qo])===e}function rt(t={},e,i,o){return Ro(()=>{var n,s;return Xo(()=>{n=s,s=(o==null?void 0:o())||[],Ct(()=>{t!==i(...s)&&(e(t,...s),n&&Vh(i(...n),t)&&e(null,...n))})}),()=>{bn(()=>{s&&Vh(i(...s),t)&&e(null,...s)})}}),t}function Kr(t=!1){let e=Ot,i=e.l.u;if(!i)return;let o=()=>Jc(e.s);if(t){let n=0,s={},l=Dr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&id(()=>{Rh(e,o),Ls(i.b)}),qe(()=>{let n=Ct(()=>i.m.map(mg));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&qe(()=>{Rh(e,o),Ls(i.a)})}function Rh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function vd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),de;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ml=[];function wr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=de){let i=null,o=new Set;function n(d){if(ja(t,d)&&(t=d,i)){let a=!ml.length;for(let u of o)u[1](),ml.push(u,t);if(a){for(let u=0;u<ml.length;u+=2)ml[u][0](ml[u+1]);ml.length=0}}}function s(d){n(d(t))}function l(d,a=de){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||de),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function ki(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return wr(i,(l,d)=>{let a=!1,u=[],f=0,m=de,p=()=>{if(f)return;m();let x=e(o?u[0]:u,l,d);s?l(x):m=typeof x=="function"?x:de},w=n.map((x,y)=>vd(x,T=>{u[y]=T,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Ls(w),m(),a=!1}})}function xe(t){let e;return vd(t,i=>e=i)(),e}var au=!1,cf=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:rs(void 0),unsubscribe:de};if(o.store!==t&&!(cf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=de;else{var n=!0;o.unsubscribe=vd(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&cf in i?xe(t):r(o.source)}function Fe(){let t={};function e(){Go(()=>{for(var i in t)t[i].unsubscribe();mo(t,cf,{enumerable:!1,value:!0})})}return[t,e]}function uf(t){var e=au;try{return au=!1,[t(),au]}finally{au=e}}var fb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&Cg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ne(t,e,i){return new Proxy(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},fb)}var mb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ms(n)&&(n=n());let s=nn(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=nn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Qo||e===Qa)return!1;for(let i of t.props)if(Ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ms(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function $s(...t){return new Proxy({props:t},mb)}function Nh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var J,H;var n=(i&1)!==0,s=!is||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=uf(()=>t[e]):u=t[e];var f=Qo in t||Qa in t,m=l&&((H=(J=nn(t,e))==null?void 0:J.set)!=null?H:f&&e in t&&(F=>t[e]=F))||void 0,p=o,w=!0,x=!1,y=()=>(x=!0,w&&(w=!1,d?p=Ct(o):p=o),p);u===void 0&&o!==void 0&&(m&&s&&Sg(e),u=y(),m&&m(u));var T;if(s)T=()=>{var F=t[e];return F===void 0?y():(w=!0,x=!1,F)};else{var C=(n?Dr:Hr)(()=>t[e]);C.f|=131072,T=()=>{var F=r(C);return F!==void 0&&(p=void 0),F===void 0?p:F}}if((i&4)===0&&s)return T;if(m){var E=t.$$legacy;return function(F,Q){return arguments.length>0?((!s||!Q||E||a)&&m(Q?T():F),F):T()}}var V=!1,k=!1,I=rs(u),N=Dr(()=>{var F=T(),Q=r(I);return V?(V=!1,k=!0,Q):(k=!1,I.v=F)});return l&&r(N),n||(N.equals=Ya),function(F,Q){if(Zc!==null&&(V=k,T(),r(I)),arguments.length>0){let ie=Q?r(N):s&&l?ii(F):F;if(!N.equals(ie)){if(V=!0,O(I,ie),x&&p!==void 0&&(p=ie),Nh(N))return F;Ct(()=>r(N))}return F}return Nh(N)?N.v:r(N)}}var vb;typeof HTMLElement=="function"&&(vb=class extends HTMLElement{constructor(e,i,o){super();tr(this,"$$ctor");tr(this,"$$s");tr(this,"$$c");tr(this,"$$cn",!1);tr(this,"$$d",{});tr(this,"$$r",!1);tr(this,"$$p_d",{});tr(this,"$$l",{});tr(this,"$$l_u",new Map);tr(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return St(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=gb(this);for(let s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=pf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=mh({component:this.$$ctor,target:this.shadowRoot||this,props:Ht(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Qc(()=>{Xo(()=>{var s;this.$$r=!0;for(let l of xp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=pf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=pf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return xp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function pf(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){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(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Oh="5";var Bh,Dh,Hh;typeof window!="undefined"&&((Hh=(Dh=(Bh=window.__svelte)!=null?Bh:window.__svelte={}).v)!=null?Hh:Dh.v=new Set).add(Oh);var Vl=require("@vkontakte/videoplayer-core/es2015"),mZ=require("@vkontakte/videoplayer-core/es2015"),Ua=require("@vkontakte/videoplayer-shared/es2015"),D0=require("@vkontakte/videoplayer-statistics/es2015");var pa=require("@vkontakte/videoplayer-shared/es2015");var hb={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:pa.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:pa.VideoQuality.Q_480P,highQualityLimit:pa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!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,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,usePuid:!0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3},Fh=t=>(0,pa.fillWithDefault)(t,hb),Uh=t=>Ja("ui-config",t),Pt=()=>Xa("ui-config");var gd="vk_player_debug_panel_opened";var zh="videoplayer",Wh="videoplayer";var as={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),qh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Qh=new Set(["ShiftRight","ShiftLeft"]);var Gh=["TIMELINE"],hd=[...Gh,"GRAPH_BUTTON"],ff=[...Gh,"PLAY_BUTTON"],_d=[...hd,"PLAY_BUTTON"];var qr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(qr||{}),ma={xs:0,s:1,m:2,l:3,xl:4};var bd=require("@vkontakte/videoplayer-shared/es2015"),jh=require("@vkontakte/videoplayer-core/es2015"),Yh=require("@vkontakte/videoplayer-statistics/es2015");var lu="prod",va="1.1.73-dev.365c92fe.0";var ga=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Zh=Symbol("storeContext"),Xh=Symbol("microStoresContext"),Jh=(t,e)=>{Ja(Zh,t),Ja(Xh,e),lu==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Xa(Zh);return(0,bd.assertNonNullable)(t,"Store context is empty!"),t},So=()=>{let t=Xa(Xh);return(0,bd.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>cu(t,t.getValue(),e),cu=(t,e,i)=>wr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),e1=(t,e,i,o)=>{var N,J,H,F,Q,ie,Y,ge;let n=t.info,{width:s,height:l}=xe(i.ui.playerSize),d=(J=(N=n.throughputEstimation$.getValue())==null?void 0:N.toFixed(0))!=null?J:0,a=(F=(H=n.rttEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?F:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${va} (core: ${jh.VERSION}, stat: ${Yh.VERSION}, shared: ${bd.VERSION})`,m=xe(i.state.errorLog$),p=m.length?`
45
+ `+m.map((X,ue)=>{var Le;let me=`${ue}) Type: ${X.id}
46
+ `,pe=`Message: ${X.message} (${X.thrown})
47
+ `,Pe=`Trace: ${(Le=X.thrown)==null?void 0:Le.stack}
48
+ `;return me+pe+Pe}).join(`
49
+ `):void 0,w=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",x=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),T=[];x&&T.push(`Video: ${(Q=x==null?void 0:x.codec)!=null?Q:""}`+(x!=null&&x.hdr?" (HDR)":"")),y&&T.push(`Audio: ${(ie=y==null?void 0:y.codec)!=null?ie:""}`+(y!=null&&y.language?` (${y.language})`:""));let C=n.currentQuality$.getValue(),E="";if(C){let X=n.availableQualitiesFps$.getValue()[C];E=X?`${X}fps`:""}let V=(ge=(Y=n.currentBuffer$.getValue())==null?void 0:Y.end)!=null?ge:0,k=Math.max(V-xe(i.state.positionExact$),0),I={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:xe(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:T.join(", "),Quality:`${u} ${C} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:w,Position:`${xe(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(I).filter(([X,ue])=>ue!==void 0).map(([X,ue])=>`${X}: ${ue}`).join(`
50
+ `)},t1=(t,e,i)=>{var J,H,F,Q;let o=t.info,{width:n,height:s}=xe(i.ui.playerSize),l={version:va,viewport:`${n}x${s}`,volume:Math.round(xe(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(m&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-xe(i.state.positionExact$),0)),l.position=xe(i.state.positionExact$);let w=o.throughputEstimation$.getValue();w&&(l.speed=w);let x=o.videoBitrate$.getValue();x&&(l.bitrate=x);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let T=o.currentVideoSegmentLength$.getValue();T&&(l.currentVideoSegmentLength=T);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let E=xe(i.vsid);typeof E=="string"&&(l.vsid=E);let V=(J=t.info.currentVideoStream$.getValue())==null?void 0:J.codec;V&&(l.videoCodec=V);let k=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;k&&(l.audioCodec=k),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(l.hdr=!0);let N=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return N&&(l.audioLanguage=N),l},i1=(t,e)=>ga(t,e,"mp4"),o1=t=>!t.type,n1=t=>!!t.type,r1=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},du=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return St(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var yi=require("@vkontakte/videoplayer-shared/es2015"),WA=require("@vkontakte/videoplayer-core/es2015");var s1="vk_player_prefer_traffic_saving_enabled",a1="vk_player_preferred_volume",l1="vk_player_prefer_volume_mute",hf="vk_player_preferred_quality",mf="vk_player_preferred_default_quality_settings",vf="vk_player_preferred_quality_settings_by_video",d1="vk_player_preferred_stream_language",c1="vk_player_preferred_rate",u1="vk_player_preferred_autoplay_next",gf="vk_player_preferred_subtitles_language",p1="vk_player_user_video_prefs",f1=t=>t>1?1:t<0?0:t,_f=t=>yi.safeStorage.set(a1,f1(t).toString(10)),uu=()=>{let t=yi.safeStorage.get(a1);return(0,yi.isNullable)(t)?void 0:f1(parseFloat(t))},bf=(t,e)=>yi.safeStorage.set(hf,JSON.stringify({videoId:t,value:e})),pu=()=>yi.safeStorage.remove(hf),$f=t=>{let e=yi.safeStorage.get(hf);if((0,yi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){pu();return}return o},yf=(t,e)=>{e?yi.safeStorage.set(t,"true"):yi.safeStorage.remove(t)},xf=t=>yi.safeStorage.get(t)==="true",wf=t=>yf(l1,t),m1=()=>xf(l1),$d=t=>yf(s1,t),Sf=()=>xf(s1),v1=()=>yi.safeStorage.get(d1),Cf=t=>yi.safeStorage.set(d1,t),Tf=()=>yi.safeStorage.get(gf),Ef=t=>{t?yi.safeStorage.set(gf,t):yi.safeStorage.remove(gf)},g1=t=>yi.safeStorage.set(c1,JSON.stringify({rate:t})),h1=()=>{let t=yi.safeStorage.get(c1);if((0,yi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},_1=t=>yf(u1,t),b1=()=>xf(u1),_b=()=>{let t=f=>{yi.safeStorage.set(mf,JSON.stringify(f))},e=()=>{try{let f=yi.safeStorage.get(mf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=yi.safeStorage.get(vf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{yi.safeStorage.set(vf,JSON.stringify(f))},n=f=>{u(f);let m=f?i():null;if(m&&(m==null?void 0:m.videoId)===f)return Ht(W({},m),{appliesTo:"to-video"});m&&s();let p=e();return p?Ht(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{yi.safeStorage.remove(vf)},l=()=>{yi.safeStorage.remove(mf)},d=(f,m="as-default")=>{f.type==="exact_quality"||m==="to-video"?o(f):t(f)},a=f=>{let m=n(f);if(m){switch(m.type){case"traffic_saving":$d(!0);break;case"exact_quality":bf(f,m.quality)}s(),l()}},u=f=>{let m=$f(f);if(m){o({type:"exact_quality",videoId:f,quality:m});return}Sf()&&t({type:"traffic_saving",videoId:f}),$d(!1),pu()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Tf,savePreferredSubtitlesLanguage:Ef}},{getPreferredQualitySettings:$1,migrateSettingsToLegacyWay:y1,savePreferredQualitySettings:fu,savePreferredDefaultQualitySettings:KA,removePreferredQualitySettingsByVideo:qA,getPreferredDefaultQualitySettings:mu}=_b(),bb=3,$b=3,x1=()=>{let t=yi.safeStorage.get(p1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},vu=(t,e)=>{var n,s;let i=x1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},If=(t,e,i)=>{var l,d,a;let o=(l=x1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=yb(o);yi.safeStorage.set(p1,JSON.stringify(s))};function yb(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice($b),e.reduce((o,[n])=>(o[n]=xb(t[n]),o),{})}function xb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(bb),Object.fromEntries(e)}var Lv=require("@vkontakte/videoplayer-core/es2015");var wb=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function yd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=wb();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}var vl=require("@vkontakte/videoplayer-shared/es2015");var Sb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
51
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},$1=yb;var xb={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
52
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},w1=Sb;var Cb={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
53
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.InterfaceLanguage.EN,y1);ys.set(gl.InterfaceLanguage.RU,$1);var x1=new Map,If=({language:t,pack:e,fallback:i})=>{if(ys.has(t)){let o=ys.get(t);ys.set(t,W(W({},o),e))}else ys.set(t,e);x1.set(t,i)},kf=t=>ys.has(t),Pf=(t,e,i,o)=>{var l;let n=ys.get(t),s=n==null?void 0:n[e];if((0,gl.isNullable)(s)){let d=(l=x1.get(t))!=null?l:o,a=d?ys.get(d):void 0;s=a==null?void 0:a[e]}return(0,gl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},q=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=we(i),n=At();return Pf(o,t,e,n.defaultLanguage)};var cM=require("@vkontakte/videoplayer-core/es2015");var hl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(hl||(hl={}));var wb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Cb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vu="?",Tb="X-Sentry-Auth",Eb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ib(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,n;for(let s=0;s<i.length;++s){if(o=wb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||vu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Cb.exec(i[s]))n={filename:o[2],function:o[1]||vu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Sb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||vu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=vu),e.push(n)}return e.length?{value:w1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function w1(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function kb(t){try{let e=Ib(t);if(e)return e}catch(e){}return{value:w1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Pb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var gu=class{constructor(e){if(e&&e.dsn){let i=Eb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Ht(W({},this.getRequestBlank()),{exception:{values:[kb(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(Tb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Pb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function S1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Ab(){return window}var hu=class t extends gu{constructor(e,i=Ab()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",W({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Ht(W({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ht(W({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>S1(i,o))):!1}getRequestBlank(){return W(Ht(W({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(W({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>S1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return Ht(W({},i),{[o]:s||d?[...s||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var _a=require("@vkontakte/videoplayer-shared/es2015");var _u=null,ba=class{constructor(e,i,o={}){!_u&&e.dsn&&(this.sentryClient=new hu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new _a.Subscription,this.options=e,this.context=o,_u=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),_u=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:x}=i;if((0,_a.isNonNullable)(x)&&v.includes(x)||(0,_a.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,_a.isNonNullable)(x)&&u.includes(x)||(0,_a.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(W(W({},s),o));try{p&&n.captureMessage(p,i.fatal?hl.fatal:hl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return _u}};var ds=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ds||{});var bu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},$u=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),C1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},wd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Bs=()=>!!wd(),yu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},xu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},T1=t=>{let e=window.screen;return(n=>St(null,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Af=require("@vkontakte/videoplayer-core/es2015"),E1=()=>({title:q("hotkey_map_modal_title"),closeBtnText:q("hotkey_map_modal_close_btn_text"),groups:[{title:q("hotkey_map_group_title_common"),items:[{description:q("hotkey_map_item_mute_description"),value:q("hotkey_map_item_mute_value")},{description:q("hotkey_map_item_volume_up_description"),value:q("hotkey_map_item_volume_up_value")},{description:q("hotkey_map_item_volume_down_description"),value:q("hotkey_map_item_volume_down_value")},{description:q("hotkey_map_item_pip_description"),value:q("hotkey_map_item_pip_value")},{description:q("hotkey_map_item_full_screen_description"),value:q("hotkey_map_item_full_screen_value")},{description:q("hotkey_map_item_show_context_menu_description"),value:q("hotkey_map_item_show_context_menu_value")},{description:q("hotkey_map_item_show_hotkey_map_description"),value:q("hotkey_map_item_show_hotkey_map_value")}]},{title:q("hotkey_map_group_title_playback"),items:[{description:q("hotkey_map_item_play_toggle_description"),value:q("hotkey_map_item_play_toggle_value")},{description:q("hotkey_map_item_seek_backward_description"),value:q("hotkey_map_item_seek_backward_value")},{description:q("hotkey_map_item_seek_forward_description"),value:q("hotkey_map_item_seek_forward_value")},{description:q("hotkey_map_item_fast_seek_backward_description"),value:q("hotkey_map_item_fast_seek_backward_value")},{description:q("hotkey_map_item_fast_seek_forward_description"),value:q("hotkey_map_item_fast_seek_forward_value")},{description:q("hotkey_map_item_rate_down_description"),value:q("hotkey_map_item_rate_down_value")},{description:q("hotkey_map_item_rate_up_description"),value:q("hotkey_map_item_rate_up_value")},{description:q("hotkey_map_item_prev_frame_description"),value:q("hotkey_map_item_prev_frame_value")},{description:q("hotkey_map_item_next_frame_description"),value:q("hotkey_map_item_next_frame_value")},{description:q("hotkey_map_item_jump_seek_description"),value:q("hotkey_map_item_jump_seek_value")},{description:q("hotkey_map_item_next_video_description"),value:q("hotkey_map_item_next_video_value")},{description:q("hotkey_map_item_prev_video_description"),value:q("hotkey_map_item_prev_video_value")}]},{title:q("hotkey_map_group_title_subtitles"),items:[{description:q("hotkey_map_item_subtitles_toggle_description"),value:q("hotkey_map_item_subtitles_toggle_value")}]},{title:q("hotkey_map_group_title_episodes"),items:[{description:q("hotkey_map_item_prev_episode_description"),value:Af.clientChecker.device.isApple?q("hotkey_map_item_prev_episode_mac_value"):q("hotkey_map_item_prev_episode_pc_value")},{description:q("hotkey_map_item_next_episode_description"),value:Af.clientChecker.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});var _l=require("@vkontakte/videoplayer-shared/es2015");var $a=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,_l.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new _l.ValueSubject(!1),isEnabled$:new _l.ValueSubject(!1),type:0};this.info.isEnabled$=new _l.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return St(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return St(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return St(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=W({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return St(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ya(t){return t instanceof $a}var bl=require("@vkontakte/videoplayer-shared/es2015");Eg();function Lf(t,e){U(e,!1);let i=Ie();Vt(()=>{i.getAdmanWrapper().startPostroll()}),zr(),z()}var I1=require("@vkontakte/videoplayer-shared/es2015");var Mb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Lb=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),Vb=M("<div><!></div>"),Rb={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Vf(t,e){U(e,!0),Q(t,Rb);let[i,o]=Fe(),n=()=>C(u,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,I1.noop),u=Ie().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=Vb();let p;v.__click=[Mb,f,d];var x=_(v);{var w=S=>{var T=Lb(),E=_(T);Te(),h(T),B(V=>$e(E,`${V!=null?V:""} `),[()=>q("skip_ads_now")]),$(S,T)},y=S=>{var T=ss();B(E=>$e(T,E),[()=>q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(S,T)};L(x,S=>{r(f)?S(w):S(y,!1)})}h(v),B(S=>p=te(v,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,v),z(),o()}ct(["click"]);var Nb=M('<button class="svelte-1wy3dql"> </button>'),Ob={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Rf(t,e){U(e,!1),Q(t,Ob),zr();var i=Nb(),o=_(i,!0);h(i),B(n=>$e(o,n),[()=>q("visit_advertiser")],Dr),$(t,i),z()}var Bb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Db=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Hb={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
54
+ Try switching the\xA0quality to\xA0Auto.`},S1=Cb;var ys=new Map;ys.set(vl.InterfaceLanguage.EN,S1);ys.set(vl.InterfaceLanguage.RU,w1);var C1=new Map,kf=({language:t,pack:e,fallback:i})=>{if(ys.has(t)){let o=ys.get(t);ys.set(t,W(W({},o),e))}else ys.set(t,e);C1.set(t,i)},Pf=t=>ys.has(t),Af=(t,e,i,o)=>{var l;let n=ys.get(t),s=n==null?void 0:n[e];if((0,vl.isNullable)(s)){let d=(l=C1.get(t))!=null?l:o,a=d?ys.get(d):void 0;s=a==null?void 0:a[e]}return(0,vl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},q=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=xe(i),n=Pt();return Af(o,t,e,n.defaultLanguage)};var hM=require("@vkontakte/videoplayer-core/es2015");var gl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(gl||(gl={}));var Tb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Eb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ib=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gu="?",kb="X-Sentry-Auth",Pb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ab(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,n;for(let s=0;s<i.length;++s){if(o=Tb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||gu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Ib.exec(i[s]))n={filename:o[2],function:o[1]||gu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Eb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||gu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=gu),e.push(n)}return e.length?{value:T1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function T1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function Mb(t){try{let e=Ab(t);if(e)return e}catch(e){}return{value:T1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Lb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var hu=class{constructor(e){if(e&&e.dsn){let i=Pb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Ht(W({},this.getRequestBlank()),{exception:{values:[Mb(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(kb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Lb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function E1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Vb(){return window}var _u=class t extends hu{constructor(e,i=Vb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",W({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Ht(W({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ht(W({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>E1(i,o))):!1}getRequestBlank(){return W(Ht(W({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(W({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>E1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return Ht(W({},i),{[o]:s||d?[...s||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var ha=require("@vkontakte/videoplayer-shared/es2015");var bu=null,_a=class{constructor(e,i,o={}){!bu&&e.dsn&&(this.sentryClient=new _u({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ha.Subscription,this.options=e,this.context=o,bu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),bu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:p,category:w}=i;if((0,ha.isNonNullable)(w)&&m.includes(w)||(0,ha.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,ha.isNonNullable)(w)&&u.includes(w)||(0,ha.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(W(W({},s),o));try{p&&n.captureMessage(p,i.fatal?gl.fatal:gl.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return bu}};var ls=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ls||{});var $u=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},yu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),I1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},xd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Bs=()=>!!xd(),xu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},wu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},k1=t=>{let e=window.screen;return(n=>St(null,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Mf=require("@vkontakte/videoplayer-core/es2015"),P1=()=>({title:q("hotkey_map_modal_title"),closeBtnText:q("hotkey_map_modal_close_btn_text"),groups:[{title:q("hotkey_map_group_title_common"),items:[{description:q("hotkey_map_item_mute_description"),value:q("hotkey_map_item_mute_value")},{description:q("hotkey_map_item_volume_up_description"),value:q("hotkey_map_item_volume_up_value")},{description:q("hotkey_map_item_volume_down_description"),value:q("hotkey_map_item_volume_down_value")},{description:q("hotkey_map_item_pip_description"),value:q("hotkey_map_item_pip_value")},{description:q("hotkey_map_item_full_screen_description"),value:q("hotkey_map_item_full_screen_value")},{description:q("hotkey_map_item_show_context_menu_description"),value:q("hotkey_map_item_show_context_menu_value")},{description:q("hotkey_map_item_show_hotkey_map_description"),value:q("hotkey_map_item_show_hotkey_map_value")}]},{title:q("hotkey_map_group_title_playback"),items:[{description:q("hotkey_map_item_play_toggle_description"),value:q("hotkey_map_item_play_toggle_value")},{description:q("hotkey_map_item_seek_backward_description"),value:q("hotkey_map_item_seek_backward_value")},{description:q("hotkey_map_item_seek_forward_description"),value:q("hotkey_map_item_seek_forward_value")},{description:q("hotkey_map_item_fast_seek_backward_description"),value:q("hotkey_map_item_fast_seek_backward_value")},{description:q("hotkey_map_item_fast_seek_forward_description"),value:q("hotkey_map_item_fast_seek_forward_value")},{description:q("hotkey_map_item_rate_down_description"),value:q("hotkey_map_item_rate_down_value")},{description:q("hotkey_map_item_rate_up_description"),value:q("hotkey_map_item_rate_up_value")},{description:q("hotkey_map_item_prev_frame_description"),value:q("hotkey_map_item_prev_frame_value")},{description:q("hotkey_map_item_next_frame_description"),value:q("hotkey_map_item_next_frame_value")},{description:q("hotkey_map_item_jump_seek_description"),value:q("hotkey_map_item_jump_seek_value")},{description:q("hotkey_map_item_next_video_description"),value:q("hotkey_map_item_next_video_value")},{description:q("hotkey_map_item_prev_video_description"),value:q("hotkey_map_item_prev_video_value")}]},{title:q("hotkey_map_group_title_subtitles"),items:[{description:q("hotkey_map_item_subtitles_toggle_description"),value:q("hotkey_map_item_subtitles_toggle_value")}]},{title:q("hotkey_map_group_title_episodes"),items:[{description:q("hotkey_map_item_prev_episode_description"),value:Mf.clientChecker.device.isApple?q("hotkey_map_item_prev_episode_mac_value"):q("hotkey_map_item_prev_episode_pc_value")},{description:q("hotkey_map_item_next_episode_description"),value:Mf.clientChecker.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});var hl=require("@vkontakte/videoplayer-shared/es2015");var ba=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,hl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new hl.ValueSubject(!1),isEnabled$:new hl.ValueSubject(!1),type:0};this.info.isEnabled$=new hl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return St(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return St(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return St(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=W({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return St(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function $a(t){return t instanceof ba}var _l=require("@vkontakte/videoplayer-shared/es2015");Pg();function Vf(t,e){U(e,!1);let i=Ie();Vt(()=>{i.getAdmanWrapper().startPostroll()}),Kr(),z()}var A1=require("@vkontakte/videoplayer-shared/es2015");var Rb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Nb=A('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),Ob=A("<div><!></div>"),Bb={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Rf(t,e){U(e,!0),K(t,Bb);let[i,o]=Fe(),n=()=>S(u,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,A1.noop),u=Ie().ui.isMobile,f=g(()=>s()>0&&s()>=l());var m=Ob();let p;m.__click=[Rb,f,d];var w=_(m);{var x=T=>{var C=Nb(),E=_(C);Ce(),h(C),B(V=>be(E,`${V!=null?V:""} `),[()=>q("skip_ads_now")]),b(T,C)},y=T=>{var C=ss();B(E=>be(C,E),[()=>q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(T,C)};L(w,T=>{r(f)?T(x):T(y,!1)})}h(m),B(T=>p=ne(m,1,"container svelte-1k4i25s",null,p,T),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,m),z(),o()}ct(["click"]);var Db=A('<button class="svelte-1wy3dql"> </button>'),Hb={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Nf(t,e){U(e,!1),K(t,Hb),Kr();var i=Db(),o=_(i,!0);h(i),B(n=>be(o,n),[()=>q("visit_advertiser")],Hr),b(t,i),z()}var Fb=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),Ub=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),zb={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
63
63
  rgba(0, 0, 0, 0.5) 77%,
64
64
  rgba(0, 0, 0, 0.55) 88%,
65
65
  rgba(0, 0, 0, 0.65) 100%
66
- );}`};function Cd(t,e){U(e,!0),Q(t,Hb);let[i,o]=Fe(),n=()=>C(H,"$canSkipAd",i),s=()=>C(Z,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(F,"$adPosition",i),a=()=>C(K,"$secondsToWatchBeforeSkipAd",i),u=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),x=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=Ie(),S=At(),T=y.state.isEnded$,E=y.ui.isMobile,V=S.ads.isMobileGoToSiteButton,k=Y(void 0),I=Y(void 0),R=!1,Z=y.ads.playbackState,H=y.ads.canSkip,F=y.ads.position,K=y.ads.secondsToWatchBeforeSkip,ee=g(()=>n()&&s()!=="inactive"),j=g(()=>l()&&s()!=="inactive"&&V);Vt(()=>{var Me;let De=y.getAdmanWrapper();if(bl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,bl.now)(),f()]}),!f()){De.onAdmanLoadingError();return}let de=ke=>{De.initAdman(ke),R=!0},ge=new AbortController,ie=()=>{ge.abort()},{width:ve,height:He}=we(y.ui.playerSize),fe=we(y.ui.isFullscreen),lt=(Me=x())!=null?Me:we(y.ui.isAutoplay),X={width:ve,height:He,isFullscreen:fe,isAutoplay:lt,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:v(),previewParam:p(),duration:w()};return window.AdmanHTML?de(X):De.loadAdman(ge.signal).then(()=>{de(X)}).catch(()=>{De.onAdmanLoadingError()}),()=>{bl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,bl.now)(),f()]}),!R&&ie()}});var ue=Db(),oe=_(ue);{var pe=De=>{var de=Bb();$(De,de)};L(oe,De=>{l()&&De(pe)})}var ye=P(oe,2);nt(ye,De=>O(I,De),()=>r(I));var me=P(ye,2);{var Pe=De=>{Vf(De,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};L(me,De=>{r(ee)&&De(Pe)})}var re=P(me,2);{var Re=De=>{Lf(De,{})};L(re,De=>{u()&&De(Re)})}var se=P(re,2);{var N=De=>{Rf(De,{})};L(se,De=>{r(j)&&De(N)})}h(ue),nt(ue,De=>O(k,De),()=>r(k)),$(t,ue),z(),o()}var Cn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Fb=Ee('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Nf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Fb();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var Ub=Ee('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Of(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ub();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function Td(t,e){let i=m(e,"isActive",3,!1);var o=Ke(),n=he(o);{var s=d=>{Of(d,{})},l=d=>{Nf(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var zb=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Wb=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Kb=M('<span class="text svelte-1s15d2i"> </span>'),qb=M("<div><!> <!></div>"),Qb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
66
+ );}`};function Sd(t,e){U(e,!0),K(t,zb);let[i,o]=Fe(),n=()=>S(H,"$canSkipAd",i),s=()=>S(J,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(F,"$adPosition",i),a=()=>S(Q,"$secondsToWatchBeforeSkipAd",i),u=()=>S(C,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),m=v(e,"adsParams",3,void 0),p=v(e,"adsPreviewParam",3,void 0),w=v(e,"adsAutoplayParam",3,void 0),x=v(e,"duration",3,0),y=Ie(),T=Pt(),C=y.state.isEnded$,E=y.ui.isMobile,V=T.ads.isMobileGoToSiteButton,k=Z(void 0),I=Z(void 0),N=!1,J=y.ads.playbackState,H=y.ads.canSkip,F=y.ads.position,Q=y.ads.secondsToWatchBeforeSkip,ie=g(()=>n()&&s()!=="inactive"),Y=g(()=>l()&&s()!=="inactive"&&V);Vt(()=>{var we;let R=y.getAdmanWrapper();if(_l.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,_l.now)(),f()]}),!f()){R.onAdmanLoadingError();return}let $e=ke=>{R.initAdman(ke),N=!0},Be=new AbortController,G=()=>{Be.abort()},{width:ee,height:Oe}=xe(y.ui.playerSize),it=xe(y.ui.isFullscreen),he=(we=w())!=null?we:xe(y.ui.isAutoplay),te={width:ee,height:Oe,isFullscreen:it,isAutoplay:he,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:m(),previewParam:p(),duration:x()};return window.AdmanHTML?$e(te):R.loadAdman(Be.signal).then(()=>{$e(te)}).catch(()=>{R.onAdmanLoadingError()}),()=>{_l.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,_l.now)(),f()]}),!N&&G()}});var ge=Ub(),X=_(ge);{var ue=R=>{var $e=Fb();b(R,$e)};L(X,R=>{l()&&R(ue)})}var me=P(X,2);rt(me,R=>O(I,R),()=>r(I));var pe=P(me,2);{var Pe=R=>{Rf(R,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};L(pe,R=>{r(ie)&&R(Pe)})}var Le=P(pe,2);{var le=R=>{Vf(R,{})};L(Le,R=>{u()&&R(le)})}var He=P(Le,2);{var se=R=>{Nf(R,{})};L(He,R=>{r(Y)&&R(se)})}h(ge),rt(ge,R=>O(k,R),()=>r(k)),b(t,ge),z(),o()}var yn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Wb=Te('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Of(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}var Kb=Te('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Bf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}function Cd(t,e){let i=v(e,"isActive",3,!1);var o=We(),n=fe(o);{var s=d=>{Bf(d,{})},l=d=>{Of(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}b(t,o)}var qb=A('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Qb=A('<div class="live-icon svelte-1s15d2i"><!></div>'),Gb=A('<span class="text svelte-1s15d2i"> </span>'),jb=A("<div><!> <!></div>"),Yb={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
67
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
68
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
69
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
134
134
  100% {
135
135
  transform: scaleY(0.6);
136
136
  }
137
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Ed(t,e){Q(t,Qb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=qb();let l;var d=_(s);{var a=p=>{var x=zb();$(p,x)};L(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var x=Wb(),w=_(x);Td(w,{isActive:!0}),h(x),$(p,x)},v=p=>{var x=Kb(),w=_(x,!0);h(x),B(()=>$e(w,e.time)),$(p,x)};L(u,p=>{o()?p(f):p(v,!1)})}h(s),B(p=>l=te(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),$(t,s)}var $l=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Gb=M('<div role="timer" data-testid="thumb-timer"><!></div>'),jb={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}`};function Id(t,e){U(e,!0),Q(t,jb);let[i,o]=Fe(),n=()=>C(f,"$disabled",i),s=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=At(),u=g(()=>Cn(e.duration-e.position)),f=ae(!1);var v=Gb();let p;var x=_(v);Ed(x,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),bs(v,()=>$l(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),B(w=>p=te(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":n(),hidden:s()})]),$(t,v),z(),o()}var yl=t=>{if(!navigator.clipboard){k1(t);return}navigator.clipboard.writeText(t).catch(()=>k1(t))};function k1(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var B1=require("@vkontakte/videoplayer-core/es2015");var Df=require("@vkontakte/videoplayer-core/es2015");var Bf="focus-hidden";var wr=t=>{t.stopPropagation(),t.preventDefault()},Hf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Bf)},Zb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Xb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Jb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},e$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},P1=t=>t.code==="Escape",t$=t=>t.code==="ArrowLeft",kd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},A1=t=>{Jb(t)?(wr(t),Xb(t.target)):e$(t)&&(wr(t),Zb(t.target))},Fs=t=>!Df.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Df.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",xl=(t,e,i)=>St(null,null,function*(){yield Lo(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(yield Lo(),i.set(!1),t.focus())}),M1=(t,e,i)=>St(null,null,function*(){yield Lo(),t&&!e&&we(i)&&(i.set(!1),t.focus())}),Pd=(t,e,i,o=!1)=>St(null,null,function*(){if(yield Lo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Bf,!i),s==null||s.focus()}}),L1=(t,e)=>St(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),wu=(t,e)=>{A1(t),Hf(t.target),P1(t)&&(wr(t),e())},Su=(t,e)=>St(null,null,function*(){kd(t,["ArrowRight"])&&(wr(t),e())}),V1=(t,e,i)=>St(null,null,function*(){if(A1(t),t$(t)){wr(t),e();return}P1(t)&&(wr(t),i())}),wl=(t,e)=>{kd(t)&&(wr(t),e())},R1=(t,e,i)=>{if(kd(t))wr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),wr(t);return}o==="ArrowRight"&&!e&&(i(!0),wr(t))}},N1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},O1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var Sa=require("@vkontakte/videoplayer-shared/es2015");var Kr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Ff=require("@vkontakte/videoplayer-shared/es2015");var o$=(t,e)=>{wl(t,()=>e())},n$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),r$={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Uf(t,e){U(e,!0),Q(t,r$);let i=m(e,"onClick",3,Ff.noop),o=m(e,"closeContextMenu",3,Ff.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=n$();s.__click=n,s.__keydown=[o$,n];var l=_(s,!0);h(s),B(()=>{var d;Ue(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ue(s,"data-testid",e.id),$e(l,e.label)}),$(t,s),z()}ct(["click","keydown"]);var wa=(t,e)=>t.weight-e.weight;var Sl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Sl||{});var s$=(t,e)=>{wu(t,e)},a$=t=>{t.preventDefault()},l$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),d$={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function zf(t,e){U(e,!0),Q(t,d$);let[i,o]=Fe(),n=()=>C(ee,"$isLive$",i),s=()=>C(pe,"$isPiPEnabled$",i),l=()=>C(K,"$chromecastState$",i),d=()=>C(ye,"$pictureInPictureApiIsActive$",i),a=()=>C(oe,"$isLooped$",i),u=()=>C(j,"$positionExact$",i),f=()=>C(Z,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),x=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),S=Y(0),T=Y(0),E=Ie(),{pictureInPicture$:V}=xo(),k=At(),I=E.ui.contextMenu.visible$,R=E.ui.debugPanelVisible,Z=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,K=E.state.chromecastState$,ee=E.state.isLive$,j=E.state.positionExact$,ue=E.state.isInteractive,oe=E.state.looped$,{isEnabled$:pe,isActive$:ye}=V,me=g(()=>{var Ve;return k.features.copyVideoLink&&((Ve=E.callbacks)==null?void 0:Ve.onCopyVideoLink)}),Pe=g(()=>r(me)&&!n()&&!ue),re=g(()=>{var Ve;return!!((Ve=E.callbacks)!=null&&Ve.onCopyEmbedCodeClicked)}),Re=g(()=>s()&&l()!==B1.ChromecastState.CONNECTED&&!ue),se=g(()=>!ue),N=g(()=>k.features.videoRotate&&!ue),De=g(()=>k.showSupport&&!d()),de=g(()=>k.features.saveTraceInfoToFile),ge=()=>{var Ve;I.set(!1),(Ve=e.returnFocus)==null||Ve.call(e)},ie=(Ve,Ze)=>{if(!y()||!x()||!w())return;let Be=y().getBoundingClientRect(),tt=x().getBoundingClientRect();O(S,Ve-tt.left),O(T,Ze-tt.top),r(S)+Be.width>tt.width&&O(S,tt.width-Be.width),r(T)+Be.height>tt.height&&O(T,tt.height-Be.height),O(S,Math.max(r(S),0),!0),O(T,Math.max(r(T),0),!0)};qe(()=>{St(null,null,function*(){if(y()&&x()&&w()){yield Lo();let{top:Ze,left:Be,bottom:tt,right:Rt}=p(),Qt=Be!=null?Be:0,it=Ze!=null?Ze:0,Ci=y().getBoundingClientRect();(0,Sa.isNullable)(Be)&&!(0,Sa.isNullable)(Rt)&&(Qt=Rt-Ci.width),(0,Sa.isNullable)(Ze)&&!(0,Sa.isNullable)(tt)&&(it=tt-Ci.height),Qt=Math.max(Qt,0),it=Math.max(it,0),ie(Qt,it)}})});let ve=()=>{E.actions.internal.videoRotate()},He=()=>{(0,Sa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},fe=()=>{let Ve=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Ze=new Blob([...Ve],{type:"plain/text"}),Be=window.URL.createObjectURL(Ze);ha(Be,"vk_player_debug_info","txt")}else yl(E.actions.internal.getDebugTextData())},lt=()=>{let Ve=E.actions.internal.getTraceTextData(),Ze=new Blob([...Ve],{type:"application/json"}),Be=window.URL.createObjectURL(Ze);ha(Be,"vk_player_trace_info","json")},X=()=>{R.set(!0)},Me=()=>St(null,null,function*(){var Ve;try{F()}finally{(Ve=e.returnFocus)==null||Ve.call(e)}}),ke=()=>{E.actions.internal.setLooped(!a())},We=()=>{var Ve,Ze;if(r(re)){let Be=(Ze=(Ve=E.callbacks)==null?void 0:Ve.onCopyEmbedCodeClicked)==null?void 0:Ze.call(Ve);Be&&yl(Be)}},dt=(Ve=!1)=>{var Ze,Be;if((Ze=E.callbacks)!=null&&Ze.onCopyVideoLink){let tt=(Be=E.callbacks)==null?void 0:Be.onCopyVideoLink(Ve,u());tt&&yl(tt)}},gt=g(()=>k.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),ht=g(()=>r(me)?{id:"copy-link",weight:Kr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>dt()}:void 0),Et=g(()=>r(Pe)?{id:"copy-link-timestamp",weight:Kr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>dt(!0)}:void 0),je=g(()=>r(re)?{id:"copy-embed-code",weight:Kr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:We}:void 0),zt=g(()=>r(Re)?{id:"pip",weight:Kr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:Me}:void 0),ti=g(()=>r(se)?{id:"video-loop",weight:Kr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:ke}:void 0),Yt=g(()=>r(N)?{id:"rotate",weight:Kr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:ve}:void 0),qt=g(()=>r(De)?{id:"report",weight:Kr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:He}:void 0),ne=g(()=>({id:"save-debug",weight:Kr["save-debug"],label:r(gt),onClick:fe})),Wt=g(()=>r(de)?{id:"save-trace",weight:Kr["save-trace"],label:H("menu_save_debug"),onClick:lt}:void 0),_e=g(()=>({id:"debug-info",weight:Kr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:X})),Se=g(()=>[r(ht),r(Et),r(je),r(zt),r(ti),r(Yt),r(qt),r(ne),r(Wt),r(_e),...f()].filter(Ve=>!!Ve).sort(wa));var le=Ke(),Ne=he(le);{var Qe=Ve=>{var Ze=l$();Ze.__contextmenu=[a$],Ze.__keydown=[s$,ge],Ii(Ze,21,()=>r(Se),Be=>Be.id,(Be,tt)=>{Uf(Be,{get id(){return r(tt).id},get label(){return r(tt).label},get ariaLabel(){return r(tt).ariaLabel},get onClick(){return r(tt).onClick},closeContextMenu:ge})}),h(Ze),nt(Ze,Be=>y(Be),()=>y()),B(()=>{var Be,tt;return at(Ze,`top: ${(Be=r(T))!=null?Be:""}px; left: ${(tt=r(S))!=null?tt:""}px;`)}),$(Ve,Ze)};L(Ne,Ve=>{v()&&Ve(Qe)})}$(t,le),z(),o()}ct(["contextmenu","keydown"]);var Cu=class{constructor(e){this.value=e,this.next=null}};var Cl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Cu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var c$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),u$={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Ad(t,e){U(e,!0),Q(t,u$);let i=m(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),s=16,l=120,d=60,a=l/d;Vt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function u(p,x,w,y,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect(x,w,y,S)}qe(()=>{let p="";if(r(n)){let x=i()[0];for(let y=1;y<i().length;y++)i()[y]>x&&(x=i()[y]);r(n).clearRect(0,0,l,s);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*a,T=x>0?s*(i()[y]/x):0;u(r(n),S,0,a,T),p=T+" "+p,w--}}});var f=c$(),v=_(f);nt(v,p=>O(o,p),()=>r(o)),h(f),$(t,f),z()}var Wf=require("@vkontakte/videoplayer-shared/es2015");var p$=(t,e)=>{t.stopPropagation(),Wf.safeStorage.remove(hd),e.set(!1)},f$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),m$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),v$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),g$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),h$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),_$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),b$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),$$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),y$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),x$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),w$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),S$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),C$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),T$=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),E$=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),I$={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Md(t,e){U(e,!0),Q(t,I$);let[i,o]=Fe(),n=()=>C(d,"$isMobile",i),s=Ie(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Y(ai(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Y(0),v=Y(0),p=Y(0),x=new Cl(60),w=new Cl(60),y=new Cl(60),S=Y(ai([])),T=Y(ai([])),E=Y(ai([])),V=q("aria_label_debug_panel");Vt(()=>{Wf.safeStorage.set(hd,"true"),s.actions.internal.startLogging(),u&&(O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let _e=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),Se;return u&&(Se=window.setInterval(()=>{if(u){O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;O(p,le-r(f)),O(f,le,!0),x.push(r(p)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&y.push(r(a).bitrate),O(S,x.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(_e),Se&&clearInterval(Se)}});var k=E$();let I;var R=_(k);R.__click=[p$,l];var Z=P(R,2),H=_(Z),F=P(_(H),2),K=_(F,!0);h(F),h(H);var ee=P(H,2);{var j=_e=>{var Se=f$(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).id)),$(_e,Se)};L(ee,_e=>{r(a).id&&_e(j)})}var ue=P(ee,2);{var oe=_e=>{var Se=m$(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).vsid)),$(_e,Se)};L(ue,_e=>{r(a).vsid&&_e(oe)})}var pe=P(ue,2);{var ye=_e=>{var Se=v$(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).provider)),$(_e,Se)};L(pe,_e=>{r(a).provider&&_e(ye)})}var me=P(pe,2);{var Pe=_e=>{var Se=g$(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(()=>{var Qe,Ve;return $e(Ne,`Video: ${(Qe=r(a).videoCodec||"")!=null?Qe:""} ${r(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Td(t,e){K(t,Yb);let i=v(e,"withEqualizer",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var s=jb();let l;var d=_(s);{var a=p=>{var w=qb();b(p,w)};L(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var w=Qb(),x=_(w);Cd(x,{isActive:!0}),h(w),b(p,w)},m=p=>{var w=Gb(),x=_(w,!0);h(w),B(()=>be(x,e.time)),b(p,w)};L(u,p=>{o()?p(f):p(m,!1)})}h(s),B(p=>l=ne(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),b(t,s)}var bl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Zb=A('<div role="timer" data-testid="thumb-timer"><!></div>'),Xb={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}`};function Ed(t,e){U(e,!0),K(t,Xb);let[i,o]=Fe(),n=()=>S(f,"$disabled",i),s=v(e,"isHidden",3,!1),l=v(e,"isLive",3,!1),d=v(e,"isPlaying",3,!1),a=Pt(),u=g(()=>yn(e.duration-e.position)),f=ae(!1);var m=Zb();let p;var w=_(m);Td(w,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(m),bs(m,()=>bl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),B(x=>p=ne(m,1,"thumb-timer svelte-c6gowj",null,p,x),[()=>({"out-of-flow":n(),hidden:s()})]),b(t,m),z(),o()}var $l=t=>{if(!navigator.clipboard){M1(t);return}navigator.clipboard.writeText(t).catch(()=>M1(t))};function M1(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var F1=require("@vkontakte/videoplayer-core/es2015");var Hf=require("@vkontakte/videoplayer-core/es2015");var Df="focus-hidden";var Sr=t=>{t.stopPropagation(),t.preventDefault()},Ff=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Df)},e$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},t$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},i$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},o$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},L1=t=>t.code==="Escape",n$=t=>t.code==="ArrowLeft",Id=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},V1=t=>{i$(t)?(Sr(t),t$(t.target)):o$(t)&&(Sr(t),e$(t.target))},Fs=t=>!Hf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Hf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",yl=(t,e,i)=>St(null,null,function*(){yield No(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(yield No(),i.set(!1),t.focus())}),R1=(t,e,i)=>St(null,null,function*(){yield No(),t&&!e&&xe(i)&&(i.set(!1),t.focus())}),kd=(t,e,i,o=!1)=>St(null,null,function*(){if(yield No(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Df,!i),s==null||s.focus()}}),N1=(t,e)=>St(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Su=(t,e)=>{V1(t),Ff(t.target),L1(t)&&(Sr(t),e())},Cu=(t,e)=>St(null,null,function*(){Id(t,["ArrowRight"])&&(Sr(t),e())}),O1=(t,e,i)=>St(null,null,function*(){if(V1(t),n$(t)){Sr(t),e();return}L1(t)&&(Sr(t),i())}),xl=(t,e)=>{Id(t)&&(Sr(t),e())},B1=(t,e,i)=>{if(Id(t))Sr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Sr(t);return}o==="ArrowRight"&&!e&&(i(!0),Sr(t))}},D1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},H1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var wa=require("@vkontakte/videoplayer-shared/es2015");var Qr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var Uf=require("@vkontakte/videoplayer-shared/es2015");var s$=(t,e)=>{xl(t,()=>e())},a$=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),l$={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function zf(t,e){U(e,!0),K(t,l$);let i=v(e,"onClick",3,Uf.noop),o=v(e,"closeContextMenu",3,Uf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=a$();s.__click=n,s.__keydown=[s$,n];var l=_(s,!0);h(s),B(()=>{var d;ze(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),ze(s,"data-testid",e.id),be(l,e.label)}),b(t,s),z()}ct(["click","keydown"]);var xa=(t,e)=>t.weight-e.weight;var wl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(wl||{});var d$=(t,e)=>{Su(t,e)},c$=t=>{t.preventDefault()},u$=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),p$={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function Wf(t,e){U(e,!0),K(t,p$);let[i,o]=Fe(),n=()=>S(ie,"$isLive$",i),s=()=>S(ue,"$isPiPEnabled$",i),l=()=>S(Q,"$chromecastState$",i),d=()=>S(me,"$pictureInPictureApiIsActive$",i),a=()=>S(X,"$isLooped$",i),u=()=>S(Y,"$positionExact$",i),f=()=>S(J,"$additionalContextMenuItems$",i),m=v(e,"visible",3,!1),p=v(e,"position",19,()=>({top:0,left:0})),w=v(e,"playerContainerRef",3,void 0),x=v(e,"controlsContainerRef",3,void 0),y=v(e,"menuElementRef",15,void 0),T=Z(0),C=Z(0),E=Ie(),{pictureInPicture$:V}=So(),k=Pt(),I=E.ui.contextMenu.visible$,N=E.ui.debugPanelVisible,J=E.ui.additionalContextMenuItems$,H=E.ui.t,F=E.actions.internal.togglePictureInPicture,Q=E.state.chromecastState$,ie=E.state.isLive$,Y=E.state.positionExact$,ge=E.state.isInteractive,X=E.state.looped$,{isEnabled$:ue,isActive$:me}=V,pe=g(()=>{var Re;return k.features.copyVideoLink&&((Re=E.callbacks)==null?void 0:Re.onCopyVideoLink)}),Pe=g(()=>r(pe)&&!n()&&!ge),Le=g(()=>{var Re;return!!((Re=E.callbacks)!=null&&Re.onCopyEmbedCodeClicked)}),le=g(()=>s()&&l()!==F1.ChromecastState.CONNECTED&&!ge),He=g(()=>!ge),se=g(()=>k.features.videoRotate&&!ge),R=g(()=>k.showSupport&&!d()),$e=g(()=>k.features.saveTraceInfoToFile),Be=()=>{var Re;I.set(!1),(Re=e.returnFocus)==null||Re.call(e)},G=(Re,Qe)=>{if(!y()||!w()||!x())return;let De=y().getBoundingClientRect(),Je=w().getBoundingClientRect();O(T,Re-Je.left),O(C,Qe-Je.top),r(T)+De.width>Je.width&&O(T,Je.width-De.width),r(C)+De.height>Je.height&&O(C,Je.height-De.height),O(T,Math.max(r(T),0),!0),O(C,Math.max(r(C),0),!0)};qe(()=>{St(null,null,function*(){if(y()&&w()&&x()){yield No();let{top:Qe,left:De,bottom:Je,right:At}=p(),Jt=De!=null?De:0,nt=Qe!=null?Qe:0,_i=y().getBoundingClientRect();(0,wa.isNullable)(De)&&!(0,wa.isNullable)(At)&&(Jt=At-_i.width),(0,wa.isNullable)(Qe)&&!(0,wa.isNullable)(Je)&&(nt=Je-_i.height),Jt=Math.max(Jt,0),nt=Math.max(nt,0),G(Jt,nt)}})});let ee=()=>{E.actions.internal.videoRotate()},Oe=()=>{(0,wa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},it=()=>{let Re=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Qe=new Blob([...Re],{type:"plain/text"}),De=window.URL.createObjectURL(Qe);ga(De,"vk_player_debug_info","txt")}else $l(E.actions.internal.getDebugTextData())},he=()=>{let Re=E.actions.internal.getTraceTextData(),Qe=new Blob([...Re],{type:"application/json"}),De=window.URL.createObjectURL(Qe);ga(De,"vk_player_trace_info","json")},te=()=>{N.set(!0)},we=()=>St(null,null,function*(){var Re;try{F()}finally{(Re=e.returnFocus)==null||Re.call(e)}}),ke=()=>{E.actions.internal.setLooped(!a())},je=()=>{var Re,Qe;if(r(Le)){let De=(Qe=(Re=E.callbacks)==null?void 0:Re.onCopyEmbedCodeClicked)==null?void 0:Qe.call(Re);De&&$l(De)}},ot=(Re=!1)=>{var Qe,De;if((Qe=E.callbacks)!=null&&Qe.onCopyVideoLink){let Je=(De=E.callbacks)==null?void 0:De.onCopyVideoLink(Re,u());Je&&$l(Je)}},bt=g(()=>k.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),mt=g(()=>r(pe)?{id:"copy-link",weight:Qr["copy-link"],label:H("menu_copy_video_link"),onClick:()=>ot()}:void 0),Et=g(()=>r(Pe)?{id:"copy-link-timestamp",weight:Qr["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>ot(!0)}:void 0),Ze=g(()=>r(Le)?{id:"copy-embed-code",weight:Qr["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:je}:void 0),Ut=g(()=>r(le)?{id:"pip",weight:Qr.pip,label:d()?H("menu_pip_close"):H("menu_pip"),onClick:we}:void 0),Xt=g(()=>r(He)?{id:"video-loop",weight:Qr["video-loop"],label:a()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:ke}:void 0),Gt=g(()=>r(se)?{id:"rotate",weight:Qr.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:ee}:void 0),qt=g(()=>r(R)?{id:"report",weight:Qr.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:Oe}:void 0),re=g(()=>({id:"save-debug",weight:Qr["save-debug"],label:r(bt),onClick:it})),zt=g(()=>r($e)?{id:"save-trace",weight:Qr["save-trace"],label:H("menu_save_debug"),onClick:he}:void 0),Se=g(()=>({id:"debug-info",weight:Qr["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:te})),ve=g(()=>[r(mt),r(Et),r(Ze),r(Ut),r(Xt),r(Gt),r(qt),r(re),r(zt),r(Se),...f()].filter(Re=>!!Re).sort(xa));var ce=We(),Ve=fe(ce);{var Ue=Re=>{var Qe=u$();Qe.__contextmenu=[c$],Qe.__keydown=[d$,Be],Mi(Qe,21,()=>r(ve),De=>De.id,(De,Je)=>{zf(De,{get id(){return r(Je).id},get label(){return r(Je).label},get ariaLabel(){return r(Je).ariaLabel},get onClick(){return r(Je).onClick},closeContextMenu:Be})}),h(Qe),rt(Qe,De=>y(De),()=>y()),B(()=>{var De,Je;return lt(Qe,`top: ${(De=r(C))!=null?De:""}px; left: ${(Je=r(T))!=null?Je:""}px;`)}),b(Re,Qe)};L(Ve,Re=>{m()&&Re(Ue)})}b(t,ce),z(),o()}ct(["contextmenu","keydown"]);var Tu=class{constructor(e){this.value=e,this.next=null}};var Sl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Tu(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var f$=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),m$={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Pd(t,e){U(e,!0),K(t,m$);let i=v(e,"values",19,()=>[]),o=Z(void 0),n=Z(null),s=16,l=120,d=60,a=l/d;Vt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function u(p,w,x,y,T){T===0&&(T=1),p.fillStyle="#fff",p.fillRect(w,x,y,T)}qe(()=>{let p="";if(r(n)){let w=i()[0];for(let y=1;y<i().length;y++)i()[y]>w&&(w=i()[y]);r(n).clearRect(0,0,l,s);let x=d-1;for(let y=i().length-1;y>=0;y--){let T=x*a,C=w>0?s*(i()[y]/w):0;u(r(n),T,0,a,C),p=C+" "+p,x--}}});var f=f$(),m=_(f);rt(m,p=>O(o,p),()=>r(o)),h(f),b(t,f),z()}var Kf=require("@vkontakte/videoplayer-shared/es2015");var v$=(t,e)=>{t.stopPropagation(),Kf.safeStorage.remove(gd),e.set(!1)},g$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),h$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),_$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),b$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),$$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),y$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),x$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),w$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),S$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),C$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),T$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),E$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),I$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),k$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),P$=A('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),A$={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Ad(t,e){U(e,!0),K(t,A$);let[i,o]=Fe(),n=()=>S(d,"$isMobile",i),s=Ie(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Z(ii(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Z(0),m=Z(0),p=Z(0),w=new Sl(60),x=new Sl(60),y=new Sl(60),T=Z(ii([])),C=Z(ii([])),E=Z(ii([])),V=q("aria_label_debug_panel");Vt(()=>{Kf.safeStorage.set(gd,"true"),s.actions.internal.startLogging(),u&&(O(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Se=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),ve;return u&&(ve=window.setInterval(()=>{if(u){O(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ce=u.getVideoPlaybackQuality().totalVideoFrames;O(p,ce-r(f)),O(f,ce,!0),w.push(r(p)),r(a).speed&&x.push(r(a).speed),r(a).bitrate&&y.push(r(a).bitrate),O(T,w.getValuesFromBottom(),!0),O(C,x.getValuesFromBottom(),!0),O(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Se),ve&&clearInterval(ve)}});var k=P$();let I;var N=_(k);N.__click=[v$,l];var J=P(N,2),H=_(J),F=P(_(H),2),Q=_(F,!0);h(F),h(H);var ie=P(H,2);{var Y=Se=>{var ve=g$(),ce=P(_(ve),2),Ve=_(ce,!0);h(ce),h(ve),B(()=>be(Ve,r(a).id)),b(Se,ve)};L(ie,Se=>{r(a).id&&Se(Y)})}var ge=P(ie,2);{var X=Se=>{var ve=h$(),ce=P(_(ve),2),Ve=_(ce,!0);h(ce),h(ve),B(()=>be(Ve,r(a).vsid)),b(Se,ve)};L(ge,Se=>{r(a).vsid&&Se(X)})}var ue=P(ge,2);{var me=Se=>{var ve=_$(),ce=P(_(ve),2),Ve=_(ce,!0);h(ce),h(ve),B(()=>be(Ve,r(a).provider)),b(Se,ve)};L(ue,Se=>{r(a).provider&&Se(me)})}var pe=P(ue,2);{var Pe=Se=>{var ve=b$(),ce=P(_(ve),2),Ve=_(ce);h(ce),h(ve),B(()=>{var Ue,Re;return be(Ve,`Video: ${(Ue=r(a).videoCodec||"")!=null?Ue:""} ${r(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Ve=r(a).audioCodec||"")!=null?Ve:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(_e,Se)};L(me,_e=>{(r(a).videoCodec||r(a).audioCodec)&&_e(Pe)})}var re=P(me,2);{var Re=_e=>{var Se=h$(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).viewport)),$(_e,Se)};L(re,_e=>{r(a).viewport&&_e(Re)})}var se=P(re,2);{var N=_e=>{var Se=_$(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).videoSize)),$(_e,Se)};L(se,_e=>{r(a).videoSize&&_e(N)})}var De=P(se,2);{var de=_e=>{var Se=b$(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(()=>$e(Ne,r(a).cdn)),$(_e,Se)};L(De,_e=>{r(a).cdn&&_e(de)})}var ge=P(De,2);{var ie=_e=>{var Se=$$(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(()=>{var Qe;return $e(Ne,`${(Qe=r(a).volume)!=null?Qe:""} %`)}),$(_e,Se)};L(ge,_e=>{r(a).volume&&_e(ie)})}var ve=P(ge,2);{var He=_e=>{var Se=y$(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(Qe=>$e(Ne,`${Qe!=null?Qe:""} s`),[()=>r(a).position.toFixed(2)]),$(_e,Se)};L(ve,_e=>{r(a).position&&_e(He)})}var fe=P(ve,2);{var lt=_e=>{var Se=x$(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(Qe=>$e(Ne,`${Qe!=null?Qe:""} s`),[()=>r(a).buffer.toFixed(2)]),$(_e,Se)};L(fe,_e=>{r(a).buffer&&_e(lt)})}var X=P(fe,2);{var Me=_e=>{var Se=w$(),le=P(_(Se),2),Ne=_(le);h(le),h(Se),B(Qe=>$e(Ne,`${Qe!=null?Qe:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(_e,Se)};L(X,_e=>{r(a).liveLatency&&_e(Me)})}var ke=P(X,2);{var We=_e=>{var Se=S$(),le=P(_(Se),2),Ne=_(le,!0);h(le),h(Se),B(Qe=>$e(Ne,Qe),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Qe})=>Qe).map(({value:Qe,title:Ve})=>`${Ve} ${((Qe!=null?Qe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(_e,Se)};L(ke,_e=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&_e(We)})}var dt=P(ke,2),gt=P(_(dt),2),ht=_(gt);h(gt),h(dt);var Et=P(dt,2);{var je=_e=>{var Se=C$(),le=P(_(Se),2);Ad(le,{get values(){return r(T)}});var Ne=P(le,2),Qe=_(Ne);h(Ne),h(Se),B(Ve=>$e(Qe,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(_e,Se)};L(Et,_e=>{r(a).speed&&_e(je)})}var zt=P(Et,2);{var ti=_e=>{var Se=T$(),le=P(_(Se),2);Ad(le,{get values(){return r(E)}});var Ne=P(le,2),Qe=_(Ne);h(Ne),h(Se),B(Ve=>$e(Qe,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(_e,Se)};L(zt,_e=>{r(a).bitrate&&_e(ti)})}var Yt=P(zt,2),qt=P(_(Yt),2);Ad(qt,{get values(){return r(S)}});var ne=P(qt,2),Wt=_(ne,!0);h(ne),h(Yt),h(Z),h(k),B(_e=>{var Se,le;I=te(k,1,"container svelte-4deykz",null,I,_e),Ue(k,"aria-label",V),$e(K,r(a).version),$e(ht,`${(Se=r(v))!=null?Se:""} / ${(le=r(f))!=null?le:""} frames`),$e(Wt,r(p))},[()=>({"container-mobile":n()})]),$(t,k),z(),o()}ct(["click"]);var D1=require("@vkontakte/videoplayer-shared/es2015"),k$=(t,e)=>{t.stopPropagation(),e()()},P$=M('<div class="close svelte-1ome55p"></div>'),A$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function Ca(t,e){U(e,!0),Q(t,A$);let i=m(e,"onClick",3,D1.noop);var o=P$();o.__click=[k$,i],$(t,o),z()}ct(["click"]);var H1=require("@vkontakte/videoplayer-shared/es2015"),M$=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),L$={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Ld(t,e){U(e,!0),Q(t,L$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,H1.noop),n=5e3,s=Y(void 0),l,d,a=0,u;qe(()=>{i()&&Ct(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/n,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Vt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),ln(()=>{f()});var p=M$(),x=_(p);nt(x,w=>O(s,w),()=>r(s)),Te(2),h(p),$(t,p),z()}var V$=(t,e,i)=>{e(!1),i()},R$=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),N$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Kf(t,e){U(e,!0),Q(t,N$);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ie(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Vt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Ke(),T=he(S);{var E=V=>{var k=R$(),I=P(he(k),2),R=_(I),Z=_(R),H=_(Z,!0);h(Z);var F=P(Z,2);Ca(F,{onClick:y}),h(R);var K=P(R,2);K.__click=[V$,u,v];var ee=_(K),j=_(ee),ue=_(j);let oe;var pe=P(ue,2);{var ye=Re=>{let se=g(()=>s()&&n());Ld(Re,{get isRunning(){return r(se)},onTimerEnded:w})};L(pe,Re=>{n()&&Re(ye)})}h(j),h(ee);var me=P(ee,2),Pe=_(me),re=_(Pe,!0);h(Pe),h(me),h(K),h(I),B((Re,se)=>{$e(H,Re),at(j,`background-image: url('${e.thumb}')`),oe=te(ue,1,"thumb-overlay svelte-jfbaax",null,oe,se),$e(re,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),z(),o()}ct(["click"]);var zs=require("@vkontakte/videoplayer-core/es2015"),F1=require("@vkontakte/videoplayer-shared/es2015"),Tn=require("@vkontakte/videoplayer-statistics/es2015");var qf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Qf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Tu=(t,e,i)=>{let o=qf(e,i);e<1?t.actions.internal.setVolume(o):we(t.state.muted$)&&t.actions.internal.setMuted(!1)},Eu=(t,e,i)=>{let o=Qf(e,i);e>0&&t.actions.internal.setVolume(o)};var Us=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var B$=(t,e)=>{e(t)},D$=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),H$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Gf(t,e){var Yt,qt;U(e,!0),Q(t,H$);let[i,o]=Fe(),n=()=>C(H,"$playbackState$",i),s=()=>C(F,"$adPlaybackState",i),l=()=>C(ue,"$disabledControls$",i),d=()=>C(K,"$positionExact$",i),a=()=>C(ee,"$duration$",i),u=()=>C(ie,"$isAudioAvailable$",i),f=()=>C(j,"$volume$",i),v=()=>C(me,"$availablePlaybackRates$",i),p=()=>C(ye,"$currentPlaybackRate$",i),x=()=>C(He,"$isInteractiveTime$",i),w=()=>C(fe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(N,"$isEnded$",i),S=()=>C(oe,"$muted$",i),T=()=>C(pe,"$currentSubtitle$",i),E=()=>C(De,"$overlayContainer$",i),V=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),I=Ie(),R=At(),Z=I.getLogger().createComponentLog("KeyboardControls component"),H=I.state.playbackState$,F=I.ads.playbackState,K=I.state.positionExact$,ee=I.state.duration$,j=I.state.volume$,ue=I.ui.controls.disabledControls$,oe=I.state.muted$,pe=I.state.currentSubtitle$,ye=I.state.currentPlaybackRate$,me=I.state.availablePlaybackRates$,Pe=I.ui.contextMenu.openedByHotKey$,re=I.ui.contextMenu.lastActiveElem$,Re=I.ui.contextMenu.visible$,se=I.ui.contextMenu.position$,N=I.state.isEnded$,De=I.ui.overlayContainer$,de=(Yt=I.callbacks)==null?void 0:Yt.onAudioDoesNotExistHint,ge=(qt=I.callbacks)==null?void 0:qt.onAudioDisabledHint,ie=I.state.isAudioAvailable$,ve=I.state.isAudioDisabled,He=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:fe}=xo(),lt=0,X=!0,Me=Y(void 0),ke=ne=>(ne!==X&&(X=ne,lt=0),lt+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*lt)/1e3),We=(ne,Wt=!1)=>{var Ci,$i;let _e=ne.target,Se=(Ci=_e==null?void 0:_e.getAttribute("role"))==null?void 0:Ci.includes("menuitem"),le=_e.classList.contains("btn"),Ne=ne.code;if(le&&Ne==="Space")return!1;let Qe=zh.has(Ne);if(Se&&Qe)return!1;let Ve=!Uh.has(Ne);if(ne.ctrlKey&&Ve||ne.altKey&&Ve||ne.metaKey)return!1;let Ze=Se&&Ne==="Escape";Wh.has(Ne)||Ze||e.hideContextMenu();let Be=n()===zs.PlaybackState.PLAYING||n()===zs.PlaybackState.PAUSED,tt=e.isAds&&(s()==="paused"||s()==="playing"),Rt=!tt&&!l().has("TIMELINE");if(!(Be||tt))return!1;Z({message:`key down, code: ${Ne}, isExternal = ${Wt}`});let Qt=!1,it=()=>{Qt=!0,Wt||ne.preventDefault()};switch(Ne){case"KeyJ":case"ArrowLeft":{if(!Rt)break;if(ne.ctrlKey||ne.altKey){let ot=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ot.text}),it()}else{let ot=ne.shiftKey?ke(!1):R.controls.seekStepKeyboard/1e3,ri=Math.max(d()-ot,0);d()>0&&(I.actions.internal.seekTime(ri,Tn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ot.toString()}),it())}break}case"KeyL":case"ArrowRight":{if(!Rt)break;if(ne.ctrlKey||ne.altKey){let ot=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(ot),ot&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ot.text}),it()}else{let ot=ne.shiftKey?ke(!0):R.controls.seekStepKeyboard/1e3,ri=Math.min(d()+ot,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(ri,Tn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ot.toString()}),it())}break}case"ArrowUp":{if(Us({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:de,isAds:e.isAds})){let ot=f(),ri=R.controls.volumeStepKeyboard,Zt=ot<=1;if(Tu(I,ot,ri),Zt){let yi=Math.round(qf(ot,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yi}})}}it();break}case"ArrowDown":{if(Us({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:de,isAds:e.isAds})){let ot=f(),ri=R.controls.volumeStepKeyboard,Zt=ot>=0;if(Eu(I,ot,ri),Zt){let yi=Math.round(Qf(ot,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yi}})}}it();break}case"Comma":{if(ne.shiftKey){I.actions.internal.decrementPlaybackRate();let ot=v().find(ri=>ri.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:ot==null?void 0:ot.displayValue}),it()}else{if(tt||n()!==zs.PlaybackState.PAUSED)break;let ot=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ot,Tn.SeekAction.DOUBLE_TAP),it())}break}case"Period":{if(ne.shiftKey){I.actions.internal.incrementPlaybackRate();let ot=v().find(ri=>ri.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:ot==null?void 0:ot.displayValue}),it()}else{if(tt||n()!==zs.PlaybackState.PAUSED)break;let ot=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ot,Tn.SeekAction.DOUBLE_TAP),it())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(x()&&w()&&fe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let ot="PLAY";n()===zs.PlaybackState.PAUSED?ot="PAUSE":y()&&(ot="REPLAY"),e.showHotKeyHelpers({type:ot})}it();break;case"KeyM":{Us({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:de,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),it();break}case"KeyF":e.toggleFullscreen(),it();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:($i=T())==null?void 0:$i.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),it();break;case"KeyI":I.actions.internal.togglePictureInPicture(),it();break;case"Digit1":case"Numpad1":if(ne.shiftKey){let ot=O1(E());se.set(ot),re.set(_e),Pe.set(!0),Re.set(!0),it();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,Tn.SeekAction.DOUBLE_TAP),it();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,Tn.SeekAction.DOUBLE_TAP),it();break;case"Slash":{ne.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),it());break}case"KeyN":ne.shiftKey&&V()&&(I.actions.internal.nextVideoClick(),it());break;case"KeyP":ne.shiftKey&&k()&&(I.actions.internal.prevVideoClick(),it());break;case"ShiftLeft":case"ShiftRight":it();break;case"Tab":case"Escape":case"Enter":break;default:(0,F1.checkNever)(Ne);break}return Qt},dt=ne=>{let Wt=ne.code;if(ne.ctrlKey||ne.altKey||ne.metaKey)return;let _e=n()===zs.PlaybackState.PLAYING||n()===zs.PlaybackState.PAUSED,Se=e.isAds&&(s()==="paused"||s()==="playing");if(_e||Se)switch(Wt){case"ShiftLeft":case"ShiftRight":lt=0;break}},gt=q("aria_label_video_player"),ht=()=>{var ne;return(ne=r(Me))==null?void 0:ne.focus()},Et=ne=>ne.type==="keydown"?We(ne,!0):(ne.type==="keyup"&&dt(ne),!1);var je=D$();je.__keyup=dt,je.__keydown=[B$,We];var zt=_(je);xe(zt,()=>{var ne;return(ne=e.children)!=null?ne:ce}),h(je),nt(je,ne=>O(Me,ne),()=>r(Me)),B(()=>Ue(je,"aria-label",gt)),$(t,je);var ti=z({focus:ht,handleExternalKeyboardEvent:Et});return o(),ti}ct(["keyup","keydown"]);var F$=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),U$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
140
+ Audio: ${(Re=r(a).audioCodec||"")!=null?Re:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),b(Se,ve)};L(pe,Se=>{(r(a).videoCodec||r(a).audioCodec)&&Se(Pe)})}var Le=P(pe,2);{var le=Se=>{var ve=$$(),ce=P(_(ve),2),Ve=_(ce,!0);h(ce),h(ve),B(()=>be(Ve,r(a).viewport)),b(Se,ve)};L(Le,Se=>{r(a).viewport&&Se(le)})}var He=P(Le,2);{var se=Se=>{var ve=y$(),ce=P(_(ve),2),Ve=_(ce,!0);h(ce),h(ve),B(()=>be(Ve,r(a).videoSize)),b(Se,ve)};L(He,Se=>{r(a).videoSize&&Se(se)})}var R=P(He,2);{var $e=Se=>{var ve=x$(),ce=P(_(ve),2),Ve=_(ce,!0);h(ce),h(ve),B(()=>be(Ve,r(a).cdn)),b(Se,ve)};L(R,Se=>{r(a).cdn&&Se($e)})}var Be=P(R,2);{var G=Se=>{var ve=w$(),ce=P(_(ve),2),Ve=_(ce);h(ce),h(ve),B(()=>{var Ue;return be(Ve,`${(Ue=r(a).volume)!=null?Ue:""} %`)}),b(Se,ve)};L(Be,Se=>{r(a).volume&&Se(G)})}var ee=P(Be,2);{var Oe=Se=>{var ve=S$(),ce=P(_(ve),2),Ve=_(ce);h(ce),h(ve),B(Ue=>be(Ve,`${Ue!=null?Ue:""} s`),[()=>r(a).position.toFixed(2)]),b(Se,ve)};L(ee,Se=>{r(a).position&&Se(Oe)})}var it=P(ee,2);{var he=Se=>{var ve=C$(),ce=P(_(ve),2),Ve=_(ce);h(ce),h(ve),B(Ue=>be(Ve,`${Ue!=null?Ue:""} s`),[()=>r(a).buffer.toFixed(2)]),b(Se,ve)};L(it,Se=>{r(a).buffer&&Se(he)})}var te=P(it,2);{var we=Se=>{var ve=T$(),ce=P(_(ve),2),Ve=_(ce);h(ce),h(ve),B(Ue=>be(Ve,`${Ue!=null?Ue:""} s`),[()=>r(a).liveLatency.toFixed(2)]),b(Se,ve)};L(te,Se=>{r(a).liveLatency&&Se(we)})}var ke=P(te,2);{var je=Se=>{var ve=E$(),ce=P(_(ve),2),Ve=_(ce,!0);h(ce),h(ve),B(Ue=>be(Ve,Ue),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ue})=>Ue).map(({value:Ue,title:Re})=>`${Re} ${((Ue!=null?Ue:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Se,ve)};L(ke,Se=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&Se(je)})}var ot=P(ke,2),bt=P(_(ot),2),mt=_(bt);h(bt),h(ot);var Et=P(ot,2);{var Ze=Se=>{var ve=I$(),ce=P(_(ve),2);Pd(ce,{get values(){return r(C)}});var Ve=P(ce,2),Ue=_(Ve);h(Ve),h(ve),B(Re=>be(Ue,`${Re!=null?Re:""} Kbps`),[()=>r(a).speed.toFixed(2)]),b(Se,ve)};L(Et,Se=>{r(a).speed&&Se(Ze)})}var Ut=P(Et,2);{var Xt=Se=>{var ve=k$(),ce=P(_(ve),2);Pd(ce,{get values(){return r(E)}});var Ve=P(ce,2),Ue=_(Ve);h(Ve),h(ve),B(Re=>be(Ue,`${Re!=null?Re:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),b(Se,ve)};L(Ut,Se=>{r(a).bitrate&&Se(Xt)})}var Gt=P(Ut,2),qt=P(_(Gt),2);Pd(qt,{get values(){return r(T)}});var re=P(qt,2),zt=_(re,!0);h(re),h(Gt),h(J),h(k),B(Se=>{var ve,ce;I=ne(k,1,"container svelte-4deykz",null,I,Se),ze(k,"aria-label",V),be(Q,r(a).version),be(mt,`${(ve=r(m))!=null?ve:""} / ${(ce=r(f))!=null?ce:""} frames`),be(zt,r(p))},[()=>({"container-mobile":n()})]),b(t,k),z(),o()}ct(["click"]);var U1=require("@vkontakte/videoplayer-shared/es2015"),M$=(t,e)=>{t.stopPropagation(),e()()},L$=A('<div class="close svelte-1ome55p"></div>'),V$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function Sa(t,e){U(e,!0),K(t,V$);let i=v(e,"onClick",3,U1.noop);var o=L$();o.__click=[M$,i],b(t,o),z()}ct(["click"]);var z1=require("@vkontakte/videoplayer-shared/es2015"),R$=A('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),N$={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Md(t,e){U(e,!0),K(t,N$);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,z1.noop),n=5e3,s=Z(void 0),l,d,a=0,u;qe(()=>{i()&&Ct(()=>{d=Date.now(),a=requestAnimationFrame(m)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},m=()=>{f(),i()&&(u=(Date.now()-d)/n,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(m)):o()())};Vt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),an(()=>{f()});var p=R$(),w=_(p);rt(w,x=>O(s,x),()=>r(s)),Ce(2),h(p),b(t,p),z()}var O$=(t,e,i)=>{e(!1),i()},B$=A('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),D$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function qf(t,e){U(e,!0),K(t,D$);let[i,o]=Fe(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Ie(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,w=l.actions.internal.nextVideoAnnouncementCancel,x=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),w()};Vt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var T=We(),C=fe(T);{var E=V=>{var k=B$(),I=P(fe(k),2),N=_(I),J=_(N),H=_(J,!0);h(J);var F=P(J,2);Sa(F,{onClick:y}),h(N);var Q=P(N,2);Q.__click=[O$,u,m];var ie=_(Q),Y=_(ie),ge=_(Y);let X;var ue=P(ge,2);{var me=le=>{let He=g(()=>s()&&n());Md(le,{get isRunning(){return r(He)},onTimerEnded:x})};L(ue,le=>{n()&&le(me)})}h(Y),h(ie);var pe=P(ie,2),Pe=_(pe),Le=_(Pe,!0);h(Pe),h(pe),h(Q),h(I),B((le,He)=>{be(H,le),lt(Y,`background-image: url('${e.thumb}')`),X=ne(ge,1,"thumb-overlay svelte-jfbaax",null,X,He),be(Le,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),b(V,k)};L(C,V=>{e.isHide||V(E)})}b(t,T),z(),o()}ct(["click"]);var zs=require("@vkontakte/videoplayer-core/es2015"),W1=require("@vkontakte/videoplayer-shared/es2015"),xn=require("@vkontakte/videoplayer-statistics/es2015");var Qf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Gf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Eu=(t,e,i)=>{let o=Qf(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.internal.setMuted(!1)},Iu=(t,e,i)=>{let o=Gf(e,i);e>0&&t.actions.internal.setVolume(o)};var Us=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var F$=(t,e)=>{e(t)},U$=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),z$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function jf(t,e){var Gt,qt;U(e,!0),K(t,z$);let[i,o]=Fe(),n=()=>S(H,"$playbackState$",i),s=()=>S(F,"$adPlaybackState",i),l=()=>S(ge,"$disabledControls$",i),d=()=>S(Q,"$positionExact$",i),a=()=>S(ie,"$duration$",i),u=()=>S(G,"$isAudioAvailable$",i),f=()=>S(Y,"$volume$",i),m=()=>S(pe,"$availablePlaybackRates$",i),p=()=>S(me,"$currentPlaybackRate$",i),w=()=>S(Oe,"$isInteractiveTime$",i),x=()=>S(it,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(se,"$isEnded$",i),T=()=>S(X,"$muted$",i),C=()=>S(ue,"$currentSubtitle$",i),E=()=>S(R,"$overlayContainer$",i),V=v(e,"nextButtonActive",3,!1),k=v(e,"prevButtonActive",3,!1),I=Ie(),N=Pt(),J=I.getLogger().createComponentLog("KeyboardControls component"),H=I.state.playbackState$,F=I.ads.playbackState,Q=I.state.positionExact$,ie=I.state.duration$,Y=I.state.volume$,ge=I.ui.controls.disabledControls$,X=I.state.muted$,ue=I.state.currentSubtitle$,me=I.state.currentPlaybackRate$,pe=I.state.availablePlaybackRates$,Pe=I.ui.contextMenu.openedByHotKey$,Le=I.ui.contextMenu.lastActiveElem$,le=I.ui.contextMenu.visible$,He=I.ui.contextMenu.position$,se=I.state.isEnded$,R=I.ui.overlayContainer$,$e=(Gt=I.callbacks)==null?void 0:Gt.onAudioDoesNotExistHint,Be=(qt=I.callbacks)==null?void 0:qt.onAudioDisabledHint,G=I.state.isAudioAvailable$,ee=I.state.isAudioDisabled,Oe=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:it}=So(),he=0,te=!0,we=Z(void 0),ke=re=>(re!==te&&(te=re,he=0),he+=1,(N.controls.seekStepKeyboard+N.controls.seekStepKeyboard*he)/1e3),je=(re,zt=!1)=>{var _i,bi;let Se=re.target,ve=(_i=Se==null?void 0:Se.getAttribute("role"))==null?void 0:_i.includes("menuitem"),ce=Se.classList.contains("btn"),Ve=re.code;if(ce&&Ve==="Space")return!1;let Ue=qh.has(Ve);if(ve&&Ue)return!1;let Re=!Kh.has(Ve);if(re.ctrlKey&&Re||re.altKey&&Re||re.metaKey)return!1;let Qe=ve&&Ve==="Escape";Qh.has(Ve)||Qe||e.hideContextMenu();let De=n()===zs.PlaybackState.PLAYING||n()===zs.PlaybackState.PAUSED,Je=e.isAds&&(s()==="paused"||s()==="playing"),At=!Je&&!l().has("TIMELINE");if(!(De||Je))return!1;J({message:`key down, code: ${Ve}, isExternal = ${zt}`});let Jt=!1,nt=()=>{Jt=!0,zt||re.preventDefault()};switch(Ve){case"KeyJ":case"ArrowLeft":{if(!At)break;if(re.ctrlKey||re.altKey){let dt=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:dt.text}),nt()}else{let dt=re.shiftKey?ke(!1):N.controls.seekStepKeyboard/1e3,jt=Math.max(d()-dt,0);d()>0&&(I.actions.internal.seekTime(jt,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:dt.toString()}),nt())}break}case"KeyL":case"ArrowRight":{if(!At)break;if(re.ctrlKey||re.altKey){let dt=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:dt.text}),nt()}else{let dt=re.shiftKey?ke(!0):N.controls.seekStepKeyboard/1e3,jt=Math.min(d()+dt,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(jt,xn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:dt.toString()}),nt())}break}case"ArrowUp":{if(Us({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:u(),audioIsNotExistHintCallback:$e,isAds:e.isAds})){let dt=f(),jt=N.controls.volumeStepKeyboard,so=dt<=1;if(Eu(I,dt,jt),so){let Ci=Math.round(Qf(dt,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ci}})}}nt();break}case"ArrowDown":{if(Us({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:u(),audioIsNotExistHintCallback:$e,isAds:e.isAds})){let dt=f(),jt=N.controls.volumeStepKeyboard,so=dt>=0;if(Iu(I,dt,jt),so){let Ci=Math.round(Gf(dt,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ci}})}}nt();break}case"Comma":{if(re.shiftKey){I.actions.internal.decrementPlaybackRate();let dt=m().find(jt=>jt.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:dt==null?void 0:dt.displayValue}),nt()}else{if(Je||n()!==zs.PlaybackState.PAUSED)break;let dt=Math.max(d()-N.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(dt,xn.SeekAction.DOUBLE_TAP),nt())}break}case"Period":{if(re.shiftKey){I.actions.internal.incrementPlaybackRate();let dt=m().find(jt=>jt.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:dt==null?void 0:dt.displayValue}),nt()}else{if(Je||n()!==zs.PlaybackState.PAUSED)break;let dt=Math.min(d()+N.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(dt,xn.SeekAction.DOUBLE_TAP),nt())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(w()&&x()&&it.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let dt="PLAY";n()===zs.PlaybackState.PAUSED?dt="PAUSE":y()&&(dt="REPLAY"),e.showHotKeyHelpers({type:dt})}nt();break;case"KeyM":{Us({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:u(),audioIsNotExistHintCallback:$e,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),nt();break}case"KeyF":e.toggleFullscreen(),nt();break;case"KeyC":I.actions.internal.toggleSubtitle(),C().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(bi=C())==null?void 0:bi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),nt();break;case"KeyI":I.actions.internal.togglePictureInPicture(),nt();break;case"Digit1":case"Numpad1":if(re.shiftKey){let dt=H1(E());He.set(dt),Le.set(Se),Pe.set(!0),le.set(!0),nt();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,xn.SeekAction.DOUBLE_TAP),nt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,xn.SeekAction.DOUBLE_TAP),nt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,xn.SeekAction.DOUBLE_TAP),nt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,xn.SeekAction.DOUBLE_TAP),nt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,xn.SeekAction.DOUBLE_TAP),nt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,xn.SeekAction.DOUBLE_TAP),nt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,xn.SeekAction.DOUBLE_TAP),nt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,xn.SeekAction.DOUBLE_TAP),nt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,xn.SeekAction.DOUBLE_TAP),nt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,xn.SeekAction.DOUBLE_TAP),nt();break;case"Slash":{re.shiftKey&&N.features.hotKeyMapModal&&(e.showKeyMap(),nt());break}case"KeyN":re.shiftKey&&V()&&(I.actions.internal.nextVideoClick(),nt());break;case"KeyP":re.shiftKey&&k()&&(I.actions.internal.prevVideoClick(),nt());break;case"ShiftLeft":case"ShiftRight":nt();break;case"Tab":case"Escape":case"Enter":break;default:(0,W1.checkNever)(Ve);break}return Jt},ot=re=>{let zt=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;let Se=n()===zs.PlaybackState.PLAYING||n()===zs.PlaybackState.PAUSED,ve=e.isAds&&(s()==="paused"||s()==="playing");if(Se||ve)switch(zt){case"ShiftLeft":case"ShiftRight":he=0;break}},bt=q("aria_label_video_player"),mt=()=>{var re;return(re=r(we))==null?void 0:re.focus()},Et=re=>re.type==="keydown"?je(re,!0):(re.type==="keyup"&&ot(re),!1);var Ze=U$();Ze.__keyup=ot,Ze.__keydown=[F$,je];var Ut=_(Ze);ye(Ut,()=>{var re;return(re=e.children)!=null?re:de}),h(Ze),rt(Ze,re=>O(we,re),()=>r(we)),B(()=>ze(Ze,"aria-label",bt)),b(t,Ze);var Xt=z({focus:mt,handleExternalKeyboardEvent:Et});return o(),Xt}ct(["keyup","keydown"]);var W$=A('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),K$={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
141
 
142
142
  @keyframes svelte-1dbnjb1-dot_animation {
143
143
  0% {
@@ -150,29 +150,29 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
150
150
  opacity: 0.2;
151
151
  }
152
152
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Ta(t,e){Q(t,U$);let i=m(e,"style",3,"");var o=F$();B(()=>at(o,i())),$(t,o)}var z$=Ee('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function jf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=z$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var Ea=require("@vkontakte/videoplayer-shared/es2015"),W$=t=>{t.stopPropagation()},K$=M("<button><!></button>"),q$={hash:"svelte-ut3f27",code:`.btn.svelte-ut3f27 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Ca(t,e){K(t,K$);let i=v(e,"style",3,"");var o=W$();B(()=>lt(o,i())),b(t,o)}var q$=Te('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Yf(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=q$();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}var Ta=require("@vkontakte/videoplayer-shared/es2015"),Q$=t=>{t.stopPropagation()},G$=A("<button><!></button>"),j$={hash:"svelte-ut3f27",code:`.btn.svelte-ut3f27 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
154
154
 
155
155
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-ut3f27 {width:100%;}.btn--live.svelte-ut3f27 {padding:10px 4px;}.btn-jc-l.svelte-ut3f27 {justify-content:left;}
156
156
 
157
157
  /* mobile */
158
158
  /* container mobile */.btn-m.svelte-ut3f27 {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-ut3f27 {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-ut3f27 svg {transform:scale(2);}.btn-m--prev.svelte-ut3f27,
159
159
  .btn-m--next.svelte-ut3f27 {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-ut3f27 {right:calc(100% + 35px);}.btn-m--next.svelte-ut3f27 {left:calc(100% + 35px);}.btn.svelte-ut3f27:disabled {cursor:default;
160
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-ut3f27:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-ut3f27:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-ut3f27 {padding-right:0;}.pl-0.svelte-ut3f27 {padding-left:0;}`};function Dt(t,e){U(e,!0),Q(t,q$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),p=m(e,"click",3,Ea.noop),x=m(e,"focus",3,Ea.noop),w=m(e,"blur",3,Ea.noop),y=g(()=>p()===Ea.noop?null:k=>{k.stopPropagation(),p()(k)}),S=g(()=>x()===Ea.noop?null:k=>{k.preventDefault(),x()()}),T=g(()=>w()===Ea.noop?null:k=>{k.preventDefault(),w()()});var E=K$();E.__pointerdown=[W$],E.__click=function(...k){var I;(I=r(y))==null||I.apply(this,k)};var V=_(E);xe(V,()=>{var k;return(k=e.children)!=null?k:ce}),h(E),nt(E,k=>a(k),()=>a()),B(()=>{var k,I,R,Z,H,F,K,ee;te(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-ut3f27"),at(E,o()||null),E.disabled=(I=n())!=null?I:null,Ue(E,"aria-hidden",(R=l())!=null?R:null),Ue(E,"aria-label",(Z=d())!=null?Z:null),Ue(E,"aria-keyshortcuts",(H=u())!=null?H:null),Ue(E,"aria-expanded",(F=f())!=null?F:null),Ue(E,"data-testid",(K=s())!=null?K:null),Ue(E,"tabindex",v()),Ue(E,"role",e.role),Ue(E,"aria-checked",(ee=e.areaChecked)!=null?ee:null)}),Tt("focus",E,function(...k){var I;(I=r(S))==null||I.apply(this,k)}),Tt("blur",E,function(...k){var I;(I=r(T))==null||I.apply(this,k)}),$(t,E),z()}ct(["pointerdown","click"]);var Q$=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),G$=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),j$={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function Yf(t,e){U(e,!0),Q(t,j$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var s=G$(),l=_(s),d=_(l);{var a=p=>{var x=Q$(),w=_(x),y=_(w,!0);h(w);var S=P(w,2);{var T=E=>{Dt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(V,k)=>{jf(V,{})},$$slots:{default:!0}})};L(S,E=>{o()&&E(T)})}h(x),B(()=>$e(y,e.title)),$(p,x)};L(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);xe(v,()=>{var p;return(p=e.children)!=null?p:ce}),h(f),h(u),h(l),h(s),$(t,s),z()}var Y$=new Set(["BR"]),U1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;Y$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var Z$=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),X$=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),J$=M('<div class="hot-key-map svelte-quklnq"></div>'),e2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
160
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-ut3f27:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-ut3f27:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-ut3f27 {padding-right:0;}.pl-0.svelte-ut3f27 {padding-left:0;}`};function Bt(t,e){U(e,!0),K(t,j$);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),s=v(e,"testId",3,void 0),l=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),a=v(e,"ref",15,void 0),u=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),m=v(e,"tabIndex",3,0),p=v(e,"click",3,Ta.noop),w=v(e,"focus",3,Ta.noop),x=v(e,"blur",3,Ta.noop),y=g(()=>p()===Ta.noop?null:k=>{k.stopPropagation(),p()(k)}),T=g(()=>w()===Ta.noop?null:k=>{k.preventDefault(),w()()}),C=g(()=>x()===Ta.noop?null:k=>{k.preventDefault(),x()()});var E=G$();E.__pointerdown=[Q$],E.__click=function(...k){var I;(I=r(y))==null||I.apply(this,k)};var V=_(E);ye(V,()=>{var k;return(k=e.children)!=null?k:de}),h(E),rt(E,k=>a(k),()=>a()),B(()=>{var k,I,N,J,H,F,Q,ie;ne(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-ut3f27"),lt(E,o()||null),E.disabled=(I=n())!=null?I:null,ze(E,"aria-hidden",(N=l())!=null?N:null),ze(E,"aria-label",(J=d())!=null?J:null),ze(E,"aria-keyshortcuts",(H=u())!=null?H:null),ze(E,"aria-expanded",(F=f())!=null?F:null),ze(E,"data-testid",(Q=s())!=null?Q:null),ze(E,"tabindex",m()),ze(E,"role",e.role),ze(E,"aria-checked",(ie=e.areaChecked)!=null?ie:null)}),Tt("focus",E,function(...k){var I;(I=r(T))==null||I.apply(this,k)}),Tt("blur",E,function(...k){var I;(I=r(C))==null||I.apply(this,k)}),b(t,E),z()}ct(["pointerdown","click"]);var Y$=A('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),Z$=A('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),X$={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function Zf(t,e){U(e,!0),K(t,X$);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var s=Z$(),l=_(s),d=_(l);{var a=p=>{var w=Y$(),x=_(w),y=_(x,!0);h(x);var T=P(x,2);{var C=E=>{Bt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(V,k)=>{Yf(V,{})},$$slots:{default:!0}})};L(T,E=>{o()&&E(C)})}h(w),B(()=>be(y,e.title)),b(p,w)};L(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),m=_(f);ye(m,()=>{var p;return(p=e.children)!=null?p:de}),h(f),h(u),h(l),h(s),b(t,s),z()}var J$=new Set(["BR"]),K1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;J$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var e2=A('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),t2=A('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),i2=A('<div class="hot-key-map svelte-quklnq"></div>'),o2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
161
161
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
162
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Zf(t,e){U(e,!1),Q(t,e2);let[i,o]=Fe(),n=()=>C(l,"$data",i),s=Ie(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};zr(),Yf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=J$();Ii(v,5,()=>n().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>r(x).title,y=()=>r(x).items;var S=X$(),T=_(S),E=_(T,!0);h(T);var V=P(T,2);Ii(V,5,y,({description:k,value:I})=>I,(k,I)=>{let R=()=>r(I).description,Z=()=>r(I).value;var H=Z$(),F=_(H),K=_(F);pd(K,()=>U1(R())),h(F);var ee=P(F,2),j=_(ee,!0);h(ee),h(H),B(()=>$e(j,Z())),$(k,H)}),h(V),h(S),B(()=>$e(E,w())),$(p,S)}),h(v),$(u,v)},$$slots:{default:!0}}),z(),o()}var qm=require("@vkontakte/videoplayer-shared/es2015");var Va=require("@vkontakte/videoplayer-core/es2015");var PR=require("@vkontakte/videoplayer-shared/es2015");var t2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),i2={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function Xf(t,e){Q(t,i2);var i=t2(),o=_(i);xe(o,()=>{var n;return(n=e.children)!=null?n:ce}),h(i),$(t,i)}var Tl=require("@vkontakte/videoplayer-shared/es2015");var o2=Ee('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function Jf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=o2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var n2=Ee('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function em(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=n2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var r2=Ee('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function tm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var s2=Ee('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Vd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=s2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var a2=Ee('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Rd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=a2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var Iu=t=>{switch(t){case Tl.VideoQuality.Q_720P:return tm;case Tl.VideoQuality.Q_1080P:return Vd;case Tl.VideoQuality.Q_1440P:return Rd;case Tl.VideoQuality.Q_2160P:return Jf;case Tl.VideoQuality.Q_4320P:return em}};var l2=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function im(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=l2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var d2=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function om(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=d2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var c2=M('<div aria-hidden="true"><!> <!></div>'),u2={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Nd(t,e){U(e,!0),Q(t,u2);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>Iu(o())),s=g(()=>!!r(n)&&[Vd,Rd].includes(r(n)));var l=Ke(),d=he(l);{var a=f=>{im(f,{})},u=f=>{var v=c2();let p;var x=_(v);{var w=T=>{Xf(T,{children:(E,V)=>{var k=Ke(),I=he(k);ki(I,()=>r(n),(R,Z)=>{Z(R,{})}),$(E,k)},$$slots:{default:!0}})};L(x,T=>{r(n)&&T(w)})}var y=P(x,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");om(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),h(v),B(T=>p=te(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(s)})]),$(f,v)};L(d,f=>{i()?f(a):f(u,!1)})}$(t,l),z()}var p2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),f2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function El(t,e){U(e,!0),Q(t,f2);let[i,o]=Fe(),n=()=>C(u,"$settingsMenuVisible",i),s=()=>C(p,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ie(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,x=d.ui.t,w=Y(void 0);qe(()=>{r(w)&&Ct(()=>{e.ref$.set(r(w))})});let y=x("aria_label_settings");function S(E){return St(this,null,function*(){let V=Fs(E);n()?v():f(V,Lo)})}let T=g(()=>n()?"opened":"");Dt(t,{get className(){return r(T)},testId:"btn-settings",click:S,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){O(w,E,!0)},children:(E,V)=>{var k=p2(),I=_(k);Nd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),$(E,k)},$$slots:{default:!0}}),z(),o()}var m2=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function nm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=m2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var v2=Ee('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Od(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=v2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function rm(t,e){U(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Dt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return ls.KeyC},role:"button",children:(l,d)=>{var a=Ke(),u=he(a);{var f=p=>{nm(p,{})},v=p=>{Od(p,{})};L(u,p=>{i()?p(f):p(v,!1)})}$(l,a)},$$slots:{default:!0}}),z()}var g2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),h2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),_2={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Bd(t,e){U(e,!0),Q(t,_2);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),n=m(e,"showDuration",3,!0),s=m(e,"ref",15),l=At(),d=ae(!1),a=g(()=>Cn(e.duration)),u=g(()=>Cn(e.position));var f=h2();let v;var p=_(f),x=_(p,!0);h(p);var w=P(p,2);{var y=S=>{var T=g2(),E=_(T,!0);h(T),B(()=>$e(E,r(a))),$(S,T)};L(w,S=>{n()&&S(y)})}h(f),bs(f,()=>$l(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),nt(f,S=>s(S),()=>s()),B(S=>{v=te(f,1,"time svelte-sz9er7",null,v,S),$e(x,r(u))},[()=>({mobile:i()})]),$(t,f),z()}var Hd=require("@vkontakte/videoplayer-shared/es2015");var b2=Ee('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),$2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
162
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Xf(t,e){U(e,!1),K(t,o2);let[i,o]=Fe(),n=()=>S(l,"$data",i),s=Ie(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Kr(),Zf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var m=i2();Mi(m,5,()=>n().groups,({title:p,items:w})=>p,(p,w)=>{let x=()=>r(w).title,y=()=>r(w).items;var T=t2(),C=_(T),E=_(C,!0);h(C);var V=P(C,2);Mi(V,5,y,({description:k,value:I})=>I,(k,I)=>{let N=()=>r(I).description,J=()=>r(I).value;var H=e2(),F=_(H),Q=_(F);ud(Q,()=>K1(N())),h(F);var ie=P(F,2),Y=_(ie,!0);h(ie),h(H),B(()=>be(Y,J())),b(k,H)}),h(V),h(T),B(()=>be(E,x())),b(p,T)}),h(m),b(u,m)},$$slots:{default:!0}}),z(),o()}var Qm=require("@vkontakte/videoplayer-shared/es2015");var La=require("@vkontakte/videoplayer-core/es2015");var OR=require("@vkontakte/videoplayer-shared/es2015");var n2=A('<div class="pillow svelte-1oe0j8n"><!></div>'),r2={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function Jf(t,e){K(t,r2);var i=n2(),o=_(i);ye(o,()=>{var n;return(n=e.children)!=null?n:de}),h(i),b(t,i)}var Cl=require("@vkontakte/videoplayer-shared/es2015");var s2=Te('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function em(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=s2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}var a2=Te('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function tm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=a2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}var l2=Te('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function im(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=l2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var d2=Te('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Ld(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=d2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var c2=Te('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Vd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=c2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}var ku=t=>{switch(t){case Cl.VideoQuality.Q_720P:return im;case Cl.VideoQuality.Q_1080P:return Ld;case Cl.VideoQuality.Q_1440P:return Vd;case Cl.VideoQuality.Q_2160P:return em;case Cl.VideoQuality.Q_4320P:return tm}};var u2=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function om(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=u2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var p2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function nm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=p2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}var f2=A('<div aria-hidden="true"><!> <!></div>'),m2={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Rd(t,e){U(e,!0),K(t,m2);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=g(()=>ku(o())),s=g(()=>!!r(n)&&[Ld,Vd].includes(r(n)));var l=We(),d=fe(l);{var a=f=>{om(f,{})},u=f=>{var m=f2();let p;var w=_(m);{var x=C=>{Jf(C,{children:(E,V)=>{var k=We(),I=fe(k);Li(I,()=>r(n),(N,J)=>{J(N,{})}),b(E,k)},$$slots:{default:!0}})};L(w,C=>{r(n)&&C(x)})}var y=P(w,2);let T=g(()=>r(n)?"settings-icon--labeled":"settings-icon");nm(y,{get"data-testid"(){return r(T)},fill:"var(--btn-color, #fff)"}),h(m),B(C=>p=ne(m,1,"icon svelte-8t5w85",null,p,C),[()=>({triple:r(s)})]),b(f,m)};L(d,f=>{i()?f(a):f(u,!1)})}b(t,l),z()}var v2=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),g2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Tl(t,e){U(e,!0),K(t,g2);let[i,o]=Fe(),n=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=Ie(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,w=d.ui.t,x=Z(void 0);qe(()=>{r(x)&&Ct(()=>{e.ref$.set(r(x))})});let y=w("aria_label_settings");function T(E){return St(this,null,function*(){let V=Fs(E);n()?m():f(V,No)})}let C=g(()=>n()?"opened":"");Bt(t,{get className(){return r(C)},testId:"btn-settings",click:T,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return r(x)},set ref(E){O(x,E,!0)},children:(E,V)=>{var k=v2(),I=_(k);Rd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),b(E,k)},$$slots:{default:!0}}),z(),o()}var h2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function rm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=h2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var _2=Te('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Nd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=_2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}function sm(t,e){U(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Bt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return as.KeyC},role:"button",children:(l,d)=>{var a=We(),u=fe(a);{var f=p=>{rm(p,{})},m=p=>{Nd(p,{})};L(u,p=>{i()?p(f):p(m,!1)})}b(l,a)},$$slots:{default:!0}}),z()}var b2=A('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),$2=A('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),y2={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Od(t,e){U(e,!0),K(t,y2);let i=v(e,"isMobile",3,!1),o=v(e,"isHidden",3,!1),n=v(e,"showDuration",3,!0),s=v(e,"ref",15),l=Pt(),d=ae(!1),a=g(()=>yn(e.duration)),u=g(()=>yn(e.position));var f=$2();let m;var p=_(f),w=_(p,!0);h(p);var x=P(p,2);{var y=T=>{var C=b2(),E=_(C,!0);h(C),B(()=>be(E,r(a))),b(T,C)};L(x,T=>{n()&&T(y)})}h(f),bs(f,()=>bl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),rt(f,T=>s(T),()=>s()),B(T=>{m=ne(f,1,"time svelte-sz9er7",null,m,T),be(w,r(u))},[()=>({mobile:i()})]),b(t,f),z()}var Dd=require("@vkontakte/videoplayer-shared/es2015");var x2=Te('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),w2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
163
163
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
164
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ws(t,e){Q(t,$2);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=b2();B(()=>{var d;Ue(l,"data-value",r(s)),Ue(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}var No=require("@vkontakte/videoplayer-shared/es2015");var ku=require("@vkontakte/videoplayer-shared/es2015");var z1=require("@vkontakte/videoplayer-shared/es2015");var y2=M('<div class="overlay"><!></div>');function sm(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(l,"$overlayContainer$",i),l=Ie().ui.overlayContainer$,d=Y(void 0),a=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};qe(()=>{u(n())}),Vt(()=>(u(n()),()=>a(n())));var f=y2(),v=_(f);xe(v,()=>{var p;return(p=e.children)!=null?p:ce}),h(f),nt(f,p=>O(d,p),()=>r(d)),$(t,f),z(),o()}var x2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),w2=M("<div><!></div> <!>",1),S2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Ia(t,e){U(e,!0),Q(t,S2);let[i,o]=Fe(),n=()=>C(K,"$overlayContainer$",i),s=()=>C(F,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),x=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,z1.noop),y=5,S=Y(void 0),T=Y(void 0),E,V=Y(0),k=Y(0),I=Y(0),R=Y(0),Z=At(),H=Ie(),F=H.ui.playerSize,K=H.ui.overlayContainer$;qe(()=>{Ct(()=>{w()(a())})});let ee=H.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(S))return;O(k,y);let X=n().getBoundingClientRect(),Me=r(S).getBoundingClientRect(),ke=Me.width,We=r(T).clientWidth,dt=s().width,gt=(ke-We)/2,ht=Me.left+u()-X.left,Et=ht+gt,je=Me.top+f()-X.top,zt=We/2-y,ti=Et<8,Yt=Et+We>dt-8;ti&&(Et=8,zt=ht+Me.width/2-2.5*y),Yt&&(Et=dt-8-We,zt=Me.left-X.left+Me.width/2-Et-y),O(I,Et,!0),O(R,je),O(V,zt,!0)},ue=()=>{!n()||!r(T)||!r(S)||O(k,-y)},oe=()=>{if(!n()||!r(T)||!r(S))return;O(V,y);let X=n().getBoundingClientRect(),Me=r(S).getBoundingClientRect(),ke=Me.height,We=r(T).clientHeight,dt=(ke-We)/2+We,gt=Me.left+u()-X.left-r(T).clientWidth,ht=2,Et=gt-y;Et<8&&(Et=8);let zt=Me.top+f()-X.top+dt,ti=ht-dt/2,Yt=ht-y;O(I,Et,!0),O(R,zt),O(k,ti),O(V,Yt)},pe=()=>{!n()||!r(T)||!r(S)||O(V,-y)},ye=()=>{switch(x()){case"top":j();break;case"bottom":ue();break;case"left":oe();break;default:pe()}},me=()=>{try{if(!n()||!r(S))return;ye(),a(!0)}catch(X){ee({message:String(X)})}},Pe=()=>{a(!1)},re=()=>{r(T)&&(E||(E=window.setTimeout(me,Z.controls.hideTimeoutTooltips)),a()&&me())},Re=()=>{Pe(),window.clearTimeout(E),E=void 0},se=(X,Me,ke)=>{let We="";switch(x()){case"top":We=`transform: translate(${X}px, ${Me}px);`;break;case"bottom":We=`transform: translate(${X}px, ${Me}px); top: auto; bottom: 100%;`;break;case"left":We=`transform: translate(${X}px, ${Me}px); left: 0; right: auto;`;break;default:We=`transform: translate(${X}px, ${Me}px);`}return We+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,We+=` opacity: ${ke?1:0}; visibility: ${ke?"visible":"hidden"}`,We},N=(X,Me)=>{let ke="";switch(x()){case"top":ke=`transform: translate(${X}px, ${Me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ke=`transform: translate(${X}px, ${Me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ke=`transform: translate(${X}px, ${Me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ke=`transform: translate(${X}px, ${Me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ke},De=g(()=>se(r(I),r(R),a())),de=g(()=>N(r(V),r(k)));Vt(ye),ln(()=>window.clearTimeout(E));var ge=w2(),ie=he(ge);let ve;ie.__mousemove=re,ie.__mousedown=Re,ie.__mouseup=function(...X){var Me;(Me=e.disableMouseupTooltipShow?void 0:re)==null||Me.apply(this,X)};var He=_(ie);xe(He,()=>{var X;return(X=e.children)!=null?X:ce}),h(ie),nt(ie,X=>O(S,X),()=>r(S));var fe=P(ie,2);{var lt=X=>{sm(X,{children:(Me,ke)=>{var We=x2(),dt=_(We),gt=_(dt,!0);h(dt);var ht=P(dt,2);h(We),nt(We,Et=>O(T,Et),()=>r(T)),B(()=>{at(We,r(De)),$e(gt,d()),at(ht,r(de))}),$(Me,We)},$$slots:{default:!0}})};L(fe,X=>{d()&&!l()&&X(lt)})}B(X=>ve=te(ie,1,"tooltip-wrapper svelte-hxlyne",null,ve,X),[()=>({"full-width":v()})]),Tt("mouseenter",ie,re),Tt("mouseleave",ie,Re),$(t,ge),z(),o()}ct(["mousemove","mousedown","mouseup"]);var W1=t=>{t.stopPropagation()},C2=M("<div><!></div>"),T2={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Ro(t,e){U(e,!0),Q(t,T2);let[i,o]=Fe(),n=()=>C(u,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Ie(),d=xo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),p=m(e,"disabled",3,!1),x=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),E=m(e,"tooltipActive",3,!1),V=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,ku.noop),Z=m(e,"initialTranslateXPx",3,0),H=m(e,"initialTranslateYPx",19,()=>-18),F=m(e,"mouseEnter",3,ku.noop),K=m(e,"mouseLeave",3,ku.noop),ee=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):k():T());var j=C2();j.__pointerdown=[W1],j.__click=[W1];var ue=_(j);{var oe=ye=>{Ia(ye,{get content(){return r(ee)},get translateX(){return Z()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get active(){return E()},get placement(){return V()},get onVisibilityChange(){return R()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(me,Pe)=>{var re=Ke(),Re=he(re);xe(Re,()=>{var se;return(se=e.children)!=null?se:ce}),$(me,re)},$$slots:{default:!0}})},pe=ye=>{var me=Ke(),Pe=he(me);xe(Pe,()=>{var re;return(re=e.children)!=null?re:ce}),$(ye,me)};L(ue,ye=>{x()&&r(ee)&&!s()?ye(oe):ye(pe,!1)})}h(j),nt(j,ye=>w(ye),()=>w()),B(()=>{var ye;te(j,1,`btn-container ${(ye=v())!=null?ye:""}`,"svelte-p9r045"),Ue(j,"aria-hidden",I()||null)}),Tt("mouseenter",j,function(...ye){var me;(me=F())==null||me.apply(this,ye)}),Tt("mouseleave",j,function(...ye){var me;(me=K())==null||me.apply(this,ye)}),ar(j,"clientWidth",y),$(t,j),z(),o()}ct(["pointerdown","click"]);var E2=Ee('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function Dd(t,e){"use strict";var i=E2(),o=_(i),n=P(o);h(i),B(()=>{Ue(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ue(o,"fill-opacity",e.completed?1:.24),Ue(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var I2=M("<div><!></div>"),k2={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function am(t,e){U(e,!0),Q(t,k2);let o=Ie().ui.t,n=Y(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ro(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=I2();let u;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);Dd(f,{get completed(){return r(v)}}),h(a),B(p=>{u=te(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),at(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),ar(a,"clientWidth",p=>O(n,p)),$(l,a)},$$slots:{default:!0}}),z()}var P2=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),A2=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),M2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
164
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ws(t,e){K(t,w2);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=x2();B(()=>{var d;ze(l,"data-value",r(s)),ze(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),b(t,l)}var Do=require("@vkontakte/videoplayer-shared/es2015");var Pu=require("@vkontakte/videoplayer-shared/es2015");var q1=require("@vkontakte/videoplayer-shared/es2015");var S2=A('<div class="overlay"><!></div>');function am(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(l,"$overlayContainer$",i),l=Ie().ui.overlayContainer$,d=Z(void 0),a=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};qe(()=>{u(n())}),Vt(()=>(u(n()),()=>a(n())));var f=S2(),m=_(f);ye(m,()=>{var p;return(p=e.children)!=null?p:de}),h(f),rt(f,p=>O(d,p),()=>r(d)),b(t,f),z(),o()}var C2=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),T2=A("<div><!></div> <!>",1),E2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Ea(t,e){U(e,!0),K(t,E2);let[i,o]=Fe(),n=()=>S(Q,"$overlayContainer$",i),s=()=>S(F,"$containerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"content",3,""),a=v(e,"active",15,!1),u=v(e,"translateX",3,0),f=v(e,"translateY",3,0),m=v(e,"isFullWidthWrapper",3,!1),p=v(e,"maxTooltipWidth",3,void 0),w=v(e,"placement",3,"top"),x=v(e,"onVisibilityChange",3,q1.noop),y=5,T=Z(void 0),C=Z(void 0),E,V=Z(0),k=Z(0),I=Z(0),N=Z(0),J=Pt(),H=Ie(),F=H.ui.playerSize,Q=H.ui.overlayContainer$;qe(()=>{Ct(()=>{x()(a())})});let ie=H.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n()||!r(C)||!r(T))return;O(k,y);let te=n().getBoundingClientRect(),we=r(T).getBoundingClientRect(),ke=we.width,je=r(C).clientWidth,ot=s().width,bt=(ke-je)/2,mt=we.left+u()-te.left,Et=mt+bt,Ze=we.top+f()-te.top,Ut=je/2-y,Xt=Et<8,Gt=Et+je>ot-8;Xt&&(Et=8,Ut=mt+we.width/2-2.5*y),Gt&&(Et=ot-8-je,Ut=we.left-te.left+we.width/2-Et-y),O(I,Et,!0),O(N,Ze),O(V,Ut,!0)},ge=()=>{!n()||!r(C)||!r(T)||O(k,-y)},X=()=>{if(!n()||!r(C)||!r(T))return;O(V,y);let te=n().getBoundingClientRect(),we=r(T).getBoundingClientRect(),ke=we.height,je=r(C).clientHeight,ot=(ke-je)/2+je,bt=we.left+u()-te.left-r(C).clientWidth,mt=2,Et=bt-y;Et<8&&(Et=8);let Ut=we.top+f()-te.top+ot,Xt=mt-ot/2,Gt=mt-y;O(I,Et,!0),O(N,Ut),O(k,Xt),O(V,Gt)},ue=()=>{!n()||!r(C)||!r(T)||O(V,-y)},me=()=>{switch(w()){case"top":Y();break;case"bottom":ge();break;case"left":X();break;default:ue()}},pe=()=>{try{if(!n()||!r(T))return;me(),a(!0)}catch(te){ie({message:String(te)})}},Pe=()=>{a(!1)},Le=()=>{r(C)&&(E||(E=window.setTimeout(pe,J.controls.hideTimeoutTooltips)),a()&&pe())},le=()=>{Pe(),window.clearTimeout(E),E=void 0},He=(te,we,ke)=>{let je="";switch(w()){case"top":je=`transform: translate(${te}px, ${we}px);`;break;case"bottom":je=`transform: translate(${te}px, ${we}px); top: auto; bottom: 100%;`;break;case"left":je=`transform: translate(${te}px, ${we}px); left: 0; right: auto;`;break;default:je=`transform: translate(${te}px, ${we}px);`}return je+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,je+=` opacity: ${ke?1:0}; visibility: ${ke?"visible":"hidden"}`,je},se=(te,we)=>{let ke="";switch(w()){case"top":ke=`transform: translate(${te}px, ${we}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ke=`transform: translate(${te}px, ${we}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ke=`transform: translate(${te}px, ${we}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ke=`transform: translate(${te}px, ${we}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ke},R=g(()=>He(r(I),r(N),a())),$e=g(()=>se(r(V),r(k)));Vt(me),an(()=>window.clearTimeout(E));var Be=T2(),G=fe(Be);let ee;G.__mousemove=Le,G.__mousedown=le,G.__mouseup=function(...te){var we;(we=e.disableMouseupTooltipShow?void 0:Le)==null||we.apply(this,te)};var Oe=_(G);ye(Oe,()=>{var te;return(te=e.children)!=null?te:de}),h(G),rt(G,te=>O(T,te),()=>r(T));var it=P(G,2);{var he=te=>{am(te,{children:(we,ke)=>{var je=C2(),ot=_(je),bt=_(ot,!0);h(ot);var mt=P(ot,2);h(je),rt(je,Et=>O(C,Et),()=>r(C)),B(()=>{lt(je,r(R)),be(bt,d()),lt(mt,r($e))}),b(we,je)},$$slots:{default:!0}})};L(it,te=>{d()&&!l()&&te(he)})}B(te=>ee=ne(G,1,"tooltip-wrapper svelte-hxlyne",null,ee,te),[()=>({"full-width":m()})]),Tt("mouseenter",G,Le),Tt("mouseleave",G,le),b(t,Be),z(),o()}ct(["mousemove","mousedown","mouseup"]);var Q1=t=>{t.stopPropagation()},I2=A("<div><!></div>"),k2={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Bo(t,e){U(e,!0),K(t,k2);let[i,o]=Fe(),n=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=Ie(),d=So(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,m=v(e,"className",3,""),p=v(e,"disabled",3,!1),w=v(e,"hasTooltip",3,!0),x=v(e,"ref",15,void 0),y=v(e,"width",15,void 0),T=v(e,"isFullWidthTooltip",3,!0),C=v(e,"tooltipContent",3,""),E=v(e,"tooltipActive",3,!1),V=v(e,"tooltipPlacement",3,"top"),k=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=v(e,"isAriaHidden",3,!1),N=v(e,"onTooltipVisibilityChange",3,Pu.noop),J=v(e,"initialTranslateXPx",3,0),H=v(e,"initialTranslateYPx",19,()=>-18),F=v(e,"mouseEnter",3,Pu.noop),Q=v(e,"mouseLeave",3,Pu.noop),ie=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):k():C());var Y=I2();Y.__pointerdown=[Q1],Y.__click=[Q1];var ge=_(Y);{var X=me=>{Ea(me,{get content(){return r(ie)},get translateX(){return J()},get translateY(){return H()},get isFullWidthWrapper(){return T()},get active(){return E()},get placement(){return V()},get onVisibilityChange(){return N()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(pe,Pe)=>{var Le=We(),le=fe(Le);ye(le,()=>{var He;return(He=e.children)!=null?He:de}),b(pe,Le)},$$slots:{default:!0}})},ue=me=>{var pe=We(),Pe=fe(pe);ye(Pe,()=>{var Le;return(Le=e.children)!=null?Le:de}),b(me,pe)};L(ge,me=>{w()&&r(ie)&&!s()?me(X):me(ue,!1)})}h(Y),rt(Y,me=>x(me),()=>x()),B(()=>{var me;ne(Y,1,`btn-container ${(me=m())!=null?me:""}`,"svelte-p9r045"),ze(Y,"aria-hidden",I()||null)}),Tt("mouseenter",Y,function(...me){var pe;(pe=F())==null||pe.apply(this,me)}),Tt("mouseleave",Y,function(...me){var pe;(pe=Q())==null||pe.apply(this,me)}),dr(Y,"clientWidth",y),b(t,Y),z(),o()}ct(["pointerdown","click"]);var P2=Te('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function Bd(t,e){"use strict";var i=P2(),o=_(i),n=P(o);h(i),B(()=>{ze(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),ze(o,"fill-opacity",e.completed?1:.24),ze(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var A2=A("<div><!></div>"),M2={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function lm(t,e){U(e,!0),K(t,M2);let o=Ie().ui.t,n=Z(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Bo(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=A2();let u;var f=_(a);let m=g(()=>!!e.videoEpisode.completed);Bd(f,{get completed(){return r(m)}}),h(a),B(p=>{u=ne(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),lt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),dr(a,"clientWidth",p=>O(n,p)),b(l,a)},$$slots:{default:!0}}),z()}var L2=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),V2=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),R2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
165
165
  .video-episode-loaded.svelte-1u6kv8l,
166
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function lm(t,e){Q(t,M2);let i=m(e,"videoEpisodes",19,()=>[]);var o=A2();Ii(o,21,i,n=>n.from,(n,s)=>{var l=P2();let d;var a=_(l),u=_(a),f=P(u,2);let v;h(a),h(l),B((p,x)=>{d=te(l,1,"video-episode svelte-1u6kv8l",null,d,p),at(l,`left: ${r(s).from}%; width: ${r(s).width}%`),at(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),v=te(f,1,"video-episode-filled svelte-1u6kv8l",null,v,x),at(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function L2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;O(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function V2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);n()(a,u,r(s).width),r(l)&&d()(a)}function R2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function N2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function O2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var B2=M("<div></div>"),D2=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),H2=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),F2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
166
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function dm(t,e){K(t,R2);let i=v(e,"videoEpisodes",19,()=>[]);var o=V2();Mi(o,21,i,n=>n.from,(n,s)=>{var l=L2();let d;var a=_(l),u=_(a),f=P(u,2);let m;h(a),h(l),B((p,w)=>{d=ne(l,1,"video-episode svelte-1u6kv8l",null,d,p),lt(l,`left: ${r(s).from}%; width: ${r(s).width}%`),lt(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),m=ne(f,1,"video-episode-filled svelte-1u6kv8l",null,m,w),lt(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),h(o),b(t,o)}function N2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;O(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function O2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);n()(a,u,r(s).width),r(l)&&d()(a)}function B2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function D2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function H2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var F2=A("<div></div>"),U2=A('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),z2=A('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),W2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
167
167
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
168
168
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
169
169
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
170
170
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
171
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ka(t,e){U(e,!0),Q(t,F2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),s=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),x=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,No.noop),S=m(e,"onHandleMove",3,No.noop),T=m(e,"onPointerUp",3,No.noop),E=m(e,"onPointerEnter",3,No.noop),V=m(e,"onPointerMove",3,No.noop),k=m(e,"onPointerLeave",3,No.noop),I=m(e,"onMouseEnter",3,No.noop),R=m(e,"onMouseLeave",3,No.noop),Z=m(e,"onWheelUp",3,No.noop),H=m(e,"onWheelDown",3,No.noop),F=m(e,"onWheelLeft",3,No.noop),K=m(e,"onWheelRight",3,No.noop),ee=m(e,"onDisabledClick",3,No.noop),j=m(e,"loadedProgress",3,0),ue=m(e,"filledProgress",3,0),oe=m(e,"handleProgress",3,0),pe=m(e,"ariaLabel",3,""),ye=m(e,"ariaValueMin",3,void 0),me=m(e,"ariaValueMax",3,void 0),Pe=m(e,"ariaValueNow",3,void 0),re=m(e,"ariaValueText",3,""),Re=m(e,"onContextMenu",3,No.noop),se=At(),N=Y(void 0),De=Y(!1),de=g(()=>{var le;return(le=me())!=null?le:0}),ge=g(()=>{var le;return(0,No.isNonNullable)(f())&&((le=f()[f().length-1])==null?void 0:le.time)<r(de)}),ie=g(()=>(0,No.isNonNullable)(f())&&f().length&&r(ge)&&r(de)?We(j()*100,ue()*100):[]);function ve(le){if(le.preventDefault(),i()&&O(N,i().getBoundingClientRect(),!0),x())return;let Ne=Me(le.clientX,le.clientY),Qe=ke(le.clientX);E()(Ne,Qe,r(N).width)}function He(le){le.preventDefault(),!x()&&k()()}function fe(){I()()}function lt(){R()()}function X(le){x()||v()&&(le.preventDefault(),le.deltaY<0?Z()():le.deltaY>0?H()():le.deltaX>0?K()():F()())}function Me(le,Ne){return l()?Math.max(0,Math.min(1,(r(N).height-(Ne-r(N).top))/r(N).height)):Math.min(Math.max(le-r(N).x,0),r(N).width)/r(N).width}function ke(le){return Math.min(Math.max(le-r(N).x,0),r(N).width)}function We(le,Ne){let Qe=se.features.episodesClustering&&!p()?se.episodeMinWidthPc:0,Ve=[],Ze=f()[0].time/r(de)*100,Be=0,tt=0;for(let it=1;it<f().length;it++)Be=f()[it].time/r(de)*100,Be-Ze>Qe&&(Ve.push({from:Ze,width:Math.max(0,Be-Ze),loadedWidth:Math.max(0,Math.min(Be,le)-Ze),filledWidth:Math.max(0,Math.min(Be,Ne)-Ze),interactive:f()[it-1].interactive,completed:f()[it-1].completed}),Ze=f()[it].time/r(de)*100,tt++);let Rt={from:Ze,width:Math.max(0,100-Ze),loadedWidth:Math.max(0,Math.min(le,100)-Ze),filledWidth:Math.max(0,Math.min(Ne,100)-Ze),interactive:f()[tt].interactive,completed:f()[tt].completed};100-Ze<Qe?(tt-=1,Ve[tt].width+=100-Ze,Ve[tt].loadedWidth+=Math.max(0,Math.min(le,100)-Ze),Ve[tt].filledWidth+=Math.max(0,Math.min(Ne,100)-Ze)):Ve[tt]=Rt;let Qt=f()[0].time;if(Qt!==0){let it=Qt/r(de)*100;Ve.unshift({from:0,width:it,loadedWidth:Math.min(it,le),filledWidth:Math.min(it,Ne)})}return Ve}function dt(le){return Math.max(0,Math.min(100,le*100))}var gt=H2(),ht=he(gt);{var Et=le=>{var Ne=B2();let Qe;Ii(Ne,21,()=>r(ie),Ve=>Ve.from,(Ve,Ze)=>{var Be=Ke(),tt=he(Be);{var Rt=Qt=>{am(Qt,{get videoEpisode(){return r(Ze)},get disabled(){return x()}})};L(tt,Qt=>{r(Ze).interactive&&Qt(Rt)})}$(Ve,Be)}),h(Ne),B(Ve=>Qe=te(Ne,1,"interactive-icons svelte-1tpemng",null,Qe,Ve),[()=>({mobile:a(),hidden:a()&&!r(De)})]),$(le,Ne)};L(ht,le=>{p()&&le(Et)})}var je=P(ht,2);let zt;je.__pointerdown=[L2,i,N,x,De,Me,y],je.__pointermove=[V2,x,Me,ke,V,N,De,S],je.__pointerup=[R2,x,De,Me,T],je.__click=[N2,x,ee,Me],je.__contextmenu=[O2,Me,x,ee,De,Re];var ti=_(je);{var Yt=le=>{lm(le,{get videoEpisodes(){return r(ie)},get disabled(){return x()},get isMobile(){return a()}})},qt=le=>{var Ne=D2(),Qe=_(Ne),Ve=P(Qe,2);let Ze;h(Ne),B((Be,tt,Rt)=>{at(Qe,Be),Ze=te(Ve,1,"filled svelte-1tpemng",null,Ze,tt),at(Ve,Rt)},[()=>`transform: translateX(${dt(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${dt(ue())}%);`]),$(le,Ne)};L(ti,le=>{r(ie).length?le(Yt):le(qt,!1)})}var ne=P(ti,2);let Wt;var _e=_(ne);let Se;h(ne),h(je),nt(je,le=>i(le),()=>i()),B((le,Ne,Qe,Ve)=>{var Ze,Be;zt=te(je,1,`slider ${(Ze=o())!=null?Ze:""}`,"svelte-1tpemng",zt,le),Ue(je,"aria-label",pe()),Ue(je,"aria-valuemin",ye()),Ue(je,"aria-valuemax",me()),Ue(je,"aria-valuenow",Pe()),Ue(je,"aria-valuetext",re()),Ue(je,"data-testid",(Be=n())!=null?Be:null),Wt=te(ne,1,"handleWrap svelte-1tpemng",null,Wt,Ne),at(ne,Qe),Se=te(_e,1,"handle svelte-1tpemng",null,Se,Ve)},[()=>({disabled:x(),"slider-dragging":r(De),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${dt(oe())}%);`,()=>({"active-live":d()})]),Tt("pointerenter",je,ve),Tt("pointerleave",je,He),Tt("mouseenter",je,fe),Tt("mouseleave",je,lt),Tt("wheel",je,X),$(t,gt),z()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var to=(t,e)=>va[t]>=va[e],K1=(t,e)=>va[t]<va[e],Ks=(t,e)=>va[t]<=va[e],q1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var z2=M("<div><!></div>"),W2=M("<div><!> <!></div>"),K2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function dm(t,e){var X,Me;U(e,!0),Q(t,K2);let[i,o]=Fe(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ie(),u=At(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(X=a.callbacks)==null?void 0:X.onAudioDoesNotExistHint,T=(Me=a.callbacks)==null?void 0:Me.onAudioDisabledHint,E=a.state.isAudioAvailable$,V=a.state.isAudioDisabled,k=a.ui.t,I=Y(!1),R,Z=g(()=>e.isAds||n()),H=g(()=>!r(Z)||s()||l()===0),F=g(()=>Ks(d(),"s")),K=g(()=>r(F)?"":r(H)?!n()||V?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),ee=g(()=>r(H)?k("tooltip_volume"):k("tooltip_volume_muted")),j=g(()=>r(H)?0:l()),ue=!1,oe=g(()=>e.isAds?!1:V?!T:n()?!1:!S);function pe(ke){x(),p(ke)}function ye(){Tu(a,l(),u.controls.volumeStepWheel)}function me(){Eu(a,l(),u.controls.volumeStepWheel)}function Pe(ke){p(ke)}function re(ke){p(ke),w()}function Re(){ue=!0}function se(){ue=!1,de()}function N(){clearTimeout(R),O(I,!0)}function De(){de()}function de(){R=window.setTimeout(()=>{ue||O(I,!1)},u.controls.volumeBarTimeout)}function ge(ke){ke.preventDefault(),ke.deltaY<0?ye():ke.deltaY>0&&me()}var ie=W2();let ve;var He=_(ie);Ia(He,{get content(){return r(K)},translateY:-18,children:(ke,We)=>{let dt=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Dt(ke,{className:"btn-full-opacity",get disabled(){return r(oe)},get testId(){return r(dt)},get ariaLabel(){return r(ee)},get click(){return e.click},get ariaKeyShortCut(){return ls.KeyM},role:"button",children:(gt,ht)=>{Ws(gt,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var fe=P(He,2);{var lt=ke=>{var We=z2();let dt;var gt=_(We);let ht=g(()=>r(F)?"volumeBar-slider-vertical":""),Et=g(()=>r(F)&&!r(I)),je=g(()=>r(F)?Re:Hd.noop),zt=g(()=>r(F)?se:Hd.noop),ti=g(()=>Math.round(r(j)*100)),Yt=g(()=>`${Math.round(r(j)*100)}%`),qt=g(()=>r(F)?"volume-slider-vertical":"volume-slider");ka(gt,{get className(){return r(ht)},get isHidden(){return r(Et)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:ye,onWheelDown:me,onPointerDown:pe,onHandleMove:Pe,onPointerUp:re,get onPointerEnter(){return r(je)},get onPointerLeave(){return r(zt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(ti)},get ariaValueText(){return r(Yt)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(qt)}}),h(We),B(ne=>dt=te(We,1,"volumeBar svelte-1auih1j",null,dt,ne),[()=>({"volumeBar-vertical":r(F)})]),$(ke,We)};L(fe,ke=>{r(Z)&&ke(lt)})}h(ie),B(ke=>ve=te(ie,1,"volumeBar-container svelte-1auih1j",null,ve,ke),[()=>({vertical:r(F)})]),Tt("mouseenter",ie,function(...ke){var We;(We=r(F)?N:Hd.noop)==null||We.apply(this,ke)}),Tt("mouseleave",ie,function(...ke){var We;(We=r(F)?De:Hd.noop)==null||We.apply(this,ke)}),Tt("wheel",ie,ge),$(t,ie),z(),o()}var Q1=require("@vkontakte/videoplayer-shared/es2015");var q2=Ee('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=q2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var Q2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function um(t,e){Q(t,Q2);let i=m(e,"isFullscreen",8,!1),o=Dr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");cm(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Fd(t,e){U(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,Q1.noop),n=Ie(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Dt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Fs(u);s.set(f),o()()},get ariaKeyShortCut(){return ls.KeyF},role:"button",children:(u,f)=>{um(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var G2=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function pm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=G2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var j2=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function fm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=j2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(4),h(o),$(t,o)}var Y2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
171
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function Ia(t,e){U(e,!0),K(t,W2);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),s=v(e,"isHidden",3,!1),l=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),a=v(e,"isMobile",3,!1),u=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),m=v(e,"withWheelHandler",3,!1),p=v(e,"isInteractive",3,!1),w=v(e,"disabled",3,!1),x=v(e,"hideHandel",3,!1),y=v(e,"onPointerDown",3,Do.noop),T=v(e,"onHandleMove",3,Do.noop),C=v(e,"onPointerUp",3,Do.noop),E=v(e,"onPointerEnter",3,Do.noop),V=v(e,"onPointerMove",3,Do.noop),k=v(e,"onPointerLeave",3,Do.noop),I=v(e,"onMouseEnter",3,Do.noop),N=v(e,"onMouseLeave",3,Do.noop),J=v(e,"onWheelUp",3,Do.noop),H=v(e,"onWheelDown",3,Do.noop),F=v(e,"onWheelLeft",3,Do.noop),Q=v(e,"onWheelRight",3,Do.noop),ie=v(e,"onDisabledClick",3,Do.noop),Y=v(e,"loadedProgress",3,0),ge=v(e,"filledProgress",3,0),X=v(e,"handleProgress",3,0),ue=v(e,"ariaLabel",3,""),me=v(e,"ariaValueMin",3,void 0),pe=v(e,"ariaValueMax",3,void 0),Pe=v(e,"ariaValueNow",3,void 0),Le=v(e,"ariaValueText",3,""),le=v(e,"onContextMenu",3,Do.noop),He=Pt(),se=Z(void 0),R=Z(!1),$e=g(()=>{var ce;return(ce=pe())!=null?ce:0}),Be=g(()=>{var ce;return(0,Do.isNonNullable)(f())&&((ce=f()[f().length-1])==null?void 0:ce.time)<r($e)}),G=g(()=>(0,Do.isNonNullable)(f())&&f().length&&r(Be)&&r($e)?je(Y()*100,ge()*100):[]);function ee(ce){if(ce.preventDefault(),i()&&O(se,i().getBoundingClientRect(),!0),w())return;let Ve=we(ce.clientX,ce.clientY),Ue=ke(ce.clientX);E()(Ve,Ue,r(se).width)}function Oe(ce){ce.preventDefault(),!w()&&k()()}function it(){I()()}function he(){N()()}function te(ce){w()||m()&&(ce.preventDefault(),ce.deltaY<0?J()():ce.deltaY>0?H()():ce.deltaX>0?Q()():F()())}function we(ce,Ve){return l()?Math.max(0,Math.min(1,(r(se).height-(Ve-r(se).top))/r(se).height)):Math.min(Math.max(ce-r(se).x,0),r(se).width)/r(se).width}function ke(ce){return Math.min(Math.max(ce-r(se).x,0),r(se).width)}function je(ce,Ve){let Ue=He.features.episodesClustering&&!p()?He.episodeMinWidthPc:0,Re=[],Qe=f()[0].time/r($e)*100,De=0,Je=0;for(let nt=1;nt<f().length;nt++)De=f()[nt].time/r($e)*100,De-Qe>Ue&&(Re.push({from:Qe,width:Math.max(0,De-Qe),loadedWidth:Math.max(0,Math.min(De,ce)-Qe),filledWidth:Math.max(0,Math.min(De,Ve)-Qe),interactive:f()[nt-1].interactive,completed:f()[nt-1].completed}),Qe=f()[nt].time/r($e)*100,Je++);let At={from:Qe,width:Math.max(0,100-Qe),loadedWidth:Math.max(0,Math.min(ce,100)-Qe),filledWidth:Math.max(0,Math.min(Ve,100)-Qe),interactive:f()[Je].interactive,completed:f()[Je].completed};100-Qe<Ue?(Je-=1,Re[Je].width+=100-Qe,Re[Je].loadedWidth+=Math.max(0,Math.min(ce,100)-Qe),Re[Je].filledWidth+=Math.max(0,Math.min(Ve,100)-Qe)):Re[Je]=At;let Jt=f()[0].time;if(Jt!==0){let nt=Jt/r($e)*100;Re.unshift({from:0,width:nt,loadedWidth:Math.min(nt,ce),filledWidth:Math.min(nt,Ve)})}return Re}function ot(ce){return Math.max(0,Math.min(100,ce*100))}var bt=z2(),mt=fe(bt);{var Et=ce=>{var Ve=F2();let Ue;Mi(Ve,21,()=>r(G),Re=>Re.from,(Re,Qe)=>{var De=We(),Je=fe(De);{var At=Jt=>{lm(Jt,{get videoEpisode(){return r(Qe)},get disabled(){return w()}})};L(Je,Jt=>{r(Qe).interactive&&Jt(At)})}b(Re,De)}),h(Ve),B(Re=>Ue=ne(Ve,1,"interactive-icons svelte-1tpemng",null,Ue,Re),[()=>({mobile:a(),hidden:a()&&!r(R)})]),b(ce,Ve)};L(mt,ce=>{p()&&ce(Et)})}var Ze=P(mt,2);let Ut;Ze.__pointerdown=[N2,i,se,w,R,we,y],Ze.__pointermove=[O2,w,we,ke,V,se,R,T],Ze.__pointerup=[B2,w,R,we,C],Ze.__click=[D2,w,ie,we],Ze.__contextmenu=[H2,we,w,ie,R,le];var Xt=_(Ze);{var Gt=ce=>{dm(ce,{get videoEpisodes(){return r(G)},get disabled(){return w()},get isMobile(){return a()}})},qt=ce=>{var Ve=U2(),Ue=_(Ve),Re=P(Ue,2);let Qe;h(Ve),B((De,Je,At)=>{lt(Ue,De),Qe=ne(Re,1,"filled svelte-1tpemng",null,Qe,Je),lt(Re,At)},[()=>`transform: translateX(${ot(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${ot(ge())}%);`]),b(ce,Ve)};L(Xt,ce=>{r(G).length?ce(Gt):ce(qt,!1)})}var re=P(Xt,2);let zt;var Se=_(re);let ve;h(re),h(Ze),rt(Ze,ce=>i(ce),()=>i()),B((ce,Ve,Ue,Re)=>{var Qe,De;Ut=ne(Ze,1,`slider ${(Qe=o())!=null?Qe:""}`,"svelte-1tpemng",Ut,ce),ze(Ze,"aria-label",ue()),ze(Ze,"aria-valuemin",me()),ze(Ze,"aria-valuemax",pe()),ze(Ze,"aria-valuenow",Pe()),ze(Ze,"aria-valuetext",Le()),ze(Ze,"data-testid",(De=n())!=null?De:null),zt=ne(re,1,"handleWrap svelte-1tpemng",null,zt,Ve),lt(re,Ue),ve=ne(Se,1,"handle svelte-1tpemng",null,ve,Re)},[()=>({disabled:w(),"slider-dragging":r(R),hidden:s(),"slider-vertical":l(),"no-handle":x(),square:u()}),()=>({hidden:x()}),()=>`transform: translateX(${ot(X())}%);`,()=>({"active-live":d()})]),Tt("pointerenter",Ze,ee),Tt("pointerleave",Ze,Oe),Tt("mouseenter",Ze,it),Tt("mouseleave",Ze,he),Tt("wheel",Ze,te),b(t,bt),z()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var oo=(t,e)=>ma[t]>=ma[e],G1=(t,e)=>ma[t]<ma[e],Ks=(t,e)=>ma[t]<=ma[e],j1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var q2=A("<div><!></div>"),Q2=A("<div><!> <!></div>"),G2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function cm(t,e){var te,we;U(e,!0),K(t,G2);let[i,o]=Fe(),n=()=>S(E,"$isAudioAvailable$",i),s=()=>S(m,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=Ie(),u=Pt(),f=a.state.volume$,m=a.state.muted$,{setVolume:p,startVolumeChanging:w,stopVolumeChanging:x}=a.actions.internal,y=a.ui.currentGridType$,T=(te=a.callbacks)==null?void 0:te.onAudioDoesNotExistHint,C=(we=a.callbacks)==null?void 0:we.onAudioDisabledHint,E=a.state.isAudioAvailable$,V=a.state.isAudioDisabled,k=a.ui.t,I=Z(!1),N,J=g(()=>e.isAds||n()),H=g(()=>!r(J)||s()||l()===0),F=g(()=>Ks(d(),"s")),Q=g(()=>r(F)?"":r(H)?!n()||V?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),ie=g(()=>r(H)?k("tooltip_volume"):k("tooltip_volume_muted")),Y=g(()=>r(H)?0:l()),ge=!1,X=g(()=>e.isAds?!1:V?!C:n()?!1:!T);function ue(ke){w(),p(ke)}function me(){Eu(a,l(),u.controls.volumeStepWheel)}function pe(){Iu(a,l(),u.controls.volumeStepWheel)}function Pe(ke){p(ke)}function Le(ke){p(ke),x()}function le(){ge=!0}function He(){ge=!1,$e()}function se(){clearTimeout(N),O(I,!0)}function R(){$e()}function $e(){N=window.setTimeout(()=>{ge||O(I,!1)},u.controls.volumeBarTimeout)}function Be(ke){ke.preventDefault(),ke.deltaY<0?me():ke.deltaY>0&&pe()}var G=Q2();let ee;var Oe=_(G);Ea(Oe,{get content(){return r(Q)},translateY:-18,children:(ke,je)=>{let ot=g(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Bt(ke,{className:"btn-full-opacity",get disabled(){return r(X)},get testId(){return r(ot)},get ariaLabel(){return r(ie)},get click(){return e.click},get ariaKeyShortCut(){return as.KeyM},role:"button",children:(bt,mt)=>{Ws(bt,{get volume(){return l()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var it=P(Oe,2);{var he=ke=>{var je=q2();let ot;var bt=_(je);let mt=g(()=>r(F)?"volumeBar-slider-vertical":""),Et=g(()=>r(F)&&!r(I)),Ze=g(()=>r(F)?le:Dd.noop),Ut=g(()=>r(F)?He:Dd.noop),Xt=g(()=>Math.round(r(Y)*100)),Gt=g(()=>`${Math.round(r(Y)*100)}%`),qt=g(()=>r(F)?"volume-slider-vertical":"volume-slider");Ia(bt,{get className(){return r(mt)},get isHidden(){return r(Et)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:me,onWheelDown:pe,onPointerDown:ue,onHandleMove:Pe,onPointerUp:Le,get onPointerEnter(){return r(Ze)},get onPointerLeave(){return r(Ut)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Xt)},get ariaValueText(){return r(Gt)},get filledProgress(){return r(Y)},get handleProgress(){return r(Y)},get testId(){return r(qt)}}),h(je),B(re=>ot=ne(je,1,"volumeBar svelte-1auih1j",null,ot,re),[()=>({"volumeBar-vertical":r(F)})]),b(ke,je)};L(it,ke=>{r(J)&&ke(he)})}h(G),B(ke=>ee=ne(G,1,"volumeBar-container svelte-1auih1j",null,ee,ke),[()=>({vertical:r(F)})]),Tt("mouseenter",G,function(...ke){var je;(je=r(F)?se:Dd.noop)==null||je.apply(this,ke)}),Tt("mouseleave",G,function(...ke){var je;(je=r(F)?R:Dd.noop)==null||je.apply(this,ke)}),Tt("wheel",G,Be),b(t,G),z(),o()}var Y1=require("@vkontakte/videoplayer-shared/es2015");var j2=Te('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function um(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=j2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var Y2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function pm(t,e){K(t,Y2);let i=v(e,"isFullscreen",8,!1),o=Hr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");um(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Hd(t,e){U(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,Y1.noop),n=Ie(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Bt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Fs(u);s.set(f),o()()},get ariaKeyShortCut(){return as.KeyF},role:"button",children:(u,f)=>{pm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var Z2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function fm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var X2=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function mm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=X2();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(4),h(o),b(t,o)}var J2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
173
173
  svg[data-testid="vk-video-logo-icon--short"] ._en,
174
174
  svg[data-testid="vk-video-logo-icon"] ._en,
175
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function mm(t,e){Q(t,Y2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);fm(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function Ud(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(x,"$isMobile",i),s=()=>C(p,"$currentGridType$",i),l=()=>C(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=At(),v=Ie(),p=v.ui.currentGridType$,x=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,S=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||Ks(s(),"l"))&&r(T)),V=()=>{var R,Z;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(Z=v.callbacks)==null||Z.onLogoClicked():u()&&window.open(u(),"_blank")},k=g(()=>!a()),I=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Dt(t,{className:"btn-full-opacity",get disabled(){return r(k)},click:V,get testId(){return r(I)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(R){d(R)},children:(R,Z)=>{var H=Ke(),F=he(H);{var K=j=>{mm(j,{get short(){return r(E)},get isCyrillic(){return l()}})},ee=j=>{pm(j,{})};L(F,j=>{r(T)?j(K):j(ee,!1)})}$(R,H)},$$slots:{default:!0}}),z(),o()}var G1=require("@vkontakte/videoplayer-core/es2015");var vm=require("@vkontakte/videoplayer-core/es2015"),X2=Ee('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),J2=Ee('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),ey={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
175
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function vm(t,e){K(t,J2);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);mm(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function Fd(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(w,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),a=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=Pt(),m=Ie(),p=m.ui.currentGridType$,w=m.ui.isMobile,x=m.ui.t,y=m.isCyrillicRelatedInterface$,T=g(()=>f.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),C=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||Ks(s(),"l"))&&r(C)),V=()=>{var N,J;e.click(),(N=m.callbacks)!=null&&N.onLogoClicked?(J=m.callbacks)==null||J.onLogoClicked():u()&&window.open(u(),"_blank")},k=g(()=>!a()),I=g(()=>r(C)?"btn-vk-video-logo":"btn-vk-logo");Bt(t,{className:"btn-full-opacity",get disabled(){return r(k)},click:V,get testId(){return r(I)},get ariaLabel(){return r(T)},get ref(){return d()},set ref(N){d(N)},children:(N,J)=>{var H=We(),F=fe(H);{var Q=Y=>{vm(Y,{get short(){return r(E)},get isCyrillic(){return l()}})},ie=Y=>{fm(Y,{})};L(F,Y=>{r(C)?Y(Q):Y(ie,!1)})}b(N,H)},$$slots:{default:!0}}),z(),o()}var Z1=require("@vkontakte/videoplayer-core/es2015");var gm=require("@vkontakte/videoplayer-core/es2015"),ty=Te('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),iy=Te('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),oy={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
176
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
177
177
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
178
178
  animation-name: svelte-8z1bf5-wave3;}
@@ -220,9 +220,9 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
220
220
  100% {
221
221
  opacity: 1;
222
222
  }
223
- }`};function gm(t,e){U(e,!0),Q(t,ey);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===vm.ChromecastState.CONNECTED),n=g(()=>e.iconState===vm.ChromecastState.CONNECTING);var s=Ke(),l=he(s);{var d=u=>{var f=X2(),v=_(f),p=_(v),x=_(p);Te(),h(p);var w=P(p);Te(),h(v);var y=P(v),S=_(y),T=_(S);h(S),Te(),h(y),h(f),B(()=>{Ue(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Ue(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=J2();let v;var p=_(f),x=P(_(p),5);let w;h(p),h(f),B((y,S)=>{v=te(f,0,"svelte-8z1bf5",null,v,y),w=te(x,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(u,f)};L(l,u=>{i()?u(d):u(a,!1)})}$(t,s),z()}var j1=require("@vkontakte/videoplayer-shared/es2015");function zd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,j1.noop),l=Ie().ui.t,d=g(()=>e.state===G1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Dt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{gm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var ty=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),iy={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function hm(t,e){Q(t,iy);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),s=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=Y(void 0),u=Y(void 0);function f(S){if(!r(u))return 0;let{width:T}=r(u).getBoundingClientRect(),E=T/2;return S<E?E+l():S>e.containerWidth-E?e.containerWidth-E-d():S}let v=g(()=>f(n()));var p=ty(),x=_(p);let w;var y=_(x);xe(y,()=>{var S;return(S=e.children)!=null?S:ce}),h(x),nt(x,S=>O(u,S),()=>r(u)),h(p),nt(p,S=>O(a,S),()=>r(a)),B(S=>{at(p,`transform: translate(${r(v)}px, ${s()}px);`),w=te(x,1,"tooltip svelte-5ygsa2",null,w,S),at(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var Pu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Y1=t=>!!(Math.round(Math.abs(t)/90)%2),Z1=t=>Math.abs(t)/90%4===1;var oy=M('<div class="preview svelte-1wqg760"></div>'),ny=M('<div class="time svelte-1wqg760"> </div>'),ry=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),sy={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function _m(t,e){U(e,!0),Q(t,sy);let[i,o]=Fe(),n=()=>C(w,"$rotateAlpha",i),s=()=>C(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),x=Ie(),w=x.ui.rotateAlpha,y=x.ui.playerSize,S=Y(0),T=Y(0),E=Y(""),V=Y(0),k=Y(0),I=Y(0),R=Y(0),Z=g(()=>Pu(f(),v(),u())),H=g(()=>Y1(n())),F=g(()=>Z1(n())),K=g(ue),ee=g(()=>(r(F)?1:-1)*(r(S)/2-r(T)/2)),j=g(()=>r(ee)*-1);qe(()=>{(ie=>{O(S,ie.width,!0),O(T,ie.height,!0)})(pe())}),qe(()=>{(ie=>{O(E,ie.imgSrc,!0),O(V,ie.imgWidth,!0),O(k,ie.imgHeight,!0),O(I,ie.imgOffsetX,!0),O(R,ie.imgOffsetY,!0)})(ye(f()))});function ue(){var fe;let ie=a()?l.MOBILE:l.DESKTOP,{isVertical:ve}=oe(),He=30;return(fe=r(Z))!=null&&fe.text&&(He+=16),(ve||r(H))&&(He+=18,He+=50),Math.min(Math.max(s().height-He,0),ie)}function oe(){let ie=e.previewThumbsData.frameWidth,ve=e.previewThumbsData.frameHeight,He=ve>ie;return{width:ie,height:ve,isHorizontal:!He,isVertical:He}}function pe(){let{height:ie,isHorizontal:ve,isVertical:He,width:fe}=oe();return ve&&(ie=ie/fe*r(K),fe=r(K)),He&&(fe=fe/ie*r(K),ie=r(K)),{width:fe,height:ie}}function ye(ie){let ve;e.previewThumbsData.isUV?ve=Math.floor(v()*ie/e.previewThumbsData.frequency):ve=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ie)));let He=Math.floor(ve/e.previewThumbsData.countPerImage),fe=Math.floor(ve%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),lt=ve%e.previewThumbsData.countPerRow,X=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(X=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&X++);let Me=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Me=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let ke=r(S)*Me,We=r(T)*X,dt=-lt*r(S),gt=-fe*r(T);return{imgSrc:e.previewThumbsData.links[He],imgWidth:ke,imgHeight:We,imgOffsetX:dt,imgOffsetY:gt}}var me=ry();let Pe;var re=_(me);{var Re=ie=>{var ve=oy();B(()=>at(ve,`width: ${r(S)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(V)}px ${r(k)}px; background-position: ${r(I)}px ${r(R)}px;
224
- transform: rotate(${n()}deg) ${r(H)?`translate(${r(ee)}px, ${r(j)}px)`:""};
225
- `)),$(ie,ve)};L(re,ie=>{r(E)&&ie(Re)})}var se=P(re,2),N=_(se);{var De=ie=>{var ve=Ke(),He=he(ve);{var fe=X=>{var Me=ss();B(ke=>$e(Me,ke),[()=>q("tooltip_episode_unfinished")]),$(X,Me)},lt=X=>{var Me=ss();B(()=>$e(Me,r(Z).text||"")),$(X,Me)};L(He,X=>{p()&&r(Z).completed===!1?X(fe):X(lt,!1)})}$(ie,ve)};L(N,ie=>{r(Z)&&ie(De)})}h(se);var de=P(se,2);{var ge=ie=>{var ve=ny(),He=_(ve,!0);h(ve),B(()=>$e(He,d())),$(ie,ve)};L(de,ie=>{p()||ie(ge)})}h(me),B(ie=>{Pe=te(me,1,"timeline-preview svelte-1wqg760",null,Pe,ie),at(me,`width: ${r(H)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,me),z(),o()}var ay=M('<span class="time svelte-1jr6obn"> </span>'),ly=M("<!> <!>",1),dy={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function bm(t,e){var le,Ne,Qe,Ve,Ze;U(e,!0),Q(t,dy);let[i,o]=Fe(),n=()=>C(ee,"$interactiveEpisodes$",i),s=()=>C(I,"$duration$",i),l=()=>C(k,"$position$",i),d=()=>C(oe,"$isInteractiveExpectation$",i),a=()=>C(ue,"$isInteractiveTime$",i),u=()=>C(R,"$isLive$",i),f=()=>C(H,"$isMobile",i),v=()=>C(Z,"$isActiveLive$",i),p=()=>C(V,"$bufferedProgress$",i),x=()=>C(me,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ie(),E=At(),V=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,I=T.state.duration$,R=T.state.isLive$,Z=T.state.isActiveLive$,H=T.ui.isMobile,F=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,K=T.actions.internal.getPreviewThumbsData(),ee=T.state.interactiveEpisodes$,j=T.state.isInteractive,ue=T.state.isInteractiveTime$,oe=T.state.isInteractiveExpectation$,pe=T.actions.internal.correctSeekTimeToInteractive,ye=(le=T.callbacks)==null?void 0:le.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,Pe=(Qe=(Ne=T.callbacks)==null?void 0:Ne.uiInfo)==null?void 0:Qe.onTimelineMouseEnter,re=(Ze=(Ve=T.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:Ze.onTimelineMouseLeave,Re=T.ui.t,se=E.features.interactiveResponsiveUi,N=g(()=>j?n():F),De=g(()=>Cn(s())),de=g(()=>Cn(l())),ge=g(()=>l()/s()),ie=g(()=>d()||a()),ve=Y(!1),He=Y(""),fe=Y(0),lt=Y(0),X=Y(0),Me=g(()=>({containerWidth:r(lt),translateXPx:r(fe),translateYPx:j&&K?-36:-16,active:r(ve)&&w()&&!r(ie)&&!se,pointer:!E.features.timelinePreview||!K||u()})),ke=Re("aria_timeline"),We=g(()=>Re("aria_timeline_value",{position:r(de),duration:r(De)}));function dt(Be){return!pe||!j?Be:pe(Be*s())/s()}function gt(Be){T.actions.internal.startScrubbing(dt(Be))}function ht(Be){a()||T.actions.internal.progressScrubbing(dt(Be))}function Et(Be){T.actions.internal.completeScrubbing(dt(Be)),O(ve,!1)}function je(Be,tt,Rt){Yt(Be,tt,Rt),O(ve,!0)}function zt(Be,tt,Rt){Yt(Be,tt,Rt),O(ve,!0)}function ti(){O(ve,!1)}function Yt(Be,tt,Rt){O(X,dt(Be),!0),O(fe,tt,!0),Rt&&O(lt,Rt,!0),O(He,qt(Be),!0)}function qt(Be){let tt=Cn((u()?1-Be:Be)*s());return u()?`-${tt}`:tt}var ne=ly(),Wt=he(ne);hm(Wt,$s(()=>r(Me),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Be,tt)=>{var Rt=Ke(),Qt=he(Rt);{var it=$i=>{_m($i,{get time(){return r(He)},get isMobile(){return f()},get videoEpisodes(){return r(N)},get previewThumbsData(){return K},get progress(){return r(X)},get duration(){return s()},get isInteractive(){return j}})},Ci=$i=>{var ot=ay(),ri=_(ot,!0);h(ot),B(()=>$e(ri,r(He))),$($i,ot)};L(Qt,$i=>{E.features.timelinePreview&&K&&!u()?$i(it):$i(Ci,!1)})}$(Be,Rt)},$$slots:{default:!0}}));var _e=P(Wt,2);let Se=g(()=>x().has("TIMELINE"));ka(_e,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return ke},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(We)},get loadedProgress(){return p()},get filledProgress(){return r(ge)},get handleProgress(){return r(ge)},get videoEpisodes(){return r(N)},onPointerDown:gt,onHandleMove:ht,onPointerMove:zt,onPointerUp:Et,onPointerEnter:je,onPointerLeave:ti,get onMouseEnter(){return Pe},get onMouseLeave(){return re},get onDisabledClick(){return ye},get isInteractive(){return j},get disabled(){return r(Se)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:Et,get ref(){return S()},set ref(Be){S(Be)}}),$(t,ne),z(),o()}var cy={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Wd(t,e){U(e,!0),Q(t,cy);let[i,o]=Fe(),n=()=>C(a,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ie(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>Cn(l())),v=g(()=>Cn(s())),p=g(()=>s()/l()),x=g(()=>u("aria_timeline_value",{position:r(v),duration:r(f)})),w=g(()=>Math.round(r(p)*100));ka(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(x)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var uy=M("<div><!></div>"),py=M("<div></div>"),fy={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Pa(t,e){U(e,!0),Q(t,fy);let[i,o]=Fe(),n=()=>C(S,"$isLive$",i),s=()=>C(V,"$isMobile",i),l=()=>C(k,"$disabled",i),d=()=>C(E,"$adPosition",i),a=()=>C(T,"$adDuration",i),u=m(e,"isAds",3,!1),f=m(e,"isHidden",3,!1),v=m(e,"timelineNotAvailable",3,!1),p=m(e,"needPadding",3,!0),x=m(e,"ref",15,void 0),w=Ie(),y=At(),S=w.state.isLive$,T=w.ads.duration,E=w.ads.position,V=w.ui.isMobile,k=ae(!1),I=g(()=>!v()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||u()));var R=Ke(),Z=he(R);{var H=K=>{var ee=uy();let j;var ue=_(ee);{var oe=ye=>{Wd(ye,{get position(){return d()},get duration(){return a()}})},pe=ye=>{bm(ye,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(I)},get withEpisodes(){return e.withEpisodes},get ref(){return x()},set ref(me){x(me)}})};L(ue,ye=>{u()?ye(oe):ye(pe,!1)})}h(ee),bs(ee,()=>$l(f()&&y.features.usePerformanceFix,k,y.disableInvisibleComponentsTimeout)),B(ye=>j=te(ee,1,"timeline svelte-41cp6d",null,j,ye),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(K,ee)},F=K=>{var ee=py();let j;B(ue=>j=te(ee,1,"timeline-stub svelte-41cp6d",null,j,ue),[()=>({mobile:s()})]),$(K,ee)};L(Z,K=>{r(I)?K(H):K(F,!1)})}$(t,R),z(),o()}var X1=require("@vkontakte/videoplayer-shared/es2015");var my=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function $m(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=my();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),h(o),$(t,o)}var vy=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=vy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var gy=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),hy=M('<span class="text svelte-1yhs2ga"> </span>'),_y=M('<span class="text count svelte-1yhs2ga"> </span>'),by=M("<!> <!>",1),$y={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Kd(t,e){var oe,pe,ye;U(e,!0),Q(t,$y);let[i,o]=Fe(),n=()=>C(w,"$currentGridType$",i),s=()=>C(y,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ie(),p=(pe=(oe=v.callbacks)==null?void 0:oe.onEpisodeChanged)!=null?pe:X1.noop,x=!!((ye=v.callbacks)!=null&&ye.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,V=Y(void 0),k=me=>{var re,Re,se;if(!!((re=v.callbacks)!=null&&re.onEpisodeClicked)){let N=Fs(me);y.set(N),S.set(!0),(se=(Re=v.callbacks)==null?void 0:Re.onEpisodeClicked)==null||se.call(Re,N)}},I=Y(null),R=g(()=>a()/u());qe(()=>{var Pe;let me=Pu(r(R),u(),f());me?((Pe=r(I))==null?void 0:Pe.time)!==me.time&&(p(me),O(I,me,!0)):O(I,null)});let Z=g(()=>{var me;return((me=r(I))==null?void 0:me.text)||""}),H=g(()=>to(n(),"xl")?"FULL":to(n(),"m")&&K1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(Z)}`),K=(me,Pe,re)=>St(null,null,function*(){yield Lo(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&Pe&&!re&&Ct(()=>{y.set(!1),me.focus()})});qe(()=>{K(r(V),s(),l())});var ee=Ke(),j=he(ee);{var ue=me=>{let Pe=g(()=>d()?"px-0":""),re=g(()=>!x);Dt(me,{get className(){var Re;return`w-max btn-full-opacity btn-jc-l ${(Re=r(Pe))!=null?Re:""}`},testId:"btn-episodes",click:k,get disabled(){return r(re)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(V)},set ref(Re){O(V,Re,!0)},children:(Re,se)=>{var N=Ke(),De=he(N);{var de=ie=>{var ve=gy(),He=he(ve),fe=_(He,!0);h(He);var lt=P(He,2),X=_(lt);ym(X,{}),h(lt),B(()=>$e(fe,r(Z))),$(ie,ve)},ge=ie=>{var ve=by(),He=he(ve);$m(He,{});var fe=P(He,2);{var lt=Me=>{var ke=hy(),We=_(ke,!0);h(ke),B(()=>$e(We,r(Z))),$(Me,ke)},X=(Me,ke)=>{{var We=dt=>{var gt=_y(),ht=_(gt,!0);h(gt),B(()=>$e(ht,f().length)),$(dt,gt)};L(Me,dt=>{r(H)==="COUNT"&&dt(We)},ke)}};L(fe,Me=>{r(H)==="FULL"?Me(lt):Me(X,!1)})}$(ie,ve)};L(De,ie=>{d()?ie(de):ie(ge,!1)})}$(Re,N)},$$slots:{default:!0}})};L(j,me=>{r(I)&&me(ue)})}$(t,ee),z(),o()}var Nm=require("@vkontakte/videoplayer-shared/es2015");var hi=require("@vkontakte/videoplayer-core/es2015"),mt=require("@vkontakte/videoplayer-shared/es2015"),us=require("@vkontakte/videoplayer-statistics/es2015");var Ye=require("@vkontakte/videoplayer-shared/es2015"),io=require("@vkontakte/videoplayer-shared/es2015");var J1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var yy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Au=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new io.Subject,loadStarted$:new io.Subject,loadEnded$:new io.Subject,loadError$:new io.Subject,ready$:new io.Subject,slotRequested$:new io.Subject,started$:new io.Subject,timeRemained$:new io.Subject,paused$:new io.Subject,resumed$:new io.Subject,ended$:new io.Subject,empty$:new io.Subject,skipped$:new io.Subject,clicked$:new io.Subject,closed$:new io.Subject,error$:new io.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,io.addScript)(yy,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?we(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog(),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var V;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},duration:f,previewParam:v}=e,p,x=this.playerState&&we(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:w,immediateOrigin:y}=(0,Ye.detectEmbed)(),S=(V=w?y:window.location.href)!=null?V:window.location.href,T=W(Ht(W(Ht(W({},u),{dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:v}),p?{request_id:p}:{}),{duration:f}),this.usePuid?{puid10:J1(i,o),puid11:n?0:1}:{});v||delete T.preview;let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(E),this.adman=k,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(k){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=we(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,u,f,v,p;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,io.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var e_=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var xm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new Mu,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new wm,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Mu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},wm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new Mu;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},t_=xm;var Vu=require("@vkontakte/videoplayer-shared/es2015"),Aa,Pi,Sm=0,Cm=!1,i_="",o_=(t,e=0,i=0)=>t<e&&t<i,Lu=(t,e=0,i=0)=>t>=e&&t<=i,xy=(t,e=0,i=0)=>t>e&&t>i,n_=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>Lu(t,u,f));let s=t>=Sm,l=t<Sm;if(Sm=t,l&&(Cm=!1),(0,Vu.isNonNullable)(Aa)&&Lu(t,Aa.startTime,Aa.endTime)&&i_===e.value)return Aa;if(!(0,Vu.isNonNullable)(Pi)&&(n!=null&&n.length)&&!Cm){Pi=n.find(({startTime:u,endTime:f})=>Lu(t,u,f)||s&&o_(t,u,f)),Aa=void 0,!(0,Vu.isNonNullable)(Pi)&&n[n.length-1].endTime<t&&(Cm=!0);return}else{if(Lu(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return Aa=Pi,Pi=void 0,i_=e.value,Aa;(s&&xy(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&o_(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var Ru={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},wy={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},qd=t=>{var e,i;return(i=(e=Ru[t])!=null?e:Ru[wy[t]])!=null?i:void 0};var r_=require("@vkontakte/videoplayer-shared/es2015"),YB=require("@vkontakte/videoplayer-statistics/es2015"),Nu=class{constructor(e,i,o,n=new r_.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Qd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qd||{});var cs=t=>t!=null?t:0,xs=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(cs(i==null?void 0:i.top)-cs(o==null?void 0:o.top)),left:Math.round(cs(i==null?void 0:i.left)-cs(o==null?void 0:o.left)),bottom:Math.round(cs(i==null?void 0:i.bottom)-cs(o==null?void 0:o.top)),right:Math.round(cs(i==null?void 0:i.right)-cs(o==null?void 0:o.left))}},Il=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:cs(e==null?void 0:e.width),height:cs(e==null?void 0:e.height)}};var Ou="off";var s_=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:x,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:V,stopPlayer:k,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,additionalButtons:Z,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:K,playNextVideo:ee,looped:j=!1,statistics:ue,saveRate:oe,internalsExposure:pe,playerView:ye,playerId:me})=>{var jv,Yv,Zv;let Pe=Ht(W({},x),{configName:[...(jv=x.configName)!=null?jv:[],"ui"],isAudioDisabled:l,live:Ht(W({},(Yv=x.live)!=null?Yv:{}),{isLiveCatchUpMode:!!n})}),re=p,Re=mt.TracerFactory.createRootTracer(re.features.tracer),se=Re.createComponentTracer("Store"),N=w||new hi.Player(Pe,Re,{playerId:me});pe==null||pe.expose({corePlayer:N});let De=new mt.Logger,de=new Au(De,{loadTimeout:re.ads.loadTimeout,initTimeout:re.ads.initTimeout,runtimeTimeout:re.ads.runtimeTimeout,useAdmanFromNPM:re.ads.useAdmanFromNPM,volumeMultiplier:re.ads.volumeMultiplier,isVsidOriginal:re.ads.isVsidOriginal,usePuid:re.ads.usePuid}),ge=ba.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,ve=u==null?void 0:u.annotationsApi,He=u==null?void 0:u.slotsApi,fe=De.createComponentLog("Store"),lt,X,Me={},ke=new lu,We=new mt.Subscription,dt=ue&&ue.oneStat?ni(ue.oneStat.vsid$):xr(void 0),gt=ae(Bs()),ht=ae(!1),Et=(Zv=ie==null?void 0:ie.info.isActive$)!=null?Zv:new mt.ValueSubject(!1),je=ae(0),zt=ae(!1),ti=ae(!1),Yt=ae([]),qt=(0,mt.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Yt.update(b=>[...b,c])),ne=xr(!1,c=>{let b=N.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Wt=c=>St(null,null,function*(){var J;let b=Object.values(mt.InterfaceLanguage).includes(c);if(re.downloadVKLanguages&&(b&&re.updateBuiltinLanguages||!kf(c))){let Ce;try{Ce=yield(0,mt.loadVKLangPack)(c,Hh,Fh)}catch(st){(J=ue==null?void 0:ue.oneStat)==null||J.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(st,{errorType:"VKLangPack",fatal:!1})}Ce&&(If({language:c,pack:Ce,fallback:re.defaultLanguage}),_e.set(c))}kf(c)&&_e.set(c)}),_e=ae(t),Se=ae(e);Wt(t);let le=(c,b)=>{let A=we(_e);return Pf(A,c,b,re.defaultLanguage)},Ne=ae("thumb");Ne.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Ze()});let Qe=(()=>{let c=Ei([ne,Ne],([b,A])=>b?"crashed":A);return Ht(W({},c),{is:b=>we(c)===b})})(),Ve=ae(),Ze=()=>{Ve.set({muted:N.info.muted$.getValue()})},Be=(()=>{let c=ae(new Set(y));return Ht(W({},c),{add:b=>{c.update(A=>new Set([...A].concat(b)))},remove:b=>{c.update(A=>{let J=[...A];return new Set(Array.isArray(b)?J.filter(Ce=>!b.includes(Ce)):J.filter(Ce=>Ce!==b))})},includes:b=>{let A=we(c);return Array.isArray(b)?b.every(J=>A.has(J)):A.has(b)}})})(),tt=ae({width:0,height:0});se.log("create store"),fe({message:"create store"});let Rt=c=>{let b=c.container,A=()=>{Zt=new MutationObserver(Ce=>{let{removedNodes:st}=Ce[0];st.length&&b.append(N.experimental.element$.getValue())}),Zt.observe(b,{childList:!0})},J=N.experimental.element$.getValue();if(J)b.append(J),A();else{let Ce=N.experimental.element$.pipe((0,mt.filter)(st=>!!st),(0,mt.once)()).subscribe(st=>{b.append(st),A()});We.add(Ce)}},Qt=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),S?Rt(c):(mt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,mt.now)()]}),N.initVideo(c)),se.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),lt=c},it=new mt.Subject,Ci=c=>it.next(c),$i=new mt.Subject,ot=new mt.Subject,ri=new mt.Subject,Zt=null,yi={actionRewind$:$i,actionSeek$:ot,inPiP$:Et,inFullscreen$:new mt.Observable(c=>gt.subscribe(b=>c.next(b))),actionSetSubtitle$:ri,nextMovie$:it},Oo={actionSeek$:ot,playerSize$:new mt.Observable(c=>tt.subscribe(b=>c.next(b)))};if(ue){let{oneStat:c,thinOneStat:b,mediascopePixel:A,statSubscription:J}=ue;c&&(S||J.add(c.attachTo(N)),J.add(c.attachToUi(yi)),J.add(c.attachToAds(de.events)),c.authorize(s).catch(Ce=>{fe({message:`onestat auth error ${String(Ce)}`})}),A&&A.attachTo(N)),b&&(J.add(b.attachTo(N,de.events)),J.add(b.attachToUi(Oo)),J.add(b.attachToAds(de.events)),b.authorize(s))}if(ge){let c=new mt.Subscription,b=(A,J)=>c.add(A.subscribe(J));if(b(N.events.managedError$,A=>{ge.logIError(A)}),b(N.events.fatalError$,A=>{ge.logIError(A,!0)}),ue){let{oneStat:A}=ue;A&&b(A.experimental.error$,J=>{ge.logIError(J)})}ge.sentrySubscription.add(c)}let wo=()=>{if(hi.clientChecker.device.isIOS&&X)try{C1(X)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};We.add(N.experimental.element$.subscribe(c=>{c&&(X=c,c.classList.add("player-media"),ya(ie)&&ie.updateVideoElement(),S&&c.setAttribute("pip","false"),ye==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;wo(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(()=>St(null,null,function*(){var b,A;ya(ie)&&(yield ie==null?void 0:ie.revealPictureInPicture());let c=N.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(A=Me.onStarted)==null||A.call(Me,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:b})=>{var A;(A=a==null?void 0:a.onSeek)==null||A.call(a,c,b)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var A;let b=N.info.duration$.getValue();isFinite(b)&&b>0&&((A=a==null?void 0:a.onTimeupdate)==null||A.call(a,b,c),de.setPosition(c,b))})).add(N.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{zt.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{ti.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Be.add(bd),Be.add("PLAY_BUTTON")):Be.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(de.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(de.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(de.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(de.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(de.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(de.events.started$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:A.call(b,c)})).add(de.events.timeRemained$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:A.call(b,c)})).add(de.events.ended$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:A.call(b,c)})).add(de.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(de.events.clicked$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:A.call(b,c)})).add(de.events.closed$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:A.call(b,c)})).add(de.events.error$.subscribe(c=>{var b,A;return(A=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:A.call(b,c)})).add(de.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(de.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let Ut=new mt.Subscription,li=()=>{var st,Nt,Ot;let{debugLog:c}=re,b,A="#9df7b7",J="#efd169";if(c&&c!==!0){let{colors:Ft}=c;b=c.tag,A=(st=Ft==null?void 0:Ft[0])!=null?st:A,J=(Ot=(Nt=Ft==null?void 0:Ft[1])!=null?Nt:Ft==null?void 0:Ft[0])!=null?Ot:J}let Ce=b?`: ${b}`:"";Ut.add(N.events.log$.subscribe(Ft=>{console.debug(`%c sdk${Ce} `,`background:${A};`,`sdk component: ${Ft.component}`,Ft.message)})).add(De.log$.subscribe(Ft=>{console.debug(`%c ui${Ce} `,`background:${J};`,`ui component: ${Ft.component}.`,Ft.message)}))},cn=()=>{Ut.unsubscribe()},Mt=(c,b)=>{se.log("start camera manual rotation",{mx:c,my:b}),N.startCameraManualRotation(c,b)},pt=(c=!1)=>{se.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},xi=(c,b,A)=>{se.log("move camera focus px",{xpx:c,ypx:b,dt:A}),N.moveCameraFocusPX(c,b,A)},Bo=()=>{N.holdCamera()},Ki=()=>{N.releaseCamera()},si=xr(N.info.position$.getValue(),c=>{let b,A,J=()=>{let Ce=N.info.playbackState$.getValue(),st=N.info.isLive$.getValue(),Nt=N.info.duration$.getValue(),Ot=N.info.position$.getValue();if(Ce&&[hi.PlaybackState.PLAYING,hi.PlaybackState.PAUSED].includes(Ce)){let Ft=st?Ot-Nt:N.getExactTime();Ft!==A&&c(Ft),A=Ft}b=requestAnimationFrame(J)};return J(),()=>cancelAnimationFrame(b)}),Xo=ni(N.info.playbackState$),Wn=ni(N.info.currentBuffer$),D=ni(N.info.isEnded$),ze=ni(N.info.isLive$),ft=re.features.playbackRate?ni(N.info.canChangePlaybackSpeed$):xr(!1),Kt=ni(N.info.liveBufferTime$),ut=ni(N.info.volume$),ci=ni(N.info.muted$),ui=du(N.info.predefinedQualityLimitType$.pipe((0,mt.map)(c=>c===hi.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.TRAFFIC_SAVING),So=du(N.info.predefinedQualityLimitType$.pipe((0,mt.map)(c=>c===hi.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.HIGH_QUALITY),pi=ni(N.info.autoQualityLimitingAvailable$),wt=ni(N.info.availableQualities$),Ni=ni(N.info.availableQualitiesFps$),Do=ni(N.info.chromecastState$),Kn=ni(N.info.chromecastDeviceName$),Oi=ni(N.info.currentFormat$),no=ni(N.info.throughputEstimation$),Ho=ni(N.info.videoBitrate$),En=ni(N.info.intrinsicVideoSize$),In=ni(N.info.duration$),Ai=ni(N.info.isAudioAvailable$),qi=null,Jo=N.info.isBuffering$,en=xr(Jo.getValue(),c=>{let b=Jo.subscribe(A=>{A&&qi===null?qi=window.setTimeout(()=>{c(Jo.getValue()),qi=null},re.loaderDelay):c(A)});return()=>{b.unsubscribe(),qi&&clearTimeout(qi)}}),un=()=>{qi&&clearTimeout(qi),qi=null},pn=Ei([In,ze],([c,b])=>b?-c:c),Gr=Ei([Xo],([c])=>c===hi.PlaybackState.PLAYING),qn=ni(N.info.atLiveEdge$),Sr=ni(N.info.atLiveDurationEdge$),lr=ni(N.info.position$),Cr=Ei([lr,In],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),fn=Ei([Do],([c])=>c===hi.ChromecastState.CONNECTED),dr=ni(N.info.availableVideoStreams$),ro=re.features.audioLanguages?ni(N.info.availableAudioStreams$):xr([]),tn=ni(N.info.currentVideoStream$),Qn=ni(N.info.currentAudioStream$),kn=c=>{c.language&&Sf(c.language),N.setVideoStream(c)},Tr=(c,b)=>{N.setAudioStream(c),Xt(b)&&(c.language&&Sf(c.language),re.features.userVideoPrefs&&i&&Ef(re.userSalt,String(i),{audioTrackId:c.id}))},Gn=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(J=>"isDefault"in J&&J.isDefault)),re.features.userVideoPrefs&&i){let J=mu(re.userSalt,String(i));if(J!=null&&J.audioTrackId){let Ce=c.find(st=>st.id===J.audioTrackId);b=Ce!=null?Ce:b}}let A=p1();return A&&(b!=null||(b=c.find(({language:J})=>A===J))),b!=null||(b=c.at(0)),b},cr=!1;We.add(N.info.availableAudioStreams$.subscribe(c=>{if(!cr&&c.length){let b=Gn(c);b&&(N.setAudioStream(b),cr=!0)}}));let Er=!1;We.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Er&&c.length){let b=Gn(c);b&&(N.setVideoStream(b),Er=!0)}}));let Pn=ae(void 0),jn=ni(N.info.isAutoQualityEnabled$,c=>c&&Pn.set(void 0)),Ir=ni(N.info.currentQuality$,()=>Pn.set(void 0)),kr=Ei([Pn,Ir],([c,b])=>c!=null?c:b),vo=Ei(Oi,c=>c!==hi.VideoFormat.MPEG),vt=Ei([wt,Ni,jn,kr,vo],([c,b,A,J,Ce])=>{let st=[];Ce&&st.push({value:"auto",displayValue:le("auto_quality_option"),selected:A});let Nt=c.filter(Ot=>!(0,mt.isInvariantQuality)(Ot));for(let Ot of Nt){let Ft=b[Ot];st.push({value:Ot,displayValue:`${Ot}${Ft?e_(Ft):""}`,selected:A?!1:Ot===J})}return st}),ii=ni(N.info.currentPlaybackRate$),mn=Ei([ii,qn,Sr],([c,b,A])=>{let J=A||S?1:re.controls.playbackRateMin,Ce=b?1:re.controls.playbackRateMax,st=re.controls.playbackRateStep,Nt=[];for(let Ot=J;Ot<=Ce;Ot+=st)Nt.push({value:Ot,displayValue:Ot===1?le("playback_rate_1"):le("playback_rate",{multiplier:Ot.toString(10)}),selected:c===Ot});return Nt}),Mi={displayValue:le("subtitles_off"),value:Ou,language:""},Qi=ae(W({},Mi)),on=re.features.subtitles?ni(N.info.availableTextTracks$):xr([]),nn=i1(),Co=Ei([on,Qi],([c,b],A)=>{var st;let J=[],Ce=c.find(({id:Nt})=>Nt===b.value);if(Ce!=null&&Ce.url){let[,Nt]=(st=nn.find(Ce.url))!=null?st:[];if(Nt){A(Nt);return}ke.download(Ce.url).then(Ot=>{if(!Ot||ke.isDestroyed())return;let Ft=new t_,Is=Ce.language;if(Is){let Z_=!!Ce.isAuto,X_=Ft.parse(Ot,Is);J.push({lang:Is,subtitles:X_,isAuto:Z_,id:Ce.id})}nn.add(Ce.url,J),we(Qi).value===b.value&&A(J)}).catch(Ot=>{var Ft;(Ft=ue==null?void 0:ue.oneStat)==null||Ft.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(Ot,{errorType:"Subtitles download",fatal:!1})})}A(J)}),Yn=Ei([ii,Gr,Qi],([c,b,A],J)=>{let Nt;if(N.info.isLive$.getValue()&&b&&A.value!==Mi.value){let Ft=()=>{let Is=1e3/(3*c);Nt=setTimeout(Ft,Is),J(Date.now())};return Ft(),()=>clearTimeout(Nt)}}),vn=Ei([on,Qi],([c,b])=>{if(!c.length)return[];let A=[];for(let{language:J,isAuto:Ce,id:st}of c){let Nt=J&&qd(J);J&&Nt&&A.push({displayValue:Ce?le("subtitles_auto",{language:Nt}):Nt,value:st,selected:(b==null?void 0:b.value)===st,isAuto:Ce,language:J})}return A.length?(A.unshift(Ht(W({},Mi),{selected:(b==null?void 0:b.value)===Mi.value})),A):[]}),Fo={available:[],prev:[]},jr=()=>{var b,A;let c=N.experimental.getCurrentTime$.getValue();return(A=(b=c==null?void 0:c())!=null?b:X==null?void 0:X.currentTime)!=null?A:0},Yr=Ei([si,Qi,Co,Yn],([c,b,A,J])=>{var st;let Ce=N.info.isLive$.getValue();if(Ce&&Fo.prev!==A){let Nt=A.find(({id:Ft})=>Ft===b.value),Ot=Fo.prev.find(({id:Ft})=>Ft===b.value);if(Nt){let Ft=Ht(W({},Nt),{subtitles:[...(st=Ot==null?void 0:Ot.subtitles)!=null?st:[],...Nt.subtitles]});Fo.available=[Ft],Fo.prev=A}}if(b&&b.value!==Mi.value){let Nt=Ce?jr():c,Ot=Ce?Fo.available:A;return n_(Nt,b,Ot,Ce)}}),Pr=Ei([Yr],([c])=>c!=null&&c.texts?c.texts:[]);We.add(Qi.subscribe(c=>{var b,A;if(c.value===Mi.value)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let J=Object.entries(Ru).find(([Ce,st])=>st===c.displayValue);(A=a==null?void 0:a.onSubtitleOn)==null||A.call(a,J?J[0]:"",c.value)}}));let Zr=ae(!0),Zn=Ei([Wn,pn,lr,Kt],([c,b,A,J])=>{var Ot;let Ce=(Ot=c==null?void 0:c.end)!=null?Ot:0;if(!J)return Ce/b;let Nt=-A+J-b;return(Ce-Nt)/b}),ur=ni(N.info.availableSources$),pr=Ei([ur],([c])=>Object.keys((c==null?void 0:c[hi.VideoFormat.MPEG])||{}).length>0),To=()=>{var A,J,Ce;let c=Object.keys(((J=(A=N.info.availableSources$)==null?void 0:A.getValue())==null?void 0:J[hi.VideoFormat.MPEG])||{}),b=(0,mt.getHighestQuality)(c)||mt.VideoQuality.Q_144P;return(Ce=lt.sources[hi.VideoFormat.MPEG])==null?void 0:Ce[b]},ei=()=>{var b;let c=To();if(c)se.log("download video",{url:c}),Jh(c,((b=lt==null?void 0:lt.meta)==null?void 0:b.title)||"video");else{let A="There is no URL for download video";se.log("download video",{message:A}),fe({message:A})}},go=()=>{fe({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Gi(_t(),!1):so(!c,!1)},Ar=()=>{var c;if(Lt.ui.settingsMenu.visible$.set(!1),!we(Lt.ui.settingsSubMenu.visible$)){let b=we(Lt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let J=Il(b),Ce={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:J,position:Ce,name:"settings"})}}se.log("close settings menu")},ps=(c,b=()=>Promise.resolve())=>St(null,null,function*(){var Ce;Lt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Lt.ui.settingsMenu.visible$.set(!0),yield b();let A=we(Lt.ui.settingsMenu.ref$),J=Zs();if((Ce=a==null?void 0:a.uiInfo)!=null&&Ce.onSettingsMenu&&A&&J){let Nt=Il(A),Ot=xs(A,J);a.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Ot,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:c})}),Mr=(c,b=!1)=>{var st;Lt.ui.settingsSubMenu.visible$.set(!1);let A=we(Lt.ui.settingsMenu.ref$),J=Zs(),Ce=we(Lt.ui.settingsMenu.visible$);if((st=a==null?void 0:a.uiInfo)!=null&&st.onSettingsMenu&&A&&J)if(Ce&&!b){let Ot=Il(A),Ft=xs(A,J);a.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Ft,name:"settings"})}else{let Ot=Il(c),Ft={top:0,left:0,bottom:0,right:0},Is=we(Lt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ot,position:Ft,name:Is})}se.log("close settings sub menu")},Bi=(c,b)=>{var J;Lt.ui.settingsSubMenu.visible$.set(!0),Lt.ui.settingsSubMenu.ref$.set(b),Lt.ui.settingsSubMenu.name$.set(c);let A=Zs();if((J=a==null?void 0:a.uiInfo)!=null&&J.onSettingsMenu&&b&&A){let st=Il(b),Nt=xs(b,A);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:st,position:Nt})}se.log("open settings sub menu",{name:c})},_t=()=>{var b;let c=Math.max(re.volumeMinRestore,(b=cu())!=null?b:0);return c===0?re.volumeDefault:c},Xt=c=>{let b=re.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},Gi=(c,b)=>{let A=c===0?_t():c,J=N.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${A}`});let Ce=!l||Qe.is("ads");J&&c>0&&Ce&&(J=!1,Xt(b)&&xf(!1)),N.setVolume(c,J),de.setVolume(c),Xt(b)&&hf(A)},so=(c,b)=>{let A=N.info.volume$.getValue();fe({message:`set muted, currentVolume: ${A}, mute: ${c}`});let J=Qe.is("ads");if(N.setMuted(c,J),de.setVolume(c?0:A),Xt(b)&&(!J||!c)&&xf(c),!c&&A===0){let Ce=_t();N.setVolume(Ce),Xt(b)&&hf(Ce),de.setVolume(Ce)}},ao=ae(!1),Eo=c=>{var b,A;se.log("set looped",{isLooped:c}),ao.set(c),N.setLooped(c),(A=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||A.call(b,c)};Eo(j);let ho=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},_o=(c,b=!1)=>{var A;fe({message:`set autoplayNextEnabled, value: ${c}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:c}),Lt.ui.autoplayNextEnabled$.set(c),v1(c),b&&((A=a==null?void 0:a.onSetAutoplayNextEnabled)==null||A.call(a,c))},ji=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),se.log("set timer next video running",{timerNextVideoRunning:c}),Lt.ui.timerNextVideoRunning$.set(c)},fr=(c=!0)=>{var J;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(J=a==null?void 0:a.onPrevVideoClick)==null?void 0:J.call(a)}catch(Ce){fe({message:"onPrevVideoClick callback failed to execute"})}if(!b)return;c&&Xr("prev")||K()},mr=(c=!0)=>{var J;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(J=a==null?void 0:a.onNextVideoClick)==null?void 0:J.call(a)}catch(Ce){fe({message:"onNextVideoClick callback failed to execute"})}if(!b)return;c&&Xr("next")||ee()},Xr=c=>{let{isMobile:b,features:{playbackStatusNextVideoShow:A,playbackStatusShow:J}}=re;return A&&J&&!b?(Lt.ui.aboutToGoNextVideo.set(c),Lt.ui.userActionsDisabled.set(!0),!0):!1},Jr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},bo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},An=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Lr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Vr=()=>{N.prepare()},rt=()=>{(0,mt.assertNonNullable)(Lt);let c=we(Lt.ui.controls.disabledControls$),b=we(Lt.playerPhase),A={playerPhase:b,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(fe({message:"toggle play"}),b==="ads"){A.action="play",se.log("toggle adman play",A),de.togglePlay();return}let J=()=>{var st;fe({message:"toggle play, call player.play"}),A.action="play",N.play(),(st=a==null?void 0:a.onPlay)==null||st.call(a)},Ce=()=>{var st;fe({message:"toggle play, call player.pause"}),A.action="pause",N.pause(),(st=a==null?void 0:a.onPause)==null||st.call(a)};if(N.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),$i.next(),ot.next(us.SeekAction.REWIND),S){V==null||V();return}N.seekTime(0),J()}else N.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING?J():Ce();se.log("toggle play",A)},It=(c,{changeReason:b="default",appliesTo:A="to-video"}={},J)=>{fe({message:`set quality, quality: ${c}`}),se.log("set quality",{quality:c}),N.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ce}=re.features;uu(),c!=="auto"?(Ce?(pu({type:"exact_quality",quality:c,videoId:i},A),N.setPredefinedQualityLimits(hi.PredefinedQualityLimits.UNKNOWN)):_f(i,c),Pn.set(c),N.setQuality(c)):Ce&&b==="default"&&($o("auto_quality",A,J),we(ui)&&_i(!1,void 0,J),we(So)&&Yi(!1,void 0,J))},_i=(c,b="as-default",A)=>{fe({message:`set trafficSavingEnabled, value: ${c}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:c});let J=c?hi.PredefinedQualityLimits.TRAFFIC_SAVING:hi.PredefinedQualityLimits.UNKNOWN;re.features.qualityDetailsSubMenuEnabled?(Io(J,b,A),yd(!1)):(N.setPredefinedQualityLimits(J),Xt(A)&&yd(c))},Yi=(c,b="as-default",A)=>{fe({message:`set highQualityEnabled, value: ${c}`}),se.log("set high quality enabled",{highQualityEnabled:c}),Io(c?hi.PredefinedQualityLimits.HIGH_QUALITY:hi.PredefinedQualityLimits.UNKNOWN,b,A)},Io=(c,b,A)=>{c!==hi.PredefinedQualityLimits.UNKNOWN&&(we(pi)&&!we(jn)&&It("auto",{appliesTo:b,changeReason:"limit-changed"},A),$o(c,b,A)),N.setPredefinedQualityLimits(c)},$o=(c,b,A)=>{Xt(A)&&(pu({type:c,videoId:i},b),b==="as-default"&&pu({type:c,videoId:i},"to-video"))},lo=c=>{se.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),re.features.saveRate&&oe&&!N.info.isLive$.getValue()&&f1(c)},Uo=()=>{let c=we(mn),b=c.findIndex(({selected:J})=>J);if(b===c.length-1)return;let A=c[b+1];lo(A.value)},Mn=()=>{let c=we(mn),b=c.findIndex(({selected:J})=>J);if(b===0)return;let A=c[b-1];lo(A.value)},gn=(c=Ht(W({},Mi),{selected:!1}),b)=>{se.log("set subtitles",W({},c)),c.value!==Mi.value&&ri.next(c.isAuto?c.value+"_auto":c.value),Qi.set(c),Xt(b)&&(Tf(c.value===Mi.value?void 0:c.language),re.features.userVideoPrefs&&i&&Ef(re.userSalt,String(i),{subtitleTrackId:c.value===Mi.value?void 0:c.value}))},Zi=c=>{se.log("toggle subtitles");let b=we(Qi);(b==null?void 0:b.value)===Mi.value?vr(c):Ln(c)},ko=(c,b)=>{se.log("change subtitle",{enabled:c}),c?vr(!0,b):Ln(!0)},vr=(c,b)=>{se.log("subtitle on");let A=we(vn),J=we(_e),Ce;b&&(Ce=A.find(st=>st.value===b)),Ce!=null||(Ce=A.filter(st=>st.value!==Mi.value).find(st=>st.value===J)||A[1]),gn(Ce,c)},Ln=c=>{se.log("subtitle off"),gn(void 0,c)};N.info.availableTextTracks$.subscribe(c=>{var A;function b(){let J=[];for(let{language:Ce,isAuto:st,id:Nt}of c){let Ot=Ce&&qd(Ce);Ce&&Ot&&J.push({id:Nt,language:Ce,title:st?le("subtitles_auto",{language:Ot}):Ot})}return J}(A=a==null?void 0:a.onAvailableSubtitlesChanged)==null||A.call(a,b())});let Vn=ae(!0),gr=c=>{Vn.set(c)},Rn=(c,b,A=!0)=>{var J;if(fe({message:`seek to time, time: ${c}`}),se.log("seek to time",{time:c,action:b,forcePrecise:A}),ot.next(b),N.info.isLive$.getValue()){let Ce=N.info.duration$.getValue(),st=Math.min(0,Ce+c);N.seekTime(st,A)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(fe({message:"seek after ended, call callbacks.onPlay"}),(J=a==null?void 0:a.onPlay)==null||J.call(a)),N.seekTime(Gv(c),A)}},Rr=c=>{fe({message:`seek to episode start time: ${c}`}),se.log("seek to episode start time",{time:c}),Rn(c,us.SeekAction.EPISODE,!0)},Po=(c,b)=>{fe({message:`seek to percent, percent: ${c}`}),se.log("seek to percent",{percent:c,action:b});let A=we(pn)*c;Rn(A,b,!1)},Nn=c=>{fe({message:`seek external, time: ${c}`}),se.log("seek external",{time:c}),ot.next(us.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},es=c=>{var J,Ce;let b=(J=c.max)!=null?J:"none",A=(Ce=c.min)!=null?Ce:"none";fe({message:`set auto quality limitation. Max: ${b}. Min: ${A}`}),se.log("set auto quality limits",{max:b,min:A}),N.setAutoQualityLimits(c)},Xe=c=>{fe({message:`seek external to episode start time: ${c}`}),se.log("seek external to episode start time",{time:c}),Rn(c,us.SeekAction.EPISODE,!0)},oi=c=>{fe({message:`set playback rate to: ${c}`}),se.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},wi=ae(void 0),Ao=ae(!1),be=c=>{fe({message:`start scrubbing, progress: ${c}`}),se.log("start scrubbing",{progress:c}),Ao.set(!0),Pt(c)},Pt=c=>{wi.set(c)},Jt,fi,Xi=()=>{wi.set(void 0),Ao.set(!1)},co=()=>{clearTimeout(fi),clearTimeout(Jt),Jt=window.setTimeout(()=>{Xi()},500),X==null||X.removeEventListener("seeked",co)},Je=c=>{fe({message:`complete scrubbing, progress: ${c}`}),se.log("complete scrubbing",{progress:c}),Po(c,us.SeekAction.SLIDER),we(Lt.ui.isMobile)&&we(Lt.state.currentFormat$)===hi.VideoFormat.HLS?(X==null||X.addEventListener("seeked",co),fi=window.setTimeout(()=>{co()},300)):Xi()},Gt=Ei([si,pn,wi],([c,b,A],J)=>{J((0,mt.isNonNullable)(A)?A*b:c)}),Di=ae(!1),zo=()=>{Di.set(!0)},hn=()=>{Di.set(!1)},Xn=Ei([tt],([{width:c}],b)=>{let A=q1(c);b(A)}),hr=ae(!1),Nr=Z.filter(c=>e1(c)),Ji=Ei([Xn,hr],([c,b])=>b?Nr.filter(A=>!A.hideOnMobile):Nr.filter(A=>{var J;return!((J=A.hideOnDesktopGridTypes)!=null&&J.includes(c))})),mi=ae(Z.filter(c=>t1(c))),_n=Ei([mi,Xn],([c,b])=>c.filter(A=>{var J;return!((J=A.hideOnDesktopGridTypes)!=null&&J.includes(b))})),_r=Ei([_n,Ji],([c,b])=>[...re.features.additionalButtonsDesktopControlPanelRight?c.filter(A=>A.type==="desktop-control-panel-right"):[],...re.features.additionalButtons?b.map((A,J)=>{var Ce;return{id:J,weight:J,type:"desktop-control-panel-right",testId:A.testId,icon:A.iconUrl,onClick:A.onClick,ariaLabel:(Ce=A.ariaLabel)!=null?Ce:A.tooltip,tooltipText:A.tooltip}}):[]]),Wo=ae(H),yo=Ei([Wo],([c])=>re.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?Ht(W({},b),{onClick:b.onChangeEnabled}):b):[]),Ka=(c,b)=>{let A=we(mi).map(J=>J.id!==c?J:W(W({},J),b));mi.set(A)},yt=c=>{let b=we(mi);if(b.some(A=>A.id===c.id)){fe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),mi.set(b)},xt=c=>{let b=we(mi);if(!b.some(A=>A.id===c)){fe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),mi.set(b)},uo=c=>{ot.next(us.SeekAction.LIVE),fe({message:"live switch to low latency "+c}),se.log("live switch to low latency "+c),N.setLiveLowLatency(c)},bn=(c,b)=>{let A=we(Wo).map(J=>J.id!==c?J:W(W({},J),b));Wo.set(A)},Hi=c=>{let b=we(Wo);if(b.some(A=>A.id===c.id)){fe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Wo.set(b)},vi=c=>{let b=we(Wo);if(!b.some(A=>A.id===c)){fe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),Wo.set(b)},gi=ae(F),Ys=Ei([gi],([c])=>re.features.additionalContextMenuItems?c:[]),qa=(c,b)=>{let A=we(gi).map(J=>J.id!==c?J:W(W({},J),b));gi.set(A)},cp=c=>{let b=we(gi);if(b.some(A=>A.id===c.id)){fe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),gi.set(b)},yc=c=>{let b=we(gi);if(!b.some(A=>A.id===c)){fe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(A=>A.id!==c),gi.set(b)},up=Ei([hr,ne],([c,b],A)=>{A(c&&b)}),xc=()=>{ot.next(us.SeekAction.LIVE),fe({message:"switch to active live"}),se.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING&&Lt.actions.internal.togglePlay()},pp=()=>{se.log("skip adman"),de.skip()},wc=(c=!0)=>{var J;(0,mt.assertNonNullable)(Lt),fe({message:`switch from ads to video, callPlay: ${c}`}),se.log("switch from ads to video",{callPlay:c}),Ne.set("video"),c&&N.play(),l&&so(!0,!0);let b=(J=we(Ve))==null?void 0:J.muted,A=!N.info.muted$.getValue();b!==void 0&&!A&&so(b,!0),Ve.set(void 0)},fp=()=>{(0,mt.assertNonNullable)(Lt),fe({message:"switch from video to ads"}),se.log("switch from video to ads"),Lt.actions.internal.pause(),wo(),Ne.set("ads")},Sc=c=>{(0,mt.assertNonNullable)(Lt);let b=c?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:c,playerPhase:b}),Ne.set(b)},mp=c=>{(0,mt.assertNonNullable)(Lt);let b=c?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:c,playerPhase:b}),Ne.set(b)},Cc=c=>{(0,mt.assertNonNullable)(Lt);let b=c?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:c,playerPhase:b}),Ne.set(b)},Tc=()=>((0,mt.assertNonNullable)(Lt),se.log("get debug text data"),Zh(N,lt,Lt,Re.getTraceId())),Ec=()=>((0,mt.assertNonNullable)(Lt),JSON.stringify(Re.getFinishedSpans())),vp=()=>((0,mt.assertNonNullable)(Lt),Xh(N,lt,Lt)),Zs=()=>X,gp=()=>{fe({message:"toggle chromecast"}),se.log("toggle chromecast"),N.toggleChromecast()},zl=c=>{var A;if((0,mt.assertNonNullable)(Lt),N.info.isEnded$.getValue())return;let b=!c;if(we(Lt.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${b}`}),se.log("pause ads",{internalCall:b}),de.pause();return}fe({message:`pause video, internalCall: ${b}`}),se.log("pause video",{internalCall:b}),b&&((A=a==null?void 0:a.onPause)==null||A.call(a)),N.pause()},Ic=c=>{var A;(0,mt.assertNonNullable)(Lt);let b=!c;if(we(Lt.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${b}`}),se.log("play ads",{internalCall:b}),de.play();return}fe({message:`play video, internalCall: ${b}`}),se.log("play video",{internalCall:b}),b&&((A=a==null?void 0:a.onPlay)==null||A.call(a)),N.play()},hp=c=>{(0,mt.assertNonNullable)(Lt);let b=!c;if(we(Lt.playerPhase)==="ads"){fe({message:"player cannot be stopped during ads via external method"});return}fe({message:`player will be stopped, internalCall: ${b}`}),k==null||k()},kc=(c,b)=>{(0,mt.assertNonNullable)(Lt),fe({message:`first start, show ads: ${c}, internalCall: ${!b}`}),se.log("first start",{showAds:c,external:b}),c?Ne.set("ads"):(Ne.set("video"),b?N.play():Lt.actions.internal.togglePlay())},Ge=()=>(fe({message:"getting time codes"}),f),di=()=>{let c=Ge();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue();return c.find(A=>A.time>b)},Ko=c=>{let b=c;b||(b=di());let A=N.info.position$.getValue();se.log("seek to next episode",W({currentTime:A},b)),b&&(fe({message:"seek to next episode"}),Rn(b.time,us.SeekAction.EPISODE,!0))},Es=()=>{let c=Ge();if(!c||[0,1].includes(c.length))return;let b=N.info.position$.getValue(),A=c.findIndex(Ce=>Ce.time>b),J=A===-1?c.length-2:A-2;if(!(J<0))return c[J]},$n=c=>{let b=c;b||(b=Es());let A=N.info.position$.getValue();se.log("seek to prev episode",W({currentTime:A},b)),b&&(fe({message:"seek to prev episode"}),Rn(b.time,us.SeekAction.EPISODE,!0))},K_=()=>(fe({message:"getting preview thumbs data"}),se.log("get preview thumbs data",W({},v)),v),q_=()=>St(null,null,function*(){let c=ie==null?void 0:ie.isActive(),b="none";ie!=null&&ie.isActive()?(b="exit",yield ie==null?void 0:ie.exit()):(b="request",yield ie==null?void 0:ie.request()),se.log("toggle picture in picture",{isActive:c,action:b})}),Q_=(c=-90)=>{se.log("rotate video",{alphaDiff:c}),je.update(b=>b+c)},Pc=ae([]);T==null||T.subscribe(c=>{let b=[];for(let A=0;A<c.length;A++){let{range:[J,Ce],subjects:st}=c[A];A===0&&J!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:J/1e3,text:"",interactive:!0,completed:re.features.interactiveTimeOpenUri?!st.length||st.every(Nt=>Nt.isRemoved):!st.length}),Ce!==1/0&&b.push({time:Ce/1e3,text:"",interactive:!1,completed:!0})}Pc.set(b)});let G_=ae(!1);E==null||E.subscribe(c=>{c&&we(Ao)&&Xi()});let Gv=c=>{if(!S)return c;let b=we(Pc),A=we(pn),Ce=we(lr)/A,st=b.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>Ce);return typeof(st==null?void 0:st.time)=="number"?Math.min(c,st.time-.05):c},j_=()=>{Lt.ui.episodes.panelOpened$.set(!1)},Y_=()=>{se.log("destroy store"),clearTimeout(fi),clearTimeout(Jt),We.unsubscribe(),Ut.unsubscribe(),N.destroy(),de.destroy(),ue==null||ue.destroy(),ge==null||ge.destroy(),qt.unsubscribe(),Zt==null||Zt.disconnect(),Zt=null,ke.destroy()},Lt={interfaceLanguage$:_e,isCyrillicRelatedInterface$:Se,initVideo:Qt,videoId:i,isClip:o,playerPhase:Qe,vsid:dt,state:{positionExact$:si,positionWithScrubbing$:Gt,duration$:pn,playbackState$:Xo,isPlaying$:Gr,isLoaderVisible:en,bufferedProgress$:Zn,isLive$:ze,canChangePlaybackSpeed$:ft,isActiveLive$:qn,isOldestAvailableLive$:Sr,isRewindableLive$:Cr,isEnded$:D,muted$:ci,volume$:ut,trafficSavingEnabled$:ui,highQualityEnabled$:So,autoQualityLimitingAvailable$:pi,availableVideoStreams$:dr,availableAudioStreams$:ro,videoStream$:tn,audioStream$:Qn,currentQuality$:kr,isAutoQualityEnabled$:jn,availableQualities$:vt,currentPlaybackRate$:ii,availablePlaybackRates$:mn,currentSubtitle$:Qi,availableTextTracks$:on,availableSubtitlesList$:vn,currentSubtitleCaptions$:Pr,isAutoSubtitleCaptionVisible$:Zr,chromecastState$:Do,chromecastDeviceName$:Kn,chromecastConnected$:fn,currentFormat$:Oi,throughputEstimation$:no,videoBitrate$:Ho,videoSize$:En,errorLog$:Yt,crashed$:ne,isAudioAvailable$:Ai,isAudioDisabled:!!l,canDownload:re.features.download&&!!d,availableSources$:ur,hasMpegSources$:pr,isInteractive:S,showInteractiveGraph:re.features.interactiveGraph,showSeekToInteractive:re.features.seekToInteractive,showPlayPrevChapter:re.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:re.features.interactiveTimeIndicator&&!!we(Pc).length,interactiveEpisodes$:Pc,isInteractiveTime$:E?ni(E):ae(!1),isInteractiveExpectation$:G_,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,looped$:ao,loadedMetadata$:zt,isAutoQualityAvailable$:vo},ui:{t:le,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:Z.length?Z.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Be},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:gt,isFullscreenOpenedByKeyboard:ht,rotateAlpha:je,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:tt,isMobile:hr,mobileNotReportControlHidden$:up,icon3DVideoVisible:ae(!1),scrubbingInProgress:Ao,volumeChangingInProgress:Di,is3DVideo:ti,currentGridType$:Xn,additionalButtonsDeprecated$:Ji,additionalDesktopControlPanelRightButtons$:_r,additionalSettingsMenuItems$:yo,additionalContextMenuItems$:Ys,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:Vn,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:ve,slotsApi:He},actions:{internal:{preload:Vr,firstStart:c=>kc(c,!1),play:()=>Ic(!1),pause:()=>zl(!1),togglePlay:rt,toggleMuted:go,openSettingsMenu:ps,closeSettingsMenu:Ar,openSettingsSubMenu:Bi,closeSettingsSubMenu:Mr,setVolume:c=>Gi(c,!1),setMuted:c=>so(c,!1),startVolumeChanging:zo,stopVolumeChanging:hn,setVideoStream:kn,setAudioStream:c=>Tr(c,!1),setQuality:(c,b)=>It(c,b,!1),setTrafficSavingEnabled:(c,b)=>_i(c,b,!1),setHighQualityEnabled:(c,b)=>Yi(c,b,!1),setPlaybackRate:lo,incrementPlaybackRate:Uo,decrementPlaybackRate:Mn,setSubtitle:c=>gn(c,!1),toggleSubtitle:()=>Zi(!1),togglePictureInPicture:q_,startScrubbing:be,progressScrubbing:Pt,completeScrubbing:Je,toggleChromecast:gp,switchToActiveLive:xc,switchFromAdsToVideo:wc,switchFromVideoToAds:fp,skipAd:pp,setLiveWaitingStart:Sc,setLiveWaitingRecover:mp,setLiveWaitingRecord:Cc,getDebugTextData:Tc,getTraceTextData:Ec,getDebugPanelData:vp,getVideoElement:Zs,seekTime:(c,b,A)=>Rn(c,b,A),clearDelayedBufferingCheckTimeout:un,seekEpisodeStartTime:Rr,seekToPercent:Po,getNextEpisode:di,seekToNextEpisode:Ko,getPrevEpisode:Es,seekToPrevEpisode:$n,startLogging:li,stopLogging:cn,startCameraManualRotation:Mt,stopCameraManualRotation:pt,moveCameraFocusPX:xi,holdCamera:Bo,releaseCamera:Ki,getVideoEpisodes:Ge,getPreviewThumbsData:K_,downloadVideo:ei,addLanguage:If,setLanguage:Wt,nextMovie:Ci,videoRotate:Q_,correctSeekTimeToInteractive:Gv,replayInteractive:V,setLooped:Eo,reportProblem:ho,setAutoplayNextEnabled:_o,setTimerNextVideoRunning:ji,prevVideoClick:fr,nextVideoClick:mr,nextVideoAnnouncementShow:Jr,nextVideoAnnouncementClick:bo,nextVideoAnnouncementAuto:An,nextVideoAnnouncementCancel:Lr},external:{firstStart:c=>kc(c,!0),play:()=>Ic(!0),pause:()=>zl(!0),stop:()=>hp(!0),seekTime:c=>Nn(c),seekEpisodeStartTime:c=>Xe(c),setPlaybackRate:c=>oi(c),setAutoQualityLimits:c=>es(c),setMuted:c=>so(c,!0),toggleSubtitle:()=>Zi(!0),changeSubtitle:ko,setVolume:c=>Gi(c,!0),returnFocusToEpisodes:j_,updateAdditionalSettingsItem:bn,addAdditionalSettingsItem:Hi,removeAdditionalSettingsItem:vi,updateAdditionalContextItem:qa,addAdditionalContextItem:cp,removeAdditionalContextItem:yc,updateAdditionalButton:Ka,addAdditionalButton:yt,removeAdditionalButton:xt,setLiveLowLatency:uo,hideControls:()=>gr(!1),showControls:()=>gr(!0),setQuality:c=>It(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>_i(c,"to-video",!0),setHighQualityEnabled:c=>Yi(c,"to-video",!0)}},callbacks:a,setUiCallbacks:c=>{Me=W({},c)},getAdmanWrapper:()=>de,getLogger:()=>De,getPlayer:()=>N,destroy:Y_};return Lt};function Un(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=xs(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Sy=["disabledControls$","additionalButtons"],Cy=["interactiveTimeIndicator"],Pl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!Sy.includes(n)){let l=o||Cy.includes(n);s.set(Un(t,i,n,l))}}};var Bu=(t,e,i)=>St(null,null,function*(){yield Lo(),e&&i&&(i.focus(),t.set(!1))});var Ty=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Tm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function Em(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(a,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ie(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=Y(void 0);qe(()=>{r(x)&&Ct(()=>{p.set(r(x))})});let w=E=>{let V=Fs(E),k=N1(r(x));v.set(k),u.set(V),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Dt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return r(x)},set ref(E){O(x,E,!0)},children:(E,V)=>{Tm(E,{})},$$slots:{default:!0}}),z(),o()}var Ey=t=>{t.stopPropagation()},Iy=M("<div><!> <div></div> <div></div></div>"),ky={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
223
+ }`};function hm(t,e){U(e,!0),K(t,oy);let i=v(e,"isMobile",3,!1),o=g(()=>e.iconState===gm.ChromecastState.CONNECTED),n=g(()=>e.iconState===gm.ChromecastState.CONNECTING);var s=We(),l=fe(s);{var d=u=>{var f=ty(),m=_(f),p=_(m),w=_(p);Ce(),h(p);var x=P(p);Ce(),h(m);var y=P(m),T=_(y),C=_(T);h(T),Ce(),h(y),h(f),B(()=>{ze(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),ze(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),ze(C,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=iy();let m;var p=_(f),w=P(_(p),5);let x;h(p),h(f),B((y,T)=>{m=ne(f,0,"svelte-8z1bf5",null,m,y),x=ne(w,0,"svelte-8z1bf5",null,x,T)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(u,f)};L(l,u=>{i()?u(d):u(a,!1)})}b(t,s),z()}var X1=require("@vkontakte/videoplayer-shared/es2015");function Ud(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,X1.noop),l=Ie().ui.t,d=g(()=>e.state===Z1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Bt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{hm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var ny=A('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),ry={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function _m(t,e){K(t,ry);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),s=v(e,"translateYPx",3,0),l=v(e,"leftOffset",3,0),d=v(e,"rightOffset",3,0),a=Z(void 0),u=Z(void 0);function f(T){if(!r(u))return 0;let{width:C}=r(u).getBoundingClientRect(),E=C/2;return T<E?E+l():T>e.containerWidth-E?e.containerWidth-E-d():T}let m=g(()=>f(n()));var p=ny(),w=_(p);let x;var y=_(w);ye(y,()=>{var T;return(T=e.children)!=null?T:de}),h(w),rt(w,T=>O(u,T),()=>r(u)),h(p),rt(p,T=>O(a,T),()=>r(a)),B(T=>{lt(p,`transform: translate(${r(m)}px, ${s()}px);`),x=ne(w,1,"tooltip svelte-5ygsa2",null,x,T),lt(w,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var Au=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var J1=t=>!!(Math.round(Math.abs(t)/90)%2),e0=t=>Math.abs(t)/90%4===1;var sy=A('<div class="preview svelte-1wqg760"></div>'),ay=A('<div class="time svelte-1wqg760"> </div>'),ly=A('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),dy={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function bm(t,e){U(e,!0),K(t,dy);let[i,o]=Fe(),n=()=>S(x,"$rotateAlpha",i),s=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),a=v(e,"isMobile",3,!1),u=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),m=v(e,"duration",3,0),p=v(e,"isInteractive",3,!1),w=Ie(),x=w.ui.rotateAlpha,y=w.ui.playerSize,T=Z(0),C=Z(0),E=Z(""),V=Z(0),k=Z(0),I=Z(0),N=Z(0),J=g(()=>Au(f(),m(),u())),H=g(()=>J1(n())),F=g(()=>e0(n())),Q=g(ge),ie=g(()=>(r(F)?1:-1)*(r(T)/2-r(C)/2)),Y=g(()=>r(ie)*-1);qe(()=>{(G=>{O(T,G.width,!0),O(C,G.height,!0)})(ue())}),qe(()=>{(G=>{O(E,G.imgSrc,!0),O(V,G.imgWidth,!0),O(k,G.imgHeight,!0),O(I,G.imgOffsetX,!0),O(N,G.imgOffsetY,!0)})(me(f()))});function ge(){var it;let G=a()?l.MOBILE:l.DESKTOP,{isVertical:ee}=X(),Oe=30;return(it=r(J))!=null&&it.text&&(Oe+=16),(ee||r(H))&&(Oe+=18,Oe+=50),Math.min(Math.max(s().height-Oe,0),G)}function X(){let G=e.previewThumbsData.frameWidth,ee=e.previewThumbsData.frameHeight,Oe=ee>G;return{width:G,height:ee,isHorizontal:!Oe,isVertical:Oe}}function ue(){let{height:G,isHorizontal:ee,isVertical:Oe,width:it}=X();return ee&&(G=G/it*r(Q),it=r(Q)),Oe&&(it=it/G*r(Q),G=r(Q)),{width:it,height:G}}function me(G){let ee;e.previewThumbsData.isUV?ee=Math.floor(m()*G/e.previewThumbsData.frequency):ee=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*G)));let Oe=Math.floor(ee/e.previewThumbsData.countPerImage),it=Math.floor(ee%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),he=ee%e.previewThumbsData.countPerRow,te=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(te=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&te++);let we=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(we=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let ke=r(T)*we,je=r(C)*te,ot=-he*r(T),bt=-it*r(C);return{imgSrc:e.previewThumbsData.links[Oe],imgWidth:ke,imgHeight:je,imgOffsetX:ot,imgOffsetY:bt}}var pe=ly();let Pe;var Le=_(pe);{var le=G=>{var ee=sy();B(()=>lt(ee,`width: ${r(T)}px; height: ${r(C)}px; background-image: url(${r(E)}); background-size: ${r(V)}px ${r(k)}px; background-position: ${r(I)}px ${r(N)}px;
224
+ transform: rotate(${n()}deg) ${r(H)?`translate(${r(ie)}px, ${r(Y)}px)`:""};
225
+ `)),b(G,ee)};L(Le,G=>{r(E)&&G(le)})}var He=P(Le,2),se=_(He);{var R=G=>{var ee=We(),Oe=fe(ee);{var it=te=>{var we=ss();B(ke=>be(we,ke),[()=>q("tooltip_episode_unfinished")]),b(te,we)},he=te=>{var we=ss();B(()=>be(we,r(J).text||"")),b(te,we)};L(Oe,te=>{p()&&r(J).completed===!1?te(it):te(he,!1)})}b(G,ee)};L(se,G=>{r(J)&&G(R)})}h(He);var $e=P(He,2);{var Be=G=>{var ee=ay(),Oe=_(ee,!0);h(ee),B(()=>be(Oe,d())),b(G,ee)};L($e,G=>{p()||G(Be)})}h(pe),B(G=>{Pe=ne(pe,1,"timeline-preview svelte-1wqg760",null,Pe,G),lt(pe,`width: ${r(H)?r(C):r(T)}px;`)},[()=>({mobile:a()})]),b(t,pe),z(),o()}var cy=A('<span class="time svelte-1jr6obn"> </span>'),uy=A("<!> <!>",1),py={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function $m(t,e){var ce,Ve,Ue,Re,Qe;U(e,!0),K(t,py);let[i,o]=Fe(),n=()=>S(ie,"$interactiveEpisodes$",i),s=()=>S(I,"$duration$",i),l=()=>S(k,"$position$",i),d=()=>S(X,"$isInteractiveExpectation$",i),a=()=>S(ge,"$isInteractiveTime$",i),u=()=>S(N,"$isLive$",i),f=()=>S(H,"$isMobile",i),m=()=>S(J,"$isActiveLive$",i),p=()=>S(V,"$bufferedProgress$",i),w=()=>S(pe,"$disabledControls$",i),x=v(e,"showTimeline",3,!1),y=v(e,"withEpisodes",3,!0),T=v(e,"ref",15,void 0),C=Ie(),E=Pt(),V=C.state.bufferedProgress$,k=C.state.positionWithScrubbing$,I=C.state.duration$,N=C.state.isLive$,J=C.state.isActiveLive$,H=C.ui.isMobile,F=E.features.episodes&&y()?C.actions.internal.getVideoEpisodes():void 0,Q=C.actions.internal.getPreviewThumbsData(),ie=C.state.interactiveEpisodes$,Y=C.state.isInteractive,ge=C.state.isInteractiveTime$,X=C.state.isInteractiveExpectation$,ue=C.actions.internal.correctSeekTimeToInteractive,me=(ce=C.callbacks)==null?void 0:ce.onDisabledTimelineClick,pe=C.ui.controls.disabledControls$,Pe=(Ue=(Ve=C.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:Ue.onTimelineMouseEnter,Le=(Qe=(Re=C.callbacks)==null?void 0:Re.uiInfo)==null?void 0:Qe.onTimelineMouseLeave,le=C.ui.t,He=E.features.interactiveResponsiveUi,se=g(()=>Y?n():F),R=g(()=>yn(s())),$e=g(()=>yn(l())),Be=g(()=>l()/s()),G=g(()=>d()||a()),ee=Z(!1),Oe=Z(""),it=Z(0),he=Z(0),te=Z(0),we=g(()=>({containerWidth:r(he),translateXPx:r(it),translateYPx:Y&&Q?-36:-16,active:r(ee)&&x()&&!r(G)&&!He,pointer:!E.features.timelinePreview||!Q||u()})),ke=le("aria_timeline"),je=g(()=>le("aria_timeline_value",{position:r($e),duration:r(R)}));function ot(De){return!ue||!Y?De:ue(De*s())/s()}function bt(De){C.actions.internal.startScrubbing(ot(De))}function mt(De){a()||C.actions.internal.progressScrubbing(ot(De))}function Et(De){C.actions.internal.completeScrubbing(ot(De)),O(ee,!1)}function Ze(De,Je,At){Gt(De,Je,At),O(ee,!0)}function Ut(De,Je,At){Gt(De,Je,At),O(ee,!0)}function Xt(){O(ee,!1)}function Gt(De,Je,At){O(te,ot(De),!0),O(it,Je,!0),At&&O(he,At,!0),O(Oe,qt(De),!0)}function qt(De){let Je=yn((u()?1-De:De)*s());return u()?`-${Je}`:Je}var re=uy(),zt=fe(re);_m(zt,$s(()=>r(we),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(De,Je)=>{var At=We(),Jt=fe(At);{var nt=bi=>{bm(bi,{get time(){return r(Oe)},get isMobile(){return f()},get videoEpisodes(){return r(se)},get previewThumbsData(){return Q},get progress(){return r(te)},get duration(){return s()},get isInteractive(){return Y}})},_i=bi=>{var dt=cy(),jt=_(dt,!0);h(dt),B(()=>be(jt,r(Oe))),b(bi,dt)};L(Jt,bi=>{E.features.timelinePreview&&Q&&!u()?bi(nt):bi(_i,!1)})}b(De,At)},$$slots:{default:!0}}));var Se=P(zt,2);let ve=g(()=>w().has("TIMELINE"));Ia(Se,{className:"timeline-slider",get isActiveLive(){return m()},get isMobile(){return f()},get ariaLabel(){return ke},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(je)},get loadedProgress(){return p()},get filledProgress(){return r(Be)},get handleProgress(){return r(Be)},get videoEpisodes(){return r(se)},onPointerDown:bt,onHandleMove:mt,onPointerMove:Ut,onPointerUp:Et,onPointerEnter:Ze,onPointerLeave:Xt,get onMouseEnter(){return Pe},get onMouseLeave(){return Le},get onDisabledClick(){return me},get isInteractive(){return Y},get disabled(){return r(ve)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:Et,get ref(){return T()},set ref(De){T(De)}}),b(t,re),z(),o()}var fy={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function zd(t,e){U(e,!0),K(t,fy);let[i,o]=Fe(),n=()=>S(a,"$isMobile",i),s=v(e,"position",3,0),l=v(e,"duration",3,0),d=Ie(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>yn(l())),m=g(()=>yn(s())),p=g(()=>s()/l()),w=g(()=>u("aria_timeline_value",{position:r(m),duration:r(f)})),x=g(()=>Math.round(r(p)*100));Ia(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(x)},get ariaValueText(){return r(w)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var my=A("<div><!></div>"),vy=A("<div></div>"),gy={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function ka(t,e){U(e,!0),K(t,gy);let[i,o]=Fe(),n=()=>S(T,"$isLive$",i),s=()=>S(V,"$isMobile",i),l=()=>S(k,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(C,"$adDuration",i),u=v(e,"isAds",3,!1),f=v(e,"isHidden",3,!1),m=v(e,"timelineNotAvailable",3,!1),p=v(e,"needPadding",3,!0),w=v(e,"ref",15,void 0),x=Ie(),y=Pt(),T=x.state.isLive$,C=x.ads.duration,E=x.ads.position,V=x.ui.isMobile,k=ae(!1),I=g(()=>!m()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||u()));var N=We(),J=fe(N);{var H=Q=>{var ie=my();let Y;var ge=_(ie);{var X=me=>{zd(me,{get position(){return d()},get duration(){return a()}})},ue=me=>{$m(me,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(I)},get withEpisodes(){return e.withEpisodes},get ref(){return w()},set ref(pe){w(pe)}})};L(ge,me=>{u()?me(X):me(ue,!1)})}h(ie),bs(ie,()=>bl(f()&&y.features.usePerformanceFix,k,y.disableInvisibleComponentsTimeout)),B(me=>Y=ne(ie,1,"timeline svelte-41cp6d",null,Y,me),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),b(Q,ie)},F=Q=>{var ie=vy();let Y;B(ge=>Y=ne(ie,1,"timeline-stub svelte-41cp6d",null,Y,ge),[()=>({mobile:s()})]),b(Q,ie)};L(J,Q=>{r(I)?Q(H):Q(F,!1)})}b(t,N),z(),o()}var t0=require("@vkontakte/videoplayer-shared/es2015");var hy=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function ym(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=hy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(3),h(o),b(t,o)}var _y=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function xm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=_y();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var by=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),$y=A('<span class="text svelte-1yhs2ga"> </span>'),yy=A('<span class="text count svelte-1yhs2ga"> </span>'),xy=A("<!> <!>",1),wy={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function Wd(t,e){var X,ue,me;U(e,!0),K(t,wy);let[i,o]=Fe(),n=()=>S(x,"$currentGridType$",i),s=()=>S(y,"$openedByKeyboard$",i),l=()=>S(T,"$panelOpened$",i),d=()=>S(C,"$isMobile",i),a=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),m=Ie(),p=(ue=(X=m.callbacks)==null?void 0:X.onEpisodeChanged)!=null?ue:t0.noop,w=!!((me=m.callbacks)!=null&&me.onEpisodeClicked),x=m.ui.currentGridType$,y=m.ui.episodes.openedByKeyboard$,T=m.ui.episodes.panelOpened$,C=m.ui.isMobile,E=m.ui.t,V=Z(void 0),k=pe=>{var Le,le,He;if(!!((Le=m.callbacks)!=null&&Le.onEpisodeClicked)){let se=Fs(pe);y.set(se),T.set(!0),(He=(le=m.callbacks)==null?void 0:le.onEpisodeClicked)==null||He.call(le,se)}},I=Z(null),N=g(()=>a()/u());qe(()=>{var Pe;let pe=Au(r(N),u(),f());pe?((Pe=r(I))==null?void 0:Pe.time)!==pe.time&&(p(pe),O(I,pe,!0)):O(I,null)});let J=g(()=>{var pe;return((pe=r(I))==null?void 0:pe.text)||""}),H=g(()=>oo(n(),"xl")?"FULL":oo(n(),"m")&&G1(n(),"xl")?"COUNT":"SHORT"),F=g(()=>`${E("tooltip_episodes")}: ${r(J)}`),Q=(pe,Pe,Le)=>St(null,null,function*(){yield No(),(pe==null?void 0:pe.getAttribute("aria-expanded"))==="false"&&Pe&&!Le&&Ct(()=>{y.set(!1),pe.focus()})});qe(()=>{Q(r(V),s(),l())});var ie=We(),Y=fe(ie);{var ge=pe=>{let Pe=g(()=>d()?"px-0":""),Le=g(()=>!w);Bt(pe,{get className(){var le;return`w-max btn-full-opacity btn-jc-l ${(le=r(Pe))!=null?le:""}`},testId:"btn-episodes",click:k,get disabled(){return r(Le)},get ariaExpanded(){return l()},get ariaLabel(){return r(F)},get ref(){return r(V)},set ref(le){O(V,le,!0)},children:(le,He)=>{var se=We(),R=fe(se);{var $e=G=>{var ee=by(),Oe=fe(ee),it=_(Oe,!0);h(Oe);var he=P(Oe,2),te=_(he);xm(te,{}),h(he),B(()=>be(it,r(J))),b(G,ee)},Be=G=>{var ee=xy(),Oe=fe(ee);ym(Oe,{});var it=P(Oe,2);{var he=we=>{var ke=$y(),je=_(ke,!0);h(ke),B(()=>be(je,r(J))),b(we,ke)},te=(we,ke)=>{{var je=ot=>{var bt=yy(),mt=_(bt,!0);h(bt),B(()=>be(mt,f().length)),b(ot,bt)};L(we,ot=>{r(H)==="COUNT"&&ot(je)},ke)}};L(it,we=>{r(H)==="FULL"?we(he):we(te,!1)})}b(G,ee)};L(R,G=>{d()?G($e):G(Be,!1)})}b(le,se)},$$slots:{default:!0}})};L(Y,pe=>{r(I)&&pe(ge)})}b(t,ie),z(),o()}var Om=require("@vkontakte/videoplayer-shared/es2015");var hi=require("@vkontakte/videoplayer-core/es2015"),ft=require("@vkontakte/videoplayer-shared/es2015"),cs=require("@vkontakte/videoplayer-statistics/es2015");var Ye=require("@vkontakte/videoplayer-shared/es2015"),no=require("@vkontakte/videoplayer-shared/es2015");var i0=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var Sy="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Mu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new no.Subject,loadStarted$:new no.Subject,loadEnded$:new no.Subject,loadError$:new no.Subject,ready$:new no.Subject,slotRequested$:new no.Subject,started$:new no.Subject,timeRemained$:new no.Subject,paused$:new no.Subject,resumed$:new no.Subject,ended$:new no.Subject,empty$:new no.Subject,skipped$:new no.Subject,clicked$:new no.Subject,closed$:new no.Subject,error$:new no.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,no.addScript)(Sy,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?xe(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog(),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var V;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},duration:f,previewParam:m}=e,p,w=this.playerState&&xe(this.playerState.vsid);w&&(this.isVsidOriginal?p=w:p=parseInt(w,36));let{isEmbed:x,immediateOrigin:y}=(0,Ye.detectEmbed)(),T=(V=x?y:window.location.href)!=null?V:window.location.href,C=W(Ht(W(Ht(W({},u),{dl:encodeURIComponent(T),autoplay:s?1:0,player_width:i,player_height:o,preview:m}),p?{request_id:p}:{}),{duration:f}),this.usePuid?{puid10:i0(i,o),puid11:n?0:1}:{});m||delete C.preview;let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:C,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(E),this.adman=k,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(k){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=xe(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,u,f,m,p;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,no.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var o0=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var wm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new Lu,{startTime:f,endTime:m}=u.parse(a);l.startTime=f,l.endTime=m}else if(a.trim()!==""){let u=new Sm,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Lu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},Sm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,m)=>{let p=l.indexOf(m,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new Lu;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},n0=wm;var Ru=require("@vkontakte/videoplayer-shared/es2015"),Pa,Vi,Cm=0,Tm=!1,r0="",s0=(t,e=0,i=0)=>t<e&&t<i,Vu=(t,e=0,i=0)=>t>=e&&t<=i,Cy=(t,e=0,i=0)=>t>e&&t>i,a0=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>Vu(t,u,f));let s=t>=Cm,l=t<Cm;if(Cm=t,l&&(Tm=!1),(0,Ru.isNonNullable)(Pa)&&Vu(t,Pa.startTime,Pa.endTime)&&r0===e.value)return Pa;if(!(0,Ru.isNonNullable)(Vi)&&(n!=null&&n.length)&&!Tm){Vi=n.find(({startTime:u,endTime:f})=>Vu(t,u,f)||s&&s0(t,u,f)),Pa=void 0,!(0,Ru.isNonNullable)(Vi)&&n[n.length-1].endTime<t&&(Tm=!0);return}else{if(Vu(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime))return Pa=Vi,Vi=void 0,r0=e.value,Pa;(s&&Cy(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime)||l&&s0(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime))&&(Vi=void 0)}};var Nu={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},Ty={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Kd=t=>{var e,i;return(i=(e=Nu[t])!=null?e:Nu[Ty[t]])!=null?i:void 0};var l0=require("@vkontakte/videoplayer-shared/es2015"),oD=require("@vkontakte/videoplayer-statistics/es2015"),Ou=class{constructor(e,i,o,n=new l0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var qd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(qd||{});var ds=t=>t!=null?t:0,xs=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(ds(i==null?void 0:i.top)-ds(o==null?void 0:o.top)),left:Math.round(ds(i==null?void 0:i.left)-ds(o==null?void 0:o.left)),bottom:Math.round(ds(i==null?void 0:i.bottom)-ds(o==null?void 0:o.top)),right:Math.round(ds(i==null?void 0:i.right)-ds(o==null?void 0:o.left))}},El=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ds(e==null?void 0:e.width),height:ds(e==null?void 0:e.height)}};var Bu="off";var d0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:m,uiConfig:p,coreConfig:w,player:x,disabledControls:y,isInteractive:T,interactiveRanges$:C,isInteractiveTime$:E,replayInteractive:V,stopPlayer:k,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,additionalButtons:J,additionalSettingsMenuItems:H,additionalContextMenuItems:F,playPrevVideo:Q,playNextVideo:ie,onVideoChanged:Y,looped:ge=!1,statistics:X,saveRate:ue,internalsExposure:me,playerView:pe,playerId:Pe})=>{var Xv,Jv,eg;let Le=Ht(W({},w),{configName:[...(Xv=w.configName)!=null?Xv:[],"ui"],isAudioDisabled:l,live:Ht(W({},(Jv=w.live)!=null?Jv:{}),{isLiveCatchUpMode:!!n})}),le=p,He=ft.TracerFactory.createRootTracer(le.features.tracer),se=He.createComponentTracer("Store"),R=x||new hi.Player(Le,He,{playerId:Pe});me==null||me.expose({corePlayer:R});let $e=new ft.Logger,Be=new Mu($e,{loadTimeout:le.ads.loadTimeout,initTimeout:le.ads.initTimeout,runtimeTimeout:le.ads.runtimeTimeout,useAdmanFromNPM:le.ads.useAdmanFromNPM,volumeMultiplier:le.ads.volumeMultiplier,isVsidOriginal:le.ads.isVsidOriginal,usePuid:le.ads.usePuid}),G=_a.getInstance(),ee=u==null?void 0:u.pictureInPictureApi,Oe=u==null?void 0:u.annotationsApi,it=u==null?void 0:u.slotsApi,he=$e.createComponentLog("Store"),te,we,ke={},je=new du,ot=new ft.Subscription,bt=X&&X.oneStat?oi(X.oneStat.vsid$):wr(void 0),mt=ae(Bs()),Et=ae(!1),Ze=(eg=ee==null?void 0:ee.info.isActive$)!=null?eg:new ft.ValueSubject(!1),Ut=ae(0),Xt=ae(!1),Gt=ae(!1),qt=ae([]),re=(0,ft.merge)(R.events.fatalError$,R.events.managedError$).subscribe(c=>qt.update($=>[...$,c])),zt=wr(!1,c=>{let $=R.events.fatalError$.subscribe(()=>c(!0));return()=>$.unsubscribe()}),Se=c=>St(null,null,function*(){var oe;let $=Object.values(ft.InterfaceLanguage).includes(c);if(le.downloadVKLanguages&&($&&le.updateBuiltinLanguages||!Pf(c))){let Ee;try{Ee=yield(0,ft.loadVKLangPack)(c,zh,Wh)}catch(at){(oe=X==null?void 0:X.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),G==null||G.report(at,{errorType:"VKLangPack",fatal:!1})}Ee&&(kf({language:c,pack:Ee,fallback:le.defaultLanguage}),ve.set(c))}Pf(c)&&ve.set(c)}),ve=ae(t),ce=ae(e);Se(t);let Ve=(c,$)=>{let M=xe(ve);return Af(M,c,$,le.defaultLanguage)},Ue=ae("thumb");Ue.subscribe(c=>{c==="ads"&&R.info.playbackState$.getValue()&&De()});let Re=(()=>{let c=ki([zt,Ue],([$,M])=>$?"crashed":M);return Ht(W({},c),{is:$=>xe(c)===$})})(),Qe=ae(),De=()=>{Qe.set({muted:R.info.muted$.getValue()})},Je=(()=>{let c=ae(new Set(y));return Ht(W({},c),{add:$=>{c.update(M=>new Set([...M].concat($)))},remove:$=>{c.update(M=>{let oe=[...M];return new Set(Array.isArray($)?oe.filter(Ee=>!$.includes(Ee)):oe.filter(Ee=>Ee!==$))})},includes:$=>{let M=xe(c);return Array.isArray($)?$.every(oe=>M.has(oe)):M.has($)}})})(),At=ae({width:0,height:0});se.log("create store"),he({message:"create store"});let Jt=c=>{let $=c.container,M=()=>{Ci=new MutationObserver(Ee=>{let{removedNodes:at}=Ee[0];at.length&&$.append(R.experimental.element$.getValue())}),Ci.observe($,{childList:!0})},oe=R.experimental.element$.getValue();if(oe)$.append(oe),M();else{let Ee=R.experimental.element$.pipe((0,ft.filter)(at=>!!at),(0,ft.once)()).subscribe(at=>{$.append(at),M()});ot.add(Ee)}},nt=c=>{he({message:`init video, config: ${JSON.stringify(c)}`}),T?Jt(c):(ft.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ft.now)()]}),R.initVideo(c)),se.log("init video",{isInteractive:T}),c.subtitles&&R.setExternalTextTracks(c.subtitles),te=c},_i=new ft.Subject,bi=c=>_i.next(c),dt=new ft.Subject,jt=new ft.Subject,so=new ft.Subject,Ci=null,di={actionRewind$:dt,actionSeek$:jt,inPiP$:Ze,inFullscreen$:new ft.Observable(c=>mt.subscribe($=>c.next($))),actionSetSubtitle$:so,nextMovie$:_i},Ti={actionSeek$:jt,playerSize$:new ft.Observable(c=>At.subscribe($=>c.next($))),inPiP$:Ze,inFullscreen$:new ft.Observable(c=>mt.subscribe($=>c.next($)))};if(X){let{oneStat:c,thinOneStat:$,mediascopePixel:M,statSubscription:oe}=X;c&&(T||oe.add(c.attachTo(R)),oe.add(c.attachToUi(di)),oe.add(c.attachToAds(Be.events)),c.authorize(s).catch(Ee=>{he({message:`onestat auth error ${String(Ee)}`})}),M&&M.attachTo(R)),$&&(oe.add($.attachTo(R,Be.events)),oe.add($.attachToUi(Ti)),oe.add($.attachToAds(Be.events)),$.authorize(s))}if(G){let c=new ft.Subscription,$=(M,oe)=>c.add(M.subscribe(oe));if($(R.events.managedError$,M=>{G.logIError(M)}),$(R.events.fatalError$,M=>{G.logIError(M,!0)}),X){let{oneStat:M}=X;M&&$(M.experimental.error$,oe=>{G.logIError(oe)})}G.sentrySubscription.add(c)}let Wt=()=>{if(hi.clientChecker.device.isIOS&&we)try{I1(we)}catch(c){he({message:`exitIosSafariFullscreen failed: ${c}`})}};ot.add(R.experimental.element$.subscribe(c=>{c&&(we=c,c.classList.add("player-media"),$a(ee)&&ee.updateVideoElement(),T&&c.setAttribute("pip","false"),pe==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(R.events.ended$.subscribe(()=>{var c;Wt(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(R.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(R.events.started$.subscribe(()=>St(null,null,function*(){var $,M;$a(ee)&&(yield ee==null?void 0:ee.revealPictureInPicture());let c=R.info.muted$.getValue();($=a==null?void 0:a.onStarted)==null||$.call(a),(M=ke.onStarted)==null||M.call(ke,c)}))).add(R.events.willSeek$.subscribe(({from:c,to:$})=>{var M;(M=a==null?void 0:a.onSeek)==null||M.call(a,c,$)})).add(R.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(R.info.position$.subscribe(c=>{var M;let $=R.info.duration$.getValue();isFinite($)&&$>0&&((M=a==null?void 0:a.onTimeupdate)==null||M.call(a,$,c),Be.setPosition(c,$))})).add(R.events.fatalError$.subscribe(c=>{var $;($=a==null?void 0:a.onCrashed)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(R.events.fetcherRecoverableError$.subscribe(c=>{var $;($=a==null?void 0:a.onRecoverableError)==null||$.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(R.events.loadedMetadata$.subscribe(()=>{Xt.set(!0)})).add(R.info.is3DVideo$.subscribe(c=>{Gt.set(c)})).add(R.info.isEnded$.subscribe(c=>{T&&(c?(E!=null&&E.getValue()&&Je.add(_d),Je.add("PLAY_BUTTON")):Je.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(c=>{var $;($=a==null?void 0:a.onLiveTime)==null||$.call(a,c)})).add(R.info.isStalled$.subscribe(c=>{var $;($=a==null?void 0:a.onStalledChanged)==null||$.call(a,c)})).add(R.info.isLiveEnded$.subscribe(c=>{var $;return c&&(($=a==null?void 0:a.onLiveEnded)==null?void 0:$.call(a))})).add(Be.events.loadStarted$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:$.call(c)})).add(Be.events.loadEnded$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:$.call(c)})).add(Be.events.loadError$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:$.call(c)})).add(Be.events.init$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:$.call(c)})).add(Be.events.ready$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:$.call(c)})).add(Be.events.started$.subscribe(c=>{var $,M;return(M=($=a==null?void 0:a.adsInfo)==null?void 0:$.onStarted)==null?void 0:M.call($,c)})).add(Be.events.timeRemained$.subscribe(c=>{var $,M;return(M=($=a==null?void 0:a.adsInfo)==null?void 0:$.onTimeRemained)==null?void 0:M.call($,c)})).add(Be.events.ended$.subscribe(c=>{var $,M;return(M=($=a==null?void 0:a.adsInfo)==null?void 0:$.onCompleted)==null?void 0:M.call($,c)})).add(Be.events.empty$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:$.call(c)})).add(Be.events.clicked$.subscribe(c=>{var $,M;return(M=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClicked)==null?void 0:M.call($,c)})).add(Be.events.closed$.subscribe(c=>{var $,M;return(M=($=a==null?void 0:a.adsInfo)==null?void 0:$.onClosed)==null?void 0:M.call($,c)})).add(Be.events.error$.subscribe(c=>{var $,M;return(M=($=a==null?void 0:a.adsInfo)==null?void 0:$.onError)==null?void 0:M.call($,c)})).add(Be.events.paused$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:$.call(c)})).add(Be.events.resumed$.subscribe(()=>{var c,$;return($=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:$.call(c)}));let ni=new ft.Subscription,Jo=()=>{var at,Rt,Nt;let{debugLog:c}=le,$,M="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Ft}=c;$=c.tag,M=(at=Ft==null?void 0:Ft[0])!=null?at:M,oe=(Nt=(Rt=Ft==null?void 0:Ft[1])!=null?Rt:Ft==null?void 0:Ft[0])!=null?Nt:oe}let Ee=$?`: ${$}`:"";ni.add(R.events.log$.subscribe(Ft=>{console.debug(`%c sdk${Ee} `,`background:${M};`,`sdk component: ${Ft.component}`,Ft.message)})).add($e.log$.subscribe(Ft=>{console.debug(`%c ui${Ee} `,`background:${oe};`,`ui component: ${Ft.component}.`,Ft.message)}))},Ho=()=>{ni.unsubscribe()},Co=(c,$)=>{se.log("start camera manual rotation",{mx:c,my:$}),R.startCameraManualRotation(c,$)},It=(c=!1)=>{se.log("stop camera manual rotation",{immediate:c}),R.stopCameraManualRotation(c)},gt=(c,$,M)=>{se.log("move camera focus px",{xpx:c,ypx:$,dt:M}),R.moveCameraFocusPX(c,$,M)},xi=()=>{R.holdCamera()},ri=()=>{R.releaseCamera()},ao=wr(R.info.position$.getValue(),c=>{let $,M,oe=()=>{let Ee=R.info.playbackState$.getValue(),at=R.info.isLive$.getValue(),Rt=R.info.duration$.getValue(),Nt=R.info.position$.getValue();if(Ee&&[hi.PlaybackState.PLAYING,hi.PlaybackState.PAUSED].includes(Ee)){let Ft=at?Nt-Rt:R.getExactTime();Ft!==M&&c(Ft),M=Ft}$=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame($)}),en=oi(R.info.playbackState$),D=oi(R.info.currentBuffer$),Ke=oi(R.info.isEnded$),ut=oi(R.info.isLive$),Kt=le.features.playbackRate?oi(R.info.canChangePlaybackSpeed$):wr(!1),pt=oi(R.info.liveBufferTime$),ci=oi(R.info.volume$),pi=oi(R.info.muted$),To=cu(R.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===hi.PredefinedQualityLimits.TRAFFIC_SAVING)),R.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.TRAFFIC_SAVING),ui=cu(R.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===hi.PredefinedQualityLimits.HIGH_QUALITY)),R.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.HIGH_QUALITY),wt=oi(R.info.autoQualityLimitingAvailable$),Di=oi(R.info.availableQualities$),tn=oi(R.info.availableQualitiesFps$),wn=oi(R.info.chromecastState$),Gi=oi(R.info.chromecastDeviceName$),ji=oi(R.info.currentFormat$),Fo=oi(R.info.throughputEstimation$),Sn=oi(R.info.videoBitrate$),Kn=oi(R.info.intrinsicVideoSize$),Pi=oi(R.info.duration$),Cn=oi(R.info.isAudioAvailable$),Yi=null,Eo=R.info.isBuffering$,dn=wr(Eo.getValue(),c=>{let $=Eo.subscribe(M=>{M&&Yi===null?Yi=window.setTimeout(()=>{c(Eo.getValue()),Yi=null},le.loaderDelay):c(M)});return()=>{$.unsubscribe(),Yi&&clearTimeout(Yi)}}),Cr=()=>{Yi&&clearTimeout(Yi),Yi=null},qn=ki([Pi,ut],([c,$])=>$?-c:c),Qn=ki([en],([c])=>c===hi.PlaybackState.PLAYING),Tr=oi(R.info.atLiveEdge$),Er=oi(R.info.atLiveDurationEdge$),Gn=oi(R.info.position$),cn=ki([Gn,Pi],([c,$])=>isFinite(c)&&isFinite($)&&!!$),cr=ki([wn],([c])=>c===hi.ChromecastState.CONNECTED),lo=oi(R.info.availableVideoStreams$),on=le.features.audioLanguages?oi(R.info.availableAudioStreams$):wr([]),jn=oi(R.info.currentVideoStream$),Tn=oi(R.info.currentAudioStream$),Ir=c=>{c.language&&Cf(c.language),R.setVideoStream(c)},ur=(c,$)=>{R.setAudioStream(c),Ei($)&&(c.language&&Cf(c.language),le.features.userVideoPrefs&&i&&If(le.userSalt,String(i),{audioTrackId:c.id}))},pr=c=>{let $;if(c.length===1&&($=c.at(0)),$!=null||($=c.find(oe=>"isDefault"in oe&&oe.isDefault)),le.features.userVideoPrefs&&i){let oe=vu(le.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Ee=c.find(at=>at.id===oe.audioTrackId);$=Ee!=null?Ee:$}}let M=v1();return M&&($!=null||($=c.find(({language:oe})=>M===oe))),$!=null||($=c.at(0)),$},kr=!1;ot.add(R.info.availableAudioStreams$.subscribe(c=>{if(!kr&&c.length){let $=pr(c);$&&(R.setAudioStream($),kr=!0)}}));let fr=!1;ot.add(R.info.availableVideoStreams$.subscribe(c=>{if(!fr&&c.length){let $=pr(c);$&&(R.setVideoStream($),fr=!0)}}));let En=ae(void 0),Yn=oi(R.info.isAutoQualityEnabled$,c=>c&&En.set(void 0)),Yr=oi(R.info.currentQuality$,()=>En.set(void 0)),ho=ki([En,Yr],([c,$])=>c!=null?c:$),vt=ki(ji,c=>c!==hi.VideoFormat.MPEG),si=ki([Di,tn,Yn,ho,vt],([c,$,M,oe,Ee])=>{let at=[];Ee&&at.push({value:"auto",displayValue:Ve("auto_quality_option"),selected:M});let Rt=c.filter(Nt=>!(0,ft.isInvariantQuality)(Nt));for(let Nt of Rt){let Ft=$[Nt];at.push({value:Nt,displayValue:`${Nt}${Ft?o0(Ft):""}`,selected:M?!1:Nt===oe})}return at}),un=oi(R.info.currentPlaybackRate$),In=ki([un,Tr,Er],([c,$,M])=>{let oe=M||T?1:le.controls.playbackRateMin,Ee=$?1:le.controls.playbackRateMax,at=le.controls.playbackRateStep,Rt=[];for(let Nt=oe;Nt<=Ee;Nt+=at)Rt.push({value:Nt,displayValue:Nt===1?Ve("playback_rate_1"):Ve("playback_rate",{multiplier:Nt.toString(10)}),selected:c===Nt});return Rt}),Ai={displayValue:Ve("subtitles_off"),value:Bu,language:""},Hi=ae(W({},Ai)),Uo=le.features.subtitles?oi(R.info.availableTextTracks$):wr([]),_o=r1(),Zn=ki([Uo,Hi],([c,$],M)=>{var at;let oe=[],Ee=c.find(({id:Rt})=>Rt===$.value);if(Ee!=null&&Ee.url){let[,Rt]=(at=_o.find(Ee.url))!=null?at:[];if(Rt){M(Rt);return}je.download(Ee.url).then(Nt=>{if(!Nt||je.isDestroyed())return;let Ft=new n0,Is=Ee.language;if(Is){let e_=!!Ee.isAuto,t_=Ft.parse(Nt,Is);oe.push({lang:Is,subtitles:t_,isAuto:e_,id:Ee.id})}_o.add(Ee.url,oe),xe(Hi).value===$.value&&M(oe)}).catch(Nt=>{var Ft;(Ft=X==null?void 0:X.oneStat)==null||Ft.logError({errorType:"Subtitles download",fatal:!1}),G==null||G.report(Nt,{errorType:"Subtitles download",fatal:!1})})}M(oe)}),kn=ki([un,Qn,Hi],([c,$,M],oe)=>{let Rt;if(R.info.isLive$.getValue()&&$&&M.value!==Ai.value){let Ft=()=>{let Is=1e3/(3*c);Rt=setTimeout(Ft,Is),oe(Date.now())};return Ft(),()=>clearTimeout(Rt)}}),Pn=ki([Uo,Hi],([c,$])=>{if(!c.length)return[];let M=[];for(let{language:oe,isAuto:Ee,id:at}of c){let Rt=oe&&Kd(oe);oe&&Rt&&M.push({displayValue:Ee?Ve("subtitles_auto",{language:Rt}):Rt,value:at,selected:($==null?void 0:$.value)===at,isAuto:Ee,language:oe})}return M.length?(M.unshift(Ht(W({},Ai),{selected:($==null?void 0:$.value)===Ai.value})),M):[]}),An={available:[],prev:[]},Zr=()=>{var $,M;let c=R.experimental.getCurrentTime$.getValue();return(M=($=c==null?void 0:c())!=null?$:we==null?void 0:we.currentTime)!=null?M:0},Pr=ki([ao,Hi,Zn,kn],([c,$,M,oe])=>{var at;let Ee=R.info.isLive$.getValue();if(Ee&&An.prev!==M){let Rt=M.find(({id:Ft})=>Ft===$.value),Nt=An.prev.find(({id:Ft})=>Ft===$.value);if(Rt){let Ft=Ht(W({},Rt),{subtitles:[...(at=Nt==null?void 0:Nt.subtitles)!=null?at:[],...Rt.subtitles]});An.available=[Ft],An.prev=M}}if($&&$.value!==Ai.value){let Rt=Ee?Zr():c,Nt=Ee?An.available:M;return a0(Rt,$,Nt,Ee)}}),Xr=ki([Pr],([c])=>c!=null&&c.texts?c.texts:[]);ot.add(Hi.subscribe(c=>{var $,M;if(c.value===Ai.value)($=a==null?void 0:a.onSubtitleOff)==null||$.call(a);else{let oe=Object.entries(Nu).find(([Ee,at])=>at===c.displayValue);(M=a==null?void 0:a.onSubtitleOn)==null||M.call(a,oe?oe[0]:"",c.value)}}));let Xn=ae(!0),Ar=ki([D,qn,Gn,pt],([c,$,M,oe])=>{var Nt;let Ee=(Nt=c==null?void 0:c.end)!=null?Nt:0;if(!oe)return Ee/$;let Rt=-M+oe-$;return(Ee-Rt)/$}),Jn=oi(R.info.availableSources$),Io=ki([Jn],([c])=>Object.keys((c==null?void 0:c[hi.VideoFormat.MPEG])||{}).length>0),ei=()=>{var M,oe,Ee;let c=Object.keys(((oe=(M=R.info.availableSources$)==null?void 0:M.getValue())==null?void 0:oe[hi.VideoFormat.MPEG])||{}),$=(0,ft.getHighestQuality)(c)||ft.VideoQuality.Q_144P;return(Ee=te.sources[hi.VideoFormat.MPEG])==null?void 0:Ee[$]},bo=()=>{var $;let c=ei();if(c)se.log("download video",{url:c}),i1(c,(($=te==null?void 0:te.meta)==null?void 0:$.title)||"video");else{let M="There is no URL for download video";se.log("download video",{message:M}),he({message:M})}},Mr=()=>{he({message:"toggle muted"});let c=R.info.muted$.getValue();R.info.volume$.getValue()===0&&!c?ko(ai(),!1):Ri(!c,!1)},us=()=>{var c;if(Dt.ui.settingsMenu.visible$.set(!1),!xe(Dt.ui.settingsSubMenu.visible$)){let $=xe(Dt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&$){let oe=El($),Ee={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Ee,name:"settings"})}}se.log("close settings menu")},Lr=(c,$=()=>Promise.resolve())=>St(null,null,function*(){var Ee;Dt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Dt.ui.settingsMenu.visible$.set(!0),yield $();let M=xe(Dt.ui.settingsMenu.ref$),oe=Ys();if((Ee=a==null?void 0:a.uiInfo)!=null&&Ee.onSettingsMenu&&M&&oe){let Rt=El(M),Nt=xs(M,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Rt,position:Nt,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:c})}),Fi=(c,$=!1)=>{var at;Dt.ui.settingsSubMenu.visible$.set(!1);let M=xe(Dt.ui.settingsMenu.ref$),oe=Ys(),Ee=xe(Dt.ui.settingsMenu.visible$);if((at=a==null?void 0:a.uiInfo)!=null&&at.onSettingsMenu&&M&&oe)if(Ee&&!$){let Nt=El(M),Ft=xs(M,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Ft,name:"settings"})}else{let Nt=El(c),Ft={top:0,left:0,bottom:0,right:0},Is=xe(Dt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Nt,position:Ft,name:Is})}se.log("close settings sub menu")},$t=(c,$)=>{var oe;Dt.ui.settingsSubMenu.visible$.set(!0),Dt.ui.settingsSubMenu.ref$.set($),Dt.ui.settingsSubMenu.name$.set(c);let M=Ys();if((oe=a==null?void 0:a.uiInfo)!=null&&oe.onSettingsMenu&&$&&M){let at=El($),Rt=xs($,M);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:at,position:Rt})}se.log("open settings sub menu",{name:c})},ai=()=>{var $;let c=Math.max(le.volumeMinRestore,($=uu())!=null?$:0);return c===0?le.volumeDefault:c},Ei=c=>{let $=le.features.savePreferredStatesOnUserActionOnly;return!$||$&&!c},ko=(c,$)=>{let M=c===0?ai():c,oe=R.info.muted$.getValue();he({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Ee=!l||Re.is("ads");oe&&c>0&&Ee&&(oe=!1,Ei($)&&wf(!1)),R.setVolume(c,oe),Be.setVolume(c),Ei($)&&_f(M)},Ri=(c,$)=>{let M=R.info.volume$.getValue();he({message:`set muted, currentVolume: ${M}, mute: ${c}`});let oe=Re.is("ads");if(R.setMuted(c,oe),Be.setVolume(c?0:M),Ei($)&&(!oe||!c)&&wf(c),!c&&M===0){let Ee=ai();R.setVolume(Ee),Ei($)&&_f(Ee),Be.setVolume(Ee)}},Po=ae(!1),co=c=>{var $,M;se.log("set looped",{isLooped:c}),Po.set(c),R.setLooped(c),(M=($=a==null?void 0:a.uiInfo)==null?void 0:$.onLoopedChanged)==null||M.call($,c)};co(ge);let $o=()=>{var c,$;($=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||$.call(c)},Zi=(c,$=!1)=>{var M;he({message:`set autoplayNextEnabled, value: ${c}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:c}),Dt.ui.autoplayNextEnabled$.set(c),_1(c),$&&((M=a==null?void 0:a.onSetAutoplayNextEnabled)==null||M.call(a,c))},mr=c=>{he({message:`set timerNextVideoRunning, value: ${c}`}),se.log("set timer next video running",{timerNextVideoRunning:c}),Dt.ui.timerNextVideoRunning$.set(c)},vr=(c=!0)=>{var M;let $=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{$=(M=a==null?void 0:a.onPrevVideoClick)==null?void 0:M.call(a)}catch(oe){he({message:"onPrevVideoClick callback failed to execute"})}Y(!0),$&&Q()},ps=(c=!0)=>{var M;let $=!0;if(c&&(a!=null&&a.onNextVideoClick))try{$=(M=a==null?void 0:a.onNextVideoClick)==null?void 0:M.call(a)}catch(oe){he({message:"onNextVideoClick callback failed to execute"})}Y(!1),$&&ie()},Jr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},yo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Mn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},Vr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Rr=()=>{R.prepare()},st=()=>{(0,ft.assertNonNullable)(Dt);let c=xe(Dt.ui.controls.disabledControls$),$=xe(Dt.playerPhase),M={playerPhase:$,isInteractive:T,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(he({message:"toggle play"}),$==="ads"){M.action="play",se.log("toggle adman play",M),Be.togglePlay();return}let oe=()=>{var at;he({message:"toggle play, call player.play"}),M.action="play",R.play(),(at=a==null?void 0:a.onPlay)==null||at.call(a)},Ee=()=>{var at;he({message:"toggle play, call player.pause"}),M.action="pause",R.pause(),(at=a==null?void 0:a.onPause)==null||at.call(a)};if(R.info.isEnded$.getValue()){if(he({message:"toggle play, video ended, seek to 0"}),dt.next(),jt.next(cs.SeekAction.REWIND),T){V==null||V();return}R.seekTime(0),oe()}else R.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING?oe():Ee();se.log("toggle play",M)},kt=(c,{changeReason:$="default",appliesTo:M="to-video"}={},oe)=>{he({message:`set quality, quality: ${c}`}),se.log("set quality",{quality:c}),R.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ee}=le.features;pu(),c!=="auto"?(Ee?(fu({type:"exact_quality",quality:c,videoId:i},M),R.setPredefinedQualityLimits(hi.PredefinedQualityLimits.UNKNOWN)):bf(i,c),En.set(c),R.setQuality(c)):Ee&&$==="default"&&(xo("auto_quality",M,oe),xe(To)&&$i(!1,void 0,oe),xe(ui)&&Xi(!1,void 0,oe))},$i=(c,$="as-default",M)=>{he({message:`set trafficSavingEnabled, value: ${c}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?hi.PredefinedQualityLimits.TRAFFIC_SAVING:hi.PredefinedQualityLimits.UNKNOWN;le.features.qualityDetailsSubMenuEnabled?(Ao(oe,$,M),$d(!1)):(R.setPredefinedQualityLimits(oe),Ei(M)&&$d(c))},Xi=(c,$="as-default",M)=>{he({message:`set highQualityEnabled, value: ${c}`}),se.log("set high quality enabled",{highQualityEnabled:c}),Ao(c?hi.PredefinedQualityLimits.HIGH_QUALITY:hi.PredefinedQualityLimits.UNKNOWN,$,M)},Ao=(c,$,M)=>{c!==hi.PredefinedQualityLimits.UNKNOWN&&(xe(wt)&&!xe(Yn)&&kt("auto",{appliesTo:$,changeReason:"limit-changed"},M),xo(c,$,M)),R.setPredefinedQualityLimits(c)},xo=(c,$,M)=>{Ei(M)&&(fu({type:c,videoId:i},$),$==="as-default"&&fu({type:c,videoId:i},"to-video"))},uo=c=>{se.log("set playback rate",{playbackRate:c}),R.setPlaybackRate(c),le.features.saveRate&&ue&&!R.info.isLive$.getValue()&&g1(c)},zo=()=>{let c=xe(In),$=c.findIndex(({selected:oe})=>oe);if($===c.length-1)return;let M=c[$+1];uo(M.value)},Ln=()=>{let c=xe(In),$=c.findIndex(({selected:oe})=>oe);if($===0)return;let M=c[$-1];uo(M.value)},pn=(c=Ht(W({},Ai),{selected:!1}),$)=>{se.log("set subtitles",W({},c)),c.value!==Ai.value&&so.next(c.isAuto?c.value+"_auto":c.value),Hi.set(c),Ei($)&&(Ef(c.value===Ai.value?void 0:c.language),le.features.userVideoPrefs&&i&&If(le.userSalt,String(i),{subtitleTrackId:c.value===Ai.value?void 0:c.value}))},Ji=c=>{se.log("toggle subtitles");let $=xe(Hi);($==null?void 0:$.value)===Ai.value?gr(c):Vn(c)},Mo=(c,$)=>{se.log("change subtitle",{enabled:c}),c?gr(!0,$):Vn(!0)},gr=(c,$)=>{se.log("subtitle on");let M=xe(Pn),oe=xe(ve),Ee;$&&(Ee=M.find(at=>at.value===$)),Ee!=null||(Ee=M.filter(at=>at.value!==Ai.value).find(at=>at.value===oe)||M[1]),pn(Ee,c)},Vn=c=>{se.log("subtitle off"),pn(void 0,c)};R.info.availableTextTracks$.subscribe(c=>{var M;function $(){let oe=[];for(let{language:Ee,isAuto:at,id:Rt}of c){let Nt=Ee&&Kd(Ee);Ee&&Nt&&oe.push({id:Rt,language:Ee,title:at?Ve("subtitles_auto",{language:Nt}):Nt})}return oe}(M=a==null?void 0:a.onAvailableSubtitlesChanged)==null||M.call(a,$())});let Rn=ae(!0),hr=c=>{Rn.set(c)},Nn=(c,$,M=!0)=>{var oe;if(he({message:`seek to time, time: ${c}`}),se.log("seek to time",{time:c,action:$,forcePrecise:M}),jt.next($),R.info.isLive$.getValue()){let Ee=R.info.duration$.getValue(),at=Math.min(0,Ee+c);R.seekTime(at,M)}else{if(E!=null&&E.getValue())return;R.info.isEnded$.getValue()&&(he({message:"seek after ended, call callbacks.onPlay"}),(oe=a==null?void 0:a.onPlay)==null||oe.call(a)),R.seekTime(Zv(c),M)}},Nr=c=>{he({message:`seek to episode start time: ${c}`}),se.log("seek to episode start time",{time:c}),Nn(c,cs.SeekAction.EPISODE,!0)},Lo=(c,$)=>{he({message:`seek to percent, percent: ${c}`}),se.log("seek to percent",{percent:c,action:$});let M=xe(qn)*c;Nn(M,$,!1)},On=c=>{he({message:`seek external, time: ${c}`}),se.log("seek external",{time:c}),jt.next(cs.SeekAction.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-c:c)},es=c=>{var oe,Ee;let $=(oe=c.max)!=null?oe:"none",M=(Ee=c.min)!=null?Ee:"none";he({message:`set auto quality limitation. Max: ${$}. Min: ${M}`}),se.log("set auto quality limits",{max:$,min:M}),R.setAutoQualityLimits(c)},Xe=c=>{he({message:`seek external to episode start time: ${c}`}),se.log("seek external to episode start time",{time:c}),Nn(c,cs.SeekAction.EPISODE,!0)},ti=c=>{he({message:`set playback rate to: ${c}`}),se.log("set playback rate external",{playbackRate:c}),R.setPlaybackRate(c)},wi=ae(void 0),Vo=ae(!1),_e=c=>{he({message:`start scrubbing, progress: ${c}`}),se.log("start scrubbing",{progress:c}),Vo.set(!0),Lt(c)},Lt=c=>{wi.set(c)},Zt,fi,eo=()=>{wi.set(void 0),Vo.set(!1)},po=()=>{clearTimeout(fi),clearTimeout(Zt),Zt=window.setTimeout(()=>{eo()},500),we==null||we.removeEventListener("seeked",po)},et=c=>{he({message:`complete scrubbing, progress: ${c}`}),se.log("complete scrubbing",{progress:c}),Lo(c,cs.SeekAction.SLIDER),xe(Dt.ui.isMobile)&&xe(Dt.state.currentFormat$)===hi.VideoFormat.HLS?(we==null||we.addEventListener("seeked",po),fi=window.setTimeout(()=>{po()},300)):eo()},Yt=ki([ao,qn,wi],([c,$,M],oe)=>{oe((0,ft.isNonNullable)(M)?M*$:c)}),Ui=ae(!1),Wo=()=>{Ui.set(!0)},fn=()=>{Ui.set(!1)},er=ki([At],([{width:c}],$)=>{let M=j1(c);$(M)}),_r=ae(!1),Or=J.filter(c=>o1(c)),to=ki([er,_r],([c,$])=>$?Or.filter(M=>!M.hideOnMobile):Or.filter(M=>{var oe;return!((oe=M.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),mi=ae(J.filter(c=>n1(c))),mn=ki([mi,er],([c,$])=>c.filter(M=>{var oe;return!((oe=M.hideOnDesktopGridTypes)!=null&&oe.includes($))})),br=ki([mn,to],([c,$])=>[...le.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...le.features.additionalButtons?$.map((M,oe)=>{var Ee;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Ee=M.ariaLabel)!=null?Ee:M.tooltip,tooltipText:M.tooltip}}):[]]),Ko=ae(H),wo=ki([Ko],([c])=>le.features.additionalSettingsMenuItems?c.map($=>$.type==="SWITCH"?Ht(W({},$),{onClick:$.onChangeEnabled}):$):[]),Wa=(c,$)=>{let M=xe(mi).map(oe=>oe.id!==c?oe:W(W({},oe),$));mi.set(M)},yt=c=>{let $=xe(mi);if($.some(M=>M.id===c.id)){he({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),mi.set($)},xt=c=>{let $=xe(mi);if(!$.some(M=>M.id===c)){he({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}$=$.filter(M=>M.id!==c),mi.set($)},fo=c=>{jt.next(cs.SeekAction.LIVE),he({message:"live switch to low latency "+c}),se.log("live switch to low latency "+c),R.setLiveLowLatency(c)},vn=(c,$)=>{let M=xe(Ko).map(oe=>oe.id!==c?oe:W(W({},oe),$));Ko.set(M)},zi=c=>{let $=xe(Ko);if($.some(M=>M.id===c.id)){he({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),Ko.set($)},vi=c=>{let $=xe(Ko);if(!$.some(M=>M.id===c)){he({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(M=>M.id!==c),Ko.set($)},gi=ae(F),js=ki([gi],([c])=>le.features.additionalContextMenuItems?c:[]),Ka=(c,$)=>{let M=xe(gi).map(oe=>oe.id!==c?oe:W(W({},oe),$));gi.set(M)},up=c=>{let $=xe(gi);if($.some(M=>M.id===c.id)){he({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}$.push(c),gi.set($)},xc=c=>{let $=xe(gi);if(!$.some(M=>M.id===c)){he({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}$=$.filter(M=>M.id!==c),gi.set($)},pp=ki([_r,zt],([c,$],M)=>{M(c&&$)}),wc=()=>{jt.next(cs.SeekAction.LIVE),he({message:"switch to active live"}),se.log("switch to active live"),R.seekTime(0),R.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING&&Dt.actions.internal.togglePlay()},fp=()=>{se.log("skip adman"),Be.skip()},Sc=(c=!0)=>{var oe;(0,ft.assertNonNullable)(Dt),he({message:`switch from ads to video, callPlay: ${c}`}),se.log("switch from ads to video",{callPlay:c}),Ue.set("video"),c&&R.play(),l&&Ri(!0,!0);let $=(oe=xe(Qe))==null?void 0:oe.muted,M=!R.info.muted$.getValue();$!==void 0&&!M&&Ri($,!0),Qe.set(void 0)},mp=()=>{(0,ft.assertNonNullable)(Dt),he({message:"switch from video to ads"}),se.log("switch from video to ads"),Dt.actions.internal.pause(),Wt(),Ue.set("ads")},Cc=c=>{(0,ft.assertNonNullable)(Dt);let $=c?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:c,playerPhase:$}),Ue.set($)},vp=c=>{(0,ft.assertNonNullable)(Dt);let $=c?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:c,playerPhase:$}),Ue.set($)},Tc=c=>{(0,ft.assertNonNullable)(Dt);let $=c?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:c,playerPhase:$}),Ue.set($)},Ec=()=>((0,ft.assertNonNullable)(Dt),se.log("get debug text data"),e1(R,te,Dt,He.getTraceId())),Ic=()=>((0,ft.assertNonNullable)(Dt),JSON.stringify(He.getFinishedSpans())),gp=()=>((0,ft.assertNonNullable)(Dt),t1(R,te,Dt)),Ys=()=>we,hp=()=>{he({message:"toggle chromecast"}),se.log("toggle chromecast"),R.toggleChromecast()},Ul=c=>{var M;if((0,ft.assertNonNullable)(Dt),R.info.isEnded$.getValue())return;let $=!c;if(xe(Dt.playerPhase)==="ads"){he({message:`pause ads, internalCall: ${$}`}),se.log("pause ads",{internalCall:$}),Be.pause();return}he({message:`pause video, internalCall: ${$}`}),se.log("pause video",{internalCall:$}),$&&((M=a==null?void 0:a.onPause)==null||M.call(a)),R.pause()},kc=c=>{var M;(0,ft.assertNonNullable)(Dt);let $=!c;if(xe(Dt.playerPhase)==="ads"){he({message:`play ads, internalCall: ${$}`}),se.log("play ads",{internalCall:$}),Be.play();return}he({message:`play video, internalCall: ${$}`}),se.log("play video",{internalCall:$}),$&&((M=a==null?void 0:a.onPlay)==null||M.call(a)),R.play()},_p=c=>{(0,ft.assertNonNullable)(Dt);let $=!c;if(xe(Dt.playerPhase)==="ads"){he({message:"player cannot be stopped during ads via external method"});return}he({message:`player will be stopped, internalCall: ${$}`}),k==null||k()},Pc=(c,$)=>{(0,ft.assertNonNullable)(Dt),he({message:`first start, show ads: ${c}, internalCall: ${!$}`}),se.log("first start",{showAds:c,external:$}),c?Ue.set("ads"):(Ue.set("video"),$?R.play():Dt.actions.internal.togglePlay())},Ge=()=>(he({message:"getting time codes"}),f),li=()=>{let c=Ge();if(!c||[0,1].includes(c.length))return;let $=R.info.position$.getValue();return c.find(M=>M.time>$)},qo=c=>{let $=c;$||($=li());let M=R.info.position$.getValue();se.log("seek to next episode",W({currentTime:M},$)),$&&(he({message:"seek to next episode"}),Nn($.time,cs.SeekAction.EPISODE,!0))},Es=()=>{let c=Ge();if(!c||[0,1].includes(c.length))return;let $=R.info.position$.getValue(),M=c.findIndex(Ee=>Ee.time>$),oe=M===-1?c.length-2:M-2;if(!(oe<0))return c[oe]},gn=c=>{let $=c;$||($=Es());let M=R.info.position$.getValue();se.log("seek to prev episode",W({currentTime:M},$)),$&&(he({message:"seek to prev episode"}),Nn($.time,cs.SeekAction.EPISODE,!0))},G0=()=>(he({message:"getting preview thumbs data"}),se.log("get preview thumbs data",W({},m)),m),j0=()=>St(null,null,function*(){let c=ee==null?void 0:ee.isActive(),$="none";ee!=null&&ee.isActive()?($="exit",yield ee==null?void 0:ee.exit()):($="request",yield ee==null?void 0:ee.request()),se.log("toggle picture in picture",{isActive:c,action:$})}),Y0=(c=-90)=>{se.log("rotate video",{alphaDiff:c}),Ut.update($=>$+c)},Ac=ae([]);C==null||C.subscribe(c=>{let $=[];for(let M=0;M<c.length;M++){let{range:[oe,Ee],subjects:at}=c[M];M===0&&oe!==0&&$.push({time:0,text:"",interactive:!1,completed:!0}),$.push({time:oe/1e3,text:"",interactive:!0,completed:le.features.interactiveTimeOpenUri?!at.length||at.every(Rt=>Rt.isRemoved):!at.length}),Ee!==1/0&&$.push({time:Ee/1e3,text:"",interactive:!1,completed:!0})}Ac.set($)});let Z0=ae(!1);E==null||E.subscribe(c=>{c&&xe(Vo)&&eo()});let Zv=c=>{if(!T)return c;let $=xe(Ac),M=xe(qn),Ee=xe(Gn)/M,at=$.find(Rt=>Rt.interactive&&!Rt.completed&&Rt.time>Ee);return typeof(at==null?void 0:at.time)=="number"?Math.min(c,at.time-.05):c},X0=()=>{Dt.ui.episodes.panelOpened$.set(!1)},J0=()=>{se.log("destroy store"),clearTimeout(fi),clearTimeout(Zt),ot.unsubscribe(),ni.unsubscribe(),R.destroy(),Be.destroy(),X==null||X.destroy(),G==null||G.destroy(),re.unsubscribe(),Ci==null||Ci.disconnect(),Ci=null,je.destroy()},Dt={interfaceLanguage$:ve,isCyrillicRelatedInterface$:ce,initVideo:nt,videoId:i,isClip:o,playerPhase:Re,vsid:bt,state:{positionExact$:ao,positionWithScrubbing$:Yt,duration$:qn,playbackState$:en,isPlaying$:Qn,isLoaderVisible:dn,bufferedProgress$:Ar,isLive$:ut,canChangePlaybackSpeed$:Kt,isActiveLive$:Tr,isOldestAvailableLive$:Er,isRewindableLive$:cn,isEnded$:Ke,muted$:pi,volume$:ci,trafficSavingEnabled$:To,highQualityEnabled$:ui,autoQualityLimitingAvailable$:wt,availableVideoStreams$:lo,availableAudioStreams$:on,videoStream$:jn,audioStream$:Tn,currentQuality$:ho,isAutoQualityEnabled$:Yn,availableQualities$:si,currentPlaybackRate$:un,availablePlaybackRates$:In,currentSubtitle$:Hi,availableTextTracks$:Uo,availableSubtitlesList$:Pn,currentSubtitleCaptions$:Xr,isAutoSubtitleCaptionVisible$:Xn,chromecastState$:wn,chromecastDeviceName$:Gi,chromecastConnected$:cr,currentFormat$:ji,throughputEstimation$:Fo,videoBitrate$:Sn,videoSize$:Kn,errorLog$:qt,crashed$:zt,isAudioAvailable$:Cn,isAudioDisabled:!!l,canDownload:le.features.download&&!!d,availableSources$:Jn,hasMpegSources$:Io,isInteractive:T,showInteractiveGraph:le.features.interactiveGraph,showSeekToInteractive:le.features.seekToInteractive,showPlayPrevChapter:le.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:le.features.interactiveTimeIndicator&&!!xe(Ac).length,interactiveEpisodes$:Ac,isInteractiveTime$:E?oi(E):ae(!1),isInteractiveExpectation$:Z0,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,looped$:Po,loadedMetadata$:Xt,isAutoQualityAvailable$:vt},ui:{t:Ve,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:J.length?J.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Je},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:mt,isFullscreenOpenedByKeyboard:Et,rotateAlpha:Ut,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:At,isMobile:_r,mobileNotReportControlHidden$:pp,icon3DVideoVisible:ae(!1),scrubbingInProgress:Vo,volumeChangingInProgress:Ui,is3DVideo:Gt,currentGridType$:er,additionalButtonsDeprecated$:to,additionalDesktopControlPanelRightButtons$:br,additionalSettingsMenuItems$:wo,additionalContextMenuItems$:js,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:Rn,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:Oe,slotsApi:it},actions:{internal:{preload:Rr,firstStart:c=>Pc(c,!1),play:()=>kc(!1),pause:()=>Ul(!1),togglePlay:st,toggleMuted:Mr,openSettingsMenu:Lr,closeSettingsMenu:us,openSettingsSubMenu:$t,closeSettingsSubMenu:Fi,setVolume:c=>ko(c,!1),setMuted:c=>Ri(c,!1),startVolumeChanging:Wo,stopVolumeChanging:fn,setVideoStream:Ir,setAudioStream:c=>ur(c,!1),setQuality:(c,$)=>kt(c,$,!1),setTrafficSavingEnabled:(c,$)=>$i(c,$,!1),setHighQualityEnabled:(c,$)=>Xi(c,$,!1),setPlaybackRate:uo,incrementPlaybackRate:zo,decrementPlaybackRate:Ln,setSubtitle:c=>pn(c,!1),toggleSubtitle:()=>Ji(!1),togglePictureInPicture:j0,startScrubbing:_e,progressScrubbing:Lt,completeScrubbing:et,toggleChromecast:hp,switchToActiveLive:wc,switchFromAdsToVideo:Sc,switchFromVideoToAds:mp,skipAd:fp,setLiveWaitingStart:Cc,setLiveWaitingRecover:vp,setLiveWaitingRecord:Tc,getDebugTextData:Ec,getTraceTextData:Ic,getDebugPanelData:gp,getVideoElement:Ys,seekTime:(c,$,M)=>Nn(c,$,M),clearDelayedBufferingCheckTimeout:Cr,seekEpisodeStartTime:Nr,seekToPercent:Lo,getNextEpisode:li,seekToNextEpisode:qo,getPrevEpisode:Es,seekToPrevEpisode:gn,startLogging:Jo,stopLogging:Ho,startCameraManualRotation:Co,stopCameraManualRotation:It,moveCameraFocusPX:gt,holdCamera:xi,releaseCamera:ri,getVideoEpisodes:Ge,getPreviewThumbsData:G0,downloadVideo:bo,addLanguage:kf,setLanguage:Se,nextMovie:bi,videoRotate:Y0,correctSeekTimeToInteractive:Zv,replayInteractive:V,setLooped:co,reportProblem:$o,setAutoplayNextEnabled:Zi,setTimerNextVideoRunning:mr,prevVideoClick:vr,nextVideoClick:ps,nextVideoAnnouncementShow:Jr,nextVideoAnnouncementClick:yo,nextVideoAnnouncementAuto:Mn,nextVideoAnnouncementCancel:Vr},external:{firstStart:c=>Pc(c,!0),play:()=>kc(!0),pause:()=>Ul(!0),stop:()=>_p(!0),seekTime:c=>On(c),seekEpisodeStartTime:c=>Xe(c),setPlaybackRate:c=>ti(c),setAutoQualityLimits:c=>es(c),setMuted:c=>Ri(c,!0),toggleSubtitle:()=>Ji(!0),changeSubtitle:Mo,setVolume:c=>ko(c,!0),returnFocusToEpisodes:X0,updateAdditionalSettingsItem:vn,addAdditionalSettingsItem:zi,removeAdditionalSettingsItem:vi,updateAdditionalContextItem:Ka,addAdditionalContextItem:up,removeAdditionalContextItem:xc,updateAdditionalButton:Wa,addAdditionalButton:yt,removeAdditionalButton:xt,setLiveLowLatency:fo,hideControls:()=>hr(!1),showControls:()=>hr(!0),setQuality:c=>kt(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>$i(c,"to-video",!0),setHighQualityEnabled:c=>Xi(c,"to-video",!0)}},callbacks:a,setUiCallbacks:c=>{ke=W({},c)},getAdmanWrapper:()=>Be,getLogger:()=>$e,getPlayer:()=>R,destroy:J0};return Dt};function zn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=xs(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Ey=["disabledControls$","additionalButtons"],Iy=["interactiveTimeIndicator"],kl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!Ey.includes(n)){let l=o||Iy.includes(n);s.set(zn(t,i,n,l))}}};var Du=(t,e,i)=>St(null,null,function*(){yield No(),e&&i&&(i.focus(),t.set(!1))});var ky=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Em(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=ky();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}function Im(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(a,"$contextMenuVisible$",i),s=v(e,"disabled",3,!1),l=v(e,"ariaLabel",3,""),d=Ie(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,w=Z(void 0);qe(()=>{r(w)&&Ct(()=>{p.set(r(w))})});let x=E=>{let V=Fs(E),k=D1(r(w));m.set(k),u.set(V),a.set(!n())},y=()=>{f.set(!0)},T=()=>{f.set(!1)},C=g(()=>n()?"opened":"");Bt(t,{get className(){return r(C)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:x,focus:y,blur:T,get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){O(w,E,!0)},children:(E,V)=>{Em(E,{})},$$slots:{default:!0}}),z(),o()}var Py=t=>{t.stopPropagation()},Ay=A("<div><!> <div></div> <div></div></div>"),My={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
226
226
 
227
227
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
228
228
  }
@@ -247,8 +247,8 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
247
247
  opacity: 0;
248
248
  }
249
249
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
250
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Gd(t,e){var ie;U(e,!0),Q(t,ky);let[i,o]=Fe(),n=()=>C(S,"$isMobile",i),s=()=>C(k,"$areControlsVisible",i),l=()=>C(R,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),u=()=>C(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),p=Y(void 0),x=Ie(),w=xo(),{interactiveControlsOpacity$:y}=w,S=x.ui.isMobile,T=x.ui.isFullscreen,E=x.state.isInteractiveTime$,V=w.showInteractiveTimeIndicatorTooltip$,k=x.ui.controlsVisible,I=(ie=x.callbacks)==null?void 0:ie.onInteractiveTimeIndicatorClick,R=x.ui.currentGridType$,Z=g(()=>!n()&&s()),H=g(()=>Ks(l(),"s")),F=g(()=>!d()||!!a()||r(Z)),K=Y(!1);qe(()=>{O(K,r(F),!0)});let ee=()=>{O(K,!0)},j=()=>{var ve;ue(),(ve=r(p))==null||ve.addEventListener("animationiteration",ee,{once:!0})},ue=()=>{var ve;O(K,!1),(ve=r(p))==null||ve.removeEventListener("animationiteration",ee)},oe=ve=>{V.set(ve)},pe=g(()=>u()&&!r(F));qe(()=>{u()?j():ue()});let ye=()=>{r(F)||(V.set(!0),I==null||I())};ln(()=>{V.clearTimeout(),ue()});let me=()=>{V.set(!1)},Pe=q("tooltip_interactive_interaction_time_indicator");var re=Iy();let Re;re.__mousemove=[Ey],re.__click=ye;var se=_(re);Ro(se,{get tooltipContent(){return Pe},get tooltipActive(){return r(pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:oe,get ref(){return v()},set ref(ve){v(ve)},children:(ve,He)=>{Dd(ve,{completed:!0})},$$slots:{default:!0}});var N=P(se,2);let De;nt(N,ve=>v(ve),()=>v());var de=P(N,2);let ge;nt(de,ve=>O(p,ve),()=>r(p)),h(re),B((ve,He,fe)=>{Re=te(re,1,"interactive-episode-icon-animated svelte-od3veb",null,Re,ve),De=te(N,1,"ref-block svelte-od3veb",null,De,He),ge=te(de,1,"pulse svelte-od3veb",null,ge,fe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(K)})]),Tt("mouseleave",re,me),$(t,re),z(),o()}ct(["mousemove","click"]);function Du(t,e){U(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),s=m(e,"ref",15);Ro(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=Ke();let u=g(()=>e.buttonComponent);var f=he(a);ki(f,()=>r(u),(v,p)=>{p(v,$s(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),$(l,a)},$$slots:{default:!0}}),z()}var ws={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Ay=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Im(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function qs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),s=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");Im(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var My=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Ly=M("<!> <!>",1),Vy={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Ma(t,e){U(e,!0),Q(t,Vy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ie().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Dt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=Ly(),x=he(p);{var w=T=>{var E=My();$(T,E)};L(x,T=>{o()&&T(w)})}var y=P(x,2);let S=g(()=>e.type==="prev");qs(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,p)},$$slots:{default:!0}}),z()}var Ry=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function jd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var a_=require("@vkontakte/videoplayer-shared/es2015");var Ny=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Oy=M("<!> <div><!></div>",1),By={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Al(t,e){U(e,!0),Q(t,By);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=m(e,"className",3,""),l=m(e,"click",3,a_.noop),d=q("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Dt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return ls.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=Oy(),p=he(v);{var x=T=>{var E=Ny();$(T,E)};L(p,T=>{o()&&T(x)})}var w=P(p,2);let y;var S=_(w);jd(S,{}),h(w),B(T=>y=te(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(u,v)},$$slots:{default:!0}}),z()}var Dy=Ee('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function qr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Dy(),d=_(l);h(l),B(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}var Hy=Ee('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Ss(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Hy(),d=_(l);h(l),B(()=>{Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",n()),Ue(d,"fill",s())}),$(t,l)}var l_=require("@vkontakte/videoplayer-shared/es2015");var Fy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Uy=M("<!> <div><!></div>",1),zy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Ml(t,e){U(e,!0),Q(t,zy);let[i,o]=Fe(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=xo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,l_.noop),x=Ie().ui.t,{toggle:w}=s,y=g(()=>w),S=g(()=>n()!==null),T=g(()=>r(S)?n():a()),E=g(()=>r(T)?x("tooltip_pause"):x("tooltip_play")),V=g(()=>r(T)?Ss:qr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),I=g(()=>r(S)?r(y):v());Dt(t,{get className(){return r(k)},testId:"btn-play",get click(){return r(I)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return ls.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,Z)=>{var H=Uy();let F=g(()=>r(V));var K=he(H);{var ee=pe=>{var ye=Fy();$(pe,ye)};L(K,pe=>{d()&&pe(ee)})}var j=P(K,2);let ue;var oe=_(j);ki(oe,()=>r(F),(pe,ye)=>{ye(pe,{})}),h(j),B(pe=>ue=te(j,1,"svelte-1ot3duq",null,ue,pe),[()=>({mobile:d()})]),$(R,H)},$$slots:{default:!0}}),z(),o()}var Wy=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function km(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function Yd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=q("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Dt(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{km(d,{})},$$slots:{default:!0}}),z()}var Ky=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),qy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Zd(t,e){U(e,!0),Q(t,qy);let[i,o]=Fe(),n=()=>C(a,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),l=Ie(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},v=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");Dt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return r(p)},get ref(){return s()},set ref(x){s(x)},children:(x,w)=>{var y=Ky(),S=_(y);let T;var E=_(S);{var V=I=>{qr(I,{width:"14",height:"14",fill:"#000"})},k=I=>{Ss(I,{width:"14",height:"14",fill:"#000"})};L(E,I=>{n()?I(V):I(k,!1)})}h(S),h(y),B(I=>T=te(S,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:n()})]),$(x,y)},$$slots:{default:!0}}),z(),o()}var Qy=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Pm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function Xd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=q("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Dt(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Pm(d,{})},$$slots:{default:!0}}),z()}var Gy=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Am(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var jy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Mm(t,e){Q(t,jy);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Am(t,{get"data-testid"(){return r(o)}})}function Jd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=g(()=>o()?"hidden":"");Dt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=g(()=>!!s());Mm(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}var Lm=require("@vkontakte/videoplayer-core/es2015");function ec(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(u,"$playbackState$",i),s=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ie(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===Lm.PlaybackState.PAUSED&&v()}),x=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===Lm.PlaybackState.PLAYING);Dt(t,{get className(){return r(x)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(S,T)=>{Td(S,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}var Vm=require("@vkontakte/videoplayer-shared/es2015");var Yy=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Zy=M('<img class="icon" aria-hidden="true"/>');function La(t,e){"use strict";let i=Y(!1),o=()=>{O(i,!0)};var n=Ke(),s=he(n);{var l=a=>{var u=Yy();$(a,u)},d=a=>{var u=Zy();B(()=>Ue(u,"src",e.icon)),Tt("error",u,o),da(u),$(a,u)};L(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function Rm(t,e){U(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Vm.noop),n=m(e,"ref",15),s=g(()=>o()===Vm.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Ro(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Dt(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(v,p)=>{La(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var d_=t=>!!t.buttonComponent;var Cs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Hu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Un(t,i,n,o))};var e4=M('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),t4={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function Om(t,e){var yo,Ka;U(e,!0),Q(t,t4);let[i,o]=Fe(),n=()=>C(xi,"$disabledControls$",i),s=()=>C(Kt,"$adPlaybackState",i),l=()=>C(Rt,"$playbackState$",i),d=()=>C(pt,"$currentSubtitle$",i),a=()=>C(Ci,"$isEnded$",i),u=()=>C(ui,"$currentGridType$",i),f=()=>C($i,"$isLive$",i),v=()=>C(cn,"$chromecastState$",i),p=()=>C(Zt,"$isPictureInPictureActive",i),x=()=>C(yi,"$pictureInPictureType$",i),w=()=>C(Mt,"$availableSubtitlesList$",i),y=()=>C(si,"$contextMenuOpenedByKeyboard$",i),S=()=>C(Ki,"$showContextMenuBtn$",i),T=()=>C(ci,"$playerSize",i),E=()=>C(ri,"$isRewindableLive$",i),V=()=>C(ot,"$isActiveLive$",i),k=()=>C(en,"$graphIsOpened$",i),I=()=>C(Bo,"$contextMenuVisible$",i),R=()=>C(ut,"$isFullscreen",i),Z=()=>C(pi,"$autoplayNextEnabled",i),H=()=>C(r(Ar),"$prevButton",i),F=()=>C(r(ps),"$replayButton",i),K=()=>C(r(Mr),"$playButton",i),ee=()=>C(r(Bi),"$nextButton",i),j=()=>C(r(_t),"$playPrevChapterButton",i),ue=()=>C(r(Xt),"$seekToInteractiveButton",i),oe=()=>C(r(Gi),"$interactiveGraphButton",i),pe=()=>C(r(so),"$liveButton",i),ye=()=>C(r(ao),"$time",i),me=()=>C(r(Eo),"$episodes",i),Pe=()=>C(r(ho),"$vkLogo",i),re=()=>C(r(_o),"$volume",i),Re=()=>C(r(ji),"$subtitles",i),se=()=>C(r(fr),"$settings",i),N=()=>C(r(mr),"$context",i),De=()=>C(r(Xr),"$fullscreen",i),de=()=>C(r(Jr),"$chromecast",i),ge=()=>C(So,"$additionalDesktopControlPanelRightButtons$",i),ie=()=>C(no,"$isInteractiveTime$",i),ve=()=>C(Oo,"$settingsMenuVisible",i),He=()=>C(_i,"$settingButtonRef$",i),fe=()=>C(Xo,"$startedByKeyboard$",i),lt=()=>C(Qt,"$isAudioAvailable$",i),X=()=>C(qt,"$fakeIsPlaying$",i),Me=()=>C(Jo,"$seekToInteractiveDisabledTooltip$",i),ke=()=>C(ft,"$adPosition",i),We=()=>C(tt,"$position$",i),dt=()=>C(ze,"$adDuration",i),gt=()=>C(Be,"$duration$",i),ht=m(e,"playerControlsWrapperRef",15,void 0),Et=m(e,"playerControlsRef",15,void 0),je=m(e,"isAds",3,!1),zt=m(e,"logoTargetUrl",3,""),ti=m(e,"isOneVideoPlaylist",3,!1),Yt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:qt}=xo(),ne=Ie(),Wt=xo(),_e=At(),Se=ne.actions.internal.toggleMuted,le=ne.actions.internal.togglePlay,Ne=ne.actions.internal.pause,Qe=ne.actions.internal.toggleSubtitle,Ve=(yo=ne.callbacks)==null?void 0:yo.onAudioDoesNotExistHint,Ze=(Ka=ne.callbacks)==null?void 0:Ka.onAudioDisabledHint,Be=ne.state.duration$,tt=ne.state.positionWithScrubbing$,Rt=ne.state.playbackState$,Qt=ne.state.isAudioAvailable$,it=ne.state.isAudioDisabled,Ci=ne.state.isEnded$,$i=ne.state.isLive$,ot=ne.state.isActiveLive$,ri=ne.state.isRewindableLive$,{isActive$:Zt,type$:yi}=Wt.pictureInPicture$,Oo=ne.ui.settingsMenu.visible$,wo=ne.ui.settingsMenu.openedByBtnKeyboard$,Ut=ne.ui.controls,li=ne.actions.internal.getVideoEpisodes(),cn=ne.state.chromecastState$,Mt=ne.state.availableSubtitlesList$,pt=ne.state.currentSubtitle$,xi=Ut.disabledControls$,Bo=ne.ui.contextMenu.visible$,Ki=ne.ui.contextMenu.showContextMenuBtn$,si=ne.ui.contextMenu.openedByBtnKeyboard$,Xo=ne.ui.startedByKeyboard$,Wn=ne.ui.controlBlocks,D=ne.ui.t,ze=ne.ads.duration,ft=ne.ads.position,Kt=ne.ads.playbackState,ut=ne.ui.isFullscreen,ci=ne.ui.playerSize,ui=ne.ui.currentGridType$,So=ne.ui.additionalDesktopControlPanelRightButtons$,pi=ne.ui.autoplayNextEnabled$,wt=ne.actions.internal.getVideoElement,Ni=ne.actions.internal.replayInteractive,Do=ne.actions.internal.prevVideoClick,Kn=ne.actions.internal.nextVideoClick,Oi=ne.state.isInteractive,no=ne.state.isInteractiveTime$,Ho=ne.state.showInteractiveGraph,En=ne.state.showSeekToInteractive,In=ne.state.showPlayPrevChapter,Ai=ne.state.showInteractiveTimeIndicator,qi=ne.state.playPrevChapterDisabledTooltip,Jo=Wt.seekToInteractiveDisabledTooltip$,en=Wt.graphIsOpened$,un=_e.features.interactiveResponsiveUi,pn=g(()=>n().has("EPISODE_BUTTON")),Gr=g(()=>n().has("GRAPH_BUTTON")),qn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Sr=g(()=>n().has("PLAY_BUTTON")),lr=g(()=>n().has("REPLAY_BUTTON")),Cr=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),fn=()=>ne.actions.internal.toggleChromecast(),dr=g(()=>je()?s()==="playing":l()===Va.PlaybackState.PLAYING),ro=g(()=>d().value!=="off"),tn=g(()=>a()&&!je()||Oi),Qn=g(()=>un?r(tn)&&to(u(),"m"):r(tn)),kn=g(()=>!a()||Oi||je()),Tr=g(()=>to(u(),"m")),Gn=g(()=>e.showNextPrevButtons&&to(u(),"m")&&!je()&&e.nextButtonActive),cr=g(()=>e.showNextPrevButtons&&to(u(),"m")&&!je()&&e.prevButtonActive),Er=g(()=>!je()&&!!f()),Pn=g(()=>v()!==Va.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&to(u(),"m")&&!Oi),jn=g(()=>e.showAutoplayNext&&!ti()&&to(u(),"s")),Ir=g(()=>w().length>0&&to(u(),"m")),kr=g(()=>y()||S()),vo=g(()=>to(u(),"s")&&!je()),vt=g(()=>!e.logoHidden&&!je()),ii=g(()=>_e.features.fullscreen&&(e.logoHidden||to(u(),un?"xs":"s"))&&!(p()&&x()===1)&&(Oi?Yt():!0)),mn=g(()=>(!f()||je())&&!(_e.features.interactiveHideTime&&Oi)),Mi=g(()=>T().width>100),Qi=g(()=>Ho&&to(u(),"m")),on=g(()=>un?En&&to(u(),"s"):En),nn=g(()=>un?In&&to(u(),"s"):In),Co=g(()=>!je()&&!f()&&!!(li!=null&&li.length)&&r(Tr)&&!r(pn)),Yn=g(()=>!E()||!!V()),vn=g(()=>k()?D("tooltip_interactive_graph_on"):D("tooltip_interactive_graph_off")),Fo=g(()=>I()?D("tooltip_context_menu_close"):D("tooltip_context_menu_open")),jr=(yt,xt)=>yt?xt&&xt===Va.PlaybackState.PAUSED?D("tooltip_play"):"":D("tooltip_live"),Yr=g(()=>jr(r(Yn),l())),Pr=g(()=>_e.logoType==="vk_video"?D("tooltip_vk_video_logo"):D("tooltip_vk_logo")),Zr=g(()=>r(ro)?D("tooltip_subtitles_on"):D("tooltip_subtitles_off")),Zn=g(()=>R()?D("tooltip_fullscreen_on"):D("tooltip_fullscreen_off")),ur=g(()=>v()===Va.ChromecastState.CONNECTED?D("tooltip_chromecast_on"):D("tooltip_chromecast_off")),pr=g(()=>Z()?D("tooltip_autoplay_on"):D("tooltip_autoplay_off")),To=Y(0),ei=ai({}),go=ai({}),Ar=g(()=>Ut.prevButton),ps=g(()=>Ut.replayButton),Mr=g(()=>Ut.playButton),Bi=g(()=>Ut.nextButton),_t=g(()=>Ut.playPrevChapterButton),Xt=g(()=>Ut.seekToInteractiveButton),Gi=g(()=>Ut.interactiveGraphButton),so=g(()=>Ut.liveButton),ao=g(()=>Ut.time),Eo=g(()=>Ut.episodes),ho=g(()=>Ut.vkLogo),_o=g(()=>Ut.volume),ji=g(()=>Ut.subtitles),fr=g(()=>Ut.settings),mr=g(()=>Ut.context),Xr=g(()=>Ut.fullscreen),Jr=g(()=>Ut.chromecast),bo=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:K()?K().right-K().left:0,nextButton:ee()?ee().right-ee().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:pe()?pe().right-pe().left:0,time:ye()?ye().right-ye().left:0,episodes:me()?me().right-me().left:0,vkLogo:Pe()?Pe().right-Pe().left:0,volume:re()?re().right-re().left:0,subtitles:Re()?Re().right-Re().left:0,settings:se()?se().right-se().left:0,context:N()?N().right-N().left:0,fullscreen:De()?De().right-De().left:0,chromecast:de()?de().right-de().left:0,additionalButtons:ge().length?ge().reduce(yt=>[...yt,40],[]):[]})),An=Y(0);qe(()=>{(!r(An)||r(An)<r(bo).time)&&Ct(()=>O(An,r(bo).time,!0))});let Lr=Y(!1);qe(()=>{let yt=0;r(Co)&&(to(u(),"xl")?yt=r(bo).time:yt=60);let xt=r(bo).prevButton+r(bo).playButton+r(bo).nextButton+r(bo).seekToInteractiveButton+r(bo).interactiveGraphButton+r(bo).liveButton+r(An)+yt;O(Lr,r(mn)&&r(To)>=xt,!0)});let Vr=g(()=>r(Lr)&&to(u(),"m")),rt=(0,Nm.debounceFn)(Pl,260),It=(0,Nm.debounceFn)(Hu,260);qe(()=>{T(),ie(),rt(wt(),Ut,ei,e.showControls),It(wt(),Wn,go,e.showControls)}),qe(()=>{go.bottom=ht()});let _i=ae();qe(()=>{ve(),He()&&Ct(()=>xl(He(),ve(),wo))});let Yi;qe(()=>{fe(),Ct(()=>Bu(Xo,fe(),Yi))});function Io(){Us({isAudioDisabled:it,isAudioAvailable:lt(),isAds:je(),audioIsNotExistHintCallback:Ve,audioDisabledHintCallback:Ze})&&Se()}let $o=Oi?Ni:le,lo=g(()=>X()!==null),Uo=g(()=>r(lo)?X():r(dr)),Mn=g(()=>r(Uo)?D("tooltip_pause"):D("tooltip_play")),gn=D("tooltip_episodes"),Zi=g(()=>{var yt,xt,uo,bn;return r(cr)?{id:"prevButton",type:"desktop-control-panel-left",weight:ws.prevButton,buttonComponent:Ma,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Do.bind(null,!0)},tooltipEnabled:!((xt=(yt=ne.callbacks)==null?void 0:yt.uiInfo)!=null&&xt.onPrevButtonMouseEnter)&&!((bn=(uo=ne.callbacks)==null?void 0:uo.uiInfo)!=null&&bn.onPrevButtonMouseLeave),mouseEnter:()=>{var Hi,vi,gi;(gi=(vi=(Hi=ne.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:vi.onPrevButtonMouseEnter)==null||gi.call(vi,Un(wt(),ei,"prevButton",e.showControls))},mouseLeave:()=>{var Hi,vi,gi;(gi=(vi=(Hi=ne.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:vi.onPrevButtonMouseLeave)==null||gi.call(vi,Un(wt(),ei,"prevButton",e.showControls))},tooltipText:D("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),ko=g(()=>r(Qn)?{id:"replayButton",type:"desktop-control-panel-left",weight:ws.replayButton,buttonComponent:Al,buttonComponentProps:{disabled:r(lr),click:$o},tooltipText:D("tooltip_restart"),disabled:r(lr)}:void 0),vr=g(()=>r(kn)?{id:"playButton",type:"desktop-control-panel-left",weight:ws.playButton,buttonComponent:Ml,buttonComponentProps:{disabled:r(Sr),isPlaying:r(dr),click:le},tooltipText:r(Mn),disabled:r(Sr)}:void 0),Ln=g(()=>{var yt,xt,uo,bn;return r(Gn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ws.nextButton,buttonComponent:Ma,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Kn.bind(null,!0)},tooltipEnabled:!((xt=(yt=ne.callbacks)==null?void 0:yt.uiInfo)!=null&&xt.onNextButtonMouseEnter)&&!((bn=(uo=ne.callbacks)==null?void 0:uo.uiInfo)!=null&&bn.onNextButtonMouseLeave),mouseEnter:()=>{var Hi,vi,gi;(gi=(vi=(Hi=ne.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:vi.onNextButtonMouseEnter)==null||gi.call(vi,Un(wt(),ei,"nextButton",e.showControls))},mouseLeave:()=>{var Hi,vi,gi;(gi=(vi=(Hi=ne.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:vi.onNextButtonMouseLeave)==null||gi.call(vi,Un(wt(),ei,"nextButton",e.showControls))},tooltipText:D("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Vn=g(()=>Oi&&r(nn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ws.playPrevChapterButton,buttonComponent:Yd,buttonComponentProps:{disabled:r(Cr),click:e.playPrevChapter},tooltipText:D("tooltip_interactive_go_back"),disabledTooltipContent:D(qi),disabled:r(Cr)}:void 0),gr=g(()=>Oi&&r(on)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ws.seekToInteractiveButton,buttonComponent:Xd,buttonComponentProps:{disabled:r(qn),click:e.seekToInteractive},tooltipText:D("tooltip_interactive_seek"),disabled:r(qn),disabledTooltipContent:D(Me())}:void 0),Rn=g(()=>Oi&&r(Qi)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ws.interactiveGraphButton,buttonComponent:Jd,buttonComponentProps:{disabled:r(Gr),click:en.toggle,graphIsOpened:k()},tooltipText:r(vn)}:void 0),Rr=g(()=>r(Er)?{id:"liveButton",type:"desktop-control-panel-left",weight:ws.liveButton,buttonComponent:ec,buttonComponentProps:{isLiveActive:r(Yn),ariaLabel:r(Yr)},tooltipText:r(Yr),disabled:r(Yn)&&l()===Va.PlaybackState.PLAYING}:void 0),Po=g(()=>[r(Zi),r(ko),r(vr),r(Ln),r(Vn),r(gr),r(Rn),r(Rr)].filter(yt=>!!yt).sort(wa)),Nn=g(()=>r(vt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Cs.vkLogo,buttonComponent:Ud,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:Ne},tooltipText:r(Pr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),es=g(()=>r(jn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Cs.autoplayNext,buttonComponent:Zd,tooltipText:r(pr)}:void 0),Xe=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Cs.volume,buttonComponent:dm,buttonComponentProps:{click:Io,isAds:je()}})),oi=g(()=>r(Ir)?{id:"subtitles",type:"desktop-control-panel-right",weight:Cs.subtitles,buttonComponent:rm,buttonComponentProps:{isSubtitlesEnabled:r(ro),click:Qe},tooltipText:r(Zr)}:void 0),wi=g(()=>r(vo)?{id:"settings",type:"desktop-control-panel-right",weight:Cs.settings,buttonComponent:El,buttonComponentProps:{ref$:_i},tooltipText:ve()?void 0:D("tooltip_settings_off")}:void 0),Ao=g(()=>_e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Cs.context,buttonComponent:Em,buttonComponentProps:{ariaLabel:D("aria_label_context_menu")},className:r(kr)?"":"out-of-view",tooltipText:r(Fo)}:void 0),be=g(()=>r(ii)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Cs.fullscreen,buttonComponent:Fd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Zn)}:void 0),Pt=g(()=>r(Pn)?{id:"chromecast",type:"desktop-control-panel-right",weight:Cs.chromecast,buttonComponent:zd,buttonComponentProps:{state:v(),click:fn},tooltipText:r(ur)}:void 0),Jt=g(()=>[r(Nn),r(es),r(Xe),r(oi),r(wi),r(Ao),r(be),r(Pt),...ge()].filter(yt=>!!yt).sort(wa));var fi=e4(),Xi=he(fi);let co;var Je=_(Xi);let Gt=g(()=>!e.showControls),Di=g(()=>!r(Mi));Pa(Je,{get isHidden(){return r(Gt)},get timelineNotAvailable(){return r(Di)},get isAds(){return je()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ei.timeline},set ref(yt){ei.timeline=yt}});var zo=P(Je,2),hn=_(zo),Xn=_(hn);Ii(Xn,17,()=>r(Po),yt=>yt.id,(yt,xt)=>{Du(yt,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get tooltipEnabled(){return r(xt).tooltipEnabled},get mouseEnter(){return r(xt).mouseEnter},get mouseLeave(){return r(xt).mouseLeave},get ref(){return ei[r(xt).id]},set ref(uo){ei[r(xt).id]=uo}})});var hr=P(Xn,2);{var Nr=yt=>{let xt=g(()=>!e.showControls),uo=g(()=>je()?ke():We()),bn=g(()=>je()?dt():gt());Bd(yt,{get isHidden(){return r(xt)},isMobile:!1,get showDuration(){return r(Vr)},get position(){return r(uo)},get duration(){return r(bn)},get ref(){return ei.time},set ref(Hi){ei.time=Hi}})};L(hr,yt=>{r(mn)&&yt(Nr)})}var Ji=P(hr,2);let mi=g(()=>!r(Co));Ro(Ji,{className:"w-max",get disabled(){return r(mi)},get tooltipContent(){return gn},get ref(){return ei.episodes},set ref(yt){ei.episodes=yt},children:(yt,xt)=>{var uo=Ke(),bn=he(uo);{var Hi=vi=>{Kd(vi,{get position(){return We()},get duration(){return gt()},get timeCodes(){return li}})};L(bn,vi=>{r(Co)&&vi(Hi)})}$(yt,uo)},$$slots:{default:!0}}),h(hn);var _n=P(hn,2);Ii(_n,21,()=>r(Jt),yt=>yt.id,(yt,xt)=>{var uo=Ke(),bn=he(uo);{var Hi=gi=>{Du(gi,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get ref(){return ei[r(xt).id]},set ref(Ys){ei[r(xt).id]=Ys}})},vi=gi=>{let Ys=g(()=>!!r(xt).disabled);Rm(gi,{get id(){return r(xt).id},get testId(){return r(xt).testId},get icon(){return r(xt).icon},get ariaLabel(){return r(xt).ariaLabel},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(Ys)},get onClick(){return r(xt).onClick},get disableMouseupTooltipShow(){return r(xt).disableMouseupTooltipShow},get ref(){return ei[r(xt).id]},set ref(qa){ei[r(xt).id]=qa}})};L(bn,gi=>{d_(r(xt))?gi(Hi):gi(vi,!1)})}$(yt,uo)}),h(_n),h(zo),nt(zo,yt=>Et(yt),()=>Et()),h(Xi),nt(Xi,yt=>ht(yt),()=>ht());var _r=P(Xi,2);{var Wo=yt=>{Gd(yt,{get ref(){return ei.interactiveTimeIndicator},set ref(xt){ei.interactiveTimeIndicator=xt}})};L(_r,yt=>{Ai&&yt(Wo)})}B(yt=>co=te(Xi,1,"wrapper-bottom svelte-f6e8ix",null,co,yt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),ar(hn,"clientWidth",yt=>O(To,yt)),$(t,fi),z(),o()}var Ll=require("@vkontakte/videoplayer-core/es2015");var Bm=require("@vkontakte/videoplayer-shared/es2015");var i4=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),o4=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),n4={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Dm(t,e){Q(t,n4);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Bm.noop),n=g(()=>o()===Bm.noop),s=g(()=>r(n)||i()),l=Y(!1),d=()=>{O(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Dt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(u,f)=>{var v=Ke(),p=he(v);{var x=y=>{var S=i4();$(y,S)},w=y=>{var S=o4();B(()=>Ue(S,"src",e.iconUrl)),Tt("error",S,d),da(S),$(y,S)};L(p,y=>{r(l)?y(x):y(w,!1)})}$(u,v)},$$slots:{default:!0}})}var r4=Ee('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Hm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=r4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var c_=require("@vkontakte/videoplayer-shared/es2015");var s4=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),a4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Fu(t,e){U(e,!0),Q(t,a4);let i=m(e,"muted",3,!1),o=m(e,"click",3,c_.noop),n=m(e,"ref",15,void 0),l=Ie().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Hm:Ws),u=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Dt(t,{get testId(){return r(u)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,v)=>{var p=s4();let x=g(()=>r(a));var w=_(p);ki(w,()=>r(x),(y,S)=>{S(y,{})}),h(p),$(f,p)},$$slots:{default:!0}}),z()}var l4=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Fm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=l4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(3),h(o),$(t,o)}var d4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
251
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Um(t,e){Q(t,d4);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Fm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var u_=require("@vkontakte/videoplayer-shared/es2015");function zm(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,u_.noop),s=q("menu_pip");Dt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Um(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var Wm=require("@vkontakte/videoplayer-shared/es2015");var c4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},u4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},p4=M("<div><!></div>"),f4=M("<div><!></div>"),m4=M("<div><!></div>"),v4=M("<!> <!> <!>",1),g4=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),h4=M('<div class="wrapper-middle svelte-68kopu"><!></div>'),_4=M("<div><!></div> <!> <div><!></div>",1),b4=M('<div aria-hidden="true">\xB7</div> <!>',1),$4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),y4={hash:"svelte-68kopu",code:`.wrapper-bottom.svelte-68kopu {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-68kopu > :where(.svelte-68kopu) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-68kopu {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-68kopu {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-68kopu {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-68kopu {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-68kopu,
250
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Qd(t,e){var G;U(e,!0),K(t,My);let[i,o]=Fe(),n=()=>S(T,"$isMobile",i),s=()=>S(k,"$areControlsVisible",i),l=()=>S(N,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(C,"$isFullscreen",i),m=v(e,"ref",15,void 0),p=Z(void 0),w=Ie(),x=So(),{interactiveControlsOpacity$:y}=x,T=w.ui.isMobile,C=w.ui.isFullscreen,E=w.state.isInteractiveTime$,V=x.showInteractiveTimeIndicatorTooltip$,k=w.ui.controlsVisible,I=(G=w.callbacks)==null?void 0:G.onInteractiveTimeIndicatorClick,N=w.ui.currentGridType$,J=g(()=>!n()&&s()),H=g(()=>Ks(l(),"s")),F=g(()=>!d()||!!a()||r(J)),Q=Z(!1);qe(()=>{O(Q,r(F),!0)});let ie=()=>{O(Q,!0)},Y=()=>{var ee;ge(),(ee=r(p))==null||ee.addEventListener("animationiteration",ie,{once:!0})},ge=()=>{var ee;O(Q,!1),(ee=r(p))==null||ee.removeEventListener("animationiteration",ie)},X=ee=>{V.set(ee)},ue=g(()=>u()&&!r(F));qe(()=>{u()?Y():ge()});let me=()=>{r(F)||(V.set(!0),I==null||I())};an(()=>{V.clearTimeout(),ge()});let pe=()=>{V.set(!1)},Pe=q("tooltip_interactive_interaction_time_indicator");var Le=Ay();let le;Le.__mousemove=[Py],Le.__click=me;var He=_(Le);Bo(He,{get tooltipContent(){return Pe},get tooltipActive(){return r(ue)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return m()},set ref(ee){m(ee)},children:(ee,Oe)=>{Bd(ee,{completed:!0})},$$slots:{default:!0}});var se=P(He,2);let R;rt(se,ee=>m(ee),()=>m());var $e=P(se,2);let Be;rt($e,ee=>O(p,ee),()=>r(p)),h(Le),B((ee,Oe,it)=>{le=ne(Le,1,"interactive-episode-icon-animated svelte-od3veb",null,le,ee),R=ne(se,1,"ref-block svelte-od3veb",null,R,Oe),Be=ne($e,1,"pulse svelte-od3veb",null,Be,it)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(H)}),()=>({hidden:r(F)}),()=>({paused:r(Q)})]),Tt("mouseleave",Le,pe),b(t,Le),z(),o()}ct(["mousemove","click"]);function Hu(t,e){U(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),s=v(e,"ref",15);Bo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=We();let u=g(()=>e.buttonComponent);var f=fe(a);Li(f,()=>r(u),(m,p)=>{p(m,$s(()=>{var w;return(w=e.buttonComponentProps)!=null?w:{}}))}),b(l,a)},$$slots:{default:!0}}),z()}var ws={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Vy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function km(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}function Gd(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),s=v(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");km(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var Ry=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Ny=A("<!> <!>",1),Oy={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Aa(t,e){U(e,!0),K(t,Oy);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),l=Ie().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Bt(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(a)},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{var p=Ny(),w=fe(p);{var x=C=>{var E=Ry();b(C,E)};L(w,C=>{o()&&C(x)})}var y=P(w,2);let T=g(()=>e.type==="prev");Gd(y,{get isMobile(){return o()},get isPrev(){return r(T)}}),b(f,p)},$$slots:{default:!0}}),z()}var By=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function jd(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=By();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var c0=require("@vkontakte/videoplayer-shared/es2015");var Dy=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Hy=A("<!> <div><!></div>",1),Fy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Pl(t,e){U(e,!0),K(t,Fy);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=v(e,"className",3,""),l=v(e,"click",3,c0.noop),d=q("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Bt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return as.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var m=Hy(),p=fe(m);{var w=C=>{var E=Dy();b(C,E)};L(p,C=>{o()&&C(w)})}var x=P(p,2);let y;var T=_(x);jd(T,{}),h(x),B(C=>y=ne(x,1,"svelte-1ot3duq",null,y,C),[()=>({mobile:o()})]),b(u,m)},$$slots:{default:!0}}),z()}var Uy=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Gr(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),s=v(e,"fill",3,"var(--btn-color)");var l=Uy(),d=_(l);h(l),B(()=>{ze(l,"width",i()),ze(l,"height",o()),ze(l,"viewBox",n()),ze(d,"fill",s())}),b(t,l)}var zy=Te('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Ss(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),s=v(e,"fill",3,"var(--btn-color)");var l=zy(),d=_(l);h(l),B(()=>{ze(l,"width",i()),ze(l,"height",o()),ze(l,"viewBox",n()),ze(d,"fill",s())}),b(t,l)}var u0=require("@vkontakte/videoplayer-shared/es2015");var Wy=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Ky=A("<!> <div><!></div>",1),qy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Al(t,e){U(e,!0),K(t,qy);let[i,o]=Fe(),n=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=So(),l=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),a=v(e,"isPlaying",3,!1),u=v(e,"disabled",3,!1),f=v(e,"className",3,""),m=v(e,"click",3,u0.noop),w=Ie().ui.t,{toggle:x}=s,y=g(()=>x),T=g(()=>n()!==null),C=g(()=>r(T)?n():a()),E=g(()=>r(C)?w("tooltip_pause"):w("tooltip_play")),V=g(()=>r(C)?Ss:Gr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),I=g(()=>r(T)?r(y):m());Bt(t,{get className(){return r(k)},testId:"btn-play",get click(){return r(I)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return as.KeyK},get ref(){return l()},set ref(N){l(N)},children:(N,J)=>{var H=Ky();let F=g(()=>r(V));var Q=fe(H);{var ie=ue=>{var me=Wy();b(ue,me)};L(Q,ue=>{d()&&ue(ie)})}var Y=P(Q,2);let ge;var X=_(Y);Li(X,()=>r(F),(ue,me)=>{me(ue,{})}),h(Y),B(ue=>ge=ne(Y,1,"svelte-1ot3duq",null,ge,ue),[()=>({mobile:d()})]),b(N,H)},$$slots:{default:!0}}),z(),o()}var Qy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Pm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}function Yd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=q("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Bt(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Pm(d,{})},$$slots:{default:!0}}),z()}var Gy=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),jy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Zd(t,e){U(e,!0),K(t,jy);let[i,o]=Fe(),n=()=>S(a,"$autoplayNextEnabled$",i),s=v(e,"ref",15,void 0),l=Ie(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},m=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");Bt(t,{click:f,get ariaLabel(){return m},role:"switch",get areaChecked(){return r(p)},get ref(){return s()},set ref(w){s(w)},children:(w,x)=>{var y=Gy(),T=_(y);let C;var E=_(T);{var V=I=>{Gr(I,{width:"14",height:"14",fill:"#000"})},k=I=>{Ss(I,{width:"14",height:"14",fill:"#000"})};L(E,I=>{n()?I(V):I(k,!1)})}h(T),h(y),B(I=>C=ne(T,1,"toggler svelte-et3q1q",null,C,I),[()=>({enabled:n()})]),b(w,y)},$$slots:{default:!0}}),z(),o()}var Yy=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Am(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}function Xd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=q("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Bt(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Am(d,{})},$$slots:{default:!0}}),z()}var Zy=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Mm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}var Xy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Lm(t,e){K(t,Xy);let i=v(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Mm(t,{get"data-testid"(){return r(o)}})}function Jd(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),s=v(e,"graphIsOpened",3,!1),d=Ie().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=g(()=>o()?"hidden":"");Bt(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,m)=>{let p=g(()=>!!s());Lm(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}var Vm=require("@vkontakte/videoplayer-core/es2015");function ec(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(u,"$playbackState$",i),s=v(e,"isMobile",3,!1),l=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),a=Ie(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===Vm.PlaybackState.PAUSED&&m()}),w=g(()=>s()?"":"btn--live btn-full-opacity"),x=g(()=>l()?"btn-live":"btn-live-offset"),y=g(()=>l()&&n()===Vm.PlaybackState.PLAYING);Bt(t,{get className(){return r(w)},get testId(){return r(x)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(T,C)=>{Cd(T,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}var Rm=require("@vkontakte/videoplayer-shared/es2015");var Jy=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),e4=A('<img class="icon" aria-hidden="true"/>');function Ma(t,e){"use strict";let i=Z(!1),o=()=>{O(i,!0)};var n=We(),s=fe(n);{var l=a=>{var u=Jy();b(a,u)},d=a=>{var u=e4();B(()=>ze(u,"src",e.icon)),Tt("error",u,o),la(u),b(a,u)};L(s,a=>{r(i)?a(l):a(d,!1)})}b(t,n)}function Nm(t,e){U(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Rm.noop),n=v(e,"ref",15),s=g(()=>o()===Rm.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Bo(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=g(()=>{var m;return(m=e.testId)!=null?m:e.id});Bt(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(m,p)=>{Ma(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var p0=t=>!!t.buttonComponent;var Cs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Fu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(zn(t,i,n,o))};var o4=A('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),n4={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function Bm(t,e){var wo,Wa;U(e,!0),K(t,n4);let[i,o]=Fe(),n=()=>S(It,"$disabledControls$",i),s=()=>S(Kt,"$adPlaybackState",i),l=()=>S(At,"$playbackState$",i),d=()=>S(Co,"$currentSubtitle$",i),a=()=>S(_i,"$isEnded$",i),u=()=>S(pi,"$currentGridType$",i),f=()=>S(bi,"$isLive$",i),m=()=>S(Jo,"$chromecastState$",i),p=()=>S(so,"$isPictureInPictureActive",i),w=()=>S(Ci,"$pictureInPictureType$",i),x=()=>S(Ho,"$availableSubtitlesList$",i),y=()=>S(ri,"$contextMenuOpenedByKeyboard$",i),T=()=>S(xi,"$showContextMenuBtn$",i),C=()=>S(ci,"$playerSize",i),E=()=>S(jt,"$isRewindableLive$",i),V=()=>S(dt,"$isActiveLive$",i),k=()=>S(Eo,"$graphIsOpened$",i),I=()=>S(gt,"$contextMenuVisible$",i),N=()=>S(pt,"$isFullscreen",i),J=()=>S(ui,"$autoplayNextEnabled",i),H=()=>S(r(Mr),"$prevButton",i),F=()=>S(r(us),"$replayButton",i),Q=()=>S(r(Lr),"$playButton",i),ie=()=>S(r(Fi),"$nextButton",i),Y=()=>S(r($t),"$playPrevChapterButton",i),ge=()=>S(r(ai),"$seekToInteractiveButton",i),X=()=>S(r(Ei),"$interactiveGraphButton",i),ue=()=>S(r(ko),"$liveButton",i),me=()=>S(r(Ri),"$time",i),pe=()=>S(r(Po),"$episodes",i),Pe=()=>S(r(co),"$vkLogo",i),Le=()=>S(r($o),"$volume",i),le=()=>S(r(Zi),"$subtitles",i),He=()=>S(r(mr),"$settings",i),se=()=>S(r(vr),"$context",i),R=()=>S(r(ps),"$fullscreen",i),$e=()=>S(r(Jr),"$chromecast",i),Be=()=>S(To,"$additionalDesktopControlPanelRightButtons$",i),G=()=>S(ji,"$isInteractiveTime$",i),ee=()=>S(di,"$settingsMenuVisible",i),Oe=()=>S($i,"$settingButtonRef$",i),it=()=>S(ao,"$startedByKeyboard$",i),he=()=>S(Jt,"$isAudioAvailable$",i),te=()=>S(qt,"$fakeIsPlaying$",i),we=()=>S(Yi,"$seekToInteractiveDisabledTooltip$",i),ke=()=>S(ut,"$adPosition",i),je=()=>S(Je,"$position$",i),ot=()=>S(Ke,"$adDuration",i),bt=()=>S(De,"$duration$",i),mt=v(e,"playerControlsWrapperRef",15,void 0),Et=v(e,"playerControlsRef",15,void 0),Ze=v(e,"isAds",3,!1),Ut=v(e,"logoTargetUrl",3,""),Xt=v(e,"isOneVideoPlaylist",3,!1),Gt=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:qt}=So(),re=Ie(),zt=So(),Se=Pt(),ve=re.actions.internal.toggleMuted,ce=re.actions.internal.togglePlay,Ve=re.actions.internal.pause,Ue=re.actions.internal.toggleSubtitle,Re=(wo=re.callbacks)==null?void 0:wo.onAudioDoesNotExistHint,Qe=(Wa=re.callbacks)==null?void 0:Wa.onAudioDisabledHint,De=re.state.duration$,Je=re.state.positionWithScrubbing$,At=re.state.playbackState$,Jt=re.state.isAudioAvailable$,nt=re.state.isAudioDisabled,_i=re.state.isEnded$,bi=re.state.isLive$,dt=re.state.isActiveLive$,jt=re.state.isRewindableLive$,{isActive$:so,type$:Ci}=zt.pictureInPicture$,di=re.ui.settingsMenu.visible$,Ti=re.ui.settingsMenu.openedByBtnKeyboard$,Wt=re.ui.controls,ni=re.actions.internal.getVideoEpisodes(),Jo=re.state.chromecastState$,Ho=re.state.availableSubtitlesList$,Co=re.state.currentSubtitle$,It=Wt.disabledControls$,gt=re.ui.contextMenu.visible$,xi=re.ui.contextMenu.showContextMenuBtn$,ri=re.ui.contextMenu.openedByBtnKeyboard$,ao=re.ui.startedByKeyboard$,en=re.ui.controlBlocks,D=re.ui.t,Ke=re.ads.duration,ut=re.ads.position,Kt=re.ads.playbackState,pt=re.ui.isFullscreen,ci=re.ui.playerSize,pi=re.ui.currentGridType$,To=re.ui.additionalDesktopControlPanelRightButtons$,ui=re.ui.autoplayNextEnabled$,wt=re.actions.internal.getVideoElement,Di=re.actions.internal.replayInteractive,tn=re.actions.internal.prevVideoClick,wn=re.actions.internal.nextVideoClick,Gi=re.state.isInteractive,ji=re.state.isInteractiveTime$,Fo=re.state.showInteractiveGraph,Sn=re.state.showSeekToInteractive,Kn=re.state.showPlayPrevChapter,Pi=re.state.showInteractiveTimeIndicator,Cn=re.state.playPrevChapterDisabledTooltip,Yi=zt.seekToInteractiveDisabledTooltip$,Eo=zt.graphIsOpened$,dn=Se.features.interactiveResponsiveUi,Cr=g(()=>n().has("EPISODE_BUTTON")),qn=g(()=>n().has("GRAPH_BUTTON")),Qn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Tr=g(()=>n().has("PLAY_BUTTON")),Er=g(()=>n().has("REPLAY_BUTTON")),Gn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cn=()=>re.actions.internal.toggleChromecast(),cr=g(()=>Ze()?s()==="playing":l()===La.PlaybackState.PLAYING),lo=g(()=>d().value!=="off"),on=g(()=>a()&&!Ze()||Gi),jn=g(()=>dn?r(on)&&oo(u(),"m"):r(on)),Tn=g(()=>!a()||Gi||Ze()),Ir=g(()=>oo(u(),"m")),ur=g(()=>e.showNextPrevButtons&&oo(u(),"m")&&!Ze()&&e.nextButtonActive),pr=g(()=>e.showNextPrevButtons&&oo(u(),"m")&&!Ze()&&e.prevButtonActive),kr=g(()=>!Ze()&&!!f()),fr=g(()=>m()!==La.ChromecastState.NOT_AVAILABLE&&!(p()&&w()===1)&&oo(u(),"m")&&!Gi),En=g(()=>e.showAutoplayNext&&!Xt()&&oo(u(),"s")),Yn=g(()=>x().length>0&&oo(u(),"m")),Yr=g(()=>y()||T()),ho=g(()=>oo(u(),"s")&&!Ze()),vt=g(()=>!e.logoHidden&&!Ze()),si=g(()=>Se.features.fullscreen&&(e.logoHidden||oo(u(),dn?"xs":"s"))&&!(p()&&w()===1)&&(Gi?Gt():!0)),un=g(()=>(!f()||Ze())&&!(Se.features.interactiveHideTime&&Gi)),In=g(()=>C().width>100),Ai=g(()=>Fo&&oo(u(),"m")),Hi=g(()=>dn?Sn&&oo(u(),"s"):Sn),Uo=g(()=>dn?Kn&&oo(u(),"s"):Kn),_o=g(()=>!Ze()&&!f()&&!!(ni!=null&&ni.length)&&r(Ir)&&!r(Cr)),Zn=g(()=>!E()||!!V()),kn=g(()=>k()?D("tooltip_interactive_graph_on"):D("tooltip_interactive_graph_off")),Pn=g(()=>I()?D("tooltip_context_menu_close"):D("tooltip_context_menu_open")),An=(yt,xt)=>yt?xt&&xt===La.PlaybackState.PAUSED?D("tooltip_play"):"":D("tooltip_live"),Zr=g(()=>An(r(Zn),l())),Pr=g(()=>Se.logoType==="vk_video"?D("tooltip_vk_video_logo"):D("tooltip_vk_logo")),Xr=g(()=>r(lo)?D("tooltip_subtitles_on"):D("tooltip_subtitles_off")),Xn=g(()=>N()?D("tooltip_fullscreen_on"):D("tooltip_fullscreen_off")),Ar=g(()=>m()===La.ChromecastState.CONNECTED?D("tooltip_chromecast_on"):D("tooltip_chromecast_off")),Jn=g(()=>J()?D("tooltip_autoplay_on"):D("tooltip_autoplay_off")),Io=Z(0),ei=ii({}),bo=ii({}),Mr=g(()=>Wt.prevButton),us=g(()=>Wt.replayButton),Lr=g(()=>Wt.playButton),Fi=g(()=>Wt.nextButton),$t=g(()=>Wt.playPrevChapterButton),ai=g(()=>Wt.seekToInteractiveButton),Ei=g(()=>Wt.interactiveGraphButton),ko=g(()=>Wt.liveButton),Ri=g(()=>Wt.time),Po=g(()=>Wt.episodes),co=g(()=>Wt.vkLogo),$o=g(()=>Wt.volume),Zi=g(()=>Wt.subtitles),mr=g(()=>Wt.settings),vr=g(()=>Wt.context),ps=g(()=>Wt.fullscreen),Jr=g(()=>Wt.chromecast),yo=g(()=>({prevButton:H()?H().right-H().left:0,replayButton:F()?F().right-F().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:ie()?ie().right-ie().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:ge()?ge().right-ge().left:0,interactiveGraphButton:X()?X().right-X().left:0,liveButton:ue()?ue().right-ue().left:0,time:me()?me().right-me().left:0,episodes:pe()?pe().right-pe().left:0,vkLogo:Pe()?Pe().right-Pe().left:0,volume:Le()?Le().right-Le().left:0,subtitles:le()?le().right-le().left:0,settings:He()?He().right-He().left:0,context:se()?se().right-se().left:0,fullscreen:R()?R().right-R().left:0,chromecast:$e()?$e().right-$e().left:0,additionalButtons:Be().length?Be().reduce(yt=>[...yt,40],[]):[]})),Mn=Z(0);qe(()=>{(!r(Mn)||r(Mn)<r(yo).time)&&Ct(()=>O(Mn,r(yo).time,!0))});let Vr=Z(!1);qe(()=>{let yt=0;r(_o)&&(oo(u(),"xl")?yt=r(yo).time:yt=60);let xt=r(yo).prevButton+r(yo).playButton+r(yo).nextButton+r(yo).seekToInteractiveButton+r(yo).interactiveGraphButton+r(yo).liveButton+r(Mn)+yt;O(Vr,r(un)&&r(Io)>=xt,!0)});let Rr=g(()=>r(Vr)&&oo(u(),"m")),st=(0,Om.debounceFn)(kl,260),kt=(0,Om.debounceFn)(Fu,260);qe(()=>{C(),G(),st(wt(),Wt,ei,e.showControls),kt(wt(),en,bo,e.showControls)}),qe(()=>{bo.bottom=mt()});let $i=ae();qe(()=>{ee(),Oe()&&Ct(()=>yl(Oe(),ee(),Ti))});let Xi;qe(()=>{it(),Ct(()=>Du(ao,it(),Xi))});function Ao(){Us({isAudioDisabled:nt,isAudioAvailable:he(),isAds:Ze(),audioIsNotExistHintCallback:Re,audioDisabledHintCallback:Qe})&&ve()}let xo=Gi?Di:ce,uo=g(()=>te()!==null),zo=g(()=>r(uo)?te():r(cr)),Ln=g(()=>r(zo)?D("tooltip_pause"):D("tooltip_play")),pn=D("tooltip_episodes"),Ji=g(()=>{var yt,xt,fo,vn;return r(pr)?{id:"prevButton",type:"desktop-control-panel-left",weight:ws.prevButton,buttonComponent:Aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:tn.bind(null,!0)},tooltipEnabled:!((xt=(yt=re.callbacks)==null?void 0:yt.uiInfo)!=null&&xt.onPrevButtonMouseEnter)&&!((vn=(fo=re.callbacks)==null?void 0:fo.uiInfo)!=null&&vn.onPrevButtonMouseLeave),mouseEnter:()=>{var zi,vi,gi;(gi=(vi=(zi=re.callbacks)==null?void 0:zi.uiInfo)==null?void 0:vi.onPrevButtonMouseEnter)==null||gi.call(vi,zn(wt(),ei,"prevButton",e.showControls))},mouseLeave:()=>{var zi,vi,gi;(gi=(vi=(zi=re.callbacks)==null?void 0:zi.uiInfo)==null?void 0:vi.onPrevButtonMouseLeave)==null||gi.call(vi,zn(wt(),ei,"prevButton",e.showControls))},tooltipText:D("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Mo=g(()=>r(jn)?{id:"replayButton",type:"desktop-control-panel-left",weight:ws.replayButton,buttonComponent:Pl,buttonComponentProps:{disabled:r(Er),click:xo},tooltipText:D("tooltip_restart"),disabled:r(Er)}:void 0),gr=g(()=>r(Tn)?{id:"playButton",type:"desktop-control-panel-left",weight:ws.playButton,buttonComponent:Al,buttonComponentProps:{disabled:r(Tr),isPlaying:r(cr),click:ce},tooltipText:r(Ln),disabled:r(Tr)}:void 0),Vn=g(()=>{var yt,xt,fo,vn;return r(ur)?{id:"nextButton",type:"desktop-control-panel-left",weight:ws.nextButton,buttonComponent:Aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:wn.bind(null,!0)},tooltipEnabled:!((xt=(yt=re.callbacks)==null?void 0:yt.uiInfo)!=null&&xt.onNextButtonMouseEnter)&&!((vn=(fo=re.callbacks)==null?void 0:fo.uiInfo)!=null&&vn.onNextButtonMouseLeave),mouseEnter:()=>{var zi,vi,gi;(gi=(vi=(zi=re.callbacks)==null?void 0:zi.uiInfo)==null?void 0:vi.onNextButtonMouseEnter)==null||gi.call(vi,zn(wt(),ei,"nextButton",e.showControls))},mouseLeave:()=>{var zi,vi,gi;(gi=(vi=(zi=re.callbacks)==null?void 0:zi.uiInfo)==null?void 0:vi.onNextButtonMouseLeave)==null||gi.call(vi,zn(wt(),ei,"nextButton",e.showControls))},tooltipText:D("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Rn=g(()=>Gi&&r(Uo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ws.playPrevChapterButton,buttonComponent:Yd,buttonComponentProps:{disabled:r(Gn),click:e.playPrevChapter},tooltipText:D("tooltip_interactive_go_back"),disabledTooltipContent:D(Cn),disabled:r(Gn)}:void 0),hr=g(()=>Gi&&r(Hi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ws.seekToInteractiveButton,buttonComponent:Xd,buttonComponentProps:{disabled:r(Qn),click:e.seekToInteractive},tooltipText:D("tooltip_interactive_seek"),disabled:r(Qn),disabledTooltipContent:D(we())}:void 0),Nn=g(()=>Gi&&r(Ai)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ws.interactiveGraphButton,buttonComponent:Jd,buttonComponentProps:{disabled:r(qn),click:Eo.toggle,graphIsOpened:k()},tooltipText:r(kn)}:void 0),Nr=g(()=>r(kr)?{id:"liveButton",type:"desktop-control-panel-left",weight:ws.liveButton,buttonComponent:ec,buttonComponentProps:{isLiveActive:r(Zn),ariaLabel:r(Zr)},tooltipText:r(Zr),disabled:r(Zn)&&l()===La.PlaybackState.PLAYING}:void 0),Lo=g(()=>[r(Ji),r(Mo),r(gr),r(Vn),r(Rn),r(hr),r(Nn),r(Nr)].filter(yt=>!!yt).sort(xa)),On=g(()=>r(vt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Cs.vkLogo,buttonComponent:Fd,buttonComponentProps:{targetUrl:Ut(),logoClickable:e.logoClickable,click:Ve},tooltipText:r(Pr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),es=g(()=>r(En)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Cs.autoplayNext,buttonComponent:Zd,tooltipText:r(Jn)}:void 0),Xe=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Cs.volume,buttonComponent:cm,buttonComponentProps:{click:Ao,isAds:Ze()}})),ti=g(()=>r(Yn)?{id:"subtitles",type:"desktop-control-panel-right",weight:Cs.subtitles,buttonComponent:sm,buttonComponentProps:{isSubtitlesEnabled:r(lo),click:Ue},tooltipText:r(Xr)}:void 0),wi=g(()=>r(ho)?{id:"settings",type:"desktop-control-panel-right",weight:Cs.settings,buttonComponent:Tl,buttonComponentProps:{ref$:$i},tooltipText:ee()?void 0:D("tooltip_settings_off")}:void 0),Vo=g(()=>Se.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Cs.context,buttonComponent:Im,buttonComponentProps:{ariaLabel:D("aria_label_context_menu")},className:r(Yr)?"":"out-of-view",tooltipText:r(Pn)}:void 0),_e=g(()=>r(si)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Cs.fullscreen,buttonComponent:Hd,buttonComponentProps:{isFullscreen:N(),click:e.toggleFullscreen},tooltipText:r(Xn)}:void 0),Lt=g(()=>r(fr)?{id:"chromecast",type:"desktop-control-panel-right",weight:Cs.chromecast,buttonComponent:Ud,buttonComponentProps:{state:m(),click:cn},tooltipText:r(Ar)}:void 0),Zt=g(()=>[r(On),r(es),r(Xe),r(ti),r(wi),r(Vo),r(_e),r(Lt),...Be()].filter(yt=>!!yt).sort(xa));var fi=o4(),eo=fe(fi);let po;var et=_(eo);let Yt=g(()=>!e.showControls),Ui=g(()=>!r(In));ka(et,{get isHidden(){return r(Yt)},get timelineNotAvailable(){return r(Ui)},get isAds(){return Ze()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ei.timeline},set ref(yt){ei.timeline=yt}});var Wo=P(et,2),fn=_(Wo),er=_(fn);Mi(er,17,()=>r(Lo),yt=>yt.id,(yt,xt)=>{Hu(yt,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get tooltipEnabled(){return r(xt).tooltipEnabled},get mouseEnter(){return r(xt).mouseEnter},get mouseLeave(){return r(xt).mouseLeave},get ref(){return ei[r(xt).id]},set ref(fo){ei[r(xt).id]=fo}})});var _r=P(er,2);{var Or=yt=>{let xt=g(()=>!e.showControls),fo=g(()=>Ze()?ke():je()),vn=g(()=>Ze()?ot():bt());Od(yt,{get isHidden(){return r(xt)},isMobile:!1,get showDuration(){return r(Rr)},get position(){return r(fo)},get duration(){return r(vn)},get ref(){return ei.time},set ref(zi){ei.time=zi}})};L(_r,yt=>{r(un)&&yt(Or)})}var to=P(_r,2);let mi=g(()=>!r(_o));Bo(to,{className:"w-max",get disabled(){return r(mi)},get tooltipContent(){return pn},get ref(){return ei.episodes},set ref(yt){ei.episodes=yt},children:(yt,xt)=>{var fo=We(),vn=fe(fo);{var zi=vi=>{Wd(vi,{get position(){return je()},get duration(){return bt()},get timeCodes(){return ni}})};L(vn,vi=>{r(_o)&&vi(zi)})}b(yt,fo)},$$slots:{default:!0}}),h(fn);var mn=P(fn,2);Mi(mn,21,()=>r(Zt),yt=>yt.id,(yt,xt)=>{var fo=We(),vn=fe(fo);{var zi=gi=>{Hu(gi,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get ref(){return ei[r(xt).id]},set ref(js){ei[r(xt).id]=js}})},vi=gi=>{let js=g(()=>!!r(xt).disabled);Nm(gi,{get id(){return r(xt).id},get testId(){return r(xt).testId},get icon(){return r(xt).icon},get ariaLabel(){return r(xt).ariaLabel},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(js)},get onClick(){return r(xt).onClick},get disableMouseupTooltipShow(){return r(xt).disableMouseupTooltipShow},get ref(){return ei[r(xt).id]},set ref(Ka){ei[r(xt).id]=Ka}})};L(vn,gi=>{p0(r(xt))?gi(zi):gi(vi,!1)})}b(yt,fo)}),h(mn),h(Wo),rt(Wo,yt=>Et(yt),()=>Et()),h(eo),rt(eo,yt=>mt(yt),()=>mt());var br=P(eo,2);{var Ko=yt=>{Qd(yt,{get ref(){return ei.interactiveTimeIndicator},set ref(xt){ei.interactiveTimeIndicator=xt}})};L(br,yt=>{Pi&&yt(Ko)})}B(yt=>po=ne(eo,1,"wrapper-bottom svelte-f6e8ix",null,po,yt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),dr(fn,"clientWidth",yt=>O(Io,yt)),b(t,fi),z(),o()}var Ml=require("@vkontakte/videoplayer-core/es2015");var Dm=require("@vkontakte/videoplayer-shared/es2015");var r4=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),s4=A('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),a4={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Hm(t,e){K(t,a4);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Dm.noop),n=g(()=>o()===Dm.noop),s=g(()=>r(n)||i()),l=Z(!1),d=()=>{O(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Bt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(u,f)=>{var m=We(),p=fe(m);{var w=y=>{var T=r4();b(y,T)},x=y=>{var T=s4();B(()=>ze(T,"src",e.iconUrl)),Tt("error",T,d),la(T),b(y,T)};L(p,y=>{r(l)?y(w):y(x,!1)})}b(u,m)},$$slots:{default:!0}})}var l4=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Fm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=l4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var f0=require("@vkontakte/videoplayer-shared/es2015");var d4=A('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),c4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Uu(t,e){U(e,!0),K(t,c4);let i=v(e,"muted",3,!1),o=v(e,"click",3,f0.noop),n=v(e,"ref",15,void 0),l=Ie().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Fm:Ws),u=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Bt(t,{get testId(){return r(u)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,m)=>{var p=d4();let w=g(()=>r(a));var x=_(p);Li(x,()=>r(w),(y,T)=>{T(y,{})}),h(p),b(f,p)},$$slots:{default:!0}}),z()}var u4=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Um(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=u4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(3),h(o),b(t,o)}var p4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
251
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function zm(t,e){K(t,p4);let i=v(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Um(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var m0=require("@vkontakte/videoplayer-shared/es2015");function Wm(t,e){U(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,m0.noop),s=q("menu_pip");Bt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{zm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var Km=require("@vkontakte/videoplayer-shared/es2015");var f4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},m4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},v4=A("<div><!></div>"),g4=A("<div><!></div>"),h4=A("<div><!></div>"),_4=A("<!> <!> <!>",1),b4=A("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),$4=A('<div class="wrapper-middle svelte-68kopu"><!></div>'),y4=A("<div><!></div> <!> <div><!></div>",1),x4=A('<div aria-hidden="true">\xB7</div> <!>',1),w4=A('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),S4={hash:"svelte-68kopu",code:`.wrapper-bottom.svelte-68kopu {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-68kopu > :where(.svelte-68kopu) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-68kopu {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-68kopu {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-68kopu {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-68kopu {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-68kopu,
252
252
  .wrapper-middle-left-second.svelte-68kopu,
253
253
  .wrapper-middle-right.svelte-68kopu {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-68kopu {left:12px;}.wrapper-middle-left-second.svelte-68kopu {left:64px;}.wrapper-middle-right.svelte-68kopu {right:12px;}.controls.svelte-68kopu {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-68kopu {display:flex;}.controls-group.contain.svelte-68kopu {min-width:0;}.controls-group.svelte-68kopu > *:not(:first-child) {margin-left:8px;}.hidden.svelte-68kopu {visibility:hidden;opacity:0;}.controls-hidden.svelte-68kopu {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-68kopu {transition:none;}.overlay-mobile.svelte-68kopu {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
254
254
 
@@ -256,7 +256,7 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
256
256
  }
257
257
 
258
258
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-68kopu {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-68kopu {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-68kopu {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-68kopu {left:96px;}.wrapper-middle-right.fullscreen.svelte-68kopu {right:44px;}.controls-wrapper.fullscreen.svelte-68kopu {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
259
- }`};function Km(t,e){var Lr,Vr;U(e,!0),Q(t,y4);let[i,o]=Fe(),n=()=>C(Ni,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(pt,"$disabledControls$",i),l=()=>C(ne,"$playbackState$",i),d=()=>C(Xo,"$adPlaybackState",i),a=()=>C(Se,"$isEnded$",i),u=()=>C(D,"$playerSize",i),f=()=>C(Be,"$scrubbingInProgress",i),v=()=>C(cn,"$chromecastState$",i),p=()=>C(Rt,"$isPictureInPictureActive",i),x=()=>C(Qt,"$pictureInPictureType$",i),w=()=>C(tt,"$mobileNotReportControlHidden$",i),y=()=>C(wo,"$chromecastHidden",i),S=()=>C(ti,"$playerPhase",i),T=()=>C(yi,"$pipHidden",i),E=()=>C(Bo,"$currentGridType$",i),V=()=>C(ri,"$vkLogoHidden",i),k=()=>C(ot,"$volumeHidden",i),I=()=>C(le,"$isLive$",i),R=()=>C(it,"$settingsMenuVisible",i),Z=()=>C(Ze,"$isRewindableLive$",i),H=()=>C(Ve,"$isActiveLive$",i),F=()=>C(Wt,"$isAudioAvailable$",i),K=()=>C(Qe,"$muted$",i),ee=()=>C(Ne,"$volume$",i),j=()=>C(ci,"$isInteractiveTime$",i),ue=()=>C(vn,"$settingButtonRef$",i),oe=()=>C(xi,"$startedByKeyboard$",i),pe=()=>C(Wn,"$isFullscreen",i),ye=()=>C(ze,"$additionalButtons$",i),me=()=>C(Zt,"$autoplayNextToggleHidden",i),Pe=()=>C(Mt,"$crashed$",i),re=()=>C(Oo,"$settingsHidden",i),Re=()=>C(Do,"$graphIsOpened$",i),se=()=>C(si,"$adPosition",i),N=()=>C(Ki,"$adDuration",i),De=()=>C(qt,"$position$",i),de=()=>C(Yt,"$duration$",i),ge=m(e,"playerControlsWrapperRef",15,void 0),ie=m(e,"playerControlsRef",15,void 0),ve=m(e,"isAds",3,!1),He=m(e,"logoTargetUrl",3,""),fe=m(e,"isOneVideoPlaylist",3,!1),lt=m(e,"customFullscreenSupported",3,!0),X=Ie(),Me=xo(),ke=At(),We=X.actions.internal.toggleMuted,dt=X.actions.internal.togglePlay,gt=X.actions.internal.pause,ht=X.actions.internal.prevVideoClick,Et=X.actions.internal.nextVideoClick,je=(Lr=X.callbacks)==null?void 0:Lr.onAudioDoesNotExistHint,zt=(Vr=X.callbacks)==null?void 0:Vr.onAudioDisabledHint,ti=X.playerPhase,Yt=X.state.duration$,qt=X.state.positionWithScrubbing$,ne=X.state.playbackState$,Wt=X.state.isAudioAvailable$,_e=X.state.isAudioDisabled,Se=X.state.isEnded$,le=X.state.isLive$,Ne=X.state.volume$,Qe=X.state.muted$,Ve=X.state.isActiveLive$,Ze=X.state.isRewindableLive$,Be=X.ui.scrubbingInProgress,tt=X.ui.mobileNotReportControlHidden$,{isActive$:Rt,type$:Qt}=Me.pictureInPicture$,it=X.ui.settingsMenu.visible$,Ci=X.ui.settingsMenu.openedByBtnKeyboard$,$i=X.ui.controls,{volume:ot,vkLogo:ri,autoplayNextToggle:Zt,pip:yi,settings:Oo,chromecast:wo}=X.ui.hiddenControls,Ut=X.actions.internal.getVideoEpisodes(),li=X.webApi.pictureInPictureApi,cn=X.state.chromecastState$,Mt=X.state.crashed$,pt=$i.disabledControls$,xi=X.ui.startedByKeyboard$,Bo=X.ui.currentGridType$,Ki=X.ads.duration,si=X.ads.position,Xo=X.ads.playbackState,Wn=X.ui.isFullscreen,D=X.ui.playerSize,ze=X.ui.additionalButtonsDeprecated$,ft=X.actions.internal.getVideoElement,Kt=X.actions.internal.replayInteractive,ut=X.state.isInteractive,ci=X.state.isInteractiveTime$,ui=X.state.showInteractiveGraph,So=X.state.showSeekToInteractive,pi=X.state.showPlayPrevChapter,wt=X.state.showInteractiveTimeIndicator,Ni=Me.seekToInteractiveDisabledTooltip$,Do=Me.graphIsOpened$,Kn=X.ui.controlBlocks,Oi=g(()=>q(X.state.playPrevChapterDisabledTooltip)),no=g(()=>q(n())),Ho=g(()=>s().has("EPISODE_BUTTON")),En=g(()=>s().has("GRAPH_BUTTON")),In=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Ai=g(()=>s().has("PLAY_BUTTON")),qi=g(()=>s().has("REPLAY_BUTTON")),Jo=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),en=g(()=>l()===Ll.PlaybackState.PLAYING),un=g(()=>d()==="paused"),pn=g(()=>a()&&!ve()&&!ut),Gr=g(()=>!a()||ve()),qn=g(()=>e.showNextPrevButtons&&!ve()&&e.prevButtonActive),Sr=g(()=>e.showNextPrevButtons&&!ve()&&e.nextButtonActive),lr=g(()=>u().width>300),Cr=g(()=>u().width>400),fn=g(f),dr=g(()=>v()!==Ll.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!ut&&!y()),ro=g(()=>S()==="LiveWaitingStart"),tn=g(()=>!!li&&v()!==Ll.ChromecastState.CONNECTED&&!w()&&(x()===1&&r(ro)||!r(ro))&&!r(fn)&&!ut&&!T()),Qn=Y(!1);Vt(()=>{let rt=li==null?void 0:li.info.isActive$.subscribe(It=>O(Qn,It,!0));return()=>rt==null?void 0:rt.unsubscribe()});let kn=g(()=>!r(fn)&&to(E(),"s")),Tr=g(()=>!e.logoHidden&&u().width>350&&!V()),Gn=g(()=>ke.features.fullscreen&&!(p()&&x()===1)&&(ut?lt():!0)&&!r(fn)&&!r(Qn)),cr=g(()=>!k()&&!r(fn)),Er=g(()=>(!I()||ve())&&u().width>260&&!r(fn)&&!(ke.features.interactiveHideTime&&ut)),Pn=g(()=>R()||e.showControls),jn=g(()=>!ve()&&!I()&&!!(Ut!=null&&Ut.length)&&r(lr)&&!r(Ho)&&!r(fn)),Ir=g(()=>!Z()||!!H()),kr=g(()=>ui&&to(E(),"m")),vo=g(()=>!F()||K()||ee()===0),vt=ai({}),ii=ai({}),mn=(0,Wm.debounceFn)(Pl,260),Mi=(0,Wm.debounceFn)(Hu,260);qe(()=>{u(),j(),mn(ft(),$i,vt,e.showControls),Mi(ft(),Kn,ii,e.showControls)});let Qi=()=>X.actions.internal.toggleChromecast();function on(){return St(this,null,function*(){li!=null&&li.isActive()?yield li==null?void 0:li.exit():yield li==null?void 0:li.request()})}function nn(){Us({isAudioDisabled:_e,audioDisabledHintCallback:zt,isAudioAvailable:F(),audioIsNotExistHintCallback:je,isAds:ve()})&&We()}let Co=Y(""),Yn=(rt,It)=>{if(!rt){O(Co,q("tooltip_live"),!0);return}It&&It===Ll.PlaybackState.PAUSED&&O(Co,q("tooltip_play"),!0)};qe(()=>{Yn(r(Ir),l())});let vn=ae();qe(()=>{ue()&&xl(ue(),R(),Ci)}),qe(()=>{Bu(xi,oe(),vt.playButton)});var Fo=$4(),jr=he(Fo);{var Yr=rt=>{var It=g4(),_i=he(It);let Yi;var Io=P(_i,2);let $o;nt(Io,Je=>ii.topLeft=Je,()=>ii==null?void 0:ii.topLeft);var lo=P(Io,2);let Uo;var Mn=_(lo);Ii(Mn,1,ye,({iconUrl:Je,ariaLabel:Gt,testId:Di,onClick:zo,tooltip:hn})=>Je,(Je,Gt)=>{let Di=()=>r(Gt).iconUrl,zo=()=>r(Gt).ariaLabel,hn=()=>r(Gt).testId,Xn=()=>r(Gt).onClick,hr=()=>r(Gt).tooltip,Nr=g(()=>{var Ji;return(Ji=zo())!=null?Ji:hr()});Dm(Je,{get iconUrl(){return Di()},get ariaLabel(){return r(Nr)},get testId(){return hn()},get onClick(){return Xn()}})});var gn=P(Mn,2);{var Zi=Je=>{Zd(Je,{get ref(){return vt.autoplayNextToggle},set ref(Gt){vt.autoplayNextToggle=Gt}})};L(gn,Je=>{e.showAutoplayNext&&!fe()&&!me()&&Je(Zi)})}var ko=P(gn,2);{var vr=Je=>{zd(Je,{isMobile:!0,click:Qi,get state(){return v()},get ref(){return vt.chromecast},set ref(Gt){vt.chromecast=Gt}})};L(ko,Je=>{r(dr)&&Je(vr)})}var Ln=P(ko,2);{var Vn=Je=>{zm(Je,{click:on,get isPictureInPictureActive(){return p()},get ref(){return vt.pip},set ref(Gt){vt.pip=Gt}})};L(Ln,Je=>{r(tn)&&Je(Vn)})}var gr=P(Ln,2);{var Rn=Je=>{El(Je,{get ref$(){return vn}})};L(gr,Je=>{Pe()&&!re()&&Je(Rn)})}var Rr=P(gr,2);{var Po=Je=>{Ud(Je,{get click(){return gt},get targetUrl(){return He()},get logoClickable(){return e.logoClickable},get ref(){return vt.vkLogo},set ref(Gt){vt.vkLogo=Gt}})};L(Rr,Je=>{r(Tr)&&Je(Po)})}h(lo),nt(lo,Je=>ii.topRight=Je,()=>ii==null?void 0:ii.topRight);var Nn=P(lo,2);let es;var Xe=_(Nn);{var oi=Je=>{let Gt=g(()=>ht.bind(null,!0));Ma(Je,{get click(){return r(Gt)},type:"prev",isMobile:!0,get ref(){return vt.prevButton},set ref(Di){vt.prevButton=Di}})};L(Xe,Je=>{r(qn)&&Je(oi)})}var wi=P(Xe,2);{var Ao=Je=>{Ml(Je,{get disabled(){return r(Ai)},get click(){return dt},isMobile:!0,get isPlaying(){return r(en)},get ref(){return vt.playButton},set ref(Gt){vt.playButton=Gt}})};L(wi,Je=>{r(Gr)&&Je(Ao)})}var be=P(wi,2);{var Pt=Je=>{Al(Je,{get disabled(){return r(qi)},get click(){return dt},isMobile:!0,get ref(){return vt.replayButton},set ref(Gt){vt.replayButton=Gt}})};L(be,Je=>{r(pn)&&Je(Pt)})}var Jt=P(be,2);{var fi=Je=>{let Gt=g(()=>Et.bind(null,!0));Ma(Je,{get click(){return r(Gt)},type:"next",isMobile:!0,get ref(){return vt.nextButton},set ref(Di){vt.nextButton=Di}})};L(Jt,Je=>{r(Sr)&&Je(fi)})}h(Nn),nt(Nn,Je=>ii.middle=Je,()=>ii==null?void 0:ii.middle);var Xi=P(Nn,2);{var co=Je=>{var Gt=v4(),Di=he(Gt);{var zo=Ji=>{var mi=p4();let _n;mi.__click=[c4,Jo,e,Oi];var _r=_(mi);let Wo=g(()=>!e.showControls);Yd(_r,{get hidden(){return r(Wo)},get disabled(){return r(Jo)},get click(){return e.playPrevChapter},get ref(){return vt.playPrevChapterButton},set ref(yo){vt.playPrevChapterButton=yo}}),h(mi),B(yo=>_n=te(mi,1,"wrapper-middle-left svelte-68kopu",null,_n,yo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(Ji,mi)};L(Di,Ji=>{pi&&Ji(zo)})}var hn=P(Di,2);{var Xn=Ji=>{var mi=f4();let _n;var _r=_(mi);let Wo=g(()=>!e.showControls&&!Re());Jd(_r,{get hidden(){return r(Wo)},get disabled(){return r(En)},get click(){return Do.toggle},get graphIsOpened(){return Re()},get ref(){return vt.interactiveGraphButton},set ref(yo){vt.interactiveGraphButton=yo}}),h(mi),B(yo=>_n=te(mi,1,fd(pi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",_n,yo),[()=>({fullscreen:pe(),hidden:!e.showControls&&!Re()})]),$(Ji,mi)};L(hn,Ji=>{r(kr)&&Ji(Xn)})}var hr=P(hn,2);{var Nr=Ji=>{var mi=m4();let _n;mi.__click=[u4,In,e,no];var _r=_(mi);let Wo=g(()=>!e.showControls);Xd(_r,{get hidden(){return r(Wo)},get disabled(){return r(In)},get click(){return e.seekToInteractive},get ref(){return vt.seekToInteractiveButton},set ref(yo){vt.seekToInteractiveButton=yo}}),h(mi),B(yo=>_n=te(mi,1,"wrapper-middle-right svelte-68kopu",null,_n,yo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),$(Ji,mi)};L(hr,Ji=>{So&&Ji(Nr)})}$(Je,Gt)};L(Xi,Je=>{ut&&!f()&&Je(co)})}B((Je,Gt,Di,zo)=>{Yi=te(_i,1,"overlay-mobile svelte-68kopu",null,Yi,Je),$o=te(Io,1,"wrapper-top-left svelte-68kopu",null,$o,Gt),Uo=te(lo,1,"wrapper-top-right svelte-68kopu",null,Uo,Di),es=te(Nn,1,"wrapper-middle svelte-68kopu",null,es,zo)},[()=>({hidden:!r(Pn)}),()=>({hidden:!e.showControls,fullscreen:pe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:pe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(rt,It)};L(jr,rt=>{ve()||rt(Yr)})}var Pr=P(jr,2);{var Zr=rt=>{var It=_4(),_i=he(It);let Yi;var Io=_(_i);Fu(Io,{get muted(){return K()},click:nn,get ref(){return vt.volume},set ref(Zi){vt.volume=Zi}}),h(_i);var $o=P(_i,2);{var lo=Zi=>{var ko=h4(),vr=_(ko);let Ln=g(()=>!r(un));Ml(vr,{get disabled(){return r(Ai)},get click(){return dt},isMobile:!0,get isPlaying(){return r(Ln)},get ref(){return vt.playButton},set ref(Vn){vt.playButton=Vn}}),h(ko),$(Zi,ko)};L($o,Zi=>{r(un)&&Zi(lo)})}var Uo=P($o,2);let Mn;var gn=_(Uo);Wd(gn,{get position(){return se()},get duration(){return N()}}),h(Uo),B((Zi,ko)=>{Yi=te(_i,1,"wrapper-top-right svelte-68kopu",null,Yi,Zi),Mn=te(Uo,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,Mn,ko)},[()=>({fullscreen:pe()}),()=>({fullscreen:pe()})]),$(rt,It)};L(Pr,rt=>{ve()&&d()!=="inactive"&&rt(Zr)})}var Zn=P(Pr,2);let ur;var pr=_(Zn);let To;var ei=_(pr);te(ei,1,"controls svelte-68kopu",null,{},{mobile:!0});var go=_(ei),Ar=_(go);{var ps=rt=>{Ro(rt,{get disabled(){return r(qi)},get ref(){return vt.replayButton},set ref(It){vt.replayButton=It},children:(It,_i)=>{Al(It,{get disabled(){return r(qi)},get click(){return Kt}})},$$slots:{default:!0}})};L(Ar,rt=>{ut&&rt(ps)})}var Mr=P(Ar,2);{var Bi=rt=>{Ro(rt,{get ref(){return vt.liveButton},set ref(It){vt.liveButton=It},children:(It,_i)=>{ec(It,{get isLiveActive(){return r(Ir)},isMobile:!0,get ariaLabel(){return r(Co)}})},$$slots:{default:!0}})};L(Mr,rt=>{!ve()&&I()&&rt(Bi)})}var _t=P(Mr,2);{var Xt=rt=>{let It=g(()=>ve()?se():De()),_i=g(()=>ve()?N():de()),Yi=g(()=>!e.showControls);Bd(rt,{get showDuration(){return r(Cr)},get position(){return r(It)},get duration(){return r(_i)},isMobile:!0,get isHidden(){return r(Yi)},get ref(){return vt.time},set ref(Io){vt.time=Io}})};L(_t,rt=>{r(Er)&&rt(Xt)})}var Gi=P(_t,2);let so=g(()=>!r(jn));Ro(Gi,{className:"w-max",get disabled(){return r(so)},get ref(){return vt.episodes},set ref(rt){vt.episodes=rt},children:(rt,It)=>{var _i=Ke(),Yi=he(_i);{var Io=$o=>{var lo=b4(),Uo=P(he(lo),2);Kd(Uo,{get position(){return De()},get duration(){return de()},get timeCodes(){return Ut}}),$($o,lo)};L(Yi,$o=>{r(jn)&&$o(Io)})}$(rt,_i)},$$slots:{default:!0}}),h(go),nt(go,rt=>ii.bottomRight=rt,()=>ii==null?void 0:ii.bottomRight);var ao=P(go,2),Eo=_(ao);{var ho=rt=>{Ro(rt,{get ref(){return vt.volume},set ref(It){vt.volume=It},children:(It,_i)=>{Fu(It,{get muted(){return r(vo)},click:nn})},$$slots:{default:!0}})};L(Eo,rt=>{r(cr)&&rt(ho)})}var _o=P(Eo,2);{var ji=rt=>{Ro(rt,{get ref(){return vt.settings},set ref(It){vt.settings=It},children:(It,_i)=>{El(It,{get ref$(){return vn}})},$$slots:{default:!0}})};L(_o,rt=>{r(kn)&&rt(ji)})}var fr=P(_o,2);{var mr=rt=>{Ro(rt,{get ref(){return vt.fullscreen},set ref(It){vt.fullscreen=It},children:(It,_i)=>{Fd(It,{get click(){return e.toggleFullscreen},get isFullscreen(){return pe()}})},$$slots:{default:!0}})};L(fr,rt=>{r(Gn)&&rt(mr)})}h(ao),nt(ao,rt=>ii.bottomRight=rt,()=>ii==null?void 0:ii.bottomRight),h(ei),nt(ei,rt=>ie(rt),()=>ie());var Xr=P(ei,2);let Jr=g(()=>!e.showControls);Pa(Xr,{get isHidden(){return r(Jr)},get isAds(){return ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Z()},get ref(){return vt.timeline},set ref(rt){vt.timeline=rt}}),h(pr),h(Zn),nt(Zn,rt=>ge(rt),()=>ge());var bo=P(Zn,2);{var An=rt=>{Gd(rt,{get ref(){return vt.interactiveTimeIndicator},set ref(It){vt.interactiveTimeIndicator=It}})};L(bo,rt=>{wt&&rt(An)})}B((rt,It)=>{ur=te(Zn,1,"wrapper-bottom svelte-68kopu",null,ur,rt),To=te(pr,1,"controls-wrapper svelte-68kopu",null,To,It)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:pe()})]),$(t,Fo),z(),o()}ct(["click"]);function tc(t,e){U(e,!0);let[i,o]=Fe(),n=()=>C(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),x=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,qm.noop),y=m(e,"onDisabledSeekToInteractiveClick",3,qm.noop),T=Ie().ui.isMobile,E=Y(!1);Vt(()=>{let R=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(R)});var V=Ke(),k=he(V);{var I=R=>{var Z=Ke(),H=he(Z);{var F=ee=>{Km(ee,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},K=ee=>{Om(ee,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};L(H,ee=>{n()?ee(F):ee(K,!1)})}$(R,Z)};L(k,R=>{r(E)&&R(I)})}$(t,V),z(),o()}var x4=Ee('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Qm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=x4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function Gm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Qm(t,{get style(){return r(o)}})}var w4=Ee('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}var S4=Ee('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=S4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function Uu(t,e){let i=m(e,"isOff",3,!1);var o=Ke(),n=he(o);{var s=d=>{Ym(d,{})},l=d=>{jm(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var C4=Ee('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=C4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function Xm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Zm(t,{get style(){return r(o)}})}var T4=Ee('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=T4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(2),h(o),$(t,o)}function ev(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Jm(t,{get style(){return r(o)}})}var E4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),I4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),k4=M("<div><!></div>"),P4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
259
+ }`};function qm(t,e){var Vr,Rr;U(e,!0),K(t,S4);let[i,o]=Fe(),n=()=>S(Di,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Co,"$disabledControls$",i),l=()=>S(re,"$playbackState$",i),d=()=>S(ao,"$adPlaybackState",i),a=()=>S(ve,"$isEnded$",i),u=()=>S(D,"$playerSize",i),f=()=>S(De,"$scrubbingInProgress",i),m=()=>S(Jo,"$chromecastState$",i),p=()=>S(At,"$isPictureInPictureActive",i),w=()=>S(Jt,"$pictureInPictureType$",i),x=()=>S(Je,"$mobileNotReportControlHidden$",i),y=()=>S(Ti,"$chromecastHidden",i),T=()=>S(Xt,"$playerPhase",i),C=()=>S(Ci,"$pipHidden",i),E=()=>S(gt,"$currentGridType$",i),V=()=>S(jt,"$vkLogoHidden",i),k=()=>S(dt,"$volumeHidden",i),I=()=>S(ce,"$isLive$",i),N=()=>S(nt,"$settingsMenuVisible",i),J=()=>S(Qe,"$isRewindableLive$",i),H=()=>S(Re,"$isActiveLive$",i),F=()=>S(zt,"$isAudioAvailable$",i),Q=()=>S(Ue,"$muted$",i),ie=()=>S(Ve,"$volume$",i),Y=()=>S(ci,"$isInteractiveTime$",i),ge=()=>S(kn,"$settingButtonRef$",i),X=()=>S(It,"$startedByKeyboard$",i),ue=()=>S(en,"$isFullscreen",i),me=()=>S(Ke,"$additionalButtons$",i),pe=()=>S(so,"$autoplayNextToggleHidden",i),Pe=()=>S(Ho,"$crashed$",i),Le=()=>S(di,"$settingsHidden",i),le=()=>S(tn,"$graphIsOpened$",i),He=()=>S(ri,"$adPosition",i),se=()=>S(xi,"$adDuration",i),R=()=>S(qt,"$position$",i),$e=()=>S(Gt,"$duration$",i),Be=v(e,"playerControlsWrapperRef",15,void 0),G=v(e,"playerControlsRef",15,void 0),ee=v(e,"isAds",3,!1),Oe=v(e,"logoTargetUrl",3,""),it=v(e,"isOneVideoPlaylist",3,!1),he=v(e,"customFullscreenSupported",3,!0),te=Ie(),we=So(),ke=Pt(),je=te.actions.internal.toggleMuted,ot=te.actions.internal.togglePlay,bt=te.actions.internal.pause,mt=te.actions.internal.prevVideoClick,Et=te.actions.internal.nextVideoClick,Ze=(Vr=te.callbacks)==null?void 0:Vr.onAudioDoesNotExistHint,Ut=(Rr=te.callbacks)==null?void 0:Rr.onAudioDisabledHint,Xt=te.playerPhase,Gt=te.state.duration$,qt=te.state.positionWithScrubbing$,re=te.state.playbackState$,zt=te.state.isAudioAvailable$,Se=te.state.isAudioDisabled,ve=te.state.isEnded$,ce=te.state.isLive$,Ve=te.state.volume$,Ue=te.state.muted$,Re=te.state.isActiveLive$,Qe=te.state.isRewindableLive$,De=te.ui.scrubbingInProgress,Je=te.ui.mobileNotReportControlHidden$,{isActive$:At,type$:Jt}=we.pictureInPicture$,nt=te.ui.settingsMenu.visible$,_i=te.ui.settingsMenu.openedByBtnKeyboard$,bi=te.ui.controls,{volume:dt,vkLogo:jt,autoplayNextToggle:so,pip:Ci,settings:di,chromecast:Ti}=te.ui.hiddenControls,Wt=te.actions.internal.getVideoEpisodes(),ni=te.webApi.pictureInPictureApi,Jo=te.state.chromecastState$,Ho=te.state.crashed$,Co=bi.disabledControls$,It=te.ui.startedByKeyboard$,gt=te.ui.currentGridType$,xi=te.ads.duration,ri=te.ads.position,ao=te.ads.playbackState,en=te.ui.isFullscreen,D=te.ui.playerSize,Ke=te.ui.additionalButtonsDeprecated$,ut=te.actions.internal.getVideoElement,Kt=te.actions.internal.replayInteractive,pt=te.state.isInteractive,ci=te.state.isInteractiveTime$,pi=te.state.showInteractiveGraph,To=te.state.showSeekToInteractive,ui=te.state.showPlayPrevChapter,wt=te.state.showInteractiveTimeIndicator,Di=we.seekToInteractiveDisabledTooltip$,tn=we.graphIsOpened$,wn=te.ui.controlBlocks,Gi=g(()=>q(te.state.playPrevChapterDisabledTooltip)),ji=g(()=>q(n())),Fo=g(()=>s().has("EPISODE_BUTTON")),Sn=g(()=>s().has("GRAPH_BUTTON")),Kn=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Pi=g(()=>s().has("PLAY_BUTTON")),Cn=g(()=>s().has("REPLAY_BUTTON")),Yi=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Eo=g(()=>l()===Ml.PlaybackState.PLAYING),dn=g(()=>d()==="paused"),Cr=g(()=>a()&&!ee()&&!pt),qn=g(()=>!a()||ee()),Qn=g(()=>e.showNextPrevButtons&&!ee()&&e.prevButtonActive),Tr=g(()=>e.showNextPrevButtons&&!ee()&&e.nextButtonActive),Er=g(()=>u().width>300),Gn=g(()=>u().width>400),cn=g(f),cr=g(()=>m()!==Ml.ChromecastState.NOT_AVAILABLE&&!(p()&&w()===1)&&!x()&&!pt&&!y()),lo=g(()=>T()==="LiveWaitingStart"),on=g(()=>!!ni&&m()!==Ml.ChromecastState.CONNECTED&&!x()&&(w()===1&&r(lo)||!r(lo))&&!r(cn)&&!pt&&!C()),jn=Z(!1);Vt(()=>{let st=ni==null?void 0:ni.info.isActive$.subscribe(kt=>O(jn,kt,!0));return()=>st==null?void 0:st.unsubscribe()});let Tn=g(()=>!r(cn)&&oo(E(),"s")),Ir=g(()=>!e.logoHidden&&u().width>350&&!V()),ur=g(()=>ke.features.fullscreen&&!(p()&&w()===1)&&(pt?he():!0)&&!r(cn)&&!r(jn)),pr=g(()=>!k()&&!r(cn)),kr=g(()=>(!I()||ee())&&u().width>260&&!r(cn)&&!(ke.features.interactiveHideTime&&pt)),fr=g(()=>N()||e.showControls),En=g(()=>!ee()&&!I()&&!!(Wt!=null&&Wt.length)&&r(Er)&&!r(Fo)&&!r(cn)),Yn=g(()=>!J()||!!H()),Yr=g(()=>pi&&oo(E(),"m")),ho=g(()=>!F()||Q()||ie()===0),vt=ii({}),si=ii({}),un=(0,Km.debounceFn)(kl,260),In=(0,Km.debounceFn)(Fu,260);qe(()=>{u(),Y(),un(ut(),bi,vt,e.showControls),In(ut(),wn,si,e.showControls)});let Ai=()=>te.actions.internal.toggleChromecast();function Hi(){return St(this,null,function*(){ni!=null&&ni.isActive()?yield ni==null?void 0:ni.exit():yield ni==null?void 0:ni.request()})}function Uo(){Us({isAudioDisabled:Se,audioDisabledHintCallback:Ut,isAudioAvailable:F(),audioIsNotExistHintCallback:Ze,isAds:ee()})&&je()}let _o=Z(""),Zn=(st,kt)=>{if(!st){O(_o,q("tooltip_live"),!0);return}kt&&kt===Ml.PlaybackState.PAUSED&&O(_o,q("tooltip_play"),!0)};qe(()=>{Zn(r(Yn),l())});let kn=ae();qe(()=>{ge()&&yl(ge(),N(),_i)}),qe(()=>{Du(It,X(),vt.playButton)});var Pn=w4(),An=fe(Pn);{var Zr=st=>{var kt=b4(),$i=fe(kt);let Xi;var Ao=P($i,2);let xo;rt(Ao,et=>si.topLeft=et,()=>si==null?void 0:si.topLeft);var uo=P(Ao,2);let zo;var Ln=_(uo);Mi(Ln,1,me,({iconUrl:et,ariaLabel:Yt,testId:Ui,onClick:Wo,tooltip:fn})=>et,(et,Yt)=>{let Ui=()=>r(Yt).iconUrl,Wo=()=>r(Yt).ariaLabel,fn=()=>r(Yt).testId,er=()=>r(Yt).onClick,_r=()=>r(Yt).tooltip,Or=g(()=>{var to;return(to=Wo())!=null?to:_r()});Hm(et,{get iconUrl(){return Ui()},get ariaLabel(){return r(Or)},get testId(){return fn()},get onClick(){return er()}})});var pn=P(Ln,2);{var Ji=et=>{Zd(et,{get ref(){return vt.autoplayNextToggle},set ref(Yt){vt.autoplayNextToggle=Yt}})};L(pn,et=>{e.showAutoplayNext&&!it()&&!pe()&&et(Ji)})}var Mo=P(pn,2);{var gr=et=>{Ud(et,{isMobile:!0,click:Ai,get state(){return m()},get ref(){return vt.chromecast},set ref(Yt){vt.chromecast=Yt}})};L(Mo,et=>{r(cr)&&et(gr)})}var Vn=P(Mo,2);{var Rn=et=>{Wm(et,{click:Hi,get isPictureInPictureActive(){return p()},get ref(){return vt.pip},set ref(Yt){vt.pip=Yt}})};L(Vn,et=>{r(on)&&et(Rn)})}var hr=P(Vn,2);{var Nn=et=>{Tl(et,{get ref$(){return kn}})};L(hr,et=>{Pe()&&!Le()&&et(Nn)})}var Nr=P(hr,2);{var Lo=et=>{Fd(et,{get click(){return bt},get targetUrl(){return Oe()},get logoClickable(){return e.logoClickable},get ref(){return vt.vkLogo},set ref(Yt){vt.vkLogo=Yt}})};L(Nr,et=>{r(Ir)&&et(Lo)})}h(uo),rt(uo,et=>si.topRight=et,()=>si==null?void 0:si.topRight);var On=P(uo,2);let es;var Xe=_(On);{var ti=et=>{let Yt=g(()=>mt.bind(null,!0));Aa(et,{get click(){return r(Yt)},type:"prev",isMobile:!0,get ref(){return vt.prevButton},set ref(Ui){vt.prevButton=Ui}})};L(Xe,et=>{r(Qn)&&et(ti)})}var wi=P(Xe,2);{var Vo=et=>{Al(et,{get disabled(){return r(Pi)},get click(){return ot},isMobile:!0,get isPlaying(){return r(Eo)},get ref(){return vt.playButton},set ref(Yt){vt.playButton=Yt}})};L(wi,et=>{r(qn)&&et(Vo)})}var _e=P(wi,2);{var Lt=et=>{Pl(et,{get disabled(){return r(Cn)},get click(){return ot},isMobile:!0,get ref(){return vt.replayButton},set ref(Yt){vt.replayButton=Yt}})};L(_e,et=>{r(Cr)&&et(Lt)})}var Zt=P(_e,2);{var fi=et=>{let Yt=g(()=>Et.bind(null,!0));Aa(et,{get click(){return r(Yt)},type:"next",isMobile:!0,get ref(){return vt.nextButton},set ref(Ui){vt.nextButton=Ui}})};L(Zt,et=>{r(Tr)&&et(fi)})}h(On),rt(On,et=>si.middle=et,()=>si==null?void 0:si.middle);var eo=P(On,2);{var po=et=>{var Yt=_4(),Ui=fe(Yt);{var Wo=to=>{var mi=v4();let mn;mi.__click=[f4,Yi,e,Gi];var br=_(mi);let Ko=g(()=>!e.showControls);Yd(br,{get hidden(){return r(Ko)},get disabled(){return r(Yi)},get click(){return e.playPrevChapter},get ref(){return vt.playPrevChapterButton},set ref(wo){vt.playPrevChapterButton=wo}}),h(mi),B(wo=>mn=ne(mi,1,"wrapper-middle-left svelte-68kopu",null,mn,wo),[()=>({fullscreen:ue(),hidden:!e.showControls})]),b(to,mi)};L(Ui,to=>{ui&&to(Wo)})}var fn=P(Ui,2);{var er=to=>{var mi=g4();let mn;var br=_(mi);let Ko=g(()=>!e.showControls&&!le());Jd(br,{get hidden(){return r(Ko)},get disabled(){return r(Sn)},get click(){return tn.toggle},get graphIsOpened(){return le()},get ref(){return vt.interactiveGraphButton},set ref(wo){vt.interactiveGraphButton=wo}}),h(mi),B(wo=>mn=ne(mi,1,pd(ui?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",mn,wo),[()=>({fullscreen:ue(),hidden:!e.showControls&&!le()})]),b(to,mi)};L(fn,to=>{r(Yr)&&to(er)})}var _r=P(fn,2);{var Or=to=>{var mi=h4();let mn;mi.__click=[m4,Kn,e,ji];var br=_(mi);let Ko=g(()=>!e.showControls);Xd(br,{get hidden(){return r(Ko)},get disabled(){return r(Kn)},get click(){return e.seekToInteractive},get ref(){return vt.seekToInteractiveButton},set ref(wo){vt.seekToInteractiveButton=wo}}),h(mi),B(wo=>mn=ne(mi,1,"wrapper-middle-right svelte-68kopu",null,mn,wo),[()=>({fullscreen:ue(),hidden:!e.showControls})]),b(to,mi)};L(_r,to=>{To&&to(Or)})}b(et,Yt)};L(eo,et=>{pt&&!f()&&et(po)})}B((et,Yt,Ui,Wo)=>{Xi=ne($i,1,"overlay-mobile svelte-68kopu",null,Xi,et),xo=ne(Ao,1,"wrapper-top-left svelte-68kopu",null,xo,Yt),zo=ne(uo,1,"wrapper-top-right svelte-68kopu",null,zo,Ui),es=ne(On,1,"wrapper-middle svelte-68kopu",null,es,Wo)},[()=>({hidden:!r(fr)}),()=>({hidden:!e.showControls,fullscreen:ue()}),()=>({hidden:!e.showControls&&!x(),fullscreen:ue()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(st,kt)};L(An,st=>{ee()||st(Zr)})}var Pr=P(An,2);{var Xr=st=>{var kt=y4(),$i=fe(kt);let Xi;var Ao=_($i);Uu(Ao,{get muted(){return Q()},click:Uo,get ref(){return vt.volume},set ref(Ji){vt.volume=Ji}}),h($i);var xo=P($i,2);{var uo=Ji=>{var Mo=$4(),gr=_(Mo);let Vn=g(()=>!r(dn));Al(gr,{get disabled(){return r(Pi)},get click(){return ot},isMobile:!0,get isPlaying(){return r(Vn)},get ref(){return vt.playButton},set ref(Rn){vt.playButton=Rn}}),h(Mo),b(Ji,Mo)};L(xo,Ji=>{r(dn)&&Ji(uo)})}var zo=P(xo,2);let Ln;var pn=_(zo);zd(pn,{get position(){return He()},get duration(){return se()}}),h(zo),B((Ji,Mo)=>{Xi=ne($i,1,"wrapper-top-right svelte-68kopu",null,Xi,Ji),Ln=ne(zo,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,Ln,Mo)},[()=>({fullscreen:ue()}),()=>({fullscreen:ue()})]),b(st,kt)};L(Pr,st=>{ee()&&d()!=="inactive"&&st(Xr)})}var Xn=P(Pr,2);let Ar;var Jn=_(Xn);let Io;var ei=_(Jn);ne(ei,1,"controls svelte-68kopu",null,{},{mobile:!0});var bo=_(ei),Mr=_(bo);{var us=st=>{Bo(st,{get disabled(){return r(Cn)},get ref(){return vt.replayButton},set ref(kt){vt.replayButton=kt},children:(kt,$i)=>{Pl(kt,{get disabled(){return r(Cn)},get click(){return Kt}})},$$slots:{default:!0}})};L(Mr,st=>{pt&&st(us)})}var Lr=P(Mr,2);{var Fi=st=>{Bo(st,{get ref(){return vt.liveButton},set ref(kt){vt.liveButton=kt},children:(kt,$i)=>{ec(kt,{get isLiveActive(){return r(Yn)},isMobile:!0,get ariaLabel(){return r(_o)}})},$$slots:{default:!0}})};L(Lr,st=>{!ee()&&I()&&st(Fi)})}var $t=P(Lr,2);{var ai=st=>{let kt=g(()=>ee()?He():R()),$i=g(()=>ee()?se():$e()),Xi=g(()=>!e.showControls);Od(st,{get showDuration(){return r(Gn)},get position(){return r(kt)},get duration(){return r($i)},isMobile:!0,get isHidden(){return r(Xi)},get ref(){return vt.time},set ref(Ao){vt.time=Ao}})};L($t,st=>{r(kr)&&st(ai)})}var Ei=P($t,2);let ko=g(()=>!r(En));Bo(Ei,{className:"w-max",get disabled(){return r(ko)},get ref(){return vt.episodes},set ref(st){vt.episodes=st},children:(st,kt)=>{var $i=We(),Xi=fe($i);{var Ao=xo=>{var uo=x4(),zo=P(fe(uo),2);Wd(zo,{get position(){return R()},get duration(){return $e()},get timeCodes(){return Wt}}),b(xo,uo)};L(Xi,xo=>{r(En)&&xo(Ao)})}b(st,$i)},$$slots:{default:!0}}),h(bo),rt(bo,st=>si.bottomRight=st,()=>si==null?void 0:si.bottomRight);var Ri=P(bo,2),Po=_(Ri);{var co=st=>{Bo(st,{get ref(){return vt.volume},set ref(kt){vt.volume=kt},children:(kt,$i)=>{Uu(kt,{get muted(){return r(ho)},click:Uo})},$$slots:{default:!0}})};L(Po,st=>{r(pr)&&st(co)})}var $o=P(Po,2);{var Zi=st=>{Bo(st,{get ref(){return vt.settings},set ref(kt){vt.settings=kt},children:(kt,$i)=>{Tl(kt,{get ref$(){return kn}})},$$slots:{default:!0}})};L($o,st=>{r(Tn)&&st(Zi)})}var mr=P($o,2);{var vr=st=>{Bo(st,{get ref(){return vt.fullscreen},set ref(kt){vt.fullscreen=kt},children:(kt,$i)=>{Hd(kt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ue()}})},$$slots:{default:!0}})};L(mr,st=>{r(ur)&&st(vr)})}h(Ri),rt(Ri,st=>si.bottomRight=st,()=>si==null?void 0:si.bottomRight),h(ei),rt(ei,st=>G(st),()=>G());var ps=P(ei,2);let Jr=g(()=>!e.showControls);ka(ps,{get isHidden(){return r(Jr)},get isAds(){return ee()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return J()},get ref(){return vt.timeline},set ref(st){vt.timeline=st}}),h(Jn),h(Xn),rt(Xn,st=>Be(st),()=>Be());var yo=P(Xn,2);{var Mn=st=>{Qd(st,{get ref(){return vt.interactiveTimeIndicator},set ref(kt){vt.interactiveTimeIndicator=kt}})};L(yo,st=>{wt&&st(Mn)})}B((st,kt)=>{Ar=ne(Xn,1,"wrapper-bottom svelte-68kopu",null,Ar,st),Io=ne(Jn,1,"controls-wrapper svelte-68kopu",null,Io,kt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:ue()})]),b(t,Pn),z(),o()}ct(["click"]);function tc(t,e){U(e,!0);let[i,o]=Fe(),n=()=>S(C,"$isMobile",i),s=v(e,"bottomNoSmooth",3,!1),l=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),a=v(e,"isAds",3,!1),u=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),m=v(e,"isOneVideoPlaylist",3,!1),p=v(e,"customFullscreenSupported",3,!0),w=v(e,"endScreenShown",3,!1),x=v(e,"onDisabledPlayPrevChapterClick",3,Qm.noop),y=v(e,"onDisabledSeekToInteractiveClick",3,Qm.noop),C=Ie().ui.isMobile,E=Z(!1);Vt(()=>{let N=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(N)});var V=We(),k=fe(V);{var I=N=>{var J=We(),H=fe(J);{var F=ie=>{qm(ie,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return m()},get customFullscreenSupported(){return p()},get endScreenShown(){return w()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return x()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},Q=ie=>{Bm(ie,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return m()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};L(H,ie=>{n()?ie(F):ie(Q,!1)})}b(N,J)};L(k,N=>{r(E)&&N(I)})}b(t,V),z(),o()}var C4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Gm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=C4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}function jm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Gm(t,{get style(){return r(o)}})}var T4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Ym(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=T4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}var E4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Zm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=E4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}function zu(t,e){let i=v(e,"isOff",3,!1);var o=We(),n=fe(o);{var s=d=>{Zm(d,{})},l=d=>{Ym(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}b(t,o)}var I4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Xm(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=I4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}function Jm(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Xm(t,{get style(){return r(o)}})}var k4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function ev(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=k4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(2),h(o),b(t,o)}function tv(t,e){let i=v(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);ev(t,{get style(){return r(o)}})}var P4=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),A4=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),M4=A("<div><!></div>"),L4={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
260
260
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
261
261
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
262
262
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -271,23 +271,23 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
271
271
  @keyframes svelte-1ad3n06-fadeOut {
272
272
  0% {opacity:1;}
273
273
  100% {opacity:0;}
274
- }`};function tv(t,e){U(e,!0),Q(t,P4);let[i,o]=Fe(),n=()=>C(e.data,"$data",i),l=Ie().ui.t,d=g(()=>!n()),a=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),u=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=g(()=>{var S;return(S=n())==null?void 0:S.type}),v=g(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=k4();let x;var w=_(p);{var y=S=>{var T=I4(),E=he(T),V=_(E);{var k=ge=>{let ie=g(()=>r(f)==="FORWARD_SEEK");Gm(ge,{get reversed(){return r(ie)}})};L(V,ge=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ge(k)})}var I=P(V,2);{var R=ge=>{Ss(ge,{})};L(I,ge=>{r(f)==="PAUSE"&&ge(R)})}var Z=P(I,2);{var H=ge=>{qr(ge,{})};L(Z,ge=>{r(f)==="PLAY"&&ge(H)})}var F=P(Z,2);{var K=ge=>{jd(ge,{})};L(F,ge=>{r(f)==="REPLAY"&&ge(K)})}var ee=P(F,2);{var j=ge=>{Uu(ge,{isOff:!0})};L(ee,ge=>{r(f)==="SUBTITLES_OFF"&&ge(j)})}var ue=P(ee,2);{var oe=ge=>{Uu(ge,{})};L(ue,ge=>{r(f)==="SUBTITLES_ON"&&ge(oe)})}var pe=P(ue,2);{var ye=ge=>{let ie=g(()=>r(f)==="RATE_UP");Xm(ge,{get reversed(){return r(ie)}})};L(pe,ge=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ge(ye)})}var me=P(pe,2);{var Pe=ge=>{let ie=g(()=>r(f)==="EPISODE_NEXT");ev(ge,{get reversed(){return r(ie)}})};L(me,ge=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ge(Pe)})}var re=P(me,2);{var Re=ge=>{Ws(ge,{volume:0})};L(re,ge=>{r(f)==="MUTE"&&ge(Re)})}var se=P(re,2);{var N=ge=>{Ws(ge,{volume:1})};L(se,ge=>{r(f)==="VOLUME"&&ge(N)})}h(E);var De=P(E,2);{var de=ge=>{var ie=E4(),ve=_(ie,!0);h(ie),B(()=>$e(ve,r(v))),$(ge,ie)};L(De,ge=>{r(v)&&ge(de)})}$(S,T)};L(w,S=>{!r(d)&&r(f)&&S(y)})}h(p),B(S=>x=te(p,1,"hot-key-helpers-container svelte-1ad3n06",null,x,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(u)})]),$(t,p),z(),o()}var A4=Ee('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function iv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=A4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var M4=Ee('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function ov(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=M4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function Qs(t,e){U(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return r(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Ke(),a=he(d);{var u=v=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");iv(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})},f=v=>{let p=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");ov(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})};L(a,v=>{r(n)?v(u):v(f,!1)})}$(t,d),z()}var L4=(t,e,i,o,n,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":s();break}},V4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},R4=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),N4={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function ic(t,e){U(e,!0),Q(t,N4);let i=m(e,"isShifted",3,!1),o=Ie(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=q("aria_label_spherical_control");var v=R4();let p;v.__keydown=[L4,n,s,l,a,d],v.__keyup=[V4,n,u];var x=_(v),w=_(x),y=_(w);y.__mousedown=s,y.__mouseup=u;var S=_(y);Qs(S,{direction:"up",useBtnColor:!0}),h(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);Qs(E,{direction:"up",useBtnColor:!0}),h(T),h(w);var V=P(w,2),k=_(V);k.__mousedown=a,k.__mouseup=u;var I=_(k);Qs(I,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=u;var Z=_(R);Qs(Z,{direction:"up",useBtnColor:!0}),h(R),h(V),h(x),h(v),B(H=>{p=te(v,1,"immersive-controls svelte-1yzc86r",null,p,H),Ue(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Tt("mouseleave",y,u),Tt("mouseleave",T,u),Tt("mouseleave",k,u),Tt("mouseleave",R,u),$(t,v),z()}ct(["keydown","keyup","mousedown","mouseup"]);var Ts=require("@vkontakte/videoplayer-shared/es2015");var p_=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var zu=class{constructor(){this.flickeringTimeout=p_(1e3);this.subscriptions=new Ts.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ts.ValueSubject([]);this.captionsPrepared$=new Ts.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ts.filter)(()=>this.isEnabled()),(0,Ts.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var O4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),B4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),D4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),H4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),F4=M("<div><!></div>"),U4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
275
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Na(t,e){U(e,!0),Q(t,U4);let[i,o]=Fe(),n=()=>C(v,"$currentSubtitle$",i),s=()=>C(x,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),u=Ie(),f=At(),v=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,x=u.state.isLive$,w=u.ui.isFullscreen,y=g(()=>!!n().isAuto),S=g(()=>!!s()),T=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),V=Y(null);qe(()=>{var K,ee,j;(K=r(V))==null||K.setIsAuto(r(y)),(ee=r(V))==null||ee.setIsLive(r(S)),(j=r(V))==null||j.setCaptions(e.captions)});let k=Y(ai([[]]));Vt(()=>{O(V,new zu().subscribe(),!0);let K=r(V).captionsPrepared$.subscribe(ee=>{O(k,ee,!0)});return()=>{var ee;(ee=r(V))==null||ee.destroy(),K.unsubscribe()}}),Vt(()=>{if(r(y)){let K=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(K)}}else p.set(!1)});let I=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=F4();let Z;var H=_(R);{var F=K=>{var ee=H4();let j;var ue=_(ee),oe=_(ue);{var pe=me=>{var Pe=O4(),re=_(Pe),Re=_(re,!0);h(re),h(Pe),B(se=>{var N;at(re,`font-size: ${(N=r(E))!=null?N:""}px`),$e(Re,se)},[()=>q("subtitles_auto_caption")]),$(me,Pe)},ye=(me,Pe)=>{{var re=se=>{var N=Ke(),De=he(N);Ii(De,17,()=>r(k),ud,(de,ge)=>{var ie=B4(),ve=_(ie);Ii(ve,21,()=>r(ge),({value:He,timeAppeared:fe})=>fe,(He,fe)=>{let lt=()=>r(fe).value,X=()=>r(fe).timeAppeared;var Me=Ke(),ke=he(Me);{var We=dt=>{var gt=ss();B(()=>$e(gt,lt())),$(dt,gt)};L(ke,dt=>{(!X()||X()<=e.position)&&dt(We)})}$(He,Me)}),h(ve),h(ie),B(()=>{var He;return at(ve,`font-size: ${(He=r(E))!=null?He:""}px`)}),$(de,ie)}),$(se,N)},Re=se=>{var N=Ke(),De=he(N);Ii(De,17,()=>e.captions,({value:de})=>de,(de,ge)=>{let ie=()=>r(ge).value;var ve=D4(),He=_(ve),fe=_(He,!0);h(He),h(ve),B(()=>{var lt;at(He,`font-size: ${(lt=r(E))!=null?lt:""}px`),$e(fe,ie())}),$(de,ve)}),$(se,N)};L(me,se=>{var N;r(y)&&((N=r(k))!=null&&N.length)?se(re):se(Re,!1)},Pe)}};L(oe,me=>{r(y)&&d()?me(pe):me(ye,!1)})}h(ue),h(ee),B(me=>{var Pe;j=te(ee,1,"subtitles-caption svelte-c2x749",null,j,me),at(ee,`--subtitles-caption-margin: ${(Pe=r(I))!=null?Pe:""}%`)},[()=>({mobile:a()})]),$(K,ee)};L(H,K=>{var ee;(e.captions.length||(ee=r(k))!=null&&ee.length)&&K(F)})}h(R),B(K=>Z=te(R,1,"subtitles-container svelte-c2x749",null,Z,K),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),$(t,R),z(),o()}var z4=M('<div class="text svelte-raurnb"> </div>'),W4=M('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),K4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function oc(t,e){U(e,!0),Q(t,K4);let i=At();var o=W4();let n;var s=P(_(o),2);{var l=d=>{var a=z4(),u=_(a);h(a),B(()=>{var f;return $e(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};L(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),B(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),at(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),z()}var q4=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function nv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=q4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var Q4=M('<div class="container svelte-13zpvm8"><!></div>'),G4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function Oa(t){Q(t,G4);var e=Q4(),i=_(e);nv(i,{}),h(e),$(t,e)}var j4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),Y4=M("<div><!></div>"),Z4={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
274
+ }`};function iv(t,e){U(e,!0),K(t,L4);let[i,o]=Fe(),n=()=>S(e.data,"$data",i),s=Ie(),{features:l}=Pt(),d=s.ui.t,a=g(()=>!n()),u=g(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),f=g(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),m=g(()=>{var C;return(C=n())==null?void 0:C.type}),p=g(()=>{var C,E;return(C=n())!=null&&C.t?d(n().t.key,{value:n().t.value||""}):(E=n())==null?void 0:E.text});var w=M4();let x;var y=_(w);{var T=C=>{var E=A4(),V=fe(E),k=_(V);{var I=G=>{let ee=g(()=>r(m)==="FORWARD_SEEK");jm(G,{get reversed(){return r(ee)}})};L(k,G=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&G(I)})}var N=P(k,2);{var J=G=>{Ss(G,{})};L(N,G=>{r(m)==="PAUSE"&&!l.playbackStatusShow&&G(J)})}var H=P(N,2);{var F=G=>{Gr(G,{})};L(H,G=>{r(m)==="PLAY"&&!l.playbackStatusShow&&G(F)})}var Q=P(H,2);{var ie=G=>{jd(G,{})};L(Q,G=>{r(m)==="REPLAY"&&!l.playbackStatusShow&&G(ie)})}var Y=P(Q,2);{var ge=G=>{zu(G,{isOff:!0})};L(Y,G=>{r(m)==="SUBTITLES_OFF"&&G(ge)})}var X=P(Y,2);{var ue=G=>{zu(G,{})};L(X,G=>{r(m)==="SUBTITLES_ON"&&G(ue)})}var me=P(X,2);{var pe=G=>{let ee=g(()=>r(m)==="RATE_UP");Jm(G,{get reversed(){return r(ee)}})};L(me,G=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&G(pe)})}var Pe=P(me,2);{var Le=G=>{let ee=g(()=>r(m)==="EPISODE_NEXT");tv(G,{get reversed(){return r(ee)}})};L(Pe,G=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&G(Le)})}var le=P(Pe,2);{var He=G=>{Ws(G,{volume:0})};L(le,G=>{r(m)==="MUTE"&&G(He)})}var se=P(le,2);{var R=G=>{Ws(G,{volume:1})};L(se,G=>{r(m)==="VOLUME"&&G(R)})}h(V);var $e=P(V,2);{var Be=G=>{var ee=P4(),Oe=_(ee,!0);h(ee),B(()=>be(Oe,r(p))),b(G,ee)};L($e,G=>{r(p)&&G(Be)})}b(C,E)};L(y,C=>{!r(a)&&r(m)&&C(T)})}h(w),B(C=>x=ne(w,1,"hot-key-helpers-container svelte-1ad3n06",null,x,C),[()=>({hidden:r(a),"hot-key-helpers-container--left":r(u),"hot-key-helpers-container--right":r(f)})]),b(t,w),z(),o()}var V4=Te('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function ov(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=V4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var R4=Te('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function nv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=R4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}function qs(t,e){U(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let m="";return r(s)&&(m+="transform: rotate(180deg);"),o()&&(m+="color: var(--btn-color, #fff);"),m.length?m:void 0})());var d=We(),a=fe(d);{var u=m=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");ov(m,{get style(){return r(l)},get"data-testid"(){return r(p)}})},f=m=>{let p=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");nv(m,{get style(){return r(l)},get"data-testid"(){return r(p)}})};L(a,m=>{r(n)?m(u):m(f,!1)})}b(t,d),z()}var N4=(t,e,i,o,n,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":s();break}},O4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},B4=A('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),D4={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function ic(t,e){U(e,!0),K(t,D4);let i=v(e,"isShifted",3,!1),o=Ie(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=q("aria_label_spherical_control");var m=B4();let p;m.__keydown=[N4,n,s,l,a,d],m.__keyup=[O4,n,u];var w=_(m),x=_(w),y=_(x);y.__mousedown=s,y.__mouseup=u;var T=_(y);qs(T,{direction:"up",useBtnColor:!0}),h(y);var C=P(y,2);C.__mousedown=d,C.__mouseup=u;var E=_(C);qs(E,{direction:"up",useBtnColor:!0}),h(C),h(x);var V=P(x,2),k=_(V);k.__mousedown=a,k.__mouseup=u;var I=_(k);qs(I,{direction:"up",useBtnColor:!0}),h(k);var N=P(k,2);N.__mousedown=l,N.__mouseup=u;var J=_(N);qs(J,{direction:"up",useBtnColor:!0}),h(N),h(V),h(w),h(m),B(H=>{p=ne(m,1,"immersive-controls svelte-1yzc86r",null,p,H),ze(m,"aria-label",f)},[()=>({"m-shifted":i()})]),Tt("mouseleave",y,u),Tt("mouseleave",C,u),Tt("mouseleave",k,u),Tt("mouseleave",N,u),b(t,m),z()}ct(["keydown","keyup","mousedown","mouseup"]);var Ts=require("@vkontakte/videoplayer-shared/es2015");var v0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Wu=class{constructor(){this.flickeringTimeout=v0(1e3);this.subscriptions=new Ts.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ts.ValueSubject([]);this.captionsPrepared$=new Ts.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ts.filter)(()=>this.isEnabled()),(0,Ts.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var H4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),F4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),U4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),z4=A('<div><span class="caption svelte-c2x749"><!></span></div>'),W4=A("<div><!></div>"),K4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
275
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ra(t,e){U(e,!0),K(t,K4);let[i,o]=Fe(),n=()=>S(m,"$currentSubtitle$",i),s=()=>S(w,"$isLive$",i),l=()=>S(x,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),a=v(e,"isMobile",3,!1),u=Ie(),f=Pt(),m=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,w=u.state.isLive$,x=u.ui.isFullscreen,y=g(()=>!!n().isAuto),T=g(()=>!!s()),C=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(C)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(C)),V=Z(null);qe(()=>{var Q,ie,Y;(Q=r(V))==null||Q.setIsAuto(r(y)),(ie=r(V))==null||ie.setIsLive(r(T)),(Y=r(V))==null||Y.setCaptions(e.captions)});let k=Z(ii([[]]));Vt(()=>{O(V,new Wu().subscribe(),!0);let Q=r(V).captionsPrepared$.subscribe(ie=>{O(k,ie,!0)});return()=>{var ie;(ie=r(V))==null||ie.destroy(),Q.unsubscribe()}}),Vt(()=>{if(r(y)){let Q=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else p.set(!1)});let I=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var N=W4();let J;var H=_(N);{var F=Q=>{var ie=z4();let Y;var ge=_(ie),X=_(ge);{var ue=pe=>{var Pe=H4(),Le=_(Pe),le=_(Le,!0);h(Le),h(Pe),B(He=>{var se;lt(Le,`font-size: ${(se=r(E))!=null?se:""}px`),be(le,He)},[()=>q("subtitles_auto_caption")]),b(pe,Pe)},me=(pe,Pe)=>{{var Le=He=>{var se=We(),R=fe(se);Mi(R,17,()=>r(k),cd,($e,Be)=>{var G=F4(),ee=_(G);Mi(ee,21,()=>r(Be),({value:Oe,timeAppeared:it})=>it,(Oe,it)=>{let he=()=>r(it).value,te=()=>r(it).timeAppeared;var we=We(),ke=fe(we);{var je=ot=>{var bt=ss();B(()=>be(bt,he())),b(ot,bt)};L(ke,ot=>{(!te()||te()<=e.position)&&ot(je)})}b(Oe,we)}),h(ee),h(G),B(()=>{var Oe;return lt(ee,`font-size: ${(Oe=r(E))!=null?Oe:""}px`)}),b($e,G)}),b(He,se)},le=He=>{var se=We(),R=fe(se);Mi(R,17,()=>e.captions,({value:$e})=>$e,($e,Be)=>{let G=()=>r(Be).value;var ee=U4(),Oe=_(ee),it=_(Oe,!0);h(Oe),h(ee),B(()=>{var he;lt(Oe,`font-size: ${(he=r(E))!=null?he:""}px`),be(it,G())}),b($e,ee)}),b(He,se)};L(pe,He=>{var se;r(y)&&((se=r(k))!=null&&se.length)?He(Le):He(le,!1)},Pe)}};L(X,pe=>{r(y)&&d()?pe(ue):pe(me,!1)})}h(ge),h(ie),B(pe=>{var Pe;Y=ne(ie,1,"subtitles-caption svelte-c2x749",null,Y,pe),lt(ie,`--subtitles-caption-margin: ${(Pe=r(I))!=null?Pe:""}%`)},[()=>({mobile:a()})]),b(Q,ie)};L(H,Q=>{var ie;(e.captions.length||(ie=r(k))!=null&&ie.length)&&Q(F)})}h(N),B(Q=>J=ne(N,1,"subtitles-container svelte-c2x749",null,J,Q),[()=>({shifted:e.shifted,auto:r(y)&&!r(T)&&!d()})]),b(t,N),z(),o()}var q4=A('<div class="text svelte-raurnb"> </div>'),Q4=A('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),G4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function oc(t,e){U(e,!0),K(t,G4);let i=Pt();var o=Q4();let n;var s=P(_(o),2);{var l=d=>{var a=q4(),u=_(a);h(a),B(()=>{var f;return be(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};L(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),B(d=>{n=ne(o,1,"wrapper svelte-raurnb",null,n,d),lt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),z()}var j4=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function rv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=j4();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var Y4=A('<div class="container svelte-13zpvm8"><!></div>'),Z4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function Na(t){K(t,Z4);var e=Y4(),i=_(e);rv(i,{}),h(e),b(t,e)}var X4=A('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),J4=A("<div><!></div>"),e3={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
276
276
  visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
277
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ba(t,e){U(e,!0),Q(t,Z4);let i=m(e,"iconVisible",3,!0),o=Ie(),n=At(),s=o.ui.startedByKeyboard$,l=q("tooltip_play"),d=x=>{var y;let w=x.code;["Enter","Space"].includes(w)&&(x.stopPropagation(),x.preventDefault(),s.set(!0),(y=e.startVideo)==null||y.call(e))},a=x=>{var w;x.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=Y4();let f;u.__click=a;var v=_(u);{var p=x=>{var w=j4();w.__keydown=d;var y=P(_(w),2);qr(y,{}),h(w),B(()=>Ue(w,"aria-label",l)),$(x,w)};L(v,x=>{i()&&x(p)})}return h(u),B(x=>{f=te(u,1,"container svelte-1ciju45",null,f,x),at(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,u),z({handlePressKey:d,handleClick:a})}ct(["click","keydown"]);var X4=M('<div data-testid="video_title"><span> </span></div>'),J4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
277
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Oa(t,e){U(e,!0),K(t,e3);let i=v(e,"iconVisible",3,!0),o=Ie(),n=Pt(),s=o.ui.startedByKeyboard$,l=q("tooltip_play"),d=w=>{var y;let x=w.code;["Enter","Space"].includes(x)&&(w.stopPropagation(),w.preventDefault(),s.set(!0),(y=e.startVideo)==null||y.call(e))},a=w=>{var x;w.stopPropagation(),(x=e.startVideo)==null||x.call(e)};var u=J4();let f;u.__click=a;var m=_(u);{var p=w=>{var x=X4();x.__keydown=d;var y=P(_(x),2);Gr(y,{}),h(x),B(()=>ze(x,"aria-label",l)),b(w,x)};L(m,w=>{i()&&w(p)})}return h(u),B(w=>{f=ne(u,1,"container svelte-1ciju45",null,f,w),lt(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,u),z({handlePressKey:d,handleClick:a})}ct(["click","keydown"]);var t3=A('<div data-testid="video_title"><span> </span></div>'),i3={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
278
278
  0deg,
279
279
  rgba(0, 0, 0, 0) 0%,
280
280
  rgba(0, 0, 0, 0.02) 19%,
281
281
  rgba(0, 0, 0, 0.1) 34%,
282
282
  rgba(0, 0, 0, 0.4) 60%,
283
283
  rgba(0, 0, 0, 0.6) 100%
284
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function rv(t,e){U(e,!0),Q(t,J4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=Y(void 0);Vt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var x;p.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!o()))}return(v=r(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=r(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=X4();let d;var a=_(l),u=_(a,!0);h(a),nt(a,f=>n(f),()=>n()),h(l),nt(l,f=>O(s,f),()=>r(s)),B(f=>{d=te(l,1,"title svelte-14hk510",null,d,f),$e(u,i())},[()=>({hidden:o()})]),$(t,l),z()}var f_=require("@vkontakte/videoplayer-shared/es2015");var e3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),t3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),i3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),o3=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),n3=M("<div><!> <!> <!> <!></div>"),r3={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function sv(t,e){U(e,!0),Q(t,r3);let i=Y(""),o=Y(""),n=Y(""),s=Y(""),l,d=32,a=d/2,u=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),v=H=>`${(e.isSmallSize?a:d)*f(H)}px`,p=H=>{let F=Math.floor(H/86400);F&&(H-=F*86400,O(i,u(F),!0));let K=Math.floor(H/3600);O(o,u(K),!0);let ee=Math.floor(H/60)%60;O(n,u(ee),!0);let j=H%60;O(s,u(j),!0)},x=()=>{let H=Math.floor(Date.now()/1e3),F=e.startTime-H;p(F),F>=1?l=requestAnimationFrame(x):e.onTimerOver()};Vt(()=>{l=requestAnimationFrame(x)}),ln(()=>{cancelAnimationFrame(l)});var w=n3();let y;var S=_(w);{var T=H=>{var F=e3(),K=he(F);let ee;var j=_(K),ue=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(K);var ye=P(K,2),me=_(ye,!0);h(ye),B((Pe,re,Re)=>{ee=at(K,"",ee,{width:Pe}),$e(ue,r(i)),$e(pe,re),$e(me,Re)},[()=>v(r(i)),()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),$(H,F)};L(S,H=>{r(i)&&H(T)})}var E=P(S,2);{var V=H=>{var F=t3(),K=he(F);let ee;var j=_(K),ue=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(K);var ye=P(K,2),me=_(ye,!0);h(ye),B((Pe,re,Re)=>{ee=at(K,"",ee,{width:Pe}),$e(ue,r(o)),$e(pe,re),$e(me,Re)},[()=>v(r(o)),()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),$(H,F)};L(E,H=>{r(o)&&H(V)})}var k=P(E,2);{var I=H=>{var F=i3(),K=he(F);let ee;var j=_(K),ue=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(K);var ye=P(K,2),me=_(ye,!0);h(ye),B((Pe,re,Re)=>{ee=at(K,"",ee,{width:Pe}),$e(ue,r(n)),$e(pe,re),$e(me,Re)},[()=>v(r(n)),()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),$(H,F)};L(k,H=>{r(n)&&H(I)})}var R=P(k,2);{var Z=H=>{var F=o3();let K;var ee=_(F),j=_(ee,!0);h(ee);var ue=P(ee,2),oe=_(ue,!0);h(ue),h(F),B((pe,ye)=>{K=at(F,"",K,{width:pe}),$e(j,r(s)),$e(oe,ye)},[()=>v(r(s)),()=>q("waiting_live_second_value")]),$(H,F)};L(R,H=>{r(s)&&H(Z)})}h(w),B(H=>y=te(w,1,"timer__container svelte-gt98rn",null,y,H),[()=>({small:e.isSmallSize})]),$(t,w),z()}var s3=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),a3=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),l3=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),d3={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function nc(t,e){U(e,!0),Q(t,d3);let i=m(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=Y(void 0),s=Y(void 0),l=0,d=Y(void 0),a=Y(void 0),u=g(()=>{var S,T;return((S=r(d))!=null?S:1/0)<=509||((T=r(a))!=null?T:1/0)<=320}),f=g(()=>{var S,T;return!r(u)&&(((S=r(d))!=null?S:1/0)<=699||((T=r(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?(0,f_.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"},T=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(S,T)})},300):void 0;qe(()=>{r(a),r(d),r(o),v==null||v()}),ln(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var p=l3(),x=_(p);{var w=S=>{var T=s3(),E=_(T);let V;var k=_(E,!0);h(E),h(T),nt(T,I=>O(n,I),()=>r(n)),B((I,R)=>{V=te(E,1,"waiting__title svelte-17m8dcd",null,V,I),$e(k,R)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_upcoming_title")]),$(S,T)},y=S=>{var T=a3(),E=_(T);let V;var k=_(E,!0);h(E);var I=P(E,2);let R=g(()=>r(u)||r(f)),Z=g(()=>i()||0);sv(I,{get isSmallSize(){return r(R)},get startTime(){return r(Z)},onTimerOver:()=>O(o,!0)}),h(T),nt(T,H=>O(s,H),()=>r(s)),B((H,F)=>{V=te(E,1,"timer__title svelte-17m8dcd",null,V,H),$e(k,F)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_timer_title")]),$(S,T)};L(x,S=>{r(o)?S(w):S(y,!1)})}h(p),B(()=>at(p,`background-image: url(${e.thumbUrl})`)),ar(p,"clientWidth",S=>O(d,S)),ar(p,"clientHeight",S=>O(a,S)),$(t,p),z()}var c3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),u3={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function Da(t,e){U(e,!0),Q(t,u3);let i=m(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=c3(),l=_(s),d=_(l);Ta(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);h(a),h(l),h(s),B(()=>{at(s,`background-image: url('${i()}')`),$e(u,r(n))}),$(t,s),z()}var p3=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function av(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=p3();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var f3=M('<div class="select-icon svelte-124aexk"><!></div>'),m3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function rc(t){Q(t,m3);var e=f3(),i=_(e);av(i,{}),h(e),$(t,e)}var v3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},g3=(t,e)=>{wl(t,()=>e.item.selectItem(e.item.value))},h3=M("<p> </p>"),_3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),b3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),$3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
284
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function sv(t,e){U(e,!0),K(t,i3);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1),n=v(e,"ref",15),s=Z(void 0);Vt(()=>{var m;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var w;p.propertyName==="transform"&&((w=e.onVisibilityChanged)==null||w.call(e,!o()))}return(m=r(s))==null||m.addEventListener("transitionend",f),()=>{var p;return(p=r(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=t3();let d;var a=_(l),u=_(a,!0);h(a),rt(a,f=>n(f),()=>n()),h(l),rt(l,f=>O(s,f),()=>r(s)),B(f=>{d=ne(l,1,"title svelte-14hk510",null,d,f),be(u,i())},[()=>({hidden:o()})]),b(t,l),z()}var g0=require("@vkontakte/videoplayer-shared/es2015");var o3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),n3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),r3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),s3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),a3=A("<div><!> <!> <!> <!></div>"),l3={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function av(t,e){U(e,!0),K(t,l3);let i=Z(""),o=Z(""),n=Z(""),s=Z(""),l,d=32,a=d/2,u=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),m=H=>`${(e.isSmallSize?a:d)*f(H)}px`,p=H=>{let F=Math.floor(H/86400);F&&(H-=F*86400,O(i,u(F),!0));let Q=Math.floor(H/3600);O(o,u(Q),!0);let ie=Math.floor(H/60)%60;O(n,u(ie),!0);let Y=H%60;O(s,u(Y),!0)},w=()=>{let H=Math.floor(Date.now()/1e3),F=e.startTime-H;p(F),F>=1?l=requestAnimationFrame(w):e.onTimerOver()};Vt(()=>{l=requestAnimationFrame(w)}),an(()=>{cancelAnimationFrame(l)});var x=a3();let y;var T=_(x);{var C=H=>{var F=o3(),Q=fe(F);let ie;var Y=_(Q),ge=_(Y,!0);h(Y);var X=P(Y,2),ue=_(X,!0);h(X),h(Q);var me=P(Q,2),pe=_(me,!0);h(me),B((Pe,Le,le)=>{ie=lt(Q,"",ie,{width:Pe}),be(ge,r(i)),be(ue,Le),be(pe,le)},[()=>m(r(i)),()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),b(H,F)};L(T,H=>{r(i)&&H(C)})}var E=P(T,2);{var V=H=>{var F=n3(),Q=fe(F);let ie;var Y=_(Q),ge=_(Y,!0);h(Y);var X=P(Y,2),ue=_(X,!0);h(X),h(Q);var me=P(Q,2),pe=_(me,!0);h(me),B((Pe,Le,le)=>{ie=lt(Q,"",ie,{width:Pe}),be(ge,r(o)),be(ue,Le),be(pe,le)},[()=>m(r(o)),()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),b(H,F)};L(E,H=>{r(o)&&H(V)})}var k=P(E,2);{var I=H=>{var F=r3(),Q=fe(F);let ie;var Y=_(Q),ge=_(Y,!0);h(Y);var X=P(Y,2),ue=_(X,!0);h(X),h(Q);var me=P(Q,2),pe=_(me,!0);h(me),B((Pe,Le,le)=>{ie=lt(Q,"",ie,{width:Pe}),be(ge,r(n)),be(ue,Le),be(pe,le)},[()=>m(r(n)),()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),b(H,F)};L(k,H=>{r(n)&&H(I)})}var N=P(k,2);{var J=H=>{var F=s3();let Q;var ie=_(F),Y=_(ie,!0);h(ie);var ge=P(ie,2),X=_(ge,!0);h(ge),h(F),B((ue,me)=>{Q=lt(F,"",Q,{width:ue}),be(Y,r(s)),be(X,me)},[()=>m(r(s)),()=>q("waiting_live_second_value")]),b(H,F)};L(N,H=>{r(s)&&H(J)})}h(x),B(H=>y=ne(x,1,"timer__container svelte-gt98rn",null,y,H),[()=>({small:e.isSmallSize})]),b(t,x),z()}var d3=A('<div class="waiting svelte-17m8dcd"><span> </span></div>'),c3=A('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),u3=A('<div class="waiting-container svelte-17m8dcd"><!></div>'),p3={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function nc(t,e){U(e,!0),K(t,p3);let i=v(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=Z(void 0),s=Z(void 0),l=0,d=Z(void 0),a=Z(void 0),u=g(()=>{var T,C;return((T=r(d))!=null?T:1/0)<=509||((C=r(a))!=null?C:1/0)<=320}),f=g(()=>{var T,C;return!r(u)&&(((T=r(d))!=null?T:1/0)<=699||((C=r(a))!=null?C:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?(0,g0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let T={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"},C=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(T,C)})},300):void 0;qe(()=>{r(a),r(d),r(o),m==null||m()}),an(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let T={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(T)}});var p=u3(),w=_(p);{var x=T=>{var C=d3(),E=_(C);let V;var k=_(E,!0);h(E),h(C),rt(C,I=>O(n,I),()=>r(n)),B((I,N)=>{V=ne(E,1,"waiting__title svelte-17m8dcd",null,V,I),be(k,N)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_upcoming_title")]),b(T,C)},y=T=>{var C=c3(),E=_(C);let V;var k=_(E,!0);h(E);var I=P(E,2);let N=g(()=>r(u)||r(f)),J=g(()=>i()||0);av(I,{get isSmallSize(){return r(N)},get startTime(){return r(J)},onTimerOver:()=>O(o,!0)}),h(C),rt(C,H=>O(s,H),()=>r(s)),B((H,F)=>{V=ne(E,1,"timer__title svelte-17m8dcd",null,V,H),be(k,F)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_timer_title")]),b(T,C)};L(w,T=>{r(o)?T(x):T(y,!1)})}h(p),B(()=>lt(p,`background-image: url(${e.thumbUrl})`)),dr(p,"clientWidth",T=>O(d,T)),dr(p,"clientHeight",T=>O(a,T)),b(t,p),z()}var f3=A('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),m3={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function Ba(t,e){U(e,!0),K(t,m3);let i=v(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=f3(),l=_(s),d=_(l);Ca(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);h(a),h(l),h(s),B(()=>{lt(s,`background-image: url('${i()}')`),be(u,r(n))}),b(t,s),z()}var v3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function lv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=v3();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var g3=A('<div class="select-icon svelte-124aexk"><!></div>'),h3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function rc(t){K(t,h3);var e=g3(),i=_(e);lv(i,{}),h(e),b(t,e)}var _3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},b3=(t,e)=>{xl(t,()=>e.item.selectItem(e.item.value))},$3=A("<p> </p>"),y3=A('<p class="sublabel svelte-1t7rx2m"> </p>'),x3=A('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),w3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
285
285
 
286
286
  /**
287
287
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
288
288
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
289
289
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
290
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function lv(t,e){U(e,!0),Q(t,$3);let i=m(e,"isMobile",3,!1);var o=b3();let n;o.__click=[v3,e],o.__keydown=[g3,e];var s=_(o);{var l=w=>{rc(w,{})};L(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var y=Ke(),S=he(y);ki(S,()=>e.item.valueComponent,(T,E)=>{E(T,$s(()=>{var V;return(V=e.item.valueComponentParams)!=null?V:{}}))}),$(w,y)},v=w=>{var y=h3();let S;var T=_(y,!0);h(y),B(E=>{var V;S=te(y,1,"label svelte-1t7rx2m",null,S,E),$e(T,(V=e.item.label)!=null?V:e.item.value)},[()=>({mobile:i()})]),$(w,y)};L(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var x=w=>{var y=_3(),S=_(y,!0);h(y),B(()=>$e(S,e.item.sublabel)),$(w,y)};L(p,w=>{e.item.sublabel&&w(x)})}h(d),h(o),B((w,y,S)=>{n=te(o,1,"item",null,n,w),Ue(o,"data-value",e.item.value),Ue(o,"aria-label",y),Ue(o,"data-testid",e.item.dataTestid),a=te(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Ue(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),z()}ct(["click","keydown"]);var y3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function dv(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>y=>Su(y,r(n)));var l=y3();let d;l.__click=function(...y){var S;(S=r(n))==null||S.apply(this,y)},l.__keydown=function(...y){var S;(S=r(s))==null||S.apply(this,y)};var a=_(l);{var u=y=>{rc(y,{})};L(a,y=>{e.item.selected&&y(u)})}var f=P(a,2);let v;var p=_(f);{var x=y=>{var S=Ke();let T=g(()=>e.item.valueComponent);var E=he(S);ki(E,()=>r(T),(V,k)=>{k(V,$s(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(y,S)},w=y=>{var S=ss();B(()=>$e(S,e.item.label)),$(y,S)};L(p,y=>{e.item.valueComponent?y(x):y(w,!1)})}h(f),h(l),nt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),B((y,S)=>{var T;d=te(l,1,"item",null,d,y),Ue(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ue(l,"data-testid",e.item.id),v=te(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),z()}ct(["click","keydown"]);var Qr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var w3=(t,e)=>{V1(t,e.returnFromSubMenu,e.closeSettingsMenu)},S3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},C3=(t,e)=>{kd(t)&&(wr(t),e.returnFromSubMenu())},T3=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),E3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
290
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function dv(t,e){U(e,!0),K(t,w3);let i=v(e,"isMobile",3,!1);var o=x3();let n;o.__click=[_3,e],o.__keydown=[b3,e];var s=_(o);{var l=x=>{rc(x,{})};L(s,x=>{e.item.selected&&x(l)})}var d=P(s,2);let a;var u=_(d);{var f=x=>{var y=We(),T=fe(y);Li(T,()=>e.item.valueComponent,(C,E)=>{E(C,$s(()=>{var V;return(V=e.item.valueComponentParams)!=null?V:{}}))}),b(x,y)},m=x=>{var y=$3();let T;var C=_(y,!0);h(y),B(E=>{var V;T=ne(y,1,"label svelte-1t7rx2m",null,T,E),be(C,(V=e.item.label)!=null?V:e.item.value)},[()=>({mobile:i()})]),b(x,y)};L(u,x=>{e.item.valueComponent?x(f):x(m,!1)})}var p=P(u,2);{var w=x=>{var y=y3(),T=_(y,!0);h(y),B(()=>be(T,e.item.sublabel)),b(x,y)};L(p,x=>{e.item.sublabel&&x(w)})}h(d),h(o),B((x,y,T)=>{n=ne(o,1,"item",null,n,x),ze(o,"data-value",e.item.value),ze(o,"aria-label",y),ze(o,"data-testid",e.item.dataTestid),a=ne(d,1,"menu-item-value svelte-1t7rx2m",null,a,T),ze(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var x,y;return(y=(x=e.item.ariaLabel)!=null?x:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),z()}ct(["click","keydown"]);var S3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function cv(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>y=>Cu(y,r(n)));var l=S3();let d;l.__click=function(...y){var T;(T=r(n))==null||T.apply(this,y)},l.__keydown=function(...y){var T;(T=r(s))==null||T.apply(this,y)};var a=_(l);{var u=y=>{rc(y,{})};L(a,y=>{e.item.selected&&y(u)})}var f=P(a,2);let m;var p=_(f);{var w=y=>{var T=We();let C=g(()=>e.item.valueComponent);var E=fe(T);Li(E,()=>r(C),(V,k)=>{k(V,$s(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(y,T)},x=y=>{var T=ss();B(()=>be(T,e.item.label)),b(y,T)};L(p,y=>{e.item.valueComponent?y(w):y(x,!1)})}h(f),h(l),rt(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),B((y,T)=>{var C;d=ne(l,1,"item",null,d,y),ze(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),ze(l,"data-testid",e.item.id),m=ne(f,1,"menu-item-value",null,m,T)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),z()}ct(["click","keydown"]);var jr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var T3=(t,e)=>{O1(t,e.returnFromSubMenu,e.closeSettingsMenu)},E3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},I3=(t,e)=>{Id(t)&&(Sr(t),e.returnFromSubMenu())},k3=A('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),P3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
291
291
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
292
292
  /**
293
293
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -297,18 +297,18 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
297
297
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
298
298
  1px
299
299
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
300
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function uv(t,e){U(e,!0),Q(t,E3);let[i,o]=Fe(),n=()=>C(v,"$isFullscreen",i),s=()=>C(p,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),u=m(e,"listRef",15);Vt(()=>{let j=e.items.findIndex(ue=>ue.selected);u().children[j+1].focus()});let f=Ie(),v=f.ui.isFullscreen,p=f.ui.playerSize,x=Y(void 0),w=Y(0),y=Y(0),S=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(y)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=T3();let V;var k=_(E);let I;k.__keydown=[w3,e];var R=_(k);let Z;R.__click=[S3,e],R.__keydown=[C3,e];var H=_(R);Qs(H,{direction:"left"});var F=P(H,2),K=_(F,!0);h(F),h(R),nt(R,j=>O(x,j),()=>r(x));var ee=P(R,2);Ii(ee,17,()=>e.items,ud,(j,ue)=>{var oe=Ke(),pe=he(oe);{var ye=Pe=>{lv(Pe,{get item(){return r(ue)},get isMobile(){return l()}})},me=(Pe,re)=>{{var Re=se=>{dv(se,{get isMobile(){return l()},get item(){return r(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(Pe,se=>{r(ue).type==="OPEN_SUB_MENU"&&se(Re)},re)}};L(pe,Pe=>{r(ue).type==="SELECT_VALUE"?Pe(ye):Pe(me,!1)})}$(j,oe)}),h(k),nt(k,j=>u(j),()=>u()),h(E),B((j,ue,oe)=>{V=te(E,1,"sub-menu menu svelte-7dfsuh",null,V,j),Ue(E,"data-testid",`sub-menu-${e.id}`),at(E,`min-width: ${r(T)}px`),I=te(k,1,"items svelte-7dfsuh",null,I,ue),at(k,r(S)),Z=te(R,1,"item header back svelte-7dfsuh",null,Z,oe),Ue(R,"aria-label",a()),$e(K,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),ar(R,"clientWidth",j=>O(w,j)),ar(R,"clientHeight",j=>O(y,j)),$(t,E),z(),o()}ct(["keydown","click"]);var v_=require("@vkontakte/videoplayer-shared/es2015");var I3=(t,e)=>Su(t,e()),k3=(t,e)=>{t.stopPropagation(),e()()},P3=M('<div class="value svelte-1ikfjte"> </div>'),A3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),M3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function pv(t,e){U(e,!0),Q(t,M3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,v_.noop),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=A3();let d;l.__click=[k3,o],l.__keydown=[I3,o];var a=_(l),u=_(a);{var f=T=>{La(T,{get icon(){return e.icon}})},v=T=>{var E=Ke();let V=g(()=>e.icon);var k=he(E);ki(k,()=>r(V),(I,R)=>{R(I,{})}),$(T,E)};L(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var p=P(a,2),x=_(p,!0);h(p);var w=P(p,2);{var y=T=>{var E=Ke();let V=g(n);var k=he(E);ki(k,()=>r(V),(I,R)=>{R(I,{})}),$(T,E)},S=T=>{var E=P3(),V=_(E,!0);h(E),B(()=>$e(V,e.value)),$(T,E)};L(w,T=>{n()?T(y):T(S,!1)})}h(l),nt(l,T=>s(T),()=>s()),B(T=>{d=te(l,1,"item",null,d,T),Ue(l,"aria-label",e.ariaLabel),Ue(l,"data-testid",e.id),$e(x,e.label)},[()=>({mobile:i()})]),$(t,l),z()}ct(["click","keydown"]);var fv=require("@vkontakte/videoplayer-shared/es2015");var L3=(t,e)=>{wl(t,()=>e())},V3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),R3=M('<img class="icon" aria-hidden="true"/>'),N3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),O3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function mv(t,e){U(e,!0),Q(t,O3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,fv.noop),n=m(e,"closeSettings",3,fv.noop),s=Y(!1),l=()=>{O(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=N3();let u;a.__click=d,a.__keydown=[L3,d];var f=_(a),v=_(f);{var p=S=>{var T=Ke(),E=he(T);{var V=I=>{var R=V3();$(I,R)},k=I=>{var R=R3();B(()=>Ue(R,"src",e.icon)),Tt("error",R,l),da(R),$(I,R)};L(E,I=>{r(s)?I(V):I(k,!1)})}$(S,T)},x=S=>{var T=Ke();let E=g(()=>e.icon);var V=he(T);ki(V,()=>r(E),(k,I)=>{I(k,{})}),$(S,T)};L(v,S=>{typeof e.icon=="string"?S(p):S(x,!1)})}h(f);var w=P(f,2),y=_(w,!0);h(w),h(a),B(S=>{var T;u=te(a,1,"item",null,u,S),Ue(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ue(a,"data-testid",e.id),$e(y,e.label)},[()=>({mobile:i()})]),$(t,a),z()}ct(["click","keydown"]);var g_=require("@vkontakte/videoplayer-shared/es2015");var B3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),D3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function vv(t,e){Q(t,D3);let i=m(e,"enabled",3,!1);var o=B3(),n=_(o);let s;Te(2),h(o),B(l=>s=te(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var H3=(t,e,i)=>{R1(t,e(),o=>i()(o))},F3=(t,e,i)=>{t.stopPropagation(),e()(!i())},U3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),z3=M('<li role="menuitem" tabindex="0"><!></li>');function gv(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,g_.noop),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=z3();let a;d.__click=[F3,o,n],d.__keydown=[H3,n,o];var u=_(d);Ia(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=U3();let x;var w=_(p),y=_(w);{var S=I=>{La(I,{get icon(){return e.icon}})},T=I=>{var R=Ke();let Z=g(()=>e.icon);var H=he(R);ki(H,()=>r(Z),(F,K)=>{K(F,{})}),$(I,R)};L(y,I=>{typeof e.icon=="string"?I(S):I(T,!1)})}h(w);var E=P(w,2),V=_(E,!0);h(E);var k=P(E,2);vv(k,{get enabled(){return n()}}),h(p),B(I=>{x=te(p,1,"switch-wrapper",null,x,I),$e(V,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),h(d),B(f=>{var v;a=te(d,1,"item switch-item",null,a,f),Ue(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Ue(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),z()}ct(["click","keydown"]);var ac=require("@vkontakte/videoplayer-shared/es2015");var h_=()=>{let t=Y(ai([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var W3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),K3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),q3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Ha(t,e){U(e,!0),Q(t,q3);let i=m(e,"isSubCase",3,!1),o=g(()=>Iu(e.quality));var n=K3(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var u=f=>{var v=W3();let p=g(()=>r(o));var x=_(v);ki(x,()=>r(p),(w,y)=>{y(w,{})}),h(v),$(f,v)};L(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),B(f=>{l=te(s,1,"svelte-t2qk8t",null,l,f),$e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),z()}var y_=require("@vkontakte/videoplayer-shared/es2015");var hv=require("@vkontakte/videoplayer-core/es2015");var __=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},b_=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=__({quality:t,availableQualities:e});return i?t===hv.VideoQuality.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},$_=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===hv.VideoQuality.INVARIANT?i:`${i}${__({quality:t,availableQualities:e})}`:"...";var Q3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),G3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Vl(t,e){U(e,!0),Q(t,G3);let[i,o]=Fe(),n=()=>C(a,"$currentQuality$",i),s=()=>C(u,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ie(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==y_.VideoQuality.INVARIANT?v:"")),x=g(()=>$_({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=Q3(),y=_(w);let S=g(()=>e.selected?n():void 0);Ha(y,{get quality(){return r(S)},get label(){return r(x)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),z(),o()}var j3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},Y3={br:!0,span:!0},_v=(t,e={})=>{var d,a,u,f,v,p,x;if(!t)return t;let i=W(W({},Y3),e),o=Object.keys(i);if(!o.length)return t;let n=j3(o),s=[],l=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){s.push(t.slice(l,T)),l=T+y.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?_v(w.groups.childrenhtml,i):"",V=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((x=w.groups)==null?void 0:x.childrenhtml),()=>E||""):y;s.push(t.slice(l,T),V),l=T+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function sc(t,e){U(e,!1);let i=m(e,"message",8),o=_v(i());zr();var n=Ke(),s=he(n);{var l=d=>{var a=Ke(),u=he(a);pd(u,()=>o),$(d,a)};L(s,d=>{o&&d(l)})}$(t,n),z()}var Z3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),X3={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function bv(t,e){U(e,!1),Q(t,X3),zr();var i=Z3(),o=_(i);let n=Dr(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));sc(o,{get message(){return r(n)}}),h(i),$(t,i),z()}var w_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Vl,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},$v=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?Vl:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),S_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:bv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),yv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:q("high_quality"),valueComponent:t?Vl:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),xv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:q("traffic_saving_quality"),valueComponent:t?Vl:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var Wu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Ku=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=qd(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:n,label:o});{let a=Wu(t,d);return q("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Wu(t,d);return q("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Wu(t,d);return q("audio_stream_display_language_index",{language:n,index:a})}}let s=Wu(t,e);return q("audio_stream_display_unknown",{index:s})};var J3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:$v,selected:e&&!o&&!n||!1}),s.push({handler:xv,selected:o},{handler:yv,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[S_(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),w_(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ha,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:$v,selected:((i=fu())==null?void 0:i.type)==="auto_quality"},{handler:xv,selected:((o=fu())==null?void 0:o.type)==="traffic_saving"},{handler:yv,selected:((n=fu())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Ku(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Ou?"sub_off":void 0}))})},C_=({subMenuId:t,context:e})=>t?[J3[t](e)]:[];var ex=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function wv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ex();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var tx=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Sv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=tx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var ix=Ee('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Cv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ix();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var ox=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Tv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ox();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var nx=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Ev(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=nx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var rx=Ee('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function qu(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=rx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var sx=Ee('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Iv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=sx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var ax=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),lx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function kv(t,e){U(e,!0),Q(t,lx);let[i,o]=Fe(),n=()=>C(u,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),a=Ie(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=g(()=>b_({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=ax(),y=_(w);Ha(y,{get quality(){return n()},get label(){return r(x)},get isMobile(){return d()}}),h(w),$(t,w),z(),o()}var cx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_quality",{actual:o}),icon:Nd,label:q("menu_quality"),value:e,valueComponent:kv,weight:Qr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Qr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:wv,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Ku(t,e);return{id:"AUDIO_LANGUAGES",weight:Qr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:Sv,label:q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Qr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:Cv,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Qr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Od,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Qr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:Tv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Qr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:Ev,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Qr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:qu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Qr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:qu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Qr["debug-info"],type:"CLICK",onClick:t,ariaLabel:q("aria_label_menu_debug_overlay"),label:q("menu_debug_overlay"),icon:Iv,isHiddenFor:["desktop"]})},T_=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>cx[n](e)),...i.map(n=>Ht(W({},n),{isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(wa)};var px=(t,e)=>{wu(t,e)},fx=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),mx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),vx=M("<div><!> <!></div>"),gx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
300
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function pv(t,e){U(e,!0),K(t,P3);let[i,o]=Fe(),n=()=>S(m,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),a=v(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),u=v(e,"listRef",15);Vt(()=>{let Y=e.items.findIndex(ge=>ge.selected);u().children[Y+1].focus()});let f=Ie(),m=f.ui.isFullscreen,p=f.ui.playerSize,w=Z(void 0),x=Z(0),y=Z(0),T=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(y)-d()}px; overflow: auto;`),C=g(()=>Math.max(e.minWidth,r(x)));var E=k3();let V;var k=_(E);let I;k.__keydown=[T3,e];var N=_(k);let J;N.__click=[E3,e],N.__keydown=[I3,e];var H=_(N);qs(H,{direction:"left"});var F=P(H,2),Q=_(F,!0);h(F),h(N),rt(N,Y=>O(w,Y),()=>r(w));var ie=P(N,2);Mi(ie,17,()=>e.items,cd,(Y,ge)=>{var X=We(),ue=fe(X);{var me=Pe=>{dv(Pe,{get item(){return r(ge)},get isMobile(){return l()}})},pe=(Pe,Le)=>{{var le=He=>{cv(He,{get isMobile(){return l()},get item(){return r(ge)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(Pe,He=>{r(ge).type==="OPEN_SUB_MENU"&&He(le)},Le)}};L(ue,Pe=>{r(ge).type==="SELECT_VALUE"?Pe(me):Pe(pe,!1)})}b(Y,X)}),h(k),rt(k,Y=>u(Y),()=>u()),h(E),B((Y,ge,X)=>{V=ne(E,1,"sub-menu menu svelte-7dfsuh",null,V,Y),ze(E,"data-testid",`sub-menu-${e.id}`),lt(E,`min-width: ${r(C)}px`),I=ne(k,1,"items svelte-7dfsuh",null,I,ge),lt(k,r(T)),J=ne(N,1,"item header back svelte-7dfsuh",null,J,X),ze(N,"aria-label",a()),be(Q,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),dr(N,"clientWidth",Y=>O(x,Y)),dr(N,"clientHeight",Y=>O(y,Y)),b(t,E),z(),o()}ct(["keydown","click"]);var _0=require("@vkontakte/videoplayer-shared/es2015");var A3=(t,e)=>Cu(t,e()),M3=(t,e)=>{t.stopPropagation(),e()()},L3=A('<div class="value svelte-1ikfjte"> </div>'),V3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),R3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function fv(t,e){U(e,!0),K(t,R3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,_0.noop),n=v(e,"valueComponent",3,void 0),s=v(e,"ref",15);var l=V3();let d;l.__click=[M3,o],l.__keydown=[A3,o];var a=_(l),u=_(a);{var f=C=>{Ma(C,{get icon(){return e.icon}})},m=C=>{var E=We();let V=g(()=>e.icon);var k=fe(E);Li(k,()=>r(V),(I,N)=>{N(I,{})}),b(C,E)};L(u,C=>{typeof e.icon=="string"?C(f):C(m,!1)})}h(a);var p=P(a,2),w=_(p,!0);h(p);var x=P(p,2);{var y=C=>{var E=We();let V=g(n);var k=fe(E);Li(k,()=>r(V),(I,N)=>{N(I,{})}),b(C,E)},T=C=>{var E=L3(),V=_(E,!0);h(E),B(()=>be(V,e.value)),b(C,E)};L(x,C=>{n()?C(y):C(T,!1)})}h(l),rt(l,C=>s(C),()=>s()),B(C=>{d=ne(l,1,"item",null,d,C),ze(l,"aria-label",e.ariaLabel),ze(l,"data-testid",e.id),be(w,e.label)},[()=>({mobile:i()})]),b(t,l),z()}ct(["click","keydown"]);var mv=require("@vkontakte/videoplayer-shared/es2015");var N3=(t,e)=>{xl(t,()=>e())},O3=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),B3=A('<img class="icon" aria-hidden="true"/>'),D3=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),H3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function vv(t,e){U(e,!0),K(t,H3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,mv.noop),n=v(e,"closeSettings",3,mv.noop),s=Z(!1),l=()=>{O(s,!0)},d=T=>{T==null||T.stopPropagation(),o()(),n()()};var a=D3();let u;a.__click=d,a.__keydown=[N3,d];var f=_(a),m=_(f);{var p=T=>{var C=We(),E=fe(C);{var V=I=>{var N=O3();b(I,N)},k=I=>{var N=B3();B(()=>ze(N,"src",e.icon)),Tt("error",N,l),la(N),b(I,N)};L(E,I=>{r(s)?I(V):I(k,!1)})}b(T,C)},w=T=>{var C=We();let E=g(()=>e.icon);var V=fe(C);Li(V,()=>r(E),(k,I)=>{I(k,{})}),b(T,C)};L(m,T=>{typeof e.icon=="string"?T(p):T(w,!1)})}h(f);var x=P(f,2),y=_(x,!0);h(x),h(a),B(T=>{var C;u=ne(a,1,"item",null,u,T),ze(a,"aria-label",(C=e.ariaLabel)!=null?C:e.label),ze(a,"data-testid",e.id),be(y,e.label)},[()=>({mobile:i()})]),b(t,a),z()}ct(["click","keydown"]);var b0=require("@vkontakte/videoplayer-shared/es2015");var F3=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),U3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function gv(t,e){K(t,U3);let i=v(e,"enabled",3,!1);var o=F3(),n=_(o);let s;Ce(2),h(o),B(l=>s=ne(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),b(t,o)}var z3=(t,e,i)=>{B1(t,e(),o=>i()(o))},W3=(t,e,i)=>{t.stopPropagation(),e()(!i())},K3=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),q3=A('<li role="menuitem" tabindex="0"><!></li>');function hv(t,e){U(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,b0.noop),n=v(e,"enabled",3,!1),s=v(e,"tooltipText",3,void 0),l=v(e,"maxTooltipWidth",3,void 0);var d=q3();let a;d.__click=[W3,o,n],d.__keydown=[z3,n,o];var u=_(d);Ea(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,m)=>{var p=K3();let w;var x=_(p),y=_(x);{var T=I=>{Ma(I,{get icon(){return e.icon}})},C=I=>{var N=We();let J=g(()=>e.icon);var H=fe(N);Li(H,()=>r(J),(F,Q)=>{Q(F,{})}),b(I,N)};L(y,I=>{typeof e.icon=="string"?I(T):I(C,!1)})}h(x);var E=P(x,2),V=_(E,!0);h(E);var k=P(E,2);gv(k,{get enabled(){return n()}}),h(p),B(I=>{w=ne(p,1,"switch-wrapper",null,w,I),be(V,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),h(d),B(f=>{var m;a=ne(d,1,"item switch-item",null,a,f),ze(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),ze(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),z()}ct(["click","keydown"]);var ac=require("@vkontakte/videoplayer-shared/es2015");var $0=()=>{let t=Z(ii([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var Q3=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),G3=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),j3={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Da(t,e){U(e,!0),K(t,j3);let i=v(e,"isSubCase",3,!1),o=g(()=>ku(e.quality));var n=G3(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var u=f=>{var m=Q3();let p=g(()=>r(o));var w=_(m);Li(w,()=>r(p),(x,y)=>{y(x,{})}),h(m),b(f,m)};L(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),B(f=>{l=ne(s,1,"svelte-t2qk8t",null,l,f),be(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),z()}var S0=require("@vkontakte/videoplayer-shared/es2015");var _v=require("@vkontakte/videoplayer-core/es2015");var y0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},x0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=y0({quality:t,availableQualities:e});return i?t===_v.VideoQuality.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},w0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===_v.VideoQuality.INVARIANT?i:`${i}${y0({quality:t,availableQualities:e})}`:"...";var Y3=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),Z3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Ll(t,e){U(e,!0),K(t,Z3);let[i,o]=Fe(),n=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=Ie(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,m=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==S0.VideoQuality.INVARIANT?m:"")),w=g(()=>w0({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var x=Y3(),y=_(x);let T=g(()=>e.selected?n():void 0);Da(y,{get quality(){return r(T)},get label(){return r(w)},get isMobile(){return l()},isSubCase:!0}),h(x),b(t,x),z(),o()}var X3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},J3={br:!0,span:!0},bv=(t,e={})=>{var d,a,u,f,m,p,w;if(!t)return t;let i=W(W({},J3),e),o=Object.keys(i);if(!o.length)return t;let n=X3(o),s=[],l=0;for(let x of t.matchAll(n)){let y=x[0],T=((d=x.groups)==null?void 0:d.keyhtml)||((a=x.groups)==null?void 0:a.keyi18n)||((u=x.groups)==null?void 0:u.keyhtmlself)||((f=x.groups)==null?void 0:f.keyi18nself)||"",{index:C}=x;if(!i[T]){s.push(t.slice(l,C)),l=C+y.length;continue}let E=(m=x.groups)!=null&&m.childrenhtml?bv(x.groups.childrenhtml,i):"",V=(p=x.groups)!=null&&p.childrenhtml?y.replace(new RegExp((w=x.groups)==null?void 0:w.childrenhtml),()=>E||""):y;s.push(t.slice(l,C),V),l=C+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function sc(t,e){U(e,!1);let i=v(e,"message",8),o=bv(i());Kr();var n=We(),s=fe(n);{var l=d=>{var a=We(),u=fe(a);ud(u,()=>o),b(d,a)};L(s,d=>{o&&d(l)})}b(t,n),z()}var ex=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),tx={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function $v(t,e){U(e,!1),K(t,tx),Kr();var i=ex(),o=_(i);let n=Hr(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));sc(o,{get message(){return r(n)}}),h(i),b(t,i),z()}var T0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Ll,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},yv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?Ll:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),E0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:$v,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),xv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:q("high_quality"),valueComponent:t?Ll:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),wv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:q("traffic_saving_quality"),valueComponent:t?Ll:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var Ku=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),qu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Kd(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:n,label:o});{let a=Ku(t,d);return q("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Ku(t,d);return q("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Ku(t,d);return q("audio_stream_display_language_index",{language:n,index:a})}}let s=Ku(t,e);return q("audio_stream_display_unknown",{index:s})};var ix={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:yv,selected:e&&!o&&!n||!1}),s.push({handler:wv,selected:o},{handler:xv,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[E0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),T0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Da,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:yv,selected:((i=mu())==null?void 0:i.type)==="auto_quality"},{handler:wv,selected:((o=mu())==null?void 0:o.type)==="traffic_saving"},{handler:xv,selected:((n=mu())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:qu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Bu?"sub_off":void 0}))})},I0=({subMenuId:t,context:e})=>t?[ix[t](e)]:[];var ox=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Sv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=ox();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var nx=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Cv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=nx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var rx=Te('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Tv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=rx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var sx=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Ev(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=sx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var ax=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Iv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=ax();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var lx=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Qu(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=lx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var dx=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function kv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=dx();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var cx=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),ux={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Pv(t,e){U(e,!0),K(t,ux);let[i,o]=Fe(),n=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(m,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=Ie(),u=a.state.currentQuality$,f=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,w=g(()=>x0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var x=cx(),y=_(x);Da(y,{get quality(){return n()},get label(){return r(w)},get isMobile(){return d()}}),h(x),b(t,x),z(),o()}var fx={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_quality",{actual:o}),icon:Rd,label:q("menu_quality"),value:e,valueComponent:Pv,weight:jr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:jr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:Sv,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=qu(t,e);return{id:"AUDIO_LANGUAGES",weight:jr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:Cv,label:q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:jr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:Tv,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:jr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Nd,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:jr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:Ev}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:jr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:Iv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:jr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:Qu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:jr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:Qu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:jr["debug-info"],type:"CLICK",onClick:t,ariaLabel:q("aria_label_menu_debug_overlay"),label:q("menu_debug_overlay"),icon:kv,isHiddenFor:["desktop"]})},k0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>fx[n](e)),...i.map(n=>Ht(W({},n),{isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(xa)};var vx=(t,e)=>{Su(t,e)},gx=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),hx=A('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),_x=A("<div><!> <!></div>"),bx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
301
301
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
302
302
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
303
303
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
304
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function lc(t,e){U(e,!0),Q(t,gx);let[i,o]=Fe(),n=()=>C(fe,"$settingsMenuVisible",i),s=()=>C(lt,"$settingsMenuOpenedByKeyboard",i),l=()=>C(Et,"$debugPanelVisible",i),d=()=>C(Me,"$isMobile",i),a=()=>C(ht,"$playerSize",i),u=()=>C(He,"$hasMpegSources$",i),f=()=>C(ke,"$mobileNotReportControlHidden$",i),v=()=>C(Re,"$autoQualityLimitingAvailable$",i),p=()=>C(ie,"$availableSubtitlesList$",i),x=()=>C(We,"$isLiveWithPlaybackSpeed",i),w=()=>C(me,"$availableAudioStreams$",i),y=()=>C(de,"$availablePlaybackRates$",i),S=()=>C(ye,"$currentAudioStream$",i),T=()=>C(De,"$currentPlaybackRate$",i),E=()=>C(dt,"$trafficSavingEnabled",i),V=()=>C(Pe,"$currentQuality$",i),k=()=>C(se,"$isAutoQualityEnabled$",i),I=()=>C(ge,"$currentSubtitle$",i),R=()=>C(zt,"$additionalSettingsMenuItems$",i),Z=()=>C(N,"$isAutoQualityAvailable$",i),H=()=>C(re,"$availableQualities$",i),F=()=>C(gt,"$highQualityEnabled",i),K=m(e,"ref",15,void 0),ee=m(e,"playerControlsHeight",3,0),j=ai({}),ue=ai({}),oe=Ie(),pe=At(),ye=oe.state.audioStream$,me=oe.state.availableAudioStreams$,Pe=oe.state.currentQuality$,re=oe.state.availableQualities$,Re=oe.state.autoQualityLimitingAvailable$,se=oe.state.isAutoQualityEnabled$,N=oe.state.isAutoQualityAvailable$,De=oe.state.currentPlaybackRate$,de=oe.state.availablePlaybackRates$,ge=oe.state.currentSubtitle$,ie=oe.state.availableSubtitlesList$,ve=oe.state.canDownload,He=oe.state.hasMpegSources$,fe=oe.ui.settingsMenu.visible$,lt=oe.ui.settingsMenu.openedByBtnKeyboard$,X=oe.ui.settingsMenu.ref$,Me=oe.ui.isMobile,ke=oe.ui.mobileNotReportControlHidden$,We=oe.state.canChangePlaybackSpeed$,dt=oe.state.trafficSavingEnabled$,gt=oe.state.highQualityEnabled$,ht=oe.ui.playerSize,Et=oe.ui.debugPanelVisible,je=oe.state.isInteractiveTime$,zt=oe.ui.additionalSettingsMenuItems$,ti=oe.ui.t,Yt=oe.actions.internal.downloadVideo,qt=oe.actions.internal.closeSettingsMenu,ne=oe.actions.internal.openSettingsSubMenu,Wt=oe.actions.internal.closeSettingsSubMenu,_e=Y(!1),Se=Y(void 0),le=h_();qe(()=>{!n()&&le.current&&(Wt(ue[le.current]),le.popAllSubMenus())}),qe(()=>{n()||O(Se,void 0)}),qe(()=>{!le.current&&r(Se)&&L1(j,r(Se))}),qe(()=>{K()&&X.set(K())});function Ne(ze){return St(this,null,function*(){var Kt;le.pushSubMenu(ze),yield Lo(),ne(ze,ue[ze]);let ft=(Kt=K())==null?void 0:Kt.firstElementChild;ft&&Hf(ft)})}function Qe(ze){var ft;ze==null||ze.stopPropagation(),s()||(ft=e.returnFocus)==null||ft.call(e),qt(),O(_e,!1)}function Ve(ze,ft){oe.actions.internal.setQuality(ze,{appliesTo:ft}),Qe()}function Ze(ze){oe.actions.internal.setAudioStream(ze),Qe()}function Be(ze,ft){oe.actions.internal.setTrafficSavingEnabled(ze,ft),pe.features.qualityDetailsSubMenuEnabled&&Qe()}function tt(ze,ft){oe.actions.internal.setHighQualityEnabled(ze,ft),Qe()}function Rt(ze){oe.actions.internal.setPlaybackRate(ze),Qe()}function Qt(ze){oe.actions.internal.setSubtitle(ze),Qe()}function it(){Yt()}function Ci(){(0,ac.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),oe.actions.internal.reportProblem(),oe.actions.internal.pause()}function $i(){yl(oe.actions.internal.getDebugTextData())}let ot=()=>{let ze=oe.actions.internal.getTraceTextData(),ft=new Blob([...ze],{type:"application/json"}),Kt=window.URL.createObjectURL(ft);ha(Kt,"vk_player_trace_info","json")};function ri(){Et.set(!l())}function Zt(){O(_e,!0)}function yi(){O(_e,!1)}function Oo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ee()}px; overflow: auto;`}let wo=g(()=>ve&&u()&&!f()),Ut=g(()=>pe.features.trafficSaving&&!f()&&v()&&!pe.features.qualityDetailsSubMenuEnabled),li=g(()=>p().length>0&&!f()),cn=g(()=>!!x()&&!f()),Mt=g(()=>pe.features.audioLanguages&&w().length>=2&&!f()),pt=g(()=>!f());Vt(()=>je.subscribe(ze=>{ze&&!d()&&!r(_e)&&!s()&&Qe()}));let xi=g(()=>{let ze=[r(pt)&&"QUALITY_SETTINGS",r(Mt)&&"AUDIO_LANGUAGES",r(cn)&&"PLAYBACK_RATE",r(li)&&"SUBTITLES",r(Ut)&&"TRAFFIC_SAVING_SWITCH",r(wo)&&"DOWNLOAD",pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ft=>!!ft);return T_({items:ze,context:{qualityDetailsSubMenuEnabled:pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Rt,trafficSavingEnabled:E(),toggleTrafficSaving:Be,currentQuality:V()||ac.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:it,onCopyDataClick:$i,onReportProblemClick:Ci,onSaveTraceDataClick:ot,toggleShowDebugInfo:ri},additionalSettingsMenuItems:R()})}),Bo=g(()=>C_({subMenuId:le.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Rt,trafficSavingEnabled:E(),toggleTrafficSaving:Be,currentQuality:V()||ac.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:Z()||!1,availableQualities:H(),highQualityEnabled:F(),toggleHighQuality:tt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:qt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ze,selectQuality:Ve,selectSubtitle:Qt}}));var Ki=vx();let si;var Xo=_(Ki);{var Wn=ze=>{var ft=mx();let Kt;ft.__keydown=[px,qt];var ut=_(ft);{var ci=pi=>{var wt=fx();let Ni;var Do=_(wt),Kn=_(Do,!0);h(Do);var Oi=P(Do,2);Oi.__click=Qe,h(wt),B((no,Ho)=>{Ni=te(wt,1,"item header svelte-17or3al",null,Ni,no),$e(Kn,Ho)},[()=>({mobile:d()}),()=>ti("submenu_settings")]),$(pi,wt)};L(ut,pi=>{d()&&pi(ci)})}var ui=P(ut,2);let So;Ii(ui,21,()=>r(xi),pi=>pi.id,(pi,wt)=>{var Ni=Ke(),Do=he(Ni);{var Kn=no=>{pv(no,{get isMobile(){return d()},get id(){return r(wt).id},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},get value(){return r(wt).value},get valueComponent(){return r(wt).valueComponent},onClick:()=>{Ne(r(wt).children),O(Se,r(wt).id,!0)},get ref(){return j[r(wt).id]},set ref(Ho){j[r(wt).id]=Ho}})},Oi=(no,Ho)=>{{var En=Ai=>{mv(Ai,{get isMobile(){return d()},get id(){return r(wt).id},get onClick(){return r(wt).onClick},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},closeSettings:Qe})},In=(Ai,qi)=>{{var Jo=en=>{gv(en,{get isMobile(){return d()},get id(){return r(wt).id},get onClick(){return r(wt).onClick},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},get enabled(){return r(wt).enabled},get tooltipText(){return r(wt).tooltipText},get maxTooltipWidth(){return r(wt).maxTooltipWidth}})};L(Ai,en=>{r(wt).type==="SWITCH"&&en(Jo)},qi)}};L(no,Ai=>{r(wt).type==="CLICK"?Ai(En):Ai(In,!1)},Ho)}};L(Do,no=>{r(wt).type==="OPEN_SUB_MENU"?no(Kn):no(Oi,!1)})}$(pi,Ni)}),h(ui),nt(ui,pi=>K(pi),()=>K()),h(ft),B((pi,wt,Ni)=>{Kt=te(ft,1,"settings-menu menu svelte-17or3al",null,Kt,pi),So=te(ui,1,"items",null,So,wt),at(ui,Ni)},[()=>({desktop:!d(),mobile:d(),hidden:!!le.current}),()=>({mobile:d()}),Oo]),Tt("mouseenter",ft,Zt),Tt("mouseleave",ft,yi),$(ze,ft)};L(Xo,ze=>{n()&&ze(Wn)})}var D=P(Xo,2);Ii(D,17,()=>r(Bo),ze=>ze.id,(ze,ft)=>{let Kt=g(()=>{var ut;return(ut=r(ft).minWidth)!=null?ut:137});uv(ze,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return le.popSubMenu},get id(){return r(ft).id},get title(){return r(ft).title},get closeSettingsMenu(){return qt},openSubMenuList:Ne,get items(){return r(ft).items},get minWidth(){return r(Kt)},get refMenuItems(){return j},get listRef(){return ue[r(ft).id]},set listRef(ut){ue[r(ft).id]=ut}})}),h(Ki),B(ze=>si=te(Ki,1,"settings-menu-container svelte-17or3al",null,si,ze),[()=>({mobile:d(),hidden:!n()})]),$(t,Ki),z(),o()}ct(["keydown","click"]);var hx=t=>t;function E_(t,{delay:e=0,duration:i=400,easing:o=hx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var _x=M('<button class="button svelte-1sbbskl"> </button>'),bx={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Pv(t,e){Q(t,bx);var i=_x();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),B(()=>$e(o,e.label)),$(t,i)}ct(["click"]);var $x=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),yx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
304
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function lc(t,e){U(e,!0),K(t,bx);let[i,o]=Fe(),n=()=>S(it,"$settingsMenuVisible",i),s=()=>S(he,"$settingsMenuOpenedByKeyboard",i),l=()=>S(Et,"$debugPanelVisible",i),d=()=>S(we,"$isMobile",i),a=()=>S(mt,"$playerSize",i),u=()=>S(Oe,"$hasMpegSources$",i),f=()=>S(ke,"$mobileNotReportControlHidden$",i),m=()=>S(le,"$autoQualityLimitingAvailable$",i),p=()=>S(G,"$availableSubtitlesList$",i),w=()=>S(je,"$isLiveWithPlaybackSpeed",i),x=()=>S(pe,"$availableAudioStreams$",i),y=()=>S($e,"$availablePlaybackRates$",i),T=()=>S(me,"$currentAudioStream$",i),C=()=>S(R,"$currentPlaybackRate$",i),E=()=>S(ot,"$trafficSavingEnabled",i),V=()=>S(Pe,"$currentQuality$",i),k=()=>S(He,"$isAutoQualityEnabled$",i),I=()=>S(Be,"$currentSubtitle$",i),N=()=>S(Ut,"$additionalSettingsMenuItems$",i),J=()=>S(se,"$isAutoQualityAvailable$",i),H=()=>S(Le,"$availableQualities$",i),F=()=>S(bt,"$highQualityEnabled",i),Q=v(e,"ref",15,void 0),ie=v(e,"playerControlsHeight",3,0),Y=ii({}),ge=ii({}),X=Ie(),ue=Pt(),me=X.state.audioStream$,pe=X.state.availableAudioStreams$,Pe=X.state.currentQuality$,Le=X.state.availableQualities$,le=X.state.autoQualityLimitingAvailable$,He=X.state.isAutoQualityEnabled$,se=X.state.isAutoQualityAvailable$,R=X.state.currentPlaybackRate$,$e=X.state.availablePlaybackRates$,Be=X.state.currentSubtitle$,G=X.state.availableSubtitlesList$,ee=X.state.canDownload,Oe=X.state.hasMpegSources$,it=X.ui.settingsMenu.visible$,he=X.ui.settingsMenu.openedByBtnKeyboard$,te=X.ui.settingsMenu.ref$,we=X.ui.isMobile,ke=X.ui.mobileNotReportControlHidden$,je=X.state.canChangePlaybackSpeed$,ot=X.state.trafficSavingEnabled$,bt=X.state.highQualityEnabled$,mt=X.ui.playerSize,Et=X.ui.debugPanelVisible,Ze=X.state.isInteractiveTime$,Ut=X.ui.additionalSettingsMenuItems$,Xt=X.ui.t,Gt=X.actions.internal.downloadVideo,qt=X.actions.internal.closeSettingsMenu,re=X.actions.internal.openSettingsSubMenu,zt=X.actions.internal.closeSettingsSubMenu,Se=Z(!1),ve=Z(void 0),ce=$0();qe(()=>{!n()&&ce.current&&(zt(ge[ce.current]),ce.popAllSubMenus())}),qe(()=>{n()||O(ve,void 0)}),qe(()=>{!ce.current&&r(ve)&&N1(Y,r(ve))}),qe(()=>{Q()&&te.set(Q())});function Ve(Ke){return St(this,null,function*(){var Kt;ce.pushSubMenu(Ke),yield No(),re(Ke,ge[Ke]);let ut=(Kt=Q())==null?void 0:Kt.firstElementChild;ut&&Ff(ut)})}function Ue(Ke){var ut;Ke==null||Ke.stopPropagation(),s()||(ut=e.returnFocus)==null||ut.call(e),qt(),O(Se,!1)}function Re(Ke,ut){X.actions.internal.setQuality(Ke,{appliesTo:ut}),Ue()}function Qe(Ke){X.actions.internal.setAudioStream(Ke),Ue()}function De(Ke,ut){X.actions.internal.setTrafficSavingEnabled(Ke,ut),ue.features.qualityDetailsSubMenuEnabled&&Ue()}function Je(Ke,ut){X.actions.internal.setHighQualityEnabled(Ke,ut),Ue()}function At(Ke){X.actions.internal.setPlaybackRate(Ke),Ue()}function Jt(Ke){X.actions.internal.setSubtitle(Ke),Ue()}function nt(){Gt()}function _i(){(0,ac.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function bi(){$l(X.actions.internal.getDebugTextData())}let dt=()=>{let Ke=X.actions.internal.getTraceTextData(),ut=new Blob([...Ke],{type:"application/json"}),Kt=window.URL.createObjectURL(ut);ga(Kt,"vk_player_trace_info","json")};function jt(){Et.set(!l())}function so(){O(Se,!0)}function Ci(){O(Se,!1)}function di(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ie()}px; overflow: auto;`}let Ti=g(()=>ee&&u()&&!f()),Wt=g(()=>ue.features.trafficSaving&&!f()&&m()&&!ue.features.qualityDetailsSubMenuEnabled),ni=g(()=>p().length>0&&!f()),Jo=g(()=>!!w()&&!f()),Ho=g(()=>ue.features.audioLanguages&&x().length>=2&&!f()),Co=g(()=>!f());Vt(()=>Ze.subscribe(Ke=>{Ke&&!d()&&!r(Se)&&!s()&&Ue()}));let It=g(()=>{let Ke=[r(Co)&&"QUALITY_SETTINGS",r(Ho)&&"AUDIO_LANGUAGES",r(Jo)&&"PLAYBACK_RATE",r(ni)&&"SUBTITLES",r(Wt)&&"TRAFFIC_SAVING_SWITCH",r(Ti)&&"DOWNLOAD",ue.showSupport&&"SHOW_SUPPORT","COPY_DATA",ue.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ut=>!!ut);return k0({items:Ke,context:{qualityDetailsSubMenuEnabled:ue.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:T(),availableAudioStreams:x(),currentPlaybackRate:C(),selectPlaybackRate:At,trafficSavingEnabled:E(),toggleTrafficSaving:De,currentQuality:V()||ac.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:nt,onCopyDataClick:bi,onReportProblemClick:_i,onSaveTraceDataClick:dt,toggleShowDebugInfo:jt},additionalSettingsMenuItems:N()})}),gt=g(()=>I0({subMenuId:ce.current,context:{availablePlaybackRates:y(),selectPlaybackRate:At,trafficSavingEnabled:E(),toggleTrafficSaving:De,currentQuality:V()||ac.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:J()||!1,availableQualities:H(),highQualityEnabled:F(),toggleHighQuality:Je,availableAudioStreams:x(),availableSubtitlesList:p(),closeSettingsMenu:qt,currentAudioStream:T(),isMobile:d(),selectAudioLanguage:Qe,selectQuality:Re,selectSubtitle:Jt}}));var xi=_x();let ri;var ao=_(xi);{var en=Ke=>{var ut=hx();let Kt;ut.__keydown=[vx,qt];var pt=_(ut);{var ci=ui=>{var wt=gx();let Di;var tn=_(wt),wn=_(tn,!0);h(tn);var Gi=P(tn,2);Gi.__click=Ue,h(wt),B((ji,Fo)=>{Di=ne(wt,1,"item header svelte-17or3al",null,Di,ji),be(wn,Fo)},[()=>({mobile:d()}),()=>Xt("submenu_settings")]),b(ui,wt)};L(pt,ui=>{d()&&ui(ci)})}var pi=P(pt,2);let To;Mi(pi,21,()=>r(It),ui=>ui.id,(ui,wt)=>{var Di=We(),tn=fe(Di);{var wn=ji=>{fv(ji,{get isMobile(){return d()},get id(){return r(wt).id},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},get value(){return r(wt).value},get valueComponent(){return r(wt).valueComponent},onClick:()=>{Ve(r(wt).children),O(ve,r(wt).id,!0)},get ref(){return Y[r(wt).id]},set ref(Fo){Y[r(wt).id]=Fo}})},Gi=(ji,Fo)=>{{var Sn=Pi=>{vv(Pi,{get isMobile(){return d()},get id(){return r(wt).id},get onClick(){return r(wt).onClick},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},closeSettings:Ue})},Kn=(Pi,Cn)=>{{var Yi=Eo=>{hv(Eo,{get isMobile(){return d()},get id(){return r(wt).id},get onClick(){return r(wt).onClick},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},get enabled(){return r(wt).enabled},get tooltipText(){return r(wt).tooltipText},get maxTooltipWidth(){return r(wt).maxTooltipWidth}})};L(Pi,Eo=>{r(wt).type==="SWITCH"&&Eo(Yi)},Cn)}};L(ji,Pi=>{r(wt).type==="CLICK"?Pi(Sn):Pi(Kn,!1)},Fo)}};L(tn,ji=>{r(wt).type==="OPEN_SUB_MENU"?ji(wn):ji(Gi,!1)})}b(ui,Di)}),h(pi),rt(pi,ui=>Q(ui),()=>Q()),h(ut),B((ui,wt,Di)=>{Kt=ne(ut,1,"settings-menu menu svelte-17or3al",null,Kt,ui),To=ne(pi,1,"items",null,To,wt),lt(pi,Di)},[()=>({desktop:!d(),mobile:d(),hidden:!!ce.current}),()=>({mobile:d()}),di]),Tt("mouseenter",ut,so),Tt("mouseleave",ut,Ci),b(Ke,ut)};L(ao,Ke=>{n()&&Ke(en)})}var D=P(ao,2);Mi(D,17,()=>r(gt),Ke=>Ke.id,(Ke,ut)=>{let Kt=g(()=>{var pt;return(pt=r(ut).minWidth)!=null?pt:137});pv(Ke,{get isMobile(){return d()},get playerControlsHeight(){return ie()},get returnFromSubMenu(){return ce.popSubMenu},get id(){return r(ut).id},get title(){return r(ut).title},get closeSettingsMenu(){return qt},openSubMenuList:Ve,get items(){return r(ut).items},get minWidth(){return r(Kt)},get refMenuItems(){return Y},get listRef(){return ge[r(ut).id]},set listRef(pt){ge[r(ut).id]=pt}})}),h(xi),B(Ke=>ri=ne(xi,1,"settings-menu-container svelte-17or3al",null,ri,Ke),[()=>({mobile:d(),hidden:!n()})]),b(t,xi),z(),o()}ct(["keydown","click"]);var $x=t=>t;function P0(t,{delay:e=0,duration:i=400,easing:o=$x}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var yx=A('<button class="button svelte-1sbbskl"> </button>'),xx={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Av(t,e){K(t,xx);var i=yx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),B(()=>be(o,e.label)),b(t,i)}ct(["click"]);var wx=A('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Sx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
305
305
  /**
306
306
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
307
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function dc(t,e){U(e,!0),Q(t,yx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=At(),{ui:{t:n}}=Ie(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=$x(),d=_(l),a=_(d),u=_(a),f=_(u);sc(f,{get message(){return s}}),h(u);var v=P(u,2);{var p=w=>{let y=g(()=>n("slow_video_notification_button"));Pv(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(p)})}h(a);var x=P(a,2);Ca(x,{get onClick(){return e.onClose}}),h(d),h(l),af(3,d,()=>E_,()=>({duration:i})),$(t,l),z()}var cc=require("@vkontakte/videoplayer-shared/es2015");var Fa="annotation",Qu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Fa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(n,s){return St(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(x=>x.forEach(()=>{let w=xs(d,this.shadowRootContainer);o.forEach(y=>{let S=a==null?void 0:a[y],T=S?we(S):null,E=u==null?void 0:u[y];T&&(E==null||E.set((0,cc.isIntersecting)(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new cc.Subscription;o.forEach(x=>{a&&v.add(a[x].subscribe(w=>{let y=u==null?void 0:u[x];w&&w.isDisplayed?y==null||y.set((0,cc.isIntersecting)(w,xs(d,this.shadowRootContainer))):y==null||y.set(!1)}))}),l.subs=v})}findSlotElement(e,i,o){return St(this,null,function*(){return new Promise(n=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,x;(x=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||x.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var xx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),wx={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
307
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function dc(t,e){U(e,!0),K(t,Sx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Pt(),{ui:{t:n}}=Ie(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=wx(),d=_(l),a=_(d),u=_(a),f=_(u);sc(f,{get message(){return s}}),h(u);var m=P(u,2);{var p=x=>{let y=g(()=>n("slow_video_notification_button"));Av(x,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};L(m,x=>{o||x(p)})}h(a);var w=P(a,2);Sa(w,{get onClick(){return e.onClose}}),h(d),h(l),lf(3,d,()=>P0,()=>({duration:i})),b(t,l),z()}var cc=require("@vkontakte/videoplayer-shared/es2015");var Ha="annotation",Gu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Ha),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(n,s){return St(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(w=>w.forEach(()=>{let x=xs(d,this.shadowRootContainer);o.forEach(y=>{let T=a==null?void 0:a[y],C=T?xe(T):null,E=u==null?void 0:u[y];C&&(E==null||E.set((0,cc.isIntersecting)(C,x)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let m=new cc.Subscription;o.forEach(w=>{a&&m.add(a[w].subscribe(x=>{let y=u==null?void 0:u[w];x&&x.isDisplayed?y==null||y.set((0,cc.isIntersecting)(x,xs(d,this.shadowRootContainer))):y==null||y.set(!1)}))}),l.subs=m})}findSlotElement(e,i,o){return St(this,null,function*(){return new Promise(n=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,s].forEach(m=>m==null?void 0:m.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(m=>{var p,w;(w=(p=this.store)==null?void 0:p.ui.hiddenControls[m])==null||w.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var Cx=A('<div class="container svelte-1ckg95f"><!></div>'),Tx={hash:"svelte-1ckg95f",code:`.container.svelte-1ckg95f {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
308
308
 
309
- animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
309
+ animation-name: svelte-1ckg95f-videoPlayerStatusIconPopup;animation-fill-mode:forwards;animation-duration:1s;}
310
310
 
311
- @keyframes svelte-f47ws8-videoPlayerStatusIconPopup {
311
+ @keyframes svelte-1ckg95f-videoPlayerStatusIconPopup {
312
312
  from {
313
313
  opacity: 0;
314
314
  scale: 0.6;
@@ -335,8 +335,8 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
335
335
  opacity: 0;
336
336
  scale: 0;
337
337
  }
338
- }`};function Av(t,e){U(e,!0),Q(t,wx);let[i,o]=Fe(),n=()=>C(l,"$isPlaying$",i),s=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ie(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=At(),p=0,x=Y(null),w=Y(!1);qe(()=>{O(x,n()?qr:Ss,!0)}),qe(()=>{O(x,s()?qs:null,!0)}),qe(()=>{if(u)return p=window.setTimeout(()=>{p=0,s()&&r(x)===qs&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),O(x,null)},r(x)!==qs?f:v),()=>{p&&(window.clearTimeout(p),p=0)}}),qe(()=>{n()&&!r(w)&&(O(w,!0),O(x,null))});var y=Ke(),S=he(y);{var T=E=>{var V=Ke(),k=he(V);ua(k,()=>r(x),I=>{var R=xx(),Z=_(R),H=_(Z);let F=g(()=>s()==="prev");ki(H,()=>r(x),(K,ee)=>{ee(K,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),h(Z),h(R),B(()=>at(Z,`animation-duration: ${r(x)!==qs?f:v}ms`)),$(I,R)}),$(E,V)};L(S,E=>{r(x)&&u&&E(T)})}$(t,y),z(),o()}var Sx=M('<div><div data-testid="video-container"></div></div>'),Cx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
339
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Ua(t,e){U(e,!0),Q(t,Cx);let[i,o]=Fe(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(v,"$playerSize",i),l=()=>C(u,"$playerPhase",i),d=()=>C(p,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=Ie(),{isSmoothVideoRotate:x}=At(),w=g(()=>a()&&n()%180?s().height/s().width:1);var y=Sx();let S;y.__contextmenu=function(...V){var k;(k=e.onContextMenu)==null||k.apply(this,V)},y.__mousedown=function(...V){var k;(k=e.onMouseDown)==null||k.apply(this,V)},y.__mouseup=function(...V){var k;(k=e.onMouseUp)==null||k.apply(this,V)},y.__click=function(...V){var k;(k=e.onClick)==null||k.apply(this,V)},y.__dblclick=function(...V){var k;(k=e.onDblClick)==null||k.apply(this,V)};var T=_(y);let E;nt(T,V=>a(V),()=>a()),h(y),B((V,k)=>{S=te(y,1,"video-wrapper svelte-1czns9r",null,S,V),E=te(T,1,"video-container svelte-1czns9r",null,E,k),at(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Ue(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),$(t,y),z(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var Tx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Ex=M("<div><!></div>"),Ix=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),kx=M("<div><!></div>"),Px=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Ax=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Mx=M("<!> <!> <!>",1),Lx=M('<div class="blocked svelte-jtgjmv"></div>'),Vx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Rx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Lv(t,e){U(e,!0),Q(t,Rx);let[i,o]=Fe(),n=()=>C(Pn,"$notificationsToShow$",i),s=()=>C(Zt,"$playerPhase",i),l=()=>C(Bo,"$isLoaderVisible",i),d=()=>C($i,"$adPlaybackState",i),a=()=>C(ft,"$crashed",i),u=()=>C(Do,"$isInteractiveTime$",i),f=()=>C(Ut,"$settingsMenuVisible",i),v=()=>C(Kn,"$isInteractiveExpectation$",i),p=()=>C(wo,"$controlsVisible",i),x=()=>C(no,"$touched",i),w=()=>C(dr,"$graphIsOpened$",i),y=()=>C(yi,"$isFullscreen",i),S=()=>C(pn,"$autoplayNextEnabled$",i),T=()=>C(Wn,"$postrollPassed",i),E=()=>C(Ki,"$isEnded$",i),V=()=>C(Qi,"$cursorInside",i),k=()=>C(qn,"$isControlsAvailable",i),I=()=>C(Cr,"$fakeIsPlaying$",i),R=()=>C(vt,"$bottomNoSmooth",i),Z=()=>C(Ai,"$interactiveTimeIndicator",i),H=()=>C(So,"$playerSize",i),F=()=>C(pi,"$is3DVideo",i),K=()=>C(pt,"$contextMenuVisible$",i),ee=()=>C(Ci,"$playbackState$",i),j=()=>C(Ho,"$hotKeyMapData",i),ue=()=>C(cn,"$scrubbingInProgress",i),oe=()=>C(Mt,"$volumeChangingInProgress",i),pe=()=>C(si,"$chromecastConnected$",i),ye=()=>C(mn,"$controlsTimeoutActive",i),me=()=>C(li,"$settingsMenuOpenedByKeyboard",i),Pe=()=>C(Mn,"$contextMenuOpenedByKeyboard$",i),re=()=>C(ko,"$contextMenuOpenedByHotKey$",i),Re=()=>C(gn,"$contextMenuButtonRef$",i),se=()=>C(vr,"$contextMenuLastActiveElem$",i),N=()=>C(Oo,"$isFullscreenOpenedByKeyboard",i),De=()=>C(it,"$language$",i),de=()=>C(wt,"$icon3DVideoVisible",i),ge=()=>C(Xo,"$chromecastDeviceName$",i),ie=()=>C(ci,"$currentSubtitle$",i),ve=()=>C(ui,"$currentSubtitleCaptions$",i),He=()=>C(ot,"$position$",i),fe=()=>C(ri,"$duration$",i),lt=()=>C(D,"$isLive$",i),X=()=>C(ze,"$isPlaying$",i),Me=()=>C(Jo,"$contextMenuPosition$",i),ke=()=>C(En,"$showHotKeyMap",i),We=()=>C(xi,"$debugPanelVisible",i),dt=()=>C(Gr,"$userActionsDisabled$",i),gt=m(e,"videoContainer",15),ht=m(e,"adsSlotId",3,void 0),Et=m(e,"adsParams",3,void 0),je=m(e,"adsPreviewParam",3,void 0),zt=m(e,"adsAutoplayParam",3,void 0),ti=m(e,"duration",3,void 0),Yt=m(e,"logoTargetUrl",3,""),qt=m(e,"showNextPrevButtons",3,!1),ne=m(e,"nextButtonActive",3,!1),Wt=m(e,"prevButtonActive",3,!1),_e=m(e,"endScreenVideoTitle",3,void 0),Se=m(e,"endScreenVideoThumb",3,void 0),le=m(e,"isOneVideoPlaylist",3,!1),Ne=m(e,"shadowRootContainer",3,void 0),Qe=m(e,"outerContainerRef",3,void 0),Ve=m(e,"playerStarted",3,!1),Ze=m(e,"fullScreenTarget",3,void 0),Be=m(e,"showMiniTimer",3,!1),tt=m(e,"showEndScreen",3,!0),Rt=m(e,"keyboardControls",15),Qt=e.store.getLogger().createComponentLog("Root component"),it=e.store.interfaceLanguage$,Ci=e.store.state.playbackState$,$i=e.store.ads.playbackState,ot=e.store.state.positionWithScrubbing$,ri=e.store.state.duration$,Zt=e.store.playerPhase,yi=e.store.ui.isFullscreen,Oo=e.store.ui.isFullscreenOpenedByKeyboard,wo=e.store.ui.controlsVisible,Ut=e.store.ui.settingsMenu.visible$,li=e.store.ui.settingsMenu.openedByBtnKeyboard$,cn=e.store.ui.scrubbingInProgress,Mt=e.store.ui.volumeChangingInProgress,pt=e.store.ui.contextMenu.visible$,xi=e.store.ui.debugPanelVisible,Bo=e.store.state.isLoaderVisible,Ki=e.store.state.isEnded$,si=e.store.state.chromecastConnected$,Xo=e.store.state.chromecastDeviceName$,Wn=e.store.ads.postrollPassed,D=e.store.state.isLive$,ze=e.store.state.isPlaying$,ft=e.store.state.crashed$,Kt=e.store.webApi.annotationsApi,ut=e.store.webApi.pictureInPictureApi,ci=e.store.state.currentSubtitle$,ui=e.store.state.currentSubtitleCaptions$,So=e.store.ui.playerSize,pi=e.store.ui.is3DVideo,wt=e.store.ui.icon3DVideoVisible,Ni=e.store.state.isInteractive,Do=e.store.state.isInteractiveTime$,Kn=e.store.state.isInteractiveExpectation$,Oi=e.store.state.hasInteractiveBranches,no=e.store.ui.touched,Ho=e.store.ui.modals.hotKeyMap.data,En=e.store.ui.modals.hotKeyMap.show,In=e.store.ui.overlayContainer$,Ai=e.store.ui.controls.interactiveTimeIndicator,qi=e.store.state.showInteractiveTimeIndicator,Jo=e.store.ui.contextMenu.position$,en=e.store.actions.internal.setQuality,un=e.store.actions.internal.closeSettingsMenu,pn=e.store.ui.autoplayNextEnabled$,Gr=e.store.ui.userActionsDisabled,qn=e.store.ui.isControlsAvailable,Sr=e.store.ui.videoTitleInfo,lr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Cr,notifications$:fn,graphIsOpened$:dr}=xo(),ro=Y(void 0),tn=Y(void 0),Qn=Y(void 0),kn=Y(void 0),Tr,Gn,cr;Ho.set(E1());let{closeNotification:Er,notificationsToShow$:Pn}=fn,jn=g(()=>!!n().slow_video),Ir=()=>Er("slow_video"),kr=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),vo=Y(void 0),vt=ae(!1),ii,mn=ae(!1),Mi=ae(),Qi=ae(!1),on=Y(!1),nn=Y(!1),Co=Y(!1),Yn=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),vn=g(()=>u()&&!f()&&!(r(on)||r(nn))&&!(r(Co)&&!v())),Fo=!0,jr=g(()=>e.uiConfig.features.thumbTimer&&Be()&&s()==="video"&&!p()&&!a()&&!Ni&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Yr=g(()=>s()==="video"&&!w()&&y()),Pr=Y(!1),Zr=g(()=>(tt()||e.showAutoplayNext&&S())&&!!_e()&&!!Se()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(Pr)),Zn=g(()=>V()&&!(p()||r(Zr))&&!u()&&k()),ur=Y(!1),pr=g(()=>I()!==null),{toggle:To}=Cr,ei=!1,go=null;ut==null||ut.setContext(jl());let Ar=()=>{e.autoplay&&!Ni&&e.uiConfig.controls.showOnStartupAtAutoplay&&Bi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Ar});let ps=()=>{window.clearTimeout(Tr),mn.set(!1)},Mr=()=>{window.clearTimeout(Gn),Mi.set(null)},Bi=be=>{ps(),mn.set(!0),Tr=window.setTimeout(()=>mn.set(!1),be);let Pt=be-100;ii=window.setTimeout(()=>{R()&&vt.set(!1)},Pt>0?Pt:be)},_t=(be,Pt)=>{Mr(),Mi.set(Pt),Gn=window.setTimeout(()=>Mi.set(null),be)},Xt=pi.subscribe(be=>{wt.set(be),be&&(window.clearTimeout(cr),cr=window.setTimeout(()=>wt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Gi=()=>St(null,null,function*(){var Pt,Jt,fi,Xi;let be=Bs();if(be){let co=wd(),Je=Eo();be=co===Je||co===Ne()}if(be){Bi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ut==null?void 0:ut.exit()}catch(co){Qt({message:String(co)})}}yi.set(be),e.store.getAdmanWrapper().setFullscreen(be),y()?(Jt=(Pt=e.store.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||Jt.call(Pt):(Xi=(fi=e.store.callbacks)==null?void 0:fi.onFullscreenExit)==null||Xi.call(fi)}),so=be=>{let{width:Pt,height:Jt}=be.target;So.set({width:Pt,height:Jt})},ao=()=>{let{width:be,height:Pt}=r(ro).getBoundingClientRect();So.set({width:be,height:Pt})};Vt(()=>{var Pt;return yu(Gi),e.uiConfig.features.annotationsInside&&(Kt==null||Kt.init(r(ro))),ya(ut)&&(ut==null||ut.assignPlayerContainer(r(ro)),ut==null||ut.setExternalEventHandlers({resize:so,leavepictureinpicture:ao})),e.interactiveContainer&&((Pt=gt().parentElement)==null||Pt.insertBefore(e.interactiveContainer,gt().nextSibling)),()=>{window.clearTimeout(Tr),window.clearTimeout(ii),window.clearTimeout(Gn),window.clearTimeout(cr),Xt(),ut==null||ut.dispose().catch(Jt=>{Qt({message:String(Jt)})}),xu(Gi)}});let Eo=()=>{let be=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Qe()?r(ro):Qe(),Pt=be.getRootNode(),Jt=Pt instanceof ShadowRoot?Pt.host:Pt,fi=Ze()instanceof HTMLElement&&Ze().contains(Jt);return e.uiConfig.allowChangingFullscreenTarget&&Ze()&&fi?Ze():be},ho=()=>{pt.set(!1)},_o=()=>{un(),ho()},ji=()=>St(null,null,function*(){ho(),Bs()?(yield $u(document),Qt({message:"exit fullscreen"})):(Qt({message:"request fullscreen"}),yield bu(Eo()))}),fr=be=>{w()||(be.preventDefault(),pt.set(!0),Jo.set({left:be.clientX,top:be.clientY}))};function mr(){Qi.set(!0),Ni||Bi(e.uiConfig.controls.hideTimeoutCursor)}function Xr(){Ni||(vt.set(!0),Bi(e.uiConfig.controls.hideTimeoutCursor))}function Jr(){Qi.set(!1),O(nn,!1),O(on,!1),ei=!1,e.store.actions.internal.releaseCamera(),Bi(e.uiConfig.controls.hideTimeout)}function bo(be){return be?be.offsetTop+bo(be.offsetParent):0}function An(be){return be?be.offsetLeft+An(be.offsetParent):0}function Lr(be){if(Z()&&qi){let Pt=be.currentTarget,Jt=bo(Pt),fi=An(Pt),Xi=be.pageX-fi,co=be.pageY-Jt,{left:Je,bottom:Gt,right:Di}=Z(),zo=Di-Je;return Xi>=Je-zo&&co<=Gt+zo}}function Vr(be){if(r(ro)){let Pt=bo(be.currentTarget),Jt=H().height,fi=be.pageY-Pt;if(Lr(be)){O(nn,!1);return}fi<40?O(nn,!0):fi>Jt-40?O(on,!0):(O(nn,!1),f()||O(on,!1))}}function rt(be){Vr(be),r(vn)||Bi(e.uiConfig.controls.hideTimeoutCursor),F()&&ei&&go&&e.store.actions.internal.moveCameraFocusPX(go.clientX-be.clientX,go.clientY-be.clientY,be.timeStamp-go.timeStamp),go=be}let It=be=>{be.preventDefault(),be.button===0&&(ei=!0,e.store.actions.internal.holdCamera()),Bi(e.uiConfig.controls.hideTimeoutCursor)},_i=be=>{be.preventDefault(),be.button===0&&(go=be,ei=!1,e.store.actions.internal.releaseCamera()),Bi(e.uiConfig.controls.hideTimeoutCursor)},Yi=be=>{be.preventDefault(),Fo&&(Qt({message:"double click on video"}),ji(),Bi(e.uiConfig.controls.hideTimeoutCursor))},Io=be=>{var Pt;if(be.preventDefault(),K()||f()){_o();return}if(!(E()&&!Oi)){if(r(pr))return To();if((Pt=Rt())==null||Pt.focus(),!Ve()){e.firstStart(),Bi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ee()!==Mv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Bi(e.uiConfig.controls.hideTimeoutCursor)}},$o=be=>{_o(),no.set(!0),Bi(e.uiConfig.controls.hideTimeout),be&&_t(e.uiConfig.controls.hideHotKeyHelpers,be)},lo=()=>{var be,Pt;_o(),(be=e.store.callbacks)!=null&&be.onOpenHotKeyMap?(Pt=e.store.callbacks)==null||Pt.onOpenHotKeyMap(j()):En.update(Jt=>!Jt)},Uo=()=>{no.set(!0)},Mn=e.store.ui.contextMenu.openedByBtnKeyboard$,gn=e.store.ui.contextMenu.btnRef$,Zi=Y(void 0),ko=e.store.ui.contextMenu.openedByHotKey$,vr=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{In.set(r(vo))}),qe(()=>{O(Co,r(Yn)&&ee()!==Mv.PlaybackState.PLAYING,!0),r(Yn)||Ct(()=>O(Yn,!0))}),qe(()=>{wo.set((r(Co)||E()||f()||ue()||oe()||pe()||ye())&&!r(vn)&&(s()==="video"||s()==="ads")&&!a()&&k())}),qe(()=>{!ue()&&r(ur)&&!u()&&Bi(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>O(ur,ue(),!0))}),qe(()=>{r(kn),f(),me(),Ct(()=>Pd(r(kn),f(),me()))}),qe(()=>{r(Zi),K(),Pe(),re(),Ct(()=>{let be=Pe()||re();Pd(r(Zi),K(),be)})}),qe(()=>{let be=Re();be&&(K(),Ct(()=>xl(be,K(),Mn)))}),qe(()=>{let be=se();be&&(K(),Ct(()=>M1(be,K(),ko)))}),qe(()=>{var be;!N()&&y()&&(Ct(()=>Oo.set(!1)),(be=Rt())==null||be.focus())}),qe(()=>{w()&&_o()});let Ln=q("video360"),Vn=Y(void 0),gr=be=>{Sr.set(Un(lr(),{title:r(Vn)},"title",be))},Rn=(be,Pt)=>{var co,Je;let Jt=(Je=(co=e.store.callbacks)==null?void 0:co.uiInfo)==null?void 0:Je.onUpcomingLiveViewStateChanged;if(!Jt)return;let fi=!!Pt,Xi=W(W({},Un(r(ro),{upcomingLiveScreen:Pt},"upcomingLiveScreen",fi)),be);Jt(Xi)};var Rr=Vx();Tt("blur",ra,_o);var Po=he(Rr);Po.__mousemove=rt;var Nn=_(Po);let es=g(()=>s()==="ads"),Xe=g(()=>r(pr)?To:void 0);nt(Gf(Nn,{toggleFullscreen:ji,hideContextMenu:_o,showHotKeyHelpers:$o,showKeyMap:lo,get isAds(){return r(es)},get fakePlayButtonHandler(){return r(Xe)},get nextButtonActive(){return ne()},get prevButtonActive(){return Wt()},children:(be,Pt)=>{var Jt=Mx(),fi=he(Jt);Ua(fi,{get hideCursor(){return r(Zn)},onClick:Io,onContextMenu:fr,onMouseDown:It,onMouseUp:_i,onDblClick:Yi,get videoContainer(){return gt()},set videoContainer(Je){gt(Je)}});var Xi=P(fi,2);pa(Xi,()=>"slot",!1,(Je,Gt)=>{Ae(Je,()=>({name:Fa}))});var co=P(Xi,2);ua(co,De,Je=>{var Gt=Ax(),Di=he(Gt);let zo=g(()=>s()!=="thumb"||a()||Ni&&e.autoplay);Ba(Di,{get hidden(){return r(zo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var hn=P(Di,2);Av(hn,{});var Xn=P(hn,2);{var hr=Ge=>{let di=g(()=>{var Ko;return(Ko=e.live)==null?void 0:Ko.startTime});nc(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(di)},onUpcomingLiveViewStateChanged:Rn})};L(Xn,Ge=>{s()==="LiveWaitingStart"&&Ge(hr)})}var Nr=P(Xn,2);{var Ji=Ge=>{Da(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Nr,Ge=>{s()==="LiveWaitingRecover"&&Ge(Ji)})}var mi=P(Nr,2);{var _n=Ge=>{Da(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(mi,Ge=>{s()==="LiveWaitingRecord"&&Ge(_n)})}var _r=P(mi,2);{var Wo=Ge=>{var di=Ex();let Ko;var Es=_(di);Cd(Es,{get adsSlotId(){return ht()},get adsParams(){return Et()},get adsPreviewParam(){return je()},get adsAutoplayParam(){return zt()},get duration(){return ti()}}),h(di),B($n=>Ko=te(di,1,"ads-container svelte-jtgjmv",null,Ko,$n),[()=>({hidden:s()!=="ads"})]),$(Ge,di)};L(_r,Ge=>{e.showAds&&Ve()&&Ge(Wo)})}var yo=P(_r,2);{var Ka=Ge=>{let di=g(()=>!tt()&&e.showAutoplayNext&&S());Kf(Ge,{get title(){return _e()},get thumb(){return Se()},get isHide(){return r(di)},clickCloseIcon:()=>O(Pr,!0)})};L(yo,Ge=>{r(Zr)&&_e()&&Se()&&Ge(Ka)})}var yt=P(yo,2);{var xt=Ge=>{let di=g(()=>!p());rv(Ge,{get title(){return e.title},get isHidden(){return r(di)},onVisibilityChanged:gr,get ref(){return r(Vn)},set ref(Ko){O(Vn,Ko,!0)}})};L(yt,Ge=>{r(Yr)&&Ge(xt)})}var uo=P(yt,2);{var bn=Ge=>{let di=g(()=>s()==="video"&&p());ic(Ge,{get isShifted(){return r(di)}})};L(uo,Ge=>{F()&&Ge(bn)})}var Hi=P(uo,2);{var vi=Ge=>{var di=Ix(),Ko=_(di);xd(Ko,{get"aria-label"(){return Ln}}),h(di),$(Ge,di)};L(Hi,Ge=>{de()&&Ge(vi)})}var gi=P(Hi,2);{var Ys=Ge=>{oc(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ge()}})};L(gi,Ge=>{pe()&&Ge(Ys)})}var qa=P(gi,2);{var cp=Ge=>{Na(Ge,{get shifted(){return p()},get captions(){return ve()},get position(){return He()},get playerSize(){return H()}})};L(qa,Ge=>{ie().value!=="off"&&Ge(cp)})}var yc=P(qa,2);{var up=Ge=>{var di=kx();di.__contextmenu=fr,di.__click=[Tx,K,pt,f,Ut,_o];var Ko=_(di);Oa(Ko,{}),h(di),$(Ge,di)};L(yc,Ge=>{a()&&Ge(up)})}var xc=P(yc,2);{var pp=Ge=>{let di=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Ko=g(()=>s()==="ads"),Es=g(()=>e.canRewindLive&&fe()!==0);tc(Ge,{get bottomHidden(){return r(di)},get bottomNoSmooth(){return R()},get showControls(){return p()},get isAds(){return r(Ko)},get canRewindLive(){return r(Es)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Yt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return qt()},get nextButtonActive(){return ne()},get prevButtonActive(){return Wt()},get isOneVideoPlaylist(){return le()},customFullscreenSupported:Fo,toggleFullscreen:ji,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(tn)},set playerControlsWrapperRef($n){O(tn,$n,!0)},get playerControlsRef(){return r(Qn)},set playerControlsRef($n){O(Qn,$n,!0)}})};L(xc,Ge=>{Ve()&&Ge(pp)})}var wc=P(xc,2);{var fp=Ge=>{var di=Px(),Ko=_(di);let Es=g(()=>{var $n;return($n=r(Qn))==null?void 0:$n.clientHeight});lc(Ko,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Es)},returnFocus:()=>{var $n;return($n=Rt())==null?void 0:$n.focus()},get ref(){return r(kn)},set ref($n){O(kn,$n,!0)}}),h(di),$(Ge,di)};L(wc,Ge=>{!pe()&&s()!=="ads"&&Ge(fp)})}var Sc=P(wc,2);let mp=g(()=>!r(jr));Id(Sc,{get isLive(){return lt()},get isHidden(){return r(mp)},get isPlaying(){return X()},get position(){return He()},get duration(){return fe()}});var Cc=P(Sc,2);tv(Cc,{get data(){return Mi}});var Tc=P(Cc,2);zf(Tc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Rt())==null?void 0:Ge.focus()},get visible(){return K()},get playerContainerRef(){return r(ro)},get controlsContainerRef(){return r(tn)},get position(){return Me()},get menuElementRef(){return r(Zi)},set menuElementRef(Ge){O(Zi,Ge,!0)}});var Ec=P(Tc,2);{var vp=Ge=>{dc(Ge,{onClose:Ir,onSelectAutoQuality:()=>{en("auto"),Ir()}})};L(Ec,Ge=>{r(jn)&&Ge(vp)})}var Zs=P(Ec,2);{var gp=Ge=>{Ta(Ge,{})};L(Zs,Ge=>{r(kr)&&Ge(gp)})}var zl=P(Zs,2);{var Ic=Ge=>{Zf(Ge,{})};L(zl,Ge=>{ke()&&Ge(Ic)})}var hp=P(zl,2);{var kc=Ge=>{Md(Ge,{})};L(hp,Ge=>{We()&&Ge(kc)})}$(Je,Gt)}),$(be,Jt)},$$slots:{default:!0}}),be=>Rt(be),()=>Rt());var oi=P(Nn,2);nt(oi,be=>O(vo,be),()=>r(vo)),h(Po),nt(Po,be=>O(ro,be),()=>r(ro));var wi=P(Po,2);{var Ao=be=>{var Pt=Lx();$(be,Pt)};L(wi,be=>{dt()&&be(Ao)})}Tt("mouseenter",Po,mr),Tt("mouseleave",Po,Jr),Tt("click",Po,Uo,!0),Tt("focusin",Po,Xr,!0),$(t,Rr),z(),o()}ct(["mousemove","contextmenu","click"]);var Gs=require("@vkontakte/videoplayer-core/es2015"),V_=require("@vkontakte/videoplayer-shared/es2015");var Nx=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),Ox=M("<div><!></div>"),Bx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
338
+ }`};function uc(t,e){K(t,Tx);let i=v(e,"isPrev",3,!1);var o=We(),n=fe(o);ca(n,()=>e.Icon,s=>{var l=Cx(),d=_(l);Li(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),h(l),b(s,l)}),b(t,o)}var Ex=A('<div class="container svelte-1sw36pi"><!></div>'),Ix={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function Mv(t,e){U(e,!0),K(t,Ix);let[i,o]=Fe(),n=()=>S(s,"$isPlaying$",i),{state:{isPlaying$:s}}=Ie(),{features:{playbackStatusShow:l},playbackStatusAnimationDuration:d}=Pt(),a=0,u=Z(null),f=Z(!1);qe(()=>{O(u,n()?Gr:Ss,!0)}),qe(()=>{if(l)return a=window.setTimeout(()=>{a=0,O(u,null)},d),()=>{a&&(window.clearTimeout(a),a=0)}}),qe(()=>{n()&&!r(f)&&(O(f,!0),O(u,null))});var m=We(),p=fe(m);{var w=x=>{var y=Ex(),T=_(y);uc(T,{get Icon(){return r(u)}}),h(y),b(x,y)};L(p,x=>{r(u)&&l&&x(w)})}b(t,m),z(),o()}var kx=A('<div><div data-testid="video-container"></div></div>'),Px={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
339
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function Fa(t,e){U(e,!0),K(t,Px);let[i,o]=Fe(),n=()=>S(f,"$rotateAlpha",i),s=()=>S(m,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=v(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:m},state:{isPlaying$:p}}=Ie(),{isSmoothVideoRotate:w}=Pt(),x=g(()=>a()&&n()%180?s().height/s().width:1);var y=kx();let T;y.__contextmenu=function(...V){var k;(k=e.onContextMenu)==null||k.apply(this,V)},y.__mousedown=function(...V){var k;(k=e.onMouseDown)==null||k.apply(this,V)},y.__mouseup=function(...V){var k;(k=e.onMouseUp)==null||k.apply(this,V)},y.__click=function(...V){var k;(k=e.onClick)==null||k.apply(this,V)},y.__dblclick=function(...V){var k;(k=e.onDblClick)==null||k.apply(this,V)};var C=_(y);let E;rt(C,V=>a(V),()=>a()),h(y),B((V,k)=>{T=ne(y,1,"video-wrapper svelte-1czns9r",null,T,V),E=ne(C,1,"video-container svelte-1czns9r",null,E,k),lt(C,`transform: rotate(${n()}deg) scale(${r(x)})`),ze(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!w})]),b(t,y),z(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var Ax=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Mx=A("<div><!></div>"),Lx=A('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Vx=A("<div><!></div>"),Rx=A('<div class="settings-menu svelte-jtgjmv"><!></div>'),Nx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Ox=A("<!> <!> <!>",1),Bx=A('<div class="blocked svelte-jtgjmv"></div>'),Dx=A('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Hx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Vv(t,e){U(e,!0),K(t,Hx);let[i,o]=Fe(),n=()=>S(fr,"$notificationsToShow$",i),s=()=>S(so,"$playerPhase",i),l=()=>S(gt,"$isLoaderVisible",i),d=()=>S(bi,"$adPlaybackState",i),a=()=>S(ut,"$crashed",i),u=()=>S(tn,"$isInteractiveTime$",i),f=()=>S(Wt,"$settingsMenuVisible",i),m=()=>S(wn,"$isInteractiveExpectation$",i),p=()=>S(Ti,"$controlsVisible",i),w=()=>S(ji,"$touched",i),x=()=>S(cr,"$graphIsOpened$",i),y=()=>S(Ci,"$isFullscreen",i),T=()=>S(Cr,"$autoplayNextEnabled$",i),C=()=>S(en,"$postrollPassed",i),E=()=>S(xi,"$isEnded$",i),V=()=>S(Ai,"$cursorInside",i),k=()=>S(Qn,"$isControlsAvailable",i),I=()=>S(Gn,"$fakeIsPlaying$",i),N=()=>S(vt,"$bottomNoSmooth",i),J=()=>S(Pi,"$interactiveTimeIndicator",i),H=()=>S(To,"$playerSize",i),F=()=>S(ui,"$is3DVideo",i),Q=()=>S(Co,"$contextMenuVisible$",i),ie=()=>S(_i,"$playbackState$",i),Y=()=>S(Fo,"$hotKeyMapData",i),ge=()=>S(Jo,"$scrubbingInProgress",i),X=()=>S(Ho,"$volumeChangingInProgress",i),ue=()=>S(ri,"$chromecastConnected$",i),me=()=>S(un,"$controlsTimeoutActive",i),pe=()=>S(ni,"$settingsMenuOpenedByKeyboard",i),Pe=()=>S(Ln,"$contextMenuOpenedByKeyboard$",i),Le=()=>S(Mo,"$contextMenuOpenedByHotKey$",i),le=()=>S(pn,"$contextMenuButtonRef$",i),He=()=>S(gr,"$contextMenuLastActiveElem$",i),se=()=>S(di,"$isFullscreenOpenedByKeyboard",i),R=()=>S(nt,"$language$",i),$e=()=>S(wt,"$icon3DVideoVisible",i),Be=()=>S(ao,"$chromecastDeviceName$",i),G=()=>S(ci,"$currentSubtitle$",i),ee=()=>S(pi,"$currentSubtitleCaptions$",i),Oe=()=>S(dt,"$position$",i),it=()=>S(jt,"$duration$",i),he=()=>S(D,"$isLive$",i),te=()=>S(Ke,"$isPlaying$",i),we=()=>S(Yi,"$contextMenuPosition$",i),ke=()=>S(Sn,"$showHotKeyMap",i),je=()=>S(It,"$debugPanelVisible",i),ot=()=>S(qn,"$userActionsDisabled$",i),bt=v(e,"videoContainer",15),mt=v(e,"adsSlotId",3,void 0),Et=v(e,"adsParams",3,void 0),Ze=v(e,"adsPreviewParam",3,void 0),Ut=v(e,"adsAutoplayParam",3,void 0),Xt=v(e,"duration",3,void 0),Gt=v(e,"logoTargetUrl",3,""),qt=v(e,"showNextPrevButtons",3,!1),re=v(e,"nextButtonActive",3,!1),zt=v(e,"prevButtonActive",3,!1),Se=v(e,"endScreenVideoTitle",3,void 0),ve=v(e,"endScreenVideoThumb",3,void 0),ce=v(e,"isOneVideoPlaylist",3,!1),Ve=v(e,"shadowRootContainer",3,void 0),Ue=v(e,"outerContainerRef",3,void 0),Re=v(e,"playerStarted",3,!1),Qe=v(e,"fullScreenTarget",3,void 0),De=v(e,"showMiniTimer",3,!1),Je=v(e,"showEndScreen",3,!0),At=v(e,"keyboardControls",15),Jt=e.store.getLogger().createComponentLog("Root component"),nt=e.store.interfaceLanguage$,_i=e.store.state.playbackState$,bi=e.store.ads.playbackState,dt=e.store.state.positionWithScrubbing$,jt=e.store.state.duration$,so=e.store.playerPhase,Ci=e.store.ui.isFullscreen,di=e.store.ui.isFullscreenOpenedByKeyboard,Ti=e.store.ui.controlsVisible,Wt=e.store.ui.settingsMenu.visible$,ni=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jo=e.store.ui.scrubbingInProgress,Ho=e.store.ui.volumeChangingInProgress,Co=e.store.ui.contextMenu.visible$,It=e.store.ui.debugPanelVisible,gt=e.store.state.isLoaderVisible,xi=e.store.state.isEnded$,ri=e.store.state.chromecastConnected$,ao=e.store.state.chromecastDeviceName$,en=e.store.ads.postrollPassed,D=e.store.state.isLive$,Ke=e.store.state.isPlaying$,ut=e.store.state.crashed$,Kt=e.store.webApi.annotationsApi,pt=e.store.webApi.pictureInPictureApi,ci=e.store.state.currentSubtitle$,pi=e.store.state.currentSubtitleCaptions$,To=e.store.ui.playerSize,ui=e.store.ui.is3DVideo,wt=e.store.ui.icon3DVideoVisible,Di=e.store.state.isInteractive,tn=e.store.state.isInteractiveTime$,wn=e.store.state.isInteractiveExpectation$,Gi=e.store.state.hasInteractiveBranches,ji=e.store.ui.touched,Fo=e.store.ui.modals.hotKeyMap.data,Sn=e.store.ui.modals.hotKeyMap.show,Kn=e.store.ui.overlayContainer$,Pi=e.store.ui.controls.interactiveTimeIndicator,Cn=e.store.state.showInteractiveTimeIndicator,Yi=e.store.ui.contextMenu.position$,Eo=e.store.actions.internal.setQuality,dn=e.store.actions.internal.closeSettingsMenu,Cr=e.store.ui.autoplayNextEnabled$,qn=e.store.ui.userActionsDisabled,Qn=e.store.ui.isControlsAvailable,Tr=e.store.ui.videoTitleInfo,Er=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Gn,notifications$:cn,graphIsOpened$:cr}=So(),lo=Z(void 0),on=Z(void 0),jn=Z(void 0),Tn=Z(void 0),Ir,ur,pr;Fo.set(P1());let{closeNotification:kr,notificationsToShow$:fr}=cn,En=g(()=>!!n().slow_video),Yn=()=>kr("slow_video"),Yr=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),ho=Z(void 0),vt=ae(!1),si,un=ae(!1),In=ae(),Ai=ae(!1),Hi=Z(!1),Uo=Z(!1),_o=Z(!1),Zn=Z(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),kn=g(()=>u()&&!f()&&!(r(Hi)||r(Uo))&&!(r(_o)&&!m())),Pn=!0,An=g(()=>e.uiConfig.features.thumbTimer&&De()&&s()==="video"&&!p()&&!a()&&!Di&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),Zr=g(()=>s()==="video"&&!x()&&y()),Pr=Z(!1),Xr=g(()=>(Je()||e.showAutoplayNext&&T())&&!!Se()&&!!ve()&&(e.showAds&&C()||!e.showAds)&&E()&&!a()&&!r(Pr)),Xn=g(()=>V()&&!(p()||r(Xr))&&!u()&&k()),Ar=Z(!1),Jn=g(()=>I()!==null),{toggle:Io}=Gn,ei=!1,bo=null;pt==null||pt.setContext(Gl());let Mr=()=>{e.autoplay&&!Di&&e.uiConfig.controls.showOnStartupAtAutoplay&&Fi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Mr});let us=()=>{window.clearTimeout(Ir),un.set(!1)},Lr=()=>{window.clearTimeout(ur),In.set(null)},Fi=_e=>{us(),un.set(!0),Ir=window.setTimeout(()=>un.set(!1),_e);let Lt=_e-100;si=window.setTimeout(()=>{N()&&vt.set(!1)},Lt>0?Lt:_e)},$t=(_e,Lt)=>{Lr(),In.set(Lt),ur=window.setTimeout(()=>In.set(null),_e)},ai=ui.subscribe(_e=>{wt.set(_e),_e&&(window.clearTimeout(pr),pr=window.setTimeout(()=>wt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ei=()=>St(null,null,function*(){var Lt,Zt,fi,eo;let _e=Bs();if(_e){let po=xd(),et=Po();_e=po===et||po===Ve()}if(_e){Fi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield pt==null?void 0:pt.exit()}catch(po){Jt({message:String(po)})}}Ci.set(_e),e.store.getAdmanWrapper().setFullscreen(_e),y()?(Zt=(Lt=e.store.callbacks)==null?void 0:Lt.onFullscreenEnter)==null||Zt.call(Lt):(eo=(fi=e.store.callbacks)==null?void 0:fi.onFullscreenExit)==null||eo.call(fi)}),ko=_e=>{let{width:Lt,height:Zt}=_e.target;To.set({width:Lt,height:Zt})},Ri=()=>{let{width:_e,height:Lt}=r(lo).getBoundingClientRect();To.set({width:_e,height:Lt})};Vt(()=>{var Lt;return xu(Ei),e.uiConfig.features.annotationsInside&&(Kt==null||Kt.init(r(lo))),$a(pt)&&(pt==null||pt.assignPlayerContainer(r(lo)),pt==null||pt.setExternalEventHandlers({resize:ko,leavepictureinpicture:Ri})),e.interactiveContainer&&((Lt=bt().parentElement)==null||Lt.insertBefore(e.interactiveContainer,bt().nextSibling)),()=>{window.clearTimeout(Ir),window.clearTimeout(si),window.clearTimeout(ur),window.clearTimeout(pr),ai(),pt==null||pt.dispose().catch(Zt=>{Jt({message:String(Zt)})}),wu(Ei)}});let Po=()=>{let _e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ue()?r(lo):Ue(),Lt=_e.getRootNode(),Zt=Lt instanceof ShadowRoot?Lt.host:Lt,fi=Qe()instanceof HTMLElement&&Qe().contains(Zt);return e.uiConfig.allowChangingFullscreenTarget&&Qe()&&fi?Qe():_e},co=()=>{Co.set(!1)},$o=()=>{dn(),co()},Zi=()=>St(null,null,function*(){co(),Bs()?(yield yu(document),Jt({message:"exit fullscreen"})):(Jt({message:"request fullscreen"}),yield $u(Po()))}),mr=_e=>{x()||(_e.preventDefault(),Co.set(!0),Yi.set({left:_e.clientX,top:_e.clientY}))};function vr(){Ai.set(!0),Di||Fi(e.uiConfig.controls.hideTimeoutCursor)}function ps(){Di||(vt.set(!0),Fi(e.uiConfig.controls.hideTimeoutCursor))}function Jr(){Ai.set(!1),O(Uo,!1),O(Hi,!1),ei=!1,e.store.actions.internal.releaseCamera(),Fi(e.uiConfig.controls.hideTimeout)}function yo(_e){return _e?_e.offsetTop+yo(_e.offsetParent):0}function Mn(_e){return _e?_e.offsetLeft+Mn(_e.offsetParent):0}function Vr(_e){if(J()&&Cn){let Lt=_e.currentTarget,Zt=yo(Lt),fi=Mn(Lt),eo=_e.pageX-fi,po=_e.pageY-Zt,{left:et,bottom:Yt,right:Ui}=J(),Wo=Ui-et;return eo>=et-Wo&&po<=Yt+Wo}}function Rr(_e){if(r(lo)){let Lt=yo(_e.currentTarget),Zt=H().height,fi=_e.pageY-Lt;if(Vr(_e)){O(Uo,!1);return}fi<40?O(Uo,!0):fi>Zt-40?O(Hi,!0):(O(Uo,!1),f()||O(Hi,!1))}}function st(_e){Rr(_e),r(kn)||Fi(e.uiConfig.controls.hideTimeoutCursor),F()&&ei&&bo&&e.store.actions.internal.moveCameraFocusPX(bo.clientX-_e.clientX,bo.clientY-_e.clientY,_e.timeStamp-bo.timeStamp),bo=_e}let kt=_e=>{_e.preventDefault(),_e.button===0&&(ei=!0,e.store.actions.internal.holdCamera()),Fi(e.uiConfig.controls.hideTimeoutCursor)},$i=_e=>{_e.preventDefault(),_e.button===0&&(bo=_e,ei=!1,e.store.actions.internal.releaseCamera()),Fi(e.uiConfig.controls.hideTimeoutCursor)},Xi=_e=>{_e.preventDefault(),Pn&&(Jt({message:"double click on video"}),Zi(),Fi(e.uiConfig.controls.hideTimeoutCursor))},Ao=_e=>{var Lt;if(_e.preventDefault(),Q()||f()){$o();return}if(!(E()&&!Gi)){if(r(Jn))return Io();if((Lt=At())==null||Lt.focus(),!Re()){e.firstStart(),Fi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ie()!==Lv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Fi(e.uiConfig.controls.hideTimeoutCursor)}},xo=_e=>{$o(),ji.set(!0),Fi(e.uiConfig.controls.hideTimeout),_e&&$t(e.uiConfig.controls.hideHotKeyHelpers,_e)},uo=()=>{var _e,Lt;$o(),(_e=e.store.callbacks)!=null&&_e.onOpenHotKeyMap?(Lt=e.store.callbacks)==null||Lt.onOpenHotKeyMap(Y()):Sn.update(Zt=>!Zt)},zo=()=>{ji.set(!0)},Ln=e.store.ui.contextMenu.openedByBtnKeyboard$,pn=e.store.ui.contextMenu.btnRef$,Ji=Z(void 0),Mo=e.store.ui.contextMenu.openedByHotKey$,gr=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{Kn.set(r(ho))}),qe(()=>{O(_o,r(Zn)&&ie()!==Lv.PlaybackState.PLAYING,!0),r(Zn)||Ct(()=>O(Zn,!0))}),qe(()=>{Ti.set((r(_o)||E()||f()||ge()||X()||ue()||me())&&!r(kn)&&(s()==="video"||s()==="ads")&&!a()&&k())}),qe(()=>{!ge()&&r(Ar)&&!u()&&Fi(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>O(Ar,ge(),!0))}),qe(()=>{r(Tn),f(),pe(),Ct(()=>kd(r(Tn),f(),pe()))}),qe(()=>{r(Ji),Q(),Pe(),Le(),Ct(()=>{let _e=Pe()||Le();kd(r(Ji),Q(),_e)})}),qe(()=>{let _e=le();_e&&(Q(),Ct(()=>yl(_e,Q(),Ln)))}),qe(()=>{let _e=He();_e&&(Q(),Ct(()=>R1(_e,Q(),Mo)))}),qe(()=>{var _e;!se()&&y()&&(Ct(()=>di.set(!1)),(_e=At())==null||_e.focus())}),qe(()=>{x()&&$o()});let Vn=q("video360"),Rn=Z(void 0),hr=_e=>{Tr.set(zn(Er(),{title:r(Rn)},"title",_e))},Nn=(_e,Lt)=>{var po,et;let Zt=(et=(po=e.store.callbacks)==null?void 0:po.uiInfo)==null?void 0:et.onUpcomingLiveViewStateChanged;if(!Zt)return;let fi=!!Lt,eo=W(W({},zn(r(lo),{upcomingLiveScreen:Lt},"upcomingLiveScreen",fi)),_e);Zt(eo)};var Nr=Dx();Tt("blur",na,$o);var Lo=fe(Nr);Lo.__mousemove=st;var On=_(Lo);let es=g(()=>s()==="ads"),Xe=g(()=>r(Jn)?Io:void 0);rt(jf(On,{toggleFullscreen:Zi,hideContextMenu:$o,showHotKeyHelpers:xo,showKeyMap:uo,get isAds(){return r(es)},get fakePlayButtonHandler(){return r(Xe)},get nextButtonActive(){return re()},get prevButtonActive(){return zt()},children:(_e,Lt)=>{var Zt=Ox(),fi=fe(Zt);Fa(fi,{get hideCursor(){return r(Xn)},onClick:Ao,onContextMenu:mr,onMouseDown:kt,onMouseUp:$i,onDblClick:Xi,get videoContainer(){return bt()},set videoContainer(et){bt(et)}});var eo=P(fi,2);ua(eo,()=>"slot",!1,(et,Yt)=>{Ae(et,()=>({name:Ha}))});var po=P(eo,2);ca(po,R,et=>{var Yt=Nx(),Ui=fe(Yt);let Wo=g(()=>s()!=="thumb"||a()||Di&&e.autoplay);Oa(Ui,{get hidden(){return r(Wo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var fn=P(Ui,2);Mv(fn,{});var er=P(fn,2);{var _r=Ge=>{let li=g(()=>{var qo;return(qo=e.live)==null?void 0:qo.startTime});nc(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(li)},onUpcomingLiveViewStateChanged:Nn})};L(er,Ge=>{s()==="LiveWaitingStart"&&Ge(_r)})}var Or=P(er,2);{var to=Ge=>{Ba(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Or,Ge=>{s()==="LiveWaitingRecover"&&Ge(to)})}var mi=P(Or,2);{var mn=Ge=>{Ba(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(mi,Ge=>{s()==="LiveWaitingRecord"&&Ge(mn)})}var br=P(mi,2);{var Ko=Ge=>{var li=Mx();let qo;var Es=_(li);Sd(Es,{get adsSlotId(){return mt()},get adsParams(){return Et()},get adsPreviewParam(){return Ze()},get adsAutoplayParam(){return Ut()},get duration(){return Xt()}}),h(li),B(gn=>qo=ne(li,1,"ads-container svelte-jtgjmv",null,qo,gn),[()=>({hidden:s()!=="ads"})]),b(Ge,li)};L(br,Ge=>{e.showAds&&Re()&&Ge(Ko)})}var wo=P(br,2);{var Wa=Ge=>{let li=g(()=>!Je()&&e.showAutoplayNext&&T());qf(Ge,{get title(){return Se()},get thumb(){return ve()},get isHide(){return r(li)},clickCloseIcon:()=>O(Pr,!0)})};L(wo,Ge=>{r(Xr)&&Se()&&ve()&&Ge(Wa)})}var yt=P(wo,2);{var xt=Ge=>{let li=g(()=>!p());sv(Ge,{get title(){return e.title},get isHidden(){return r(li)},onVisibilityChanged:hr,get ref(){return r(Rn)},set ref(qo){O(Rn,qo,!0)}})};L(yt,Ge=>{r(Zr)&&Ge(xt)})}var fo=P(yt,2);{var vn=Ge=>{let li=g(()=>s()==="video"&&p());ic(Ge,{get isShifted(){return r(li)}})};L(fo,Ge=>{F()&&Ge(vn)})}var zi=P(fo,2);{var vi=Ge=>{var li=Lx(),qo=_(li);yd(qo,{get"aria-label"(){return Vn}}),h(li),b(Ge,li)};L(zi,Ge=>{$e()&&Ge(vi)})}var gi=P(zi,2);{var js=Ge=>{oc(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Be()}})};L(gi,Ge=>{ue()&&Ge(js)})}var Ka=P(gi,2);{var up=Ge=>{Ra(Ge,{get shifted(){return p()},get captions(){return ee()},get position(){return Oe()},get playerSize(){return H()}})};L(Ka,Ge=>{G().value!=="off"&&Ge(up)})}var xc=P(Ka,2);{var pp=Ge=>{var li=Vx();li.__contextmenu=mr,li.__click=[Ax,Q,Co,f,Wt,$o];var qo=_(li);Na(qo,{}),h(li),b(Ge,li)};L(xc,Ge=>{a()&&Ge(pp)})}var wc=P(xc,2);{var fp=Ge=>{let li=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),qo=g(()=>s()==="ads"),Es=g(()=>e.canRewindLive&&it()!==0);tc(Ge,{get bottomHidden(){return r(li)},get bottomNoSmooth(){return N()},get showControls(){return p()},get isAds(){return r(qo)},get canRewindLive(){return r(Es)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Gt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return qt()},get nextButtonActive(){return re()},get prevButtonActive(){return zt()},get isOneVideoPlaylist(){return ce()},customFullscreenSupported:Pn,toggleFullscreen:Zi,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(on)},set playerControlsWrapperRef(gn){O(on,gn,!0)},get playerControlsRef(){return r(jn)},set playerControlsRef(gn){O(jn,gn,!0)}})};L(wc,Ge=>{Re()&&Ge(fp)})}var Sc=P(wc,2);{var mp=Ge=>{var li=Rx(),qo=_(li);let Es=g(()=>{var gn;return(gn=r(jn))==null?void 0:gn.clientHeight});lc(qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Es)},returnFocus:()=>{var gn;return(gn=At())==null?void 0:gn.focus()},get ref(){return r(Tn)},set ref(gn){O(Tn,gn,!0)}}),h(li),b(Ge,li)};L(Sc,Ge=>{!ue()&&s()!=="ads"&&Ge(mp)})}var Cc=P(Sc,2);let vp=g(()=>!r(An));Ed(Cc,{get isLive(){return he()},get isHidden(){return r(vp)},get isPlaying(){return te()},get position(){return Oe()},get duration(){return it()}});var Tc=P(Cc,2);iv(Tc,{get data(){return In}});var Ec=P(Tc,2);Wf(Ec,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=At())==null?void 0:Ge.focus()},get visible(){return Q()},get playerContainerRef(){return r(lo)},get controlsContainerRef(){return r(on)},get position(){return we()},get menuElementRef(){return r(Ji)},set menuElementRef(Ge){O(Ji,Ge,!0)}});var Ic=P(Ec,2);{var gp=Ge=>{dc(Ge,{onClose:Yn,onSelectAutoQuality:()=>{Eo("auto"),Yn()}})};L(Ic,Ge=>{r(En)&&Ge(gp)})}var Ys=P(Ic,2);{var hp=Ge=>{Ca(Ge,{})};L(Ys,Ge=>{r(Yr)&&Ge(hp)})}var Ul=P(Ys,2);{var kc=Ge=>{Xf(Ge,{})};L(Ul,Ge=>{ke()&&Ge(kc)})}var _p=P(Ul,2);{var Pc=Ge=>{Ad(Ge,{})};L(_p,Ge=>{je()&&Ge(Pc)})}b(et,Yt)}),b(_e,Zt)},$$slots:{default:!0}}),_e=>At(_e),()=>At());var ti=P(On,2);rt(ti,_e=>O(ho,_e),()=>r(ho)),h(Lo),rt(Lo,_e=>O(lo,_e),()=>r(lo));var wi=P(Lo,2);{var Vo=_e=>{var Lt=Bx();b(_e,Lt)};L(wi,_e=>{ot()&&_e(Vo)})}Tt("mouseenter",Lo,vr),Tt("mouseleave",Lo,Jr),Tt("click",Lo,zo,!0),Tt("focusin",Lo,ps,!0),b(t,Nr),z(),o()}ct(["mousemove","contextmenu","click"]);var Qs=require("@vkontakte/videoplayer-core/es2015"),O0=require("@vkontakte/videoplayer-shared/es2015");var Fx=A('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),Ux=A("<div><!></div>"),zx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
340
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
341
341
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
342
342
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -352,7 +352,7 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
352
352
  100% {
353
353
  opacity: 0;
354
354
  }
355
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Gu(t,e){U(e,!0),Q(t,Bx);let i=m(e,"seekStep",3,0),o=Y(!1),n=0,s=0,l=Y(ai(i())),d=v=>{v.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,O(o,!1)},300)};ln(()=>{window.clearTimeout(n)});var a=Ox();a.__click=d;var u=_(a);{var f=v=>{var p=Nx(),x=he(p),w=P(x,2),y=_(w),S=_(y),T=P(S,2),E=P(T,2);h(y);var V=P(y,2),k=_(V,!0);h(V),h(w),B(I=>{var R,Z,H,F;te(x,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(Z=e.side)!=null?Z:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),te(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),$e(k,I)},[()=>q("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(v,p)};L(u,v=>{r(o)&&v(f)})}h(a),B(()=>{var v;return te(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),z()}ct(["click"]);var Dx=(t,e,i)=>{e(!1),i()},Hx=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),Fx={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Vv(t,e){U(e,!0),Q(t,Fx);let[i,o]=Fe(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ie(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Vt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Ke(),T=he(S);{var E=V=>{var k=Hx(),I=P(he(k),2),R=_(I),Z=_(R),H=_(Z,!0);h(Z);var F=P(Z,2);Ca(F,{onClick:y}),h(R);var K=P(R,2);K.__click=[Dx,u,v];var ee=_(K),j=_(ee),ue=_(j);let oe;var pe=P(ue,2);{var ye=Re=>{Ld(Re,{get isRunning(){return s()},onTimerEnded:w})};L(pe,Re=>{n()&&Re(ye)})}h(j),h(ee);var me=P(ee,2),Pe=_(me),re=_(Pe,!0);h(Pe),h(me),h(K),h(I),B((Re,se)=>{$e(H,Re),at(j,`background-image: url('${e.thumb}')`),oe=te(ue,1,"thumb-overlay svelte-1qdxi6t",null,oe,se),$e(re,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(V,k)};L(T,V=>{e.isHide||V(E)})}$(t,S),z(),o()}ct(["click"]);var k_=require("@vkontakte/videoplayer-core/es2015");var P_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Vt(()=>{k_.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),ln(()=>{i==null||i(),clearTimeout(o)})};var A_=require("@vkontakte/videoplayer-core/es2015");var ju=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var M_=require("@vkontakte/videoplayer-core/es2015"),L_=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>M_.clientChecker.device.isIOS&&we(l)===A_.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=x=>{if(v(),!f()||!x)return;let w=u();if(!w)return;let y=new ju(w),S=we(d),T=we(s),E=we(n);for(let I of S)T.some(Z=>Z.value===I.id)&&y.attach(I,E.value===I.id);let V=d.subscribe(I=>{for(let R of I)y.updateSrc(R)}),k=()=>{let I=y.getCurrentShowingId();o(we(s).find(R=>R.value===I))};w.textTracks.addEventListener("change",k),a=()=>{V(),y.detachAll(),w.textTracks.removeEventListener("change",k)}};Vt(()=>i.subscribe(p)),ln(v)};var Ux=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},zx=M("<!> <!>",1),Wx=M("<div><!></div>"),Kx=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),qx=M("<div><!></div>"),Qx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Gx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),jx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Yx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Rv(t,e){var Mr,Bi;U(e,!0),Q(t,Yx);let[i,o]=Fe(),n=()=>C(Be,"$playerPhase",i),s=()=>C(yi,"$isLoaderVisible",i),l=()=>C(Qe,"$adPlaybackState",i),d=()=>C(Bo,"$crashed",i),a=()=>C(lr,"$notificationsToShow$",i),u=()=>C(Ne,"$playbackState$",i),f=()=>C(_e,"$graphIsOpened$",i),v=()=>C(it,"$interactiveHideMobileControls",i),p=()=>C(Oo,"$isEnded$",i),x=()=>C(So,"$isInteractiveExpectation$",i),w=()=>C(Rt,"$controlsVisible",i),y=()=>C(Ni,"$touched",i),S=()=>C(Kn,"$autoplayNextEnabled$",i),T=()=>C(li,"$postrollPassed",i),E=()=>C(dr,"$bottomNoSmooth",i),V=()=>C(Xo,"$videoSize",i),k=()=>C(ft,"$playerSize",i),I=()=>C(tt,"$isFullscreen",i),R=()=>C(Ve,"$position$",i),Z=()=>C(Ze,"$duration$",i),H=()=>C(Oi,"$loadedMetadata",i),F=()=>C(Ci,"$settingsMenuVisible",i),K=()=>C(ot,"$scrubbingInProgress",i),ee=()=>C(ri,"$volumeChangingInProgress",i),j=()=>C(wo,"$chromecastConnected$",i),ue=()=>C(Qt,"$isControlsAvailable",i),oe=()=>C(ui,"$isInteractiveTime$",i),pe=()=>C(pt,"$isActiveLive",i),ye=()=>C($i,"$settingsMenuOpenedByKeyboard",i),me=()=>C(le,"$language$",i),Pe=()=>C(wt,"$disabledControls$",i),re=()=>C(Kt,"$is3DVideo",i),Re=()=>C(ut,"$icon3DVideoVisible",i),se=()=>C(Ut,"$chromecastDeviceName$",i),N=()=>C(Wn,"$currentSubtitle$",i),De=()=>C(D,"$currentSubtitleCaptions$",i),de=()=>C(ze,"$realDuration$",i),ge=()=>C(cn,"$isLive$",i),ie=()=>C(Mt,"$isPlaying$",i),ve=()=>C(Zt,"$debugPanelVisible",i),He=m(e,"videoContainer",15),fe=m(e,"adsSlotId",3,void 0),lt=m(e,"adsParams",3,void 0),X=m(e,"adsPreviewParam",3,void 0),Me=m(e,"adsAutoplayParam",3,void 0),ke=m(e,"duration",3,void 0),We=m(e,"logoTargetUrl",3,""),dt=m(e,"showNextPrevButtons",3,!1),gt=m(e,"nextButtonActive",3,!1),ht=m(e,"prevButtonActive",3,!1),Et=m(e,"endScreenVideoTitle",3,void 0),je=m(e,"endScreenVideoThumb",3,void 0),zt=m(e,"isOneVideoPlaylist",3,!1),ti=m(e,"showMiniTimer",3,!1),Yt=m(e,"fullScreenTarget",3,void 0),qt=m(e,"playerStarted",3,!1),ne=m(e,"showEndScreen",3,!0),{notifications$:Wt,graphIsOpened$:_e}=xo(),Se=e.store.getLogger().createComponentLog("Root component"),le=e.store.interfaceLanguage$,Ne=e.store.state.playbackState$,Qe=e.store.ads.playbackState,Ve=e.store.state.positionWithScrubbing$,Ze=e.store.state.duration$,Be=e.store.playerPhase,tt=e.store.ui.isFullscreen,Rt=e.store.ui.controlsVisible,Qt=e.store.ui.isControlsAvailable,it=e.store.ui.interactiveHideMobileControls,Ci=e.store.ui.settingsMenu.visible$,$i=e.store.ui.settingsMenu.openedByBtnKeyboard$,ot=e.store.ui.scrubbingInProgress,ri=e.store.ui.volumeChangingInProgress,Zt=e.store.ui.debugPanelVisible,yi=e.store.state.isLoaderVisible,Oo=e.store.state.isEnded$,wo=e.store.state.chromecastConnected$,Ut=e.store.state.chromecastDeviceName$,li=e.store.ads.postrollPassed,cn=e.store.state.isLive$,Mt=e.store.state.isPlaying$,pt=e.store.state.isActiveLive$,xi=e.store.state.isRewindableLive$,Bo=e.store.state.crashed$,Ki=e.store.webApi.annotationsApi,si=e.store.webApi.pictureInPictureApi,Xo=e.store.state.videoSize$,Wn=e.store.state.currentSubtitle$,D=e.store.state.currentSubtitleCaptions$,ze=e.store.state.duration$,ft=e.store.ui.playerSize,Kt=e.store.ui.is3DVideo,ut=e.store.ui.icon3DVideoVisible,ci=e.store.state.isInteractive,ui=e.store.state.isInteractiveTime$,So=e.store.state.isInteractiveExpectation$,pi=e.store.state.hasInteractiveBranches,wt=e.store.ui.controls.disabledControls$,Ni=e.store.ui.touched,Do=e.store.ui.overlayContainer$,Kn=e.store.ui.autoplayNextEnabled$,Oi=e.store.state.loadedMetadata$,no=e.store.actions.internal.closeSettingsMenu,Ho=(Mr=e.store.callbacks)==null?void 0:Mr.onDisabledPlayPrevChapterClick,En=(Bi=e.store.callbacks)==null?void 0:Bi.onDisabledSeekToInteractiveClick,In=e.store.actions.internal.setQuality,Ai=Y(void 0),qi=Y(void 0),Jo=Y(void 0),en=Y(void 0),un,pn,Gr=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),qn=Y(void 0),{closeNotification:Sr,notificationsToShow$:lr}=Wt,Cr=g(()=>!!a().slow_video),fn=()=>Sr("slow_video"),dr=ae(!1),ro,tn=Y(!1),Qn=g(()=>u()!==Gs.PlaybackState.PLAYING),kn=Y(!1),Tr=g(()=>f()||v()||!r(tn)&&(p()&&!!pi||r(Qn)&&x())),Gn=Y(!0),cr=g(()=>e.uiConfig.features.thumbTimer&&ti()&&n()==="video"&&!w()&&!d()&&!ci&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Er=Y(!1),Pn=g(()=>(ne()||e.showAutoplayNext&&S())&&!!Et()&&!!je()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(Er)),jn=Y(!1);si==null||si.setContext(jl());let Ir=_t=>{_t&&!ci&&vo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Ir});let kr=()=>{clearTimeout(un),O(tn,!1),v()&&it.set(!1)},vo=_t=>{kr(),O(tn,!0),un=setTimeout(()=>O(tn,!1),_t);let Xt=_t-100;ro=setTimeout(()=>{E()&&dr.set(!1)},Xt>0?Xt:_t)},vt=Kt.subscribe(_t=>{ut.set(_t),_t&&(clearTimeout(pn),pn=setTimeout(()=>ut.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ii=(...Xt)=>St(null,[...Xt],function*(_t=Bs()){var Gi,so,ao,Eo,ho,_o;if(_t&&!Gs.clientChecker.device.isIOS){let ji=wd(),fr=Co(),mr=Gs.clientChecker.browser.isSamsungBrowser&&ji===e.shadowRootContainer;_t=ji===fr||mr}if(_t){vo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield si==null?void 0:si.exit()}catch(ji){Se({message:String(ji)})}try{let ji=(Gi=V())!=null&&Gi.width&&((so=V())!=null&&so.height)?V():k();yield T1(ji)}catch(ji){Se({message:String(ji)})}}tt.set(_t),e.store.getAdmanWrapper().setFullscreen(_t),I()?(Eo=(ao=e.store.callbacks)==null?void 0:ao.onFullscreenEnter)==null||Eo.call(ao):(_o=(ho=e.store.callbacks)==null?void 0:ho.onFullscreenExit)==null||_o.call(ho)}),mn=_t=>{let Xt=_t,{width:Gi,height:so}=Xt.target;ft.set({width:Gi,height:so})},Mi=()=>{let{width:_t,height:Xt}=r(Ai).getBoundingClientRect();ft.set({width:_t,height:Xt})};Vt(()=>{var _t;return yu(ii),e.uiConfig.features.annotationsInside&&(Ki==null||Ki.init(r(Ai))),ya(si)&&(si==null||si.assignPlayerContainer(r(Ai)),si==null||si.setExternalEventHandlers({resize:mn,leavepictureinpicture:Mi})),O(Gn,!Gs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((_t=He().parentElement)==null||_t.insertBefore(e.interactiveContainer,He().nextSibling)),()=>{clearTimeout(un),clearTimeout(ro),clearTimeout(pn),vt(),si==null||si.dispose().catch(Xt=>{Se({message:String(Xt)})}),xu(ii)}});let Qi=Y(!0),on=Y(!0),nn=_t=>{let Xt=R()+(_t==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Xt<0?(O(Qi,!1),Xt=0):Xt>=Z()&&(O(on,!1),Xt=Z()),O(kn,!0),e.seekTime(Xt)},Co=()=>Gs.clientChecker.device.isIOS?r(Ai):!e.uiConfig.allowChangingFullscreenTarget||!Yt()?e.outerContainerRef:Yt().contains(e.outerContainerRef)?Yt():e.outerContainerRef,Yn=()=>St(null,null,function*(){try{if(Bs())yield $u(document),Se({message:"exit fullscreen"});else{if(Se({message:"request fullscreen"}),Gs.clientChecker.device.isIOS&&!H())return;yield bu(Co())}}catch(_t){Se({message:String(_t)})}}),vn=()=>{no()},Fo=_t=>{if(_t.preventDefault(),F()){vn();return}if(!qt()){e.firstStart(),vo(e.uiConfig.controls.hideTimeoutCursor);return}O(kn,!1),w()?kr():vo(e.uiConfig.controls.hideTimeoutMobile)},jr=()=>{Ni.set(!0)},Yr=()=>{ci||(dr.set(!0),vo(e.uiConfig.controls.hideTimeoutCursor))},Pr=_t=>{Ho&&(Ho(_t),vo(e.uiConfig.controls.hideTimeoutMobile))},Zr=_t=>{En&&(En(_t),vo(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Do.set(r(qn))}),qe(()=>{Rt.set((r(Qn)||F()||K()||ee()||j()||!r(Pn)&&(p()||r(tn)&&!r(kn)))&&!r(Tr)&&n()==="video"&&!d()&&ue())}),qe(()=>{!K()&&r(jn)&&!oe()&&vo(e.uiConfig.controls.hideTimeoutMobile),O(jn,K(),!0)}),qe(()=>{O(Qi,R()>0),O(on,!pe()&&R()<Z(),!0)}),qe(()=>{Pd(r(en),F(),ye(),!0)});let Zn=q("aria_label_video_player"),ur=q("video360");P_({fullScreenChangeHandler:ii,getFullscreenTarget:Co}),L_({store:e.store,getFullscreenTarget:Co});let pr=(_t,Xt)=>{var Eo,ho;let Gi=(ho=(Eo=e.store.callbacks)==null?void 0:Eo.uiInfo)==null?void 0:ho.onUpcomingLiveViewStateChanged;if(!Gi)return;let so=!!Xt,ao=W(W({},Un(r(Ai),{upcomingLiveScreen:Xt},"upcomingLiveScreen",so)),_t);Gi(ao)};var To=jx();Tt("blur",ra,vn);var ei=_(To);Ua(ei,{onClick:Fo,get videoContainer(){return He()},set videoContainer(_t){He(_t)}});var go=P(ei,2);pa(go,()=>"slot",!1,(_t,Xt)=>{Ae(_t,()=>({name:Fa}))});var Ar=P(go,2);ua(Ar,me,_t=>{var Xt=Gx(),Gi=he(Xt);let so=g(()=>n()!=="thumb"||d()||ci&&e.autoplay);Ba(Gi,{get hidden(){return r(so)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ao=P(Gi,2);{var Eo=Xe=>{var oi=zx(),wi=he(oi);{var Ao=Jt=>{let fi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Gu(Jt,{side:"left",get seekStep(){return r(fi)},handleSingleFirstClick:Fo,handleSecondClick:()=>nn("backward")})};L(wi,Jt=>{r(Qi)&&Jt(Ao)})}var be=P(wi,2);{var Pt=Jt=>{let fi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Gu(Jt,{side:"right",get seekStep(){return r(fi)},handleSingleFirstClick:Fo,handleSecondClick:()=>nn("forward")})};L(be,Jt=>{r(on)&&Jt(Pt)})}$(Xe,oi)};L(ao,Xe=>{e.canRewindLive&&xi&&!Pe().has("TIMELINE")&&Xe(Eo)})}var ho=P(ao,2);{var _o=Xe=>{let oi=g(()=>{var wi;return(wi=e.live)==null?void 0:wi.startTime});nc(Xe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(oi)},onUpcomingLiveViewStateChanged:pr})};L(ho,Xe=>{n()==="LiveWaitingStart"&&Xe(_o)})}var ji=P(ho,2);{var fr=Xe=>{Da(Xe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(ji,Xe=>{n()==="LiveWaitingRecover"&&Xe(fr)})}var mr=P(ji,2);{var Xr=Xe=>{Da(Xe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(mr,Xe=>{n()==="LiveWaitingRecord"&&Xe(Xr)})}var Jr=P(mr,2);{var bo=Xe=>{var oi=Wx();let wi;var Ao=_(oi);Cd(Ao,{get adsSlotId(){return fe()},get adsParams(){return lt()},get adsPreviewParam(){return X()},get adsAutoplayParam(){return Me()},get duration(){return ke()}}),h(oi),B(be=>wi=te(oi,1,"ads-container svelte-7yl31d",null,wi,be),[()=>({hidden:n()!=="ads"})]),$(Xe,oi)};L(Jr,Xe=>{e.showAds&&qt()&&Xe(bo)})}var An=P(Jr,2);{var Lr=Xe=>{let oi=g(()=>!ne()&&e.showAutoplayNext&&S());Vv(Xe,{get title(){return Et()},get thumb(){return je()},get isHide(){return r(oi)},clickCloseIcon:()=>O(Er,!0)})};L(An,Xe=>{r(Pn)&&Et()&&je()&&Xe(Lr)})}var Vr=P(An,2);{var rt=Xe=>{ic(Xe,{})};L(Vr,Xe=>{re()&&Xe(rt)})}var It=P(Vr,2);{var _i=Xe=>{var oi=Kx(),wi=_(oi);xd(wi,{get"aria-label"(){return ur}}),h(oi),$(Xe,oi)};L(It,Xe=>{Re()&&Xe(_i)})}var Yi=P(It,2);{var Io=Xe=>{oc(Xe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return se()}})};L(Yi,Xe=>{j()&&Xe(Io)})}var $o=P(Yi,2);{var lo=Xe=>{Na(Xe,{get shifted(){return w()},get captions(){return De()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};L($o,Xe=>{N().value!=="off"&&Xe(lo)})}var Uo=P($o,2);{var Mn=Xe=>{var oi=qx();oi.__click=[Ux,F,Ci,vn];var wi=_(oi);Oa(wi,{}),h(oi),$(Xe,oi)};L(Uo,Xe=>{d()&&Xe(Mn)})}var gn=P(Uo,2);{var Zi=Xe=>{let oi=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),wi=g(()=>n()==="ads"),Ao=g(()=>e.canRewindLive&&de()!==0);tc(Xe,{get bottomHidden(){return r(oi)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(wi)},get canRewindLive(){return r(Ao)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return We()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return dt()},get nextButtonActive(){return gt()},get prevButtonActive(){return ht()},get isOneVideoPlaylist(){return zt()},get customFullscreenSupported(){return r(Gn)},get endScreenShown(){return r(Pn)},toggleFullscreen:Yn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Pr,onDisabledSeekToInteractiveClick:Zr,get playerControlsWrapperRef(){return r(qi)},set playerControlsWrapperRef(be){O(qi,be,!0)},get playerControlsRef(){return r(Jo)},set playerControlsRef(be){O(Jo,be,!0)}})};L(gn,Xe=>{qt()&&Xe(Zi)})}var ko=P(gn,2);{var vr=Xe=>{var oi=Qx(),wi=_(oi);lc(wi,{get supportLink(){return e.supportLink},get returnFocus(){return V_.noop},get ref(){return r(en)},set ref(Ao){O(en,Ao,!0)}}),h(oi),$(Xe,oi)};L(ko,Xe=>{F()&&Xe(vr)})}var Ln=P(ko,2);let Vn=g(()=>!r(cr));Id(Ln,{get isLive(){return ge()},get isHidden(){return r(Vn)},get isPlaying(){return ie()},get position(){return R()},get duration(){return Z()}});var gr=P(Ln,2);{var Rn=Xe=>{Ta(Xe,{})};L(gr,Xe=>{r(Gr)&&Xe(Rn)})}var Rr=P(gr,2);{var Po=Xe=>{Md(Xe,{})};L(Rr,Xe=>{ve()&&Xe(Po)})}var Nn=P(Rr,2);{var es=Xe=>{dc(Xe,{onClose:fn,onSelectAutoQuality:()=>{In("auto"),fn()}})};L(Nn,Xe=>{r(Cr)&&Xe(es)})}$(_t,Xt)});var ps=P(Ar,2);nt(ps,_t=>O(qn,_t),()=>r(qn)),h(To),nt(To,_t=>O(Ai,_t),()=>r(Ai)),B(()=>Ue(To,"aria-label",Zn)),Tt("click",To,jr,!0),Tt("focusin",To,Yr,!0),$(t,To),z(),o()}ct(["click"]);function Yu(t){let e="";return oo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),oo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),oo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),oo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),oo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),oo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),oo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),oo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),oo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),oo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),oo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),oo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),oo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),oo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),oo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),oo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),oo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),oo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),oo(t.font)&&(e+=`--font:${t.font};`),oo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),oo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function oo(t){return typeof t=="string"&&!t.includes(";")}var R_=require("@vkontakte/videoplayer-shared/es2015");var Zx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Xx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Nv(t,e){U(e,!0),Q(t,Xx);let[i,o]=Fe(),n=()=>C(ee,"$playerSize",i),s=()=>C(I,"$isPlaying$",i),l=()=>C(V,"$duration$",i),d=()=>C(H,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),u=()=>C(E,"$crashed$",i),f=()=>C(R,"$currentSubtitle$",i),v=()=>C(Z,"$currentSubtitleCaptions$",i),p=()=>C(k,"$positionExact$",i),x=()=>C(F,"$isLive$",i),w=()=>C(K,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:V,positionExact$:k,isPlaying$:I,currentSubtitle$:R,currentSubtitleCaptions$:Z,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:K},ui:{playerSize:ee,controls:j},actions:{internal:{getVideoElement:ue}}}=Ie(),oe=8,pe=Y(!1),ye=ai({}),me=()=>{O(pe,!0)},Pe=()=>{O(pe,!1)},re=(0,R_.debounceFn)(Pl,260);qe(()=>{n(),re(ue(),j,ye,r(pe))});let Re=g(()=>s()?Cn(l()-d()):Cn(isFinite(l())?l():y()));var se=Zx(),N=_(se);Ua(N,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(ke){S(ke)}});var De=P(N,2);pa(De,()=>"slot",!1,(ke,We)=>{Ae(ke,()=>({name:Fa}))});var de=P(De,2);let ge=g(()=>a()!=="thumb"||u());Ba(de,{get hidden(){return r(ge)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ie=P(de,2);{var ve=ke=>{Na(ke,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};L(ie,ke=>{f().value!=="off"&&ke(ve)})}var He=P(ie,2),fe=_(He);Ed(fe,{get isLive(){return x()},get isPlaying(){return s()},get time(){return r(Re)}}),h(He);var lt=P(He,2);let X;var Me=_(lt);Pa(Me,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:oe,tooltipRightOffset:oe,get ref(){return ye.timeline},set ref(ke){ye.timeline=ke}}),h(lt),h(se),B(ke=>X=te(lt,1,"timeline svelte-1qfjf44",null,X,ke),[()=>({visible:r(pe)})]),Tt("mouseenter",se,me),Tt("mouseleave",se,Pe),$(t,se),z(),o()}var Jx=M("<div><!></div>"),e5={hash:"svelte-16kg8zb",code:`.root.svelte-16kg8zb {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
355
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function ju(t,e){U(e,!0),K(t,zx);let i=v(e,"seekStep",3,0),o=Z(!1),n=0,s=0,l=Z(ii(i())),d=m=>{m.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(m):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,O(o,!1)},300)};an(()=>{window.clearTimeout(n)});var a=Ux();a.__click=d;var u=_(a);{var f=m=>{var p=Fx(),w=fe(p),x=P(w,2),y=_(x),T=_(y),C=P(T,2),E=P(C,2);h(y);var V=P(y,2),k=_(V,!0);h(V),h(x),B(I=>{var N,J,H,F;ne(w,1,`semicircle ${(N=e.side)!=null?N:""}`,"svelte-nhq2ld"),ne(T,1,`triangle ${(J=e.side)!=null?J:""}`,"svelte-nhq2ld"),ne(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ne(E,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),be(k,I)},[()=>q("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),b(m,p)};L(u,m=>{r(o)&&m(f)})}h(a),B(()=>{var m;return ne(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"svelte-nhq2ld")}),b(t,a),z()}ct(["click"]);var Wx=(t,e,i)=>{e(!1),i()},Kx=A('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),qx={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Rv(t,e){U(e,!0),K(t,qx);let[i,o]=Fe(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Ie(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,w=l.actions.internal.nextVideoAnnouncementCancel,x=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),w()};Vt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var T=We(),C=fe(T);{var E=V=>{var k=Kx(),I=P(fe(k),2),N=_(I),J=_(N),H=_(J,!0);h(J);var F=P(J,2);Sa(F,{onClick:y}),h(N);var Q=P(N,2);Q.__click=[Wx,u,m];var ie=_(Q),Y=_(ie),ge=_(Y);let X;var ue=P(ge,2);{var me=le=>{Md(le,{get isRunning(){return s()},onTimerEnded:x})};L(ue,le=>{n()&&le(me)})}h(Y),h(ie);var pe=P(ie,2),Pe=_(pe),Le=_(Pe,!0);h(Pe),h(pe),h(Q),h(I),B((le,He)=>{be(H,le),lt(Y,`background-image: url('${e.thumb}')`),X=ne(ge,1,"thumb-overlay svelte-1qdxi6t",null,X,He),be(Le,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(V,k)};L(C,V=>{e.isHide||V(E)})}b(t,T),z(),o()}ct(["click"]);var M0=require("@vkontakte/videoplayer-core/es2015");var L0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Vt(()=>{M0.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),an(()=>{i==null||i(),clearTimeout(o)})};var V0=require("@vkontakte/videoplayer-core/es2015");var Yu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var R0=require("@vkontakte/videoplayer-core/es2015"),N0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>R0.clientChecker.device.isIOS&&xe(l)===V0.VideoFormat.DASH_LIVE_CMAF,m=()=>{a==null||a(),a=null},p=w=>{if(m(),!f()||!w)return;let x=u();if(!x)return;let y=new Yu(x),T=xe(d),C=xe(s),E=xe(n);for(let I of T)C.some(J=>J.value===I.id)&&y.attach(I,E.value===I.id);let V=d.subscribe(I=>{for(let N of I)y.updateSrc(N)}),k=()=>{let I=y.getCurrentShowingId();o(xe(s).find(N=>N.value===I))};x.textTracks.addEventListener("change",k),a=()=>{V(),y.detachAll(),x.textTracks.removeEventListener("change",k)}};Vt(()=>i.subscribe(p)),an(m)};var Qx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Gx=A("<!> <!>",1),jx=A("<div><!></div>"),Yx=A('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Zx=A("<div><!></div>"),Xx=A('<div class="settings-mobile svelte-7yl31d"><!></div>'),Jx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),e5=A('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),t5={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Nv(t,e){var Lr,Fi;U(e,!0),K(t,t5);let[i,o]=Fe(),n=()=>S(De,"$playerPhase",i),s=()=>S(Ci,"$isLoaderVisible",i),l=()=>S(Ue,"$adPlaybackState",i),d=()=>S(gt,"$crashed",i),a=()=>S(Er,"$notificationsToShow$",i),u=()=>S(Ve,"$playbackState$",i),f=()=>S(Se,"$graphIsOpened$",i),m=()=>S(nt,"$interactiveHideMobileControls",i),p=()=>S(di,"$isEnded$",i),w=()=>S(To,"$isInteractiveExpectation$",i),x=()=>S(At,"$controlsVisible",i),y=()=>S(Di,"$touched",i),T=()=>S(wn,"$autoplayNextEnabled$",i),C=()=>S(ni,"$postrollPassed",i),E=()=>S(cr,"$bottomNoSmooth",i),V=()=>S(ao,"$videoSize",i),k=()=>S(ut,"$playerSize",i),I=()=>S(Je,"$isFullscreen",i),N=()=>S(Re,"$position$",i),J=()=>S(Qe,"$duration$",i),H=()=>S(Gi,"$loadedMetadata",i),F=()=>S(_i,"$settingsMenuVisible",i),Q=()=>S(dt,"$scrubbingInProgress",i),ie=()=>S(jt,"$volumeChangingInProgress",i),Y=()=>S(Ti,"$chromecastConnected$",i),ge=()=>S(Jt,"$isControlsAvailable",i),X=()=>S(pi,"$isInteractiveTime$",i),ue=()=>S(Co,"$isActiveLive",i),me=()=>S(bi,"$settingsMenuOpenedByKeyboard",i),pe=()=>S(ce,"$language$",i),Pe=()=>S(wt,"$disabledControls$",i),Le=()=>S(Kt,"$is3DVideo",i),le=()=>S(pt,"$icon3DVideoVisible",i),He=()=>S(Wt,"$chromecastDeviceName$",i),se=()=>S(en,"$currentSubtitle$",i),R=()=>S(D,"$currentSubtitleCaptions$",i),$e=()=>S(Ke,"$realDuration$",i),Be=()=>S(Jo,"$isLive$",i),G=()=>S(Ho,"$isPlaying$",i),ee=()=>S(so,"$debugPanelVisible",i),Oe=v(e,"videoContainer",15),it=v(e,"adsSlotId",3,void 0),he=v(e,"adsParams",3,void 0),te=v(e,"adsPreviewParam",3,void 0),we=v(e,"adsAutoplayParam",3,void 0),ke=v(e,"duration",3,void 0),je=v(e,"logoTargetUrl",3,""),ot=v(e,"showNextPrevButtons",3,!1),bt=v(e,"nextButtonActive",3,!1),mt=v(e,"prevButtonActive",3,!1),Et=v(e,"endScreenVideoTitle",3,void 0),Ze=v(e,"endScreenVideoThumb",3,void 0),Ut=v(e,"isOneVideoPlaylist",3,!1),Xt=v(e,"showMiniTimer",3,!1),Gt=v(e,"fullScreenTarget",3,void 0),qt=v(e,"playerStarted",3,!1),re=v(e,"showEndScreen",3,!0),{notifications$:zt,graphIsOpened$:Se}=So(),ve=e.store.getLogger().createComponentLog("Root component"),ce=e.store.interfaceLanguage$,Ve=e.store.state.playbackState$,Ue=e.store.ads.playbackState,Re=e.store.state.positionWithScrubbing$,Qe=e.store.state.duration$,De=e.store.playerPhase,Je=e.store.ui.isFullscreen,At=e.store.ui.controlsVisible,Jt=e.store.ui.isControlsAvailable,nt=e.store.ui.interactiveHideMobileControls,_i=e.store.ui.settingsMenu.visible$,bi=e.store.ui.settingsMenu.openedByBtnKeyboard$,dt=e.store.ui.scrubbingInProgress,jt=e.store.ui.volumeChangingInProgress,so=e.store.ui.debugPanelVisible,Ci=e.store.state.isLoaderVisible,di=e.store.state.isEnded$,Ti=e.store.state.chromecastConnected$,Wt=e.store.state.chromecastDeviceName$,ni=e.store.ads.postrollPassed,Jo=e.store.state.isLive$,Ho=e.store.state.isPlaying$,Co=e.store.state.isActiveLive$,It=e.store.state.isRewindableLive$,gt=e.store.state.crashed$,xi=e.store.webApi.annotationsApi,ri=e.store.webApi.pictureInPictureApi,ao=e.store.state.videoSize$,en=e.store.state.currentSubtitle$,D=e.store.state.currentSubtitleCaptions$,Ke=e.store.state.duration$,ut=e.store.ui.playerSize,Kt=e.store.ui.is3DVideo,pt=e.store.ui.icon3DVideoVisible,ci=e.store.state.isInteractive,pi=e.store.state.isInteractiveTime$,To=e.store.state.isInteractiveExpectation$,ui=e.store.state.hasInteractiveBranches,wt=e.store.ui.controls.disabledControls$,Di=e.store.ui.touched,tn=e.store.ui.overlayContainer$,wn=e.store.ui.autoplayNextEnabled$,Gi=e.store.state.loadedMetadata$,ji=e.store.actions.internal.closeSettingsMenu,Fo=(Lr=e.store.callbacks)==null?void 0:Lr.onDisabledPlayPrevChapterClick,Sn=(Fi=e.store.callbacks)==null?void 0:Fi.onDisabledSeekToInteractiveClick,Kn=e.store.actions.internal.setQuality,Pi=Z(void 0),Cn=Z(void 0),Yi=Z(void 0),Eo=Z(void 0),dn,Cr,qn=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Qn=Z(void 0),{closeNotification:Tr,notificationsToShow$:Er}=zt,Gn=g(()=>!!a().slow_video),cn=()=>Tr("slow_video"),cr=ae(!1),lo,on=Z(!1),jn=g(()=>u()!==Qs.PlaybackState.PLAYING),Tn=Z(!1),Ir=g(()=>f()||m()||!r(on)&&(p()&&!!ui||r(jn)&&w())),ur=Z(!0),pr=g(()=>e.uiConfig.features.thumbTimer&&Xt()&&n()==="video"&&!x()&&!d()&&!ci&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),kr=Z(!1),fr=g(()=>(re()||e.showAutoplayNext&&T())&&!!Et()&&!!Ze()&&(e.showAds&&C()||!e.showAds)&&p()&&!d()&&!r(kr)),En=Z(!1);ri==null||ri.setContext(Gl());let Yn=$t=>{$t&&!ci&&ho(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Yn});let Yr=()=>{clearTimeout(dn),O(on,!1),m()&&nt.set(!1)},ho=$t=>{Yr(),O(on,!0),dn=setTimeout(()=>O(on,!1),$t);let ai=$t-100;lo=setTimeout(()=>{E()&&cr.set(!1)},ai>0?ai:$t)},vt=Kt.subscribe($t=>{pt.set($t),$t&&(clearTimeout(Cr),Cr=setTimeout(()=>pt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),si=(...ai)=>St(null,[...ai],function*($t=Bs()){var Ei,ko,Ri,Po,co,$o;if($t&&!Qs.clientChecker.device.isIOS){let Zi=xd(),mr=_o(),vr=Qs.clientChecker.browser.isSamsungBrowser&&Zi===e.shadowRootContainer;$t=Zi===mr||vr}if($t){ho(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ri==null?void 0:ri.exit()}catch(Zi){ve({message:String(Zi)})}try{let Zi=(Ei=V())!=null&&Ei.width&&((ko=V())!=null&&ko.height)?V():k();yield k1(Zi)}catch(Zi){ve({message:String(Zi)})}}Je.set($t),e.store.getAdmanWrapper().setFullscreen($t),I()?(Po=(Ri=e.store.callbacks)==null?void 0:Ri.onFullscreenEnter)==null||Po.call(Ri):($o=(co=e.store.callbacks)==null?void 0:co.onFullscreenExit)==null||$o.call(co)}),un=$t=>{let ai=$t,{width:Ei,height:ko}=ai.target;ut.set({width:Ei,height:ko})},In=()=>{let{width:$t,height:ai}=r(Pi).getBoundingClientRect();ut.set({width:$t,height:ai})};Vt(()=>{var $t;return xu(si),e.uiConfig.features.annotationsInside&&(xi==null||xi.init(r(Pi))),$a(ri)&&(ri==null||ri.assignPlayerContainer(r(Pi)),ri==null||ri.setExternalEventHandlers({resize:un,leavepictureinpicture:In})),O(ur,!Qs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&(($t=Oe().parentElement)==null||$t.insertBefore(e.interactiveContainer,Oe().nextSibling)),()=>{clearTimeout(dn),clearTimeout(lo),clearTimeout(Cr),vt(),ri==null||ri.dispose().catch(ai=>{ve({message:String(ai)})}),wu(si)}});let Ai=Z(!0),Hi=Z(!0),Uo=$t=>{let ai=N()+($t==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ai<0?(O(Ai,!1),ai=0):ai>=J()&&(O(Hi,!1),ai=J()),O(Tn,!0),e.seekTime(ai)},_o=()=>Qs.clientChecker.device.isIOS?r(Pi):!e.uiConfig.allowChangingFullscreenTarget||!Gt()?e.outerContainerRef:Gt().contains(e.outerContainerRef)?Gt():e.outerContainerRef,Zn=()=>St(null,null,function*(){try{if(Bs())yield yu(document),ve({message:"exit fullscreen"});else{if(ve({message:"request fullscreen"}),Qs.clientChecker.device.isIOS&&!H())return;yield $u(_o())}}catch($t){ve({message:String($t)})}}),kn=()=>{ji()},Pn=$t=>{if($t.preventDefault(),F()){kn();return}if(!qt()){e.firstStart(),ho(e.uiConfig.controls.hideTimeoutCursor);return}O(Tn,!1),x()?Yr():ho(e.uiConfig.controls.hideTimeoutMobile)},An=()=>{Di.set(!0)},Zr=()=>{ci||(cr.set(!0),ho(e.uiConfig.controls.hideTimeoutCursor))},Pr=$t=>{Fo&&(Fo($t),ho(e.uiConfig.controls.hideTimeoutMobile))},Xr=$t=>{Sn&&(Sn($t),ho(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{tn.set(r(Qn))}),qe(()=>{At.set((r(jn)||F()||Q()||ie()||Y()||!r(fr)&&(p()||r(on)&&!r(Tn)))&&!r(Ir)&&n()==="video"&&!d()&&ge())}),qe(()=>{!Q()&&r(En)&&!X()&&ho(e.uiConfig.controls.hideTimeoutMobile),O(En,Q(),!0)}),qe(()=>{O(Ai,N()>0),O(Hi,!ue()&&N()<J(),!0)}),qe(()=>{kd(r(Eo),F(),me(),!0)});let Xn=q("aria_label_video_player"),Ar=q("video360");L0({fullScreenChangeHandler:si,getFullscreenTarget:_o}),N0({store:e.store,getFullscreenTarget:_o});let Jn=($t,ai)=>{var Po,co;let Ei=(co=(Po=e.store.callbacks)==null?void 0:Po.uiInfo)==null?void 0:co.onUpcomingLiveViewStateChanged;if(!Ei)return;let ko=!!ai,Ri=W(W({},zn(r(Pi),{upcomingLiveScreen:ai},"upcomingLiveScreen",ko)),$t);Ei(Ri)};var Io=e5();Tt("blur",na,kn);var ei=_(Io);Fa(ei,{onClick:Pn,get videoContainer(){return Oe()},set videoContainer($t){Oe($t)}});var bo=P(ei,2);ua(bo,()=>"slot",!1,($t,ai)=>{Ae($t,()=>({name:Ha}))});var Mr=P(bo,2);ca(Mr,pe,$t=>{var ai=Jx(),Ei=fe(ai);let ko=g(()=>n()!=="thumb"||d()||ci&&e.autoplay);Oa(Ei,{get hidden(){return r(ko)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ri=P(Ei,2);{var Po=Xe=>{var ti=Gx(),wi=fe(ti);{var Vo=Zt=>{let fi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ju(Zt,{side:"left",get seekStep(){return r(fi)},handleSingleFirstClick:Pn,handleSecondClick:()=>Uo("backward")})};L(wi,Zt=>{r(Ai)&&Zt(Vo)})}var _e=P(wi,2);{var Lt=Zt=>{let fi=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ju(Zt,{side:"right",get seekStep(){return r(fi)},handleSingleFirstClick:Pn,handleSecondClick:()=>Uo("forward")})};L(_e,Zt=>{r(Hi)&&Zt(Lt)})}b(Xe,ti)};L(Ri,Xe=>{e.canRewindLive&&It&&!Pe().has("TIMELINE")&&Xe(Po)})}var co=P(Ri,2);{var $o=Xe=>{let ti=g(()=>{var wi;return(wi=e.live)==null?void 0:wi.startTime});nc(Xe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ti)},onUpcomingLiveViewStateChanged:Jn})};L(co,Xe=>{n()==="LiveWaitingStart"&&Xe($o)})}var Zi=P(co,2);{var mr=Xe=>{Ba(Xe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Zi,Xe=>{n()==="LiveWaitingRecover"&&Xe(mr)})}var vr=P(Zi,2);{var ps=Xe=>{Ba(Xe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(vr,Xe=>{n()==="LiveWaitingRecord"&&Xe(ps)})}var Jr=P(vr,2);{var yo=Xe=>{var ti=jx();let wi;var Vo=_(ti);Sd(Vo,{get adsSlotId(){return it()},get adsParams(){return he()},get adsPreviewParam(){return te()},get adsAutoplayParam(){return we()},get duration(){return ke()}}),h(ti),B(_e=>wi=ne(ti,1,"ads-container svelte-7yl31d",null,wi,_e),[()=>({hidden:n()!=="ads"})]),b(Xe,ti)};L(Jr,Xe=>{e.showAds&&qt()&&Xe(yo)})}var Mn=P(Jr,2);{var Vr=Xe=>{let ti=g(()=>!re()&&e.showAutoplayNext&&T());Rv(Xe,{get title(){return Et()},get thumb(){return Ze()},get isHide(){return r(ti)},clickCloseIcon:()=>O(kr,!0)})};L(Mn,Xe=>{r(fr)&&Et()&&Ze()&&Xe(Vr)})}var Rr=P(Mn,2);{var st=Xe=>{ic(Xe,{})};L(Rr,Xe=>{Le()&&Xe(st)})}var kt=P(Rr,2);{var $i=Xe=>{var ti=Yx(),wi=_(ti);yd(wi,{get"aria-label"(){return Ar}}),h(ti),b(Xe,ti)};L(kt,Xe=>{le()&&Xe($i)})}var Xi=P(kt,2);{var Ao=Xe=>{oc(Xe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return He()}})};L(Xi,Xe=>{Y()&&Xe(Ao)})}var xo=P(Xi,2);{var uo=Xe=>{Ra(Xe,{get shifted(){return x()},get captions(){return R()},get position(){return N()},get playerSize(){return k()},isMobile:!0})};L(xo,Xe=>{se().value!=="off"&&Xe(uo)})}var zo=P(xo,2);{var Ln=Xe=>{var ti=Zx();ti.__click=[Qx,F,_i,kn];var wi=_(ti);Na(wi,{}),h(ti),b(Xe,ti)};L(zo,Xe=>{d()&&Xe(Ln)})}var pn=P(zo,2);{var Ji=Xe=>{let ti=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),wi=g(()=>n()==="ads"),Vo=g(()=>e.canRewindLive&&$e()!==0);tc(Xe,{get bottomHidden(){return r(ti)},get showControls(){return x()},get bottomNoSmooth(){return E()},get isAds(){return r(wi)},get canRewindLive(){return r(Vo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return je()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ot()},get nextButtonActive(){return bt()},get prevButtonActive(){return mt()},get isOneVideoPlaylist(){return Ut()},get customFullscreenSupported(){return r(ur)},get endScreenShown(){return r(fr)},toggleFullscreen:Zn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Pr,onDisabledSeekToInteractiveClick:Xr,get playerControlsWrapperRef(){return r(Cn)},set playerControlsWrapperRef(_e){O(Cn,_e,!0)},get playerControlsRef(){return r(Yi)},set playerControlsRef(_e){O(Yi,_e,!0)}})};L(pn,Xe=>{qt()&&Xe(Ji)})}var Mo=P(pn,2);{var gr=Xe=>{var ti=Xx(),wi=_(ti);lc(wi,{get supportLink(){return e.supportLink},get returnFocus(){return O0.noop},get ref(){return r(Eo)},set ref(Vo){O(Eo,Vo,!0)}}),h(ti),b(Xe,ti)};L(Mo,Xe=>{F()&&Xe(gr)})}var Vn=P(Mo,2);let Rn=g(()=>!r(pr));Ed(Vn,{get isLive(){return Be()},get isHidden(){return r(Rn)},get isPlaying(){return G()},get position(){return N()},get duration(){return J()}});var hr=P(Vn,2);{var Nn=Xe=>{Ca(Xe,{})};L(hr,Xe=>{r(qn)&&Xe(Nn)})}var Nr=P(hr,2);{var Lo=Xe=>{Ad(Xe,{})};L(Nr,Xe=>{ee()&&Xe(Lo)})}var On=P(Nr,2);{var es=Xe=>{dc(Xe,{onClose:cn,onSelectAutoQuality:()=>{Kn("auto"),cn()}})};L(On,Xe=>{r(Gn)&&Xe(es)})}b($t,ai)});var us=P(Mr,2);rt(us,$t=>O(Qn,$t),()=>r(Qn)),h(Io),rt(Io,$t=>O(Pi,$t),()=>r(Pi)),B(()=>ze(Io,"aria-label",Xn)),Tt("click",Io,An,!0),Tt("focusin",Io,Zr,!0),b(t,Io),z(),o()}ct(["click"]);function Zu(t){let e="";return ro(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ro(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ro(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ro(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ro(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ro(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ro(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ro(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ro(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ro(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ro(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ro(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ro(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ro(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ro(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ro(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ro(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ro(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ro(t.font)&&(e+=`--font:${t.font};`),ro(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ro(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ro(t){return typeof t=="string"&&!t.includes(";")}var B0=require("@vkontakte/videoplayer-shared/es2015");var i5=A('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),o5={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Ov(t,e){U(e,!0),K(t,o5);let[i,o]=Fe(),n=()=>S(ie,"$playerSize",i),s=()=>S(I,"$isPlaying$",i),l=()=>S(V,"$duration$",i),d=()=>S(H,"$positionWithScrubbing$",i),a=()=>S(C,"$playerPhase",i),u=()=>S(E,"$crashed$",i),f=()=>S(N,"$currentSubtitle$",i),m=()=>S(J,"$currentSubtitleCaptions$",i),p=()=>S(k,"$positionExact$",i),w=()=>S(F,"$isLive$",i),x=()=>S(Q,"$isRewindableLive$",i),y=v(e,"outsideDuration",3,0),T=v(e,"videoContainer",15),{playerPhase:C,state:{crashed$:E,duration$:V,positionExact$:k,isPlaying$:I,currentSubtitle$:N,currentSubtitleCaptions$:J,positionWithScrubbing$:H,isLive$:F,isRewindableLive$:Q},ui:{playerSize:ie,controls:Y},actions:{internal:{getVideoElement:ge}}}=Ie(),X=8,ue=Z(!1),me=ii({}),pe=()=>{O(ue,!0)},Pe=()=>{O(ue,!1)},Le=(0,B0.debounceFn)(kl,260);qe(()=>{n(),Le(ge(),Y,me,r(ue))});let le=g(()=>s()?yn(l()-d()):yn(isFinite(l())?l():y()));var He=i5(),se=_(He);Fa(se,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(ke){T(ke)}});var R=P(se,2);ua(R,()=>"slot",!1,(ke,je)=>{Ae(ke,()=>({name:Ha}))});var $e=P(R,2);let Be=g(()=>a()!=="thumb"||u());Oa($e,{get hidden(){return r(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var G=P($e,2);{var ee=ke=>{Ra(ke,{shifted:!1,get captions(){return m()},get position(){return p()},get playerSize(){return n()}})};L(G,ke=>{f().value!=="off"&&ke(ee)})}var Oe=P(G,2),it=_(Oe);Td(it,{get isLive(){return w()},get isPlaying(){return s()},get time(){return r(le)}}),h(Oe);var he=P(Oe,2);let te;var we=_(he);ka(we,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:X,tooltipRightOffset:X,get ref(){return me.timeline},set ref(ke){me.timeline=ke}}),h(he),h(He),B(ke=>te=ne(he,1,"timeline svelte-1qfjf44",null,te,ke),[()=>({visible:r(ue)})]),Tt("mouseenter",He,pe),Tt("mouseleave",He,Pe),b(t,He),z(),o()}var n5=A("<div><!></div>"),r5={hash:"svelte-16kg8zb",code:`.root.svelte-16kg8zb {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
356
356
 
357
357
  /* USER DEFINED COLORS */
358
358
 
@@ -385,5 +385,5 @@ Try switching the\xA0quality to\xA0Auto.`},y1=xb;var ys=new Map;ys.set(gl.Interf
385
385
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}*.focus-hidden:focus-visible {box-shadow:none;}
386
386
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.out-of-flow {content-visibility:hidden !important;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
387
387
 
388
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Ov(t,e){U(e,!0),Q(t,e5);let[i,o]=Fe(),n=()=>C(ti,"$isLive$",i),s=()=>C(pt,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),u=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),p=m(e,"thumbUrl",7),x=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),y=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),E=m(e,"autoplay",7),V=m(e,"volume",7,void 0),k=m(e,"muted",7,void 0),I=m(e,"fromTime",7),R=m(e,"canRewindLive",7),Z=m(e,"showAds",7),H=m(e,"adsSlotId",7,void 0),F=m(e,"adsParams",7,void 0),K=m(e,"adsPreviewParam",7,void 0),ee=m(e,"adsAutoplayParam",7,void 0),j=m(e,"duration",7,void 0),ue=m(e,"logoClickable",7),oe=m(e,"logoHidden",7),pe=m(e,"isMobile",7),ye=m(e,"showNextPrevButtons",7,!1),me=m(e,"nextButtonActive",7,!1),Pe=m(e,"prevButtonActive",7,!1),re=m(e,"endScreenVideoTitle",7,void 0),Re=m(e,"endScreenVideoThumb",7,void 0),se=m(e,"isOneVideoPlaylist",7,!1),N=m(e,"supportLink",7),De=m(e,"shadowRootContainer",7),de=m(e,"outerContainerRef",7),ge=m(e,"fullScreenTarget",7,void 0),ie=m(e,"failoverHosts",7,void 0),ve=m(e,"showMiniTimer",7,!1),He=m(e,"saveRate",7),fe=m(e,"seekToInteractive",7,za.noop),lt=m(e,"playPrevChapter",7,za.noop),X=m(e,"volumeMultiplier",7),Me=m(e,"showAutoplayNext",7),ke=m(e,"showEndScreen",7,!0),We=m(e,"keyboardControls",15,void 0),{subscribers:dt,stores:gt}=a();Dh(f());let ht=At(),Et=f().logoLink,je=d().ui.debugPanelVisible,zt=d().ui.playerSize,ti=d().state.isLive$,qt=d().state.isInteractive&&Rl.clientChecker.device.isAndroid,ne=Y(void 0),Wt=null,_e=Y(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Yh(d(),gt),qe(()=>{var D,ze;d().ui.isMobile.set(pe()),(ze=(D=u().callbacks)==null?void 0:D.onDomReady)==null||ze.call(D)});let Se=(D=!1)=>{O(_e,!0),D?d().actions.external.firstStart(Z()):d().actions.internal.firstStart(Z())},le=()=>{if(ht.features.qualityDetailsSubMenuEnabled){let D=h1(d().videoId);if(D)switch(D.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,D.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,D.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(D.quality);break}}else{_1(d().videoId),wf()&&d().actions.internal.setTrafficSavingEnabled(!0);let ze=bf(d().videoId);ze&&d().actions.internal.setQuality(ze)}};function Ne(D){var ci,ui,So;let ze=l()||D;ze&&d().initVideo({container:r(ne),sources:ze,failoverHosts:ie(),subtitles:y(),volumeMultiplier:X()});let ft=za.safeStorage.get(hd)==="true";je.set(ft),I()>0&&d().actions.external.seekTime(I());let Kt=pe()?ht.volumeDefault:(ui=(ci=V())!=null?ci:cu())!=null?ui:ht.volumeDefault,ut=(So=k())!=null?So:u1();if(d().actions.external.setVolume(Kt),d().actions.external.setMuted(ut),d().getAdmanWrapper().setInitialVolume(ut?0:Kt),le(),ht.features.saveRate&&He()){let pi=m1();pi&&!n()&&d().actions.internal.setPlaybackRate(pi)}if(Me()){let pi=g1();pi&&d().actions.internal.setAutoplayNextEnabled(pi)}d().ui.isAutoplay.set(E()),E()&&Se(),T()&&ht.features.preload&&d().actions.internal.preload()}let Qe=D=>{if(window.ResizeObserver){let ze,ft;Wt=new ResizeObserver((0,za.throttleFn)(Kt=>{let ut=Kt[0];if(ut.contentBoxSize){let ci=Array.isArray(ut.contentBoxSize)?ut.contentBoxSize[0]:ut.contentBoxSize;ze=ci.inlineSize,ft=ci.blockSize}else ut.contentRect&&(ze=ut.contentRect.width,ft=ut.contentRect.height);zt.set({width:ze,height:ft})},300)),Wt.observe(D)}zt.set({width:D.clientWidth,height:D.clientHeight})},Ve=()=>{document.hidden&&d().actions.external.stop()};Vt(()=>{var ft,Kt,ut,ci;qt&&document.addEventListener("visibilitychange",Ve),ht.debugLog&&d().actions.internal.startLogging(),Qe(r(ne));let D=dt.map(ui=>ui.init({store:d(),microStores:gt,config:u(),interactiveController:w(),uiConfig:f()})),ze=()=>{qt&&document.removeEventListener("visibilitychange",Ve),Wt==null||Wt.disconnect(),D.forEach(ui=>ui.unsubscribe()),d().destroy()};return((ft=S())==null?void 0:ft.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),ze):((Kt=S())==null?void 0:Kt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),ze):(((ut=S())==null?void 0:ut.status)==="finished"||((ci=S())==null?void 0:ci.status)==="postlive")&&!(l()&&(0,Rl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),ze):(Ne(),ze)});function Ze(){r(_e)?d().actions.external.play():Se(!0)}function Be(){d().actions.external.pause()}function tt(D){d().actions.external.setMuted(D)}function Rt(){d().actions.external.toggleSubtitle()}function Qt(D,ze){d().actions.external.changeSubtitle(D,ze)}function it(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function Ci(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.showControls()}function $i(D){pe()||D>=0&&D<=1&&d().actions.external.setVolume(D)}function ot(D){d().actions.internal.seekTime(D,N_.SeekAction.UNKNOWN)}function ri(D){d().actions.external.seekEpisodeStartTime(D)}function Zt(){d().actions.external.returnFocusToEpisodes()}function yi(D){d().actions.external.setPlaybackRate(D)}function Oo(D){d().actions.external.setAutoQualityLimits(D)}function wo(){d().actions.external.setQuality("auto")}function Ut(D){d().actions.external.setTrafficSavingEnabled(D)}function li(D){d().actions.external.setHighQualityEnabled(D)}let cn=Yu(ht.view),Mt=u().playerView==="preview",pt=d().state.availableSubtitlesList$;if(ht.features.initSubtitles){let D=!1;qe(()=>{if(!D&&s().length){D=!0;let ze;if(ht.features.userVideoPrefs&&d().videoId){let Kt=mu(ht.userSalt,String(d().videoId));Kt!=null&&Kt.subtitleTrackId&&(ze=s().find(ut=>ut.value===Kt.subtitleTrackId))}let ft=Cf();ft&&(ze!=null||(ze=s().find(Kt=>Kt.language===ft))),d().actions.internal.setSubtitle(ze)}})}var xi=Jx();let Bo;var Ki=_(xi);{var si=D=>{Rv(D,{get store(){return d()},get uiConfig(){return ht},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Z()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return K()},get adsAutoplayParam(){return ee()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return oe()},get logoTargetUrl(){return Et},get nextButtonActive(){return me()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return re()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return De()},get outerContainerRef(){return de()},get fullScreenTarget(){return ge()},get showMiniTimer(){return ve()},get playerStarted(){return r(_e)},get seekToInteractive(){return fe()},get playPrevChapter(){return lt()},firstStart:Se,seekTime:ot,get showEndScreen(){return ke()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return ye()},get videoContainer(){return r(ne)},set videoContainer(ze){O(ne,ze,!0)}})},Xo=D=>{var ze=Ke(),ft=he(ze);{var Kt=ci=>{Nv(ci,{get thumbUrl(){return p()},get outsideDuration(){return j()},get canRewindLive(){return R()},get videoContainer(){return r(ne)},set videoContainer(ui){O(ne,ui,!0)}})},ut=ci=>{Lv(ci,{get store(){return d()},get uiConfig(){return ht},get title(){return v()},get thumbUrl(){return p()},get interactiveContainer(){return x()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Z()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return K()},get adsAutoplayParam(){return ee()},get duration(){return j()},get logoClickable(){return ue()},get logoHidden(){return oe()},get logoTargetUrl(){return Et},get nextButtonActive(){return me()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return re()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return se()},get supportLink(){return N()},get shadowRootContainer(){return De()},get outerContainerRef(){return de()},get fullScreenTarget(){return ge()},get showMiniTimer(){return ve()},get playerStarted(){return r(_e)},get seekToInteractive(){return fe()},get playPrevChapter(){return lt()},firstStart:Se,get showEndScreen(){return ke()},get showAutoplayNext(){return Me()},get showNextPrevButtons(){return ye()},get videoContainer(){return r(ne)},set videoContainer(ui){O(ne,ui,!0)},get keyboardControls(){return We()},set keyboardControls(ui){We(ui)}})};L(ft,ci=>{Mt?ci(Kt):ci(ut,!1)})}$(D,ze)};L(Ki,D=>{pe()?D(si):D(Xo,!1)})}h(xi),B(D=>{Bo=te(xi,1,"root svelte-16kg8zb",null,Bo,D),at(xi,cn)},[()=>({"root--miui-browser":Rl.clientChecker.device.isMobile&&Rl.clientChecker.browser.isMiuiBrowser,"visible-outside":Mt})]),$(t,xi);var Wn=z({initVideo:Ne,play:Ze,pause:Be,setMuted:tt,toggleSubtitle:Rt,changeSubtitle:Qt,hideControls:it,showControls:Ci,setVolume:$i,seekTime:ot,seekEpisodeStartTime:ri,returnFocusToEpisodes:Zt,setPlaybackRate:yi,setAutoQualityLimits:Oo,setAutoQuality:wo,toggleTrafficSaving:Ut,toggleHighQuality:li,get sources(){return l()},set sources(D){l(D)},get store(){return d()},set store(D){d(D)},get microStoresRoot(){return a()},set microStoresRoot(D){a(D)},get videoConfig(){return u()},set videoConfig(D){u(D)},get uiConfig(){return f()},set uiConfig(D){f(D)},get title(){return v()},set title(D){v(D)},get thumbUrl(){return p()},set thumbUrl(D){p(D)},get interactiveContainer(){return x()},set interactiveContainer(D){x(D)},get interactiveController(){return w()},set interactiveController(D){w(D)},get subtitles(){return y()},set subtitles(D){y(D)},get live(){return S()},set live(D){S(D)},get preload(){return T()},set preload(D){T(D)},get autoplay(){return E()},set autoplay(D){E(D)},get volume(){return V()},set volume(D){V(D)},get muted(){return k()},set muted(D){k(D)},get fromTime(){return I()},set fromTime(D){I(D)},get canRewindLive(){return R()},set canRewindLive(D){R(D)},get showAds(){return Z()},set showAds(D){Z(D)},get adsSlotId(){return H()},set adsSlotId(D){H(D)},get adsParams(){return F()},set adsParams(D){F(D)},get adsPreviewParam(){return K()},set adsPreviewParam(D){K(D)},get adsAutoplayParam(){return ee()},set adsAutoplayParam(D){ee(D)},get duration(){return j()},set duration(D){j(D)},get logoClickable(){return ue()},set logoClickable(D){ue(D)},get logoHidden(){return oe()},set logoHidden(D){oe(D)},get isMobile(){return pe()},set isMobile(D){pe(D)},get showNextPrevButtons(){return ye()},set showNextPrevButtons(D){ye(D)},get nextButtonActive(){return me()},set nextButtonActive(D){me(D)},get prevButtonActive(){return Pe()},set prevButtonActive(D){Pe(D)},get endScreenVideoTitle(){return re()},set endScreenVideoTitle(D){re(D)},get endScreenVideoThumb(){return Re()},set endScreenVideoThumb(D){Re(D)},get isOneVideoPlaylist(){return se()},set isOneVideoPlaylist(D){se(D)},get supportLink(){return N()},set supportLink(D){N(D)},get shadowRootContainer(){return De()},set shadowRootContainer(D){De(D)},get outerContainerRef(){return de()},set outerContainerRef(D){de(D)},get fullScreenTarget(){return ge()},set fullScreenTarget(D){ge(D)},get failoverHosts(){return ie()},set failoverHosts(D){ie(D)},get showMiniTimer(){return ve()},set showMiniTimer(D){ve(D)},get saveRate(){return He()},set saveRate(D){He(D)},get showAutoplayNext(){return Me()},set showAutoplayNext(D){Me(D)},get seekToInteractive(){return fe()},set seekToInteractive(D){fe(D)},get playPrevChapter(){return lt()},set playPrevChapter(D){lt(D)},get volumeMultiplier(){return X()},set volumeMultiplier(D){X(D)},get showEndScreen(){return ke()},set showEndScreen(D){ke(D)},get keyboardControls(){return We()},set keyboardControls(D){We(D)}});return o(),Wn}var t5=Ee('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Bv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=t5();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}function Dv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Bv(t,{get style(){return r(o)}})}var i5=M('<div class="title svelte-1y9fytq"> </div>'),o5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),n5={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Hv(t,e){Q(t,n5);var i=o5(),o=_(i);{var n=d=>{var a=i5(),u=_(a,!0);h(a),B(()=>$e(u,e.title)),$(d,a)};L(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Dv(d,{get isWhite(){return r(a)}})};L(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>at(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var r5=M('<div class="playerError svelte-m5iv29"><!></div>'),s5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function Fv(t){Q(t,s5);var e=r5(),i=_(e);Oa(i,{}),h(e),$(t,e)}var lp=require("@vkontakte/videoplayer-shared/es2015"),Ri=require("@vkontakte/videoplayer-shared/es2015"),$c=require("@vkontakte/videoplayer-core/es2015"),Fl=require("@vkontakte/videoplayer-statistics/es2015");var Xu=require("@vkontakte/videoplayer-shared/es2015"),Zu=class{constructor(){this.subscription=new Xu.Subscription,this.logger=new Xu.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=we(e.state.currentPlaybackRate$),n=we(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Ol=require("@vkontakte/videoplayer-shared/es2015");var a5=Ee('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Uv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=a5();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:ce}),Te(),h(o),$(t,o)}var l5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),d5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function zv(t,e){U(e,!0),Q(t,d5);let[i,o]=Fe(),n=()=>C(u,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Ie(),d=At(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=g(()=>n()&&v("pip_dummy_title")),x=Yu(d.view);var w=l5();let y;var S=_(w);let T;var E=_(S);Uv(E,{}),h(S);var V=P(S,2),k=_(V,!0);h(V),h(w),B((I,R)=>{y=te(w,1,"player-pip-dummy svelte-1pbsod4",null,y,I),at(w,x),T=te(S,1,"dummy-image svelte-1pbsod4",null,T,R),$e(k,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),z(),o()}var c5=Object.defineProperty,u5=(t,e,i)=>e in t?c5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Nl=(t,e,i)=>u5(t,typeof e!="symbol"?e+"":e,i),Wv=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),p5=460,f5=280,uc=class{constructor({enabled:e=!0}={enabled:!0}){Nl(this,"playerDomElement"),Nl(this,"playerParentShadowRoot"),Nl(this,"playerDummyElement"),Nl(this,"svelteContext"),Nl(this,"pipWindow"),Nl(this,"info",{isActive$:new Ol.ValueSubject(!1),isEnabled$:new Ol.ValueSubject(!1),type:1}),this.info.isEnabled$=new Ol.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Ol.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Wv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:p5,height:f5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
389
- `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=as(zv,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(ca(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Wv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Wv(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function O_(t){return t instanceof uc}var Ju=class{static getLatestSupportedVersion(e){let i=new $a(e),o=new uc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function pc(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var B_="Inner error. Unexpectedly root annotation container null reference exception",D_="Annotation with such name already exists",H_="Annotation with such name does not exist";var Bl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Dl=require("@vkontakte/videoplayer-shared/es2015"),m5="1",v5=100,ep=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Dl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Dl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},v5);this.subscriptions.add((0,Dl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Bl(B_);if(this.annotations.has(e))throw new Bl(D_);i.style.zIndex=(o=i.style.zIndex)!=null?o:m5,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Bl(H_);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Wa=require("@vkontakte/videoplayer-shared/es2015"),dn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Wa.assertNonNullable)(e),(0,Wa.assertNonNullable)(i),(0,Wa.assertNonNullable)(n),n.interactiveData&&(0,Wa.assertNonNullable)(o),this.subscription=new Wa.Subscription,this.subscription}};var fc=class extends dn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ht(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var mc=class extends dn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ht(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=we(f),p=()=>v&&we(u);return o.add(u.subscribe(x=>{if(!v)return;let w=we(l);we(a)?this.state$.set(x):w!==null&&this.state$.set(!w||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let w=we(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!x)})),o}};var vc=class extends dn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var F_=require("@vkontakte/videoplayer-shared/es2015");var Kv=ae(!1),tp=null,gc=class extends dn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ht(W({},Kv),{set:(i,o=!1)=>{i!==we(Kv)&&(this.clearTimeout(),Kv.set(i),!i&&tp&&(tp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(v=>{we(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,F_.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var w,y;if(!(!v||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&tp===null&&(tp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var ip=require("@vkontakte/videoplayer-shared/es2015");var hc=class extends dn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ht(W({},ae(null)),{toggle:ip.noop});this.checkIfShouldHide=i=>Ks(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>St(this,null,function*(){if(this.checkIfShouldHide(we(l)))return;let a=we(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=we(u),x=we(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(pf),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),v.add(pf),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,ip.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>St(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var qv=require("@vkontakte/videoplayer-shared/es2015"),_c=class extends dn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new qv.ValueSubject(!1),isEnabled$:new qv.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var np=require("@vkontakte/videoplayer-shared/es2015");var op=require("@vkontakte/videoplayer-shared/es2015");var U_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?g5({maxCount:t}):void 0,e!==0?h5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},g5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,op.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},h5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(op.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>op.safeStorage.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Ht(W({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var bc=class extends dn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=U_({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,np.filterChanged)(),(0,np.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var z_=()=>[fc,mc,vc,gc,hc,_c,bc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ht(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Hl=require("@vkontakte/videoplayer-shared/es2015");var rp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var _5=Object.defineProperty,b5=Object.defineProperties,$5=Object.getOwnPropertyDescriptors,W_=Object.getOwnPropertySymbols,y5=Object.prototype.hasOwnProperty,x5=Object.prototype.propertyIsEnumerable,Qv=(t,e,i)=>e in t?_5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,js=(t,e)=>{for(var i in e||(e={}))y5.call(e,i)&&Qv(t,i,e[i]);if(W_)for(var i of W_(e))x5.call(e,i)&&Qv(t,i,e[i]);return t},w5=(t,e)=>b5(t,$5(e)),jt=(t,e,i)=>Qv(t,typeof e!="symbol"?e+"":e,i),sp=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),S5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ri.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,$c.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},zn=Y(void 0),ap=class extends HTMLElement{constructor(){super(),jt(this,"svelteStubComponent"),jt(this,"svelteRootComponent"),jt(this,"svelteErrorComponent"),jt(this,"store"),jt(this,"microStoresRoot"),jt(this,"statistics"),jt(this,"sentry"),jt(this,"_shadowRoot"),jt(this,"playerContainer"),jt(this,"rootContainer"),jt(this,"shadowRootContainer"),jt(this,"playerId"),jt(this,"uiConfig"),jt(this,"coreConfig"),jt(this,"statisticsConfig"),jt(this,"interactiveController"),jt(this,"interactiveContainer"),jt(this,"graphMadePause"),jt(this,"currentPlayingVideoIndex",0),jt(this,"needToRepeatPlaylist",!1),jt(this,"videoConfig"),jt(this,"pictureInPictureApi"),jt(this,"mediaSessionApi"),jt(this,"unsubscribePlayerPhaseSubscription"),jt(this,"logger"),jt(this,"log"),jt(this,"subscription"),jt(this,"interactiveSubscription"),jt(this,"annotationsApi"),jt(this,"slotsApi"),jt(this,"focusManager"),jt(this,"prevIsid"),jt(this,"isInited",!1),jt(this,"internalsExposure",null),jt(this,"shadowDOMCallbacksDisabled",!1),jt(this,"fatalError$",new lp.ValueSubject(null)),jt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:x,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:E}=pc(this.videoConfig,i),V=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,k=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new Fl.OneStat(js({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:R,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},V&&(!this.isInited||k)&&{projectId:Number(V)}),js({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),Hl.devNull.create("ui"),this.logger=new Ri.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ri.Subscription,this.interactiveSubscription=new Ri.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=as(Fv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ai({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=as(Hv,l)}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Hl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=pc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Fl.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,u,f,v,p,x;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:S,preload:T,autoplay:E,volume:V,muted:k,fromTime:I,canRewindLive:R,supportLink:Z,showAds:H,adsSlotId:F,adsParams:K={},adsPreviewParam:ee,adsAutoplayParam:j,interfaceLanguage:ue,isCyrillicRelatedInterface:oe,logoClickable:pe,logoHidden:ye,isMobile:me,isTouch:Pe,isAudioDisabled:re,isLiveCatchUpMode:Re,fullScreenTarget:se,failoverHosts:N,canDownload:De,callbacks:de,interactiveData:ge,showThumbTimer:ie,additionalButtons:ve=[],additionalSettingsMenuItems:He=[],additionalContextMenuItems:fe=[],repeat:lt,saveRate:X,volumeMultiplier:Me,showEndScreen:ke,showAutoplayNext:We,mediascopePixels:dt}=pc(this.videoConfig,i),{sources:gt,title:ht,thumbUrl:Et,unitedVideoId:je,isClip:zt=!1,duration:ti,adsParams:Yt={},videoEpisodes:qt,previewThumbsData:ne,subtitles:Wt,live:_e}=e;if(!gt&&!_e){let Zt=new Error("empty sources and live");this.fatalError$.next(Zt),(n=de.onCrashed)==null||n.call(de,Zt.message);return}let Se=js(js({},K),Yt),le=this.getNextVideoInfo(),Ne={sources:gt,title:ht,thumbUrl:Et,subtitles:Wt,unitedVideoId:je,isClip:zt,live:_e,albumId:w,statPlace:y,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,showAds:H,adsSlotId:F,adsParams:Se,adsPreviewParam:ee,adsAutoplayParam:j,duration:ti,logoClickable:pe,logoHidden:ye,isTouch:Pe!=null?Pe:me,repeat:lt,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Qe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Ne)}`});let Ve=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Ze=(Ve==null?void 0:Ve.oneStat)||this.createOneStat(e,i),Be=this.createThinOneStat(e,i),tt;dt&&(tt=new Fl.MediascopePixel({pixels:dt})),(Ze||Be)&&(this.statistics=new Nu(Ze,Be,tt,Ve==null?void 0:Ve.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ba(this.uiConfig.sentry,{version:ga,env:au},{movieId:je,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:Pe!=null?Pe:me,clip:zt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry=js(js({},this.sentry),ba.getInstance());let Qt=!!ge,it=[],Ci="tooltip_interactive_go_back_disabled_first";if(Qt&&this.interactiveController){let Zt=this.interactiveController.state.isInitialChapter$.getValue(),yi=this.interactiveController.getHistoryState();Zt&&it.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||it.push("SEEK_TO_INTERACTIVE_BUTTON"),yi.hasPrevChapter$.getValue()||(it.push("PLAY_PREV_CHAPTER_BUTTON"),Zt||(yi.isGoBackLimited$.getValue()?Ci="tooltip_interactive_go_back_disabled_limit":Ci="tooltip_interactive_go_back_disabled"))}let $i=()=>{var Zt;this.isInited=!1,this.prevIsid=void 0;let yi=(o==null?void 0:o.info.isEnded$.getValue())&&((Zt=this.interactiveController)==null?void 0:Zt.state.isEndChapter$.getValue());de.onReplayInteractiveVideo&&!yi?de.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=s_({player:o,interfaceLanguage:ue,isCyrillicRelatedInterface:oe,videoId:je,isClip:zt,isLiveCatchUpMode:Re,isAudioDisabled:re,statAuthToken:S,callbacks:de,webApi:Qe,videoEpisodes:qt,previewThumbsData:ne,canDownload:De,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:it,isInteractive:Qt,saveRate:X,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:$i,playPrevChapterDisabledTooltip:Ci,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?ve:[],additionalSettingsMenuItems:He!=null?He:[],additionalContextMenuItems:fe!=null?fe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:lt&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:ot}=this.microStoresRoot=z_(),ri=()=>{var Zt,yi,Oo,wo,Ut,li;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Mt=>{var pt;return(pt=de==null?void 0:de.onCurrentFormatChanged)==null?void 0:pt.call(de,Mt)})),this.subscription.add(ot.interactiveControlsOpacity$.subscribe(Mt=>{var pt;Mt!==null&&((pt=this==null?void 0:this.interactiveController)==null||pt.setDisabledControls(Mt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Mt=>{var pt;return(pt=de==null?void 0:de.onThroughputEstimationChanged)==null?void 0:pt.call(de,Mt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Mt=>{var pt;return(pt=de==null?void 0:de.onTrafficSavingEnabledChanged)==null?void 0:pt.call(de,Mt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Mt=>{var pt;return(pt=de==null?void 0:de.onHighQualityEnabledChanged)==null?void 0:pt.call(de,Mt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Mt=>{var pt;return(pt=de==null?void 0:de.onAutoQualityEnabledChanged)==null?void 0:pt.call(de,!!Mt)})),this.subscription.add(new Ri.Observable(Mt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(pt=>Mt.next(pt)))}).pipe((0,Ri.skip)(1)).subscribe(Mt=>{var pt;return(pt=de==null?void 0:de.onCurrentPlaybackRateChanged)==null?void 0:pt.call(de,Mt)})),this.subscription.add(this.store.state.volume$.subscribe(Mt=>{var pt;return(pt=de==null?void 0:de.onVolumeChange)==null?void 0:pt.call(de,Mt)})),this.subscription.add(this.store.state.muted$.subscribe(Mt=>{var pt,xi,Bo,Ki;if(Mt)(pt=de==null?void 0:de.onMute)==null||pt.call(de);else{let si=(Bo=((xi=this.store)==null?void 0:xi.state.volume$)&&we(this.store.state.volume$))!=null?Bo:0;(Ki=de==null?void 0:de.onUnmute)==null||Ki.call(de,si)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Mt=>{var pt;return(pt=de==null?void 0:de.onVideoBitrateChanged)==null?void 0:pt.call(de,Mt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Mt=>{var pt;let xi=(pt=this.store)==null?void 0:pt.ui.controls.disabledControls$;xi&&(Mt&&!xi.includes(_d)&&xi.add(_d),Mt||xi.remove(_d))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Mt=>sp(this,null,function*(){var pt;if(!$c.clientChecker.browser.isSamsungBrowser||!Mt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((pt=this.videoConfig)==null?void 0:pt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Mt=>{var pt;return(pt=de==null?void 0:de.onVSIDChanged)==null?void 0:pt.call(de,Mt)})),this.initMediaSession(),O(zn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:gt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ht,thumbUrl:Et,subtitles:Wt,live:_e,preload:T,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,supportLink:Z,showAds:H,adsSlotId:F,adsParams:Se,adsPreviewParam:ee,adsAutoplayParam:j,duration:ti,logoClickable:pe,logoHidden:ye,isMobile:Pe!=null?Pe:me,failoverHosts:N,fullScreenTarget:se,saveRate:X,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ie,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Me,showEndScreen:ke,showAutoplayNext:We},!0);let cn={target:this.playerContainer,props:r(zn)};this.svelteRootComponent=as(Ov,cn),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Oo=(yi=(Zt=this.videoConfig)==null?void 0:Zt.callbacks)==null?void 0:yi.onInited)==null||Oo.call(yi)),(wo=this.internalsExposure)==null||wo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((li=(Ut=this.videoConfig)==null?void 0:Ut.callbacks)!=null&&li.onDevNullLog)?Hl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Hl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?$c.clientChecker.isInited$.subscribe(Zt=>{Zt&&(console.log("UI SDK async start"),ri())}):ri()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Ri.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return sp(this,null,function*(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?we(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:x,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=w5(js({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let E=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var V,k,I,R,Z,H;if(!this.store||!this.microStoresRoot)return;let F=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(bd)),T==="action-choice-canceled"){let K=we(this.store.state.isPlaying$)||F;if(((I=(V=this.videoConfig)==null?void 0:V.isTouch)!=null?I:(k=this.videoConfig)!=null&&k.isMobile)&&K){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(R=this.videoConfig)==null?void 0:(Z=R.callbacks).onDisabledInteractiveClick)==null||H.call(Z)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(bd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var V,k,I;E.length&&((I=(k=(V=this.videoConfig)==null?void 0:V.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||I.call(k,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,V,k;(k=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveChapterChanged)==null||k.call(V,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,V,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(V)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,n,s,l,d,a,u,f,v,p,x,w,y,S,T,E,V,k,I,R,Z,H,F,K,ee,j,ue,oe;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let pe=new Error("empty videos");this.fatalError$.next(pe),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,pe.message);return}else this.fatalError$.next(null);if(this.videoConfig=pc(S5,(0,Ri.cloneDeepWith)(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.playerId=(0,Ri.getPlayerId)(e.playerId),this.uiConfig=Bh((s=i.ui)!=null?s:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Ri.InternalsExposure("ui",this.playerId))),Hl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,lp.now)()]}),(0,Ri.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Ri.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(E=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?E:this.videoConfig.isMobile,(V=this.videoConfig).autoplay&&(V.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(I=this.uiConfig.ads.slot)!=null?I:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(R=this.uiConfig.ads.preview)!=null?R:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((Z=this.uiConfig.showLogo)!=null?Z:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(K=this.uiConfig.features.endScreen)!=null?K:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ee=this.uiConfig.features.autoplayNext)!=null?ee:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ue=this.videoConfig.videos)!=null&&ue[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let pe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Ju.getLatestSupportedVersion(pe):this.pictureInPictureApi=new $a(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Zu:void 0,this.slotsApi=this.uiConfig.features.slots?new Qu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ep(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),O_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(oe=this.slotsApi)==null||oe.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new rp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(zn)&&(r(zn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(zn).nextButtonActive=this.isNextButtonActive(),r(zn).prevButtonActive=this.isPrevButtonActive(),r(zn).endScreenVideoTitle=o.nextVideoTitle,r(zn).endScreenVideoThumb=o.nextVideoThumb,r(zn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=js({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(zn)&&(r(zn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(zn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(zn).nextButtonActive=this.isNextButtonActive(),r(zn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return sp(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return sp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=we(this.store.state.positionExact$),l=we(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Ri.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&ca(e)}};var Ul=require("@vkontakte/videoplayer-shared/es2015"),dp=require("@vkontakte/videoplayer-core/es2015"),C5=()=>{window.customElements.define("vk-video-player",ap)};
388
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Bv(t,e){U(e,!0),K(t,r5);let[i,o]=Fe(),n=()=>S(Xt,"$isLive$",i),s=()=>S(Co,"$availableSubtitlesList$",i),l=v(e,"sources",7),d=v(e,"store",7),a=v(e,"microStoresRoot",7),u=v(e,"videoConfig",7),f=v(e,"uiConfig",7),m=v(e,"title",7),p=v(e,"thumbUrl",7),w=v(e,"interactiveContainer",7),x=v(e,"interactiveController",7),y=v(e,"subtitles",7),T=v(e,"live",7),C=v(e,"preload",7),E=v(e,"autoplay",7),V=v(e,"volume",7,void 0),k=v(e,"muted",7,void 0),I=v(e,"fromTime",7),N=v(e,"canRewindLive",7),J=v(e,"showAds",7),H=v(e,"adsSlotId",7,void 0),F=v(e,"adsParams",7,void 0),Q=v(e,"adsPreviewParam",7,void 0),ie=v(e,"adsAutoplayParam",7,void 0),Y=v(e,"duration",7,void 0),ge=v(e,"logoClickable",7),X=v(e,"logoHidden",7),ue=v(e,"isMobile",7),me=v(e,"showNextPrevButtons",7,!1),pe=v(e,"nextButtonActive",7,!1),Pe=v(e,"prevButtonActive",7,!1),Le=v(e,"endScreenVideoTitle",7,void 0),le=v(e,"endScreenVideoThumb",7,void 0),He=v(e,"isOneVideoPlaylist",7,!1),se=v(e,"supportLink",7),R=v(e,"shadowRootContainer",7),$e=v(e,"outerContainerRef",7),Be=v(e,"fullScreenTarget",7,void 0),G=v(e,"failoverHosts",7,void 0),ee=v(e,"showMiniTimer",7,!1),Oe=v(e,"saveRate",7),it=v(e,"seekToInteractive",7,Ua.noop),he=v(e,"playPrevChapter",7,Ua.noop),te=v(e,"volumeMultiplier",7),we=v(e,"showAutoplayNext",7),ke=v(e,"showEndScreen",7,!0),je=v(e,"keyboardControls",15,void 0),{subscribers:ot,stores:bt}=a();Uh(f());let mt=Pt(),Et=f().logoLink,Ze=d().ui.debugPanelVisible,Ut=d().ui.playerSize,Xt=d().state.isLive$,qt=d().state.isInteractive&&Vl.clientChecker.device.isAndroid,re=Z(void 0),zt=null,Se=Z(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Jh(d(),bt),qe(()=>{var D,Ke;d().ui.isMobile.set(ue()),(Ke=(D=u().callbacks)==null?void 0:D.onDomReady)==null||Ke.call(D)});let ve=(D=!1)=>{O(Se,!0),D?d().actions.external.firstStart(J()):d().actions.internal.firstStart(J())},ce=()=>{if(mt.features.qualityDetailsSubMenuEnabled){let D=$1(d().videoId);if(D)switch(D.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,D.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,D.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(D.quality);break}}else{y1(d().videoId),Sf()&&d().actions.internal.setTrafficSavingEnabled(!0);let Ke=$f(d().videoId);Ke&&d().actions.internal.setQuality(Ke)}};function Ve(D){var ci,pi,To;let Ke=l()||D;Ke&&d().initVideo({container:r(re),sources:Ke,failoverHosts:G(),subtitles:y(),volumeMultiplier:te()});let ut=Ua.safeStorage.get(gd)==="true";Ze.set(ut),I()>0&&d().actions.external.seekTime(I());let Kt=ue()?mt.volumeDefault:(pi=(ci=V())!=null?ci:uu())!=null?pi:mt.volumeDefault,pt=(To=k())!=null?To:m1();if(d().actions.external.setVolume(Kt),d().actions.external.setMuted(pt),d().getAdmanWrapper().setInitialVolume(pt?0:Kt),ce(),mt.features.saveRate&&Oe()){let ui=h1();ui&&!n()&&d().actions.internal.setPlaybackRate(ui)}if(we()){let ui=b1();ui&&d().actions.internal.setAutoplayNextEnabled(ui)}d().ui.isAutoplay.set(E()),E()&&ve(),C()&&mt.features.preload&&d().actions.internal.preload()}let Ue=D=>{if(window.ResizeObserver){let Ke,ut;zt=new ResizeObserver((0,Ua.throttleFn)(Kt=>{let pt=Kt[0];if(pt.contentBoxSize){let ci=Array.isArray(pt.contentBoxSize)?pt.contentBoxSize[0]:pt.contentBoxSize;Ke=ci.inlineSize,ut=ci.blockSize}else pt.contentRect&&(Ke=pt.contentRect.width,ut=pt.contentRect.height);Ut.set({width:Ke,height:ut})},300)),zt.observe(D)}Ut.set({width:D.clientWidth,height:D.clientHeight})},Re=()=>{document.hidden&&d().actions.external.stop()};Vt(()=>{var ut,Kt,pt,ci;qt&&document.addEventListener("visibilitychange",Re),mt.debugLog&&d().actions.internal.startLogging(),Ue(r(re));let D=ot.map(pi=>pi.init({store:d(),microStores:bt,config:u(),interactiveController:x(),uiConfig:f()})),Ke=()=>{qt&&document.removeEventListener("visibilitychange",Re),zt==null||zt.disconnect(),D.forEach(pi=>pi.unsubscribe()),d().destroy()};return((ut=T())==null?void 0:ut.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Ke):((Kt=T())==null?void 0:Kt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Ke):(((pt=T())==null?void 0:pt.status)==="finished"||((ci=T())==null?void 0:ci.status)==="postlive")&&!(l()&&(0,Vl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Ke):(Ve(),Ke)});function Qe(){r(Se)?d().actions.external.play():ve(!0)}function De(){d().actions.external.pause()}function Je(D){d().actions.external.setMuted(D)}function At(){d().actions.external.toggleSubtitle()}function Jt(D,Ke){d().actions.external.changeSubtitle(D,Ke)}function nt(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.hideControls()}function _i(){var D;(D=d().webApi.slotsApi)!=null&&D.haveSlots()&&d().actions.external.showControls()}function bi(D){ue()||D>=0&&D<=1&&d().actions.external.setVolume(D)}function dt(D){d().actions.internal.seekTime(D,D0.SeekAction.UNKNOWN)}function jt(D){d().actions.external.seekEpisodeStartTime(D)}function so(){d().actions.external.returnFocusToEpisodes()}function Ci(D){d().actions.external.setPlaybackRate(D)}function di(D){d().actions.external.setAutoQualityLimits(D)}function Ti(){d().actions.external.setQuality("auto")}function Wt(D){d().actions.external.setTrafficSavingEnabled(D)}function ni(D){d().actions.external.setHighQualityEnabled(D)}let Jo=Zu(mt.view),Ho=u().playerView==="preview",Co=d().state.availableSubtitlesList$;if(mt.features.initSubtitles){let D=!1;qe(()=>{if(!D&&s().length){D=!0;let Ke;if(mt.features.userVideoPrefs&&d().videoId){let Kt=vu(mt.userSalt,String(d().videoId));Kt!=null&&Kt.subtitleTrackId&&(Ke=s().find(pt=>pt.value===Kt.subtitleTrackId))}let ut=Tf();ut&&(Ke!=null||(Ke=s().find(Kt=>Kt.language===ut))),d().actions.internal.setSubtitle(Ke)}})}var It=n5();let gt;var xi=_(It);{var ri=D=>{Nv(D,{get store(){return d()},get uiConfig(){return mt},get thumbUrl(){return p()},get interactiveContainer(){return w()},get live(){return T()},get autoplay(){return E()},get canRewindLive(){return N()},get showAds(){return J()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return Q()},get adsAutoplayParam(){return ie()},get duration(){return Y()},get logoClickable(){return ge()},get logoHidden(){return X()},get logoTargetUrl(){return Et},get nextButtonActive(){return pe()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return le()},get isOneVideoPlaylist(){return He()},get supportLink(){return se()},get shadowRootContainer(){return R()},get outerContainerRef(){return $e()},get fullScreenTarget(){return Be()},get showMiniTimer(){return ee()},get playerStarted(){return r(Se)},get seekToInteractive(){return it()},get playPrevChapter(){return he()},firstStart:ve,seekTime:dt,get showEndScreen(){return ke()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return me()},get videoContainer(){return r(re)},set videoContainer(Ke){O(re,Ke,!0)}})},ao=D=>{var Ke=We(),ut=fe(Ke);{var Kt=ci=>{Ov(ci,{get thumbUrl(){return p()},get outsideDuration(){return Y()},get canRewindLive(){return N()},get videoContainer(){return r(re)},set videoContainer(pi){O(re,pi,!0)}})},pt=ci=>{Vv(ci,{get store(){return d()},get uiConfig(){return mt},get title(){return m()},get thumbUrl(){return p()},get interactiveContainer(){return w()},get live(){return T()},get autoplay(){return E()},get canRewindLive(){return N()},get showAds(){return J()},get adsSlotId(){return H()},get adsParams(){return F()},get adsPreviewParam(){return Q()},get adsAutoplayParam(){return ie()},get duration(){return Y()},get logoClickable(){return ge()},get logoHidden(){return X()},get logoTargetUrl(){return Et},get nextButtonActive(){return pe()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return le()},get isOneVideoPlaylist(){return He()},get supportLink(){return se()},get shadowRootContainer(){return R()},get outerContainerRef(){return $e()},get fullScreenTarget(){return Be()},get showMiniTimer(){return ee()},get playerStarted(){return r(Se)},get seekToInteractive(){return it()},get playPrevChapter(){return he()},firstStart:ve,get showEndScreen(){return ke()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return me()},get videoContainer(){return r(re)},set videoContainer(pi){O(re,pi,!0)},get keyboardControls(){return je()},set keyboardControls(pi){je(pi)}})};L(ut,ci=>{Ho?ci(Kt):ci(pt,!1)})}b(D,Ke)};L(xi,D=>{ue()?D(ri):D(ao,!1)})}h(It),B(D=>{gt=ne(It,1,"root svelte-16kg8zb",null,gt,D),lt(It,Jo)},[()=>({"root--miui-browser":Vl.clientChecker.device.isMobile&&Vl.clientChecker.browser.isMiuiBrowser,"visible-outside":Ho})]),b(t,It);var en=z({initVideo:Ve,play:Qe,pause:De,setMuted:Je,toggleSubtitle:At,changeSubtitle:Jt,hideControls:nt,showControls:_i,setVolume:bi,seekTime:dt,seekEpisodeStartTime:jt,returnFocusToEpisodes:so,setPlaybackRate:Ci,setAutoQualityLimits:di,setAutoQuality:Ti,toggleTrafficSaving:Wt,toggleHighQuality:ni,get sources(){return l()},set sources(D){l(D)},get store(){return d()},set store(D){d(D)},get microStoresRoot(){return a()},set microStoresRoot(D){a(D)},get videoConfig(){return u()},set videoConfig(D){u(D)},get uiConfig(){return f()},set uiConfig(D){f(D)},get title(){return m()},set title(D){m(D)},get thumbUrl(){return p()},set thumbUrl(D){p(D)},get interactiveContainer(){return w()},set interactiveContainer(D){w(D)},get interactiveController(){return x()},set interactiveController(D){x(D)},get subtitles(){return y()},set subtitles(D){y(D)},get live(){return T()},set live(D){T(D)},get preload(){return C()},set preload(D){C(D)},get autoplay(){return E()},set autoplay(D){E(D)},get volume(){return V()},set volume(D){V(D)},get muted(){return k()},set muted(D){k(D)},get fromTime(){return I()},set fromTime(D){I(D)},get canRewindLive(){return N()},set canRewindLive(D){N(D)},get showAds(){return J()},set showAds(D){J(D)},get adsSlotId(){return H()},set adsSlotId(D){H(D)},get adsParams(){return F()},set adsParams(D){F(D)},get adsPreviewParam(){return Q()},set adsPreviewParam(D){Q(D)},get adsAutoplayParam(){return ie()},set adsAutoplayParam(D){ie(D)},get duration(){return Y()},set duration(D){Y(D)},get logoClickable(){return ge()},set logoClickable(D){ge(D)},get logoHidden(){return X()},set logoHidden(D){X(D)},get isMobile(){return ue()},set isMobile(D){ue(D)},get showNextPrevButtons(){return me()},set showNextPrevButtons(D){me(D)},get nextButtonActive(){return pe()},set nextButtonActive(D){pe(D)},get prevButtonActive(){return Pe()},set prevButtonActive(D){Pe(D)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(D){Le(D)},get endScreenVideoThumb(){return le()},set endScreenVideoThumb(D){le(D)},get isOneVideoPlaylist(){return He()},set isOneVideoPlaylist(D){He(D)},get supportLink(){return se()},set supportLink(D){se(D)},get shadowRootContainer(){return R()},set shadowRootContainer(D){R(D)},get outerContainerRef(){return $e()},set outerContainerRef(D){$e(D)},get fullScreenTarget(){return Be()},set fullScreenTarget(D){Be(D)},get failoverHosts(){return G()},set failoverHosts(D){G(D)},get showMiniTimer(){return ee()},set showMiniTimer(D){ee(D)},get saveRate(){return Oe()},set saveRate(D){Oe(D)},get showAutoplayNext(){return we()},set showAutoplayNext(D){we(D)},get seekToInteractive(){return it()},set seekToInteractive(D){it(D)},get playPrevChapter(){return he()},set playPrevChapter(D){he(D)},get volumeMultiplier(){return te()},set volumeMultiplier(D){te(D)},get showEndScreen(){return ke()},set showEndScreen(D){ke(D)},get keyboardControls(){return je()},set keyboardControls(D){je(D)}});return o(),en}var s5=Te('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Dv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=s5();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}function Hv(t,e){let i=v(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Dv(t,{get style(){return r(o)}})}var a5=A('<div class="title svelte-1y9fytq"> </div>'),l5=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),d5={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Fv(t,e){K(t,d5);var i=l5(),o=_(i);{var n=d=>{var a=a5(),u=_(a,!0);h(a),B(()=>be(u,e.title)),b(d,a)};L(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Hv(d,{get isWhite(){return r(a)}})};L(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>lt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var c5=A('<div class="playerError svelte-m5iv29"><!></div>'),u5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function Uv(t){K(t,u5);var e=c5(),i=_(e);Na(i,{}),h(e),b(t,e)}var dp=require("@vkontakte/videoplayer-shared/es2015"),Bi=require("@vkontakte/videoplayer-shared/es2015"),yc=require("@vkontakte/videoplayer-core/es2015"),Hl=require("@vkontakte/videoplayer-statistics/es2015");var Ju=require("@vkontakte/videoplayer-shared/es2015"),Xu=class{constructor(){this.subscription=new Ju.Subscription,this.logger=new Ju.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=xe(e.state.currentPlaybackRate$),n=xe(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Nl=require("@vkontakte/videoplayer-shared/es2015");var p5=Te('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function zv(t,e){let i=Ne(e,["$$slots","$$events","$$legacy","children"]);var o=p5();Ae(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:de}),Ce(),h(o),b(t,o)}var f5=A('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),m5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function Wv(t,e){U(e,!0),K(t,m5);let[i,o]=Fe(),n=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=Ie(),d=Pt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,m=l.ui.t,p=g(()=>n()&&m("pip_dummy_title")),w=Zu(d.view);var x=f5();let y;var T=_(x);let C;var E=_(T);zv(E,{}),h(T);var V=P(T,2),k=_(V,!0);h(V),h(x),B((I,N)=>{y=ne(x,1,"player-pip-dummy svelte-1pbsod4",null,y,I),lt(x,w),C=ne(T,1,"dummy-image svelte-1pbsod4",null,C,N),be(k,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,x),z(),o()}var v5=Object.defineProperty,g5=(t,e,i)=>e in t?v5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Rl=(t,e,i)=>g5(t,typeof e!="symbol"?e+"":e,i),Kv=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),h5=460,_5=280,pc=class{constructor({enabled:e=!0}={enabled:!0}){Rl(this,"playerDomElement"),Rl(this,"playerParentShadowRoot"),Rl(this,"playerDummyElement"),Rl(this,"svelteContext"),Rl(this,"pipWindow"),Rl(this,"info",{isActive$:new Nl.ValueSubject(!1),isEnabled$:new Nl.ValueSubject(!1),type:1}),this.info.isEnabled$=new Nl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Nl.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Kv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:h5,height:_5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
389
+ `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=zr(Wv,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(da(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Kv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Kv(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function H0(t){return t instanceof pc}var ep=class{static getLatestSupportedVersion(e){let i=new ba(e),o=new pc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function fc(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var F0="Inner error. Unexpectedly root annotation container null reference exception",U0="Annotation with such name already exists",z0="Annotation with such name does not exist";var Ol=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Bl=require("@vkontakte/videoplayer-shared/es2015"),b5="1",$5=100,tp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Bl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Bl.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},$5);this.subscriptions.add((0,Bl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new Ol(F0);if(this.annotations.has(e))throw new Ol(U0);i.style.zIndex=(o=i.style.zIndex)!=null?o:b5,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Ol(z0);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var za=require("@vkontakte/videoplayer-shared/es2015"),ln=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,za.assertNonNullable)(e),(0,za.assertNonNullable)(i),(0,za.assertNonNullable)(n),n.interactiveData&&(0,za.assertNonNullable)(o),this.subscription=new za.Subscription,this.subscription}};var mc=class extends ln{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ht(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var vc=class extends ln{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ht(W({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,m=xe(f),p=()=>m&&xe(u);return o.add(u.subscribe(w=>{if(!m)return;let x=xe(l);xe(a)?this.state$.set(w):x!==null&&this.state$.set(!x||w)})),o.add(a.subscribe(w=>{this.state$.set(!w||p())})),o.add(l.subscribe(w=>{if(w===null)return;let x=xe(d);if(p()){this.state$.set(!0);return}x&&this.state$.set(!w)})),o}};var gc=class extends ln{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var W0=require("@vkontakte/videoplayer-shared/es2015");var qv=ae(!1),ip=null,hc=class extends ln{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ht(W({},qv),{set:(i,o=!1)=>{i!==xe(qv)&&(this.clearTimeout(),qv.set(i),!i&&ip&&(ip=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(m=>{xe(l)&&m&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,W0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:p,interactiveTimeIndicator:w})=>{var x,y;if(!(!m||!(w!=null&&w.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&ip===null&&(ip=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(x=n.callbacks)==null?void 0:x.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(x))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var op=require("@vkontakte/videoplayer-shared/es2015");var _c=class extends ln{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ht(W({},ae(null)),{toggle:op.noop});this.checkIfShouldHide=i=>Ks(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>St(this,null,function*(){if(this.checkIfShouldHide(xe(l)))return;let a=xe(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:m}=n.ui.controls,p=xe(u),w=xe(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),m.remove(ff),!p&&this.graphMadePause&&n.actions.internal.play()}catch(x){d({message:"Cant hide graph"})}else{this.graphMadePause=w==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),m.add(ff),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(x){d({message:"Cant show graph"})}}}),o.add((0,op.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>St(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var Qv=require("@vkontakte/videoplayer-shared/es2015"),bc=class extends ln{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Qv.ValueSubject(!1),isEnabled$:new Qv.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var rp=require("@vkontakte/videoplayer-shared/es2015");var np=require("@vkontakte/videoplayer-shared/es2015");var K0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?y5({maxCount:t}):void 0,e!==0?x5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},y5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,np.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},x5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(np.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>np.safeStorage.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Ht(W({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var $c=class extends ln{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=K0({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,rp.filterChanged)(),(0,rp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var q0=()=>[mc,vc,gc,hc,_c,bc,$c].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ht(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Dl=require("@vkontakte/videoplayer-shared/es2015");var sp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var w5=A('<div class="root svelte-9ubj1t"><!></div>'),S5={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function Gv(t,e){U(e,!0),K(t,S5);let i=null,o=Z(null);qe(()=>(r(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function n(a){O(o,a?"prev":"next",!0)}var s=We(),l=fe(s);{var d=a=>{var u=w5(),f=_(u);let m=g(()=>r(o)==="prev");uc(f,{get Icon(){return Gd},get isPrev(){return r(m)}}),h(u),b(a,u)};L(l,a=>{e.playbackStatusShow&&r(o)&&a(d)})}return b(t,s),z({startVideoChangedAnimation:n})}var C5=Object.defineProperty,T5=Object.defineProperties,E5=Object.getOwnPropertyDescriptors,Q0=Object.getOwnPropertySymbols,I5=Object.prototype.hasOwnProperty,k5=Object.prototype.propertyIsEnumerable,Yv=(t,e,i)=>e in t?C5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gs=(t,e)=>{for(var i in e||(e={}))I5.call(e,i)&&Yv(t,i,e[i]);if(Q0)for(var i of Q0(e))k5.call(e,i)&&Yv(t,i,e[i]);return t},P5=(t,e)=>T5(t,E5(e)),Qt=(t,e,i)=>Yv(t,typeof e!="symbol"?e+"":e,i),ap=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),A5={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Bi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,yc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Wn=Z(void 0),jv=ii({animationDuration:0,playbackStatusShow:!1}),lp=class extends HTMLElement{constructor(){super(),Qt(this,"svelteStubComponent"),Qt(this,"svelteRootComponent"),Qt(this,"sveltePersistentLayerComponent"),Qt(this,"svelteErrorComponent"),Qt(this,"store"),Qt(this,"microStoresRoot"),Qt(this,"statistics"),Qt(this,"sentry"),Qt(this,"_shadowRoot"),Qt(this,"playerContainer"),Qt(this,"rootContainer"),Qt(this,"shadowRootContainer"),Qt(this,"playerId"),Qt(this,"uiConfig"),Qt(this,"coreConfig"),Qt(this,"statisticsConfig"),Qt(this,"interactiveController"),Qt(this,"interactiveContainer"),Qt(this,"graphMadePause"),Qt(this,"currentPlayingVideoIndex",0),Qt(this,"needToRepeatPlaylist",!1),Qt(this,"videoConfig"),Qt(this,"pictureInPictureApi"),Qt(this,"mediaSessionApi"),Qt(this,"unsubscribePlayerPhaseSubscription"),Qt(this,"logger"),Qt(this,"log"),Qt(this,"subscription"),Qt(this,"interactiveSubscription"),Qt(this,"annotationsApi"),Qt(this,"slotsApi"),Qt(this,"focusManager"),Qt(this,"prevIsid"),Qt(this,"isInited",!1),Qt(this,"internalsExposure",null),Qt(this,"shadowDOMCallbacksDisabled",!1),Qt(this,"fatalError$",new dp.ValueSubject(null)),Qt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:m,refreshStatAuthToken:p,autoplay:w,isMobile:x,isTouch:y,refDomain:T,deviceId:C,interactiveData:E}=fc(this.videoConfig,i),V=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,k=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:N=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new Hl.OneStat(Gs({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:m,autoplay:(l=w&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:x,clip:N,refDomain:T,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview"},V&&(!this.isInited||k)&&{projectId:Number(V)}),Gs({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),Dl.devNull.create("ui"),this.logger=new Bi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Bi.Subscription,this.interactiveSubscription=new Bi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=zr(Uv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ii({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=zr(Fv,l),this.sveltePersistentLayerComponent=zr(Gv,{target:this.playerContainer,props:jv})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;jv.animationDuration=e,jv.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Dl.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=fc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Hl.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,u,f,m,p,w;if(!this.videoConfig)return;let{albumId:x,statPlace:y,statAuthToken:T,preload:C,autoplay:E,volume:V,muted:k,fromTime:I,canRewindLive:N,supportLink:J,showAds:H,adsSlotId:F,adsParams:Q={},adsPreviewParam:ie,adsAutoplayParam:Y,interfaceLanguage:ge,isCyrillicRelatedInterface:X,logoClickable:ue,logoHidden:me,isMobile:pe,isTouch:Pe,isAudioDisabled:Le,isLiveCatchUpMode:le,fullScreenTarget:He,failoverHosts:se,canDownload:R,callbacks:$e,interactiveData:Be,showThumbTimer:G,additionalButtons:ee=[],additionalSettingsMenuItems:Oe=[],additionalContextMenuItems:it=[],repeat:he,loop:te,saveRate:we,volumeMultiplier:ke,showEndScreen:je,showAutoplayNext:ot,mediascopePixels:bt}=fc(this.videoConfig,i),{sources:mt,title:Et,thumbUrl:Ze,unitedVideoId:Ut,isClip:Xt=!1,duration:Gt,adsParams:qt={},videoEpisodes:re,previewThumbsData:zt,subtitles:Se,live:ve}=e;if(!mt&&!ve){let di=new Error("empty sources and live");this.fatalError$.next(di),(n=$e.onCrashed)==null||n.call($e,di.message);return}let ce=Gs(Gs({},Q),qt),Ve=this.getNextVideoInfo(),Ue={sources:mt,title:Et,thumbUrl:Ze,subtitles:Se,unitedVideoId:Ut,isClip:Xt,live:ve,albumId:x,statPlace:y,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:N,showAds:H,adsSlotId:F,adsParams:ce,adsPreviewParam:ie,adsAutoplayParam:Y,duration:Gt,logoClickable:ue,logoHidden:me,isTouch:Pe!=null?Pe:pe,repeat:he,loop:te,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ve.nextVideoTitle,endScreenVideoThumb:Ve.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Re={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Ue)}`});let Qe=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),De=(Qe==null?void 0:Qe.oneStat)||this.createOneStat(e,i),Je=this.createThinOneStat(e,i),At;bt&&(At=new Hl.MediascopePixel({pixels:bt})),(De||Je)&&(this.statistics=new Ou(De,Je,At,Qe==null?void 0:Qe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new _a(this.uiConfig.sentry,{version:va,env:lu},{movieId:Ut,albumId:x,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:Pe!=null?Pe:pe,clip:Xt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry=Gs(Gs({},this.sentry),_a.getInstance());let nt=!!Be,_i=[],bi="tooltip_interactive_go_back_disabled_first";if(nt&&this.interactiveController){let di=this.interactiveController.state.isInitialChapter$.getValue(),Ti=this.interactiveController.getHistoryState();di&&_i.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||_i.push("SEEK_TO_INTERACTIVE_BUTTON"),Ti.hasPrevChapter$.getValue()||(_i.push("PLAY_PREV_CHAPTER_BUTTON"),di||(Ti.isGoBackLimited$.getValue()?bi="tooltip_interactive_go_back_disabled_limit":bi="tooltip_interactive_go_back_disabled"))}let dt=()=>{var di;this.isInited=!1,this.prevIsid=void 0;let Ti=(o==null?void 0:o.info.isEnded$.getValue())&&((di=this.interactiveController)==null?void 0:di.state.isEndChapter$.getValue());$e.onReplayInteractiveVideo&&!Ti?$e.onReplayInteractiveVideo():this.replayInteractiveVideo()},jt=he&&this.videoConfig.videos.length===1;this.store=d0({player:o,interfaceLanguage:ge,isCyrillicRelatedInterface:X,videoId:Ut,isClip:Xt,isLiveCatchUpMode:le,isAudioDisabled:Le,statAuthToken:T,callbacks:$e,webApi:Re,videoEpisodes:re,previewThumbsData:zt,canDownload:R,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:_i,isInteractive:nt,saveRate:we,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:dt,playPrevChapterDisabledTooltip:bi,hasInteractiveBranches:!!((w=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&w.length),additionalButtons:this.uiConfig.features.additionalButtons?ee:[],additionalSettingsMenuItems:Oe!=null?Oe:[],additionalContextMenuItems:it!=null?it:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:di=>{var Ti;return(Ti=this.sveltePersistentLayerComponent)==null?void 0:Ti.startVideoChangedAnimation(di)},looped:this.uiConfig.features.useLoopSetting?te:jt,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:so}=this.microStoresRoot=q0(),Ci=()=>{var di,Ti,Wt,ni,Jo,Ho;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(It=>{var gt;return(gt=$e==null?void 0:$e.onCurrentFormatChanged)==null?void 0:gt.call($e,It)})),this.subscription.add(so.interactiveControlsOpacity$.subscribe(It=>{var gt;It!==null&&((gt=this==null?void 0:this.interactiveController)==null||gt.setDisabledControls(It))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(It=>{var gt;return(gt=$e==null?void 0:$e.onThroughputEstimationChanged)==null?void 0:gt.call($e,It)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(It=>{var gt;return(gt=$e==null?void 0:$e.onTrafficSavingEnabledChanged)==null?void 0:gt.call($e,It)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(It=>{var gt;return(gt=$e==null?void 0:$e.onHighQualityEnabledChanged)==null?void 0:gt.call($e,It)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(It=>{var gt;return(gt=$e==null?void 0:$e.onAutoQualityEnabledChanged)==null?void 0:gt.call($e,!!It)})),this.subscription.add(new Bi.Observable(It=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(gt=>It.next(gt)))}).pipe((0,Bi.skip)(1)).subscribe(It=>{var gt;return(gt=$e==null?void 0:$e.onCurrentPlaybackRateChanged)==null?void 0:gt.call($e,It)})),this.subscription.add(this.store.state.volume$.subscribe(It=>{var gt;return(gt=$e==null?void 0:$e.onVolumeChange)==null?void 0:gt.call($e,It)})),this.subscription.add(this.store.state.muted$.subscribe(It=>{var gt,xi,ri,ao;if(It)(gt=$e==null?void 0:$e.onMute)==null||gt.call($e);else{let en=(ri=((xi=this.store)==null?void 0:xi.state.volume$)&&xe(this.store.state.volume$))!=null?ri:0;(ao=$e==null?void 0:$e.onUnmute)==null||ao.call($e,en)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(It=>{var gt;return(gt=$e==null?void 0:$e.onVideoBitrateChanged)==null?void 0:gt.call($e,It)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(It=>{var gt;let xi=(gt=this.store)==null?void 0:gt.ui.controls.disabledControls$;xi&&(It&&!xi.includes(hd)&&xi.add(hd),It||xi.remove(hd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(It=>ap(this,null,function*(){var gt;if(!yc.clientChecker.browser.isSamsungBrowser||!It||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((gt=this.videoConfig)==null?void 0:gt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(It=>{var gt;return(gt=$e==null?void 0:$e.onVSIDChanged)==null?void 0:gt.call($e,It)})),this.initMediaSession(),O(Wn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:mt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Et,thumbUrl:Ze,subtitles:Se,live:ve,preload:C,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:N,supportLink:J,showAds:H,adsSlotId:F,adsParams:ce,adsPreviewParam:ie,adsAutoplayParam:Y,duration:Gt,logoClickable:ue,logoHidden:me,isMobile:Pe!=null?Pe:pe,failoverHosts:se,fullScreenTarget:He,saveRate:we,shadowRootContainer:this.shadowRootContainer,showMiniTimer:G,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ve.nextVideoTitle,endScreenVideoThumb:Ve.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ke,showEndScreen:je,showAutoplayNext:ot},!0);let Co={target:this.playerContainer,props:r(Wn)};this.svelteRootComponent=zr(Bv,Co),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Wt=(Ti=(di=this.videoConfig)==null?void 0:di.callbacks)==null?void 0:Ti.onInited)==null||Wt.call(Ti)),(ni=this.internalsExposure)==null||ni.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ho=(Jo=this.videoConfig)==null?void 0:Jo.callbacks)!=null&&Ho.onDevNullLog)?Dl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Dl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?yc.clientChecker.isInited$.subscribe(di=>{di&&(console.log("UI SDK async start"),Ci())}):Ci()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Bi.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return ap(this,null,function*(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?xe(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:m,historyApi:p,videoLoader:w}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:m,historyApi:p,vkVideoLoader:w,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:x,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(C=>{if(!this.isInited)return;let E=this.store;C?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(x.subscribe(C=>{this.store&&this.store.state.isInteractiveExpectation$.set(C)}));let T=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(C=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=P5(Gs({},C.config),{title:(f==null?void 0:f.title)||C.config.title});let E=T?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(C.player,E),T&&(T=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:C,actionType:E})=>{var V,k,I,N,J,H;if(!this.store||!this.microStoresRoot)return;let F=x.getValue();if(C==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(_d)),C==="action-choice-canceled"){let Q=xe(this.store.state.isPlaying$)||F;if(((I=(V=this.videoConfig)==null?void 0:V.isTouch)!=null?I:(k=this.videoConfig)!=null&&k.isMobile)&&Q){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(N=this.videoConfig)==null?void 0:(J=N.callbacks).onDisabledInteractiveClick)==null||H.call(J)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:C,removeAllOpenURI:E})=>{this.store&&C==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(_d)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(E=>{var V,k,I;E.length&&((I=(k=(V=this.videoConfig)==null?void 0:V.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||I.call(k,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var E,V,k;(k=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveChapterChanged)==null||k.call(V,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,E,V,k;(C=this.microStoresRoot)==null||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(V)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(C=>{this.log({message:C.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,n,s,l,d,a,u,f,m,p,w,x,y,T,C,E,V,k,I,N,J,H,F,Q,ie,Y,ge,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ue=new Error("empty videos");this.fatalError$.next(ue),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,ue.message);return}else this.fatalError$.next(null);if(this.videoConfig=fc(A5,(0,Bi.cloneDeepWith)(e,ue=>ue instanceof HTMLElement?ue:void 0)),this.playerId=(0,Bi.getPlayerId)(e.playerId),this.uiConfig=Fh((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Bi.InternalsExposure("ui",this.playerId))),Dl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,dp.now)()]}),(0,Bi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Bi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(x=(w=this.uiConfig.features.pip)!=null?w:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0,this.uiConfig.features.dpip=(T=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?T:!0),this.videoConfig.isTouch=(E=(C=this.uiConfig.isMobile)!=null?C:this.videoConfig.isTouch)!=null?E:this.videoConfig.isMobile,(V=this.videoConfig).autoplay&&(V.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(I=this.uiConfig.ads.slot)!=null?I:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(N=this.uiConfig.ads.preview)!=null?N:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((J=this.uiConfig.showLogo)!=null?J:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(F=this.videoConfig.supportLink)!=null?F:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Q=this.uiConfig.features.endScreen)!=null?Q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ie=this.uiConfig.features.autoplayNext)!=null?ie:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Y=this.uiConfig.features.nextPrevButtons)!=null?Y:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ge=this.videoConfig.videos)!=null&&ge[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ue={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ep.getLatestSupportedVersion(ue):this.pictureInPictureApi=new ba(ue)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Xu:void 0,this.slotsApi=this.uiConfig.features.slots?new Gu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new tp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),H0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(X=this.slotsApi)==null||X.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new sp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Wn)&&(r(Wn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Wn).nextButtonActive=this.isNextButtonActive(),r(Wn).prevButtonActive=this.isPrevButtonActive(),r(Wn).endScreenVideoTitle=o.nextVideoTitle,r(Wn).endScreenVideoThumb=o.nextVideoThumb,r(Wn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Gs({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Wn)&&(r(Wn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Wn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Wn).nextButtonActive=this.isNextButtonActive(),r(Wn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return ap(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return ap(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=xe(this.store.state.positionExact$),l=xe(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Bi.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&da(e)}};var Fl=require("@vkontakte/videoplayer-shared/es2015"),cp=require("@vkontakte/videoplayer-core/es2015"),M5=()=>{window.customElements.define("vk-video-player",lp)};