@vkontakte/videoplayer 1.1.85-dev.ffe03d52.0 → 1.1.85

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/es2018.cjs CHANGED
@@ -1,61 +1,61 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.85-dev.ffe03d52.0
3
- * Tue, 24 Feb 2026 12:47:25 GMT
2
+ * @vkontakte/videoplayer v1.1.85
3
+ * Tue, 10 Mar 2026 14:14:03 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-85/doc/
5
5
  */
6
- "use strict";var P$=Object.create;var gd=Object.defineProperty;var A$=Object.getOwnPropertyDescriptor;var k$=Object.getOwnPropertyNames;var L$=Object.getPrototypeOf,M$=Object.prototype.hasOwnProperty;var bg=t=>{throw TypeError(t)};var V$=(t,e,i)=>e in t?gd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var R$=(t,e)=>{for(var i in e)gd(t,i,{get:e[i],enumerable:!0})},$g=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of k$(e))!M$.call(t,r)&&r!==i&&gd(t,r,{get:()=>e[r],enumerable:!(o=A$(e,r))||o.enumerable});return t};var yg=(t,e,i)=>(i=t!=null?P$(L$(t)):{},$g(e||!t||!t.__esModule?gd(i,"default",{value:t,enumerable:!0}):i,t)),D$=t=>$g(gd({},"__esModule",{value:!0}),t);var dr=(t,e,i)=>V$(t,typeof e!="symbol"?e+"":e,i),Wp=(t,e,i)=>e.has(t)||bg("Cannot "+i);var Oi=(t,e,i)=>(Wp(t,e,"read from private field"),i?i.call(t):e.get(t)),Zs=(t,e,i)=>e.has(t)?bg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xl=(t,e,i,o)=>(Wp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),xg=(t,e,i)=>(Wp(t,e,"access private method"),i);var $T={};R$($T,{ControlButtonType:()=>bc,GridTypes:()=>ts,InterfaceLanguage:()=>md.InterfaceLanguage,MenuItemType:()=>Xl,PlayerPhase:()=>is,VERSION:()=>Ha,VKNumericLanguage:()=>md.VKNumericLanguage,VideoFormat:()=>Rp.VideoFormat,VideoQuality:()=>Rp.VideoQuality,isDpipSupported:()=>Xa,isPiPSupported:()=>Us,loadVKLangPack:()=>md.loadVKLangPack,registerPlayerWebComponent:()=>bT});module.exports=D$($T);var Js="[",ea="[!",Ca="]",ps={};var eo=Symbol(),Kn=Symbol("filename"),wg=Symbol("hmr"),Sg="http://www.w3.org/1999/xhtml",ru="http://www.w3.org/2000/svg";var Kp="@attach";var su=!0;var Tg,Ig,Cg=(Ig=(Tg=globalThis.process)==null?void 0:Tg.env)==null?void 0:Ig.NODE_ENV,Me=Cg&&!Cg.toLowerCase().startsWith("prod");var cr=Array.isArray,Eg=Array.prototype.indexOf,hd=Array.from,Qp=Object.keys,po=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,au=Object.getOwnPropertyDescriptors,qp=Object.prototype,Pg=Array.prototype,Ta=Object.getPrototypeOf,Gp=Object.isExtensible;function ta(t){return typeof t=="function"}var yt=()=>{};function Ag(t){return t()}function ia(t){for(var e=0;e<t.length;e++)t[e]()}var Qo=Symbol("$state"),wl=Symbol("legacy props"),kg=Symbol(""),lu=Symbol("proxy path"),du=1,Sl=3,ur=8;function cu(t){return t===this.v}function Cl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Lg(t,e){return t!==e}function Tl(t){return!Cl(t,this.v)}function Mg(){if(Me){let t=new Error(`derived_references_self
6
+ "use strict";var L$=Object.create;var bd=Object.defineProperty;var M$=Object.getOwnPropertyDescriptor;var V$=Object.getOwnPropertyNames;var R$=Object.getPrototypeOf,D$=Object.prototype.hasOwnProperty;var xg=t=>{throw TypeError(t)};var N$=(t,e,i)=>e in t?bd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var O$=(t,e)=>{for(var i in e)bd(t,i,{get:e[i],enumerable:!0})},wg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of V$(e))!D$.call(t,r)&&r!==i&&bd(t,r,{get:()=>e[r],enumerable:!(o=M$(e,r))||o.enumerable});return t};var Sg=(t,e,i)=>(i=t!=null?L$(R$(t)):{},wg(e||!t||!t.__esModule?bd(i,"default",{value:t,enumerable:!0}):i,t)),B$=t=>wg(bd({},"__esModule",{value:!0}),t);var ar=(t,e,i)=>N$(t,typeof e!="symbol"?e+"":e,i),Kp=(t,e,i)=>e.has(t)||xg("Cannot "+i);var Bi=(t,e,i)=>(Kp(t,e,"read from private field"),i?i.call(t):e.get(t)),Xs=(t,e,i)=>e.has(t)?xg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),yl=(t,e,i,o)=>(Kp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Cg=(t,e,i)=>(Kp(t,e,"access private method"),i);var wT={};O$(wT,{ControlButtonType:()=>xc,GridTypes:()=>Xr,InterfaceLanguage:()=>fd.InterfaceLanguage,MenuItemType:()=>jl,PlayerPhase:()=>Zr,VERSION:()=>Ua,VKNumericLanguage:()=>fd.VKNumericLanguage,VideoFormat:()=>Rp.VideoFormat,VideoQuality:()=>Rp.VideoQuality,isDpipSupported:()=>Za,isPiPSupported:()=>Hs,loadVKLangPack:()=>fd.loadVKLangPack,registerPlayerWebComponent:()=>xT});module.exports=B$(wT);var Zs="[",Js="[!",Ta="]",ps={};var ro=Symbol(),Kn=Symbol("filename"),Tg=Symbol("hmr"),Ig="http://www.w3.org/1999/xhtml",ru="http://www.w3.org/2000/svg";var qp="@attach";var su=!0;var Pg,Ag,Eg=(Ag=(Pg=globalThis.process)==null?void 0:Pg.env)==null?void 0:Ag.NODE_ENV,Ve=Eg&&!Eg.toLowerCase().startsWith("prod");var lr=Array.isArray,kg=Array.prototype.indexOf,$d=Array.from,Qp=Object.keys,mo=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,au=Object.getOwnPropertyDescriptors,Gp=Object.prototype,Lg=Array.prototype,Ia=Object.getPrototypeOf,Yp=Object.isExtensible;function ea(t){return typeof t=="function"}var yt=()=>{};function Mg(t){return t()}function ta(t){for(var e=0;e<t.length;e++)t[e]()}var Xo=Symbol("$state"),xl=Symbol("legacy props"),Vg=Symbol(""),lu=Symbol("proxy path"),du=1,wl=3,dr=8;function cu(t){return t===this.v}function Sl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Rg(t,e){return t!==e}function Cl(t){return!Sl(t,this.v)}function Dg(){if(Ve){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(Me){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 Ng(t){if(Ve){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 Rg(){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 Dg(t){if(Me){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 Og(){if(Ve){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 Bg(t){if(Ve){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 Ng(){if(Me){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 Hg(){if(Ve){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 Og(){if(Me){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 Fg(){if(Ve){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 Bg(){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 Fg(t){if(Me){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 Ug(){if(Ve){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 zg(t){if(Ve){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 Hg(t){if(Me){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 Wg(t){if(Ve){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 Ug(t){if(Me){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 Kg(t){if(Ve){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 zg(){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 Wg(){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 fs=!1,ms=!1;function Qg(){fs=!0}var _d=null;function As(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 qg(){if(Ve){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 Qg(){if(Ve){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 Gg(){if(Ve){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 fs=!1,ms=!1;function Yg(){fs=!0}var yd=null;function Es(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),r=[`
24
- `];for(let a=0;a<o.length;a++){let l=o[a];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;po(e,"stack",{value:r.join(`
25
- `)}),po(e,"name",{value:`${t}Error`})}return e}function Gr(t,e){return t.label=e,uu(t.v,e),t}function uu(t,e){var i;return(i=t==null?void 0:t[lu])==null||i.call(t,e),t}function Il(t){if(Me){let e=new Error(`lifecycle_outside_component
24
+ `];for(let a=0;a<o.length;a++){let l=o[a];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;mo(e,"stack",{value:r.join(`
25
+ `)}),mo(e,"name",{value:`${t}Error`})}return e}function Wr(t,e){return t.label=e,uu(t.v,e),t}function uu(t,e){var i;return(i=t==null?void 0:t[lu])==null||i.call(t,e),t}function Tl(t){if(Ve){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 Ft=null;function bd(t){Ft=t}var pr=null;function $d(t){pr=t}function El(t){return Xp("getContext").get(t)}function Pl(t,e){return Xp("setContext").set(t,e),e}function yd(){return Xp("getAllContexts")}function B(t,e=!1,i){var o=Ft={p:Ft,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};fs&&!e&&(Ft.l={s:null,u:null,r1:[],r2:kr(!1)}),Eo(()=>{o.d=!0}),Me&&(Ft.function=i,pr=i)}function F(t){var l,d;let e=Ft;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=xt,o=Dt;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];fo(a.effect),Ki(a.reaction),Po(a.fn)}}finally{fo(i),Ki(o)}}Ft=e.p,Me&&(pr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function vs(){return!fs||Ft!==null&&Ft.l===null}function Xp(t){var e;return Ft===null&&Il(t),(e=Ft.c)!=null?e:Ft.c=new Map(O$(Ft)||void 0)}function O$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var B$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ni(t){if(typeof t!="object"||t===null||Qo in t)return t;let e=Ta(t);if(e!==qp&&e!==Pg)return t;var i=new Map,o=cr(t),r=K(0),a=Me&&ms?As("CreatedAt"):null,l=Dt,d=f=>{var p=Dt;Ki(l);var v=f();return Ki(p),v};o&&i.set("length",K(t.length,a));var s="";function u(f){s=f,Gr(r,`${s} version`);for(let[p,v]of i)Gr(v,Ia(s,p))}return new Proxy(t,{defineProperty(f,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&zg();var _=i.get(p);return _===void 0?_=d(()=>{var y=K(v.value,a);return i.set(p,y),Me&&typeof p=="string"&&Gr(y,Ia(s,p)),y}):D(_,v.value,!0),!0},deleteProperty(f,p){var v=i.get(p);if(v===void 0){if(p in f){let $=d(()=>K(eo,a));i.set(p,$),Zp(r),Me&&Gr($,Ia(s,p))}}else{if(o&&typeof p=="string"){var _=i.get("length"),y=Number(p);Number.isInteger(y)&&y<_.v&&D(_,y)}D(v,eo),Zp(r)}return!0},get(f,p,v){var x;if(p===Qo)return t;if(Me&&p===lu)return u;var _=i.get(p),y=p in f;if(_===void 0&&(!y||(x=Ko(f,p))!=null&&x.writable)&&(_=d(()=>{var I=ni(y?f[p]:eo),T=K(I,a);return Me&&Gr(T,Ia(s,p)),T}),i.set(p,_)),_!==void 0){var $=n(_);return $===eo?void 0:$}return Reflect.get(f,p,v)},getOwnPropertyDescriptor(f,p){var v=Reflect.getOwnPropertyDescriptor(f,p);if(v&&"value"in v){var _=i.get(p);_&&(v.value=n(_))}else if(v===void 0){var y=i.get(p),$=y==null?void 0:y.v;if(y!==void 0&&$!==eo)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return v},has(f,p){var $;if(p===Qo)return!0;var v=i.get(p),_=v!==void 0&&v.v!==eo||Reflect.has(f,p);if(v!==void 0||xt!==null&&(!_||($=Ko(f,p))!=null&&$.writable)){v===void 0&&(v=d(()=>{var x=_?ni(f[p]):eo,I=K(x,a);return Me&&Gr(I,Ia(s,p)),I}),i.set(p,v));var y=n(v);if(y===eo)return!1}return _},set(f,p,v,_){var E;var y=i.get(p),$=p in f;if(o&&p==="length")for(var x=v;x<y.v;x+=1){var I=i.get(x+"");I!==void 0?D(I,eo):x in f&&(I=d(()=>K(eo,a)),i.set(x+"",I),Me&&Gr(I,Ia(s,x)))}if(y===void 0)(!$||(E=Ko(f,p))!=null&&E.writable)&&(y=d(()=>K(void 0,a)),D(y,ni(v)),i.set(p,y),Me&&Gr(y,Ia(s,p)));else{$=y.v!==eo;var T=d(()=>ni(v));D(y,T)}var R=Reflect.getOwnPropertyDescriptor(f,p);if(R!=null&&R.set&&R.set.call(_,v),!$){if(o&&typeof p=="string"){var k=i.get("length"),P=Number(p);Number.isInteger(P)&&P>=k.v&&D(k,P+1)}Zp(r)}return!0},ownKeys(f){n(r);var p=Reflect.ownKeys(f).filter(y=>{var $=i.get(y);return $===void 0||$.v!==eo});for(var[v,_]of i)_.v!==eo&&!(v in f)&&p.push(v);return p},setPrototypeOf(){Wg()}})}function Ia(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:B$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Zp(t,e=1){D(t,t.v+e)}function Al(t){try{if(t!==null&&typeof t=="object"&&Qo in t)return t[Qo]}catch(e){}return t}function Jp(t,e){return Object.is(Al(t),Al(e))}function Yr(t){var e=2050,i=Dt!==null&&(Dt.f&2)!==0?Dt:null;xt===null||i!==null&&(i.f&256)!==0?e|=256:xt.f|=1048576;let o={ctx:Ft,deps:null,effects:null,equals:cu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xt};return Me&&ms&&(o.created=As("CreatedAt")),o}function m(t){let e=Yr(t);return mu(e),e}function mr(t){let e=Yr(t);return e.equals=Tl,e}function pu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Qi(e[i])}}var ef=[];function F$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function nf(t){var e,i=xt;if(fo(F$(t)),Me){let o=Ea;tf(new Set);try{ef.includes(t)&&Mg(),ef.push(t),pu(t),e=fu(t)}finally{fo(i),tf(o),ef.pop()}}else try{pu(t),e=fu(t)}finally{fo(i)}return e}function rf(t){var e=nf(t);if(t.equals(e)||(t.v=e,t.wv=xd()),!ks){var i=(Ls||(t.f&256)!==0)&&t.deps!==null?4096:1024;Ln(t,i)}}var Ea=new Set,kl=new Map;function tf(t){Ea=t}function kr(t,e){var i={f:0,v:t,reactions:null,equals:cu,rv:0,wv:0};return Me&&ms&&(i.created=e!=null?e:As("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=kr(t,e);return mu(i),i}function gs(t,e=!1,i=!0){var r,a;let o=kr(t);return e||(o.equals=Tl),fs&&i&&Ft!==null&&Ft.l!==null&&((a=(r=Ft.l).s)!=null?a:r.s=[]).push(o),o}function D(t,e,i=!1){var r;Dt!==null&&(!gr||(Dt.f&262144)!==0)&&vs()&&(Dt.f&262162)!==0&&!((r=Go)!=null&&r[1].includes(t)&&Go[0]===Dt)&&Kg();let o=i?ni(e):e;return Me&&uu(o,t.label),Ll(t,o)}function Ll(t,e){if(!t.equals(e)){var i=t.v;if(ks?kl.set(t,e):kl.set(t,i),t.v=e,Me&&ms&&(t.updated=As("UpdatedAt"),xt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&nf(t),Ln(t,(t.f&256)===0?1024:4096)),t.wv=xd(),Gg(t,2048),vs()&&xt!==null&&(xt.f&1024)!==0&&(xt.f&96)===0&&(vr===null?Yg([t]):vr.push(t)),Me&&Ea.size>0){let o=Array.from(Ea);for(let r of o)(r.f&1024)!==0&&Ln(r,4096),Aa(r)&&Ml(r);Ea.clear()}}return e}function Gg(t,e){var i=t.reactions;if(i!==null)for(var o=vs(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===xt)){if(Me&&(d&262144)!==0){Ea.add(l);continue}Ln(l,e),(d&1280)!==0&&((d&2)!==0?Gg(l,4096):Sd(l))}}}var Vl="font-weight: bold",Rl="font-weight: normal";function jg(t,e,i){Me?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 Bt=null;function xd(t){Bt=t}var cr=null;function wd(t){cr=t}function Il(t){return Zp("getContext").get(t)}function El(t,e){return Zp("setContext").set(t,e),e}function Sd(){return Zp("getAllContexts")}function H(t,e=!1,i){var o=Bt={p:Bt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};fs&&!e&&(Bt.l={s:null,u:null,r1:[],r2:Er(!1)}),ko(()=>{o.d=!0}),Ve&&(Bt.function=i,cr=i)}function F(t){var l,d;let e=Bt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=xt,o=Vt;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];vo(a.effect),qi(a.reaction),Lo(a.fn)}}finally{vo(i),qi(o)}}Bt=e.p,Ve&&(cr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function vs(){return!fs||Bt!==null&&Bt.l===null}function Zp(t){var e;return Bt===null&&Tl(t),(e=Bt.c)!=null?e:Bt.c=new Map(F$(Bt)||void 0)}function F$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var U$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ni(t){if(typeof t!="object"||t===null||Xo in t)return t;let e=Ia(t);if(e!==Gp&&e!==Lg)return t;var i=new Map,o=lr(t),r=K(0),a=Ve&&ms?Es("CreatedAt"):null,l=Vt,d=m=>{var p=Vt;qi(l);var v=m();return qi(p),v};o&&i.set("length",K(t.length,a));var s="";function u(m){s=m,Wr(r,`${s} version`);for(let[p,v]of i)Wr(v,Ea(s,p))}return new Proxy(t,{defineProperty(m,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&qg();var b=i.get(p);return b===void 0?b=d(()=>{var y=K(v.value,a);return i.set(p,y),Ve&&typeof p=="string"&&Wr(y,Ea(s,p)),y}):N(b,v.value,!0),!0},deleteProperty(m,p){var v=i.get(p);if(v===void 0){if(p in m){let _=d(()=>K(ro,a));i.set(p,_),Jp(r),Ve&&Wr(_,Ea(s,p))}}else{if(o&&typeof p=="string"){var b=i.get("length"),y=Number(p);Number.isInteger(y)&&y<b.v&&N(b,y)}N(v,ro),Jp(r)}return!0},get(m,p,v){var x;if(p===Xo)return t;if(Ve&&p===lu)return u;var b=i.get(p),y=p in m;if(b===void 0&&(!y||(x=jo(m,p))!=null&&x.writable)&&(b=d(()=>{var I=ni(y?m[p]:ro),T=K(I,a);return Ve&&Wr(T,Ea(s,p)),T}),i.set(p,b)),b!==void 0){var _=n(b);return _===ro?void 0:_}return Reflect.get(m,p,v)},getOwnPropertyDescriptor(m,p){var v=Reflect.getOwnPropertyDescriptor(m,p);if(v&&"value"in v){var b=i.get(p);b&&(v.value=n(b))}else if(v===void 0){var y=i.get(p),_=y==null?void 0:y.v;if(y!==void 0&&_!==ro)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return v},has(m,p){var _;if(p===Xo)return!0;var v=i.get(p),b=v!==void 0&&v.v!==ro||Reflect.has(m,p);if(v!==void 0||xt!==null&&(!b||(_=jo(m,p))!=null&&_.writable)){v===void 0&&(v=d(()=>{var x=b?ni(m[p]):ro,I=K(x,a);return Ve&&Wr(I,Ea(s,p)),I}),i.set(p,v));var y=n(v);if(y===ro)return!1}return b},set(m,p,v,b){var V;var y=i.get(p),_=p in m;if(o&&p==="length")for(var x=v;x<y.v;x+=1){var I=i.get(x+"");I!==void 0?N(I,ro):x in m&&(I=d(()=>K(ro,a)),i.set(x+"",I),Ve&&Wr(I,Ea(s,x)))}if(y===void 0)(!_||(V=jo(m,p))!=null&&V.writable)&&(y=d(()=>K(void 0,a)),N(y,ni(v)),i.set(p,y),Ve&&Wr(y,Ea(s,p)));else{_=y.v!==ro;var T=d(()=>ni(v));N(y,T)}var D=Reflect.getOwnPropertyDescriptor(m,p);if(D!=null&&D.set&&D.set.call(b,v),!_){if(o&&typeof p=="string"){var A=i.get("length"),E=Number(p);Number.isInteger(E)&&E>=A.v&&N(A,E+1)}Jp(r)}return!0},ownKeys(m){n(r);var p=Reflect.ownKeys(m).filter(y=>{var _=i.get(y);return _===void 0||_.v!==ro});for(var[v,b]of i)b.v!==ro&&!(v in m)&&p.push(v);return p},setPrototypeOf(){Qg()}})}function Ea(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:U$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Jp(t,e=1){N(t,t.v+e)}function Pl(t){try{if(t!==null&&typeof t=="object"&&Xo in t)return t[Xo]}catch(e){}return t}function ef(t,e){return Object.is(Pl(t),Pl(e))}function Kr(t){var e=2050,i=Vt!==null&&(Vt.f&2)!==0?Vt:null;xt===null||i!==null&&(i.f&256)!==0?e|=256:xt.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:cu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xt};return Ve&&ms&&(o.created=Es("CreatedAt")),o}function f(t){let e=Kr(t);return mu(e),e}function Tn(t){let e=Kr(t);return e.equals=Cl,e}function pu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Qi(e[i])}}var tf=[];function z$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function rf(t){var e,i=xt;if(vo(z$(t)),Ve){let o=Pa;of(new Set);try{tf.includes(t)&&Dg(),tf.push(t),pu(t),e=fu(t)}finally{vo(i),of(o),tf.pop()}}else try{pu(t),e=fu(t)}finally{vo(i)}return e}function sf(t){var e=rf(t);if(t.equals(e)||(t.v=e,t.wv=Cd()),!Ps){var i=(As||(t.f&256)!==0)&&t.deps!==null?4096:1024;In(t,i)}}var Pa=new Set,Al=new Map;function of(t){Pa=t}function Er(t,e){var i={f:0,v:t,reactions:null,equals:cu,rv:0,wv:0};return Ve&&ms&&(i.created=e!=null?e:Es("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=Er(t,e);return mu(i),i}function gs(t,e=!1,i=!0){var r,a;let o=Er(t);return e||(o.equals=Cl),fs&&i&&Bt!==null&&Bt.l!==null&&((a=(r=Bt.l).s)!=null?a:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Vt!==null&&(!fr||(Vt.f&262144)!==0)&&vs()&&(Vt.f&262162)!==0&&!((r=Jo)!=null&&r[1].includes(t)&&Jo[0]===Vt)&&Gg();let o=i?ni(e):e;return Ve&&uu(o,t.label),kl(t,o)}function kl(t,e){if(!t.equals(e)){var i=t.v;if(Ps?Al.set(t,e):Al.set(t,i),t.v=e,Ve&&ms&&(t.updated=Es("UpdatedAt"),xt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&rf(t),In(t,(t.f&256)===0?1024:4096)),t.wv=Cd(),Xg(t,2048),vs()&&xt!==null&&(xt.f&1024)!==0&&(xt.f&96)===0&&(pr===null?Zg([t]):pr.push(t)),Ve&&Pa.size>0){let o=Array.from(Pa);for(let r of o)(r.f&1024)!==0&&In(r,4096),ka(r)&&Ll(r);Pa.clear()}}return e}function Xg(t,e){var i=t.reactions;if(i!==null)for(var o=vs(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===xt)){if(Ve&&(d&262144)!==0){Pa.add(l);continue}In(l,e),(d&1280)!==0&&((d&2)!==0?Xg(l,4096):Id(l))}}}var Ml="font-weight: bold",Vl="font-weight: normal";function Jg(t,e,i){Ve?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`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Xg(t){Me?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,Ml,Vl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function eh(t){Ve?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`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_html_changed")}function oa(t){Me?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,Ml,Vl):console.warn("https://svelte.dev/e/hydration_html_changed")}function ia(t){Ve?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`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Zg(){Me?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,Ml,Vl):console.warn("https://svelte.dev/e/hydration_mismatch")}function th(){Ve?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`,Vl,Rl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Jg(){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",Vl,Rl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function vu(t){Me?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,Ml,Vl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function ih(){Ve?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",Ml,Vl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function vu(t){Ve?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`,Vl,Rl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var ot=!1;function mo(t){ot=t}var wt;function xi(t){if(t===null)throw oa(),ps;return wt=t}function qi(){return xi(Yo(wt))}function S(t){if(ot){if(Yo(wt)!==null)throw oa(),ps;wt=t}}function ei(t=1){if(ot){for(var e=t,i=wt;e--;)i=Yo(i);wt=i}}function ka(){for(var t=0,e=wt;;){if(e.nodeType===ur){var i=e.data;if(i===Ca){if(t===0)return e;t-=1}else(i===Js||i===ea)&&(t+=1)}var o=Yo(e);e.remove(),e=o}}function gu(t){if(!t||t.nodeType!==ur)throw oa(),ps;return t.data}function eh(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(a,l){let d=i.call(this,a,l);if(d===-1){for(let s=l!=null?l:0;s<this.length;s+=1)if(Al(this[s])===a){vu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,l){let d=o.call(this,a,l!=null?l:this.length-1);if(d===-1){for(let s=0;s<=(l!=null?l:this.length-1);s+=1)if(Al(this[s])===a){vu("array.lastIndexOf(...)");break}}return d},t.includes=function(a,l){let d=r.call(this,a,l);if(!d){for(let s=0;s<this.length;s+=1)if(Al(this[s])===a){vu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var La,th,Cd,ih,oh;function hu(){if(La===void 0){La=window,th=document,Cd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;ih=Ko(e,"firstChild").get,oh=Ko(e,"nextSibling").get,Gp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Gp(i)&&(i.__t=void 0),Me&&(t.__svelte_meta=null,eh())}}function Mn(t=""){return document.createTextNode(t)}function Si(t){return ih.call(t)}function Yo(t){return oh.call(t)}function C(t,e){if(!ot)return Si(t);var i=Si(wt);if(i===null)i=wt.appendChild(Mn());else if(e&&i.nodeType!==Sl){var o=Mn();return i==null||i.before(o),xi(o),o}return xi(i),i}function le(t,e){var r,a;if(!ot){var i=Si(t);return i.nodeType===8&&i.data===""?Yo(i):i}if(e&&((r=wt)==null?void 0:r.nodeType)!==Sl){var o=Mn();return(a=wt)==null||a.before(o),xi(o),o}return wt}function A(t,e=1,i=!1){let o=ot?wt:t;for(var r;e--;)r=o,o=Yo(o);if(!ot)return o;if(i&&(o==null?void 0:o.nodeType)!==Sl){var a=Mn();return o===null?r==null||r.after(a):o.before(a),xi(a),a}return xi(o),o}function Td(t){t.textContent=""}function lf(t){xt===null&&Dt===null&&Dg(t),Dt!==null&&(Dt.f&256)!==0&&xt===null&&Rg(),ks&&Vg(t)}function H$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ma(t,e,i,o=!0){var s;var r=xt;if(Me)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:Ft,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Me&&(a.component_function=pr),i)try{Ml(a),a.f|=32768}catch(u){throw Qi(a),u}else e!==null&&Sd(a);var l=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!l&&o&&(r!==null&&H$(a,r),Dt!==null&&(Dt.f&2)!==0)){var d=Dt;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function Eo(t){let e=Ma(8,null,!1);return Ln(e,1024),e.teardown=t,e}function Fe(t){var r;lf("$effect");var e=xt!==null&&(xt.f&32)!==0&&Ft!==null&&!Ft.m;if(Me&&po(t,"name",{value:"$effect"}),e){var i=Ft;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:xt,reaction:Dt})}else{var o=Po(t);return o}}function Pd(t){return lf("$effect.pre"),Me&&po(t,"name",{value:"$effect.pre"}),jo(t)}function $u(t){let e=Ma(64,t,!0);return()=>{Qi(e)}}function rh(t){let e=Ma(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Yn(e,()=>{Qi(e),o(void 0)}):(Qi(e),o(void 0))})}function Po(t){return Ma(4,t,!1)}function jo(t){return Ma(8,t,!0)}function N(t,e=[],i=Yr){if(Me)return jo(()=>{var r=xt,a=()=>t(...l.map(n));po(r.fn,"name",{value:"{expression}"}),po(a,"name",{value:"{expression}"});let l=e.map(i);Gi(a)});let o=e.map(i);return Gi(()=>t(...o.map(n)))}function Gi(t,e=0){return Ma(24|e,t,!0)}function Bi(t,e=!0){return Ma(40,t,!0,e)}function df(t){var e=t.teardown;if(e!==null){let i=ks,o=Dt;sf(!0),Ki(null);try{e.call(null)}finally{sf(i),Ki(o)}}}function cf(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:Qi(i,e),i=o}}function sh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Qi(e),e=i}}function Qi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(uf(t.nodes_start,t.nodes_end),i=!0),cf(t,e&&!i),Ad(t,0),Ln(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();df(t);var r=t.parent;r!==null&&r.first!==null&&pf(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 uf(t,e){for(;t!==null;){var i=t===e?null:Yo(t);t.remove(),t=i}}function pf(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 Yn(t,e){var i=[];yu(t,i,!0),ff(i,()=>{Qi(t),e&&e()})}function ff(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function yu(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 r=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;yu(o,e,a?i:!1),o=r}}}function Vs(t){ah(t,!0)}function ah(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;ah(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var kd=[],mf=[];function lh(){var t=kd;kd=[],ia(t)}function U$(){var t=mf;mf=[],ia(t)}function Vn(t){kd.length===0&&queueMicrotask(lh),kd.push(t)}function dh(){kd.length>0&&lh(),mf.length>0&&U$()}function uh(t){var e=xt;if(Me&&t instanceof Error&&z$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Ld(t,e)}function Ld(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var ch=new WeakSet;function z$(t,e){var l,d;if(ch.has(t))return;ch.add(t);let i=Ko(t,"message");if(!(i&&!i.configurable)){for(var o=Cd?" ":" ",r=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Ml,Vl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var rt=!1;function go(t){rt=t}var wt;function Ci(t){if(t===null)throw ia(),ps;return wt=t}function Gi(){return Ci(en(wt))}function S(t){if(rt){if(en(wt)!==null)throw ia(),ps;wt=t}}function Xt(t=1){if(rt){for(var e=t,i=wt;e--;)i=en(i);wt=i}}function La(){for(var t=0,e=wt;;){if(e.nodeType===dr){var i=e.data;if(i===Ta){if(t===0)return e;t-=1}else(i===Zs||i===Js)&&(t+=1)}var o=en(e);e.remove(),e=o}}function gu(t){if(!t||t.nodeType!==dr)throw ia(),ps;return t.data}function oh(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(a,l){let d=i.call(this,a,l);if(d===-1){for(let s=l!=null?l:0;s<this.length;s+=1)if(Pl(this[s])===a){vu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,l){let d=o.call(this,a,l!=null?l:this.length-1);if(d===-1){for(let s=0;s<=(l!=null?l:this.length-1);s+=1)if(Pl(this[s])===a){vu("array.lastIndexOf(...)");break}}return d},t.includes=function(a,l){let d=r.call(this,a,l);if(!d){for(let s=0;s<this.length;s+=1)if(Pl(this[s])===a){vu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Ma,nh,Ed,rh,sh;function hu(){if(Ma===void 0){Ma=window,nh=document,Ed=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;rh=jo(e,"firstChild").get,sh=jo(e,"nextSibling").get,Yp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Yp(i)&&(i.__t=void 0),Ve&&(t.__svelte_meta=null,oh())}}function En(t=""){return document.createTextNode(t)}function Ii(t){return rh.call(t)}function en(t){return sh.call(t)}function C(t,e){if(!rt)return Ii(t);var i=Ii(wt);if(i===null)i=wt.appendChild(En());else if(e&&i.nodeType!==wl){var o=En();return i==null||i.before(o),Ci(o),o}return Ci(i),i}function se(t,e){var r,a;if(!rt){var i=Ii(t);return i.nodeType===8&&i.data===""?en(i):i}if(e&&((r=wt)==null?void 0:r.nodeType)!==wl){var o=En();return(a=wt)==null||a.before(o),Ci(o),o}return wt}function P(t,e=1,i=!1){let o=rt?wt:t;for(var r;e--;)r=o,o=en(o);if(!rt)return o;if(i&&(o==null?void 0:o.nodeType)!==wl){var a=En();return o===null?r==null||r.after(a):o.before(a),Ci(a),a}return Ci(o),o}function Pd(t){t.textContent=""}function df(t){xt===null&&Vt===null&&Bg(t),Vt!==null&&(Vt.f&256)!==0&&xt===null&&Og(),Ps&&Ng(t)}function W$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Va(t,e,i,o=!0){var s;var r=xt;if(Ve)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:Bt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Ve&&(a.component_function=cr),i)try{Ll(a),a.f|=32768}catch(u){throw Qi(a),u}else e!==null&&Id(a);var l=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!l&&o&&(r!==null&&W$(a,r),Vt!==null&&(Vt.f&2)!==0)){var d=Vt;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function ko(t){let e=Va(8,null,!1);return In(e,1024),e.teardown=t,e}function Fe(t){var r;df("$effect");var e=xt!==null&&(xt.f&32)!==0&&Bt!==null&&!Bt.m;if(Ve&&mo(t,"name",{value:"$effect"}),e){var i=Bt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:xt,reaction:Vt})}else{var o=Lo(t);return o}}function Ld(t){return df("$effect.pre"),Ve&&mo(t,"name",{value:"$effect.pre"}),tn(t)}function $u(t){let e=Va(64,t,!0);return()=>{Qi(e)}}function lh(t){let e=Va(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Yn(e,()=>{Qi(e),o(void 0)}):(Qi(e),o(void 0))})}function Lo(t){return Va(4,t,!1)}function tn(t){return Va(8,t,!0)}function O(t,e=[],i=Kr){if(Ve)return tn(()=>{var r=xt,a=()=>t(...l.map(n));mo(r.fn,"name",{value:"{expression}"}),mo(a,"name",{value:"{expression}"});let l=e.map(i);Yi(a)});let o=e.map(i);return Yi(()=>t(...o.map(n)))}function Yi(t,e=0){return Va(24|e,t,!0)}function Hi(t,e=!0){return Va(40,t,!0,e)}function cf(t){var e=t.teardown;if(e!==null){let i=Ps,o=Vt;af(!0),qi(null);try{e.call(null)}finally{af(i),qi(o)}}}function uf(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:Qi(i,e),i=o}}function dh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Qi(e),e=i}}function Qi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(pf(t.nodes_start,t.nodes_end),i=!0),uf(t,e&&!i),Md(t,0),In(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();cf(t);var r=t.parent;r!==null&&r.first!==null&&ff(t),Ve&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function pf(t,e){for(;t!==null;){var i=t===e?null:en(t);t.remove(),t=i}}function ff(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 Yn(t,e){var i=[];yu(t,i,!0),mf(i,()=>{Qi(t),e&&e()})}function mf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function yu(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 r=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;yu(o,e,a?i:!1),o=r}}}function Ls(t){ch(t,!0)}function ch(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;ch(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Vd=[],vf=[];function uh(){var t=Vd;Vd=[],ta(t)}function K$(){var t=vf;vf=[],ta(t)}function Pn(t){Vd.length===0&&queueMicrotask(uh),Vd.push(t)}function ph(){Vd.length>0&&uh(),vf.length>0&&K$()}function mh(t){var e=xt;if(Ve&&t instanceof Error&&q$(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 fh=new WeakSet;function q$(t,e){var l,d;if(fh.has(t))return;fh.add(t);let i=jo(t,"message");if(!(i&&!i.configurable)){for(var o=Ed?" ":" ",r=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,a=e.ctx;a!==null;)r+=`
39
- ${o}in ${(d=a.function)==null?void 0:d[Kn].split("/").pop()}`,a=a.p;po(t,"message",{value:t.message+`
39
+ ${o}in ${(d=a.function)==null?void 0:d[Kn].split("/").pop()}`,a=a.p;mo(t,"message",{value:t.message+`
40
40
  ${r}
41
- `}),t.stack&&po(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&mo(t,"stack",{value:t.stack.split(`
42
42
  `).filter(s=>!s.includes("svelte/src/internal")).join(`
43
- `)})}}var Va=!1,Dl=null,Ra=!1,ks=!1;function sf(t){ks=t}var Md=[],Vd=[],Dt=null,gr=!1;function Ki(t){Dt=t}var xt=null;function fo(t){xt=t}var Go=null;function mu(t){Dt!==null&&Dt.f&2097152&&(Go===null?Go=[Dt,[t]]:Go[1].push(t))}var Rn=null,hr=0,vr=null;function Yg(t){vr=t}var mh=1,wu=0,Ls=!1,Su=null;function xd(){return++mh}function Aa(t){var p,v;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 r,a,l=(e&512)!==0,d=o&&xt!==null&&!Ls,s=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((v=a.reactions)!=null?v:a.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Aa(a)&&rf(a),a.wv>t.wv)return!0}(!o||xt!==null&&!Ls)&&Ln(t,1024)}return!1}function vh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Go!=null&&Go[1].includes(t)&&Go[0]===Dt||((a.f&2)!==0?vh(a,e,!1):e===a&&(i?Ln(a,2048):(a.f&1024)!==0&&Ln(a,4096),Sd(a)))}}function fu(t){var _,y;var e=Rn,i=hr,o=vr,r=Dt,a=Ls,l=Go,d=Ft,s=gr,u=t.f;Rn=null,hr=0,vr=null,Ls=(u&256)!==0&&(gr||!Ra||Dt===null),Dt=(u&96)===0?t:null,Go=null,bd(t.ctx),gr=!1,wu++,t.f|=2097152;try{var f=(0,t.fn)(),p=t.deps;if(Rn!==null){var v;if(Ad(t,hr),p!==null&&hr>0)for(p.length=hr+Rn.length,v=0;v<Rn.length;v++)p[hr+v]=Rn[v];else t.deps=p=Rn;if(!Ls||(u&2)!==0&&t.reactions!==null)for(v=hr;v<p.length;v++)((y=(_=p[v]).reactions)!=null?y:_.reactions=[]).push(t)}else p!==null&&hr<p.length&&(Ad(t,hr),p.length=hr);if(vs()&&vr!==null&&!gr&&p!==null&&(t.f&6146)===0)for(v=0;v<vr.length;v++)vh(vr[v],t);return r!==null&&r!==t&&(wu++,vr!==null&&(o===null?o=vr:o.push(...vr))),f}catch($){uh($)}finally{Rn=e,hr=i,vr=o,Dt=r,Ls=a,Go=l,bd(d),gr=s,t.f^=2097152}}function W$(t,e){let i=e.reactions;if(i!==null){var o=Eg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Rn===null||!Rn.includes(e))&&(Ln(e,4096),(e.f&768)===0&&(e.f^=512),pu(e),Ad(e,0))}function Ad(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)W$(t,i[o])}function Ml(t){var e=t.f;if((e&16384)===0){Ln(t,1024);var i=xt,o=Ra;if(xt=t,Ra=!0,Me){var r=pr;$d(t.component_function)}try{(e&16)!==0?sh(t):cf(t),df(t);var a=fu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=mh,Me&&ms&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=xd(),l.set_during_effect=!1);Me&&Vd.push(t)}finally{Ra=o,xt=i,Me&&$d(r)}}}function ph(){console.error("Last ten effects were: ",Vd.slice(-10).map(t=>t.fn)),Vd=[]}function K$(){try{Ng()}catch(t){if(Me&&po(t,"stack",{value:""}),Dl!==null)if(Me)try{Ld(t,Dl)}catch(e){throw ph(),e}else Ld(t,Dl);else throw Me&&ph(),t}}function gf(){var t=Ra;try{var e=0;for(Ra=!0;Md.length>0;){e++>1e3&&K$();var i=Md,o=i.length;Md=[];for(var r=0;r<o;r++){var a=q$(i[r]);Q$(a)}kl.clear()}}finally{Va=!1,Ra=t,Dl=null,Me&&(Vd=[])}}function Q$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Aa(o)&&(Ml(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?pf(o):o.fn=null))}}function Sd(t){Va||(Va=!0,queueMicrotask(gf));for(var e=Dl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Md.push(e)}function q$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Aa(i)&&Ml(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 Nl(t){var e;for(t&&(Va=!0,gf(),Va=!0,e=t());;){if(dh(),Md.length===0)return Va=!1,Dl=null,Me&&(Vd=[]),e;Va=!0,gf()}}async function vo(){await Promise.resolve(),Nl()}function n(t){var e=t.f,i=(e&2)!==0;if(Su!==null&&Su.add(t),Dt!==null&&!gr){if(!(Go!=null&&Go[1].includes(t))||Go[0]!==Dt){var o=Dt.deps;t.rv<wu&&(t.rv=wu,Rn===null&&o!==null&&o[hr]===t?hr++:Rn===null?Rn=[t]:(!Ls||!Rn.includes(t))&&Rn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Aa(r)&&rf(r)),Me&&ms&&!gr&&_d!==null&&Dt!==null&&_d.reaction===Dt)if(t.trace)t.trace();else{var l=As("TracedAt");if(l){var d=_d.entries.get(t);d===void 0&&(d={traces:[]},_d.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return ks&&kl.has(t)?kl.get(t):t.v}function Et(t){var e=gr;try{return gr=!0,t()}finally{gr=e}}var G$=-7169;function Ln(t,e){t.f=t.f&G$|e}function Tu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Qo in t)Cu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Qo in i&&Cu(i)}}}function Cu(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{Cu(t[o],e)}catch(r){}let i=Ta(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=au(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function hf(t,e){if(e){let i=document.body;t.autofocus=!0,Vn(()=>{document.activeElement===i&&t.focus()})}}function Rd(t){var e=Dt,i=xt;Ki(null),fo(null);try{return t()}finally{Ki(e),fo(i)}}var _f=new Set,Iu=new Set;function Da(t){if(!ot)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 bf(t,e,i,o={}){function r(a){if(o.capture||Ol.call(e,a),!a.cancelBubble)return Rd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Vn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function ht(t,e,i,o,r){var a={capture:o,passive:r},l=bf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Eo(()=>{e.removeEventListener(t,l,a)})}function et(t){for(var e=0;e<t.length;e++)_f.add(t[e]);for(var i of Iu)i(t)}function Ol(t){var T;var e=this,i=e.ownerDocument,o=t.type,r=((T=t.composedPath)==null?void 0:T.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){po(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Dt,p=xt;Ki(null),fo(null);try{for(var v,_=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var $=a["__"+o];if($!=null&&(!a.disabled||t.target===a))if(cr($)){var[x,...I]=$;x.apply(a,[t,...I])}else $.call(a,t)}catch(R){v?_.push(R):v=R}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let R of _)queueMicrotask(()=>{throw R});throw v}}finally{t.__root=e,delete t.currentTarget,Ki(f),fo(p)}}}var j$;function gh(){j$=void 0}function Bl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ao(t,e){var i=xt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(ot)return Ao(wt,null),wt;r===void 0&&(r=Bl(a?t:"<!>"+t),i||(r=Si(r)));var l=o||Cd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Si(l),s=l.lastChild;Ao(d,s)}else Ao(l,l);return l}}function J$(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(ot)return Ao(wt,null),wt;if(!l){var d=Bl(a),s=Si(d);if(r)for(l=document.createDocumentFragment();Si(s);)l.appendChild(Si(s));else l=Si(s)}var u=l.cloneNode(!0);if(r){var f=Si(u),p=u.lastChild;Ao(f,p)}else Ao(u,u);return u}}function Ae(t,e){return J$(t,e,"svg")}function hs(t=""){if(!ot){var e=Mn(t+"");return Ao(e,e),e}var i=wt;return i.nodeType!==Sl&&(i.before(i=Mn()),xi(i)),Ao(i,i),i}function Ve(){if(ot)return Ao(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Mn();return t.append(e,i),Ao(e,i),t}function b(t,e){if(ot){xt.nodes_end=wt,qi();return}t!==null&&t.before(e)}var e1=/\r/g;function _h(t){t=t.replace(e1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function bh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var t1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function $h(t){return t1.includes(t)}var i1=["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 o1={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 yh(t){var e;return t=t.toLowerCase(),(e=o1[t])!=null?e:t}var lP=[...i1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var n1=["touchstart","touchmove"];function xh(t){return n1.includes(t)}var r1=["$state","$state.raw","$derived","$derived.by"],dP=[...r1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var s1=["textarea","script","style","title"];function wh(t){return s1.includes(t)}function Eu(t){return t==null?void 0:t.replace(/\//g,"/​")}var Dd=!0;function Pu(t){Dd=t}function ve(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 Sh(t,e)}function yf(t,e){var l;hu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=ot,r=wt;try{for(var a=Si(i);a&&(a.nodeType!==ur||a.data!==Js);)a=Yo(a);if(!a)throw ps;mo(!0),xi(a),qi();let d=Sh(t,{...e,anchor:a});if(wt===null||wt.nodeType!==ur||wt.data!==Ca)throw oa(),ps;return mo(!1),d}catch(d){if(d===ps)return e.recover===!1&&Og(),hu(),Td(i),mo(!1),Zr(t,e);throw d}finally{mo(o),xi(r),gh()}}var Fl=new Map;function Sh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){hu();var d=new Set,s=p=>{for(var v=0;v<p.length;v++){var _=p[v];if(!d.has(_)){d.add(_);var y=xh(_);e.addEventListener(_,Ol,{passive:y});var $=Fl.get(_);$===void 0?(document.addEventListener(_,Ol,{passive:y}),Fl.set(_,1)):Fl.set(_,$+1)}}};s(hd(_f)),Iu.add(s);var u=void 0,f=rh(()=>{var p=i!=null?i:e.appendChild(Mn());return Bi(()=>{if(a){B({});var v=Ft;v.c=a}r&&(o.$$events=r),ot&&Ao(p,null),Dd=l,u=t(p,o)||{},Dd=!0,ot&&(xt.nodes_end=wt),a&&F()}),()=>{var y;for(var v of d){e.removeEventListener(v,Ol);var _=Fl.get(v);--_===0?(document.removeEventListener(v,Ol),Fl.delete(v)):Fl.set(v,_)}Iu.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return $f.set(u,f),u}var $f=new WeakMap;function Na(t,e){let i=$f.get(t);return i?($f.delete(t),i(e)):(Me&&Zg(),Promise.resolve())}function ti(t,e,...i){var o=t,r=yt,a;Gi(()=>{r!==(r=e())&&(a&&(Qi(a),a=null),Me&&r==null&&Bg(),a=Bi(()=>r(o,...i)))},65536),ot&&(o=wt)}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;Ug(e)},set:o=>{i=o}})}};c1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var c1;function Lt(t){Ft===null&&Il("onMount"),fs&&Ft.l!==null?d1(Ft).m.push(t):Fe(()=>{let e=Et(t);if(typeof e=="function")return e})}function pn(t){Ft===null&&Il("onDestroy"),Lt(()=>()=>Et(t))}function d1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Ch=new Map;function Th(t,e){var i=Ch.get(t);i||(i=new Set,Ch.set(t,i)),i.add(e)}function M(t,e,[i,o]=[0,0]){ot&&i===0&&qi();var r=t,a=null,l=null,d=eo,s=i>0?65536:0,u=!1;let f=(v,_=!0)=>{u=!0,p(_,v)},p=(v,_)=>{if(d===(d=v))return;let y=!1;if(ot&&o!==-1){if(i===0){let x=gu(r);x===Js?o=0:x===ea?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(r=ka(),xi(r),mo(!1),y=!0,o=-1)}d?(a?Vs(a):_&&(a=Bi(()=>_(r))),l&&Yn(l,()=>{l=null})):(l?Vs(l):_&&(l=Bi(()=>_(r,[i+1,o]))),a&&Yn(a,()=>{a=null})),y&&mo(!0)};Gi(()=>{u=!1,e(f),u||p(null,null)},s),ot&&(r=wt)}function Rs(t,e,i){ot&&qi();var o=t,r=eo,a,l=vs()?Lg:Cl;Gi(()=>{l(r,r=e())&&(a&&Yn(a),a=Bi(()=>i(o)))}),ot&&(o=wt)}var ra=null;function Sf(t){ra=t}function Nd(t,e){return e}function f1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)yu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Td(s),s.append(i),o.clear(),na(t,e[0].prev,e[a-1].next)}ff(r,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),na(t,f.prev,f.next)),Qi(f.e,!d)}})}function yi(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=ot?xi(Si(u)):u.appendChild(Mn())}ot&&qi();var f=null,p=!1,v=mr(()=>{var _=i();return cr(_)?_:_==null?[]:hd(_)});Gi(()=>{var _=n(v),y=_.length;if(p&&y===0)return;p=y===0;let $=!1;if(ot){var x=gu(l)===ea;x!==(y===0)&&(l=ka(),xi(l),mo(!1),$=!0)}if(ot){for(var I=null,T,R=0;R<y;R++){if(wt.nodeType===ur&&wt.data===Ca){l=wt,$=!0,mo(!1);break}var k=_[R],P=o(k,R);T=Ph(wt,d,I,null,k,P,R,r,e,i),d.items.set(P,T),I=T}y>0&&xi(ka())}ot||m1(_,d,l,r,e,o,i),a!==null&&(y===0?f?Vs(f):f=Bi(()=>a(l)):f!==null&&Yn(f,()=>{f=null})),$&&mo(!0),n(v)}),ot&&(l=wt)}function m1(t,e,i,o,r,a,l){var Y,Ie,ue,ie;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,f=e.items,p=e.first,v=p,_,y=null,$,x=[],I=[],T,R,k,P;if(d)for(P=0;P<u;P+=1)T=t[P],R=a(T,P),k=f.get(R),k!==void 0&&((Y=k.a)==null||Y.measure(),($!=null?$:$=new Set).add(k));for(P=0;P<u;P+=1){if(T=t[P],R=a(T,P),k=f.get(R),k===void 0){var E=v?v.e.nodes_start:i;y=Ph(E,e,y,y===null?e.first:y.next,T,R,P,o,r,l),f.set(R,y),x=[],I=[],v=y.next;continue}if(s&&v1(k,T,P,r),(k.e.f&8192)!==0&&(Vs(k.e),d&&((Ie=k.a)==null||Ie.unfix(),($!=null?$:$=new Set).delete(k))),k!==v){if(_!==void 0&&_.has(k)){if(x.length<I.length){var W=I[0],H;y=W.prev;var U=x[0],G=x[x.length-1];for(H=0;H<x.length;H+=1)Ih(x[H],W,i);for(H=0;H<I.length;H+=1)_.delete(I[H]);na(e,U.prev,G.next),na(e,y,U),na(e,G,W),v=W,y=G,P-=1,x=[],I=[]}else _.delete(k),Ih(k,v,i),na(e,k.prev,k.next),na(e,k,y===null?e.first:y.next),na(e,y,k),y=k;continue}for(x=[],I=[];v!==null&&v.k!==R;)(v.e.f&8192)===0&&(_!=null?_:_=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;k=v}x.push(k),y=k,v=k.next}if(v!==null||_!==void 0){for(var se=_===void 0?[]:hd(_);v!==null;)(v.e.f&8192)===0&&se.push(v),v=v.next;var te=se.length;if(te>0){var J=(r&4)!==0&&u===0?i:null;if(d){for(P=0;P<te;P+=1)(ue=se[P].a)==null||ue.measure();for(P=0;P<te;P+=1)(ie=se[P].a)==null||ie.fix()}f1(e,se,J,f)}}d&&Vn(()=>{var ge;if($!==void 0)for(k of $)(ge=k.a)==null||ge.apply()}),xt.first=e.first&&e.first.e,xt.last=y&&y.e}function v1(t,e,i,o){(o&1)!==0&&Ll(t.v,e),(o&2)!==0?Ll(t.i,i):t.i=i}function Ph(t,e,i,o,r,a,l,d,s,u){var f=ra,p=(s&1)!==0,v=(s&16)===0,_=p?v?gs(r,!1,!1):kr(r):r,y=(s&2)===0?l:kr(l);Me&&p&&(_.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var $={i:y,v:_,k:a,a:null,e:null,prev:i,next:o};ra=$;try{return $.e=Bi(()=>d(t,_,y,u),ot),$.e.prev=i&&i.e,$.e.next=o&&o.e,i===null?e.first=$:(i.next=$,i.e.next=$.e),o!==null&&(o.prev=$,o.e.prev=$.e),$}finally{ra=f}}function Ih(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=Yo(a);r.before(a),a=l}}function na(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 g1(t,e,i){var a,l;if(!e||e===_h(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=pr)!=null&&l[Kn]&&(o=`in ${pr[Kn]}`),Xg(Eu(o))}function Od(t,e,i=!1,o=!1,r=!1){var a=t,l="";N(()=>{var _;var d=xt;if(l===(l=(_=e())!=null?_:"")){ot&&qi();return}if(d.nodes_start!==null&&(uf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(ot){for(var s=wt.data,u=qi(),f=u;u!==null&&(u.nodeType!==ur||u.data!=="");)f=u,u=Yo(u);if(u===null)throw oa(),ps;Me&&!r&&g1(u.parentNode,s,l),Ao(wt,f),a=xi(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Bl(p);if((i||o)&&(v=Si(v)),Ao(Si(v),v.lastChild),i||o)for(;Si(v);)a.before(Si(v));else a.before(v)}})}function Fi(t,e,i){ot&&qi();var o=t,r,a;Gi(()=>{r!==(r=e())&&(a&&(Yn(a),a=null),r&&(a=Bi(()=>i(o,r))))},65536),ot&&(o=wt)}function Oa(t,e,i,o,r,a){var y;let l=ot;ot&&qi();var d=Me&&a&&((y=Ft)==null?void 0:y.function[Kn]),s,u,f=null;ot&&wt.nodeType===du&&(f=wt,qi());var p=ot?wt:t,v,_=ra;Gi(()=>{let $=e()||null;var x=r?r():i||$==="svg"?ru:null;if($!==s){var I=ra;Sf(_),v&&($===null?Yn(v,()=>{v=null,u=null}):$===u?Vs(v):(Qi(v),Pu(!1))),$&&$!==u&&(v=Bi(()=>{if(f=ot?f:x?document.createElementNS(x,$):document.createElement($),Me&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Ao(f,f),o){ot&&wh($)&&f.append(document.createComment(""));var T=ot?Si(f):f.appendChild(Mn());ot&&(T===null?mo(!1):xi(T)),o(f,T)}xt.nodes_end=f,p.before(f)})),s=$,s&&(u=s),Pu(!0),Sf(I)}},65536),l&&(mo(!0),xi(p))}var Tf;function Ah(t){return Tf=t.target,new Cf(t)}var Ds,Lr,Cf=class{constructor(e){Zs(this,Ds);Zs(this,Lr);var a,l;var i=new Map,o=(d,s)=>{var u=gs(s,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,s){var u;return n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===wl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var f;return D((f=i.get(s))!=null?f:o(s,u),u),Reflect.set(d,s,u)}});xl(this,Lr,(e.hydrate?yf:Zr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Nl(),xl(this,Ds,r.$$events);for(let d of Object.keys(Oi(this,Lr)))d==="$set"||d==="$destroy"||d==="$on"||po(this,d,{get(){return Oi(this,Lr)[d]},set(s){Oi(this,Lr)[d]=s},enumerable:!0});Oi(this,Lr).$set=d=>{Object.assign(r,d)},Oi(this,Lr).$destroy=()=>{Na(Oi(this,Lr))}}$set(e){Oi(this,Lr).$set(e)}$on(e,i){Oi(this,Ds)[e]=Oi(this,Ds)[e]||[];let o=(...r)=>i.call(this,...r);return Oi(this,Ds)[e].push(o),()=>{Oi(this,Ds)[e]=Oi(this,Ds)[e].filter(r=>r!==o)}}$destroy(){Oi(this,Lr).$destroy()}};Ds=new WeakMap,Lr=new WeakMap;function Q(t,e){Vn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Tf)==null?void 0:a.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&&Th(e.hash,d)}})}function Ns(t,e){var i=void 0,o;Gi(()=>{i!==(i=e())&&(o&&(Qi(o),o=null),i&&(o=Bi(()=>{Po(()=>i(t))})))})}function kh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=kh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Lh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=kh(t))&&(o&&(o+=" "),o+=e);return o}function Bd(t){return typeof t=="object"?Lh(t):t!=null?t:""}var Mh=[...`
44
- \r\f \v\uFEFF`];function Rh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(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 r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function If(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Dh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(If)),r&&s.push(...Object.keys(r).map(If));var u=0,f=-1;let $=t.length;for(var p=0;p<$;p++){var v=t[p];if(d?v==="/"&&t[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&t[p+1]==="*"?d=!0:v==='"'||v==="'"?a=v:v==="("?l++:v===")"&&l--,!d&&a===!1&&l===0){if(v===":"&&f===-1)f=p;else if(v===";"||p===$-1){if(f!==-1){var _=If(t.substring(u,f).trim());if(!s.includes(_)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,f=-1}}}}return o&&(i+=Vh(o)),r&&(i+=Vh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,r,a){var l=t.__className;if(ot||l!==i||l===void 0){var d=Rh(i,o,a);(!ot||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Ef(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function Qe(t,e,i,o){var r=t.__style;if(ot||r!==e){var a=Dh(e,o);(!ot||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Ef(t,i==null?void 0:i[0],o[0]),Ef(t,i==null?void 0:i[1],o[1],"important")):Ef(t,i,o));return o}function Fd(t,e,i){if(t.multiple){if(e==null)return;if(!cr(e))return Jg();for(var o of t.options)o.selected=e.includes(Nh(o));return}for(o of t.options){var r=Nh(o);if(Jp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Pf(t){var e=new MutationObserver(()=>{Fd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Eo(()=>{e.disconnect()})}function Nh(t){return"__value"in t?t.__value:t.value}var Hl=Symbol("class"),Ul=Symbol("style"),Fh=Symbol("is custom element"),Hh=Symbol("is html");function Uh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var r=Wh(t);if(ot&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||S1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[kg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Kh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function zh(t,e,i,o,r=!1){var k;var a=Wh(t),l=a[Fh],d=!a[Hh];let s=ot&&l;s&&mo(!1);var u=e||{},f=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Bd(i.class):(o||i[Hl])&&(i.class=null),i[Ul]&&((k=i.style)!=null||(i.style=null));var v=Kh(t);for(let P in i){let E=i[P];if(f&&P==="value"&&E==null){t.value=t.__value="",u[P]=E;continue}if(P==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,_,E,o,e==null?void 0:e[Hl],i[Hl]),u[P]=E,u[Hl]=i[Hl];continue}if(P==="style"){Qe(t,E,e==null?void 0:e[Ul],i[Ul]),u[P]=E,u[Ul]=i[Ul];continue}var y=u[P];if(!(E===y&&!(E===void 0&&t.hasAttribute(P)))){u[P]=E;var $=P[0]+P[1];if($!=="$$")if($==="on"){let W={},H="$$"+P,U=P.slice(2);var x=$h(U);if(bh(U)&&(U=U.slice(0,-7),W.capture=!0),!x&&y){if(E!=null)continue;t.removeEventListener(U,u[H],W),u[H]=null}if(E!=null)if(x)t[`__${U}`]=E,et([U]);else{let G=function(se){u[P].call(this,se)};var R=G;u[H]=bf(U,t,G,W)}else x&&(t[`__${U}`]=void 0)}else if(P==="style")De(t,P,E);else if(P==="autofocus")hf(t,!!E);else if(!l&&(P==="__value"||P==="value"&&E!=null))t.value=t.__value=E;else if(P==="selected"&&f)Uh(t,E);else{var I=P;d||(I=yh(I));var T=I==="defaultValue"||I==="defaultChecked";if(E==null&&!l&&!T)if(a[P]=null,I==="value"||I==="checked"){let W=t,H=e===void 0;if(I==="value"){let U=W.defaultValue;W.removeAttribute(I),W.defaultValue=U,W.value=W.__value=H?U:null}else{let U=W.defaultChecked;W.removeAttribute(I),W.defaultChecked=U,W.checked=H?U:!1}}else t.removeAttribute(P);else T||v.includes(I)&&(l||typeof E!="string")?t[I]=E:typeof E!="function"&&De(t,I,E,r)}}}return s&&mo(!0),u}function to(t,e,i=[],o,r=!1,a=Yr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",f=!1;if(Gi(()=>{var v=e(...l.map(n)),_=zh(t,d,v,o,r);f&&u&&"value"in v&&Fd(t,v.value,!1);for(let $ of Object.getOwnPropertySymbols(s))v[$]||Qi(s[$]);for(let $ of Object.getOwnPropertySymbols(v)){var y=v[$];$.description===Kp&&(!d||y!==d[$])&&(s[$]&&Qi(s[$]),s[$]=Bi(()=>Ns(t,()=>y))),_[$]=y}d=_}),u){var p=t;Po(()=>{Fd(p,d.value),Pf(p)})}f=!0}function Wh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Fh]:t.nodeName.includes("-"),[Hh]:t.namespaceURI===Sg}}var Oh=new Map;function Kh(t){var e=Oh.get(t.nodeName);if(e)return e;Oh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=au(o);for(var a in i)i[a].set&&e.push(a);o=Ta(o)}return e}function S1(t,e,i){var o;Me&&(e==="srcset"&&C1(t,i)||Af((o=t.getAttribute(e))!=null?o:"",i)||jg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Af(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Bh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function C1(t,e){var i=Bh(t.srcset),o=Bh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Af(i[l][0],r)||Af(r,i[l][0])))}var T1=su?()=>performance.now():()=>Date.now(),Jr={tick:t=>(su?requestAnimationFrame:yt)(t),now:()=>T1(),tasks:new Set};function Qh(){let t=Jr.now();Jr.tasks.forEach(e=>{e.c(t)||(Jr.tasks.delete(e),e.f())}),Jr.tasks.size!==0&&Jr.tick(Qh)}function qh(t){let e;return Jr.tasks.size===0&&Jr.tick(Qh),{promise:new Promise(i=>{Jr.tasks.add(e={c:t,f:i})}),abort(){Jr.tasks.delete(e)}}}function Au(t,e){Rd(()=>{t.dispatchEvent(new CustomEvent(e))})}function A1(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 Gh(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=A1(r.trim());e[l]=a.trim()}return e}var k1=t=>t;function Os(t,e,i,o){var R;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,f=e.inert,p=e.style.overflow,v,_;function y(){var E;var k=Dt,P=xt;Ki(null),fo(null);try{return u!=null?u:u=i()(e,(E=o==null?void 0:o())!=null?E:{},{direction:s})}finally{Ki(k),fo(P)}}var $={is_global:d,in(){var k;if(e.inert=f,!r){_==null||_.abort(),(k=_==null?void 0:_.reset)==null||k.call(_);return}a||v==null||v.abort(),Au(e,"introstart"),v=kf(e,y(),_,1,()=>{Au(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(k){if(!a){k==null||k(),u=void 0;return}e.inert=!0,Au(e,"outrostart"),_=kf(e,y(),v,0,()=>{Au(e,"outroend"),k==null||k()})},stop:()=>{v==null||v.abort(),_==null||_.abort()}},x=xt;if(((R=x.transitions)!=null?R:x.transitions=[]).push($),r&&Dd){var I=d;if(!I){for(var T=x.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Po(()=>{Et(()=>$.in())})}}function kf(t,e,i,o,r){var a=o===1;if(ta(e)){var l,d=!1;return Vn(()=>{if(!d){var x=e({direction:a?"in":"out"});l=kf(t,x,i,o,r)}}),{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 r(),{abort:yt,deactivate:yt,reset:yt,t:()=>o};let{delay:s=0,css:u,tick:f,easing:p=k1}=e;var v=[];if(a&&i===void 0&&(f&&f(0,1),u)){var _=Gh(u(0,1));v.push(_,_)}var y=()=>1-o,$=t.animate(v,{duration:s,fill:"forwards"});return $.onfinish=()=>{var U;$.cancel();var x=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-x,T=e.duration*Math.abs(I),R=[];if(T>0){var k=!1;if(u)for(var P=Math.ceil(T/16.666666666666668),E=0;E<=P;E+=1){var W=x+I*p(E/P),H=Gh(u(W,1-W));R.push(H),k||(k=H.overflow==="hidden")}k&&(t.style.overflow="hidden"),y=()=>{var G=$.currentTime;return x+I*p(G/T)},f&&qh(()=>{if($.playState!=="running")return!1;var G=y();return f(G,1-G),!0})}$=t.animate(R,{duration:T,fill:"forwards"}),$.onfinish=()=>{y=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=yt)},deactivate:()=>{r=yt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}function Lf(t,e,i){var o=Ko(t,e);o&&o.set&&(t[e]=i,Eo(()=>{t[e]=null}))}var sa,zl,Hd,Lu,Yh,Mu=class Mu{constructor(e){Zs(this,Lu);Zs(this,sa,new WeakMap);Zs(this,zl);Zs(this,Hd);xl(this,Hd,e)}observe(e,i){var o=Oi(this,sa).get(e)||new Set;return o.add(i),Oi(this,sa).set(e,o),xg(this,Lu,Yh).call(this).observe(e,Oi(this,Hd)),()=>{var r=Oi(this,sa).get(e);r.delete(i),r.size===0&&(Oi(this,sa).delete(e),Oi(this,zl).unobserve(e))}}};sa=new WeakMap,zl=new WeakMap,Hd=new WeakMap,Lu=new WeakSet,Yh=function(){var e;return(e=Oi(this,zl))!=null?e:xl(this,zl,new ResizeObserver(i=>{for(var o of i){Mu.entries.set(o.target,o);for(var r of Oi(this,sa).get(o.target)||[])r(o)}}))},dr(Mu,"entries",new WeakMap);var Mf=Mu;var L1=new Mf({box:"border-box"});function Dn(t,e,i){var o=L1.observe(t,()=>i(t[e]));Po(()=>(Et(()=>i(t[e])),o))}function jh(t,e){return t===e||(t==null?void 0:t[Qo])===e}function it(t={},e,i,o){return Po(()=>{var r,a;return jo(()=>{r=a,a=(o==null?void 0:o())||[],Et(()=>{t!==i(...a)&&(e(t,...a),r&&jh(i(...r),t)&&e(null,...r))})}),()=>{Vn(()=>{a&&jh(i(...a),t)&&e(null,...a)})}}),t}function Xo(t=!1){let e=Ft,i=e.l.u;if(!i)return;let o=()=>Tu(e.s);if(t){let r=0,a={},l=Yr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Pd(()=>{Xh(e,o),ia(i.b)}),Fe(()=>{let r=Et(()=>i.m.map(Ag));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{Xh(e,o),ia(i.a)})}function Xh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Ud(t,e,i){if(t==null)return e(void 0),i&&i(void 0),yt;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Wl=[];function Mr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=yt){let i=null,o=new Set;function r(d){if(Cl(t,d)&&(t=d,i)){let s=!Wl.length;for(let u of o)u[1](),Wl.push(u,t);if(s){for(let u=0;u<Wl.length;u+=2)Wl[u][0](Wl[u+1]);Wl.length=0}}}function a(d){r(d(t))}function l(d,s=yt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||yt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function ui(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Mr(i,(l,d)=>{let s=!1,u=[],f=0,p=yt,v=()=>{if(f)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:yt},_=r.map((y,$)=>Ud(y,x=>{u[$]=x,f&=~(1<<$),s&&v()},()=>{f|=1<<$}));return s=!0,v(),function(){ia(_),p(),s=!1}})}function _e(t){let e;return Ud(t,i=>e=i)(),e}var Vu=!1,Vf=Symbol();function w(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:gs(void 0),unsubscribe:yt};if(o.store!==t&&!(Vf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=yt;else{var r=!0;o.unsubscribe=Ud(t,l=>{r?o.source.v=l:D(o.source,l)}),r=!1}return t&&Vf in i?_e(t):n(o.source)}function Oe(){let t={};function e(){Eo(()=>{for(var i in t)t[i].unsubscribe();po(t,Vf,{enumerable:!1,value:!0})})}return[t,e]}function Rf(t){var e=Vu;try{return Vu=!1,[t(),Vu]}finally{Vu=e}}var B1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&Hg(`${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 Nn(t,e,i){return new Proxy(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},B1)}var F1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ta(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 r=t.props[o];ta(r)&&(r=r());let a=Ko(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ta(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Ko(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Qo||e===wl)return!1;for(let i of t.props)if(ta(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(ta(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 es(...t){return new Proxy({props:t},F1)}function Zh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var W,H;var r=(i&1)!==0,a=!fs||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Rf(()=>t[e]):u=t[e];var f=Qo in t||wl in t,p=l&&((H=(W=Ko(t,e))==null?void 0:W.set)!=null?H:f&&e in t&&(U=>t[e]=U))||void 0,v=o,_=!0,y=!1,$=()=>(y=!0,_&&(_=!1,d?v=Et(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&Fg(e),u=$(),p&&p(u));var x;if(a)x=()=>{var U=t[e];return U===void 0?$():(_=!0,y=!1,U)};else{var I=(r?Yr:mr)(()=>t[e]);I.f|=131072,x=()=>{var U=n(I);return U!==void 0&&(v=void 0),U===void 0?v:U}}if((i&4)===0&&a)return x;if(p){var T=t.$$legacy;return function(U,G){return arguments.length>0?((!a||!G||T||s)&&p(G?x():U),U):x()}}var R=!1,k=!1,P=gs(u),E=Yr(()=>{var U=x(),G=n(P);return R?(R=!1,k=!0,G):(k=!1,P.v=U)});return l&&n(E),r||(E.equals=Tl),function(U,G){if(Su!==null&&(R=k,x(),n(P)),arguments.length>0){let se=G?n(E):a&&l?ni(U):U;if(!E.equals(se)){if(R=!0,D(P,se),y&&v!==void 0&&(v=se),Zh(E))return U;Et(()=>n(E))}return U}return Zh(E)?E.v:n(E)}}var H1;typeof HTMLElement=="function"&&(H1=class extends HTMLElement{constructor(e,i,o){super();dr(this,"$$ctor");dr(this,"$$s");dr(this,"$$c");dr(this,"$$cn",!1);dr(this,"$$d",{});dr(this,"$$r",!1);dr(this,"$$p_d",{});dr(this,"$$l",{});dr(this,"$$l_u",new Map);dr(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 r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=U1(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=Df(l,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Ah({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=$u(()=>{jo(()=>{var a;this.$$r=!0;for(let l of Qp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=Df(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 a in this.$$l)for(let l of this.$$l[a]){let d=this.$$c.$on(a,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Df(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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 Qp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Df(t,e,i,o){var a;let r=(a=i[t])==null?void 0:a.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){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(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function U1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Jh="5";var e_,t_,i_;typeof window!="undefined"&&((i_=(t_=(e_=window.__svelte)!=null?e_:window.__svelte={}).v)!=null?i_:t_.v=new Set).add(Jh);var dd=require("@vkontakte/videoplayer-core/es2018"),DZ=require("@vkontakte/videoplayer-core/es2018"),ul=require("@vkontakte/videoplayer-shared/es2018"),u$=require("@vkontakte/videoplayer-statistics/es2018");var Ba=require("@vkontakte/videoplayer-shared/es2018");var z1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ba.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:Ba.VideoQuality.Q_480P,highQualityLimit:Ba.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,features:{autoplay:!0,statistics:!0,thinStatistics:!1,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:{minimalView:!1,initialSize:{width:400,height:225}},download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,apptracer:{enabled:!1,sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},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,doubleForwardAvailable:!1,useRichSeek:!1,disableThumbUnstartedOnAutoplay:!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,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},disablePiPResizeHandling:!1,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",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180,titleShowBehaviour:"fullscreen",disabledSlotIds:[],disabledAdditionalButtonIds:[]},o_=t=>(0,Ba.fillWithDefault)(t,z1),n_=t=>Pl("ui-config",t),Mt=()=>El("ui-config");var zd="vk_player_debug_panel_opened";var r_="videoplayer",s_="videoplayer";var _s={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},a_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),l_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),d_=new Set(["ShiftRight","ShiftLeft"]);var c_=["TIMELINE"],Wd=[...c_,"GRAPH_BUTTON"],Nf=[...c_,"PLAY_BUTTON"],Kd=[...Wd,"PLAY_BUTTON"];var ts=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(ts||{}),Qd={xs:0,s:1,m:2,l:3,xl:4};var qd=require("@vkontakte/videoplayer-shared/es2018"),u_=require("@vkontakte/videoplayer-core/es2018"),p_=require("@vkontakte/videoplayer-statistics/es2018");var Ru="prod",Ha="1.1.85-dev.ffe03d52.0";var Ua=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var f_=Symbol("storeContext"),m_=Symbol("microStoresContext"),v_=(t,e)=>{Pl(f_,t),Pl(m_,e),Ru==="dev"&&(window.app={store:t,microStores:e})},ye=()=>{let t=El(f_);return(0,qd.assertNonNullable)(t,"Store context is empty!"),t},$o=()=>{let t=El(m_);return(0,qd.assertNonNullable)(t,"MicroStores context is empty!"),t},ii=(t,e)=>Nu(t,t.getValue(),e),Nu=(t,e,i)=>Mr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),g_=(t,e,i,o,r=["meta config not provided"])=>{var H,U,G,se,te,J,Y,Ie,ue;let a=t.info,{width:l,height:d}=_e(i.ui.playerSize),s=(U=(H=a.throughputEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?U:0,u=(se=(G=a.rttEstimation$.getValue())==null?void 0:G.toFixed(0))!=null?se:0,f=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ha} (core: ${u_.VERSION}, stat: ${p_.VERSION}, shared: ${qd.VERSION})`,v=_e(i.state.errorLog$),_=v.length?`
45
- `+v.map((ie,ge)=>{var pe;let Pe=`${ge}) Type: ${ie.id}
46
- `,de=`Message: ${ie.message} (${ie.thrown})
47
- `,Ke=`Trace: ${(pe=ie.thrown)==null?void 0:pe.stack}
48
- `;return Pe+de+Ke}).join(`
49
- `):void 0,y=i.state.isAudioDisabled?"disabled":_e(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),I=[];$&&I.push(`Video: ${(te=$==null?void 0:$.codec)!=null?te:""}`+($!=null&&$.hdr?" (HDR)":"")),x&&I.push(`Audio: ${(J=x==null?void 0:x.codec)!=null?J:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=a.currentQuality$.getValue(),R="";if(T){let ie=a.availableQualitiesFps$.getValue()[T];R=ie?`${ie}fps`:""}let k=a.httpConnectionType$.getValue(),P=(Ie=(Y=a.currentBuffer$.getValue())==null?void 0:Y.end)!=null?Ie:0,E=Math.max(P-_e(i.state.positionExact$),0),W={Version:p,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:o,VSID:_e(i.vsid),"Content host":a.hostname$.getValue(),"Connection type":k?k+(a.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${s}Kbps @ ${u}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:I.join(", "),Quality:`${f} ${T!=null?T:""} ${R}`,"Available qualities":a.availableQualities$.getValue().join(", "),Audio:y,Position:`${_e(i.state.positionExact$)}s`,Buffer:`${E}s`,State:`${_e(i.playerPhase)} ${(ue=a.playbackState$.getValue())!=null?ue:""}`,"Player size":`${l}x${d}`,URL:window.location.href,Errors:_};return Object.entries(W).filter(([ie,ge])=>ge!==void 0).map(([ie,ge])=>`${ie}: ${ge}`).join(`
50
- `)},h_=(t,e,i)=>{var H,U,G,se;let o=t.info,{width:r,height:a}=_e(i.ui.playerSize),l={version:Ha,viewport:`${r}x${a}`,volume:Math.round(_e(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(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),_=o.liveBufferTime$.getValue();f&&p&&(v&&_?(l.buffer=f.end-_,l.nativeBuffer=p.end-_):(l.buffer=Math.max(f.end-_e(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-_e(i.state.positionExact$),0))),l.position=_e(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let $=o.videoBitrate$.getValue();$&&(l.bitrate=$);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let R=_e(i.vsid);typeof R=="string"&&(l.vsid=R);let k=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;k&&(l.videoCodec=k);let P=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;P&&(l.audioCodec=P),((G=t.info.currentVideoStream$.getValue())==null?void 0:G.hdr)&&(l.hdr=!0);let W=(se=t.info.currentAudioStream$.getValue())==null?void 0:se.language;return W&&(l.audioLanguage=W),l},__=(t,e)=>Ua(t,e,"mp4"),b_=t=>!t.type,$_=t=>!!t.type,y_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Du=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var pi=require("@vkontakte/videoplayer-shared/es2018"),TV=require("@vkontakte/videoplayer-core/es2018"),W1="vk_player_",x_="vk_player_prefer_traffic_saving_enabled",w_="vk_player_preferred_volume",S_="vk_player_prefer_volume_mute",Hf="vk_player_preferred_quality",Of="vk_player_preferred_default_quality_settings",Bf="vk_player_preferred_quality_settings_by_video",C_="vk_player_preferred_stream_language",T_="vk_player_preferred_rate",I_="vk_player_preferred_autoplay_next",Ff="vk_player_preferred_subtitles_language",E_="vk_player_user_video_prefs",P_=`${W1}preview_track_close_tooltip`,A_=t=>t>1?1:t<0?0:t,Uf=t=>pi.safeStorage.set(w_,A_(t).toString(10)),Ou=()=>{let t=pi.safeStorage.get(w_);return(0,pi.isNullable)(t)?void 0:A_(parseFloat(t))},zf=(t,e)=>pi.safeStorage.set(Hf,JSON.stringify({videoId:t,value:e})),Bu=()=>pi.safeStorage.remove(Hf),Wf=t=>{let e=pi.safeStorage.get(Hf);if((0,pi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Bu();return}return o},k_=(t,e)=>{e?pi.safeStorage.set(t,"true"):pi.safeStorage.remove(t)},Kf=t=>pi.safeStorage.get(t)==="true",Qf=t=>k_(S_,t),L_=()=>Kf(S_),Gd=t=>k_(x_,t),qf=()=>Kf(x_),M_=()=>pi.safeStorage.get(C_),Gf=t=>pi.safeStorage.set(C_,t),Yf=()=>pi.safeStorage.get(Ff),jf=t=>{t?pi.safeStorage.set(Ff,t):pi.safeStorage.remove(Ff)},V_=t=>pi.safeStorage.set(T_,JSON.stringify({rate:t})),R_=()=>{let t=pi.safeStorage.get(T_);if((0,pi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},D_=t=>{pi.safeStorage.set(I_,String(t))},N_=()=>Kf(I_),K1=()=>{let t=f=>{pi.safeStorage.set(Of,JSON.stringify(f))},e=()=>{try{let f=pi.safeStorage.get(Of);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=pi.safeStorage.get(Bf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{pi.safeStorage.set(Bf,JSON.stringify(f))},r=f=>{u(f);let p=f?i():null;if(p&&(p==null?void 0:p.videoId)===f)return{...p,appliesTo:"to-video"};p&&a();let v=e();return v?{...v,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{pi.safeStorage.remove(Bf)},l=()=>{pi.safeStorage.remove(Of)},d=(f,p="as-default")=>{f.type==="exact_quality"||p==="to-video"?o(f):t(f)},s=f=>{let p=r(f);if(p){switch(p.type){case"traffic_saving":Gd(!0);break;case"exact_quality":zf(f,p.quality)}a(),l()}},u=f=>{let p=Wf(f);if(p){o({type:"exact_quality",videoId:f,quality:p});return}qf()&&t({type:"traffic_saving",videoId:f}),Gd(!1),Bu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Yf,savePreferredSubtitlesLanguage:jf}},{getPreferredQualitySettings:O_,migrateSettingsToLegacyWay:B_,savePreferredQualitySettings:Fu,savePreferredDefaultQualitySettings:IV,removePreferredQualitySettingsByVideo:EV,getPreferredDefaultQualitySettings:Hu}=K1(),Q1=3,q1=3,F_=()=>{let t=pi.safeStorage.get(E_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Uu=(t,e)=>{var r,a;let i=F_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},Xf=(t,e,i)=>{var l,d,s;let o=(l=F_())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=G1(o);pi.safeStorage.set(E_,JSON.stringify(a))};function G1(t){let e=Object.entries(t).reduce((o,[r,a])=>{let l=0;return Object.values(a).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(q1),e.reduce((o,[r])=>(o[r]=Y1(t[r]),o),{})}function Y1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Q1),Object.fromEntries(e)}function H_(){pi.safeStorage.set(P_,JSON.stringify(!0))}function U_(){let t=pi.safeStorage.get(P_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var eg=require("@vkontakte/videoplayer-core/es2018");Qg();var aa="var(--btn-color, #fff)";var j1=Ae('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),X1=Ae('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function je(t,e){var f;B(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,aa),a=(f=e.viewBox)!=null?f:`0 0 ${i()} ${o()}`;var l=X1(),d=C(l);{var s=p=>{var v=j1(),_=le(v),y=C(_);ti(y,()=>e.children),S(_),ei(),b(p,v)},u=p=>{var v=Ve(),_=le(v);ti(_,()=>e.children),b(p,v)};M(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),N(()=>{De(l,"aria-label",e.ariaLabel),De(l,"aria-hidden",!e.ariaLabel),De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",a),De(l,"fill",r()),Qe(l,e.style),De(l,"data-testid",e.testId)}),b(t,l),F()}var Kl=require("@vkontakte/videoplayer-shared/es2018");var Z1={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",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:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
43
+ `)})}}var Ra=!1,Rl=null,Da=!1,Ps=!1;function af(t){Ps=t}var Dd=[],Nd=[],Vt=null,fr=!1;function qi(t){Vt=t}var xt=null;function vo(t){xt=t}var Jo=null;function mu(t){Vt!==null&&Vt.f&2097152&&(Jo===null?Jo=[Vt,[t]]:Jo[1].push(t))}var An=null,mr=0,pr=null;function Zg(t){pr=t}var hh=1,wu=0,As=!1,Su=null;function Cd(){return++hh}function ka(t){var p,v;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 r,a,l=(e&512)!==0,d=o&&xt!==null&&!As,s=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((v=a.reactions)!=null?v:a.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],ka(a)&&sf(a),a.wv>t.wv)return!0}(!o||xt!==null&&!As)&&In(t,1024)}return!1}function _h(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Jo!=null&&Jo[1].includes(t)&&Jo[0]===Vt||((a.f&2)!==0?_h(a,e,!1):e===a&&(i?In(a,2048):(a.f&1024)!==0&&In(a,4096),Id(a)))}}function fu(t){var b,y;var e=An,i=mr,o=pr,r=Vt,a=As,l=Jo,d=Bt,s=fr,u=t.f;An=null,mr=0,pr=null,As=(u&256)!==0&&(fr||!Da||Vt===null),Vt=(u&96)===0?t:null,Jo=null,xd(t.ctx),fr=!1,wu++,t.f|=2097152;try{var m=(0,t.fn)(),p=t.deps;if(An!==null){var v;if(Md(t,mr),p!==null&&mr>0)for(p.length=mr+An.length,v=0;v<An.length;v++)p[mr+v]=An[v];else t.deps=p=An;if(!As||(u&2)!==0&&t.reactions!==null)for(v=mr;v<p.length;v++)((y=(b=p[v]).reactions)!=null?y:b.reactions=[]).push(t)}else p!==null&&mr<p.length&&(Md(t,mr),p.length=mr);if(vs()&&pr!==null&&!fr&&p!==null&&(t.f&6146)===0)for(v=0;v<pr.length;v++)_h(pr[v],t);return r!==null&&r!==t&&(wu++,pr!==null&&(o===null?o=pr:o.push(...pr))),m}catch(_){mh(_)}finally{An=e,mr=i,pr=o,Vt=r,As=a,Jo=l,xd(d),fr=s,t.f^=2097152}}function Q$(t,e){let i=e.reactions;if(i!==null){var o=kg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(An===null||!An.includes(e))&&(In(e,4096),(e.f&768)===0&&(e.f^=512),pu(e),Md(e,0))}function Md(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Q$(t,i[o])}function Ll(t){var e=t.f;if((e&16384)===0){In(t,1024);var i=xt,o=Da;if(xt=t,Da=!0,Ve){var r=cr;wd(t.component_function)}try{(e&16)!==0?dh(t):uf(t),cf(t);var a=fu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=hh,Ve&&ms&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Cd(),l.set_during_effect=!1);Ve&&Nd.push(t)}finally{Da=o,xt=i,Ve&&wd(r)}}}function vh(){console.error("Last ten effects were: ",Nd.slice(-10).map(t=>t.fn)),Nd=[]}function G$(){try{Hg()}catch(t){if(Ve&&mo(t,"stack",{value:""}),Rl!==null)if(Ve)try{Rd(t,Rl)}catch(e){throw vh(),e}else Rd(t,Rl);else throw Ve&&vh(),t}}function hf(){var t=Da;try{var e=0;for(Da=!0;Dd.length>0;){e++>1e3&&G$();var i=Dd,o=i.length;Dd=[];for(var r=0;r<o;r++){var a=j$(i[r]);Y$(a)}Al.clear()}}finally{Ra=!1,Da=t,Rl=null,Ve&&(Nd=[])}}function Y$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ka(o)&&(Ll(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?ff(o):o.fn=null))}}function Id(t){Ra||(Ra=!0,queueMicrotask(hf));for(var e=Rl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Dd.push(e)}function j$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:ka(i)&&Ll(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 Dl(t){var e;for(t&&(Ra=!0,hf(),Ra=!0,e=t());;){if(ph(),Dd.length===0)return Ra=!1,Rl=null,Ve&&(Nd=[]),e;Ra=!0,hf()}}async function ho(){await Promise.resolve(),Dl()}function n(t){var e=t.f,i=(e&2)!==0;if(Su!==null&&Su.add(t),Vt!==null&&!fr){if(!(Jo!=null&&Jo[1].includes(t))||Jo[0]!==Vt){var o=Vt.deps;t.rv<wu&&(t.rv=wu,An===null&&o!==null&&o[mr]===t?mr++:An===null?An=[t]:(!As||!An.includes(t))&&An.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,ka(r)&&sf(r)),Ve&&ms&&!fr&&yd!==null&&Vt!==null&&yd.reaction===Vt)if(t.trace)t.trace();else{var l=Es("TracedAt");if(l){var d=yd.entries.get(t);d===void 0&&(d={traces:[]},yd.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return Ps&&Al.has(t)?Al.get(t):t.v}function Pt(t){var e=fr;try{return fr=!0,t()}finally{fr=e}}var X$=-7169;function In(t,e){t.f=t.f&X$|e}function Tu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Xo in t)Cu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Xo in i&&Cu(i)}}}function Cu(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{Cu(t[o],e)}catch(r){}let i=Ia(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=au(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function _f(t,e){if(e){let i=document.body;t.autofocus=!0,Pn(()=>{document.activeElement===i&&t.focus()})}}function Od(t){var e=Vt,i=xt;qi(null),vo(null);try{return t()}finally{qi(e),vo(i)}}var bf=new Set,Iu=new Set;function Na(t){if(!rt)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 $f(t,e,i,o={}){function r(a){if(o.capture||Nl.call(e,a),!a.cancelBubble)return Od(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Pn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function _t(t,e,i,o,r){var a={capture:o,passive:r},l=$f(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ko(()=>{e.removeEventListener(t,l,a)})}function et(t){for(var e=0;e<t.length;e++)bf.add(t[e]);for(var i of Iu)i(t)}function Nl(t){var T;var e=this,i=e.ownerDocument,o=t.type,r=((T=t.composedPath)==null?void 0:T.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){mo(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Vt,p=xt;qi(null),vo(null);try{for(var v,b=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var _=a["__"+o];if(_!=null&&(!a.disabled||t.target===a))if(lr(_)){var[x,...I]=_;x.apply(a,[t,...I])}else _.call(a,t)}catch(D){v?b.push(D):v=D}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let D of b)queueMicrotask(()=>{throw D});throw v}}finally{t.__root=e,delete t.currentTarget,qi(m),vo(p)}}}var J$;function bh(){J$=void 0}function Ol(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Mo(t,e){var i=xt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function k(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(rt)return Mo(wt,null),wt;r===void 0&&(r=Ol(a?t:"<!>"+t),i||(r=Ii(r)));var l=o||Ed?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ii(l),s=l.lastChild;Mo(d,s)}else Mo(l,l);return l}}function i1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(rt)return Mo(wt,null),wt;if(!l){var d=Ol(a),s=Ii(d);if(r)for(l=document.createDocumentFragment();Ii(s);)l.appendChild(Ii(s));else l=Ii(s)}var u=l.cloneNode(!0);if(r){var m=Ii(u),p=u.lastChild;Mo(m,p)}else Mo(u,u);return u}}function Ae(t,e){return i1(t,e,"svg")}function hs(t=""){if(!rt){var e=En(t+"");return Mo(e,e),e}var i=wt;return i.nodeType!==wl&&(i.before(i=En()),Ci(i)),Mo(i,i),i}function Re(){if(rt)return Mo(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=En();return t.append(e,i),Mo(e,i),t}function $(t,e){if(rt){xt.nodes_end=wt,Gi();return}t!==null&&t.before(e)}var o1=/\r/g;function yh(t){t=t.replace(o1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function xh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var n1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function wh(t){return n1.includes(t)}var r1=["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 s1={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 Sh(t){var e;return t=t.toLowerCase(),(e=s1[t])!=null?e:t}var uP=[...r1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var a1=["touchstart","touchmove"];function Ch(t){return a1.includes(t)}var l1=["$state","$state.raw","$derived","$derived.by"],pP=[...l1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var d1=["textarea","script","style","title"];function Th(t){return d1.includes(t)}function Eu(t){return t==null?void 0:t.replace(/\//g,"/​")}var Bd=!0;function Pu(t){Bd=t}function ge(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 Gr(t,e){return Ih(t,e)}function xf(t,e){var l;hu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=rt,r=wt;try{for(var a=Ii(i);a&&(a.nodeType!==dr||a.data!==Zs);)a=en(a);if(!a)throw ps;go(!0),Ci(a),Gi();let d=Ih(t,{...e,anchor:a});if(wt===null||wt.nodeType!==dr||wt.data!==Ta)throw ia(),ps;return go(!1),d}catch(d){if(d===ps)return e.recover===!1&&Fg(),hu(),Pd(i),go(!1),Gr(t,e);throw d}finally{go(o),Ci(r),bh()}}var Bl=new Map;function Ih(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){hu();var d=new Set,s=p=>{for(var v=0;v<p.length;v++){var b=p[v];if(!d.has(b)){d.add(b);var y=Ch(b);e.addEventListener(b,Nl,{passive:y});var _=Bl.get(b);_===void 0?(document.addEventListener(b,Nl,{passive:y}),Bl.set(b,1)):Bl.set(b,_+1)}}};s($d(bf)),Iu.add(s);var u=void 0,m=lh(()=>{var p=i!=null?i:e.appendChild(En());return Hi(()=>{if(a){H({});var v=Bt;v.c=a}r&&(o.$$events=r),rt&&Mo(p,null),Bd=l,u=t(p,o)||{},Bd=!0,rt&&(xt.nodes_end=wt),a&&F()}),()=>{var y;for(var v of d){e.removeEventListener(v,Nl);var b=Bl.get(v);--b===0?(document.removeEventListener(v,Nl),Bl.delete(v)):Bl.set(v,b)}Iu.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return yf.set(u,m),u}var yf=new WeakMap;function Oa(t,e){let i=yf.get(t);return i?(yf.delete(t),i(e)):(Ve&&th(),Promise.resolve())}function ei(t,e,...i){var o=t,r=yt,a;Yi(()=>{r!==(r=e())&&(a&&(Qi(a),a=null),Ve&&r==null&&Ug(),a=Hi(()=>r(o,...i)))},65536),rt&&(o=wt)}if(Ve){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Kg(e)},set:o=>{i=o}})}};f1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var f1;function Lt(t){Bt===null&&Tl("onMount"),fs&&Bt.l!==null?p1(Bt).m.push(t):Fe(()=>{let e=Pt(t);if(typeof e=="function")return e})}function cn(t){Bt===null&&Tl("onDestroy"),Lt(()=>()=>Pt(t))}function p1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Eh=new Map;function Ph(t,e){var i=Eh.get(t);i||(i=new Set,Eh.set(t,i)),i.add(e)}function M(t,e,[i,o]=[0,0]){rt&&i===0&&Gi();var r=t,a=null,l=null,d=ro,s=i>0?65536:0,u=!1;let m=(v,b=!0)=>{u=!0,p(b,v)},p=(v,b)=>{if(d===(d=v))return;let y=!1;if(rt&&o!==-1){if(i===0){let x=gu(r);x===Zs?o=0:x===Js?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let _=o>i;!!d===_&&(r=La(),Ci(r),go(!1),y=!0,o=-1)}d?(a?Ls(a):b&&(a=Hi(()=>b(r))),l&&Yn(l,()=>{l=null})):(l?Ls(l):b&&(l=Hi(()=>b(r,[i+1,o]))),a&&Yn(a,()=>{a=null})),y&&go(!0)};Yi(()=>{u=!1,e(m),u||p(null,null)},s),rt&&(r=wt)}function Ms(t,e,i){rt&&Gi();var o=t,r=ro,a,l=vs()?Rg:Sl;Yi(()=>{l(r,r=e())&&(a&&Yn(a),a=Hi(()=>i(o)))}),rt&&(o=wt)}var na=null;function Cf(t){na=t}function Hd(t,e){return e}function g1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)yu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Pd(s),s.append(i),o.clear(),oa(t,e[0].prev,e[a-1].next)}mf(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),oa(t,m.prev,m.next)),Qi(m.e,!d)}})}function xi(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=rt?Ci(Ii(u)):u.appendChild(En())}rt&&Gi();var m=null,p=!1,v=Tn(()=>{var b=i();return lr(b)?b:b==null?[]:$d(b)});Yi(()=>{var b=n(v),y=b.length;if(p&&y===0)return;p=y===0;let _=!1;if(rt){var x=gu(l)===Js;x!==(y===0)&&(l=La(),Ci(l),go(!1),_=!0)}if(rt){for(var I=null,T,D=0;D<y;D++){if(wt.nodeType===dr&&wt.data===Ta){l=wt,_=!0,go(!1);break}var A=b[D],E=o(A,D);T=Lh(wt,d,I,null,A,E,D,r,e,i),d.items.set(E,T),I=T}y>0&&Ci(La())}rt||h1(b,d,l,r,e,o,i),a!==null&&(y===0?m?Ls(m):m=Hi(()=>a(l)):m!==null&&Yn(m,()=>{m=null})),_&&go(!0),n(v)}),rt&&(l=wt)}function h1(t,e,i,o,r,a,l){var ae,le,ce,X;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,v=p,b,y=null,_,x=[],I=[],T,D,A,E;if(d)for(E=0;E<u;E+=1)T=t[E],D=a(T,E),A=m.get(D),A!==void 0&&((ae=A.a)==null||ae.measure(),(_!=null?_:_=new Set).add(A));for(E=0;E<u;E+=1){if(T=t[E],D=a(T,E),A=m.get(D),A===void 0){var V=v?v.e.nodes_start:i;y=Lh(V,e,y,y===null?e.first:y.next,T,D,E,o,r,l),m.set(D,y),x=[],I=[],v=y.next;continue}if(s&&_1(A,T,E,r),(A.e.f&8192)!==0&&(Ls(A.e),d&&((le=A.a)==null||le.unfix(),(_!=null?_:_=new Set).delete(A))),A!==v){if(b!==void 0&&b.has(A)){if(x.length<I.length){var q=I[0],L;y=q.prev;var z=x[0],j=x[x.length-1];for(L=0;L<x.length;L+=1)Ah(x[L],q,i);for(L=0;L<I.length;L+=1)b.delete(I[L]);oa(e,z.prev,j.next),oa(e,y,z),oa(e,j,q),v=q,y=j,E-=1,x=[],I=[]}else b.delete(A),Ah(A,v,i),oa(e,A.prev,A.next),oa(e,A,y===null?e.first:y.next),oa(e,y,A),y=A;continue}for(x=[],I=[];v!==null&&v.k!==D;)(v.e.f&8192)===0&&(b!=null?b:b=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}x.push(A),y=A,v=A.next}if(v!==null||b!==void 0){for(var te=b===void 0?[]:$d(b);v!==null;)(v.e.f&8192)===0&&te.push(v),v=v.next;var ee=te.length;if(ee>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<ee;E+=1)(ce=te[E].a)==null||ce.measure();for(E=0;E<ee;E+=1)(X=te[E].a)==null||X.fix()}g1(e,te,oe,m)}}d&&Pn(()=>{var _e;if(_!==void 0)for(A of _)(_e=A.a)==null||_e.apply()}),xt.first=e.first&&e.first.e,xt.last=y&&y.e}function _1(t,e,i,o){(o&1)!==0&&kl(t.v,e),(o&2)!==0?kl(t.i,i):t.i=i}function Lh(t,e,i,o,r,a,l,d,s,u){var m=na,p=(s&1)!==0,v=(s&16)===0,b=p?v?gs(r,!1,!1):Er(r):r,y=(s&2)===0?l:Er(l);Ve&&p&&(b.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var _={i:y,v:b,k:a,a:null,e:null,prev:i,next:o};na=_;try{return _.e=Hi(()=>d(t,b,y,u),rt),_.e.prev=i&&i.e,_.e.next=o&&o.e,i===null?e.first=_:(i.next=_,i.e.next=_.e),o!==null&&(o.prev=_,o.e.prev=_.e),_}finally{na=m}}function Ah(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=en(a);r.before(a),a=l}}function oa(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 b1(t,e,i){var a,l;if(!e||e===yh(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=cr)!=null&&l[Kn]&&(o=`in ${cr[Kn]}`),eh(Eu(o))}function Fd(t,e,i=!1,o=!1,r=!1){var a=t,l="";O(()=>{var b;var d=xt;if(l===(l=(b=e())!=null?b:"")){rt&&Gi();return}if(d.nodes_start!==null&&(pf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(rt){for(var s=wt.data,u=Gi(),m=u;u!==null&&(u.nodeType!==dr||u.data!=="");)m=u,u=en(u);if(u===null)throw ia(),ps;Ve&&!r&&b1(u.parentNode,s,l),Mo(wt,m),a=Ci(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Ol(p);if((i||o)&&(v=Ii(v)),Mo(Ii(v),v.lastChild),i||o)for(;Ii(v);)a.before(Ii(v));else a.before(v)}})}function Fi(t,e,i){rt&&Gi();var o=t,r,a;Yi(()=>{r!==(r=e())&&(a&&(Yn(a),a=null),r&&(a=Hi(()=>i(o,r))))},65536),rt&&(o=wt)}function Ba(t,e,i,o,r,a){var y;let l=rt;rt&&Gi();var d=Ve&&a&&((y=Bt)==null?void 0:y.function[Kn]),s,u,m=null;rt&&wt.nodeType===du&&(m=wt,Gi());var p=rt?wt:t,v,b=na;Yi(()=>{let _=e()||null;var x=r?r():i||_==="svg"?ru:null;if(_!==s){var I=na;Cf(b),v&&(_===null?Yn(v,()=>{v=null,u=null}):_===u?Ls(v):(Qi(v),Pu(!1))),_&&_!==u&&(v=Hi(()=>{if(m=rt?m:x?document.createElementNS(x,_):document.createElement(_),Ve&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Mo(m,m),o){rt&&Th(_)&&m.append(document.createComment(""));var T=rt?Ii(m):m.appendChild(En());rt&&(T===null?go(!1):Ci(T)),o(m,T)}xt.nodes_end=m,p.before(m)})),s=_,s&&(u=s),Pu(!0),Cf(I)}},65536),l&&(go(!0),Ci(p))}var If;function Mh(t){return If=t.target,new Tf(t)}var Vs,Pr,Tf=class{constructor(e){Xs(this,Vs);Xs(this,Pr);var a,l;var i=new Map,o=(d,s)=>{var u=gs(s,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,s){var u;return n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===xl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var m;return N((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});yl(this,Pr,(e.hydrate?xf:Gr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Dl(),yl(this,Vs,r.$$events);for(let d of Object.keys(Bi(this,Pr)))d==="$set"||d==="$destroy"||d==="$on"||mo(this,d,{get(){return Bi(this,Pr)[d]},set(s){Bi(this,Pr)[d]=s},enumerable:!0});Bi(this,Pr).$set=d=>{Object.assign(r,d)},Bi(this,Pr).$destroy=()=>{Oa(Bi(this,Pr))}}$set(e){Bi(this,Pr).$set(e)}$on(e,i){Bi(this,Vs)[e]=Bi(this,Vs)[e]||[];let o=(...r)=>i.call(this,...r);return Bi(this,Vs)[e].push(o),()=>{Bi(this,Vs)[e]=Bi(this,Vs)[e].filter(r=>r!==o)}}$destroy(){Bi(this,Pr).$destroy()}};Vs=new WeakMap,Pr=new WeakMap;function Q(t,e){Pn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=If)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ve&&Ph(e.hash,d)}})}function Rs(t,e){var i=void 0,o;Yi(()=>{i!==(i=e())&&(o&&(Qi(o),o=null),i&&(o=Hi(()=>{Lo(()=>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 r=t.length;for(e=0;e<r;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 Rh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Vh(t))&&(o&&(o+=" "),o+=e);return o}function Ud(t){return typeof t=="object"?Rh(t):t!=null?t:""}var Dh=[...`
44
+ \r\f \v\uFEFF`];function Oh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(l===0||Dh.includes(o[l-1]))&&(d===o.length||Dh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Nh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function Ef(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Bh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(Ef)),r&&s.push(...Object.keys(r).map(Ef));var u=0,m=-1;let _=t.length;for(var p=0;p<_;p++){var v=t[p];if(d?v==="/"&&t[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&t[p+1]==="*"?d=!0:v==='"'||v==="'"?a=v:v==="("?l++:v===")"&&l--,!d&&a===!1&&l===0){if(v===":"&&m===-1)m=p;else if(v===";"||p===_-1){if(m!==-1){var b=Ef(t.substring(u,m).trim());if(!s.includes(b)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-1}}}}return o&&(i+=Nh(o)),r&&(i+=Nh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,r,a){var l=t.__className;if(rt||l!==i||l===void 0){var d=Oh(i,o,a);(!rt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Pf(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function Ke(t,e,i,o){var r=t.__style;if(rt||r!==e){var a=Bh(e,o);(!rt||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Pf(t,i==null?void 0:i[0],o[0]),Pf(t,i==null?void 0:i[1],o[1],"important")):Pf(t,i,o));return o}function zd(t,e,i){if(t.multiple){if(e==null)return;if(!lr(e))return ih();for(var o of t.options)o.selected=e.includes(Hh(o));return}for(o of t.options){var r=Hh(o);if(ef(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Af(t){var e=new MutationObserver(()=>{zd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ko(()=>{e.disconnect()})}function Hh(t){return"__value"in t?t.__value:t.value}var Hl=Symbol("class"),Fl=Symbol("style"),zh=Symbol("is custom element"),Wh=Symbol("is html");function Kh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var r=Qh(t);if(rt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||I1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Vg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Gh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function qh(t,e,i,o,r=!1){var A;var a=Qh(t),l=a[zh],d=!a[Wh];let s=rt&&l;s&&go(!1);var u=e||{},m=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Ud(i.class):(o||i[Hl])&&(i.class=null),i[Fl]&&((A=i.style)!=null||(i.style=null));var v=Gh(t);for(let E in i){let V=i[E];if(m&&E==="value"&&V==null){t.value=t.__value="",u[E]=V;continue}if(E==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,b,V,o,e==null?void 0:e[Hl],i[Hl]),u[E]=V,u[Hl]=i[Hl];continue}if(E==="style"){Ke(t,V,e==null?void 0:e[Fl],i[Fl]),u[E]=V,u[Fl]=i[Fl];continue}var y=u[E];if(!(V===y&&!(V===void 0&&t.hasAttribute(E)))){u[E]=V;var _=E[0]+E[1];if(_!=="$$")if(_==="on"){let q={},L="$$"+E,z=E.slice(2);var x=wh(z);if(xh(z)&&(z=z.slice(0,-7),q.capture=!0),!x&&y){if(V!=null)continue;t.removeEventListener(z,u[L],q),u[L]=null}if(V!=null)if(x)t[`__${z}`]=V,et([z]);else{let j=function(te){u[E].call(this,te)};var D=j;u[L]=$f(z,t,j,q)}else x&&(t[`__${z}`]=void 0)}else if(E==="style")De(t,E,V);else if(E==="autofocus")_f(t,!!V);else if(!l&&(E==="__value"||E==="value"&&V!=null))t.value=t.__value=V;else if(E==="selected"&&m)Kh(t,V);else{var I=E;d||(I=Sh(I));var T=I==="defaultValue"||I==="defaultChecked";if(V==null&&!l&&!T)if(a[E]=null,I==="value"||I==="checked"){let q=t,L=e===void 0;if(I==="value"){let z=q.defaultValue;q.removeAttribute(I),q.defaultValue=z,q.value=q.__value=L?z:null}else{let z=q.defaultChecked;q.removeAttribute(I),q.defaultChecked=z,q.checked=L?z:!1}}else t.removeAttribute(E);else T||v.includes(I)&&(l||typeof V!="string")?t[I]=V:typeof V!="function"&&De(t,I,V,r)}}}return s&&go(!0),u}function so(t,e,i=[],o,r=!1,a=Kr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Yi(()=>{var v=e(...l.map(n)),b=qh(t,d,v,o,r);m&&u&&"value"in v&&zd(t,v.value,!1);for(let _ of Object.getOwnPropertySymbols(s))v[_]||Qi(s[_]);for(let _ of Object.getOwnPropertySymbols(v)){var y=v[_];_.description===qp&&(!d||y!==d[_])&&(s[_]&&Qi(s[_]),s[_]=Hi(()=>Rs(t,()=>y))),b[_]=y}d=b}),u){var p=t;Lo(()=>{zd(p,d.value),Af(p)})}m=!0}function Qh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[zh]:t.nodeName.includes("-"),[Wh]:t.namespaceURI===Ig}}var Fh=new Map;function Gh(t){var e=Fh.get(t.nodeName);if(e)return e;Fh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=au(o);for(var a in i)i[a].set&&e.push(a);o=Ia(o)}return e}function I1(t,e,i){var o;Ve&&(e==="srcset"&&E1(t,i)||kf((o=t.getAttribute(e))!=null?o:"",i)||Jg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function kf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Uh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function E1(t,e){var i=Uh(t.srcset),o=Uh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(kf(i[l][0],r)||kf(r,i[l][0])))}var P1=su?()=>performance.now():()=>Date.now(),Yr={tick:t=>(su?requestAnimationFrame:yt)(t),now:()=>P1(),tasks:new Set};function Yh(){let t=Yr.now();Yr.tasks.forEach(e=>{e.c(t)||(Yr.tasks.delete(e),e.f())}),Yr.tasks.size!==0&&Yr.tick(Yh)}function jh(t){let e;return Yr.tasks.size===0&&Yr.tick(Yh),{promise:new Promise(i=>{Yr.tasks.add(e={c:t,f:i})}),abort(){Yr.tasks.delete(e)}}}function Au(t,e){Od(()=>{t.dispatchEvent(new CustomEvent(e))})}function M1(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 Xh(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=M1(r.trim());e[l]=a.trim()}return e}var V1=t=>t;function Ds(t,e,i,o){var D;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,p=e.style.overflow,v,b;function y(){var V;var A=Vt,E=xt;qi(null),vo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:s})}finally{qi(A),vo(E)}}var _={is_global:d,in(){var A;if(e.inert=m,!r){b==null||b.abort(),(A=b==null?void 0:b.reset)==null||A.call(b);return}a||v==null||v.abort(),Au(e,"introstart"),v=Lf(e,y(),b,1,()=>{Au(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Au(e,"outrostart"),b=Lf(e,y(),v,0,()=>{Au(e,"outroend"),A==null||A()})},stop:()=>{v==null||v.abort(),b==null||b.abort()}},x=xt;if(((D=x.transitions)!=null?D:x.transitions=[]).push(_),r&&Bd){var I=d;if(!I){for(var T=x.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Lo(()=>{Pt(()=>_.in())})}}function Lf(t,e,i,o,r){var a=o===1;if(ea(e)){var l,d=!1;return Pn(()=>{if(!d){var x=e({direction:a?"in":"out"});l=Lf(t,x,i,o,r)}}),{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 r(),{abort:yt,deactivate:yt,reset:yt,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=V1}=e;var v=[];if(a&&i===void 0&&(m&&m(0,1),u)){var b=Xh(u(0,1));v.push(b,b)}var y=()=>1-o,_=t.animate(v,{duration:s,fill:"forwards"});return _.onfinish=()=>{var z;_.cancel();var x=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-x,T=e.duration*Math.abs(I),D=[];if(T>0){var A=!1;if(u)for(var E=Math.ceil(T/16.666666666666668),V=0;V<=E;V+=1){var q=x+I*p(V/E),L=Xh(u(q,1-q));D.push(L),A||(A=L.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var j=_.currentTime;return x+I*p(j/T)},m&&jh(()=>{if(_.playState!=="running")return!1;var j=y();return m(j,1-j),!0})}_=t.animate(D,{duration:T,fill:"forwards"}),_.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=yt)},deactivate:()=>{r=yt},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Mf(t,e,i){var o=jo(t,e);o&&o.set&&(t[e]=i,ko(()=>{t[e]=null}))}var ra,Ul,Wd,Lu,Zh,Mu=class Mu{constructor(e){Xs(this,Lu);Xs(this,ra,new WeakMap);Xs(this,Ul);Xs(this,Wd);yl(this,Wd,e)}observe(e,i){var o=Bi(this,ra).get(e)||new Set;return o.add(i),Bi(this,ra).set(e,o),Cg(this,Lu,Zh).call(this).observe(e,Bi(this,Wd)),()=>{var r=Bi(this,ra).get(e);r.delete(i),r.size===0&&(Bi(this,ra).delete(e),Bi(this,Ul).unobserve(e))}}};ra=new WeakMap,Ul=new WeakMap,Wd=new WeakMap,Lu=new WeakSet,Zh=function(){var e;return(e=Bi(this,Ul))!=null?e:yl(this,Ul,new ResizeObserver(i=>{for(var o of i){Mu.entries.set(o.target,o);for(var r of Bi(this,ra).get(o.target)||[])r(o)}}))},ar(Mu,"entries",new WeakMap);var Vf=Mu;var R1=new Vf({box:"border-box"});function kn(t,e,i){var o=R1.observe(t,()=>i(t[e]));Lo(()=>(Pt(()=>i(t[e])),o))}function Jh(t,e){return t===e||(t==null?void 0:t[Xo])===e}function tt(t={},e,i,o){return Lo(()=>{var r,a;return tn(()=>{r=a,a=(o==null?void 0:o())||[],Pt(()=>{t!==i(...a)&&(e(t,...a),r&&Jh(i(...r),t)&&e(null,...r))})}),()=>{Pn(()=>{a&&Jh(i(...a),t)&&e(null,...a)})}}),t}function on(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>Tu(e.s);if(t){let r=0,a={},l=Kr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Ld(()=>{e_(e,o),ta(i.b)}),Fe(()=>{let r=Pt(()=>i.m.map(Mg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{e_(e,o),ta(i.a)})}function e_(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Kd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),yt;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var zl=[];function Ar(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=yt){let i=null,o=new Set;function r(d){if(Sl(t,d)&&(t=d,i)){let s=!zl.length;for(let u of o)u[1](),zl.push(u,t);if(s){for(let u=0;u<zl.length;u+=2)zl[u][0](zl[u+1]);zl.length=0}}}function a(d){r(d(t))}function l(d,s=yt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||yt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function ui(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Ar(i,(l,d)=>{let s=!1,u=[],m=0,p=yt,v=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:yt},b=r.map((y,_)=>Kd(y,x=>{u[_]=x,m&=~(1<<_),s&&v()},()=>{m|=1<<_}));return s=!0,v(),function(){ta(b),p(),s=!1}})}function he(t){let e;return Kd(t,i=>e=i)(),e}var Vu=!1,Rf=Symbol();function w(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:gs(void 0),unsubscribe:yt};if(o.store!==t&&!(Rf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=yt;else{var r=!0;o.unsubscribe=Kd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Rf in i?he(t):n(o.source)}function Be(){let t={};function e(){ko(()=>{for(var i in t)t[i].unsubscribe();mo(t,Rf,{enumerable:!1,value:!0})})}return[t,e]}function Df(t){var e=Vu;try{return Vu=!1,[t(),Vu]}finally{Vu=e}}var U1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ve&&Wg(`${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 Ln(t,e,i){return new Proxy(Ve?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},U1)}var z1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(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 r=t.props[o];ea(r)&&(r=r());let a=jo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=jo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Xo||e===xl)return!1;for(let i of t.props)if(ea(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(ea(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 jr(...t){return new Proxy({props:t},z1)}function t_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var q,L;var r=(i&1)!==0,a=!fs||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Df(()=>t[e]):u=t[e];var m=Xo in t||xl in t,p=l&&((L=(q=jo(t,e))==null?void 0:q.set)!=null?L:m&&e in t&&(z=>t[e]=z))||void 0,v=o,b=!0,y=!1,_=()=>(y=!0,b&&(b=!1,d?v=Pt(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&zg(e),u=_(),p&&p(u));var x;if(a)x=()=>{var z=t[e];return z===void 0?_():(b=!0,y=!1,z)};else{var I=(r?Kr:Tn)(()=>t[e]);I.f|=131072,x=()=>{var z=n(I);return z!==void 0&&(v=void 0),z===void 0?v:z}}if((i&4)===0&&a)return x;if(p){var T=t.$$legacy;return function(z,j){return arguments.length>0?((!a||!j||T||s)&&p(j?x():z),z):x()}}var D=!1,A=!1,E=gs(u),V=Kr(()=>{var z=x(),j=n(E);return D?(D=!1,A=!0,j):(A=!1,E.v=z)});return l&&n(V),r||(V.equals=Cl),function(z,j){if(Su!==null&&(D=A,x(),n(E)),arguments.length>0){let te=j?n(V):a&&l?ni(z):z;if(!V.equals(te)){if(D=!0,N(E,te),y&&v!==void 0&&(v=te),t_(V))return z;Pt(()=>n(V))}return z}return t_(V)?V.v:n(V)}}var W1;typeof HTMLElement=="function"&&(W1=class extends HTMLElement{constructor(e,i,o){super();ar(this,"$$ctor");ar(this,"$$s");ar(this,"$$c");ar(this,"$$cn",!1);ar(this,"$$d",{});ar(this,"$$r",!1);ar(this,"$$p_d",{});ar(this,"$$l",{});ar(this,"$$l_u",new Map);ar(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 r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=K1(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=Nf(l,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Mh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=$u(()=>{tn(()=>{var a;this.$$r=!0;for(let l of Qp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=Nf(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 a in this.$$l)for(let l of this.$$l[a]){let d=this.$$c.$on(a,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Nf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$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 Qp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Nf(t,e,i,o){var a;let r=(a=i[t])==null?void 0:a.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){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(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function K1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var i_="5";var o_,n_,r_;typeof window!="undefined"&&((r_=(n_=(o_=window.__svelte)!=null?o_:window.__svelte={}).v)!=null?r_:n_.v=new Set).add(i_);var ld=require("@vkontakte/videoplayer-core/es2018"),NZ=require("@vkontakte/videoplayer-core/es2018"),pl=require("@vkontakte/videoplayer-shared/es2018"),v$=require("@vkontakte/videoplayer-statistics/es2018");var Ha=require("@vkontakte/videoplayer-shared/es2018");var q1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ha.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:Ha.VideoQuality.Q_480P,highQualityLimit:Ha.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,features:{autoplay:!0,statistics:!0,thinStatistics:!1,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:{minimalView:!1,initialSize:{width:400,height:225}},download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,apptracer:{enabled:!1,sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},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,doubleForwardAvailable:!1,useRichSeek:!1,disableThumbUnstartedOnAutoplay:!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,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},disablePiPResizeHandling:!1,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,controlsDesktopPaddingHorizontalMinimalView:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180,titleShowBehaviour:"fullscreen",disabledSlotIds:[],disabledAdditionalButtonIds:[]},s_=t=>(0,Ha.fillWithDefault)(t,q1),a_=t=>El("ui-config",t),Mt=()=>Il("ui-config");var qd="vk_player_debug_panel_opened";var l_="videoplayer",d_="videoplayer";var _s={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},c_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),u_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),p_=new Set(["ShiftRight","ShiftLeft"]);var f_=["TIMELINE"],Qd=[...f_,"GRAPH_BUTTON"],Of=[...f_,"PLAY_BUTTON"],Gd=[...Qd,"PLAY_BUTTON"];var Xr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Xr||{}),Yd={xs:0,s:1,m:2,l:3,xl:4};var jd=require("@vkontakte/videoplayer-shared/es2018"),m_=require("@vkontakte/videoplayer-core/es2018"),v_=require("@vkontakte/videoplayer-statistics/es2018");var Ru="prod",Ua="1.1.85";var za=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var g_=Symbol("storeContext"),h_=Symbol("microStoresContext"),__=(t,e)=>{El(g_,t),El(h_,e),Ru==="dev"&&(window.app={store:t,microStores:e})},ye=()=>{let t=Il(g_);return(0,jd.assertNonNullable)(t,"Store context is empty!"),t},yo=()=>{let t=Il(h_);return(0,jd.assertNonNullable)(t,"MicroStores context is empty!"),t},ti=(t,e)=>Nu(t,t.getValue(),e),Nu=(t,e,i)=>Ar(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),b_=(t,e,i,o,r=["meta config not provided"])=>{var L,z,j,te,ee,oe,ae,le,ce;let a=t.info,{width:l,height:d}=he(i.ui.playerSize),s=(z=(L=a.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?z:0,u=(te=(j=a.rttEstimation$.getValue())==null?void 0:j.toFixed(0))!=null?te:0,m=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ua} (core: ${m_.VERSION}, stat: ${v_.VERSION}, shared: ${jd.VERSION})`,v=he(i.state.errorLog$),b=v.length?`
45
+ `+v.map((X,_e)=>{var ue;let Ee=`${_e}) Type: ${X.id}
46
+ `,de=`Message: ${X.message} (${X.thrown})
47
+ `,ze=`Trace: ${(ue=X.thrown)==null?void 0:ue.stack}
48
+ `;return Ee+de+ze}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":he(i.state.isAudioAvailable$)?void 0:"unavailable",_=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),I=[];_&&I.push(`Video: ${(ee=_==null?void 0:_.codec)!=null?ee:""}`+(_!=null&&_.hdr?" (HDR)":"")),x&&I.push(`Audio: ${(oe=x==null?void 0:x.codec)!=null?oe:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=a.currentQuality$.getValue(),D="";if(T){let X=a.availableQualitiesFps$.getValue()[T];D=X?`${X}fps`:""}let A=a.httpConnectionType$.getValue(),E=(le=(ae=a.currentBuffer$.getValue())==null?void 0:ae.end)!=null?le:0,V=Math.max(E-he(i.state.positionExact$),0),q={Version:p,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:o,VSID:he(i.vsid),"Content host":a.hostname$.getValue(),"Connection type":A?A+(a.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${s}Kbps @ ${u}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:I.join(", "),Quality:`${m} ${T!=null?T:""} ${D}`,"Available qualities":a.availableQualities$.getValue().join(", "),Audio:y,Position:`${he(i.state.positionExact$)}s`,Buffer:`${V}s`,State:`${he(i.playerPhase)} ${(ce=a.playbackState$.getValue())!=null?ce:""}`,"Player size":`${l}x${d}`,URL:window.location.href,Errors:b};return Object.entries(q).filter(([X,_e])=>_e!==void 0).map(([X,_e])=>`${X}: ${_e}`).join(`
50
+ `)},$_=(t,e,i)=>{var L,z,j,te;let o=t.info,{width:r,height:a}=he(i.ui.playerSize),l={version:Ua,viewport:`${r}x${a}`,volume:Math.round(he(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 m=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),b=o.liveBufferTime$.getValue();m&&p&&(v&&b?(l.buffer=m.end-b,l.nativeBuffer=p.end-b):(l.buffer=Math.max(m.end-he(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-he(i.state.positionExact$),0))),l.position=he(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let _=o.videoBitrate$.getValue();_&&(l.bitrate=_);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let D=he(i.vsid);typeof D=="string"&&(l.vsid=D);let A=(L=t.info.currentVideoStream$.getValue())==null?void 0:L.codec;A&&(l.videoCodec=A);let E=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;E&&(l.audioCodec=E),((j=t.info.currentVideoStream$.getValue())==null?void 0:j.hdr)&&(l.hdr=!0);let q=(te=t.info.currentAudioStream$.getValue())==null?void 0:te.language;return q&&(l.audioLanguage=q),l},y_=(t,e)=>za(t,e,"mp4"),x_=t=>!t.type,w_=t=>!!t.type,S_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Du=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var pi=require("@vkontakte/videoplayer-shared/es2018"),PV=require("@vkontakte/videoplayer-core/es2018"),Q1="vk_player_",C_="vk_player_prefer_traffic_saving_enabled",T_="vk_player_preferred_volume",I_="vk_player_prefer_volume_mute",Uf="vk_player_preferred_quality",Bf="vk_player_preferred_default_quality_settings",Hf="vk_player_preferred_quality_settings_by_video",E_="vk_player_preferred_stream_language",P_="vk_player_preferred_rate",A_="vk_player_preferred_autoplay_next",Ff="vk_player_preferred_subtitles_language",k_="vk_player_user_video_prefs",L_=`${Q1}preview_track_close_tooltip`,M_=t=>t>1?1:t<0?0:t,zf=t=>pi.safeStorage.set(T_,M_(t).toString(10)),Ou=()=>{let t=pi.safeStorage.get(T_);return(0,pi.isNullable)(t)?void 0:M_(parseFloat(t))},Wf=(t,e)=>pi.safeStorage.set(Uf,JSON.stringify({videoId:t,value:e})),Bu=()=>pi.safeStorage.remove(Uf),Kf=t=>{let e=pi.safeStorage.get(Uf);if((0,pi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Bu();return}return o},V_=(t,e)=>{e?pi.safeStorage.set(t,"true"):pi.safeStorage.remove(t)},qf=t=>pi.safeStorage.get(t)==="true",Qf=t=>V_(I_,t),R_=()=>qf(I_),Xd=t=>V_(C_,t),Gf=()=>qf(C_),D_=()=>pi.safeStorage.get(E_),Yf=t=>pi.safeStorage.set(E_,t),jf=()=>pi.safeStorage.get(Ff),Xf=t=>{t?pi.safeStorage.set(Ff,t):pi.safeStorage.remove(Ff)},N_=t=>pi.safeStorage.set(P_,JSON.stringify({rate:t})),O_=()=>{let t=pi.safeStorage.get(P_);if((0,pi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},B_=t=>{pi.safeStorage.set(A_,String(t))},H_=()=>qf(A_),G1=()=>{let t=m=>{pi.safeStorage.set(Bf,JSON.stringify(m))},e=()=>{try{let m=pi.safeStorage.get(Bf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=pi.safeStorage.get(Hf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{pi.safeStorage.set(Hf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)return{...p,appliesTo:"to-video"};p&&a();let v=e();return v?{...v,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{pi.safeStorage.remove(Hf)},l=()=>{pi.safeStorage.remove(Bf)},d=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":Xd(!0);break;case"exact_quality":Wf(m,p.quality)}a(),l()}},u=m=>{let p=Kf(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}Gf()&&t({type:"traffic_saving",videoId:m}),Xd(!1),Bu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:jf,savePreferredSubtitlesLanguage:Xf}},{getPreferredQualitySettings:F_,migrateSettingsToLegacyWay:U_,savePreferredQualitySettings:Hu,savePreferredDefaultQualitySettings:AV,removePreferredQualitySettingsByVideo:kV,getPreferredDefaultQualitySettings:Fu}=G1(),Y1=3,j1=3,z_=()=>{let t=pi.safeStorage.get(k_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Uu=(t,e)=>{var r,a;let i=z_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},Zf=(t,e,i)=>{var l,d,s;let o=(l=z_())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=X1(o);pi.safeStorage.set(k_,JSON.stringify(a))};function X1(t){let e=Object.entries(t).reduce((o,[r,a])=>{let l=0;return Object.values(a).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(j1),e.reduce((o,[r])=>(o[r]=Z1(t[r]),o),{})}function Z1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Y1),Object.fromEntries(e)}function W_(){pi.safeStorage.set(L_,JSON.stringify(!0))}function K_(){let t=pi.safeStorage.get(L_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var og=require("@vkontakte/videoplayer-core/es2018");Yg();var sa="var(--btn-color, #fff)";var J1=Ae('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),e0=Ae('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Xe(t,e){var m;H(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,sa),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=e0(),d=C(l);{var s=p=>{var v=J1(),b=se(v),y=C(b);ei(y,()=>e.children),S(b),Xt(),$(p,v)},u=p=>{var v=Re(),b=se(v);ei(b,()=>e.children),$(p,v)};M(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),O(()=>{De(l,"aria-label",e.ariaLabel),De(l,"aria-hidden",!e.ariaLabel),De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",a),De(l,"fill",r()),Ke(l,e.style),De(l,"data-testid",e.testId)}),$(t,l),F()}var Wl=require("@vkontakte/videoplayer-shared/es2018");var t0={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",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:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
51
51
  качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
52
- попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},z_=Z1;var J1={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 at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all 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
+ попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},q_=t0;var i0={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 at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all 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 the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},W_=J1;var Bs=new Map;Bs.set(Kl.InterfaceLanguage.EN,W_);Bs.set(Kl.InterfaceLanguage.RU,z_);var K_=new Map,Zf=({language:t,pack:e,fallback:i})=>{if(Bs.has(t)){let o=Bs.get(t);Bs.set(t,{...o,...e})}else Bs.set(t,e);K_.set(t,i)},Jf=t=>Bs.has(t),em=(t,e,i,o)=>{var l;let r=Bs.get(t),a=r==null?void 0:r[e];if((0,Kl.isNullable)(a)){let d=(l=K_.get(t))!=null?l:o,s=d?Bs.get(d):void 0;a=s==null?void 0:s[e]}return(0,Kl.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=i[s])!=null?u:""}):a},q=(t,e)=>{let{interfaceLanguage$:i}=ye(),o=_e(i),r=Mt();return em(o,t,e,r.defaultLanguage)};var e0=Ae('<path d="M26.86 15.18a3.7 3.7 0 0 0 2.53-3.6C29.4 8.91 27.2 7 24.07 7c-1.96 0-3.57.78-4.67 2.29l-.1.15a1.33 1.33 0 0 0 .26 1.85c.54.4 1.3.35 1.74-.16l.2-.25a3 3 0 0 1 2.5-1.3c1.53 0 2.6.91 2.6 2.25 0 1.36-1.09 2.27-2.65 2.27h-.58a1.23 1.23 0 0 0 0 2.47h.58c1.75 0 2.91.98 2.91 2.39 0 1.45-1.19 2.46-2.88 2.46a3.2 3.2 0 0 1-2.89-1.6l-.2-.29a1.4 1.4 0 0 0-2.05-.25 1.3 1.3 0 0 0-.3 1.68l.21.33A6 6 0 0 0 24 24c3.28 0 5.63-2.04 5.63-4.92a4 4 0 0 0-2.77-3.9M37.73 12.68c-.46 0-1 .04-1.5.16L38.8 9.1a1.34 1.34 0 1 0-2.2-1.52l-3.76 5.47C31.43 15.18 31 16.87 31 18.33 31 21.8 33.56 24 37.19 24c3.6 0 6.16-2.4 6.16-5.77a5.4 5.4 0 0 0-5.63-5.56m-.53 8.74c-1.98 0-3.33-1.27-3.33-3.14 0-1.85 1.35-3.14 3.33-3.14 1.95 0 3.3 1.29 3.3 3.14 0 1.87-1.35 3.14-3.3 3.14m20.8-5.9c0 5.03-2.7 8.43-6.63 8.43s-6.62-3.4-6.62-8.44 2.7-8.44 6.62-8.44S58 10.47 58 15.51m-10.35 0c0 3.56 1.49 5.85 3.72 5.85s3.72-2.3 3.72-5.86-1.48-5.86-3.72-5.86c-2.23 0-3.72 2.3-3.72 5.86M67 9.49A3.5 3.5 0 0 1 63.51 13 3.5 3.5 0 0 1 60 9.49 3.5 3.5 0 0 1 63.51 6 3.5 3.5 0 0 1 67 9.49m-5 0c0 .83.68 1.51 1.51 1.51.81 0 1.5-.68 1.5-1.51 0-.81-.69-1.5-1.5-1.5-.83 0-1.51.69-1.51 1.5ZM67 23.5c0-1.32-1.2-3.1-4.2-4.67a1.5 1.5 0 1 1 1.4-2.66c3.25 1.72 5.8 4.26 5.8 7.33 0 3.13-2.56 5.55-6.09 7.27-3.63 1.77-8.82 3.06-15.26 3.72a1.5 1.5 0 0 1-.3-2.98c6.25-.64 11.05-1.88 14.25-3.44 3.3-1.6 4.4-3.27 4.4-4.57M38.88 35H38c-9.64 0-17.45-1.13-22.9-3.02-2.72-.94-4.94-2.1-6.5-3.47C7.01 27.14 6 25.44 6 23.5a6.2 6.2 0 0 1 1.9-4.25 16 16 0 0 1 4.43-3.1 1.5 1.5 0 1 1 1.34 2.7q-2.39 1.19-3.59 2.46C9.3 22.14 9 22.87 9 23.5c0 .8.4 1.74 1.57 2.76s3 2.01 5.51 2.89C21.11 30.89 28.55 32 38 32h.88l-1.44-1.44a1.5 1.5 0 0 1 2.12-2.12l4 4h.01a1.5 1.5 0 0 1 .32 1.63 2 2 0 0 1-.33.5l-4 4a1.5 1.5 0 0 1-2.12-2.13z"></path>');function Yd(t,e){B(e,!1);let i=q("video360");Xo(),je(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=e0();b(o,a)},$$slots:{default:!0}}),F()}var GV=require("@vkontakte/videoplayer-core/es2018");var is=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(is||{});var zu=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()},Wu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Q_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,q_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},jd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},la=()=>!!jd(),Ku=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Qu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},G_=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var tm=require("@vkontakte/videoplayer-core/es2018"),Y_=()=>({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:tm.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:tm.clientChecker.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});var Ql=require("@vkontakte/videoplayer-shared/es2018");function im(t,e){B(e,!1);let i=ye();Lt(()=>{i.getAdmanWrapper().startPostroll()}),Xo(),F()}var j_=require("@vkontakte/videoplayer-shared/es2018");var t0=Ae('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),i0=Ae('<path 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.272L5.773 8z"></path>');function Vr(t,e){B(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),l=m(()=>`chevron-icon--${i()}`),d=m(()=>(()=>{let f="";return n(a)&&(f+="transform: rotate(180deg);"),f.length?f:void 0})()),s=m(()=>o()?aa:"currentColor"),u=m(()=>n(r)?"7":"16");je(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(f,p)=>{var v=Ve(),_=le(v);{var y=x=>{var I=t0();b(x,I)},$=x=>{var I=i0();b(x,I)};M(_,x=>{n(r)?x(y):x($,!1)})}b(f,v)},$$slots:{default:!0}}),F()}var o0=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},n0=L('<div class="skip s-17"> <!></div>'),r0=L("<div><!></div>"),s0={hash:"s-17",code:".container.s-17{background:rgba(0,0,0,.56);border-radius:6px;color:#fff;font-size:13px;padding:6px 10px;position:absolute;right:16px;top:14px;transition:color .2s}.container-mobile.s-17{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-17{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-17{color:var(--white);cursor:pointer}.skippable.s-17:hover{color:hsla(0,0%,100%,.75)}"};function om(t,e){B(e,!0),Q(t,s0);let[i,o]=Oe(),r=()=>w(u,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,j_.noop),u=ye().ui.isMobile,f=m(()=>a()>0&&a()>=l());var p=r0();let v;p.__click=[o0,f,d];var _=C(p);{var y=x=>{var I=n0(),T=C(I),R=A(T);Vr(R,{direction:"right"}),S(I),N(k=>ve(T,`${k!=null?k:""} `),[()=>q("skip_ads_now")]),b(x,I)},$=x=>{var I=hs();N(T=>ve(I,T),[()=>q("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),b(x,I)};M(_,x=>{n(f)?x(y):x($,!1)})}S(p),N(x=>v=oe(p,1,"container s-17",null,v,x),[()=>({"container-mobile":r(),skippable:n(f)})]),b(t,p),F(),o()}et(["click"]);var a0=L('<button class="go-to-site s-14"> </button>'),l0={hash:"s-14",code:"button.go-to-site.s-14{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function nm(t,e){B(e,!1),Q(t,l0),Xo();var i=a0(),o=C(i,!0);S(i),N(r=>ve(o,r),[()=>q("visit_advertiser")],mr),b(t,i),F()}var d0=L('<div class="top-gradient-mobile s-h"></div>'),c0=L('<div class="container s-h"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),u0={hash:"s-h",code:".container.s-h{height:100%;width:100%}.top-gradient-mobile.s-h{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function Xd(t,e){B(e,!0),Q(t,u0);let[i,o]=Oe(),r=()=>w(U,"$canSkipAd",i),a=()=>w(H,"$adPlaybackState",i),l=()=>w(R,"$isMobile",i),d=()=>w(G,"$adPosition",i),s=()=>w(se,"$secondsToWatchBeforeSkipAd",i),u=()=>w(T,"$isVideoEnded",i),f=g(e,"adsSlotId",3,void 0),p=g(e,"adsParams",3,void 0),v=g(e,"adsAutoplayParam",3,void 0),_=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),$=g(e,"adsJson",3,void 0),x=ye(),I=Mt(),T=x.state.isEnded$,R=x.ui.isMobile,k=I.ads.isMobileGoToSiteButton,P=K(void 0),E=K(void 0),W=!1,H=x.ads.playbackState,U=x.ads.canSkip,G=x.ads.position,se=x.ads.secondsToWatchBeforeSkip,te=m(()=>r()&&a()!=="inactive"),J=m(()=>l()&&a()!=="inactive"&&k);Lt(()=>{let Z=x.getAdmanWrapper();if(Ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ql.now)(),f()]}),!f()){Z.onAdmanLoadingError();return}let O=()=>{var Le;let{width:tt,height:ke}=_e(x.ui.playerSize),j=_e(x.ui.isFullscreen),ne=(Le=v())!=null?Le:_e(x.ui.isAutoplay),Se=I.ads.paramsOverride;return{width:tt,height:ke,isFullscreen:j,isAutoplay:ne,adsContainer:n(P),adsVideoElement:n(E),slotId:f(),params:p(),paramsOverride:Se,duration:_(),externalApi:y(),json:$()}},fe=async tt=>{tt&&await vo();let ke=O();await Z.initAdman(ke),W=!0},ce=new AbortController,Re=()=>{ce.abort()};return window.AdmanHTML?fe(!0).catch(()=>{Z.onAdmanLoadingError()}):Z.loadAdman(ce.signal).then(()=>fe(!1)).catch(()=>{Z.onAdmanLoadingError()}),()=>{Ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ql.now)(),f()]}),!W&&Re()}});var Y=c0(),Ie=C(Y);{var ue=Z=>{var O=d0();b(Z,O)};M(Ie,Z=>{l()&&Z(ue)})}var ie=A(Ie,2);it(ie,Z=>D(E,Z),()=>n(E));var ge=A(ie,2);{var Pe=Z=>{om(Z,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return x.actions.internal.skipAd}})};M(ge,Z=>{n(te)&&Z(Pe)})}var de=A(ge,2);{var Ke=Z=>{im(Z,{})};M(de,Z=>{u()&&Z(Ke)})}var pe=A(de,2);{var me=Z=>{nm(Z,{})};M(pe,Z=>{n(J)&&Z(me)})}S(Y),it(Y,Z=>D(P,Z),()=>n(P)),b(t,Y),F(),o()}var Zo=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 r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var p0=Ae('<path fill="#fff"></path>'),f0=Ae("<path></path><!>",1);function Zd(t,e){let i=g(e,"isActive",3,!1),o=m(()=>i()?"live-active-icon":"live-icon"),r=m(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="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.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";je(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=f0(),u=le(s),f=A(u);{var p=v=>{var _=p0();De(_,"d",a),b(v,_)};M(f,v=>{i()&&v(p)})}N(()=>De(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),b(l,s)},$$slots:{default:!0}})}var m0=L('<div class="equalizer s-b"><div class="col s-b"></div> <div class="col s-b"></div> <div class="col s-b"></div></div>'),v0=L('<div class="live-icon s-b"><!></div>'),g0=L('<span class="text s-b"> </span>'),h0=L("<div><!> <!></div>"),_0={hash:"s-b",code:".wrapper.s-b{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-b{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-b{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-b .equalizer:where(.s-b){margin-top:-2px}.equalizer.s-b .col:where(.s-b){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-b .equalizer:where(.s-b) .col:where(.s-b){animation-play-state:running}.equalizer.s-b .col:where(.s-b):first-child{animation-name:s-b-thumb-timer-equalizer-col1;left:0}.equalizer.s-b .col:where(.s-b):nth-child(2){animation-name:s-b-thumb-timer-equalizer-col2;left:3px}.equalizer.s-b .col:where(.s-b):nth-child(3){animation-name:s-b-thumb-timer-equalizer-col3;left:6px}.live-icon.s-b{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-b-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-b-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-b-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-b{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function Jd(t,e){Q(t,_0);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=h0();let l;var d=C(a);{var s=v=>{var _=m0();b(v,_)};M(d,v=>{i()&&v(s)})}var u=A(d,2);{var f=v=>{var _=v0(),y=C(_);Zd(y,{isActive:!0}),S(_),b(v,_)},p=v=>{var _=g0(),y=C(_,!0);S(_),N(()=>ve(y,e.time)),b(v,_)};M(u,v=>{o()?v(f):v(p,!1)})}S(a),N(v=>l=oe(a,1,"wrapper s-b",null,l,v),[()=>({live:o(),playing:r()})]),b(t,a)}var ql=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var b0=L('<div role="timer" data-testid="thumb-timer"><!></div>'),$0={hash:"s-k",code:".thumb-timer.s-k{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function ec(t,e){B(e,!0),Q(t,$0);let[i,o]=Oe(),r=()=>w(f,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Mt(),u=m(()=>Zo(e.duration-e.position)),f=ae(!1);var p=b0();let v;var _=C(p);Jd(_,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),Ns(p,()=>ql(a()&&s.features.usePerformanceFix,f,s.disableInvisibleComponentsTimeout)),N(y=>v=oe(p,1,"thumb-timer s-k",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),b(t,p),F(),o()}var Gl=t=>{if(!navigator.clipboard){X_(t);return}navigator.clipboard.writeText(t).catch(()=>X_(t))};function X_(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 Yu=require("@vkontakte/videoplayer-core/es2018");var sm=require("@vkontakte/videoplayer-core/es2018");var rm="focus-hidden";var Rr=t=>{t.stopPropagation(),t.preventDefault()},am=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(rm)},x0=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},w0=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},S0=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},C0=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Z_=t=>t.code==="Escape",T0=t=>t.code==="ArrowLeft",tc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},J_=t=>{S0(t)?(Rr(t),w0(t.target)):C0(t)&&(Rr(t),x0(t.target))},ua=t=>!sm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||sm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Yl=async(t,e,i)=>{await vo(),t&&!t.classList.contains("opened")&&!e&&_e(i)&&(await vo(),i.set(!1),t.focus())},eb=async(t,e,i)=>{await vo(),t&&!e&&_e(i)&&(i.set(!1),t.focus())},ic=async(t,e,i,o=!1)=>{if(await vo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(rm,!i),a==null||a.focus()}},tb=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},qu=(t,e)=>{J_(t),am(t.target),Z_(t)&&(Rr(t),e())},Gu=async(t,e)=>{tc(t,["ArrowRight"])&&(Rr(t),e())},ib=async(t,e,i)=>{if(J_(t),T0(t)){Rr(t),e();return}Z_(t)&&(Rr(t),i())},jl=(t,e)=>{tc(t)&&(Rr(t),e())},ob=(t,e,i)=>{if(tc(t))Rr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Rr(t);return}o==="ArrowRight"&&!e&&(i(!0),Rr(t))}},nb=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},rb=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var Ka=require("@vkontakte/videoplayer-shared/es2018");var os={"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 lm=require("@vkontakte/videoplayer-shared/es2018");var E0=(t,e)=>{jl(t,()=>e())},P0=L('<li class="item s-1t" role="menuitem" tabindex="0"> </li>'),A0={hash:"s-1t",code:".item.s-1t{color:hsla(0,0%,100%,.72);cursor:pointer;display:block;font-size:13px;letter-spacing:-.14px;line-height:18px;padding:8px 16px;position:relative;white-space:nowrap}.item.s-1t:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function dm(t,e){B(e,!0),Q(t,A0);let i=g(e,"onClick",3,lm.noop),o=g(e,"closeContextMenu",3,lm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=P0();a.__click=r,a.__keydown=[E0,r];var l=C(a,!0);S(a),N(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),ve(l,e.label)}),b(t,a),F()}et(["click","keydown"]);var Wa=(t,e)=>t.weight-e.weight;var Xl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Xl||{});var k0=(t,e)=>{qu(t,e)},L0=t=>{t.preventDefault()},M0=L('<ul role="menu" data-testid="context-menu" class="s-19"></ul>'),V0={hash:"s-19",code:"ul.s-19{background:rgba(0,0,0,.72);border-radius:8px;list-style:none;margin:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:6px 0;position:absolute;transition:visibility .1s,opacity .1s;z-index:var(--context-menu-z-index)}"};function cm(t,e){B(e,!0),Q(t,V0);let[i,o]=Oe(),r=()=>w(Ie,"$playerPhase",i),a=()=>w(se,"$isLive$",i),l=()=>w(ue,"$isPiPEnabled$",i),d=()=>w(G,"$chromecastState$",i),s=()=>w(ie,"$pictureInPictureApiIsActive$",i),u=()=>w(Y,"$isLooped$",i),f=()=>w(te,"$positionExact$",i),p=()=>w(W,"$additionalContextMenuItems$",i),v=g(e,"visible",3,!1),_=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),$=g(e,"menuElementRef",15,void 0),x=K(0),I=K(0),T=ye(),{pictureInPicture$:R}=$o(),k=Mt(),P=T.ui.contextMenu.visible$,E=T.ui.debugPanelVisible,W=T.ui.additionalContextMenuItems$,H=T.ui.t,U=T.actions.internal.togglePictureInPicture,G=T.state.chromecastState$,se=T.state.isLive$,te=T.state.positionExact$,J=T.state.isInteractive,Y=T.state.looped$,Ie=T.playerPhase,{isEnabled$:ue,isActive$:ie}=R,ge=m(()=>r()==="video"),Pe=m(()=>!!a()&&n(ge)),de=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ke=m(()=>{var $e;return k.features.copyVideoLink&&(($e=T.callbacks)==null?void 0:$e.onCopyVideoLink)}),pe=m(()=>n(Ke)&&!n(de)&&!J&&!n(Pe)),me=m(()=>{var $e;return!!(($e=T.callbacks)!=null&&$e.onCopyEmbedCodeClicked)}),Z=m(()=>l()&&d()!==Yu.ChromecastState.CONNECTED&&!J&&n(ge)&&!Yu.clientChecker.browser.isFirefox),O=m(()=>!J&&!n(de)&&!n(Pe)),fe=m(()=>k.features.videoRotate&&!J&&!n(de)),ce=m(()=>k.showSupport&&!s()),Re=m(()=>k.features.saveTraceInfoToFile),tt=()=>{var $e;P.set(!1),($e=e.returnFocus)==null||$e.call(e)},ke=($e,qe)=>{if(!$()||!y())return;let ze=$().getBoundingClientRect(),st=y().getBoundingClientRect();D(x,$e-st.left),D(I,qe-st.top),n(x)+ze.width>st.width&&D(x,st.width-ze.width),n(I)+ze.height>st.height&&D(I,st.height-ze.height),D(x,Math.max(n(x),0),!0),D(I,Math.max(n(I),0),!0)};Fe(()=>{(async()=>{if($()&&y()){await vo();let{top:qe,left:ze,bottom:st,right:Gt}=_(),Pt=ze!=null?ze:0,Xt=qe!=null?qe:0,_i=$().getBoundingClientRect();(0,Ka.isNullable)(ze)&&!(0,Ka.isNullable)(Gt)&&(Pt=Gt-_i.width),(0,Ka.isNullable)(qe)&&!(0,Ka.isNullable)(st)&&(Xt=st-_i.height),Pt=Math.max(Pt,0),Xt=Math.max(Xt,0),ke(Pt,Xt)}})()});let j=()=>{T.actions.internal.videoRotate()},ne=()=>{(0,Ka.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Se=()=>{let $e=T.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let qe=new Blob([...$e],{type:"plain/text"}),ze=window.URL.createObjectURL(qe);Ua(ze,"vk_player_debug_info","txt")}else Gl(T.actions.internal.getDebugTextData())},Le=()=>{let $e=T.actions.internal.getTraceTextData(),qe=new Blob([...$e],{type:"application/json"}),ze=window.URL.createObjectURL(qe);Ua(ze,"vk_player_trace_info","json")},We=()=>{E.set(!0)},Ce=async()=>{var $e;try{U()}finally{($e=e.returnFocus)==null||$e.call(e)}},we=()=>{T.actions.internal.setLooped(!u())},Be=()=>{var $e,qe;if(n(me)){let ze=(qe=($e=T.callbacks)==null?void 0:$e.onCopyEmbedCodeClicked)==null?void 0:qe.call($e);ze&&Gl(ze)}},rt=($e=!1)=>{var qe,ze;if((qe=T.callbacks)!=null&&qe.onCopyVideoLink){let st=(ze=T.callbacks)==null?void 0:ze.onCopyVideoLink($e,f());st&&Gl(st)}},mt=m(()=>k.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Vt=m(()=>n(Ke)?{id:"copy-link",weight:os["copy-link"],label:H("menu_copy_video_link"),onClick:()=>rt()}:void 0),lt=m(()=>n(pe)?{id:"copy-link-timestamp",weight:os["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>rt(!0)}:void 0),jt=m(()=>n(me)?{id:"copy-embed-code",weight:os["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Be}:void 0),St=m(()=>n(Z)?{id:"pip",weight:os.pip,label:s()?H("menu_pip_close"):H("menu_pip"),onClick:Ce}:void 0),Ut=m(()=>n(O)?{id:"video-loop",weight:os["video-loop"],label:u()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:we}:void 0),Rt=m(()=>n(fe)?{id:"rotate",weight:os.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:j}:void 0),zt=m(()=>n(ce)?{id:"report",weight:os.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:ne}:void 0),xe=m(()=>({id:"save-debug",weight:os["save-debug"],label:n(mt),onClick:Se})),X=m(()=>n(Re)?{id:"save-trace",weight:os["save-trace"],label:H("menu_save_debug"),onClick:Le}:void 0),Ne=m(()=>({id:"debug-info",weight:os["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:We})),be=m(()=>[n(Vt),n(lt),n(jt),n(St),n(Ut),n(Rt),n(zt),n(xe),n(X),n(Ne),...p()].filter($e=>!!$e).sort(Wa));var Ue=Ve(),Te=le(Ue);{var $t=$e=>{var qe=M0();qe.__contextmenu=[L0],qe.__keydown=[k0,tt],yi(qe,21,()=>n(be),ze=>ze.id,(ze,st)=>{dm(ze,{get id(){return n(st).id},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},get onClick(){return n(st).onClick},closeContextMenu:tt})}),S(qe),it(qe,ze=>$(ze),()=>$()),N(()=>{var ze,st;return Qe(qe,`top: ${(ze=n(I))!=null?ze:""}px; left: ${(st=n(x))!=null?st:""}px;`)}),b($e,qe)};M(Te,$e=>{v()&&$e($t)})}b(t,Ue),F(),o()}et(["contextmenu","keydown"]);var ju=class{constructor(e){this.value=e,this.next=null}};var Zl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new ju(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 R0=L('<div class="container s-z"><canvas class="s-z"></canvas></div>'),D0={hash:"s-z",code:".container.s-z{display:inline-block;height:16px;width:120px}canvas.s-z{margin-top:2px;transform:scaleY(-1)}"};function oc(t,e){B(e,!0),Q(t,D0);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Lt(()=>{n(o).width=l,n(o).height=a,D(r,n(o).getContext("2d"),!0)});function u(v,_,y,$,x){x===0&&(x=1),v.fillStyle="#fff",v.fillRect(_,y,$,x)}Fe(()=>{let v="";if(n(r)){let _=i()[0];for(let $=1;$<i().length;$++)i()[$]>_&&(_=i()[$]);n(r).clearRect(0,0,l,a);let y=d-1;for(let $=i().length-1;$>=0;$--){let x=y*s,I=_>0?a*(i()[$]/_):0;u(n(r),x,0,s,I),v=I+" "+v,y--}}});var f=R0(),p=C(f);it(p,v=>D(o,v),()=>n(o)),S(f),b(t,f),F()}var um=require("@vkontakte/videoplayer-shared/es2018");var N0=(t,e)=>{t.stopPropagation(),um.safeStorage.remove(zd),e.set(!1)},O0=L('<div class="s-i"><div class="s-i">Video id</div> <span> </span></div>'),B0=L('<div class="s-i"><div class="s-i">VSID</div> <span> </span></div>'),F0=L('<div class="s-i"><div class="s-i">Provider</div> <span> </span></div>'),H0=L('<div class="s-i"><div class="s-i">Streams</div> <span> </span></div>'),U0=L('<div class="s-i"><div class="s-i">Viewport</div> <span> </span></div>'),z0=L('<div class="s-i"><div class="s-i">Video size</div> <span> </span></div>'),W0=L('<div class="s-i"><div class="s-i">CDN host</div> <span> </span></div>'),K0=L('<div class="s-i"><div class="s-i">Volume</div> <span> </span></div>'),Q0=L('<div class="s-i"><div class="s-i">Position</div> <span> </span></div>'),q0=L('<div class="s-i"><div class="s-i">Buffer</div> <span> </span></div>'),G0=L('<div class="s-i"><div class="s-i">Nbuffer</div> <span> </span></div>'),Y0=L('<div class="s-i"><div class="s-i">Live latency</div> <span> </span></div>'),j0=L('<div class="s-i"><div class="s-i">Segment</div> <span> </span></div>'),X0=L('<div class="s-i"><div class="s-i">Network</div> <!> <span> </span></div>'),Z0=L('<div class="s-i"><div class="s-i">V bitrate</div> <!> <span> </span></div>'),J0=L('<div role="region"><button class="close s-i" title="закрыть">[x]</button> <div class="content s-i"><div class="s-i"><div class="s-i">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-i"><div class="s-i">Dropped</div> <span> </span></div> <!> <!> <div class="s-i"><div class="s-i">FPS</div> <!> <span> </span></div></div></div>'),ey={hash:"s-i",code:".container.s-i{background:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:10px;left:20px;min-width:160px;position:absolute;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container-mobile.s-i{left:16px;top:16px}button.close.s-i{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-i{padding:5px}.content.s-i>div:where(.s-i)>div:where(.s-i){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function nc(t,e){B(e,!0),Q(t,ey);let[i,o]=Oe(),r=()=>w(d,"$isMobile",i),a=ye(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(ni(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=K(0),p=K(0),v=K(0),_=new Zl(60),y=new Zl(60),$=new Zl(60),x=K(ni([])),I=K(ni([])),T=K(ni([])),R=q("aria_label_debug_panel");Lt(()=>{um.safeStorage.set(zd,"true"),a.actions.internal.startLogging(),u&&(D(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),D(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let xe=window.setInterval(()=>{D(s,a.actions.internal.getDebugPanelData(),!0)},500),X;return u&&(X=window.setInterval(()=>{if(u){D(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let Ne=u.getVideoPlaybackQuality().totalVideoFrames;D(v,Ne-n(f)),D(f,Ne,!0),_.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&$.push(n(s).bitrate),D(x,_.getValuesFromBottom(),!0),D(I,y.getValuesFromBottom(),!0),D(T,$.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(xe),X&&clearInterval(X)}});var k=J0();let P;var E=C(k);E.__click=[N0,l];var W=A(E,2),H=C(W),U=A(C(H),2),G=C(U,!0);S(U),S(H);var se=A(H,2);{var te=xe=>{var X=O0(),Ne=A(C(X),2),be=C(Ne,!0);S(Ne),S(X),N(()=>ve(be,n(s).id)),b(xe,X)};M(se,xe=>{n(s).id&&xe(te)})}var J=A(se,2);{var Y=xe=>{var X=B0(),Ne=A(C(X),2),be=C(Ne,!0);S(Ne),S(X),N(()=>ve(be,n(s).vsid)),b(xe,X)};M(J,xe=>{n(s).vsid&&xe(Y)})}var Ie=A(J,2);{var ue=xe=>{var X=F0(),Ne=A(C(X),2),be=C(Ne,!0);S(Ne),S(X),N(()=>ve(be,n(s).provider)),b(xe,X)};M(Ie,xe=>{n(s).provider&&xe(ue)})}var ie=A(Ie,2);{var ge=xe=>{var X=H0(),Ne=A(C(X),2),be=C(Ne);S(Ne),S(X),N(()=>{var Ue,Te;return ve(be,`Video: ${(Ue=n(s).videoCodec||"")!=null?Ue:""} ${n(s).hdr?"(HDR)":""}
54
+ Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},Q_=i0;var Ns=new Map;Ns.set(Wl.InterfaceLanguage.EN,Q_);Ns.set(Wl.InterfaceLanguage.RU,q_);var G_=new Map,Jf=({language:t,pack:e,fallback:i})=>{if(Ns.has(t)){let o=Ns.get(t);Ns.set(t,{...o,...e})}else Ns.set(t,e);G_.set(t,i)},em=t=>Ns.has(t),tm=(t,e,i,o)=>{var l;let r=Ns.get(t),a=r==null?void 0:r[e];if((0,Wl.isNullable)(a)){let d=(l=G_.get(t))!=null?l:o,s=d?Ns.get(d):void 0;a=s==null?void 0:s[e]}return(0,Wl.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=i[s])!=null?u:""}):a},G=(t,e)=>{let{interfaceLanguage$:i}=ye(),o=he(i),r=Mt();return tm(o,t,e,r.defaultLanguage)};var o0=Ae('<path d="M26.86 15.18a3.7 3.7 0 0 0 2.53-3.6C29.4 8.91 27.2 7 24.07 7c-1.96 0-3.57.78-4.67 2.29l-.1.15a1.33 1.33 0 0 0 .26 1.85c.54.4 1.3.35 1.74-.16l.2-.25a3 3 0 0 1 2.5-1.3c1.53 0 2.6.91 2.6 2.25 0 1.36-1.09 2.27-2.65 2.27h-.58a1.23 1.23 0 0 0 0 2.47h.58c1.75 0 2.91.98 2.91 2.39 0 1.45-1.19 2.46-2.88 2.46a3.2 3.2 0 0 1-2.89-1.6l-.2-.29a1.4 1.4 0 0 0-2.05-.25 1.3 1.3 0 0 0-.3 1.68l.21.33A6 6 0 0 0 24 24c3.28 0 5.63-2.04 5.63-4.92a4 4 0 0 0-2.77-3.9M37.73 12.68c-.46 0-1 .04-1.5.16L38.8 9.1a1.34 1.34 0 1 0-2.2-1.52l-3.76 5.47C31.43 15.18 31 16.87 31 18.33 31 21.8 33.56 24 37.19 24c3.6 0 6.16-2.4 6.16-5.77a5.4 5.4 0 0 0-5.63-5.56m-.53 8.74c-1.98 0-3.33-1.27-3.33-3.14 0-1.85 1.35-3.14 3.33-3.14 1.95 0 3.3 1.29 3.3 3.14 0 1.87-1.35 3.14-3.3 3.14m20.8-5.9c0 5.03-2.7 8.43-6.63 8.43s-6.62-3.4-6.62-8.44 2.7-8.44 6.62-8.44S58 10.47 58 15.51m-10.35 0c0 3.56 1.49 5.85 3.72 5.85s3.72-2.3 3.72-5.86-1.48-5.86-3.72-5.86c-2.23 0-3.72 2.3-3.72 5.86M67 9.49A3.5 3.5 0 0 1 63.51 13 3.5 3.5 0 0 1 60 9.49 3.5 3.5 0 0 1 63.51 6 3.5 3.5 0 0 1 67 9.49m-5 0c0 .83.68 1.51 1.51 1.51.81 0 1.5-.68 1.5-1.51 0-.81-.69-1.5-1.5-1.5-.83 0-1.51.69-1.51 1.5ZM67 23.5c0-1.32-1.2-3.1-4.2-4.67a1.5 1.5 0 1 1 1.4-2.66c3.25 1.72 5.8 4.26 5.8 7.33 0 3.13-2.56 5.55-6.09 7.27-3.63 1.77-8.82 3.06-15.26 3.72a1.5 1.5 0 0 1-.3-2.98c6.25-.64 11.05-1.88 14.25-3.44 3.3-1.6 4.4-3.27 4.4-4.57M38.88 35H38c-9.64 0-17.45-1.13-22.9-3.02-2.72-.94-4.94-2.1-6.5-3.47C7.01 27.14 6 25.44 6 23.5a6.2 6.2 0 0 1 1.9-4.25 16 16 0 0 1 4.43-3.1 1.5 1.5 0 1 1 1.34 2.7q-2.39 1.19-3.59 2.46C9.3 22.14 9 22.87 9 23.5c0 .8.4 1.74 1.57 2.76s3 2.01 5.51 2.89C21.11 30.89 28.55 32 38 32h.88l-1.44-1.44a1.5 1.5 0 0 1 2.12-2.12l4 4h.01a1.5 1.5 0 0 1 .32 1.63 2 2 0 0 1-.33.5l-4 4a1.5 1.5 0 0 1-2.12-2.13z"></path>');function Zd(t,e){H(e,!1);let i=G("video360");on(),Xe(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=o0();$(o,a)},$$slots:{default:!0}}),F()}var XV=require("@vkontakte/videoplayer-core/es2018");var Zr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Zr||{});var zu=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()},Wu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Y_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,j_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Jd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},aa=()=>!!Jd(),Ku=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},qu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},X_=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var im=require("@vkontakte/videoplayer-core/es2018"),Z_=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")},{description:G("hotkey_map_item_next_video_description"),value:G("hotkey_map_item_next_video_value")},{description:G("hotkey_map_item_prev_video_description"),value:G("hotkey_map_item_prev_video_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:im.clientChecker.device.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:im.clientChecker.device.isApple?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});var Kl=require("@vkontakte/videoplayer-shared/es2018");function om(t,e){H(e,!1);let i=ye();Lt(()=>{i.getAdmanWrapper().startPostroll()}),on(),F()}var J_=require("@vkontakte/videoplayer-shared/es2018");var n0=Ae('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),r0=Ae('<path 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.272L5.773 8z"></path>');function kr(t,e){H(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=f(()=>["up","down"].includes(i())),a=f(()=>["right","down"].includes(i())),l=f(()=>`chevron-icon--${i()}`),d=f(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=f(()=>o()?sa:"currentColor"),u=f(()=>n(r)?"7":"16");Xe(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(m,p)=>{var v=Re(),b=se(v);{var y=x=>{var I=n0();$(x,I)},_=x=>{var I=r0();$(x,I)};M(b,x=>{n(r)?x(y):x(_,!1)})}$(m,v)},$$slots:{default:!0}}),F()}var s0=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},a0=k('<div class="skip s-1h"> <!></div>'),l0=k("<div><!></div>"),d0={hash:"s-1h",code:".container.s-1h{background:rgba(0,0,0,.56);border-radius:6px;color:#fff;font-size:13px;padding:6px 10px;position:absolute;right:16px;top:14px;transition:color .2s}.container-mobile.s-1h{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1h{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1h{color:var(--white);cursor:pointer}.skippable.s-1h:hover{color:hsla(0,0%,100%,.75)}"};function nm(t,e){H(e,!0),Q(t,d0);let[i,o]=Be(),r=()=>w(u,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,J_.noop),u=ye().ui.isMobile,m=f(()=>a()>0&&a()>=l());var p=l0();let v;p.__click=[s0,m,d];var b=C(p);{var y=x=>{var I=a0(),T=C(I),D=P(T);kr(D,{direction:"right"}),S(I),O(A=>ge(T,`${A!=null?A:""} `),[()=>G("skip_ads_now")]),$(x,I)},_=x=>{var I=hs();O(T=>ge(I,T),[()=>G("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),$(x,I)};M(b,x=>{n(m)?x(y):x(_,!1)})}S(p),O(x=>v=ie(p,1,"container s-1h",null,v,x),[()=>({"container-mobile":r(),skippable:n(m)})]),$(t,p),F(),o()}et(["click"]);var c0=k('<button class="go-to-site s-1g"> </button>'),u0={hash:"s-1g",code:"button.go-to-site.s-1g{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function rm(t,e){H(e,!1),Q(t,u0),on();var i=c0(),o=C(i,!0);S(i),O(r=>ge(o,r),[()=>G("visit_advertiser")],Tn),$(t,i),F()}var p0=k('<div class="top-gradient-mobile s-m"></div>'),f0=k('<div class="container s-m"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),m0={hash:"s-m",code:".container.s-m{height:100%;width:100%}.top-gradient-mobile.s-m{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function ec(t,e){H(e,!0),Q(t,m0);let[i,o]=Be(),r=()=>w(z,"$canSkipAd",i),a=()=>w(L,"$adPlaybackState",i),l=()=>w(D,"$isMobile",i),d=()=>w(j,"$adPosition",i),s=()=>w(te,"$secondsToWatchBeforeSkipAd",i),u=()=>w(T,"$isVideoEnded",i),m=g(e,"adsSlotId",3,void 0),p=g(e,"adsParams",3,void 0),v=g(e,"adsAutoplayParam",3,void 0),b=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),_=g(e,"adsJson",3,void 0),x=ye(),I=Mt(),T=x.state.isEnded$,D=x.ui.isMobile,A=I.ads.isMobileGoToSiteButton,E=K(void 0),V=K(void 0),q=!1,L=x.ads.playbackState,z=x.ads.canSkip,j=x.ads.position,te=x.ads.secondsToWatchBeforeSkip,ee=f(()=>r()&&a()!=="inactive"),oe=f(()=>l()&&a()!=="inactive"&&A);Lt(()=>{let Z=x.getAdmanWrapper();if(Kl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Kl.now)(),m()]}),!m()){Z.onAdmanLoadingError();return}let B=()=>{var ke;let{width:ot,height:Me}=he(x.ui.playerSize),be=he(x.ui.isFullscreen),W=(ke=v())!=null?ke:he(x.ui.isAutoplay),Ce=I.ads.paramsOverride;return{width:ot,height:Me,isFullscreen:be,isAutoplay:W,adsContainer:n(E),adsVideoElement:n(V),slotId:m(),params:p(),paramsOverride:Ce,duration:b(),externalApi:y(),json:_()}},fe=async ot=>{ot&&await ho();let Me=B();await Z.initAdman(Me),q=!0},me=new AbortController,Ie=()=>{me.abort()};return window.AdmanHTML?fe(!0).catch(()=>{Z.onAdmanLoadingError()}):Z.loadAdman(me.signal).then(()=>fe(!1)).catch(()=>{Z.onAdmanLoadingError()}),()=>{Kl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Kl.now)(),m()]}),!q&&Ie()}});var ae=f0(),le=C(ae);{var ce=Z=>{var B=p0();$(Z,B)};M(le,Z=>{l()&&Z(ce)})}var X=P(le,2);tt(X,Z=>N(V,Z),()=>n(V));var _e=P(X,2);{var Ee=Z=>{nm(Z,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return x.actions.internal.skipAd}})};M(_e,Z=>{n(ee)&&Z(Ee)})}var de=P(_e,2);{var ze=Z=>{om(Z,{})};M(de,Z=>{u()&&Z(ze)})}var ue=P(de,2);{var pe=Z=>{rm(Z,{})};M(ue,Z=>{n(oe)&&Z(pe)})}S(ae),tt(ae,Z=>N(E,Z),()=>n(E)),$(t,ae),F(),o()}var nn=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 r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var v0=Ae('<path fill="#fff"></path>'),g0=Ae("<path></path><!>",1);function tc(t,e){let i=g(e,"isActive",3,!1),o=f(()=>i()?"live-active-icon":"live-icon"),r=f(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="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.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Xe(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=g0(),u=se(s),m=P(u);{var p=v=>{var b=v0();De(b,"d",a),$(v,b)};M(m,v=>{i()&&v(p)})}O(()=>De(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),$(l,s)},$$slots:{default:!0}})}var h0=k('<div class="equalizer s-c"><div class="col s-c"></div> <div class="col s-c"></div> <div class="col s-c"></div></div>'),_0=k('<div class="live-icon s-c"><!></div>'),b0=k('<span class="text s-c"> </span>'),$0=k("<div><!> <!></div>"),y0={hash:"s-c",code:".wrapper.s-c{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-c{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-c{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-c .equalizer:where(.s-c){margin-top:-2px}.equalizer.s-c .col:where(.s-c){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-c .equalizer:where(.s-c) .col:where(.s-c){animation-play-state:running}.equalizer.s-c .col:where(.s-c):first-child{animation-name:s-c-thumb-timer-equalizer-col1;left:0}.equalizer.s-c .col:where(.s-c):nth-child(2){animation-name:s-c-thumb-timer-equalizer-col2;left:3px}.equalizer.s-c .col:where(.s-c):nth-child(3){animation-name:s-c-thumb-timer-equalizer-col3;left:6px}.live-icon.s-c{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-c-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-c-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-c-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-c{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function ic(t,e){Q(t,y0);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=$0();let l;var d=C(a);{var s=v=>{var b=h0();$(v,b)};M(d,v=>{i()&&v(s)})}var u=P(d,2);{var m=v=>{var b=_0(),y=C(b);tc(y,{isActive:!0}),S(b),$(v,b)},p=v=>{var b=b0(),y=C(b,!0);S(b),O(()=>ge(y,e.time)),$(v,b)};M(u,v=>{o()?v(m):v(p,!1)})}S(a),O(v=>l=ie(a,1,"wrapper s-c",null,l,v),[()=>({live:o(),playing:r()})]),$(t,a)}var ql=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var x0=k('<div role="timer" data-testid="thumb-timer"><!></div>'),w0={hash:"s-h",code:".thumb-timer.s-h{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function oc(t,e){H(e,!0),Q(t,w0);let[i,o]=Be(),r=()=>w(m,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Mt(),u=f(()=>nn(e.duration-e.position)),m=re(!1);var p=x0();let v;var b=C(p);ic(b,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),Rs(p,()=>ql(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),O(y=>v=ie(p,1,"thumb-timer s-h",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),$(t,p),F(),o()}var Ql=t=>{if(!navigator.clipboard){eb(t);return}navigator.clipboard.writeText(t).catch(()=>eb(t))};function eb(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 Yu=require("@vkontakte/videoplayer-core/es2018");var am=require("@vkontakte/videoplayer-core/es2018");var sm="focus-hidden";var Lr=t=>{t.stopPropagation(),t.preventDefault()},lm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(sm)},C0=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},T0=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},I0=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},E0=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},tb=t=>t.code==="Escape",P0=t=>t.code==="ArrowLeft",nc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},ib=t=>{I0(t)?(Lr(t),T0(t.target)):E0(t)&&(Lr(t),C0(t.target))},ca=t=>!am.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||am.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Gl=async(t,e,i)=>{await ho(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(await ho(),i.set(!1),t.focus())},ob=async(t,e,i)=>{await ho(),t&&!e&&he(i)&&(i.set(!1),t.focus())},rc=async(t,e,i,o=!1)=>{if(await ho(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(sm,!i),a==null||a.focus()}},nb=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Qu=(t,e)=>{ib(t),lm(t.target),tb(t)&&(Lr(t),e())},Gu=async(t,e)=>{nc(t,["ArrowRight"])&&(Lr(t),e())},rb=async(t,e,i)=>{if(ib(t),P0(t)){Lr(t),e();return}tb(t)&&(Lr(t),i())},Yl=(t,e)=>{nc(t)&&(Lr(t),e())},sb=(t,e,i)=>{if(nc(t))Lr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Lr(t);return}o==="ArrowRight"&&!e&&(i(!0),Lr(t))}},ab=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},lb=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var qa=require("@vkontakte/videoplayer-shared/es2018");var Jr={"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 dm=require("@vkontakte/videoplayer-shared/es2018");var k0=(t,e)=>{Yl(t,()=>e())},L0=k('<li class="item s-1m" role="menuitem" tabindex="0"> </li>'),M0={hash:"s-1m",code:".item.s-1m{color:hsla(0,0%,100%,.72);cursor:pointer;display:block;font-size:13px;letter-spacing:-.14px;line-height:18px;padding:8px 16px;position:relative;white-space:nowrap}.item.s-1m:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function cm(t,e){H(e,!0),Q(t,M0);let i=g(e,"onClick",3,dm.noop),o=g(e,"closeContextMenu",3,dm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=L0();a.__click=r,a.__keydown=[k0,r];var l=C(a,!0);S(a),O(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),ge(l,e.label)}),$(t,a),F()}et(["click","keydown"]);var Ka=(t,e)=>t.weight-e.weight;var jl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(jl||{});var V0=(t,e)=>{Qu(t,e)},R0=t=>{t.preventDefault()},D0=k('<ul role="menu" data-testid="context-menu" class="s-z"></ul>'),N0={hash:"s-z",code:"ul.s-z{background:rgba(0,0,0,.72);border-radius:8px;list-style:none;margin:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:6px 0;position:absolute;transition:visibility .1s,opacity .1s;z-index:var(--context-menu-z-index)}"};function um(t,e){H(e,!0),Q(t,N0);let[i,o]=Be(),r=()=>w(le,"$playerPhase",i),a=()=>w(te,"$isLive$",i),l=()=>w(ce,"$isPiPEnabled$",i),d=()=>w(j,"$chromecastState$",i),s=()=>w(X,"$pictureInPictureApiIsActive$",i),u=()=>w(ae,"$isLooped$",i),m=()=>w(ee,"$positionExact$",i),p=()=>w(q,"$additionalContextMenuItems$",i),v=g(e,"visible",3,!1),b=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),_=g(e,"menuElementRef",15,void 0),x=K(0),I=K(0),T=ye(),{pictureInPicture$:D}=yo(),A=Mt(),E=T.ui.contextMenu.visible$,V=T.ui.debugPanelVisible,q=T.ui.additionalContextMenuItems$,L=T.ui.t,z=T.actions.internal.togglePictureInPicture,j=T.state.chromecastState$,te=T.state.isLive$,ee=T.state.positionExact$,oe=T.state.isInteractive,ae=T.state.looped$,le=T.playerPhase,{isEnabled$:ce,isActive$:X}=D,_e=f(()=>r()==="video"),Ee=f(()=>!!a()&&n(_e)),de=f(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),ze=f(()=>{var Se;return A.features.copyVideoLink&&((Se=T.callbacks)==null?void 0:Se.onCopyVideoLink)}),ue=f(()=>n(ze)&&!n(de)&&!oe&&!n(Ee)),pe=f(()=>{var Se;return!!((Se=T.callbacks)!=null&&Se.onCopyEmbedCodeClicked)}),Z=f(()=>l()&&d()!==Yu.ChromecastState.CONNECTED&&!oe&&n(_e)&&!Yu.clientChecker.browser.isFirefox),B=f(()=>!oe&&!n(de)&&!n(Ee)),fe=f(()=>A.features.videoRotate&&!oe&&!n(de)),me=f(()=>A.showSupport&&!s()),Ie=f(()=>A.features.saveTraceInfoToFile),ot=()=>{var Se;E.set(!1),(Se=e.returnFocus)==null||Se.call(e)},Me=(Se,Ye)=>{if(!_()||!y())return;let Ue=_().getBoundingClientRect(),xe=y().getBoundingClientRect();N(x,Se-xe.left),N(I,Ye-xe.top),n(x)+Ue.width>xe.width&&N(x,xe.width-Ue.width),n(I)+Ue.height>xe.height&&N(I,xe.height-Ue.height),N(x,Math.max(n(x),0),!0),N(I,Math.max(n(I),0),!0)};Fe(()=>{(async()=>{if(_()&&y()){await ho();let{top:Ye,left:Ue,bottom:xe,right:Nt}=b(),Tt=Ue!=null?Ue:0,qt=Ye!=null?Ye:0,hi=_().getBoundingClientRect();(0,qa.isNullable)(Ue)&&!(0,qa.isNullable)(Nt)&&(Tt=Nt-hi.width),(0,qa.isNullable)(Ye)&&!(0,qa.isNullable)(xe)&&(qt=xe-hi.height),Tt=Math.max(Tt,0),qt=Math.max(qt,0),Me(Tt,qt)}})()});let be=()=>{T.actions.internal.videoRotate()},W=()=>{(0,qa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Ce=()=>{let Se=T.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let Ye=new Blob([...Se],{type:"plain/text"}),Ue=window.URL.createObjectURL(Ye);za(Ue,"vk_player_debug_info","txt")}else Ql(T.actions.internal.getDebugTextData())},ke=()=>{let Se=T.actions.internal.getTraceTextData(),Ye=new Blob([...Se],{type:"application/json"}),Ue=window.URL.createObjectURL(Ye);za(Ue,"vk_player_trace_info","json")},Qe=()=>{V.set(!0)},Te=async()=>{var Se;try{z()}finally{(Se=e.returnFocus)==null||Se.call(e)}},we=()=>{T.actions.internal.setLooped(!u())},He=()=>{var Se,Ye;if(n(pe)){let Ue=(Ye=(Se=T.callbacks)==null?void 0:Se.onCopyEmbedCodeClicked)==null?void 0:Ye.call(Se);Ue&&Ql(Ue)}},st=(Se=!1)=>{var Ye,Ue;if((Ye=T.callbacks)!=null&&Ye.onCopyVideoLink){let xe=(Ue=T.callbacks)==null?void 0:Ue.onCopyVideoLink(Se,m());xe&&Ql(xe)}},ut=f(()=>A.features.saveDebugInfoToFile?L("menu_save_debug"):L("menu_copy_debug")),It=f(()=>n(ze)?{id:"copy-link",weight:Jr["copy-link"],label:L("menu_copy_video_link"),onClick:()=>st()}:void 0),lt=f(()=>n(ue)?{id:"copy-link-timestamp",weight:Jr["copy-link-timestamp"],label:L("menu_copy_video_link_with_timestamp"),onClick:()=>st(!0)}:void 0),ri=f(()=>n(pe)?{id:"copy-embed-code",weight:Jr["copy-embed-code"],label:L("menu_copy_embed_code"),onClick:He}:void 0),St=f(()=>n(Z)?{id:"pip",weight:Jr.pip,label:s()?L("menu_pip_close"):L("menu_pip"),onClick:Te}:void 0),Rt=f(()=>n(B)?{id:"video-loop",weight:Jr["video-loop"],label:u()?L("menu_video_loop_off"):L("menu_video_loop_on"),ariaLabel:L("aria_label_menu_loop"),onClick:we}:void 0),Dt=f(()=>n(fe)?{id:"rotate",weight:Jr.rotate,label:L("menu_video_rotate"),ariaLabel:L("aria_label_menu_rotate"),onClick:be}:void 0),Wt=f(()=>n(me)?{id:"report",weight:Jr.report,label:L("menu_report"),ariaLabel:`${L("menu_report")}. ${L("aria_label_new_tab_alert")}`,onClick:W}:void 0),Le=f(()=>({id:"save-debug",weight:Jr["save-debug"],label:n(ut),onClick:Ce})),Y=f(()=>n(Ie)?{id:"save-trace",weight:Jr["save-trace"],label:L("menu_save_debug"),onClick:ke}:void 0),Ne=f(()=>({id:"debug-info",weight:Jr["debug-info"],label:L("menu_debug_overlay"),ariaLabel:L("aria_label_menu_debug_overlay"),onClick:Qe})),$e=f(()=>[n(It),n(lt),n(ri),n(St),n(Rt),n(Dt),n(Wt),n(Le),n(Y),n(Ne),...p()].filter(Se=>!!Se).sort(Ka));var Oe=Re(),mt=se(Oe);{var Et=Se=>{var Ye=D0();Ye.__contextmenu=[R0],Ye.__keydown=[V0,ot],xi(Ye,21,()=>n($e),Ue=>Ue.id,(Ue,xe)=>{cm(Ue,{get id(){return n(xe).id},get label(){return n(xe).label},get ariaLabel(){return n(xe).ariaLabel},get onClick(){return n(xe).onClick},closeContextMenu:ot})}),S(Ye),tt(Ye,Ue=>_(Ue),()=>_()),O(()=>{var Ue,xe;return Ke(Ye,`top: ${(Ue=n(I))!=null?Ue:""}px; left: ${(xe=n(x))!=null?xe:""}px;`)}),$(Se,Ye)};M(mt,Se=>{v()&&Se(Et)})}$(t,Oe),F(),o()}et(["contextmenu","keydown"]);var ju=class{constructor(e){this.value=e,this.next=null}};var Xl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new ju(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 O0=k('<div class="container s-1c"><canvas class="s-1c"></canvas></div>'),B0={hash:"s-1c",code:".container.s-1c{display:inline-block;height:16px;width:120px}canvas.s-1c{margin-top:2px;transform:scaleY(-1)}"};function sc(t,e){H(e,!0),Q(t,B0);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Lt(()=>{n(o).width=l,n(o).height=a,N(r,n(o).getContext("2d"),!0)});function u(v,b,y,_,x){x===0&&(x=1),v.fillStyle="#fff",v.fillRect(b,y,_,x)}Fe(()=>{let v="";if(n(r)){let b=i()[0];for(let _=1;_<i().length;_++)i()[_]>b&&(b=i()[_]);n(r).clearRect(0,0,l,a);let y=d-1;for(let _=i().length-1;_>=0;_--){let x=y*s,I=b>0?a*(i()[_]/b):0;u(n(r),x,0,s,I),v=I+" "+v,y--}}});var m=O0(),p=C(m);tt(p,v=>N(o,v),()=>n(o)),S(m),$(t,m),F()}var pm=require("@vkontakte/videoplayer-shared/es2018");var H0=(t,e)=>{t.stopPropagation(),pm.safeStorage.remove(qd),e.set(!1)},F0=k('<div class="s-i"><div class="s-i">Video id</div> <span> </span></div>'),U0=k('<div class="s-i"><div class="s-i">VSID</div> <span> </span></div>'),z0=k('<div class="s-i"><div class="s-i">Provider</div> <span> </span></div>'),W0=k('<div class="s-i"><div class="s-i">Streams</div> <span> </span></div>'),K0=k('<div class="s-i"><div class="s-i">Viewport</div> <span> </span></div>'),q0=k('<div class="s-i"><div class="s-i">Video size</div> <span> </span></div>'),Q0=k('<div class="s-i"><div class="s-i">CDN host</div> <span> </span></div>'),G0=k('<div class="s-i"><div class="s-i">Volume</div> <span> </span></div>'),Y0=k('<div class="s-i"><div class="s-i">Position</div> <span> </span></div>'),j0=k('<div class="s-i"><div class="s-i">Buffer</div> <span> </span></div>'),X0=k('<div class="s-i"><div class="s-i">Nbuffer</div> <span> </span></div>'),Z0=k('<div class="s-i"><div class="s-i">Live latency</div> <span> </span></div>'),J0=k('<div class="s-i"><div class="s-i">Segment</div> <span> </span></div>'),ey=k('<div class="s-i"><div class="s-i">Network</div> <!> <span> </span></div>'),ty=k('<div class="s-i"><div class="s-i">V bitrate</div> <!> <span> </span></div>'),iy=k('<div role="region"><button class="close s-i" title="закрыть">[x]</button> <div class="content s-i"><div class="s-i"><div class="s-i">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-i"><div class="s-i">Dropped</div> <span> </span></div> <!> <!> <div class="s-i"><div class="s-i">FPS</div> <!> <span> </span></div></div></div>'),oy={hash:"s-i",code:".container.s-i{background:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:10px;left:20px;min-width:160px;position:absolute;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container-mobile.s-i{left:16px;top:16px}button.close.s-i{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-i{padding:5px}.content.s-i>div:where(.s-i)>div:where(.s-i){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function ac(t,e){H(e,!0),Q(t,oy);let[i,o]=Be(),r=()=>w(d,"$isMobile",i),a=ye(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(ni(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=K(0),p=K(0),v=K(0),b=new Xl(60),y=new Xl(60),_=new Xl(60),x=K(ni([])),I=K(ni([])),T=K(ni([])),D=G("aria_label_debug_panel");Lt(()=>{pm.safeStorage.set(qd,"true"),a.actions.internal.startLogging(),u&&(N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Le=window.setInterval(()=>{N(s,a.actions.internal.getDebugPanelData(),!0)},500),Y;return u&&(Y=window.setInterval(()=>{if(u){N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let Ne=u.getVideoPlaybackQuality().totalVideoFrames;N(v,Ne-n(m)),N(m,Ne,!0),b.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&_.push(n(s).bitrate),N(x,b.getValuesFromBottom(),!0),N(I,y.getValuesFromBottom(),!0),N(T,_.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Le),Y&&clearInterval(Y)}});var A=iy();let E;var V=C(A);V.__click=[H0,l];var q=P(V,2),L=C(q),z=P(C(L),2),j=C(z,!0);S(z),S(L);var te=P(L,2);{var ee=Le=>{var Y=F0(),Ne=P(C(Y),2),$e=C(Ne,!0);S(Ne),S(Y),O(()=>ge($e,n(s).id)),$(Le,Y)};M(te,Le=>{n(s).id&&Le(ee)})}var oe=P(te,2);{var ae=Le=>{var Y=U0(),Ne=P(C(Y),2),$e=C(Ne,!0);S(Ne),S(Y),O(()=>ge($e,n(s).vsid)),$(Le,Y)};M(oe,Le=>{n(s).vsid&&Le(ae)})}var le=P(oe,2);{var ce=Le=>{var Y=z0(),Ne=P(C(Y),2),$e=C(Ne,!0);S(Ne),S(Y),O(()=>ge($e,n(s).provider)),$(Le,Y)};M(le,Le=>{n(s).provider&&Le(ce)})}var X=P(le,2);{var _e=Le=>{var Y=W0(),Ne=P(C(Y),2),$e=C(Ne);S(Ne),S(Y),O(()=>{var Oe,mt;return ge($e,`Video: ${(Oe=n(s).videoCodec||"")!=null?Oe:""} ${n(s).hdr?"(HDR)":""}
55
55
  &
56
- Audio: ${(Te=n(s).audioCodec||"")!=null?Te:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),b(xe,X)};M(ie,xe=>{(n(s).videoCodec||n(s).audioCodec)&&xe(ge)})}var Pe=A(ie,2);{var de=xe=>{var X=U0(),Ne=A(C(X),2),be=C(Ne,!0);S(Ne),S(X),N(()=>ve(be,n(s).viewport)),b(xe,X)};M(Pe,xe=>{n(s).viewport&&xe(de)})}var Ke=A(Pe,2);{var pe=xe=>{var X=z0(),Ne=A(C(X),2),be=C(Ne,!0);S(Ne),S(X),N(()=>ve(be,n(s).videoSize)),b(xe,X)};M(Ke,xe=>{n(s).videoSize&&xe(pe)})}var me=A(Ke,2);{var Z=xe=>{var X=W0(),Ne=A(C(X),2),be=C(Ne,!0);S(Ne),S(X),N(()=>ve(be,n(s).cdn)),b(xe,X)};M(me,xe=>{n(s).cdn&&xe(Z)})}var O=A(me,2);{var fe=xe=>{var X=K0(),Ne=A(C(X),2),be=C(Ne);S(Ne),S(X),N(()=>{var Ue;return ve(be,`${(Ue=n(s).volume)!=null?Ue:""} %`)}),b(xe,X)};M(O,xe=>{n(s).volume&&xe(fe)})}var ce=A(O,2);{var Re=xe=>{var X=Q0(),Ne=A(C(X),2),be=C(Ne);S(Ne),S(X),N(Ue=>ve(be,`${Ue!=null?Ue:""} s`),[()=>n(s).position.toFixed(2)]),b(xe,X)};M(ce,xe=>{n(s).position&&xe(Re)})}var tt=A(ce,2);{var ke=xe=>{var X=q0(),Ne=A(C(X),2),be=C(Ne);S(Ne),S(X),N(Ue=>ve(be,`${Ue!=null?Ue:""} s`),[()=>n(s).buffer.toFixed(2)]),b(xe,X)};M(tt,xe=>{n(s).buffer&&xe(ke)})}var j=A(tt,2);{var ne=xe=>{var X=G0(),Ne=A(C(X),2),be=C(Ne);S(Ne),S(X),N(Ue=>ve(be,`${Ue!=null?Ue:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),b(xe,X)};M(j,xe=>{n(s).nativeBuffer&&xe(ne)})}var Se=A(j,2);{var Le=xe=>{var X=Y0(),Ne=A(C(X),2),be=C(Ne);S(Ne),S(X),N(Ue=>ve(be,`${Ue!=null?Ue:""} s`),[()=>n(s).liveLatency.toFixed(2)]),b(xe,X)};M(Se,xe=>{n(s).liveLatency&&xe(Le)})}var We=A(Se,2);{var Ce=xe=>{var X=j0(),Ne=A(C(X),2),be=C(Ne,!0);S(Ne),S(X),N(Ue=>ve(be,Ue),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ue})=>Ue).map(({value:Ue,title:Te})=>`${Te} ${((Ue!=null?Ue:0)/1e3).toFixed(2)} s`).join(" & ")]),b(xe,X)};M(We,xe=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&xe(Ce)})}var we=A(We,2),Be=A(C(we),2),rt=C(Be);S(Be),S(we);var mt=A(we,2);{var Vt=xe=>{var X=X0(),Ne=A(C(X),2);oc(Ne,{get values(){return n(I)}});var be=A(Ne,2),Ue=C(be);S(be),S(X),N(Te=>ve(Ue,`${Te!=null?Te:""} Kbps`),[()=>n(s).speed.toFixed(2)]),b(xe,X)};M(mt,xe=>{n(s).speed&&xe(Vt)})}var lt=A(mt,2);{var jt=xe=>{var X=Z0(),Ne=A(C(X),2);oc(Ne,{get values(){return n(T)}});var be=A(Ne,2),Ue=C(be);S(be),S(X),N(Te=>ve(Ue,`${Te!=null?Te:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),b(xe,X)};M(lt,xe=>{n(s).bitrate&&xe(jt)})}var St=A(lt,2),Ut=A(C(St),2);oc(Ut,{get values(){return n(x)}});var Rt=A(Ut,2),zt=C(Rt,!0);S(Rt),S(St),S(W),S(k),N(xe=>{var X,Ne;P=oe(k,1,"container s-i",null,P,xe),De(k,"aria-label",R),ve(G,n(s).version),ve(rt,`${(X=n(p))!=null?X:""} / ${(Ne=n(f))!=null?Ne:""} frames`),ve(zt,n(v))},[()=>({"container-mobile":r()})]),b(t,k),F(),o()}et(["click"]);var sb=require("@vkontakte/videoplayer-shared/es2018"),ty=(t,e)=>{t.stopPropagation(),e()()},iy=L('<div class="close s-11"></div>'),oy={hash:"s-11",code:'.close.s-11{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-11:hover{opacity:1}.close.s-11:after,.close.s-11:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-11:before{transform:rotate(45deg)}.close.s-11:after{transform:rotate(-45deg)}'};function Fs(t,e){B(e,!0),Q(t,oy);let i=g(e,"onClick",3,sb.noop);var o=iy();o.__click=[ty,i],b(t,o),F()}et(["click"]);var ab=require("@vkontakte/videoplayer-shared/es2018");var fn=t=>`width:${t}px;height:${t}px;`;var ny=Ae('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function On(t,e){B(e,!0);let i=m(()=>fn(e.size));je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=ny();b(o,a)},$$slots:{default:!0}}),F()}var ry=L('<div class="timer s-12"><canvas class="timer-canvas s-12" width="100" height="100"></canvas> <!></div>'),sy={hash:"s-12",code:".timer.s-12{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-12:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-12{height:50px;position:absolute;width:50px}"};function rc(t,e){B(e,!0),Q(t,sy);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,ab.noop),r=5e3,a=K(void 0),l,d,s=0,u;Fe(()=>{i()&&Et(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let f=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{f(),i()&&(u=(Date.now()-d)/r,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(),s=requestAnimationFrame(p)):o()())};Lt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),pn(()=>{f()});var v=ry(),_=C(v);it(_,$=>D(a,$),()=>n(a));var y=A(_,2);On(y,{get size(){return"24"}}),S(v),b(t,v),F()}var ay=(t,e,i)=>{e(!1),i()},ly=L('<div class="overlay s-18"></div> <div class="next-video s-18"><div class="top s-18"><div class="caption s-18"> </div> <!></div> <div class="row s-18"><div class="column s-18"><div class="thumb s-18"><div></div> <!></div></div> <div class="column s-18"><div class="title s-18"> </div></div></div></div>',1),dy={hash:"s-18",code:".overlay.s-18{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-18{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-18{display:flex;justify-content:space-between}.caption.s-18{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-18{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-18{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-18{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-18,.thumb-overlay.s-18{height:100%;width:100%}.thumb-overlay.s-18{position:absolute}.thumb-overlay.withOpacity.s-18{background:var(--black);opacity:.3}.title.s-18{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function pm(t,e){B(e,!0),Q(t,dy);let[i,o]=Oe(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ye(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,_=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},$=()=>{e.clickCloseIcon(),_()};Lt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),v())});var x=Ve(),I=le(x);{var T=R=>{var k=ly(),P=A(le(k),2),E=C(P),W=C(E),H=C(W,!0);S(W);var U=A(W,2);Fs(U,{onClick:$}),S(E);var G=A(E,2);G.__click=[ay,u,p];var se=C(G),te=C(se),J=C(te);let Y;var Ie=A(J,2);{var ue=de=>{let Ke=m(()=>a()&&r());rc(de,{get isRunning(){return n(Ke)},onTimerEnded:y})};M(Ie,de=>{r()&&de(ue)})}S(te),S(se);var ie=A(se,2),ge=C(ie),Pe=C(ge,!0);S(ge),S(ie),S(G),S(P),N((de,Ke)=>{ve(H,de),Qe(te,`background-image: url('${e.thumb}')`),Y=oe(J,1,"thumb-overlay s-18",null,Y,Ke),ve(Pe,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,k)};M(I,R=>{e.isHide||R(T)})}b(t,x),F(),o()}et(["click"]);var fa=require("@vkontakte/videoplayer-core/es2018"),lb=require("@vkontakte/videoplayer-shared/es2018"),Bn=require("@vkontakte/videoplayer-statistics/es2018");var fm=(t,e)=>Math.min(+(t+e).toFixed(2),1),mm=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xu=(t,e,i)=>{let o=fm(e,i);e<1&&t.actions.internal.setVolume(o)},Zu=(t,e,i)=>{let o=mm(e,i);e>0&&t.actions.internal.setVolume(o)};var pa=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function Ju(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var uy=(t,e)=>{e(t)},py=L('<div class="keyboard-controls s-1g" tabindex="-1" role="region"><!></div>'),fy={hash:"s-1g",code:".keyboard-controls.s-1g{bottom:0;left:0;position:absolute;right:0;top:0}"};function vm(t,e){var be,Ue;B(e,!0),Q(t,fy);let[i,o]=Oe(),r=()=>w(Ie,"$disabledControls$",i),a=()=>w(ke,"$isInteractiveTime$",i),l=()=>w(j,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>w(U,"$playbackState$",i),s=()=>w(Z,"$isEnded$",i),u=()=>w(pe,"$doubleForwardAvailable$",i),f=()=>w(Ke,"$doubleForwardOn$",i),p=()=>w(O,"$overlayContainer$",i),v=()=>w(se,"$adPlaybackState",i),_=()=>w(te,"$positionExact$",i),y=()=>w(J,"$duration$",i),$=()=>w(Re,"$isAudioAvailable$",i),x=()=>w(Y,"$volume$",i),I=()=>w(G,"$canChangePlaybackSpeed$",i),T=()=>w(ue,"$muted$",i),R=()=>w(ie,"$currentSubtitle$",i),k=g(e,"nextButtonActive",3,!1),P=g(e,"prevButtonActive",3,!1),E=ye(),W=Mt(),H=E.getLogger().createComponentLog("KeyboardControls component"),U=E.state.playbackState$,G=E.state.canChangePlaybackSpeed$,se=E.ads.playbackState,te=E.state.positionExact$,J=E.state.duration$,Y=E.state.volume$,Ie=E.ui.controls.disabledControls$,ue=E.state.muted$,ie=E.state.currentSubtitle$,ge=E.ui.contextMenu.openedByHotKey$,Pe=E.ui.contextMenu.lastActiveElem$,de=E.ui.contextMenu.visible$,Ke=E.ui.doubleForwardOn$,pe=E.ui.doubleForwardAvailable$,me=E.ui.contextMenu.position$,Z=E.state.isEnded$,O=E.ui.overlayContainer$,fe=(be=E.callbacks)==null?void 0:be.onAudioDoesNotExistHint,ce=(Ue=E.callbacks)==null?void 0:Ue.onAudioDisabledHint,Re=E.state.isAudioAvailable$,tt=E.state.isAudioDisabled,ke=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:j}=$o(),ne=0,Se=!0,Le=K(void 0),We=Te=>(Te!==Se&&(Se=Te,ne=0),ne+=1,(W.controls.seekStepKeyboard+W.controls.seekStepKeyboard*ne)/1e3),Ce=!0,we=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&j.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let Te="PLAY";d()===fa.PlaybackState.PAUSED?Te="PAUSE":s()&&(Te="REPLAY"),e.showHotKeyHelpers({type:Te})}},Be=Te=>{if(!u()||!Te&&f()){we(),e.stopDoubleForward(),Ce=!0;return}Ce=!1,!Te&&e.startDoubleForwardActivationTimer()},rt=()=>{Ce||(f()||we(),e.stopDoubleForward(),Ce=!0)},mt=Te=>{Te!=="Space"&&e.stopDoubleForward()},Vt=Te=>{let $t=rb(p());me.set($t),Pe.set(Te.target),ge.set(!0),de.set(!0)},lt=(Te,$t=!1)=>{var ci,Xi;let $e=Te.target,qe=(ci=$e==null?void 0:$e.getAttribute("role"))==null?void 0:ci.includes("menuitem"),ze=$e.classList.contains("btn"),st=Te.code;if(ze&&st==="Space")return!1;let Gt=l_.has(st);if(qe&&Gt)return!1;let Pt=!a_.has(st);if(Te.ctrlKey&&Pt||Te.altKey&&Pt||Te.metaKey)return!1;let Xt=qe&&st==="Escape";d_.has(st)||Xt||e.hideContextMenu();let _i=d()===fa.PlaybackState.PLAYING||d()===fa.PlaybackState.PAUSED,Ei=e.isAds&&(v()==="paused"||v()==="playing"),Ci=!Ei&&!r().has("TIMELINE"),ji=Te.shiftKey&&["Digit1","Numpad1"].includes(st);if(!ji&&!(_i||Ei))return!1;H({message:`key down, code: ${st}, isExternal = ${$t}`});let ri=!1,ut=()=>{ri=!0,$t||Te.preventDefault()};if(mt(st),ji)return Vt(Te),ut(),!0;switch(st){case"KeyJ":case"ArrowLeft":{if(!Ci)break;if(Te.ctrlKey||Te.altKey){let It=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(It),It&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:It.text}),ut()}else{let It=Te.shiftKey?We(!1):W.controls.seekStepKeyboard/1e3,gi=Math.max(_()-It,0);_()>0&&(E.actions.internal.seekTime(gi,Bn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:It.toString()}),ut())}break}case"KeyL":case"ArrowRight":{if(!Ci)break;if(Te.ctrlKey||Te.altKey){let It=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(It),It&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:It.text}),ut()}else{let It=Te.shiftKey?We(!0):W.controls.seekStepKeyboard/1e3,gi=Math.min(_()+It,y());Math.round(_())<Math.round(y())&&(E.actions.internal.seekTime(gi,Bn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:It.toString()}),ut())}break}case"ArrowUp":{if(pa({isAudioDisabled:tt,audioDisabledHintCallback:ce,isAudioAvailable:$(),audioIsNotExistHintCallback:fe,isAds:e.isAds})){let It=x(),gi=W.controls.volumeStepKeyboard,mi=It<=1;if(Xu(E,It,gi),mi){let He=Math.round(fm(It,gi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:He}})}}ut();break}case"ArrowDown":{if(pa({isAudioDisabled:tt,audioDisabledHintCallback:ce,isAudioAvailable:$(),audioIsNotExistHintCallback:fe,isAds:e.isAds})){let It=x(),gi=W.controls.volumeStepKeyboard,mi=It>=0;if(Zu(E,It,gi),mi){let He=Math.round(mm(It,gi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:He}})}}ut();break}case"Comma":{if(Te.shiftKey){if(!f()&&I()){let It=E.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:It==null?void 0:It.displayValue}),ut()}}else{if(Ei||d()!==fa.PlaybackState.PAUSED)break;let It=Math.max(_()-W.controls.seekStepFrame/1e3,0);_()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(It,Bn.SeekAction.DOUBLE_TAP),ut())}break}case"Period":{if(Te.shiftKey){if(!f()&&I()){let It=E.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:It==null?void 0:It.displayValue}),ut()}}else{if(Ei||d()!==fa.PlaybackState.PAUSED)break;let It=Math.min(_()+W.controls.seekStepFrame/1e3,y());_()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(It,Bn.SeekAction.DOUBLE_TAP),ut())}break}case"KeyK":we(),ut();break;case"Space":Be(Te.repeat),ut();break;case"KeyM":{pa({isAudioDisabled:tt,audioDisabledHintCallback:ce,isAudioAvailable:$(),audioIsNotExistHintCallback:fe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),ut();break}case"KeyF":e.toggleFullscreen(),ut();break;case"KeyC":E.actions.internal.toggleSubtitle(),R().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Xi=R())==null?void 0:Xi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ut();break;case"KeyI":E.actions.internal.togglePictureInPicture(),ut();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,Bn.SeekAction.DOUBLE_TAP),ut();break;case"Slash":{Te.shiftKey&&W.features.hotKeyMapModal&&(e.showKeyMap(),ut());break}case"KeyN":Te.shiftKey&&k()&&(E.actions.internal.nextVideoClick(),ut());break;case"KeyP":Te.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),ut());break;case"ShiftLeft":case"ShiftRight":ut();break;case"Tab":case"Escape":case"Enter":break;default:(0,lb.checkNever)(st);break}return ri},jt=Te=>{let $t=Te.code;if(Te.ctrlKey||Te.altKey||Te.metaKey)return;let $e=d()===fa.PlaybackState.PLAYING||d()===fa.PlaybackState.PAUSED,qe=e.isAds&&(v()==="paused"||v()==="playing");if($e||qe)switch($t){case"ShiftLeft":case"ShiftRight":ne=0;break;case"Space":rt();break}},St=q("aria_label_video_player"),Ut=()=>{var Te;return(Te=n(Le))==null?void 0:Te.focus()},Rt=()=>n(Le)===Ju(),zt=Te=>Te.type==="keydown"?lt(Te,!0):(Te.type==="keyup"&&jt(Te),!1);var xe=py();xe.__keyup=jt,xe.__keydown=[uy,lt];var X=C(xe);ti(X,()=>{var Te;return(Te=e.children)!=null?Te:yt}),S(xe),it(xe,Te=>D(Le,Te),()=>n(Le)),N(()=>De(xe,"aria-label",St)),b(t,xe);var Ne=F({focus:Ut,isFocused:Rt,handleExternalKeyboardEvent:zt});return o(),Ne}et(["keyup","keydown"]);var my=L('<div class="container s-n"><div class="dot s-n"></div> <div class="dot s-n"></div> <div class="dot s-n"></div></div>'),vy={hash:"s-n",code:".container.s-n{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-n:first-child{animation-delay:0s}.dot.s-n:nth-child(2){animation-delay:.18s}.dot.s-n:nth-child(3){animation-delay:.36s}@keyframes s-n-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-n{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-n-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-n+.dot:where(.s-n){margin-left:4px}"};function Qa(t,e){Q(t,vy);let i=g(e,"style",3,"");var o=my();N(()=>Qe(o,i())),b(t,o)}var gy=Ae('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function gm(t,e){je(t,{get fill(){return e.fill},children:(i,o)=>{var r=gy();b(i,r)},$$slots:{default:!0}})}var qa=require("@vkontakte/videoplayer-shared/es2018"),hy=t=>{t.stopPropagation()},_y=L("<button><!></button>"),by={hash:"s-1s",code:"button.btn.s-1s{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1s{width:100%}button.btn--live.s-1s{padding:10px 4px}button.btn-jc-l.s-1s{justify-content:left}button.btn-m.s-1s{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1s,button.btn-m--play.s-1s{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1s{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1s,button.btn-m--prev.s-1s{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1s{right:calc(100% + 35px)}button.btn-m--next.s-1s{left:calc(100% + 35px)}button.btn.s-1s:disabled{cursor:default;pointer-events:none}button.btn.s-1s:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1s:not(:disabled):hover{opacity:.8}button.pr-0.s-1s{padding-right:0}button.pl-0.s-1s{padding-left:0}"};function Ht(t,e){B(e,!0),Q(t,by);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),a=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),s=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),f=g(e,"ariaExpanded",3,void 0),p=g(e,"tabIndex",3,0),v=g(e,"click",3,qa.noop),_=g(e,"focus",3,qa.noop),y=g(e,"blur",3,qa.noop),$=m(()=>v()===qa.noop?null:k=>{k.stopPropagation(),v()(k)}),x=m(()=>_()===qa.noop?null:k=>{k.preventDefault(),_()()}),I=m(()=>y()===qa.noop?null:k=>{k.preventDefault(),y()()});var T=_y();T.__pointerdown=[hy],T.__click=function(...k){var P;(P=n($))==null||P.apply(this,k)};var R=C(T);ti(R,()=>{var k;return(k=e.children)!=null?k:yt}),S(T),it(T,k=>s(k),()=>s()),N(()=>{var k,P,E,W,H,U,G,se;oe(T,1,`btn ${(k=i())!=null?k:""}`,"s-1s"),Qe(T,o()||null),T.disabled=(P=r())!=null?P:null,De(T,"aria-hidden",(E=l())!=null?E:null),De(T,"aria-label",(W=d())!=null?W:null),De(T,"aria-keyshortcuts",(H=u())!=null?H:null),De(T,"aria-expanded",(U=f())!=null?U:null),De(T,"data-testid",(G=a())!=null?G:null),De(T,"tabindex",p()),De(T,"role",e.role),De(T,"aria-checked",(se=e.areaChecked)!=null?se:null)}),ht("focus",T,function(...k){var P;(P=n(x))==null||P.apply(this,k)}),ht("blur",T,function(...k){var P;(P=n(I))==null||P.apply(this,k)}),b(t,T),F()}et(["pointerdown","click"]);var $y=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},yy=L('<div class="modal-header s-1l"><h3 class="modal-title s-1l"> </h3> <!></div>'),xy=L('<div class="modal-overlay s-1l"><div class="modal-container s-1l" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1l" tabindex="0" role="scrollbar"><div class="modal-main s-1l"><!></div></div></div></div>'),wy={hash:"s-1l",code:'.modal-overlay.s-1l{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:var(--modal-z-index)}.modal-container.s-1l{background:var(--mobile-settings-bg);border-radius:8px;color:var(--white);display:flex;flex-direction:column;height:calc(100% - 24px);max-height:490px;max-width:600px;width:calc(100% - 32px)}.modal-header.s-1l{align-items:start;border-bottom:1px solid var(--white-alpha-24);box-sizing:border-box;display:flex;height:40px;justify-content:space-between;padding:8px 10px}.modal-title.s-1l{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;margin:3px 0 0 6px}.modal-scroll.s-1l{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1l::-webkit-scrollbar{width:8px}.modal-scroll.s-1l::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1l::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1l::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1l{margin:-8px -4px 0 0}'};function hm(t,e){B(e,!0),Q(t,wy);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=K(void 0),a=K(void 0),{webApi:{focusManager:l}}=ye(),d=q("hotkey_map_modal_close_btn_text");Lt(()=>{var $;return($=n(r))==null||$.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=xy();s.__keydown=[$y,e];var u=C(s),f=C(u);{var p=$=>{var x=yy(),I=C(x),T=C(I,!0);S(I);var R=A(I,2);{var k=P=>{Ht(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(E,W)=>{gm(E,{fill:"currentColor"})},$$slots:{default:!0}})};M(R,P=>{o()&&P(k)})}S(x),N(()=>ve(T,e.title)),b($,x)};M(f,$=>{i()&&$(p)})}var v=A(f,2),_=C(v),y=C(_);ti(y,()=>{var $;return($=e.children)!=null?$:yt}),S(_),S(v),it(v,$=>D(r,$),()=>n(r)),S(u),it(u,$=>D(a,$),()=>n(a)),S(s),b(t,s),F()}et(["keydown"]);var Sy=new Set(["BR"]),db=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;Sy.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var Cy=L('<li class="hot-key-map-item s-1b"><span class="hot-key-map-item-description s-1b"><!></span> &nbsp; <span class="hot-key-map-item-value s-1b"> </span></li>'),Ty=L('<div class="hot-key-map-group s-1b"><h5 class="hot-key-map-group-title s-1b"> </h5> <ul class="hot-key-map-group-items s-1b"></ul></div>'),Iy=L('<div class="hot-key-map s-1b"></div>'),Ey={hash:"s-1b",code:'.hot-key-map.s-1b{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-1b{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-1b:last-child{border-bottom:none}.hot-key-map-group-title.s-1b{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.s-1b,.hot-key-map-item.s-1b{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-1b{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-1b{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.s-1b{color:var(--white-alpha-72);max-width:388px;width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left))}.hot-key-map-item-value.s-1b{color:var(--white);letter-spacing:-.14px;padding-left:var(--videoplayer-hotkey-item-value-padding-left);width:var(--videoplayer-hotkey-item-value-width)}.hot-key-map-item-description.s-1b,.hot-key-map-item-value.s-1b{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function _m(t,e){B(e,!1),Q(t,Ey);let[i,o]=Oe(),r=()=>w(l,"$data",i),a=ye(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};Xo(),hm(t,{get title(){return r().title},onClose:s,children:(u,f)=>{var p=Iy();yi(p,5,()=>r().groups,({title:v,items:_})=>v,(v,_)=>{let y=()=>n(_).title,$=()=>n(_).items;var x=Ty(),I=C(x),T=C(I,!0);S(I);var R=A(I,2);yi(R,5,$,({description:k,value:P})=>P,(k,P)=>{let E=()=>n(P).description,W=()=>n(P).value;var H=Cy(),U=C(H),G=C(U);Od(G,()=>db(E())),S(U);var se=A(U,2),te=C(se,!0);S(se),S(H),N(()=>ve(te,W())),b(k,H)}),S(R),S(x),N(()=>ve(T,y())),b(v,x)}),S(p),b(u,p)},$$slots:{default:!0}}),F(),o()}var $v=require("@vkontakte/videoplayer-shared/es2018");var il=require("@vkontakte/videoplayer-core/es2018");var cb=require("@vkontakte/videoplayer-shared/es2018");var Py=L('<div class="pillow s-1x"><!></div>'),Ay={hash:"s-1x",code:".pillow.s-1x{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function bm(t,e){Q(t,Ay);var i=Py(),o=C(i);ti(o,()=>{var r;return(r=e.children)!=null?r:yt}),S(i),N(()=>De(i,"data-testid",e.testId)),b(t,i)}var Jl=require("@vkontakte/videoplayer-shared/es2018");var ky=Ae('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function $m(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=ky();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:yt}),ei(),S(o),b(t,o)}var Ly=Ae('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function ym(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:yt}),ei(),S(o),b(t,o)}var My=Ae('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function xm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=My();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:yt}),ei(),S(o),b(t,o)}var Vy=Ae('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function wm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:yt}),ei(),S(o),b(t,o)}var Ry=Ae('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function Sm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:yt}),ei(),S(o),b(t,o)}var ep=t=>{switch(t){case Jl.VideoQuality.Q_720P:return xm;case Jl.VideoQuality.Q_1080P:return wm;case Jl.VideoQuality.Q_1440P:return Sm;case Jl.VideoQuality.Q_2160P:return $m;case Jl.VideoQuality.Q_4320P:return ym}};var Dy=Ae('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 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>');function Cm(t,e){je(t,{get testId(){return e.testId},children:(i,o)=>{var r=Dy();b(i,r)},$$slots:{default:!0}})}var Ny=Ae('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Tm(t,e){je(t,{get testId(){return e.testId},children:(i,o)=>{var r=Ny();b(i,r)},$$slots:{default:!0}})}var Oy=L('<div aria-hidden="true"><!> <!></div>'),By={hash:"s-1u",code:".icon.s-1u{display:flex;height:24px;position:relative;width:24px}.icon.s-1u .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1u .pillow{right:-13px}.icon.s-1u svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function sc(t,e){B(e,!0),Q(t,By);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=m(()=>o()?(0,cb.getVideoQualityLabel)(o()):""),a=m(()=>ep(o())),l=m(()=>n(r).length>2);var d=Ve(),s=le(d);{var u=p=>{Cm(p,{testId:"settings-mobile-icon"})},f=p=>{var v=Oy();let _;var y=C(v);{var $=T=>{let R=m(()=>`${n(r)}-pill-icon`);bm(T,{get testId(){return n(R)},children:(k,P)=>{var E=Ve(),W=le(E);Fi(W,()=>n(a),(H,U)=>{U(H,{})}),b(k,E)},$$slots:{default:!0}})};M(y,T=>{n(a)&&T($)})}var x=A(y,2);let I=m(()=>n(a)?"settings-icon--labeled":"settings-icon");Tm(x,{get testId(){return n(I)}}),S(v),N(T=>_=oe(v,1,"icon s-1u",null,_,T),[()=>({triple:n(l)})]),b(p,v)};M(s,p=>{i()?p(u):p(f,!1)})}b(t,d),F()}var Fy=L('<span class="settings-icon-wrapper s-1y"><!></span>'),Hy={hash:"s-1y",code:".settings-icon-wrapper.s-1y{height:24px;position:relative;width:24px}"};function ed(t,e){B(e,!0),Q(t,Hy);let[i,o]=Oe(),r=()=>w(u,"$settingsMenuVisible",i),a=()=>w(v,"$isMobile",i),l=()=>w(s,"$currentQuality",i),d=ye(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,_=d.ui.t,y=K(void 0);Fe(()=>{n(y)&&Et(()=>{e.ref$.set(n(y))})});let $=_("aria_label_settings");async function x(T){let R=ua(T);r()?p():f(R,vo)}let I=m(()=>r()?"opened":"");Ht(t,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return $},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){D(y,T,!0)},children:(T,R)=>{var k=Fy(),P=C(k);sc(P,{get isMobile(){return a()},get currentQuality(){return l()}}),S(k),b(T,k)},$$slots:{default:!0}}),F(),o()}var Uy=Ae('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.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"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),zy=Ae("<path></path>");function ma(t,e){B(e,!0);let i=m(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=m(()=>fn(e.size));je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Ve(),d=le(l);{var s=f=>{var p=Uy();ei(),b(f,p)},u=f=>{var p=zy();N(()=>De(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
56
+ Audio: ${(mt=n(s).audioCodec||"")!=null?mt:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),$(Le,Y)};M(X,Le=>{(n(s).videoCodec||n(s).audioCodec)&&Le(_e)})}var Ee=P(X,2);{var de=Le=>{var Y=K0(),Ne=P(C(Y),2),$e=C(Ne,!0);S(Ne),S(Y),O(()=>ge($e,n(s).viewport)),$(Le,Y)};M(Ee,Le=>{n(s).viewport&&Le(de)})}var ze=P(Ee,2);{var ue=Le=>{var Y=q0(),Ne=P(C(Y),2),$e=C(Ne,!0);S(Ne),S(Y),O(()=>ge($e,n(s).videoSize)),$(Le,Y)};M(ze,Le=>{n(s).videoSize&&Le(ue)})}var pe=P(ze,2);{var Z=Le=>{var Y=Q0(),Ne=P(C(Y),2),$e=C(Ne,!0);S(Ne),S(Y),O(()=>ge($e,n(s).cdn)),$(Le,Y)};M(pe,Le=>{n(s).cdn&&Le(Z)})}var B=P(pe,2);{var fe=Le=>{var Y=G0(),Ne=P(C(Y),2),$e=C(Ne);S(Ne),S(Y),O(()=>{var Oe;return ge($e,`${(Oe=n(s).volume)!=null?Oe:""} %`)}),$(Le,Y)};M(B,Le=>{n(s).volume&&Le(fe)})}var me=P(B,2);{var Ie=Le=>{var Y=Y0(),Ne=P(C(Y),2),$e=C(Ne);S(Ne),S(Y),O(Oe=>ge($e,`${Oe!=null?Oe:""} s`),[()=>n(s).position.toFixed(2)]),$(Le,Y)};M(me,Le=>{n(s).position&&Le(Ie)})}var ot=P(me,2);{var Me=Le=>{var Y=j0(),Ne=P(C(Y),2),$e=C(Ne);S(Ne),S(Y),O(Oe=>ge($e,`${Oe!=null?Oe:""} s`),[()=>n(s).buffer.toFixed(2)]),$(Le,Y)};M(ot,Le=>{n(s).buffer&&Le(Me)})}var be=P(ot,2);{var W=Le=>{var Y=X0(),Ne=P(C(Y),2),$e=C(Ne);S(Ne),S(Y),O(Oe=>ge($e,`${Oe!=null?Oe:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),$(Le,Y)};M(be,Le=>{n(s).nativeBuffer&&Le(W)})}var Ce=P(be,2);{var ke=Le=>{var Y=Z0(),Ne=P(C(Y),2),$e=C(Ne);S(Ne),S(Y),O(Oe=>ge($e,`${Oe!=null?Oe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),$(Le,Y)};M(Ce,Le=>{n(s).liveLatency&&Le(ke)})}var Qe=P(Ce,2);{var Te=Le=>{var Y=J0(),Ne=P(C(Y),2),$e=C(Ne,!0);S(Ne),S(Y),O(Oe=>ge($e,Oe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Oe})=>Oe).map(({value:Oe,title:mt})=>`${mt} ${((Oe!=null?Oe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Le,Y)};M(Qe,Le=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Le(Te)})}var we=P(Qe,2),He=P(C(we),2),st=C(He);S(He),S(we);var ut=P(we,2);{var It=Le=>{var Y=ey(),Ne=P(C(Y),2);sc(Ne,{get values(){return n(I)}});var $e=P(Ne,2),Oe=C($e);S($e),S(Y),O(mt=>ge(Oe,`${mt!=null?mt:""} Kbps`),[()=>n(s).speed.toFixed(2)]),$(Le,Y)};M(ut,Le=>{n(s).speed&&Le(It)})}var lt=P(ut,2);{var ri=Le=>{var Y=ty(),Ne=P(C(Y),2);sc(Ne,{get values(){return n(T)}});var $e=P(Ne,2),Oe=C($e);S($e),S(Y),O(mt=>ge(Oe,`${mt!=null?mt:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),$(Le,Y)};M(lt,Le=>{n(s).bitrate&&Le(ri)})}var St=P(lt,2),Rt=P(C(St),2);sc(Rt,{get values(){return n(x)}});var Dt=P(Rt,2),Wt=C(Dt,!0);S(Dt),S(St),S(q),S(A),O(Le=>{var Y,Ne;E=ie(A,1,"container s-i",null,E,Le),De(A,"aria-label",D),ge(j,n(s).version),ge(st,`${(Y=n(p))!=null?Y:""} / ${(Ne=n(m))!=null?Ne:""} frames`),ge(Wt,n(v))},[()=>({"container-mobile":r()})]),$(t,A),F(),o()}et(["click"]);var db=require("@vkontakte/videoplayer-shared/es2018"),ny=(t,e)=>{t.stopPropagation(),e()()},ry=k('<div class="close s-19"></div>'),sy={hash:"s-19",code:'.close.s-19{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-19:hover{opacity:1}.close.s-19:after,.close.s-19:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-19:before{transform:rotate(45deg)}.close.s-19:after{transform:rotate(-45deg)}'};function Os(t,e){H(e,!0),Q(t,sy);let i=g(e,"onClick",3,db.noop);var o=ry();o.__click=[ny,i],$(t,o),F()}et(["click"]);var cb=require("@vkontakte/videoplayer-shared/es2018");var un=t=>`width:${t}px;height:${t}px;`;var ay=Ae('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function vr(t,e){H(e,!0);let i=f(()=>un(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=ay();$(o,a)},$$slots:{default:!0}}),F()}var ly=k('<div class="timer s-1a"><canvas class="timer-canvas s-1a" width="100" height="100"></canvas> <!></div>'),dy={hash:"s-1a",code:".timer.s-1a{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-1a:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1a{height:50px;position:absolute;width:50px}"};function lc(t,e){H(e,!0),Q(t,dy);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,cb.noop),r=5e3,a=K(void 0),l,d,s=0,u;Fe(()=>{i()&&Pt(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{m(),i()&&(u=(Date.now()-d)/r,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(),s=requestAnimationFrame(p)):o()())};Lt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),cn(()=>{m()});var v=ly(),b=C(v);tt(b,_=>N(a,_),()=>n(a));var y=P(b,2);vr(y,{get size(){return"24"}}),S(v),$(t,v),F()}var cy=(t,e,i)=>{e(!1),i()},uy=k('<div class="overlay s-14"></div> <div class="next-video s-14"><div class="top s-14"><div class="caption s-14"> </div> <!></div> <div class="row s-14"><div class="column s-14"><div class="thumb s-14"><div></div> <!></div></div> <div class="column s-14"><div class="title s-14"> </div></div></div></div>',1),py={hash:"s-14",code:".overlay.s-14{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-14{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-14{display:flex;justify-content:space-between}.caption.s-14{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-14{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-14{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-14{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-14,.thumb-overlay.s-14{height:100%;width:100%}.thumb-overlay.s-14{position:absolute}.thumb-overlay.withOpacity.s-14{background:var(--black);opacity:.3}.title.s-14{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function fm(t,e){H(e,!0),Q(t,py);let[i,o]=Be(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ye(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},_=()=>{e.clickCloseIcon(),b()};Lt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Re(),I=se(x);{var T=D=>{var A=uy(),E=P(se(A),2),V=C(E),q=C(V),L=C(q,!0);S(q);var z=P(q,2);Os(z,{onClick:_}),S(V);var j=P(V,2);j.__click=[cy,u,p];var te=C(j),ee=C(te),oe=C(ee);let ae;var le=P(oe,2);{var ce=de=>{let ze=f(()=>a()&&r());lc(de,{get isRunning(){return n(ze)},onTimerEnded:y})};M(le,de=>{r()&&de(ce)})}S(ee),S(te);var X=P(te,2),_e=C(X),Ee=C(_e,!0);S(_e),S(X),S(j),S(E),O((de,ze)=>{ge(L,de),Ke(ee,`background-image: url('${e.thumb}')`),ae=ie(oe,1,"thumb-overlay s-14",null,ae,ze),ge(Ee,e.title)},[()=>G("end_screen_next_video"),()=>({withOpacity:r()})]),$(D,A)};M(I,D=>{e.isHide||D(T)})}$(t,x),F(),o()}et(["click"]);var pa=require("@vkontakte/videoplayer-core/es2018"),ub=require("@vkontakte/videoplayer-shared/es2018"),Mn=require("@vkontakte/videoplayer-statistics/es2018");var mm=(t,e)=>Math.min(+(t+e).toFixed(2),1),vm=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xu=(t,e,i)=>{let o=mm(e,i);e<1&&t.actions.internal.setVolume(o)},Zu=(t,e,i)=>{let o=vm(e,i);e>0&&t.actions.internal.setVolume(o)};var ua=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function Ju(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var my=(t,e)=>{e(t)},vy=k('<div class="keyboard-controls s-u" tabindex="-1" role="region"><!></div>'),gy={hash:"s-u",code:".keyboard-controls.s-u{bottom:0;left:0;position:absolute;right:0;top:0}"};function gm(t,e){var Ye,Ue;H(e,!0),Q(t,gy);let[i,o]=Be(),r=()=>w(te,"$isMinimalView$",i),a=()=>w(ze,"$availableSubtitlesList$",i),l=()=>w(_e,"$disabledControls$",i),d=()=>w(Qe,"$isInteractiveTime$",i),s=()=>w(Te,"$showInteractiveTimeIndicatorTooltip$",i),u=()=>w(ee,"$playbackState$",i),m=()=>w(ot,"$isEnded$",i),p=()=>w(me,"$doubleForwardAvailable$",i),v=()=>w(fe,"$doubleForwardOn$",i),b=()=>w(Me,"$overlayContainer$",i),y=()=>w(ae,"$adPlaybackState",i),_=()=>w(le,"$positionExact$",i),x=()=>w(ce,"$duration$",i),I=()=>w(Ce,"$isAudioAvailable$",i),T=()=>w(X,"$volume$",i),D=()=>w(oe,"$canChangePlaybackSpeed$",i),A=()=>w(Ee,"$muted$",i),E=()=>w(de,"$currentSubtitle$",i),V=g(e,"hasNextVideo",3,!1),q=g(e,"hasPrevVideo",3,!1),L=ye(),z=Mt(),j=L.getLogger().createComponentLog("KeyboardControls component"),te=L.ui.isMinimalView$,ee=L.state.playbackState$,oe=L.state.canChangePlaybackSpeed$,ae=L.ads.playbackState,le=L.state.positionExact$,ce=L.state.duration$,X=L.state.volume$,_e=L.ui.controls.disabledControls$,Ee=L.state.muted$,de=L.state.currentSubtitle$,ze=L.state.availableSubtitlesList$,ue=f(()=>!r()&&a().length>0),pe=L.ui.contextMenu.openedByHotKey$,Z=L.ui.contextMenu.lastActiveElem$,B=L.ui.contextMenu.visible$,fe=L.ui.doubleForwardOn$,me=L.ui.doubleForwardAvailable$,Ie=L.ui.contextMenu.position$,ot=L.state.isEnded$,Me=L.ui.overlayContainer$,be=(Ye=L.callbacks)==null?void 0:Ye.onAudioDoesNotExistHint,W=(Ue=L.callbacks)==null?void 0:Ue.onAudioDisabledHint,Ce=L.state.isAudioAvailable$,ke=L.state.isAudioDisabled,Qe=L.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Te}=yo(),we=0,He=!0,st=K(void 0),ut=xe=>(xe!==He&&(He=xe,we=0),we+=1,(z.controls.seekStepKeyboard+z.controls.seekStepKeyboard*we)/1e3),It=!0,lt=()=>{if(!l().has("PLAY_BUTTON"))if(d()&&s()&&Te.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{L.actions.internal.togglePlay();let xe="PLAY";u()===pa.PlaybackState.PAUSED?xe="PAUSE":m()&&(xe="REPLAY"),e.showHotKeyHelpers({type:xe})}},ri=xe=>{if(!p()||!xe&&v()){lt(),e.stopDoubleForward(),It=!0;return}It=!1,!xe&&e.startDoubleForwardActivationTimer()},St=()=>{It||(v()||lt(),e.stopDoubleForward(),It=!0)},Rt=xe=>{xe!=="Space"&&e.stopDoubleForward()},Dt=xe=>{let Nt=lb(b());Ie.set(Nt),Z.set(xe.target),pe.set(!0),B.set(!0)},Wt=(xe,Nt=!1)=>{var We,nt;let Tt=xe.target,qt=(We=Tt==null?void 0:Tt.getAttribute("role"))==null?void 0:We.includes("menuitem"),hi=Tt.classList.contains("btn"),mi=xe.code;if(hi&&mi==="Space")return!1;let ki=u_.has(mi);if(qt&&ki)return!1;let Ji=!c_.has(mi);if(xe.ctrlKey&&Ji||xe.altKey&&Ji||xe.metaKey)return!1;let ai=qt&&mi==="Escape";p_.has(mi)||ai||e.hideContextMenu();let wi=u()===pa.PlaybackState.PLAYING||u()===pa.PlaybackState.PAUSED,eo=e.isAds&&(y()==="paused"||y()==="playing"),Li=!eo&&!l().has("TIMELINE"),li=xe.shiftKey&&["Digit1","Numpad1"].includes(mi);if(!li&&!(wi||eo))return!1;j({message:`key down, code: ${mi}, isExternal = ${Nt}`});let Ui=!1,bt=()=>{Ui=!0,Nt||xe.preventDefault()};if(Rt(mi),li)return Dt(xe),bt(),!0;switch(mi){case"KeyJ":case"ArrowLeft":{if(!Li)break;if(xe.ctrlKey||xe.altKey){let pt=L.actions.internal.getPrevEpisode();L.actions.internal.seekToPrevEpisode(pt),pt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:pt.text}),bt()}else{let pt=xe.shiftKey?ut(!1):z.controls.seekStepKeyboard/1e3,di=Math.max(_()-pt,0);_()>0&&(L.actions.internal.seekTime(di,Mn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:pt.toString()}),bt())}break}case"KeyL":case"ArrowRight":{if(!Li)break;if(xe.ctrlKey||xe.altKey){let pt=L.actions.internal.getNextEpisode();L.actions.internal.seekToNextEpisode(pt),pt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:pt.text}),bt()}else{let pt=xe.shiftKey?ut(!0):z.controls.seekStepKeyboard/1e3,di=Math.min(_()+pt,x());Math.round(_())<Math.round(x())&&(L.actions.internal.seekTime(di,Mn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:pt.toString()}),bt())}break}case"ArrowUp":{if(ua({isAudioDisabled:ke,audioDisabledHintCallback:W,isAudioAvailable:I(),audioIsNotExistHintCallback:be,isAds:e.isAds})){let pt=T(),di=z.controls.volumeStepKeyboard,zi=pt<=1;if(Xu(L,pt,di),zi){let to=Math.round(mm(pt,di)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:to}})}}bt();break}case"ArrowDown":{if(ua({isAudioDisabled:ke,audioDisabledHintCallback:W,isAudioAvailable:I(),audioIsNotExistHintCallback:be,isAds:e.isAds})){let pt=T(),di=z.controls.volumeStepKeyboard,zi=pt>=0;if(Zu(L,pt,di),zi){let to=Math.round(vm(pt,di)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:to}})}}bt();break}case"Comma":{if(xe.shiftKey){if(!v()&&D()){let pt=L.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:pt==null?void 0:pt.displayValue}),bt()}}else{if(eo||u()!==pa.PlaybackState.PAUSED)break;let pt=Math.max(_()-z.controls.seekStepFrame/1e3,0);_()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(pt,Mn.SeekAction.DOUBLE_TAP),bt())}break}case"Period":{if(xe.shiftKey){if(!v()&&D()){let pt=L.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:pt==null?void 0:pt.displayValue}),bt()}}else{if(eo||u()!==pa.PlaybackState.PAUSED)break;let pt=Math.min(_()+z.controls.seekStepFrame/1e3,x());_()<x()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(pt,Mn.SeekAction.DOUBLE_TAP),bt())}break}case"KeyK":lt(),bt();break;case"Space":ri(xe.repeat),bt();break;case"KeyM":{ua({isAudioDisabled:ke,audioDisabledHintCallback:W,isAudioAvailable:I(),audioIsNotExistHintCallback:be,isAds:e.isAds})&&(e.showHotKeyHelpers({type:A()?"VOLUME":"MUTE"}),L.actions.internal.toggleMuted()),bt();break}case"KeyF":e.toggleFullscreen(),bt();break;case"KeyC":if(!n(ue))break;L.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(nt=E())==null?void 0:nt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),bt();break;case"KeyI":L.actions.internal.togglePictureInPicture(),bt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.1,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.2,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.3,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.4,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.5,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.6,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.7,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.8,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.9,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(0,Mn.SeekAction.DOUBLE_TAP),bt();break;case"Slash":{xe.shiftKey&&z.features.hotKeyMapModal&&(e.showKeyMap(),bt());break}case"KeyN":xe.shiftKey&&V()&&!r()&&(L.actions.internal.nextVideoClick(),bt());break;case"KeyP":xe.shiftKey&&q()&&!r()&&(L.actions.internal.prevVideoClick(),bt());break;case"ShiftLeft":case"ShiftRight":bt();break;case"Tab":case"Escape":case"Enter":break;default:(0,ub.checkNever)(mi);break}return Ui},Le=xe=>{let Nt=xe.code;if(xe.ctrlKey||xe.altKey||xe.metaKey)return;let Tt=u()===pa.PlaybackState.PLAYING||u()===pa.PlaybackState.PAUSED,qt=e.isAds&&(y()==="paused"||y()==="playing");if(Tt||qt)switch(Nt){case"ShiftLeft":case"ShiftRight":we=0;break;case"Space":St();break}},Y=G("aria_label_video_player"),Ne=()=>{var xe;return(xe=n(st))==null?void 0:xe.focus()},$e=()=>n(st)===Ju(),Oe=xe=>xe.type==="keydown"?Wt(xe,!0):(xe.type==="keyup"&&Le(xe),!1);var mt=vy();mt.__keyup=Le,mt.__keydown=[my,Wt];var Et=C(mt);ei(Et,()=>{var xe;return(xe=e.children)!=null?xe:yt}),S(mt),tt(mt,xe=>N(st,xe),()=>n(st)),O(()=>De(mt,"aria-label",Y)),$(t,mt);var Se=F({focus:Ne,isFocused:$e,handleExternalKeyboardEvent:Oe});return o(),Se}et(["keyup","keydown"]);var hy=k('<div class="container s-j"><div class="dot s-j"></div> <div class="dot s-j"></div> <div class="dot s-j"></div></div>'),_y={hash:"s-j",code:".container.s-j{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-j:first-child{animation-delay:0s}.dot.s-j:nth-child(2){animation-delay:.18s}.dot.s-j:nth-child(3){animation-delay:.36s}@keyframes s-j-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-j{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-j-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-j+.dot:where(.s-j){margin-left:4px}"};function Qa(t,e){Q(t,_y);let i=g(e,"style",3,"");var o=hy();O(()=>Ke(o,i())),$(t,o)}var by=Ae('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function hm(t,e){Xe(t,{get fill(){return e.fill},children:(i,o)=>{var r=by();$(i,r)},$$slots:{default:!0}})}var Ga=require("@vkontakte/videoplayer-shared/es2018"),$y=t=>{t.stopPropagation()},yy=k("<button><!></button>"),xy={hash:"s-1n",code:"button.btn.s-1n{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1n{width:100%}button.btn--live.s-1n{padding:10px 4px}button.btn-jc-l.s-1n{justify-content:left}button.btn-m.s-1n{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1n,button.btn-m--play.s-1n{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1n{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1n,button.btn-m--prev.s-1n{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1n{right:calc(100% + 35px)}button.btn-m--next.s-1n{left:calc(100% + 35px)}button.btn.s-1n:disabled{cursor:default;pointer-events:none}button.btn.s-1n:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1n:not(:disabled):hover{opacity:.8}button.pr-0.s-1n{padding-right:0}button.pl-0.s-1n{padding-left:0}"};function Ht(t,e){H(e,!0),Q(t,xy);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),a=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),s=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),m=g(e,"ariaExpanded",3,void 0),p=g(e,"tabIndex",3,0),v=g(e,"click",3,Ga.noop),b=g(e,"focus",3,Ga.noop),y=g(e,"blur",3,Ga.noop),_=f(()=>v()===Ga.noop?null:A=>{A.stopPropagation(),v()(A)}),x=f(()=>b()===Ga.noop?null:A=>{A.preventDefault(),b()()}),I=f(()=>y()===Ga.noop?null:A=>{A.preventDefault(),y()()});var T=yy();T.__pointerdown=[$y],T.__click=function(...A){var E;(E=n(_))==null||E.apply(this,A)};var D=C(T);ei(D,()=>{var A;return(A=e.children)!=null?A:yt}),S(T),tt(T,A=>s(A),()=>s()),O(()=>{var A,E,V,q,L,z,j,te;ie(T,1,`btn ${(A=i())!=null?A:""}`,"s-1n"),Ke(T,o()||null),T.disabled=(E=r())!=null?E:null,De(T,"aria-hidden",(V=l())!=null?V:null),De(T,"aria-label",(q=d())!=null?q:null),De(T,"aria-keyshortcuts",(L=u())!=null?L:null),De(T,"aria-expanded",(z=m())!=null?z:null),De(T,"data-testid",(j=a())!=null?j:null),De(T,"tabindex",p()),De(T,"role",e.role),De(T,"aria-checked",(te=e.areaChecked)!=null?te:null)}),_t("focus",T,function(...A){var E;(E=n(x))==null||E.apply(this,A)}),_t("blur",T,function(...A){var E;(E=n(I))==null||E.apply(this,A)}),$(t,T),F()}et(["pointerdown","click"]);var wy=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},Sy=k('<div class="modal-header s-1f"><h3 class="modal-title s-1f"> </h3> <!></div>'),Cy=k('<div class="modal-overlay s-1f"><div class="modal-container s-1f" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1f" tabindex="0" role="scrollbar"><div class="modal-main s-1f"><!></div></div></div></div>'),Ty={hash:"s-1f",code:'.modal-overlay.s-1f{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:var(--modal-z-index)}.modal-container.s-1f{background:var(--mobile-settings-bg);border-radius:8px;color:var(--white);display:flex;flex-direction:column;height:calc(100% - 24px);max-height:490px;max-width:600px;width:calc(100% - 32px)}.modal-header.s-1f{align-items:start;border-bottom:1px solid var(--white-alpha-24);box-sizing:border-box;display:flex;height:40px;justify-content:space-between;padding:8px 10px}.modal-title.s-1f{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;margin:3px 0 0 6px}.modal-scroll.s-1f{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1f::-webkit-scrollbar{width:8px}.modal-scroll.s-1f::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1f::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1f::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1f{margin:-8px -4px 0 0}'};function _m(t,e){H(e,!0),Q(t,Ty);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=K(void 0),a=K(void 0),{webApi:{focusManager:l}}=ye(),d=G("hotkey_map_modal_close_btn_text");Lt(()=>{var _;return(_=n(r))==null||_.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=Cy();s.__keydown=[wy,e];var u=C(s),m=C(u);{var p=_=>{var x=Sy(),I=C(x),T=C(I,!0);S(I);var D=P(I,2);{var A=E=>{Ht(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(V,q)=>{hm(V,{fill:"currentColor"})},$$slots:{default:!0}})};M(D,E=>{o()&&E(A)})}S(x),O(()=>ge(T,e.title)),$(_,x)};M(m,_=>{i()&&_(p)})}var v=P(m,2),b=C(v),y=C(b);ei(y,()=>{var _;return(_=e.children)!=null?_:yt}),S(b),S(v),tt(v,_=>N(r,_),()=>n(r)),S(u),tt(u,_=>N(a,_),()=>n(a)),S(s),$(t,s),F()}et(["keydown"]);var Iy=new Set(["BR"]),pb=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;Iy.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var Ey=k('<li class="hot-key-map-item s-x"><span class="hot-key-map-item-description s-x"><!></span> &nbsp; <span class="hot-key-map-item-value s-x"> </span></li>'),Py=k('<div class="hot-key-map-group s-x"><h5 class="hot-key-map-group-title s-x"> </h5> <ul class="hot-key-map-group-items s-x"></ul></div>'),Ay=k('<div class="hot-key-map s-x"></div>'),ky={hash:"s-x",code:'.hot-key-map.s-x{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-x{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-x:last-child{border-bottom:none}.hot-key-map-group-title.s-x{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.s-x,.hot-key-map-item.s-x{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-x{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-x{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.s-x{color:var(--white-alpha-72);max-width:388px;width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left))}.hot-key-map-item-value.s-x{color:var(--white);letter-spacing:-.14px;padding-left:var(--videoplayer-hotkey-item-value-padding-left);width:var(--videoplayer-hotkey-item-value-width)}.hot-key-map-item-description.s-x,.hot-key-map-item-value.s-x{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function bm(t,e){H(e,!1),Q(t,ky);let[i,o]=Be(),r=()=>w(l,"$data",i),a=ye(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};on(),_m(t,{get title(){return r().title},onClose:s,children:(u,m)=>{var p=Ay();xi(p,5,()=>r().groups,({title:v,items:b})=>v,(v,b)=>{let y=()=>n(b).title,_=()=>n(b).items;var x=Py(),I=C(x),T=C(I,!0);S(I);var D=P(I,2);xi(D,5,_,({description:A,value:E})=>E,(A,E)=>{let V=()=>n(E).description,q=()=>n(E).value;var L=Ey(),z=C(L),j=C(z);Fd(j,()=>pb(V())),S(z);var te=P(z,2),ee=C(te,!0);S(te),S(L),O(()=>ge(ee,q())),$(A,L)}),S(D),S(x),O(()=>ge(T,y())),$(v,x)}),S(p),$(u,p)},$$slots:{default:!0}}),F(),o()}var wv=require("@vkontakte/videoplayer-shared/es2018");var ol=require("@vkontakte/videoplayer-core/es2018");var fb=require("@vkontakte/videoplayer-shared/es2018");var Ly=k('<div class="pillow s-1x"><!></div>'),My={hash:"s-1x",code:".pillow.s-1x{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function $m(t,e){Q(t,My);var i=Ly(),o=C(i);ei(o,()=>{var r;return(r=e.children)!=null?r:yt}),S(i),O(()=>De(i,"data-testid",e.testId)),$(t,i)}var Zl=require("@vkontakte/videoplayer-shared/es2018");var Vy=Ae('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function ym(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();so(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ei(r,()=>{var a;return(a=e.children)!=null?a:yt}),Xt(),S(o),$(t,o)}var Ry=Ae('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function xm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();so(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ei(r,()=>{var a;return(a=e.children)!=null?a:yt}),Xt(),S(o),$(t,o)}var Dy=Ae('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function wm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();so(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ei(r,()=>{var a;return(a=e.children)!=null?a:yt}),Xt(),S(o),$(t,o)}var Ny=Ae('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function Sm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();so(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ei(r,()=>{var a;return(a=e.children)!=null?a:yt}),Xt(),S(o),$(t,o)}var Oy=Ae('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function Cm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();so(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=C(o);ei(r,()=>{var a;return(a=e.children)!=null?a:yt}),Xt(),S(o),$(t,o)}var ep=t=>{switch(t){case Zl.VideoQuality.Q_720P:return wm;case Zl.VideoQuality.Q_1080P:return Sm;case Zl.VideoQuality.Q_1440P:return Cm;case Zl.VideoQuality.Q_2160P:return ym;case Zl.VideoQuality.Q_4320P:return xm}};var By=Ae('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 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>');function Tm(t,e){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=By();$(i,r)},$$slots:{default:!0}})}var Hy=Ae('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Im(t,e){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=Hy();$(i,r)},$$slots:{default:!0}})}var Fy=k('<div aria-hidden="true"><!> <!></div>'),Uy={hash:"s-1u",code:".icon.s-1u{display:flex;height:24px;position:relative;width:24px}.icon.s-1u .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1u .pillow{right:-13px}.icon.s-1u svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function dc(t,e){H(e,!0),Q(t,Uy);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=f(()=>o()?(0,fb.getVideoQualityLabel)(o()):""),a=f(()=>ep(o())),l=f(()=>n(r).length>2);var d=Re(),s=se(d);{var u=p=>{Tm(p,{testId:"settings-mobile-icon"})},m=p=>{var v=Fy();let b;var y=C(v);{var _=T=>{let D=f(()=>`${n(r)}-pill-icon`);$m(T,{get testId(){return n(D)},children:(A,E)=>{var V=Re(),q=se(V);Fi(q,()=>n(a),(L,z)=>{z(L,{})}),$(A,V)},$$slots:{default:!0}})};M(y,T=>{n(a)&&T(_)})}var x=P(y,2);let I=f(()=>n(a)?"settings-icon--labeled":"settings-icon");Im(x,{get testId(){return n(I)}}),S(v),O(T=>b=ie(v,1,"icon s-1u",null,b,T),[()=>({triple:n(l)})]),$(p,v)};M(s,p=>{i()?p(u):p(m,!1)})}$(t,d),F()}var zy=k('<span class="settings-icon-wrapper s-1z"><!></span>'),Wy={hash:"s-1z",code:".settings-icon-wrapper.s-1z{height:24px;position:relative;width:24px}"};function Jl(t,e){H(e,!0),Q(t,Wy);let[i,o]=Be(),r=()=>w(u,"$settingsMenuVisible",i),a=()=>w(v,"$isMobile",i),l=()=>w(s,"$currentQuality",i),d=ye(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,b=d.ui.t,y=K(void 0);Fe(()=>{n(y)&&Pt(()=>{e.ref$.set(n(y))})});let _=b("aria_label_settings");async function x(T){let D=ca(T);r()?p():m(D,ho)}let I=f(()=>r()?"opened":"");Ht(t,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return _},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){N(y,T,!0)},children:(T,D)=>{var A=zy(),E=C(A);dc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),$(T,A)},$$slots:{default:!0}}),F(),o()}var Ky=Ae('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.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"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),qy=Ae("<path></path>");function fa(t,e){H(e,!0);let i=f(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=f(()=>un(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Re(),d=se(l);{var s=m=>{var p=Ky();Xt(),$(m,p)},u=m=>{var p=qy();O(()=>De(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
57
57
  ${e.type==="outline"?"M12.54 11.68c-1.04.1-1.64.26-2.1.48a5.2 5.2 90 00-2.28 2.28c-.22.46-.4 1.06-.48 2.1-.08 1.08-.08 2.46-.08 4.46v6c0 2 0 3.38.08 4.46.1 1.04.26 1.64.48 2.1q.78 1.5 2.28 2.28c.46.22 1.06.4 2.1.48 1.08.08 2.48.08 4.46.08h14c2 0 3.38 0 4.46-.08 1.04-.1 1.64-.26 2.1-.48a5.2 5.2 90 002.28-2.28c.22-.46.4-1.06.48-2.1.08-1.08.08-2.48.08-4.46v-6c0-2 0-3.38-.08-4.46a6 6 90 00-.48-2.1 5.2 5.2 90 00-2.28-2.28c-.46-.22-1.06-.4-2.1-.48-1.08-.08-2.48-.08-4.46-.08h-14c-2 0-3.38 0-4.46.08":""}
58
- M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(f,p)};M(d,f=>{e.type==="off"?f(s):f(u,!1)})}b(r,l)},$$slots:{default:!0}}),F()}function Im(t,e){B(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ye().ui.t,a=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ht(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyC},role:"button",children:(l,d)=>{let s=m(()=>i()?void 0:"outline");ma(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),F()}var Wy=L('<span class="duration s-20" data-testid="video_duration"> </span>'),Ky=L('<div data-testid="time"><span class="current s-20" data-testid="current_time"> </span> <!></div>'),Qy={hash:"s-20",code:'.time.s-20{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-20{padding:0 0 0 8px}.current.s-20{position:relative}.duration.s-20{opacity:.7}.duration.s-20:before{content:" / ";white-space:pre}'};function ac(t,e){B(e,!0),Q(t,Qy);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),a=g(e,"ref",15),l=Mt(),d=ae(!1),s=m(()=>Zo(e.duration)),u=m(()=>Zo(e.position));var f=Ky();let p;var v=C(f),_=C(v,!0);S(v);var y=A(v,2);{var $=x=>{var I=Wy(),T=C(I,!0);S(I),N(()=>ve(T,n(s))),b(x,I)};M(y,x=>{r()&&x($)})}S(f),Ns(f,()=>ql(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),it(f,x=>a(x),()=>a()),N(x=>{p=oe(f,1,"time s-20",null,p,x),ve(_,n(u))},[()=>({mobile:i()})]),b(t,f),F()}var dc=require("@vkontakte/videoplayer-shared/es2018");var qy=Ae('<path d="M21.8632 10.0832C22.2147 9.73171 22.7852 9.73171 23.1367 10.0832C23.4881 10.4347 23.4881 11.0051 23.1367 11.3566L18.6367 15.8566C18.2852 16.2081 17.7147 16.2081 17.3632 15.8566C17.0117 15.5051 17.0117 14.9347 17.3632 14.5832L21.8632 10.0832Z"></path><path d="M17.3632 11.3566C17.0117 11.0051 17.0117 10.4347 17.3632 10.0832C17.7147 9.73171 18.2852 9.73171 18.6367 10.0832L23.1367 14.5832C23.4881 14.9347 23.4881 15.5051 23.1367 15.8566C22.7852 16.2081 22.2147 16.2081 21.8632 15.8566L17.3632 11.3566Z"></path>',1),Gy=Ae("<path></path>"),Yy=Ae('<path d="M14 3C14.5523 3 15 3.44772 15 4V20C15 20.5523 14.5523 21 14 21C13.3585 21 12.7422 20.7509 12.2808 20.3052L6.79013 15H4C2.89543 15 2 14.1046 2 13V11C2 9.89543 2.89543 9 4 9H6.765L12.2794 3.6934C12.7418 3.24852 13.3584 3 14 3Z"></path><!>',1);function va(t,e){B(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(u,f)=>f?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=m(()=>r(i(),o())),l=m(()=>fn(e.size)),d="M16.8748 8.85259C17.2324 8.50731 17.8021 8.51726 18.1474 8.87481C18.5465 9.28803 18.8614 9.77691 19.0757 10.3128C19.2901 10.8486 19.4 11.4218 19.4 12C19.4 12.5782 19.2901 13.1514 19.0757 13.6872C18.8614 14.2231 18.5465 14.712 18.1474 15.1252C17.8021 15.4827 17.2324 15.4927 16.8748 15.1474C16.5173 14.8021 16.5073 14.2324 16.8526 13.8748C17.0876 13.6314 17.2757 13.3408 17.4045 13.0187C17.5333 12.6966 17.6 12.3504 17.6 12C17.6 11.6496 17.5333 11.3034 17.4045 10.9813C17.2757 10.6592 17.0876 10.3686 16.8526 10.1252C16.5073 9.76764 16.5173 9.19788 16.8748 8.85259Z",s="M19.2636 6.2636C19.6151 5.91213 20.1849 5.91213 20.5364 6.2636C21.2516 6.97878 21.9929 7.99659 22.3989 8.97678C22.7959 9.93525 23.0003 10.9625 23.0003 12C23.0003 13.0374 22.7959 14.0647 22.3989 15.0232C21.9929 16.0034 21.2516 17.0212 20.5364 17.7364C20.1849 18.0879 19.6151 18.0879 19.2636 17.7364C18.9121 17.3849 18.9121 16.8151 19.2636 16.4636C19.8484 15.8788 20.4384 15.0527 20.7359 14.3343C21.0425 13.5943 21.2003 12.801 21.2003 12C21.2003 11.1989 21.0425 10.4057 20.7359 9.66561C20.4384 8.94724 19.8484 8.12124 19.2636 7.5364C18.9121 7.18492 18.9121 6.61508 19.2636 6.2636Z";je(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,f)=>{var p=Yy(),v=A(le(p));{var _=$=>{var x=qy();ei(),b($,x)},y=$=>{var x=Gy();N(()=>De(x,"d",`${d}${n(a)==="max"?s:""}`)),b($,x)};M(v,$=>{n(a)==="off"?$(_):$(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var Lo=require("@vkontakte/videoplayer-shared/es2018");var tp=require("@vkontakte/videoplayer-shared/es2018");var ub=require("@vkontakte/videoplayer-shared/es2018");var jy=L('<div class="overlay"><!></div>');function Em(t,e){B(e,!0);let[i,o]=Oe(),r=()=>w(l,"$overlayContainer$",i),l=ye().ui.overlayContainer$,d=K(void 0),s=v=>{!v||!n(d)||!v.contains(n(d))||v.removeChild(n(d))},u=v=>{!v||!n(d)||v.contains(n(d))||v.appendChild(n(d))};Fe(()=>{u(r())}),Lt(()=>(u(r()),()=>s(r())));var f=jy(),p=C(f);ti(p,()=>{var v;return(v=e.children)!=null?v:yt}),S(f),it(f,v=>D(d,v),()=>n(d)),b(t,f),F(),o()}var Xy=L('<div class="tooltip s-1n"><div class="content s-1n"> </div> <div class="tooltip-pointer s-1n"></div></div>'),Zy=L("<div><!></div> <!>",1),Jy={hash:"s-1n",code:'.tooltip-wrapper.s-1n{display:flex;flex-direction:column;min-width:0}.full-width.s-1n{width:100%}.tooltip.s-1n{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1n{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1n{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function Ga(t,e){B(e,!0),Q(t,Jy);let[i,o]=Oe(),r=()=>w(G,"$overlayContainer$",i),a=()=>w(U,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),s=g(e,"active",15,!1),u=g(e,"translateX",3,0),f=g(e,"translateY",3,0),p=g(e,"isFullWidthWrapper",3,!1),v=g(e,"maxTooltipWidth",3,void 0),_=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,ub.noop),$=5,x=K(void 0),I=K(void 0),T,R=K(0),k=K(0),P=K(0),E=K(0),W=Mt(),H=ye(),U=H.ui.playerSize,G=H.ui.overlayContainer$;Fe(()=>{Et(()=>{y()(s())})});let se=H.getLogger().createComponentLog("Tooltip component"),te=j=>{if(!r()||!n(I)||!n(x))return;D(k,$);let ne=r().getBoundingClientRect(),Se=n(x).getBoundingClientRect(),Le=Se.width,We=n(I).clientWidth,Ce=a().width,we=(Le-We)/2,Be=Se.left+u()-ne.left,rt=Be+we,mt=Se.top+f()-ne.top,Vt=We/2-$,lt=rt<8,jt=rt+We>Ce-8;j==="top-left"&&(rt=Be),lt&&(rt=8,Vt=Be+Se.width/2-2.5*$),jt&&(rt=Ce-8-We,Vt=Se.left-ne.left+Se.width/2-rt-$),D(P,rt,!0),D(E,mt),D(R,Vt,!0)},J=()=>{!r()||!n(I)||!n(x)||D(k,-$)},Y=()=>{if(!r()||!n(I)||!n(x))return;D(R,$);let j=r().getBoundingClientRect(),ne=n(x).getBoundingClientRect(),Se=ne.height,Le=n(I).clientHeight,We=(Se-Le)/2+Le,Ce=ne.left+u()-j.left-n(I).clientWidth,we=2,Be=Ce-$;Be<8&&(Be=8);let mt=ne.top+f()-j.top+We,Vt=we-We/2,lt=we-$;D(P,Be,!0),D(E,mt),D(k,Vt),D(R,lt)},Ie=()=>{!r()||!n(I)||!n(x)||D(R,-$)},ue=()=>{switch(_()){case"top":te();break;case"bottom":J();break;case"left":Y();break;case"top-left":te("top-left");break;default:Ie();break}},ie=()=>{try{if(!r()||!n(x))return;ue(),s(!0)}catch(j){se({message:String(j)})}},ge=()=>{s(!1)},Pe=()=>{n(I)&&(T||(T=window.setTimeout(ie,W.controls.hideTimeoutTooltips)),s()&&ie())},de=()=>{ge(),window.clearTimeout(T),T=void 0},Ke=(j,ne,Se)=>{let Le="";switch(_()){case"top":Le=`transform: translate(${j}px, ${ne}px);`;break;case"bottom":Le=`transform: translate(${j}px, ${ne}px); top: auto; bottom: 100%;`;break;case"left":Le=`transform: translate(${j}px, ${ne}px); left: 0; right: auto;`;break;default:Le=`transform: translate(${j}px, ${ne}px);`}return Le+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,Le+=` opacity: ${Se?1:0}; visibility: ${Se?"visible":"hidden"}`,Le},pe=(j,ne)=>{let Se="";switch(_()){case"top-left":case"top":Se=`transform: translate(${j}px, ${ne}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Se=`transform: translate(${j}px, ${ne}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Se=`transform: translate(${j}px, ${ne}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Se=`transform: translate(${j}px, ${ne}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Se},me=m(()=>Ke(n(P),n(E),s())),Z=m(()=>pe(n(R),n(k)));Lt(ue),pn(()=>window.clearTimeout(T));var O=Zy(),fe=le(O);let ce;fe.__pointermove=Pe,fe.__pointerdown=de,fe.__pointerup=function(...j){var ne;(ne=e.disableMouseupTooltipShow?void 0:Pe)==null||ne.apply(this,j)};var Re=C(fe);ti(Re,()=>{var j;return(j=e.children)!=null?j:yt}),S(fe),it(fe,j=>D(x,j),()=>n(x));var tt=A(fe,2);{var ke=j=>{Em(j,{children:(ne,Se)=>{var Le=Xy(),We=C(Le),Ce=C(We,!0);S(We);var we=A(We,2);S(Le),it(Le,Be=>D(I,Be),()=>n(I)),N(()=>{Qe(Le,n(me)),ve(Ce,d()),Qe(we,n(Z))}),b(ne,Le)},$$slots:{default:!0}})};M(tt,j=>{d()&&!l()&&j(ke)})}N(j=>ce=oe(fe,1,"tooltip-wrapper s-1n",null,ce,j),[()=>({"full-width":p()})]),ht("pointerenter",fe,Pe),ht("pointerleave",fe,de),b(t,O),F(),o()}et(["pointermove","pointerdown","pointerup"]);var pb=t=>{t.stopPropagation()},ex=L("<div><!></div>"),tx={hash:"s-1k",code:".btn-container.s-1k{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-1k{min-width:0;width:100%}"};function ko(t,e){B(e,!0),Q(t,tx);let[i,o]=Oe(),r=()=>w(u,"$isGraphOpened$",i),a=()=>w(s,"$isMobile",i),l=ye(),d=$o(),s=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,p=g(e,"className",3,""),v=g(e,"disabled",3,!1),_=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),$=g(e,"width",15,void 0),x=g(e,"isFullWidthTooltip",3,!0),I=g(e,"tooltipContent",3,""),T=g(e,"tooltipVisible",3,!1),R=g(e,"tooltipPlacement",3,"top"),k=g(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),P=g(e,"isAriaHidden",3,!1),E=g(e,"onTooltipVisibilityChange",3,tp.noop),W=g(e,"initialTranslateXPx",3,0),H=g(e,"initialTranslateYPx",19,()=>-18),U=g(e,"mouseEnter",3,tp.noop),G=g(e,"mouseLeave",3,tp.noop),se=m(()=>v()?r()?f("tooltip_disabled_when_graph_on"):k():I()),te=K(!1);Fe(()=>{T()||D(te,!1)});var J=ex();J.__pointerdown=[pb],J.__click=[pb];var Y=C(J);{var Ie=ie=>{Ga(ie,{get content(){return n(se)},get translateX(){return W()},get translateY(){return H()},get isFullWidthWrapper(){return x()},get placement(){return R()},get onVisibilityChange(){return E()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(te)},set active(ge){D(te,ge,!0)},children:(ge,Pe)=>{var de=Ve(),Ke=le(de);ti(Ke,()=>{var pe;return(pe=e.children)!=null?pe:yt}),b(ge,de)},$$slots:{default:!0}})},ue=ie=>{var ge=Ve(),Pe=le(ge);ti(Pe,()=>{var de;return(de=e.children)!=null?de:yt}),b(ie,ge)};M(Y,ie=>{_()&&n(se)&&!a()?ie(Ie):ie(ue,!1)})}S(J),it(J,ie=>y(ie),()=>y()),N(()=>{var ie;oe(J,1,`btn-container ${(ie=p())!=null?ie:""}`,"s-1k"),De(J,"aria-hidden",P()||null)}),ht("mouseenter",J,function(...ie){var ge;(ge=U())==null||ge.apply(this,ie)}),ht("mouseleave",J,function(...ie){var ge;(ge=G())==null||ge.apply(this,ie)}),Dn(J,"clientWidth",$),b(t,J),F(),o()}et(["pointerdown","click"]);var ix=Ae('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function lc(t,e){let i=m(()=>(e.completed,"interactive-episode-completed-icon"));je(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=ix(),l=le(a),d=A(l);N(()=>{De(l,"fill",aa),De(l,"fill-opacity",e.completed?1:.24),De(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,a)},$$slots:{default:!0}})}var ox=L("<div><!></div>"),nx={hash:"s-15",code:".interactive-episode-icon.s-15{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-15{opacity:.4;pointer-events:none}"};function Pm(t,e){B(e,!0),Q(t,nx);let o=ye().ui.t,r=K(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));ko(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=ox();let u;var f=C(s);let p=m(()=>!!e.videoEpisode.completed);lc(f,{get completed(){return n(p)}}),S(s),N(v=>{u=oe(s,1,"interactive-episode-icon s-15",null,u,v),Qe(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Dn(s,"clientWidth",v=>D(r,v)),b(l,s)},$$slots:{default:!0}}),F()}var rx=L('<div><div class="video-episode-inner s-16"><div class="video-episode-loaded s-16"></div> <div></div></div></div>'),sx=L('<div class="video-episodes-wrap s-16"></div>'),ax={hash:"s-16",code:".video-episodes-wrap.s-16{height:100%;position:absolute;width:100%}.video-episode.s-16{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-16:first-child{padding-left:0}.video-episode.s-16:last-child{padding-right:0}.video-episode.s-16:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-16,.video-episode-inner.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-16{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-16:first-child .video-episode-inner:where(.s-16),.video-episode.s-16:last-child .video-episode-inner:where(.s-16){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-16{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-16{background-color:var(--slider-filled-bg)}"};function Am(t,e){Q(t,ax);let i=g(e,"videoEpisodes",19,()=>[]);var o=sx();yi(o,21,i,r=>r.from,(r,a)=>{var l=rx();let d;var s=C(l),u=C(s),f=A(u,2);let p;S(s),S(l),N((v,_)=>{d=oe(l,1,"video-episode s-16",null,d,v),Qe(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Qe(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=oe(f,1,"video-episode-filled s-16",null,p,_),Qe(f,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),S(o),b(t,o)}function lx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&D(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;D(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function dx(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function cx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;D(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function ux(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function px(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),D(r,!1),a()(l)}var fx=L("<div></div>"),mx=L('<div class="bars s-t"><div class="loaded s-t"></div> <div></div></div>'),vx=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),gx={hash:"s-t",code:'.interactive-icons.s-t{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-t{top:-10px}.slider.s-t{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-t{cursor:default}.slider.s-t:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-t{background:var(--slider-bg);overflow:hidden}.bars.s-t,.loaded.s-t{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-t{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-t{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-t,.slider.square.s-t .filled:where(.s-t),.slider.square.s-t .loaded:where(.s-t),.slider.square.s-t>.bars:where(.s-t){border-radius:unset}.filled.active-live.s-t{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-t{background-color:var(--slider-filled-ads)}.handleWrap.s-t{left:-100%;position:absolute;width:100%}.handle.s-t{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-t{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-t .handle:where(.s-t),.slider-dragging.s-t .handle:where(.s-t),.slider.s-t:hover .handle:where(.s-t){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-t .handle:where(.s-t){transform:scale(1.3)}.slider-vertical.s-t{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-t{cursor:default;opacity:.4}'};function Ya(t,e){B(e,!0),Q(t,gx);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),a=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),s=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),f=g(e,"videoEpisodes",19,()=>[]),p=g(e,"withWheelHandler",3,!1),v=g(e,"isInteractive",3,!1),_=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),$=g(e,"onPointerDown",3,Lo.noop),x=g(e,"onHandleMove",3,Lo.noop),I=g(e,"onPointerUp",3,Lo.noop),T=g(e,"onPointerEnter",3,Lo.noop),R=g(e,"onPointerMove",3,Lo.noop),k=g(e,"onPointerLeave",3,Lo.noop),P=g(e,"onMouseEnter",3,Lo.noop),E=g(e,"onMouseLeave",3,Lo.noop),W=g(e,"onWheelUp",3,Lo.noop),H=g(e,"onWheelDown",3,Lo.noop),U=g(e,"onWheelLeft",3,Lo.noop),G=g(e,"onWheelRight",3,Lo.noop),se=g(e,"onDisabledClick",3,Lo.noop),te=g(e,"loadedProgress",3,0),J=g(e,"filledProgress",3,0),Y=g(e,"handleProgress",3,0),Ie=g(e,"ariaLabel",3,""),ue=g(e,"ariaValueMin",3,void 0),ie=g(e,"ariaValueMax",3,void 0),ge=g(e,"ariaValueNow",3,void 0),Pe=g(e,"ariaValueText",3,""),de=g(e,"onContextMenu",3,Lo.noop),Ke=g(e,"handleAlwaysVisible",3,!1),pe=Mt(),me=K(void 0),Z=K(!1),O=m(()=>{var be;return(be=ie())!=null?be:0}),fe=m(()=>{var be;return(0,Lo.isNonNullable)(f())&&((be=f()[f().length-1])==null?void 0:be.time)<n(O)}),ce=m(()=>(0,Lo.isNonNullable)(f())&&f().length&&n(fe)&&n(O)?We(te()*100,J()*100):[]);function Re(be){if(be.preventDefault(),i()&&D(me,i().getBoundingClientRect(),!0),_())return;let Ue=Se(be.clientX,be.clientY),Te=Le(be.clientX);T()(Ue,Te,n(me).width)}function tt(be){be.preventDefault(),!_()&&k()()}function ke(){P()()}function j(){E()()}function ne(be){_()||p()&&(be.preventDefault(),be.deltaY<0?W()():be.deltaY>0?H()():be.deltaX>0?G()():U()())}function Se(be,Ue){return l()?Math.max(0,Math.min(1,(n(me).height-(Ue-n(me).top))/n(me).height)):Math.min(Math.max(be-n(me).x,0),n(me).width)/n(me).width}function Le(be){return Math.min(Math.max(be-n(me).x,0),n(me).width)}function We(be,Ue){let Te=pe.features.episodesClustering&&!v()?pe.episodeMinWidthPc:0,$t=[],$e=f()[0].time/n(O)*100,qe=0,ze=0;for(let Pt=1;Pt<f().length;Pt++)qe=f()[Pt].time/n(O)*100,qe-$e>Te&&($t.push({from:$e,width:Math.max(0,qe-$e),loadedWidth:Math.max(0,Math.min(qe,be)-$e),filledWidth:Math.max(0,Math.min(qe,Ue)-$e),interactive:f()[Pt-1].interactive,completed:f()[Pt-1].completed}),$e=f()[Pt].time/n(O)*100,ze++);let st={from:$e,width:Math.max(0,100-$e),loadedWidth:Math.max(0,Math.min(be,100)-$e),filledWidth:Math.max(0,Math.min(Ue,100)-$e),interactive:f()[ze].interactive,completed:f()[ze].completed};100-$e<Te?(ze-=1,$t[ze].width+=100-$e,$t[ze].loadedWidth+=Math.max(0,Math.min(be,100)-$e),$t[ze].filledWidth+=Math.max(0,Math.min(Ue,100)-$e)):$t[ze]=st;let Gt=f()[0].time;if(Gt!==0){let Pt=Gt/n(O)*100;$t.unshift({from:0,width:Pt,loadedWidth:Math.min(Pt,be),filledWidth:Math.min(Pt,Ue)})}return $t}function Ce(be){return Math.max(0,Math.min(100,be*100))}let we=m(()=>Ce(te())),Be=m(()=>Ce(J()));var rt=vx(),mt=le(rt);{var Vt=be=>{var Ue=fx();let Te;yi(Ue,21,()=>n(ce),$t=>$t.from,($t,$e)=>{var qe=Ve(),ze=le(qe);{var st=Gt=>{Pm(Gt,{get videoEpisode(){return n($e)},get disabled(){return _()}})};M(ze,Gt=>{n($e).interactive&&Gt(st)})}b($t,qe)}),S(Ue),N($t=>Te=oe(Ue,1,"interactive-icons s-t",null,Te,$t),[()=>({mobile:s(),hidden:s()&&!n(Z)})]),b(be,Ue)};M(mt,be=>{v()&&be(Vt)})}var lt=A(mt,2);let jt;lt.__pointerdown=[lx,i,me,_,Z,Se,$],lt.__pointermove=[dx,_,Se,Le,R,me,Z,x],lt.__pointerup=[cx,_,Z,Se,I],lt.__click=[ux,_,se,Se],lt.__contextmenu=[px,Se,_,se,Z,de];var St=C(lt);{var Ut=be=>{Am(be,{get videoEpisodes(){return n(ce)},get disabled(){return _()},get isMobile(){return s()}})},Rt=be=>{var Ue=mx(),Te=C(Ue),$t=A(Te,2);let $e;S(Ue),N(qe=>{De(Te,"data-value",n(we)),Qe(Te,`transform: translateX(${n(we)}%);`),$e=oe($t,1,"filled s-t",null,$e,qe),De($t,"data-value",n(Be)),Qe($t,`transform: translateX(${n(Be)}%);`)},[()=>({"active-live":d()})]),b(be,Ue)};M(St,be=>{n(ce).length?be(Ut):be(Rt,!1)})}var zt=A(St,2);let xe;var X=C(zt);let Ne;S(zt),S(lt),it(lt,be=>i(be),()=>i()),N((be,Ue,Te,$t)=>{var $e,qe;jt=oe(lt,1,`slider ${($e=o())!=null?$e:""}`,"s-t",jt,be),De(lt,"aria-label",Ie()),De(lt,"aria-valuemin",ue()),De(lt,"aria-valuemax",ie()),De(lt,"aria-valuenow",ge()),De(lt,"aria-valuetext",Pe()),De(lt,"data-testid",(qe=r())!=null?qe:null),xe=oe(zt,1,"handleWrap s-t",null,xe,Ue),Qe(zt,Te),Ne=oe(X,1,"handle s-t",null,Ne,$t)},[()=>({disabled:_(),"slider-dragging":n(Z),hidden:a(),"handle-always-visible":Ke(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Ce(Y())}%);`,()=>({"active-live":d()})]),ht("pointerenter",lt,Re),ht("pointerleave",lt,tt),ht("mouseenter",lt,ke),ht("mouseleave",lt,j),ht("wheel",lt,ne),b(t,rt),F()}et(["pointerdown","pointermove","pointerup","click","contextmenu"]);var io=(t,e)=>Qd[t]>=Qd[e];var Hs=(t,e)=>Qd[t]<=Qd[e],fb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var _x=L("<div><!></div>"),bx=L("<div><!> <!></div>"),$x={hash:"s-28",code:".volumeBar-container.s-28{align-items:center;display:flex}.vertical.s-28 .btn,.vertical.s-28 .tooltip-wrapper,.volumeBar-container.vertical.s-28{width:40px}.volumeBar.s-28{align-items:center;display:flex;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.s-28{padding:0 8px 0 0;width:0}"};function km(t,e){var Le,We;B(e,!0),Q(t,$x);let[i,o]=Oe(),r=()=>w(R,"$isAudioAvailable$",i),a=()=>w(v,"$muted$",i),l=()=>w(p,"$volume$",i),d=()=>w(x,"$currentGridType$",i),s=()=>w(Re,"$controlsVisible",i),u=ye(),f=Mt(),p=u.state.volume$,v=u.state.muted$,{setVolume:_,startVolumeChanging:y,stopVolumeChanging:$}=u.actions.internal,x=u.ui.currentGridType$,I=(Le=u.callbacks)==null?void 0:Le.onAudioDoesNotExistHint,T=(We=u.callbacks)==null?void 0:We.onAudioDisabledHint,R=u.state.isAudioAvailable$,k=u.state.isAudioDisabled,P=u.ui.t,E=K(!1),W,H=m(()=>e.isAds||r()),U=m(()=>!n(H)||a()||l()===0),G=m(()=>Hs(d(),"l")),se=m(()=>n(G)?"":n(U)?!r()||k?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),te=m(()=>n(U)?P("tooltip_volume"):P("tooltip_volume_muted")),J=m(()=>n(U)?0:l()),Y=!1,Ie=m(()=>e.isAds?!1:k?!T:r()?!1:!I);function ue(Ce){y(),_(Ce)}function ie(){Xu(u,l(),f.controls.volumeStepWheel)}function ge(){Zu(u,l(),f.controls.volumeStepWheel)}function Pe(Ce){_(Ce)}function de(Ce){_(Ce),$()}function Ke(){Y=!0}function pe(){Y=!1,O()}function me(){clearTimeout(W),D(E,!0)}function Z(){O()}function O(){W=window.setTimeout(()=>{Y||D(E,!1)},f.controls.volumeBarTimeout)}function fe(Ce){Ce.preventDefault(),Ce.deltaY<0?ie():Ce.deltaY>0&&ge()}let ce=K(!1),Re=u.ui.controlsVisible;Fe(()=>{s()||D(ce,!1)});var tt=bx();let ke;var j=C(tt);Ga(j,{get content(){return n(se)},translateY:-18,get active(){return n(ce)},set active(Ce){D(ce,Ce,!0)},children:(Ce,we)=>{let Be=m(()=>n(G)?"btn-volume-vertical":"btn-volume-horizontal");Ht(Ce,{className:"btn-full-opacity",get disabled(){return n(Ie)},get testId(){return n(Be)},get ariaLabel(){return n(te)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyM},role:"button",children:(rt,mt)=>{va(rt,{get size(){return"24"},get volume(){return l()},get muted(){return n(U)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ne=A(j,2);{var Se=Ce=>{var we=_x();let Be;var rt=C(we);let mt=m(()=>n(G)?"volumeBar-slider-vertical":""),Vt=m(()=>n(G)&&!n(E)),lt=m(()=>n(G)?Ke:dc.noop),jt=m(()=>n(G)?pe:dc.noop),St=m(()=>Math.round(n(J)*100)),Ut=m(()=>`${Math.round(n(J)*100)}%`),Rt=m(()=>n(G)?"volume-slider-vertical":"volume-slider");Ya(rt,{get className(){return n(mt)},get isHidden(){return n(Vt)},get isVertical(){return n(G)},withWheelHandler:!0,onWheelUp:ie,onWheelDown:ge,onPointerDown:ue,onHandleMove:Pe,onPointerUp:de,get onPointerEnter(){return n(lt)},get onPointerLeave(){return n(jt)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(St)},get ariaValueText(){return n(Ut)},get filledProgress(){return n(J)},get handleProgress(){return n(J)},get testId(){return n(Rt)}}),S(we),N(zt=>Be=oe(we,1,"volumeBar s-28",null,Be,zt),[()=>({"volumeBar-vertical":n(G)})]),b(Ce,we)};M(ne,Ce=>{n(H)&&Ce(Se)})}S(tt),N(Ce=>ke=oe(tt,1,"volumeBar-container s-28",null,ke,Ce),[()=>({vertical:n(G)})]),ht("mouseenter",tt,function(...Ce){var we;(we=n(G)?me:dc.noop)==null||we.apply(this,Ce)}),ht("mouseleave",tt,function(...Ce){var we;(we=n(G)?Z:dc.noop)==null||we.apply(this,Ce)}),ht("wheel",tt,fe),b(t,tt),F(),o()}var mb=require("@vkontakte/videoplayer-shared/es2018");var yx=Ae('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),xx=Ae('<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.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Lm(t,e){let i=g(e,"isFullscreen",8,!1),o=mr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");je(t,{get testId(){return n(o)},children:(r,a)=>{var l=Ve(),d=le(l);{var s=f=>{var p=yx();b(f,p)},u=f=>{var p=xx();b(f,p)};M(d,f=>{i()?f(s):f(u,!1)})}b(r,l)},$$slots:{default:!0}})}function cc(t,e){B(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,mb.noop),r=ye(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ht(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let f=ua(u);a.set(f),o()()},get ariaKeyShortCut(){return _s.KeyF},role:"button",children:(u,f)=>{Lm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var wx=Ae('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Mm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=wx();to(o,()=>({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 r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:yt}),ei(),S(o),b(t,o)}var Sx=Ae('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Vm(t,e){let i=Nn(e,["$$slots","$$events","$$legacy","children"]);var o=Sx();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:yt}),ei(6),S(o),b(t,o)}var Cx={hash:"s-29",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Rm(t,e){B(e,!0),Q(t,Cx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),s=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);Vm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),F()}function uc(t,e){B(e,!0);let[i,o]=Oe(),r=()=>w(_,"$isMobile",i),a=()=>w(v,"$currentGridType$",i),l=()=>w($,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),s=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),f=Mt(),p=ye(),v=p.ui.currentGridType$,_=p.ui.isMobile,y=p.ui.t,$=p.isCyrillicRelatedInterface$,x=m(()=>f.logoType!=="vk"),I=m(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=m(()=>(r()&&Hs(a(),"m")||Hs(a(),"l"))&&n(x)),R=()=>{var E,W;e.click(),(E=p.callbacks)!=null&&E.onLogoClicked?(W=p.callbacks)==null||W.onLogoClicked():u()&&window.open(u(),"_blank")},k=m(()=>!s()),P=m(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");Ht(t,{className:"btn-full-opacity",get disabled(){return n(k)},click:R,get testId(){return n(P)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(E){d(E)},children:(E,W)=>{var H=Ve(),U=le(H);{var G=te=>{Rm(te,{get logo(){return f.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},se=te=>{Mm(te,{})};M(U,te=>{n(x)?te(G):te(se,!1)})}b(E,H)},$$slots:{default:!0}}),F(),o()}var gb=require("@vkontakte/videoplayer-core/es2018");var Dm=require("@vkontakte/videoplayer-core/es2018");var Tx=Ae('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-10"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-10"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-10"></path>',1),Ix=Ae('<path d="M3.60219 13.2993C6.41858 13.2995 8.70256 15.5835 8.70278 18.3999C8.70277 18.6469 8.68424 18.8909 8.65004 19.1294C8.57937 19.6212 8.12333 19.9625 7.63149 19.8921C7.13968 19.8213 6.79823 19.3654 6.86879 18.8735C6.89087 18.7195 6.90199 18.5611 6.902 18.3999C6.90178 16.5776 5.42447 15.1003 3.60219 15.1001C3.441 15.1001 3.28267 15.1112 3.12856 15.1333C2.63666 15.2039 2.18077 14.8624 2.11 14.3706C2.03966 13.8788 2.38091 13.4227 2.8727 13.3521C3.11125 13.3178 3.35516 13.2993 3.60219 13.2993Z"></path><path d="M3.60219 9.69971C8.40682 9.69977 12.3021 13.5953 12.3024 18.3999C12.3024 18.6248 12.2938 18.8489 12.277 19.0698C12.239 19.5651 11.8065 19.9365 11.3112 19.8989C10.8157 19.8611 10.4445 19.4286 10.4821 18.9331C10.4954 18.7576 10.5026 18.5791 10.5026 18.3999C10.5023 14.5894 7.41271 11.5005 3.60219 11.5005C3.42268 11.5005 3.24474 11.5066 3.06899 11.52C2.57352 11.5578 2.14115 11.1863 2.10317 10.6909C2.06587 10.1957 2.43694 9.76287 2.93227 9.7251C3.15348 9.70823 3.37699 9.69971 3.60219 9.69971Z"></path><path d="M3.60219 16.8999C4.43047 16.8999 5.10198 17.5717 5.10219 18.3999C5.10209 19.2282 4.43054 19.8999 3.60219 19.8999C2.77383 19.8999 2.10229 19.2282 2.10219 18.3999C2.10241 17.5717 2.7739 16.8999 3.60219 16.8999Z"></path><path d="M16.2379 4.1001C17.0459 4.10009 17.7067 4.10017 18.2438 4.14404C18.7997 4.18946 19.3022 4.28599 19.7711 4.5249C20.5049 4.89882 21.1014 5.49623 21.4752 6.22998C21.714 6.69873 21.8107 7.20063 21.8561 7.75635C21.9 8.29338 21.9001 8.95424 21.9 9.76221V14.2378C21.9001 15.0458 21.9 15.7066 21.8561 16.2437C21.8107 16.7996 21.7141 17.3021 21.4752 17.771C21.1014 18.5046 20.5048 19.1012 19.7711 19.4751C19.3022 19.714 18.7997 19.8105 18.2438 19.856C17.7067 19.8998 17.0459 19.8999 16.2379 19.8999H14.9997C14.503 19.8996 14.1005 19.4972 14.1002 19.0005C14.1002 18.5036 14.5028 18.1004 14.9997 18.1001H16.1998C17.0548 18.1001 17.6422 18.0992 18.0973 18.062C18.5419 18.0257 18.7809 17.9596 18.9538 17.8716C19.3489 17.6702 19.6704 17.3487 19.8717 16.9536C19.9598 16.7808 20.0258 16.5417 20.0622 16.0972C20.0993 15.6421 20.1002 15.0546 20.1002 14.1997V9.80029C20.1002 8.94536 20.0993 8.35794 20.0622 7.90283C20.0258 7.45834 19.9598 7.21921 19.8717 7.04639C19.6704 6.6514 19.3487 6.33073 18.9538 6.12939C18.7809 6.04133 18.5419 5.97431 18.0973 5.93799C17.6422 5.9008 17.0548 5.8999 16.1998 5.8999H6.00063L5.83071 5.90674C4.99191 5.97398 4.28981 6.53462 4.01918 7.30029C3.85342 7.76872 3.33928 8.01472 2.87075 7.84912C2.40214 7.68346 2.15628 7.16833 2.32192 6.69971C2.85696 5.18632 4.30125 4.1001 6.00063 4.1001H16.2379Z"></path><path d="M2.95114 7.11345C2.42394 7.1914 1.90399 6.78569 2.00995 6.2634C2.05777 6.0277 2.12517 5.82449 2.22018 5.63803C2.5078 5.07354 2.96674 4.6146 3.53123 4.32698C4.17296 4 5.01304 4 6.6932 4H17.2001C18.8803 4 19.7204 4 20.3621 4.32698C20.9266 4.6146 21.3855 5.07354 21.6731 5.63803C22.0001 6.27976 22.0001 7.11984 22.0001 8.8V15.2C22.0001 16.8802 22.0001 17.7202 21.6731 18.362C21.3855 18.9265 20.9266 19.3854 20.3621 19.673C19.7204 20 18.8803 20 17.2001 20H15.7196C15.2009 20 14.8203 19.5134 14.8938 19C14.9638 18.5101 15.0001 18.0093 15.0001 17.5C15.0001 11.701 10.2991 7 4.5001 7C3.97384 7 3.45662 7.03872 2.95114 7.11345Z"></path>',1),Ex={hash:"s-10",code:".animated.s-10{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-10{animation-name:s-10-wave1}.wave2.animated.s-10{animation-name:s-10-wave2}.wave3.animated.s-10{animation-name:s-10-wave3}@keyframes s-10-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-10-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-10-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function pc(t,e){B(e,!0),Q(t,Ex);let i=g(e,"isMobile",3,!1),o=m(()=>e.iconState===Dm.ChromecastState.CONNECTED),r=m(()=>e.iconState===Dm.ChromecastState.CONNECTING),a=m(()=>n(o)?"#2688EB":aa),l=m(()=>e.size?fn(e.size):void 0);var d=Ve(),s=le(d);{var u=p=>{je(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,_)=>{var y=Tx();ei(2),b(v,y)},$$slots:{default:!0}})},f=p=>{je(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,_)=>{var y=Ix(),$=le(y);let x;var I=A($);let T;var R=A(I);let k;var P=A(R);let E;var W=A(P);let H;N((U,G,se,te,J)=>{x=oe($,0,"wave2 s-10",null,x,U),T=oe(I,0,"wave3 s-10",null,T,G),k=oe(R,0,"wave1 s-10",null,k,se),E=oe(P,0,"s-10",null,E,te),H=oe(W,0,"s-10",null,H,J)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),b(v,y)},$$slots:{default:!0}})};M(s,p=>{i()?p(u):p(f,!1)})}b(t,d),F()}var hb=require("@vkontakte/videoplayer-shared/es2018");function fc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,hb.noop),l=ye().ui.t,d=m(()=>e.state===gb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ht(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{pc(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var _b=require("@vkontakte/videoplayer-shared/es2018");var Px=Ae('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Nm(t){je(t,{testId:"episodes-icon",children:(e,i)=>{var o=Px();ei(2),b(e,o)},$$slots:{default:!0}})}var ip=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Ax=L('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),kx=L('<span class="text s-24"> </span>'),Lx=L('<span class="text count s-24"> </span>'),Mx=L('<span class="icon s-24"><!></span> <!>',1),Vx={hash:"s-24",code:".icon.s-24{flex-shrink:0}.text.s-24{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-24{overflow:visible}.text.mobile.s-24{padding:0 3px 0 4px}.chevron-episodes.s-24{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function mc(t,e){var Y,Ie,ue;B(e,!0),Q(t,Vx);let[i,o]=Oe(),r=()=>w(y,"$currentGridType$",i),a=()=>w($,"$openedByKeyboard$",i),l=()=>w(x,"$panelOpened$",i),d=()=>w(I,"$isMobile",i),s=g(e,"position",3,0),u=g(e,"duration",3,0),f=g(e,"timeCodes",19,()=>[]),p=ye(),v=(Ie=(Y=p.callbacks)==null?void 0:Y.onEpisodeChanged)!=null?Ie:_b.noop,_=!!((ue=p.callbacks)!=null&&ue.onEpisodeClicked),y=p.ui.currentGridType$,$=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,R=K(void 0),k=ie=>{var Pe,de,Ke;if(!!((Pe=p.callbacks)!=null&&Pe.onEpisodeClicked)){let pe=ua(ie);$.set(pe),x.set(!0),(Ke=(de=p.callbacks)==null?void 0:de.onEpisodeClicked)==null||Ke.call(de,pe)}},P=K(null),E=m(()=>s()/u());Fe(()=>{var ge;let ie=ip(n(E),u(),f());ie?((ge=n(P))==null?void 0:ge.time)!==ie.time&&(v(ie),D(P,ie,!0)):D(P,null)});let W=m(()=>{var ie;return((ie=n(P))==null?void 0:ie.text)||""}),H=m(()=>io(r(),"xl")?"FULL":io(r(),"m")?"COUNT":"SHORT"),U=m(()=>`${T("tooltip_episodes")}: ${n(W)}`),G=async(ie,ge,Pe)=>{await vo(),(ie==null?void 0:ie.getAttribute("aria-expanded"))==="false"&&ge&&!Pe&&Et(()=>{$.set(!1),ie.focus()})};Fe(()=>{G(n(R),a(),l())});var se=Ve(),te=le(se);{var J=ie=>{let ge=m(()=>d()?"px-0":""),Pe=m(()=>!_);Ht(ie,{get className(){var de;return`w-max btn-full-opacity btn-jc-l ${(de=n(ge))!=null?de:""}`},testId:"btn-episodes",click:k,get disabled(){return n(Pe)},get ariaExpanded(){return l()},get ariaLabel(){return n(U)},get ref(){return n(R)},set ref(de){D(R,de,!0)},children:(de,Ke)=>{var pe=Ve(),me=le(pe);{var Z=fe=>{var ce=Ax(),Re=le(ce),tt=C(Re,!0);S(Re);var ke=A(Re,2),j=C(ke);Vr(j,{direction:"right"}),S(ke),N(()=>ve(tt,n(W))),b(fe,ce)},O=fe=>{var ce=Mx(),Re=le(ce),tt=C(Re);Nm(tt,{}),S(Re);var ke=A(Re,2);{var j=Se=>{var Le=kx(),We=C(Le,!0);S(Le),N(()=>ve(We,n(W))),b(Se,Le)},ne=(Se,Le)=>{{var We=Ce=>{var we=Lx(),Be=C(we,!0);S(we),N(()=>ve(Be,f().length)),b(Ce,we)};M(Se,Ce=>{n(H)==="COUNT"&&Ce(We)},Le)}};M(ke,Se=>{n(H)==="FULL"?Se(j):Se(ne,!1)})}b(fe,ce)};M(me,fe=>{d()?fe(Z):fe(O,!1)})}b(de,pe)},$$slots:{default:!0}})};M(te,ie=>{n(P)&&ie(J)})}b(t,se),F(),o()}var uv=require("@vkontakte/videoplayer-shared/es2018");var fi=require("@vkontakte/videoplayer-core/es2018"),at=require("@vkontakte/videoplayer-shared/es2018"),Dr=require("@vkontakte/videoplayer-statistics/es2018");var Ye=require("@vkontakte/videoplayer-shared/es2018"),oo=require("@vkontakte/videoplayer-shared/es2018"),Rx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",op=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 oo.Subject,loadStarted$:new oo.Subject,loadEnded$:new oo.Subject,loadError$:new oo.Subject,ready$:new oo.Subject,slotRequested$:new oo.Subject,started$:new oo.Subject,timeRemained$:new oo.Subject,paused$:new oo.Subject,resumed$:new oo.Subject,ended$:new oo.Subject,empty$:new oo.Subject,skipped$:new oo.Subject,clicked$:new oo.Subject,closed$:new oo.Subject,error$:new oo.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 r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),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,oo.addScript)(Rx,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=a,r=window.setTimeout(a,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(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),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,s=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=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),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)=>{var o;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(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?_e(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.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};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}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){var k,P;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,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:f,externalApi:p,json:v}=e;this.externalApi=p;let _,y=this.playerState&&_e(this.playerState.vsid);y&&(this.isVsidOriginal?_=y:_=parseInt(y,36));let{isEmbed:$,immediateOrigin:x}=(0,Ye.detectEmbed)(),I=(k=$?x:window.location.href)!=null?k:window.location.href,T=(0,Ye.withoutNullable)({...s,dl:encodeURIComponent(I),autoplay:r?1:0,player_width:i,player_height:o,..._?{request_id:_}:{},duration:f,...u}),R=(0,Ye.withoutNullable)({slot:v?void 0:d,wrapper:a,videoEl:l,videoQuality:o,params:v?void 0:T,browser:{mobile:!1},json:v});try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),!v&&((P=this.externalApi)!=null&&P.videoGetAds)){let W=await this.safeExternalCall(this.externalApi.videoGetAds,T);W&&(delete R.slot,delete R.params,Object.assign(R,{json:W}))}E.init(R),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(R)}`})}catch(E){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,a;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)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!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=_e(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,r,a,l,d,s,u,f,p,v;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),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,oo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}}};var bb=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 Om=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new np,{startTime:f,endTime:p}=u.parse(s);l.startTime=f,l.endTime=p}else if(s.trim()!==""){let u=new Bm,{texts:f}=u.parse(s);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},np=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",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},Bm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((f,p)=>{let v=l.indexOf(p,d);return f===-1||f>v?v:f},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new np;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},$b=Om;var sp=require("@vkontakte/videoplayer-shared/es2018"),ja,Vi,Fm=0,Hm=!1,yb="",xb=(t,e=0,i=0)=>t<e&&t<i,rp=(t,e=0,i=0)=>t>=e&&t<=i,Dx=(t,e=0,i=0)=>t>e&&t>i,wb=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>rp(t,u,f));let a=t>=Fm,l=t<Fm;if(Fm=t,l&&(Hm=!1),(0,sp.isNonNullable)(ja)&&rp(t,ja.startTime,ja.endTime)&&yb===e.value)return ja;if(!(0,sp.isNonNullable)(Vi)&&(r!=null&&r.length)&&!Hm){Vi=r.find(({startTime:u,endTime:f})=>rp(t,u,f)||a&&xb(t,u,f)),ja=void 0,!(0,sp.isNonNullable)(Vi)&&r[r.length-1].endTime<t&&(Hm=!0);return}else{if(rp(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime))return ja=Vi,Vi=void 0,yb=e.value,ja;(a&&Dx(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime)||l&&xb(t,Vi==null?void 0:Vi.startTime,Vi==null?void 0:Vi.endTime))&&(Vi=void 0)}};var ap={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},Nx={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"},vc=t=>{var e,i;return(i=(e=ap[t])!=null?e:ap[Nx[t]])!=null?i:void 0};var cp=require("@vkontakte/videoplayer-shared/es2018");function lp(t){let e="";return no(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),no(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),no(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),no(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),no(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),no(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),no(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),no(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),no(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),no(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),no(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),no(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),no(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),no(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),no(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),no(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),no(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),no(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),no(t.font)&&(e+=`--font:${t.font};`),no(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),no(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function no(t){return typeof t=="string"&&!t.includes(";")}var Ox=Ae('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),Bx=L('<div><div><!></div> <span class="title s-0"> </span></div>'),Fx={hash:"s-0",code:".player-pip-dummy.s-0{align-items:center;background-color:#19191a;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;width:100%}.player-pip-dummy.is-pip-api.s-0{position:relative}.dummy-image.s-0 svg{transform:scale(1.07143)}.dummy-image.desktop.s-0{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-0{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function Um(t,e){B(e,!0),Q(t,Fx);let[i,o]=Oe(),r=()=>w(u,"$interfaceLanguage$",i),a=()=>w(f,"$isMobile$",i),l=ye(),d=Mt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,p=l.ui.t,v=m(()=>r()&&p("pip_dummy_title")),_=lp(d.view);var y=Bx();let $;var x=C(y);let I;var T=C(x);je(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,E)=>{var W=Ox();ei(),b(P,W)},$$slots:{default:!0}}),S(x);var R=A(x,2),k=C(R,!0);S(R),S(y),N((P,E)=>{$=oe(y,1,"player-pip-dummy s-0",null,$,P),Qe(y,_),I=oe(x,1,"dummy-image s-0",null,I,E),ve(k,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),b(t,y),F(),o()}var zm=require("@vkontakte/videoplayer-core/es2018"),bs=require("@vkontakte/videoplayer-shared/es2018");var gc=require("@vkontakte/videoplayer-shared/es2018"),Us=()=>{var t;return(t=(0,gc.getWindow)().document)==null?void 0:t.pictureInPictureEnabled},Xa=()=>{let{isEmbed:t}=(0,gc.detectEmbed)();return"documentPictureInPicture"in(0,gc.getWindow)()&&!t},dp=t=>!!t.pictureInPictureWindow,Sb=t=>!!t.target&&"height"in t.target&&"width"in t.target,Cb=t=>typeof t=="boolean"?t:t!==void 0;var Za=class{constructor({enabled:e=!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,bs.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new bs.ValueSubject(!1),isEnabled$:new bs.ValueSubject(!1),type:0};this.info.isEnabled$=new bs.ValueSubject(e)}isSupported(){return Us()}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){let{document:e}=(0,bs.getWindow)();!this.isSupported()||!this.isActive()||!this.videoElement||!e.pictureInPictureElement||(await e.exitPictureInPicture(),zm.clientChecker.browser.isYandex&&!this.videoElement.isConnected&&this.onLeavePictureInPicture())}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var i;this.removeEventHandlers();let e=this.videoElement;this.videoElement=(i=this.playerContainer)==null?void 0:i.querySelector("video"),this.waitForSafariLeavePictureInPicture(e,this.videoElement),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={...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)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var o,r;let i=dp(e)?e.pictureInPictureWindow:void 0;this.info.isActive$.next(!0),this.isRequested=!0,i==null||i.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o)}onLeavePictureInPicture(e){var i,o;if(e){let r=dp(e)?e.pictureInPictureWindow:void 0;r==null||r.removeEventListener("resize",this.eventHandlers.resize)}this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),(o=(i=this.externalEventHandlers).leavepictureinpicture)==null||o.call(i)}onResize(e){var o,r;let i=Sb(e)?e.target:dp(e)?e.pictureInPictureWindow:void 0;i&&((r=(o=this.externalEventHandlers).resize)==null||r.call(o,{width:i.width,height:i.height}))}setEnabled(e){this.info.isEnabled$.next(e)}waitForSafariLeavePictureInPicture(e,i){if(zm.clientChecker.browser.isSafari&&e&&e!==i){let r=this.eventHandlers.leavepictureinpicture,a=0,l=()=>{(0,bs.getWindow)().clearTimeout(a),e.removeEventListener("leavepictureinpicture",d)},d=s=>(r(s),l());e.addEventListener("leavepictureinpicture",d),a=(0,bs.getWindow)().setTimeout(l,1e3)}}};function Km(t){return t instanceof Za}var Hx=Object.defineProperty,Ux=(t,e,i)=>e in t?Hx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,zs=(t,e,i)=>Ux(t,typeof e!="symbol"?e+"":e,i),zx=400,Wx=225,_c=class{constructor({enabled:e=!0,initialSize:i={width:zx,height:Wx}}){zs(this,"initialSize"),zs(this,"playerDomElement"),zs(this,"playerParentShadowRoot"),zs(this,"playerDummyElement"),zs(this,"svelteContext"),zs(this,"pipWindow"),zs(this,"info",{isActive$:new cp.ValueSubject(!1),isEnabled$:new cp.ValueSubject(!1),type:1}),zs(this,"pipActive",!1),zs(this,"pipApi"),this.initialSize=i,this.info.isEnabled$=new cp.ValueSubject(e),Us()&&(this.pipApi=new Za({enabled:e}),this.pipApi.info.isActive$.subscribe(o=>{(o&&!this.info.isActive$.getValue()||!o&&this.pipActive)&&this.info.isActive$.next(o),this.pipActive=o}))}isSupported(){return Xa()}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({...this.initialSize,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
59
- `),r=document.createElement("style");r.textContent=o;let a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Zr(Um,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Na(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i,o,r;this.pipWindow?(i=documentPictureInPicture.window)==null||i.close():(o=this.pipApi)!=null&&o.isActive()&&((r=this.pipApi)==null||r.exit()),e()})}async dispose(){await this.exit()}setEnabled(e){var i;this.info.isEnabled$.next(e),(i=this.pipApi)==null||i.setEnabled(e)}assignPlayerContainer(e){var i;(i=this.pipApi)==null||i.assignPlayerContainer(e)}updateVideoElement(){var e;(e=this.pipApi)==null||e.updateVideoElement()}setExternalEventHandlers(e){var i;(i=this.pipApi)==null||i.setExternalEventHandlers(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 up(t){return t instanceof _c}var Qm=(t,e)=>{if(Cb(e)&&Xa())return new _c({enabled:t,...typeof e!="boolean"&&e});if(Us())return new Za({enabled:t})};var Tb=require("@vkontakte/videoplayer-shared/es2018"),yB=require("@vkontakte/videoplayer-statistics/es2018"),pp=class{constructor(e,i,o,r=new Tb.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}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 bc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(bc||{});var $s=t=>t!=null?t:0,Ws=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round($s(i==null?void 0:i.top)-$s(o==null?void 0:o.top)),left:Math.round($s(i==null?void 0:i.left)-$s(o==null?void 0:o.left)),bottom:Math.round($s(i==null?void 0:i.bottom)-$s(o==null?void 0:o.top)),right:Math.round($s(i==null?void 0:i.right)-$s(o==null?void 0:o.left))}},td=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:$s(e==null?void 0:e.width),height:$s(e==null?void 0:e.height)}};var Fn="off";var id=t=>!!(Math.round(Math.abs(t)/90)%2);var Ib=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:v,coreConfig:_,player:y,disabledControls:$,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:R,stopPlayer:k,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,additionalButtons:W,additionalSettingsMenuItems:H,additionalContextMenuItems:U,playPrevVideo:G,playNextVideo:se,onVideoChanged:te,looped:J=!1,statistics:Y,saveRate:Ie,internalsExposure:ue,playerView:ie,playerId:ge,metaConfig:Pe,appTracer:de})=>{var hg,_g;let Ke={..._,isAudioDisabled:l,live:{...(hg=_.live)!=null?hg:{},isLiveCatchUpMode:!!r}},pe=v,me=at.TracerFactory.createRootTracer(pe.features.tracer),Z=me.createComponentTracer("Store"),O=y||new fi.Player(Ke,me,{playerId:ge,onDevNullLog:s==null?void 0:s.onDevNullLog});ue==null||ue.expose({corePlayer:O});let fe=new at.Logger,ce=new op(fe,{loadTimeout:pe.ads.loadTimeout,initTimeout:pe.ads.initTimeout,runtimeTimeout:pe.ads.runtimeTimeout,useAdmanFromNPM:pe.ads.useAdmanFromNPM,volumeMultiplier:pe.ads.volumeMultiplier,isVsidOriginal:pe.ads.isVsidOriginal}),Re=u==null?void 0:u.pictureInPictureApi,tt=u==null?void 0:u.annotationsApi,ke=u==null?void 0:u.slotsApi,j=u==null?void 0:u.focusManager,ne=fe.createComponentLog("Store"),Se,Le,We={},Ce=new Du,we=new at.Subscription,Be="",rt=ae(!1),mt=ae(ie==="minimal"),Vt=Y&&Y.oneStat?ii(Y.oneStat.vsid$):Mr(void 0),lt=ae(la()),jt=ae(!1),St=()=>Q_(document,fi.clientChecker.device.isIOS),Ut=(_g=Re==null?void 0:Re.info.isActive$)!=null?_g:new at.ValueSubject(!1),Rt=ae(0),zt=ae(!1),xe=ae(!1),X=ae([]),Ne=(0,at.merge)(O.events.fatalError$,O.events.managedError$).subscribe(c=>X.update(h=>[...h,c])),be=Mr(!1,c=>{let h=O.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),Ue=c=>{mt.set(c)},Te=async c=>{var re;let h=Object.values(at.InterfaceLanguage).includes(c);if(pe.downloadVKLanguages&&(h&&pe.updateBuiltinLanguages||!Jf(c))){let Ee;try{Ee=await(0,at.loadVKLangPack)(c,r_,s_)}catch(Je){(re=Y==null?void 0:Y.oneStat)==null||re.logError({errorType:"VKLangPack",fatal:!1}),de==null||de.error({category:at.ErrorCategory.WTF,id:"VKLangPack",message:String(Je),thrown:Je},{severity:"warning"})}Ee&&(Zf({language:c,pack:Ee,fallback:pe.defaultLanguage}),$t.set(c),$e.update(Je=>Je+1))}Jf(c)&&$t.set(c)},$t=ae(t),$e=ae(0),qe=ae(e);Te(t);let ze=(c,h)=>{let V=_e($t);return em(V,c,h,pe.defaultLanguage)},st=ae("thumb");st.subscribe(c=>{c==="ads"&&O.info.playbackState$.getValue()&&Xt()});let Gt=(()=>{let c=ui([be,st],([h,V])=>h?"crashed":V);return{...c,is:h=>_e(c)===h}})(),Pt=ae(),Xt=()=>{Pt.set({muted:O.info.muted$.getValue()})},_i=(()=>{let c=ae(new Set($));return{...c,add:h=>{c.update(V=>new Set([...V].concat(h)))},remove:h=>{c.update(V=>{let re=[...V];return new Set(Array.isArray(h)?re.filter(Ee=>!h.includes(Ee)):re.filter(Ee=>Ee!==h))})},includes:h=>{let V=_e(c);return Array.isArray(h)?h.every(re=>V.has(re)):V.has(h)}}})(),Ei=ae({width:0,height:0}),Ci=null,ji=O.info.isBuffering$,ri=Mr(ji.getValue(),c=>{let h=ji.subscribe(V=>{V&&Ci===null?Ci=window.setTimeout(()=>{c(ji.getValue()),Ci=null},pe.loaderDelay):c(V)});return()=>{h.unsubscribe(),Ci&&clearTimeout(Ci)}});Z.log("create store"),ne({message:"create store"});let ut=c=>{let h=c.container,V=()=>{nt=new MutationObserver(Ee=>{let{removedNodes:Je}=Ee[0];Je.length&&h.append(O.experimental.element$.getValue())}),nt.observe(h,{childList:!0})},re=O.experimental.element$.getValue();if(re)h.append(re),V();else{let Ee=O.experimental.element$.pipe((0,at.filter)(Je=>!!Je),(0,at.once)()).subscribe(Je=>{h.append(Je),V()});we.add(Ee)}},ci=c=>{ne({message:`init video, config: ${JSON.stringify(c)}`}),x?ut(c):(at.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,at.now)()]}),O.initVideo(c)),Z.log("init video",{isInteractive:x}),c.subtitles&&O.setExternalTextTracks(c.subtitles),Se=c,Be=c.subtitlesForcedLanguage||""},Xi=new at.Subject,It=c=>Xi.next(c),gi=new at.Subject,mi=new at.ValueSubject(Dr.SeekAction.UNKNOWN),He=new at.Subject,nt=null,Pi={actionRewind$:gi,actionSeek$:mi,inPiP$:Ut,inFullscreen$:new at.Observable(c=>lt.subscribe(h=>c.next(h))),actionSetSubtitle$:He,nextMovie$:Xi},ro=new at.Subject,Mo=new at.Subject,Tt={actionSeek$:mi,actionSubtitlesSwitched$:ro,actionQuality$:Mo,playerSize$:new at.Observable(c=>Ei.subscribe(h=>c.next(h))),inPiP$:Ut,inFullscreen$:new at.Observable(c=>lt.subscribe(h=>c.next(h))),isLoaderVisible$:new at.Observable(c=>ri.subscribe(h=>c.next(h)))};if(Y){let{oneStat:c,thinOneStat:h,mediascopePixel:V,statSubscription:re}=Y;c&&(x||re.add(c.attachTo(O)),re.add(c.attachToUi(Pi)),re.add(c.attachToAds(ce.events)),c.authorize(a).catch(Ee=>{ne({message:`onestat auth error ${String(Ee)}`})}),V&&V.attachTo(O)),h&&(re.add(h.attachTo(O,ce.events)),re.add(h.attachToUi(Tt)),re.add(h.attachToAds(ce.events)),h.updateContext({isMobile:_e(rt)}),h.authorize(a))}de&&(de.addSubscription(O.events.managedError$.subscribe(c=>{de.error(c,{severity:"debug"})})),de.addSubscription(O.events.fatalError$.subscribe(c=>{de.error(c,{severity:"fatal"})})),Y!=null&&Y.oneStat&&de.addSubscription(Y.oneStat.experimental.error$.subscribe(c=>{de.error(c,{severity:"warning"})})));let Nt=()=>{if(fi.clientChecker.device.isIOS&&Le)try{q_(Le)}catch(c){ne({message:`exitIosSafariFullscreen failed: ${c}`})}};we.add(O.experimental.element$.subscribe(c=>{c&&(Le=c,c.classList.add("player-media"),Re==null||Re.updateVideoElement(),x&&c.setAttribute("pip","false"),(ie==="preview"||!pe.features.pip&&!pe.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(O.events.ended$.subscribe(()=>{var c;Nt(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(O.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(O.events.started$.subscribe(async()=>{var h,V;Km(Re)&&await(Re==null?void 0:Re.revealPictureInPicture());let c=O.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(V=We.onStarted)==null||V.call(We,c)})).add(O.events.willSeek$.subscribe(({from:c,to:h})=>{var V;(V=s==null?void 0:s.onSeek)==null||V.call(s,c,h,mi.getValue())})).add(O.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(O.info.position$.subscribe(c=>{var V;let h=O.info.duration$.getValue();isFinite(h)&&h>0&&((V=s==null?void 0:s.onTimeupdate)==null||V.call(s,h,c),ce.setPosition(c,h))})).add(O.events.fatalError$.subscribe(c=>{var h;(h=s==null?void 0:s.onCrashed)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(O.events.fetcherRecoverableError$.subscribe(c=>{var h;(h=s==null?void 0:s.onRecoverableError)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(O.events.loadedMetadata$.subscribe(()=>{zt.set(!0)})).add(O.info.is3DVideo$.subscribe(c=>{xe.set(c)})).add(O.info.isEnded$.subscribe(c=>{x&&(c?(T!=null&&T.getValue()&&_i.add(Kd),_i.add("PLAY_BUTTON")):_i.remove("PLAY_BUTTON"))})).add(O.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(O.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(O.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(ce.events.loadStarted$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:h.call(c)})).add(ce.events.loadEnded$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:h.call(c)})).add(ce.events.loadError$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:h.call(c)})).add(ce.events.init$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:h.call(c)})).add(ce.events.ready$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:h.call(c)})).add(ce.events.started$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:V.call(h,c)})).add(ce.events.timeRemained$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:V.call(h,c)})).add(ce.events.ended$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:V.call(h,c)})).add(ce.events.empty$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:h.call(c)})).add(ce.events.clicked$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:V.call(h,c)})).add(ce.events.closed$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:V.call(h,c)})).add(ce.events.error$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:V.call(h,c)})).add(ce.events.paused$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:h.call(c)})).add(ce.events.resumed$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:h.call(c)}));let z=new at.Subscription,kt=()=>{var Je,At,Ot;let{debugLog:c}=pe,h,V="#9df7b7",re="#efd169";if(c&&c!==!0){let{colors:Kt}=c;h=c.tag,V=(Je=Kt==null?void 0:Kt[0])!=null?Je:V,re=(Ot=(At=Kt==null?void 0:Kt[1])!=null?At:Kt==null?void 0:Kt[0])!=null?Ot:re}let Ee=h?`: ${h}`:"";z.add(O.events.log$.subscribe(Kt=>{console.debug(`%c sdk${Ee} `,`background:${V};`,`sdk component: ${Kt.component}`,Kt.message)})).add(fe.log$.subscribe(Kt=>{console.debug(`%c ui${Ee} `,`background:${re};`,`ui component: ${Kt.component}.`,Kt.message)}))},si=()=>{z.unsubscribe()},bi=(c,h)=>{Z.log("start camera manual rotation",{mx:c,my:h}),O.startCameraManualRotation(c,h)},dt=(c=!1)=>{Z.log("stop camera manual rotation",{immediate:c}),O.stopCameraManualRotation(c)},Yt=(c,h,V)=>{Z.log("move camera focus px",{xpx:c,ypx:h,dt:V}),O.moveCameraFocusPX(c,h,V)},ct=()=>{O.holdCamera()},oi=()=>{O.releaseCamera()},Ri=Mr(O.info.position$.getValue(),c=>{let h,V,re=()=>{let Ee=O.info.playbackState$.getValue(),Je=O.info.isLive$.getValue(),At=O.info.duration$.getValue(),Ot=O.info.position$.getValue();if(Ee&&[fi.PlaybackState.PLAYING,fi.PlaybackState.PAUSED].includes(Ee)){let Kt=Je?Ot-At:O.getExactTime();Kt!==V&&c(Kt),V=Kt}h=requestAnimationFrame(re)};return re(),()=>cancelAnimationFrame(h)}),Jo=ii(O.info.playbackState$),vn=ii(O.info.isBuffering$),go=ui([Jo,vn],([c,h])=>h?"buffering":c),Vo=ii(O.info.currentBuffer$),yo=ii(O.info.isEnded$),Di=ii(O.info.isLive$),Zi=pe.features.playbackRate?ii(O.info.canChangePlaybackSpeed$):Mr(!1),gn=ii(O.info.liveBufferTime$),Ai=ii(O.info.volume$),xo=ii(O.info.muted$),hn=Nu(O.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===fi.PredefinedQualityLimits.TRAFFIC_SAVING)),O.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.TRAFFIC_SAVING),Zn=Nu(O.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===fi.PredefinedQualityLimits.HIGH_QUALITY)),O.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.HIGH_QUALITY),Jn=ii(O.info.autoQualityLimitingAvailable$),ys=ii(O.info.availableQualities$),xs=ii(O.info.availableQualitiesFps$),rs=ii(O.info.chromecastState$),_r=ii(O.info.chromecastDeviceName$),_n=ii(O.info.currentFormat$),bn=ii(O.info.throughputEstimation$),er=ii(O.info.videoBitrate$),br=ii(O.info.intrinsicVideoSize$),tr=ii(O.info.duration$),Nr=ii(O.info.isAudioAvailable$),Or=()=>{Ci&&clearTimeout(Ci),Ci=null},Hn=ui([tr,Di],([c,h])=>h?-c:c),ir=ui([Jo],([c])=>c===fi.PlaybackState.PLAYING),Un=ii(O.info.atLiveEdge$),or=ii(O.info.atLiveDurationEdge$),Br=ii(O.info.position$),Fr=ui([Br,tr],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),wi=ui([rs],([c])=>c===fi.ChromecastState.CONNECTED),ss=ii(O.info.availableVideoStreams$),en=pe.features.audioLanguages?ii(O.info.availableAudioStreams$):Mr([]),_t=ii(O.info.currentVideoStream$),Zt=ii(O.info.currentAudioStream$),nr=c=>{c.language&&Gf(c.language),O.setVideoStream(c)},zn=(c,h)=>{O.setAudioStream(c),So(h)&&(c.language&&Gf(c.language),pe.features.userVideoPrefs&&i&&Xf(pe.userSalt,String(i),{audioTrackId:c.id}))},Hr=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(re=>"isDefault"in re&&re.isDefault)),pe.features.userVideoPrefs&&i){let re=Uu(pe.userSalt,String(i));if(re!=null&&re.audioTrackId){let Ee=c.find(Je=>Je.id===re.audioTrackId);h=Ee!=null?Ee:h}}let V=M_();return V&&(h!=null||(h=c.find(({language:re})=>V===re))),h!=null||(h=c.at(0)),h},$r=c=>{Z.log("change audio stream",{id:c});let h=O.info.availableAudioStreams$.getValue().find(V=>V.id===c);h&&zn(h,!0)},Ur=!1;we.add(O.info.availableAudioStreams$.subscribe(c=>{if(!Ur&&c.length){let h=Hr(c);h&&(O.setAudioStream(h),Ur=!0)}})),en.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:V="",id:re="",language:Ee=""})=>({label:V,language:Ee,id:re})))}),Zt.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let $n=!1;we.add(O.info.availableVideoStreams$.subscribe(c=>{if(!$n&&c.length){let h=Hr(c);h&&(O.setVideoStream(h),$n=!0)}}));let tn=ae(void 0),yn=ii(O.info.isAutoQualityEnabled$,c=>c&&tn.set(void 0)),yr=ii(O.info.currentQuality$,()=>tn.set(void 0)),xr=ui([tn,yr],([c,h])=>c!=null?c:h),xn=ui(_n,c=>c!==fi.VideoFormat.MPEG),wn=ui([ys,xs,yn,xr,xn],([c,h,V,re,Ee])=>{let Je=[];Ee&&Je.push({value:"auto",displayValue:ze("auto_quality_option"),selected:V});let At=c.filter(Ot=>!(0,at.isInvariantQuality)(Ot));for(let Ot of At){let Kt=h[Ot];Je.push({value:Ot,displayValue:`${Ot}${Kt?bb(Kt):""}`,selected:V?!1:Ot===re})}return Je}),rr=ii(O.info.currentPlaybackRate$),Ti=ui([rr,Un,or],([c,h,V])=>{let re=V||x?1:pe.controls.playbackRateMin,Ee=h?1:pe.controls.playbackRateMax,Je=pe.controls.playbackRateStep,At=[];for(let Ot=re;Ot<=Ee;Ot+=Je)At.push({value:Ot,displayValue:Ot===1?ze("playback_rate_1"):ze("playback_rate",{multiplier:Ot.toString(10)}),selected:c===Ot});return At}),wo=()=>({displayValue:ze("subtitles_off"),value:Fn,language:""}),Ro=ae(wo()),so=ui([Ro,$e],([c],h)=>{c.value===Fn?h(wo()):h(c)}),Sn=pe.features.subtitles?ii(O.info.availableTextTracks$):Mr([]),Cn=y_(),zr=ui([Sn,so],([c,h],V)=>{var Je;let re=[],Ee=c.find(({id:At})=>At===h.value);if(Ee!=null&&Ee.url){let[,At]=(Je=Cn.find(Ee.url))!=null?Je:[];if(At){V(At);return}Ce.download(Ee.url).then(Ot=>{if(!Ot||Ce.isDestroyed())return;let Kt=new $b,Xs=Ee.language;if(Xs){let I$=!!Ee.isAuto,E$=Kt.parse(Ot,Xs);re.push({lang:Xs,subtitles:E$,isAuto:I$,id:Ee.id})}Cn.add(Ee.url,re),_e(so).value===h.value&&V(re)}).catch(at.suppressAbort).catch(Ot=>{var Kt;(Kt=Y==null?void 0:Y.oneStat)==null||Kt.logError({errorType:"Subtitles download",fatal:!1}),de==null||de.error({category:at.ErrorCategory.WTF,id:"Subtitles download",message:String(Ot),thrown:Ot},{severity:"warning"})})}V(re)}),Ct=ui([rr,ir,so],([c,h,V],re)=>{let At;if(O.info.isLive$.getValue()&&h&&V.value!==Fn){let Kt=()=>{let Xs=1e3/(3*c);At=setTimeout(Kt,Xs),re(Date.now())};return Kt(),()=>clearTimeout(At)}}),ai=ui([Sn,so],([c,h])=>{if(!c.length)return[];let V=[];for(let{language:re,isAuto:Ee,id:Je}of c){let At=re&&vc(re);re&&At&&V.push({displayValue:Ee?ze("subtitles_auto",{language:At}):At,value:Je,selected:(h==null?void 0:h.value)===Je,isAuto:Ee,language:re})}return V.length?(V.unshift({...wo(),selected:(h==null?void 0:h.value)===Fn}),V):[]}),Qt={available:[],prev:[]},ho=()=>{var h,V;let c=O.experimental.getCurrentTime$.getValue();return(V=(h=c==null?void 0:c())!=null?h:Le==null?void 0:Le.currentTime)!=null?V:0},on=ui([Ri,so,zr,Ct],([c,h,V,re])=>{var Je;let Ee=O.info.isLive$.getValue();if(Ee&&Qt.prev!==V){let At=V.find(({id:Kt})=>Kt===h.value),Ot=Qt.prev.find(({id:Kt})=>Kt===h.value);if(At){let Kt={...At,subtitles:[...(Je=Ot==null?void 0:Ot.subtitles)!=null?Je:[],...At.subtitles]};Qt.available=[Kt],Qt.prev=V}}if(h&&h.value!==Fn){let At=Ee?ho():c,Ot=Ee?Qt.available:V;return wb(At,h,Ot,Ee)}}),Do=ui([on],([c])=>c!=null&&c.texts?c.texts:[]);we.add(so.subscribe(c=>{var h,V;if(c.value===Fn)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let re=Object.entries(ap).find(([Ee,Je])=>Je===c.displayValue);(V=s==null?void 0:s.onSubtitleOn)==null||V.call(s,re?re[0]:"",c.value)}}));let No=ae(!0),Ji=ui([Vo,Hn,Br,gn],([c,h,V,re])=>{var Ot;let Ee=(Ot=c==null?void 0:c.end)!=null?Ot:0;if(!re)return Ee/h;let At=-V+re-h;return(Ee-At)/h}),Tn=ii(O.info.availableSources$),In=ui([Tn],([c])=>Object.keys((c==null?void 0:c[fi.VideoFormat.MPEG])||{}).length>0),nn=()=>{var V,re,Ee;let c=Object.keys(((re=(V=O.info.availableSources$)==null?void 0:V.getValue())==null?void 0:re[fi.VideoFormat.MPEG])||{}),h=(0,at.getHighestQuality)(c)||at.VideoQuality.Q_144P;return(Ee=Se.sources[fi.VideoFormat.MPEG])==null?void 0:Ee[h]},ws=()=>{var h;let c=nn();if(c)Z.log("download video",{url:c}),__(c,((h=Se==null?void 0:Se.meta)==null?void 0:h.title)||"video");else{let V="There is no URL for download video";Z.log("download video",{message:V}),ne({message:V})}},Wr=()=>{ne({message:"toggle muted"});let c=O.info.muted$.getValue();O.info.volume$.getValue()===0&&!c?Sr(wr(),!1):Xe(!c,!1)},Ss=()=>{var c;if(Wt.ui.settingsMenu.visible$.set(!1),!_e(Wt.ui.settingsSubMenu.visible$)){let h=_e(Wt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let re=td(h),Ee={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:re,position:Ee,name:"settings"})}}Z.log("close settings menu")},Ui=async(c,h=()=>Promise.resolve())=>{var Ee;Wt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Wt.ui.settingsMenu.visible$.set(!0),await h();let V=_e(Wt.ui.settingsMenu.ref$),re=Sa();if((Ee=s==null?void 0:s.uiInfo)!=null&&Ee.onSettingsMenu&&V&&re){let At=td(V),Ot=Ws(V,re);s.uiInfo.onSettingsMenu({visible:!0,size:At,position:Ot,name:"settings"})}Z.log("open settings menu",{wasOpenedByKeyboard:c})},Cs=(c,h=!1)=>{var Je;Wt.ui.settingsSubMenu.visible$.set(!1);let V=_e(Wt.ui.settingsMenu.ref$),re=Sa(),Ee=_e(Wt.ui.settingsMenu.visible$);if((Je=s==null?void 0:s.uiInfo)!=null&&Je.onSettingsMenu&&V&&re)if(Ee&&!h){let Ot=td(V),Kt=Ws(V,re);s.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:Kt,name:"settings"})}else{let Ot=td(c),Kt={top:0,left:0,bottom:0,right:0},Xs=_e(Wt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ot,position:Kt,name:Xs})}Z.log("close settings sub menu")},as=(c,h)=>{var re;Wt.ui.settingsSubMenu.visible$.set(!0),Wt.ui.settingsSubMenu.ref$.set(h),Wt.ui.settingsSubMenu.name$.set(c);let V=Sa();if((re=s==null?void 0:s.uiInfo)!=null&&re.onSettingsMenu&&h&&V){let Je=td(h),At=Ws(h,V);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:Je,position:At})}Z.log("open settings sub menu",{name:c})},wr=()=>{var h;let c=Math.max(pe.volumeMinRestore,(h=Ou())!=null?h:0);return c===0?pe.volumeDefault:c},So=c=>{let h=pe.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},Sr=(c,h)=>{let V=c===0?wr():c,re=O.info.muted$.getValue();ne({message:`set volume, volume: ${c}, preferredVolume: ${V}`});let Ee=!l||Gt.is("ads");re&&c>0&&Ee&&(re=!1,So(h)&&Qf(!1)),O.setVolume(c,re),ce.setVolume(c),So(h)&&Uf(V)},Xe=(c,h)=>{let V=O.info.volume$.getValue();ne({message:`set muted, currentVolume: ${V}, mute: ${c}`});let re=Gt.is("ads");if(O.setMuted(c,re),ce.setVolume(c?0:V),So(h)&&(!re||!c)&&Qf(c),!c&&V===0){let Ee=wr();O.setVolume(Ee),So(h)&&Uf(Ee),ce.setVolume(Ee)}},pt=ae(!1),Jt=c=>{var h,V;Z.log("set looped",{isLooped:c}),pt.set(c),O.setLooped(c),(V=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||V.call(h,c)};Jt(J);let ao=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},ki=(c,h=!1)=>{var V;ne({message:`set autoplayNextEnabled, value: ${c}`}),Z.log("set autoplay next enabled",{autoplayNextEnabled:c}),Wt.ui.autoplayNextEnabled$.set(c),D_(c),h&&((V=s==null?void 0:s.onSetAutoplayNextEnabled)==null||V.call(s,c))},Oo=c=>{ne({message:`set timerNextVideoRunning, value: ${c}`}),Z.log("set timer next video running",{timerNextVideoRunning:c}),Wt.ui.timerNextVideoRunning$.set(c)},_o=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(V=s==null?void 0:s.onPrevVideoClick)==null?void 0:V.call(s)}catch(re){ne({message:"onPrevVideoClick callback failed to execute"})}te(!0),h&&G()},Bo=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(V=s==null?void 0:s.onNextVideoClick)==null?void 0:V.call(s)}catch(re){ne({message:"onNextVideoClick callback failed to execute"})}te(!1),h&&se()},Fo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},sr=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Co=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},rn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},Cr=()=>{O.prepare()},sn=()=>{(0,at.assertNonNullable)(Wt);let c=_e(Wt.ui.controls.disabledControls$),h=_e(Wt.playerPhase),V={playerPhase:h,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ne({message:"toggle play"}),h==="ads"){V.action="play",Z.log("toggle adman play",V),ce.togglePlay();return}let re=()=>{var Je;ne({message:"toggle play, call player.play"}),V.action="play",O.play(),(Je=s==null?void 0:s.onPlay)==null||Je.call(s)},Ee=()=>{var Je;ne({message:"toggle play, call player.pause"}),V.action="pause",O.pause(),(Je=s==null?void 0:s.onPause)==null||Je.call(s)};if(O.info.isEnded$.getValue()){if(ne({message:"toggle play, video ended, seek to 0"}),gi.next(),mi.next(Dr.SeekAction.REWIND),x){R==null||R();return}O.seekTime(0),re()}else O.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING?re():Ee();Z.log("toggle play",V)},En=(c,{changeReason:h="default",appliesTo:V="to-video",byUser:re=!1}={},Ee)=>{ne({message:`set quality, quality: ${c}`}),Z.log("set quality",{quality:c}),re&&Mo.next(c),O.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Je}=pe.features;Bu(),c!=="auto"?(Je?(Fu({type:"exact_quality",quality:c,videoId:i},V),O.setPredefinedQualityLimits(fi.PredefinedQualityLimits.UNKNOWN)):zf(i,c),tn.set(c),O.setQuality(c)):Je&&h==="default"&&(Ze("auto_quality",V,Ee),_e(hn)&&Pn(!1,void 0,Ee),_e(Zn)&&Kr(!1,void 0,Ee))},Pn=(c,h="as-default",V)=>{ne({message:`set trafficSavingEnabled, value: ${c}`}),Z.log("set traffic saving enabled",{trafficSavingEnabled:c});let re=c?fi.PredefinedQualityLimits.TRAFFIC_SAVING:fi.PredefinedQualityLimits.UNKNOWN;pe.features.qualityDetailsSubMenuEnabled?(ls(re,h,V),Gd(!1)):(O.setPredefinedQualityLimits(re),So(V)&&Gd(c))},Kr=(c,h="as-default",V)=>{ne({message:`set highQualityEnabled, value: ${c}`}),Z.log("set high quality enabled",{highQualityEnabled:c}),ls(c?fi.PredefinedQualityLimits.HIGH_QUALITY:fi.PredefinedQualityLimits.UNKNOWN,h,V)},ls=(c,h,V)=>{c!==fi.PredefinedQualityLimits.UNKNOWN&&(_e(Jn)&&!_e(yn)&&En("auto",{appliesTo:h,changeReason:"limit-changed"},V),Ze(c,h,V)),O.setPredefinedQualityLimits(c)},Ze=(c,h,V)=>{So(V)&&(Fu({type:c,videoId:i},h),h==="as-default"&&Fu({type:c,videoId:i},"to-video"))},Bt=(c,h=!0)=>{Z.log("set playback rate",{playbackRate:c}),O.setPlaybackRate(c),pe.features.saveRate&&Ie&&!O.info.isLive$.getValue()&&h&&V_(c)},Ii=()=>{let c=_e(Zi),h=_e(Ti),V=h.findIndex(({selected:Ee})=>Ee);if(V===h.length-1||!c)return h[V];let re=h[V+1];return Bt(re.value),re},an=()=>{let c=_e(Zi),h=_e(Ti),V=h.findIndex(({selected:Ee})=>Ee);if(V===0||!c)return h[V];let re=h[V-1];return Bt(re.value),re},Ho=(c={...wo(),selected:!1},h)=>{Z.log("set subtitles",{...c}),c.value!==Fn&&He.next(c.isAuto?c.value+"_auto":c.value),ro.next({enabled:c.value!==Fn,lang:c.language,auto:!!c.isAuto}),Ro.set(c),So(h)&&(jf(c.value===Fn?void 0:c.language),pe.features.userVideoPrefs&&i&&Xf(pe.userSalt,String(i),{subtitleTrackId:c.value===Fn?void 0:c.value}))},Tr=c=>{Z.log("toggle subtitles");let h=_e(so);(h==null?void 0:h.value)===Fn?ln(c):Ts(c)},An=(c,h)=>{Z.log("change subtitle",{enabled:c}),c?ln(!0,h):Ts(!0)},ln=(c,h)=>{Z.log("subtitle on");let V=_e(ai),re=_e($t),Ee=Be!=null?Be:re,Je;h&&(Je=V.find(At=>At.value===h)),Je!=null||(Je=V.filter(At=>At.value!==Fn).find(At=>At.language===Ee)),Ho(Je!=null?Je:V[1],c)},Ts=c=>{Z.log("subtitle off"),Ho(void 0,c)};we.add(O.info.availableTextTracks$.subscribe(c=>{var V;function h(){let re=[];for(let{language:Ee,isAuto:Je,id:At}of c){let Ot=Ee&&vc(Ee);Ee&&Ot&&re.push({id:At,language:Ee,title:Je?ze("subtitles_auto",{language:Ot}):Ot})}return re}(V=s==null?void 0:s.onAvailableSubtitlesChanged)==null||V.call(s,h())}));let Ys=ae(!0),ds=c=>{Ys.set(c)},Ir=(c,h,V=!0)=>{var re;if(ne({message:`seek to time, time: ${c}`}),Z.log("seek to time",{time:c,action:h,forcePrecise:V}),mi.next(h),O.info.isLive$.getValue()){let Ee=O.info.duration$.getValue(),Je=Math.min(0,Ee+c);O.seekTime(Je,V)}else{if(T!=null&&T.getValue())return;O.info.isEnded$.getValue()&&(ne({message:"seek after ended, call callbacks.onPlay"}),(re=s==null?void 0:s.onPlay)==null||re.call(s)),O.seekTime(mg(c),V)}},Is=c=>{ne({message:`seek to episode start time: ${c}`}),Z.log("seek to episode start time",{time:c}),Ir(c,Dr.SeekAction.EPISODE,!0)},vt=(c,h,V=!1)=>{ne({message:`seek to percent, percent: ${c}`}),Z.log("seek to percent",{percent:c,action:h});let re=_e(Hn)*c;Ir(re,h,V)},li=c=>{ne({message:`seek external, time: ${c}`}),Z.log("seek external",{time:c}),mi.next(Dr.SeekAction.UNKNOWN),O.seekTime(O.info.isLive$.getValue()?-c:c)},To=c=>{var re,Ee;let h=(re=c.max)!=null?re:"none",V=(Ee=c.min)!=null?Ee:"none";ne({message:`set auto quality limitation. Max: ${h}. Min: ${V}`}),Z.log("set auto quality limits",{max:h,min:V}),O.setAutoQualityLimits(c)},ar=c=>{ne({message:`seek external to episode start time: ${c}`}),Z.log("seek external to episode start time",{time:c}),Ir(c,Dr.SeekAction.EPISODE,!0)},Er=c=>{ne({message:`set playback rate to: ${c}`}),Z.log("set playback rate external",{playbackRate:c}),O.setPlaybackRate(c)},Li=ae(!1),bo=ae(!1),Es=ui([Hn,mt],([c,h])=>!!p&&c>=pe.suitableDurationForUsingRichSeek&&pe.features.useRichSeek&&!x&&ie!=="preview"&&!h),lo=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),zi=ui([Rt],([c])=>{let h=id(c);return lo?!h:h});we.add(Gt.subscribe(c=>{c!=="video"&&Li.set(!1)})),Li.subscribe(c=>{var h;(h=s==null?void 0:s.onRichSeekActiveChanged)==null||h.call(s,c)});let dn=ae(void 0),Wn=ae(!1),he=c=>{ne({message:`start scrubbing, progress: ${c}`}),Z.log("start scrubbing",{progress:c}),Wn.set(!0),ft(c)},ft=c=>{dn.set(c)},di,Mi,Uo=()=>{dn.set(void 0),Wn.set(!1)},co=()=>{clearTimeout(Mi),clearTimeout(di),di=window.setTimeout(()=>{Uo()},500),Le==null||Le.removeEventListener("seeked",co)},uo=(c,h=!1,V=Dr.ThinOneStat.ActionSeekType.SLIDER)=>{ne({message:`complete scrubbing, progress: ${c}`}),Z.log("complete scrubbing",{progress:c}),vt(c,V,h),_e(Wt.ui.isMobile)&&_e(Wt.state.currentFormat$)===fi.VideoFormat.HLS?(Le==null||Le.addEventListener("seeked",co),Mi=window.setTimeout(()=>{co()},300)):Uo()},cs=ui([Ri,Hn,dn],([c,h,V],re)=>{re((0,at.isNonNullable)(V)?V*h:c)}),kn=ae(!1),Ps=()=>{kn.set(!0)},$a=()=>{kn.set(!1)},ya=ui([Ei],([{width:c}],h)=>{let V=fb(c);h(V)}),Qr=W.filter(c=>b_(c)),us=ui([ya,rt],([c,h])=>h?Qr.filter(V=>!V.hideOnMobile):Qr.filter(V=>{var re;return!((re=V.hideOnDesktopGridTypes)!=null&&re.includes(c))})),lr=ae(W.filter(c=>$_(c))),fl=ui([lr,ya],([c,h])=>c.filter(V=>{var re;return!((re=V.hideOnDesktopGridTypes)!=null&&re.includes(h))})),ml=ui([fl,us],([c,h])=>[...pe.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...pe.features.additionalButtons?h.map((V,re)=>{var Ee;return{id:re,weight:re,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Ee=V.ariaLabel)!=null?Ee:V.tooltip,tooltipText:V.tooltip}}):[]].filter(V=>!v.disabledAdditionalButtonIds.includes(V.id))),qr=ae(H),vl=ui([qr],([c])=>pe.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?{...h,onClick:h.onChangeEnabled}:h):[]),gl=(c,h)=>{let V=_e(lr).map(re=>re.id!==c?re:{...re,...h});lr.set(V)},hl=c=>{let h=_e(lr);if(h.some(V=>V.id===c.id)){ne({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),lr.set(h)},vd=c=>{let h=_e(lr);if(!h.some(V=>V.id===c)){ne({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),lr.set(h)},xa=c=>{mi.next(Dr.SeekAction.LIVE),ne({message:"live switch to low latency "+c}),Z.log("live switch to low latency "+c),O.setLiveLowLatency(c)},_l=(c,h)=>{let V=_e(qr).map(re=>re.id!==c?re:{...re,...h});qr.set(V)},gt=c=>{let h=_e(qr);if(h.some(V=>V.id===c.id)){ne({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),qr.set(h)},bt=c=>{let h=_e(qr);if(!h.some(V=>V.id===c)){ne({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),qr.set(h)},$i=ae(U),zo=ui([$i],([c])=>pe.features.additionalContextMenuItems?c:[]),Wi=(c,h)=>{let V=_e($i).map(re=>re.id!==c?re:{...re,...h});$i.set(V)},hi=c=>{let h=_e($i);if(h.some(V=>V.id===c.id)){ne({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),$i.set(h)},Ni=c=>{let h=_e($i);if(!h.some(V=>V.id===c)){ne({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),$i.set(h)},wa=ui([rt,be],([c,h],V)=>{V(c&&h)}),bl=()=>{mi.next(Dr.SeekAction.LIVE),ne({message:"switch to active live"}),Z.log("switch to active live"),O.seekTime(0),O.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING&&Wt.actions.internal.togglePlay()},Dp=()=>{Z.log("skip adman"),ce.skip()},Yc=(c=!0)=>{var re;(0,at.assertNonNullable)(Wt),ne({message:`switch from ads to video, callPlay: ${c}`}),Z.log("switch from ads to video",{callPlay:c}),st.set("video"),c&&O.play(),l&&Xe(!0,!0);let h=(re=_e(Pt))==null?void 0:re.muted,V=!O.info.muted$.getValue();h!==void 0&&!V&&Xe(h,!0),Pt.set(void 0)},Np=()=>{(0,at.assertNonNullable)(Wt),ne({message:"switch from video to ads"}),Z.log("switch from video to ads"),Wt.actions.internal.pause(),Nt(),st.set("ads")},jc=c=>{(0,at.assertNonNullable)(Wt);let h=c?"LiveWaitingStart":"thumb";Z.log("set live waiting start",{state:c,playerPhase:h}),st.set(h)},Op=c=>{(0,at.assertNonNullable)(Wt);let h=c?"LiveWaitingRecover":"thumb";Z.log("set live waiting recover",{state:c,playerPhase:h}),st.set(h)},Xc=c=>{(0,at.assertNonNullable)(Wt);let h=c?"LiveWaitingRecord":"thumb";Z.log("set live waiting record",{state:c,playerPhase:h}),st.set(h)},Bp=()=>((0,at.assertNonNullable)(Wt),Z.log("get debug text data"),g_(O,Se,Wt,me.getTraceId(),Pe)),Zc=()=>((0,at.assertNonNullable)(Wt),JSON.stringify(me.getFinishedSpans())),Fp=()=>((0,at.assertNonNullable)(Wt),h_(O,Se,Wt)),Sa=()=>Le,Jc=()=>{ne({message:"toggle chromecast"}),Z.log("toggle chromecast"),O.toggleChromecast()},js=c=>{var V;if((0,at.assertNonNullable)(Wt),O.info.isEnded$.getValue())return;let h=!c;if(_e(Wt.playerPhase)==="ads"){ne({message:`pause ads, internalCall: ${h}`}),Z.log("pause ads",{internalCall:h}),ce.pause();return}ne({message:`pause video, internalCall: ${h}`}),Z.log("pause video",{internalCall:h}),h&&((V=s==null?void 0:s.onPause)==null||V.call(s)),O.pause()},$l=c=>{var V;(0,at.assertNonNullable)(Wt);let h=!c;if(_e(Wt.playerPhase)==="ads"){ne({message:`play ads, internalCall: ${h}`}),Z.log("play ads",{internalCall:h}),ce.play();return}ne({message:`play video, internalCall: ${h}`}),Z.log("play video",{internalCall:h}),h&&((V=s==null?void 0:s.onPlay)==null||V.call(s)),O.play()},eu=c=>{(0,at.assertNonNullable)(Wt);let h=!c;if(_e(Wt.playerPhase)==="ads"){ne({message:"player cannot be stopped during ads via external method"});return}ne({message:`player will be stopped, internalCall: ${h}`}),k==null||k()},tu=(c,h)=>{(0,at.assertNonNullable)(Wt),ne({message:`first start, show ads: ${c}, internalCall: ${!h}`}),Z.log("first start",{showAds:c,external:h}),c?st.set("ads"):(st.set("video"),h?O.play():Wt.actions.internal.togglePlay())},yl=()=>(ne({message:"getting time codes"}),f),iu=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let h=O.info.position$.getValue();return c.find(V=>V.time>h)},Hp=c=>{let h=c;h||(h=iu());let V=O.info.position$.getValue();Z.log("seek to next episode",{currentTime:V,...h}),h&&(ne({message:"seek to next episode"}),Ir(h.time,Dr.SeekAction.EPISODE,!0))},ou=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let h=O.info.position$.getValue(),V=c.findIndex(Ee=>Ee.time>h),re=V===-1?c.length-2:V-2;if(!(re<0))return c[re]},Ge=c=>{let h=c;h||(h=ou());let V=O.info.position$.getValue();Z.log("seek to prev episode",{currentTime:V,...h}),h&&(ne({message:"seek to prev episode"}),Ir(h.time,Dr.SeekAction.EPISODE,!0))},vi=()=>(ne({message:"getting preview thumbs data"}),Z.log("get preview thumbs data",{...p}),p),Wo=async()=>{let c=Re==null?void 0:Re.isActive(),h="none";Re!=null&&Re.isActive()?(h="exit",await(Re==null?void 0:Re.exit())):(h="request",await(Re==null?void 0:Re.request())),Z.log("toggle picture in picture",{isActive:c,action:h})},Pr=(c=-90)=>{Z.log("rotate video",{alphaDiff:c}),Rt.update(h=>h+c)},Io=ae([]);I==null||I.subscribe(c=>{let h=[];for(let V=0;V<c.length;V++){let{range:[re,Ee],subjects:Je}=c[V];V===0&&re!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:re/1e3,text:"",interactive:!0,completed:pe.features.interactiveTimeOpenUri?!Je.length||Je.every(At=>At.isRemoved):!Je.length}),Ee!==1/0&&h.push({time:Ee/1e3,text:"",interactive:!1,completed:!0})}Io.set(h)});let b$=ae(!1);T==null||T.subscribe(c=>{c&&_e(Wn)&&Uo()});let mg=c=>{if(!x)return c;let h=_e(Io),V=_e(Hn),Ee=_e(Br)/V,Je=h.find(At=>At.interactive&&!At.completed&&At.time>Ee);return typeof(Je==null?void 0:Je.time)=="number"?Math.min(c,Je.time-.05):c},$$=()=>{Wt.ui.episodes.panelOpened$.set(!1)},y$=()=>{Z.log("destroy store"),clearTimeout(Mi),clearTimeout(di),we.unsubscribe(),z.unsubscribe(),O.destroy(),ce.destroy(),Y==null||Y.destroy(),Ne.unsubscribe(),nt==null||nt.disconnect(),nt=null,Ce.destroy(),de==null||de.destroy()},x$=ui([Un,Gt,Zi],([c,h,V])=>v.features.doubleForwardAvailable&&!c&&h==="video"&&V),Up=ae(!1),vg=2,nu=null,gg=c=>{if(!_e(ir)&&c)return;let h=O.info.currentPlaybackRate$.getValue();c?h!==vg&&(nu=h,Bt(vg,!1),Up.set(!0)):(nu&&Bt(nu,!1),Up.set(!1),nu=null)};Gt.subscribe(c=>{c!=="video"&&gg(!1)});let w$=()=>{js(!1),Li.set(!0)},S$=()=>{$l(!1),Li.set(!1)},zp=!1,C$=()=>{bo.set(!0),zp=O.info.playbackState$.getValue()===fi.PlaybackState.PLAYING,js(!1)},T$=()=>{bo.set(!1),!_e(Li)&&zp&&$l(!1),zp=!1};O.events.playing$.subscribe(()=>{_e(Li)&&js(!1)});let Wt={interfaceLanguage$:$t,isCyrillicRelatedInterface$:qe,initVideo:ci,videoId:i,isClip:o,playerPhase:Gt,vsid:Vt,state:{positionExact$:Ri,positionWithScrubbing$:cs,duration$:Hn,playbackState$:Jo,playbackStateRealistic$:go,isPlaying$:ir,isLoaderVisible:ri,bufferedProgress$:Ji,isLive$:Di,canChangePlaybackSpeed$:Zi,isActiveLive$:Un,isOldestAvailableLive$:or,isRewindableLive$:Fr,isEnded$:yo,muted$:xo,volume$:Ai,trafficSavingEnabled$:hn,highQualityEnabled$:Zn,autoQualityLimitingAvailable$:Jn,availableVideoStreams$:ss,availableAudioStreams$:en,videoStream$:_t,audioStream$:Zt,currentQuality$:xr,isAutoQualityEnabled$:yn,availableQualities$:wn,currentPlaybackRate$:rr,availablePlaybackRates$:Ti,currentSubtitle$:so,availableTextTracks$:Sn,availableSubtitlesList$:ai,currentSubtitleCaptions$:Do,isAutoSubtitleCaptionVisible$:No,chromecastState$:rs,chromecastDeviceName$:_r,chromecastConnected$:wi,currentFormat$:_n,throughputEstimation$:bn,videoBitrate$:er,videoSize$:br,errorLog$:X,crashed$:be,isAudioAvailable$:Nr,isAudioDisabled:!!l,canDownload:pe.features.download&&!!d,availableSources$:Tn,hasMpegSources$:In,isInteractive:x,showInteractiveGraph:pe.features.interactiveGraph,showSeekToInteractive:pe.features.seekToInteractive,showPlayPrevChapter:pe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:pe.features.interactiveTimeIndicator&&!!_e(Io).length,interactiveEpisodes$:Io,isInteractiveTime$:T?ii(T):ae(!1),isInteractiveExpectation$:b$,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,looped$:pt,loadedMetadata$:zt,isAutoQualityAvailable$:xn,previewTrackActive:Li,previewTrackDragInProgress:bo},ui:{t:ze,isMinimalMode$:mt,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),"theater-mode-button":ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:W.length?W.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:_i},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:lt,isFullscreenOpenedByKeyboard:jt,rotateAlpha:Rt,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:Ei,isMobile:rt,mobileNotReportControlHidden$:wa,icon3DVideoVisible:ae(!1),scrubbingInProgress:Wn,volumeChangingInProgress:kn,is3DVideo:xe,currentGridType$:ya,additionalButtonsDeprecated$:us,additionalDesktopControlPanelRightButtons$:ml,additionalSettingsMenuItems$:vl,additionalContextMenuItems$:zo,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:Ys,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),doubleForwardOn$:Up,doubleForwardAvailable$:x$,previewTrackActive:Li,previewTrackDragInProgress:bo,previewTrackAvailable:Es,isPreviewTrackHorizontallyAligned:zi},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:Re,annotationsApi:tt,slotsApi:ke,focusManager:j},actions:{internal:{preload:Cr,firstStart:c=>tu(c,!1),play:()=>$l(!1),pause:()=>js(!1),togglePlay:sn,toggleMuted:Wr,openSettingsMenu:Ui,closeSettingsMenu:Ss,openSettingsSubMenu:as,closeSettingsSubMenu:Cs,setVolume:c=>Sr(c,!1),setMuted:c=>Xe(c,!1),startVolumeChanging:Ps,stopVolumeChanging:$a,setVideoStream:nr,setAudioStream:c=>zn(c,!1),setQuality:(c,h)=>En(c,h,!1),setTrafficSavingEnabled:(c,h)=>Pn(c,h,!1),setHighQualityEnabled:(c,h)=>Kr(c,h,!1),setPlaybackRate:Bt,incrementPlaybackRate:Ii,decrementPlaybackRate:an,setSubtitle:c=>Ho(c,!1),toggleSubtitle:()=>Tr(!1),togglePictureInPicture:Wo,startScrubbing:he,progressScrubbing:ft,completeScrubbing:uo,toggleChromecast:Jc,switchToActiveLive:bl,switchFromAdsToVideo:Yc,switchFromVideoToAds:Np,skipAd:Dp,setLiveWaitingStart:jc,setLiveWaitingRecover:Op,setLiveWaitingRecord:Xc,getDebugTextData:Bp,getTraceTextData:Zc,getDebugPanelData:Fp,getVideoElement:Sa,seekTime:(c,h,V)=>Ir(c,h,V),clearDelayedBufferingCheckTimeout:Or,seekEpisodeStartTime:Is,seekToPercent:vt,getNextEpisode:iu,seekToNextEpisode:Hp,getPrevEpisode:ou,seekToPrevEpisode:Ge,startLogging:kt,stopLogging:si,startCameraManualRotation:bi,stopCameraManualRotation:dt,moveCameraFocusPX:Yt,holdCamera:ct,releaseCamera:oi,getVideoEpisodes:yl,getPreviewThumbsData:vi,downloadVideo:ws,addLanguage:Zf,setLanguage:Te,nextMovie:It,videoRotate:Pr,correctSeekTimeToInteractive:mg,replayInteractive:R,setLooped:Jt,reportProblem:ao,setAutoplayNextEnabled:ki,setTimerNextVideoRunning:Oo,prevVideoClick:_o,nextVideoClick:Bo,nextVideoAnnouncementShow:Fo,nextVideoAnnouncementClick:sr,nextVideoAnnouncementAuto:Co,nextVideoAnnouncementCancel:rn,checkFullscreenSupport:St,changeDoubleForwardOn:gg,closePreviewTrack:S$,previewTrackOpened:w$,previewTrackDragStarted:C$,previewTrackDragFinished:T$},external:{firstStart:c=>tu(c,!0),play:()=>$l(!0),pause:()=>js(!0),stop:()=>eu(!0),seekTime:c=>li(c),seekEpisodeStartTime:c=>ar(c),setPlaybackRate:c=>Er(c),setAutoQualityLimits:c=>To(c),setMuted:c=>Xe(c,!0),toggleSubtitle:()=>Tr(!0),changeSubtitle:An,setVolume:c=>Sr(c,!0),returnFocusToEpisodes:$$,updateAdditionalSettingsItem:_l,addAdditionalSettingsItem:gt,removeAdditionalSettingsItem:bt,updateAdditionalContextItem:Wi,addAdditionalContextItem:hi,removeAdditionalContextItem:Ni,updateAdditionalButton:gl,addAdditionalButton:hl,removeAdditionalButton:vd,setLiveLowLatency:xa,hideControls:()=>ds(!1),showControls:()=>ds(!0),setQuality:c=>En(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Pn(c,"to-video",!0),setHighQualityEnabled:c=>Kr(c,"to-video",!0),changeAudioStream:$r,setMinimalMode:Ue}},callbacks:s,setUiCallbacks:c=>{We={...c}},getAdmanWrapper:()=>ce,getLogger:()=>fe,getPlayer:()=>O,destroy:y$};return Wt};function jn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Ws(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var Kx=["disabledControls$","additionalButtons"],Qx=["interactiveTimeIndicator"],nd=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!Kx.includes(r)){let l=o||Qx.includes(r);a.set(jn(t,i,r,l))}}};var fp=async(t,e,i)=>{await vo(),e&&i&&(i.focus(),t.set(!1))};var qx=Ae('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function qm(t){je(t,{children:(e,i)=>{var o=qx();b(e,o)},$$slots:{default:!0}})}function Gm(t,e){B(e,!0);let[i,o]=Oe(),r=()=>w(s,"$contextMenuVisible$",i),a=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=ye(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,_=K(void 0);Fe(()=>{n(_)&&Et(()=>{v.set(n(_))})});let y=T=>{let R=ua(T),k=nb(n(_));p.set(k),u.set(R),s.set(!r())},$=()=>{f.set(!0)},x=()=>{f.set(!1)},I=m(()=>r()?"opened":"");Ht(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:$,blur:x,get ariaExpanded(){return r()},get ref(){return n(_)},set ref(T){D(_,T,!0)},children:(T,R)=>{qm(T,{})},$$slots:{default:!0}}),F(),o()}var Gx=t=>{t.stopPropagation()},Yx=L("<div><!> <div></div> <div></div></div>"),jx={hash:"s-25",code:'.interactive-episode-icon-animated.s-25{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-25{height:28px;width:28px}.invisible.s-25{opacity:0;visibility:hidden}.fullscreen.s-25:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-25{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-25{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-25{right:16px;top:40px}}@keyframes s-25-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-25{animation:s-25-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-25{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-25{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-25{display:none}'};function $c(t,e){var fe;B(e,!0),Q(t,jx);let[i,o]=Oe(),r=()=>w(x,"$isMobile",i),a=()=>w(k,"$areControlsVisible",i),l=()=>w(E,"$currentGridType$",i),d=()=>w(T,"$isInteractiveTime$",i),s=()=>w($,"$interactiveControlsOpacity$",i),u=()=>w(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>w(I,"$isFullscreen",i),p=g(e,"ref",15,void 0),v=K(void 0),_=ye(),y=$o(),{interactiveControlsOpacity$:$}=y,x=_.ui.isMobile,I=_.ui.isFullscreen,T=_.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,k=_.ui.controlsVisible,P=(fe=_.callbacks)==null?void 0:fe.onInteractiveTimeIndicatorClick,E=_.ui.currentGridType$,W=m(()=>!r()&&a()),H=m(()=>Hs(l(),"s")),U=m(()=>!d()||!!s()||n(W)),G=K(!1);Fe(()=>{D(G,n(U),!0)});let se=()=>{D(G,!0)},te=()=>{var ce;J(),(ce=n(v))==null||ce.addEventListener("animationiteration",se,{once:!0})},J=()=>{var ce;D(G,!1),(ce=n(v))==null||ce.removeEventListener("animationiteration",se)},Y=ce=>{R.set(ce)},Ie=m(()=>u()&&!n(U));Fe(()=>{u()?te():J()});let ue=()=>{n(U)||(R.set(!0),P==null||P())};pn(()=>{R.clearTimeout(),J()});let ie=()=>{R.set(!1)},ge=q("tooltip_interactive_interaction_time_indicator");var Pe=Yx();let de;Pe.__mousemove=[Gx],Pe.__click=ue;var Ke=C(Pe);ko(Ke,{get tooltipContent(){return ge},get tooltipVisible(){return n(Ie)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Y,get ref(){return p()},set ref(ce){p(ce)},children:(ce,Re)=>{lc(ce,{completed:!0})},$$slots:{default:!0}});var pe=A(Ke,2);let me;it(pe,ce=>p(ce),()=>p());var Z=A(pe,2);let O;it(Z,ce=>D(v,ce),()=>n(v)),S(Pe),N((ce,Re,tt)=>{de=oe(Pe,1,"interactive-episode-icon-animated s-25",null,de,ce),me=oe(pe,1,"ref-block s-25",null,me,Re),O=oe(Z,1,"pulse s-25",null,O,tt)},[()=>({mobile:r(),fullscreen:f(),invisible:n(U),"icon-small":n(H)}),()=>({hidden:n(U)}),()=>({paused:n(G)})]),ht("mouseleave",Pe,ie),b(t,Pe),F(),o()}et(["mousemove","click"]);function mp(t,e){B(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),a=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);ko(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 tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Ve();let f=m(()=>e.buttonComponent);var p=le(u);Fi(p,()=>n(f),(v,_)=>{_(v,es(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(d,u)},$$slots:{default:!0}}),F()}var Ks={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Zx=Ae('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function ga(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=m(()=>`${fn(e.size)}${n(o)}`),a=m(()=>i()?"prev-icon":"next-icon");je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=Zx();b(l,s)},$$slots:{default:!0}}),F()}var Jx=L('<div class="icon-background-mobile s-22"><!></div>'),e2={hash:"s-22",code:".icon-background-mobile.s-22{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function Ja(t,e){B(e,!0),Q(t,e2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=ye().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Ht(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{var v=Ve(),_=le(v);{var y=x=>{var I=Jx(),T=C(I);let R=m(()=>e.type==="prev");ga(T,{get size(){return"32"},get reversed(){return n(R)}}),S(I),b(x,I)},$=x=>{let I=m(()=>e.type==="prev");ga(x,{get size(){return"24"},get reversed(){return n(I)}})};M(_,x=>{o()?x(y):x($,!1)})}b(f,v)},$$slots:{default:!0}}),F()}var t2=Ae('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function yc(t,e){B(e,!0);let i=m(()=>fn(e.size));je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=t2();b(o,a)},$$slots:{default:!0}}),F()}var Eb=require("@vkontakte/videoplayer-shared/es2018");var i2=L('<div class="icon-background-mobile s-26"></div>'),o2=L("<!> <div><!></div>",1),n2={hash:"s-26",code:".mobile.s-26{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-26{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function rd(t,e){B(e,!0),Q(t,n2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),a=g(e,"className",3,""),l=g(e,"click",3,Eb.noop),d=q("tooltip_restart"),s=m(()=>`${o()?"btn-m--play":""} ${a()}`);Ht(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return _s.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var p=o2(),v=le(p);{var _=T=>{var R=i2();b(T,R)};M(v,T=>{o()&&T(_)})}var y=A(v,2);let $;var x=C(y);let I=m(()=>o()?"48":"24");yc(x,{get size(){return n(I)}}),S(y),N(T=>$=oe(y,1,"s-26",null,$,T),[()=>({mobile:o()})]),b(u,p)},$$slots:{default:!0}}),F()}var r2=Ae('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Qs(t,e){B(e,!0);let i=m(()=>fn(e.size));je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=r2();b(o,a)},$$slots:{default:!0}}),F()}var Pb=require("@vkontakte/videoplayer-shared/es2018");var s2=L('<div class="icon-background-mobile s-21"><!></div>'),a2={hash:"s-21",code:".icon-background-mobile.s-21{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function sd(t,e){B(e,!0),Q(t,a2);let[i,o]=Oe(),r=()=>w(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=$o(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),s=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),f=g(e,"className",3,""),p=g(e,"click",3,Pb.noop),_=ye().ui.t,{toggle:y}=a,$=m(()=>y),x=m(()=>r()!==null),I=m(()=>n(x)?r():s()),T=m(()=>n(I)?_("tooltip_pause"):_("tooltip_play")),R=m(()=>n(I)?Qs:On),k=m(()=>`${d()?"btn-m--play":""} ${f()}`),P=m(()=>n(x)?n($):p());Ht(t,{get className(){return n(k)},testId:"play-btn",get click(){return n(P)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return _s.KeyK},get ref(){return l()},set ref(E){l(E)},children:(E,W)=>{var H=Ve();let U=m(()=>n(R));var G=le(H);{var se=J=>{var Y=s2(),Ie=C(Y);Fi(Ie,()=>n(U),(ue,ie)=>{ie(ue,{get size(){return"48"}})}),S(Y),b(J,Y)},te=J=>{var Y=Ve(),Ie=le(Y);Fi(Ie,()=>n(U),(ue,ie)=>{ie(ue,{get size(){return"24"}})}),b(J,Y)};M(G,J=>{d()?J(se):J(te,!1)})}b(E,H)},$$slots:{default:!0}}),F(),o()}var l2=Ae('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function Ym(t){je(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=l2();b(e,o)},$$slots:{default:!0}})}function xc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=q("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");Ht(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Ym(d,{})},$$slots:{default:!0}}),F()}var d2=L('<span class="gutter s-23"><span><!></span></span>'),c2={hash:"s-23",code:".gutter.s-23{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-23{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-23{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function wc(t,e){B(e,!0),Q(t,c2);let[i,o]=Oe(),r=()=>w(s,"$autoplayNextEnabled$",i),a=g(e,"ref",15,void 0),l=ye(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",_="#000",y=m(()=>r()?"true":"false");Ht(t,{click:f,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref($){a($)},children:($,x)=>{var I=d2(),T=C(I);let R;var k=C(T);{var P=W=>{On(W,{get size(){return v},fill:_})},E=W=>{Qs(W,{get size(){return v},fill:_})};M(k,W=>{r()?W(P):W(E,!1)})}S(T),S(I),N(W=>R=oe(T,1,"toggler s-23",null,R,W),[()=>({enabled:r()})]),b($,I)},$$slots:{default:!0}}),F(),o()}var u2=Ae('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function jm(t){je(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=u2();ei(),b(e,o)},$$slots:{default:!0}})}function Sc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=q("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");Ht(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{jm(d,{})},$$slots:{default:!0}}),F()}var p2=Ae('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),f2=Ae('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function Xm(t,e){let i=g(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");je(t,{get testId(){return n(o)},children:(r,a)=>{var l=f2(),d=A(le(l));{var s=u=>{var f=p2();b(u,f)};M(d,u=>{i()&&u(s)})}b(r,l)},$$slots:{default:!0}})}function Cc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=g(e,"graphIsOpened",3,!1),d=ye().ui.t,s=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Ht(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{let v=m(()=>!!a());Xm(f,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),F()}var Zm=require("@vkontakte/videoplayer-core/es2018");function Tc(t,e){B(e,!0);let[i,o]=Oe(),r=()=>w(u,"$playbackState$",i),a=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),s=ye(),u=s.state.playbackState$,f=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=m(()=>()=>{if(!l()){f();return}r()===Zm.PlaybackState.PAUSED&&p()}),_=m(()=>a()?"":"btn--live btn-full-opacity"),y=m(()=>l()?"btn-live":"btn-live-offset"),$=m(()=>l()&&r()===Zm.PlaybackState.PLAYING);Ht(t,{get className(){return n(_)},get testId(){return n(y)},get disabled(){return n($)},get ariaLabel(){return d()},get click(){return n(v)},children:(x,I)=>{Zd(x,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var Jm=require("@vkontakte/videoplayer-shared/es2018");var m2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),v2=L('<img class="icon" aria-hidden="true"/>');function el(t,e){"use strict";let i=K(!1),o=()=>{D(i,!0)};var r=Ve(),a=le(r);{var l=s=>{var u=m2();b(s,u)},d=s=>{var u=v2();N(()=>De(u,"src",e.icon)),ht("error",u,o),Da(u),b(s,u)};M(a,s=>{n(i)?s(l):s(d,!1)})}b(t,r)}function ev(t,e){B(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,Jm.noop),r=g(e,"ref",15),a=m(()=>o()===Jm.noop),l=m(()=>n(a)||i()),d=m(()=>n(a)?"btn-full-opacity":"");ko(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let f=m(()=>{var p;return(p=e.testId)!=null?p:e.id});Ht(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(p,v)=>{el(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var Ab=t=>!!t.buttonComponent;var qs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var vp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(jn(t,i,r,o))};var gp=require("@vkontakte/videoplayer-shared/es2018"),kb=10,Lb=40,tv=.2,h2=.5,_2=65,b2=114,$2=4,Mb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?_2:b2),r=K(!1),a=K(0),l=K(0),d=m(()=>n(o)+kb-Lb-$2),s=m(()=>(0,gp.interpolate)(n(a),[tv,1],[0,-n(d)])),u=m(()=>(0,gp.interpolate)(n(a),[tv,1],[0,Lb])),f=m(()=>(0,gp.interpolate)(n(a),[tv,1],[0,n(o)+kb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:$=>{var x;D(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),D(r,!0)},onPointerMove:$=>{if(!n(r))return;let x=Math.max(Math.min($.clientY-n(l),0),-n(d));D(a,Math.abs(x/n(d)),!0)},onPointerUp:()=>{D(r,!1),D(a,n(a)>=h2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{D(a,0)}}};var y2=t=>t;function ha(t,{delay:e=0,duration:i=400,easing:o=y2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var x2=L('<span class="root s-2b"> </span>'),w2={hash:"s-2b",code:".root.s-2b{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function iv(t,e){Q(t,w2);var i=x2(),o=C(i,!0);S(i),N(()=>ve(o,e.time)),b(t,i)}var S2=L('<div class="tooltip-wrapper s-u"><div><!></div></div>'),C2={hash:"s-u",code:'.tooltip-wrapper.s-u{display:block;position:relative}.tooltip.s-u{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-u:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-u{opacity:1;visibility:visible}'};function ov(t,e){Q(t,C2);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),a=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),s=K(void 0),u=K(void 0);function f(x){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return x<T?T+l():x>e.containerWidth-T?e.containerWidth-T-d():x}let p=m(()=>f(r()));var v=S2(),_=C(v);let y;var $=C(_);ti($,()=>{var x;return(x=e.children)!=null?x:yt}),S(_),it(_,x=>D(u,x),()=>n(u)),S(v),it(v,x=>D(s,x),()=>n(s)),N(x=>{Qe(v,`transform: translate(${n(p)}px, ${a()}px);`),y=oe(_,1,"tooltip s-u",null,y,x),Qe(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,v)}var Vb=t=>Math.abs(t)/90%4===1;var T2=Ae('<path xmlns="http://www.w3.org/2000/svg" d="M15.782 10.152a.75.75 0 0 1-1.06 0L9.999 5.438l-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.246a.75.75 0 0 1 0 1.06Z"></path><path xmlns="http://www.w3.org/2000/svg" d="M15.782 16.152a.75.75 0 0 1-1.06 0l-4.723-4.715-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.245a.75.75 0 0 1 0 1.061Z"></path>',1);function nv(t){je(t,{height:"20",width:"20",shadow:!0,children:(e,i)=>{var o=T2();ei(),b(e,o)},$$slots:{default:!0}})}var I2=L('<div class="rich-seek-hint s-v"><span class="icon_wrapper s-v"><!></span> <span class="rich-seek-hint-text s-v"> </span></div>'),E2=L('<div class="preview s-v"><!></div>'),P2=L('<div class="episode s-v"><!></div>'),A2=L('<div class="time s-v"> </div>'),k2=L("<div><!> <!> <!></div>"),L2={hash:"s-v",code:".timeline-preview.s-v{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-v{bottom:72px}.preview.s-v{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow);display:flex;justify-content:center}.episode.s-v{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-v,.time.s-v{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-v{color:var(--white)}.rich-seek-hint.s-v{position:absolute;text-align:center;top:-12px;transform:translateY(-100%)}.icon_wrapper.s-v{display:inline-block;height:20px;margin-right:6px;vertical-align:top;width:20px}.rich-seek-hint-text.s-v{font-size:14px;line-height:18px;text-shadow:0 2px 4px rgba(0,0,0,.3),0 7px 16px rgba(0,0,0,.25);vertical-align:top}"};function rv(t,e){B(e,!0),Q(t,L2);let[i,o]=Oe(),r=()=>w(x,"$isMinimalMode$",i),a=()=>w(I,"$rotateAlpha",i),l=()=>w(T,"$playerSize",i),d=()=>w(R,"$previewTrackAvailable",i),s={MOBILE:150,DESKTOP:278},u=g(e,"time",3,""),f=g(e,"isMobile",3,!1),p=g(e,"videoEpisodes",19,()=>[]),v=g(e,"progress",3,0),_=g(e,"duration",3,0),y=g(e,"isInteractive",3,!1),$=ye(),x=$.ui.isMinimalMode$,I=$.ui.rotateAlpha,T=$.ui.playerSize,R=$.ui.previewTrackAvailable,k=K(0),P=K(0),E=K(""),W=K(0),H=K(0),U=K(0),G=K(0),se=m(()=>ip(v(),_(),p())),te=m(()=>!r()),J=m(()=>id(a())),Y=m(()=>Vb(a())),Ie=m(ge),ue=m(()=>(n(Y)?1:-1)*(n(k)/2-n(P)/2)),ie=m(()=>n(ue)*-1);Fe(()=>{(ke=>{D(k,ke.width,!0),D(P,ke.height,!0)})(de())}),Fe(()=>{(ke=>{D(E,ke.imgSrc,!0),D(W,ke.imgWidth,!0),D(H,ke.imgHeight,!0),D(U,ke.imgOffsetX,!0),D(G,ke.imgOffsetY,!0)})(Ke(v()))});function ge(){var Se;let ke=f()?s.MOBILE:s.DESKTOP,{isVertical:j}=Pe(),ne=30;return(Se=n(se))!=null&&Se.text&&(ne+=16),(j||n(J))&&(ne+=18,ne+=50),Math.min(Math.max(l().height-ne,0),ke)}function Pe(){let ke=e.previewThumbsData.frameWidth,j=e.previewThumbsData.frameHeight,ne=j>ke;return{width:ke,height:j,isHorizontal:!ne,isVertical:ne}}function de(){let{height:ke,isHorizontal:j,isVertical:ne,width:Se}=Pe();return j&&(ke=ke/Se*n(Ie),Se=n(Ie)),ne&&(Se=Se/ke*n(Ie),ke=n(Ie)),{width:Se,height:ke}}function Ke(ke){let j;e.previewThumbsData.isUV?j=Math.floor(_()*ke/e.previewThumbsData.frequency):j=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ke)));let ne=Math.floor(j/e.previewThumbsData.countPerImage),Se=Math.floor(j%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Le=j%e.previewThumbsData.countPerRow,We=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&ne===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(We=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&We++);let Ce=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&ne===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ce=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let we=n(k)*Ce,Be=n(P)*We,rt=-Le*n(k),mt=-Se*n(P);return{imgSrc:e.previewThumbsData.links[ne],imgWidth:we,imgHeight:Be,imgOffsetX:rt,imgOffsetY:mt}}var pe=k2();let me;var Z=C(pe);{var O=ke=>{var j=E2(),ne=C(j);{var Se=Le=>{var We=I2(),Ce=C(We),we=C(Ce);nv(we,{}),S(Ce);var Be=A(Ce,2),rt=C(Be,!0);S(Be),S(We),N(mt=>ve(rt,mt),[()=>q("preview_track_notification_text")]),b(Le,We)};M(ne,Le=>{d()&&Le(Se)})}S(j),N(()=>Qe(j,`width: ${n(k)}px; height: ${n(P)}px; background-image: url(${n(E)}); background-size: ${n(W)}px ${n(H)}px; background-position: ${n(U)}px ${n(G)}px;
60
- transform: rotate(${a()}deg) ${n(J)?`translate(${n(ue)}px, ${n(ie)}px)`:""};
61
- `)),b(ke,j)};M(Z,ke=>{n(E)&&ke(O)})}var fe=A(Z,2);{var ce=ke=>{var j=P2(),ne=C(j);{var Se=Le=>{var We=Ve(),Ce=le(We);{var we=rt=>{var mt=hs();N(Vt=>ve(mt,Vt),[()=>q("tooltip_episode_unfinished")]),b(rt,mt)},Be=rt=>{var mt=hs();N(()=>ve(mt,n(se).text||"")),b(rt,mt)};M(Ce,rt=>{y()&&n(se).completed===!1?rt(we):rt(Be,!1)})}b(Le,We)};M(ne,Le=>{n(se)&&Le(Se)})}S(j),b(ke,j)};M(fe,ke=>{n(te)&&ke(ce)})}var Re=A(fe,2);{var tt=ke=>{var j=A2(),ne=C(j,!0);S(j),N(()=>ve(ne,u())),b(ke,j)};M(Re,ke=>{y()||ke(tt)})}S(pe),N(ke=>{me=oe(pe,1,"timeline-preview s-v",null,me,ke),Qe(pe,`width: ${n(J)?n(P):n(k)}px;`)},[()=>({mobile:f()})]),b(t,pe),F(),o()}var M2=L('<span class="time s-f"> </span>'),V2=L("<!> <!>",1),R2={hash:"s-f",code:".time.s-f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.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 sv(t,e){var Ne,be,Ue,Te,$t;B(e,!0),Q(t,R2);let[i,o]=Oe(),r=()=>w(te,"$interactiveEpisodes$",i),a=()=>w(E,"$duration$",i),l=()=>w(P,"$position$",i),d=()=>w(Ie,"$isInteractiveExpectation$",i),s=()=>w(Y,"$isInteractiveTime$",i),u=()=>w(Pe,"$previewTrackActive",i),f=()=>w(W,"$isLive$",i),p=()=>w(ge,"$disabledControls$",i),v=()=>w(U,"$isMobile",i),_=()=>w(H,"$isActiveLive$",i),y=()=>w(k,"$bufferedProgress$",i),$=g(e,"showTimeline",3,!1),x=g(e,"withEpisodes",3,!0),I=g(e,"ref",15,void 0),T=ye(),R=Mt(),k=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,W=T.state.isLive$,H=T.state.isActiveLive$,U=T.ui.isMobile,G=R.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,se=T.actions.internal.getPreviewThumbsData(),te=T.state.interactiveEpisodes$,J=T.state.isInteractive,Y=T.state.isInteractiveTime$,Ie=T.state.isInteractiveExpectation$,ue=T.actions.internal.correctSeekTimeToInteractive,ie=(Ne=T.callbacks)==null?void 0:Ne.onDisabledTimelineClick,ge=T.ui.controls.disabledControls$,Pe=T.ui.previewTrackActive,de=(Ue=(be=T.callbacks)==null?void 0:be.uiInfo)==null?void 0:Ue.onTimelineMouseEnter,Ke=($t=(Te=T.callbacks)==null?void 0:Te.uiInfo)==null?void 0:$t.onTimelineMouseLeave,pe=T.ui.t,me=R.features.interactiveResponsiveUi,Z=m(()=>J?r():G),O=m(()=>Zo(a())),fe=m(()=>Zo(l())),ce=m(()=>l()/a()),Re=m(()=>d()||s()),tt=K(!1),ke=K(""),j=K(0),ne=K(0),Se=K(0),Le=m(()=>({containerWidth:n(ne),translateXPx:n(j),translateYPx:J&&se?-36:-16,active:n(tt)&&$()&&!n(Re)&&!me&&!u(),pointer:!R.features.timelinePreview||!se||f()})),We=pe("aria_timeline"),Ce=m(()=>pe("aria_timeline_value",{position:n(fe),duration:n(O)}));function we($e){return!ue||!J?$e:ue($e*a())/a()}function Be($e,qe){var ze;(ze=e.onSliderPointerDown)==null||ze.call(e,qe),T.actions.internal.startScrubbing(we($e))}function rt($e){s()||T.actions.internal.progressScrubbing(we($e))}function mt($e){var qe;T.actions.internal.completeScrubbing(we($e)),D(tt,!1),(qe=e.onSliderPointerUp)==null||qe.call(e)}function Vt($e,qe,ze){var st;(st=e.onSliderPointerEnter)==null||st.call(e,$e),St($e,qe,ze),D(tt,!0)}function lt($e,qe,ze,st){var Gt;(Gt=e.onSliderMove)==null||Gt.call(e,st,$e),St($e,qe,ze),D(tt,!0)}function jt(){var $e;D(tt,!1),($e=e.onSliderLeave)==null||$e.call(e)}function St($e,qe,ze){D(Se,we($e),!0),D(j,qe,!0),ze&&D(ne,ze,!0),D(ke,Ut($e),!0)}function Ut($e){let qe=Zo((f()?1-$e:$e)*a());return f()?`-${qe}`:qe}let Rt=m(()=>p().has("TIMELINE"));var zt=V2(),xe=le(zt);ov(xe,es(()=>n(Le),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:($e,qe)=>{var ze=Ve(),st=le(ze);{var Gt=Xt=>{rv(Xt,{get time(){return n(ke)},get isMobile(){return v()},get videoEpisodes(){return n(Z)},get previewThumbsData(){return se},get progress(){return n(Se)},get duration(){return a()},get isInteractive(){return J}})},Pt=Xt=>{var _i=M2(),Ei=C(_i,!0);S(_i),N(()=>ve(Ei,n(ke))),b(Xt,_i)};M(st,Xt=>{R.features.timelinePreview&&se&&!f()?Xt(Gt):Xt(Pt,!1)})}b($e,ze)},$$slots:{default:!0}}));var X=A(xe,2);Ya(X,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return v()},get ariaLabel(){return We},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ce)},get loadedProgress(){return y()},get filledProgress(){return n(ce)},get handleProgress(){return n(ce)},get videoEpisodes(){return n(Z)},onPointerDown:Be,onHandleMove:rt,onPointerMove:lt,onPointerUp:mt,onPointerEnter:Vt,onPointerLeave:jt,get onMouseEnter(){return de},get onMouseLeave(){return Ke},get onDisabledClick(){return ie},get isInteractive(){return J},get disabled(){return n(Rt)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:mt,get ref(){return I()},set ref($e){I($e)}}),b(t,zt),F(),o()}var D2={hash:"s-g",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 Ic(t,e){B(e,!0),Q(t,D2);let[i,o]=Oe(),r=()=>w(s,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"duration",3,0),d=ye(),s=d.ui.isMobile,u=d.ui.t,f=m(()=>Zo(l())),p=m(()=>Zo(a())),v=m(()=>a()/l()),_=m(()=>u("aria_timeline_value",{position:n(p),duration:n(f)})),y=m(()=>Math.round(n(v)*100));Ya(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n(_)},get filledProgress(){return n(v)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var N2=L("<div><!></div>"),O2=L("<div></div>"),B2={hash:"s-e",code:".timeline.s-e{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-e{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-e{padding:0}.timeline-stub.s-e{min-width:20px;width:100%}.timeline-stub.mobile.s-e{height:8px}"};function tl(t,e){B(e,!0),Q(t,B2);let[i,o]=Oe(),r=()=>w(x,"$isLive$",i),a=()=>w(R,"$isMobile",i),l=()=>w(k,"$disabled",i),d=()=>w(T,"$adPosition",i),s=()=>w(I,"$adDuration",i),u=g(e,"isAds",3,!1),f=g(e,"isHidden",3,!1),p=g(e,"timelineNotAvailable",3,!1),v=g(e,"needPadding",3,!0),_=g(e,"ref",15,void 0),y=ye(),$=Mt(),x=y.state.isLive$,I=y.ads.duration,T=y.ads.position,R=y.ui.isMobile,k=ae(!1),P=m(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var E=Ve(),W=le(E);{var H=G=>{var se=N2();let te;var J=C(se);{var Y=ue=>{Ic(ue,{get position(){return d()},get duration(){return s()}})},Ie=ue=>{sv(ue,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(P)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return _()},set ref(ie){_(ie)}})};M(J,ue=>{u()?ue(Y):ue(Ie,!1)})}S(se),Ns(se,()=>ql(f()&&$.features.usePerformanceFix,k,$.disableInvisibleComponentsTimeout)),N(ue=>te=oe(se,1,"timeline s-e",null,te,ue),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),b(G,se)},U=G=>{var se=O2();let te;N(J=>te=oe(se,1,"timeline-stub s-e",null,te,J),[()=>({mobile:a()})]),b(G,se)};M(W,G=>{n(P)?G(H):G(U,!1)})}b(t,E),F(),o()}var Rb=require("@vkontakte/videoplayer-shared/es2018");var Db=require("@vkontakte/videoplayer-statistics/es2018"),F2=(t,e,i,o,r,a,l)=>{D(e,!0),D(i,t.clientX,!0),D(o,n(r),!0),a(l())},H2=L("<div></div>"),U2=L('<div><div class="track s-2a"></div></div>'),z2={hash:"s-2a",code:'.root.s-2a{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2a,.root.vertically-rotated.s-2a{height:var(--preview-track-frame-height-vertical)}.root.s-2a:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2a{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2a,.track.s-2a{position:absolute}.frame.s-2a{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2a .frame:where(.s-2a){transform-origin:0 0}.rotate-1.s-2a{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2a{transform:rotate(-180deg)}.rotate-3.s-2a{transform:rotate(-270deg) translateY(-100%)}'};function lv(t,e){B(e,!0),Q(t,z2);let[i,o]=Oe(),r=()=>w(R,"$rotateAlpha",i),a=()=>w($,"$position$",i),l=()=>w(y,"$duration$",i),d=ye(),{countPerImage:s=0,countPerRow:u=0,countTotal:f=0,links:p=[],frameHeight:v=0,frameWidth:_=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:$}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,R=d.ui.rotateAlpha,k=K(void 0),P=K(!1),E=K(0),W=K(0),H=K(0),U=K(0),G=m(()=>v<=_),se=m(()=>id(r())),te=m(()=>n(G)?!n(se):n(se)),J=114,Y=65,Ie=3,ue=m(()=>n(te)?J:Y),ie=m(()=>n(G)?J:Y),ge=m(()=>n(G)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Pe=m(()=>f*n(ue)),de=K(0);Fe(()=>{D(U,Math.ceil(-n(H)/n(ue))-1),D(H,-n(Pe)*a()/l())});let Ke=()=>{T(pe(),!0,Db.ThinOneStat.ActionSeekType.RICH)},pe=()=>l()*-n(H)/n(Pe)/l(),me=!1,Z=Ce=>{if(!n(P))return!1;let we=Ce.clientX-n(E);D(H,n(W)+we),D(H,Math.max(Math.min(n(H),0),-n(Pe)),!0),Math.abs(we)>1&&(me=!0),I(pe())},O=Ce=>{n(P)&&(D(P,!1),!me&&Ce&&D(H,-(Ce.offsetX-n(de)/2)),me=!1,Ke())},fe=()=>{n(P)&&O()},ce=m(()=>s/u),Re=(Ce,we)=>{if(Ce!==p.length-1)return u;let Be=0,rt=we*u;for(let mt=1;mt<=u;mt++)Ce*s+Be+rt<f&&Be++;return Be},tt=m(()=>Math.floor(n(U)/s)),ke=m(()=>(0,Rb.getRangeAroundIndex)(3,n(tt),p.length-1)),j=(Ce,we,Be)=>{let rt=s*n(ue);return Ce*rt+we*n(ue)*u+n(de)/2-Ie/2+Be*n(ue)},ne=m(()=>[`--row-numbers: ${n(ce)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ie)}px`,`--frame-height: ${n(ge)}`].join(";"));var Se=U2();let Le;var We=C(Se);We.__pointerdown=[F2,P,E,W,H,x,pe],We.__pointermove=Z,We.__pointerup=O,yi(We,20,()=>n(ke),Ce=>Ce,(Ce,we)=>{var Be=Ve(),rt=le(Be);yi(rt,16,()=>Array.from({length:n(ce)},(mt,Vt)=>Vt),mt=>mt,(mt,Vt)=>{var lt=Ve(),jt=le(lt);yi(jt,16,()=>Array.from({length:Re(we,Vt)},(St,Ut)=>Ut),St=>St,(St,Ut)=>{var Rt=H2();N((zt,xe)=>{Qe(Rt,zt),oe(Rt,1,xe,"s-2a")},[()=>`--row-index: ${Vt}; --column-index: ${Ut}; left: ${j(we,Vt,Ut)}px; background-image: url(${p[we]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(St,Rt)}),b(mt,lt)}),b(Ce,Be)}),S(We),S(Se),it(Se,Ce=>D(k,Ce),()=>n(k)),N(Ce=>{Le=oe(Se,1,"root s-2a",null,Le,Ce),Qe(Se,n(ne)),Qe(We,`transform: translateX(${n(H)}px); width: ${n(Pe)}px;`)},[()=>({"is-vertical-video":!n(G),"vertically-rotated":n(se)})]),ht("mouseleave",We,fe),Dn(Se,"clientWidth",Ce=>D(de,Ce)),b(t,Se),F(),o()}et(["pointerdown","pointermove","pointerup"]);var W2=L('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),K2={hash:"s-2c",code:".notification.s-2c{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2c{font-size:14px;line-height:18px}"};function dv(t,e){B(e,!1),Q(t,K2);let i=340,{ui:{t:o}}=ye();Xo();var r=W2(),a=C(r),l=C(a,!0);S(a),S(r),N(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],mr),Os(3,r,()=>ha,()=>({duration:i})),b(t,r),F()}var Nb=require("@vkontakte/videoplayer-shared/es2018"),Q2=L('<div class="preview-track-close tooltip s-27"><!></div>'),q2=L('<div class="preview-track-control s-27"><!> <div class="preview-track-close s-27"><!></div> <!></div>'),G2=L('<div class="wrapper-preview-track s-27"><!></div>'),Y2=L('<div class="enriched-timeline s-27"><!> <!> <!></div>'),j2={hash:"s-27",code:".enriched-timeline.s-27{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-27{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-27{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-27{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-27:hover+.tooltip:where(.s-27){opacity:1}.wrapper-preview-track.s-27{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function cv(t,e){B(e,!0),Q(t,j2);let[i,o]=Oe(),r=()=>w($,"$playerSize",i),a=()=>w(y,"$duration$",i),l=()=>w(x,"$previewTrackActive",i),d=()=>w(v,"$position$",i),s=()=>w(_,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),f=ye(),p=200,{positionWithScrubbing$:v,isRewindableLive$:_,duration$:y}=f.state,{playerSize:$,previewTrackActive:x}=f.ui,{countPerImage:I=0,links:T=[],frequency:R=0}=f.actions.internal.getPreviewThumbsData()||{},k=m(()=>r().width>100),P=K(!U_()),E=()=>{n(P)&&(H_(),D(P,!1))},W=ue=>{let ie=Math.floor(a()*ue/R),ge=Math.floor(ie/I),Pe=(0,Nb.getRangeAroundIndex)(3,ge,T.length-1);for(let de of Pe){let Ke=new Image;Ke.src=T[de]}},H=(ue,ie)=>{W(ie),!l()&&e.onTimelineMove(ue)};var U=Y2(),G=C(U);{var se=ue=>{var ie=q2(),ge=C(ie);let Pe=m(()=>Zo(d()));iv(ge,{get time(){return n(Pe)}});var de=A(ge,2),Ke=C(de);Fs(Ke,{onClick:()=>f.actions.internal.closePreviewTrack()}),S(de);var pe=A(de,2);{var me=Z=>{var O=Q2(),fe=C(O);dv(fe,{}),S(O),b(Z,O)};M(pe,Z=>{n(P)&&Z(me)})}S(ie),ht("mouseleave",de,E),Os(3,ie,()=>ha,()=>({duration:p})),b(ue,ie)};M(G,ue=>{l()&&ue(se)})}var te=A(G,2);let J=m(()=>!n(k));tl(te,{get isHidden(){return n(J)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:H,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:W,get ref(){return u()},set ref(ue){u(ue)}});var Y=A(te,2);{var Ie=ue=>{var ie=G2(),ge=C(ie);lv(ge,{}),S(ie),N(()=>Qe(ie,`height: ${e.animatedPreviewTrackHeight}px;`)),b(ue,ie)};M(Y,ue=>{e.previewTrackAvailable&&ue(Ie)})}S(U),N(()=>Qe(U,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,U),F(),o()}var Z2=L('<div><!> <div class="controls s-x" data-testid="player_controls"><div class="controls-left s-x"><!> <!> <!></div> <div class="controls-right s-x"></div></div></div> <!>',1),J2={hash:"s-x",code:'.wrapper-bottom.s-x{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-x:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-x>:where(.s-x){pointer-events:auto}.controls.s-x{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls-left.s-x,.controls-right.s-x{align-content:center;display:flex}.controls-left.s-x{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-x >:not(:first-child),.controls-right.s-x >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-x{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-x{transition:none}'};function pv(t,e){var xa,_l;B(e,!0),Q(t,J2);let[i,o]=Oe(),r=()=>w(Tt,"$disabledControls$",i),a=()=>w(oi,"$adPlaybackState",i),l=()=>w(_i,"$playbackState$",i),d=()=>w(Mo,"$currentSubtitle$",i),s=()=>w(ji,"$isEnded$",i),u=()=>w(vn,"$currentGridType$",i),f=()=>w(Gt,"$isMinimalMode$",i),p=()=>w(ri,"$isLive$",i),v=()=>w(Pi,"$chromecastState$",i),_=()=>w(Xi,"$isPictureInPictureActive",i),y=()=>w(It,"$pictureInPictureType$",i),$=()=>w(ro,"$availableSubtitlesList$",i),x=()=>w(kt,"$contextMenuOpenedByKeyboard$",i),I=()=>w(z,"$showContextMenuBtn$",i),T=()=>w(ci,"$isRewindableLive$",i),R=()=>w(ut,"$isActiveLive$",i),k=()=>w(_r,"$graphIsOpened$",i),P=()=>w(Nt,"$contextMenuVisible$",i),E=()=>w(Ri,"$isFullscreen",i),W=()=>w(Vo,"$autoplayNextEnabled",i),H=()=>w(n(on),"$prevButton",i),U=()=>w(n(Do),"$replayButton",i),G=()=>w(n(No),"$playButton",i),se=()=>w(n(Ji),"$nextButton",i),te=()=>w(n(Tn),"$playPrevChapterButton",i),J=()=>w(n(In),"$seekToInteractiveButton",i),Y=()=>w(n(nn),"$interactiveGraphButton",i),Ie=()=>w(n(ws),"$liveButton",i),ue=()=>w(n(Wr),"$time",i),ie=()=>w(n(Ss),"$episodes",i),ge=()=>w(n(Ui),"$vkLogo",i),Pe=()=>w(n(Cs),"$volume",i),de=()=>w(n(as),"$subtitles",i),Ke=()=>w(n(wr),"$settings",i),pe=()=>w(n(So),"$context",i),me=()=>w(n(Sr),"$fullscreen",i),Z=()=>w(n(Xe),"$chromecast",i),O=()=>w(go,"$additionalDesktopControlPanelRightButtons$",i),fe=()=>w(Jo,"$playerSize",i),ce=()=>w(xo,"$isInteractiveTime$",i),Re=()=>w(To,"$previewTrackActive",i),tt=()=>w(gi,"$settingsMenuVisible",i),ke=()=>w(Bo,"$settingButtonRef$",i),j=()=>w(si,"$startedByKeyboard$",i),ne=()=>w(Ei,"$isAudioAvailable$",i),Se=()=>w(xe,"$fakeIsPlaying$",i),Le=()=>w(rs,"$seekToInteractiveDisabledTooltip$",i),We=()=>w(Li,"$isPreviewTrackHorizontallyAligned$",i),Ce=()=>w(Er,"$previewTrackAvailable",i),we=()=>w(ar,"$previewTrackDragInProgress",i),Be=()=>w(ct,"$adPosition",i),rt=()=>w(Xt,"$position$",i),mt=()=>w(Yt,"$adDuration",i),Vt=()=>w(Pt,"$duration$",i),lt=g(e,"playerControlsWrapperRef",15,void 0),jt=g(e,"playerControlsRef",15,void 0),St=g(e,"isAds",3,!1),Ut=g(e,"logoTargetUrl",3,""),Rt=g(e,"isOneVideoPlaylist",3,!1),zt=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:xe}=$o(),X=ye(),Ne=$o(),be=Mt(),Ue=X.actions.internal.toggleMuted,Te=X.actions.internal.togglePlay,$t=X.actions.internal.pause,$e=X.actions.internal.toggleSubtitle,qe=X.actions.internal.checkFullscreenSupport,ze=(xa=X.callbacks)==null?void 0:xa.onAudioDoesNotExistHint,st=(_l=X.callbacks)==null?void 0:_l.onAudioDisabledHint,Gt=X.ui.isMinimalMode$,Pt=X.state.duration$,Xt=X.state.positionWithScrubbing$,_i=X.state.playbackState$,Ei=X.state.isAudioAvailable$,Ci=X.state.isAudioDisabled,ji=X.state.isEnded$,ri=X.state.isLive$,ut=X.state.isActiveLive$,ci=X.state.isRewindableLive$,{isActive$:Xi,type$:It}=Ne.pictureInPicture$,gi=X.ui.settingsMenu.visible$,mi=X.ui.settingsMenu.openedByBtnKeyboard$,He=X.ui.controls,nt=X.actions.internal.getVideoEpisodes(),Pi=X.state.chromecastState$,ro=X.state.availableSubtitlesList$,Mo=X.state.currentSubtitle$,Tt=He.disabledControls$,Nt=X.ui.contextMenu.visible$,z=X.ui.contextMenu.showContextMenuBtn$,kt=X.ui.contextMenu.openedByBtnKeyboard$,si=X.ui.startedByKeyboard$,bi=X.ui.controlBlocks,dt=X.ui.t,Yt=X.ads.duration,ct=X.ads.position,oi=X.ads.playbackState,Ri=X.ui.isFullscreen,Jo=X.ui.playerSize,vn=X.ui.currentGridType$,go=X.ui.additionalDesktopControlPanelRightButtons$,Vo=X.ui.autoplayNextEnabled$,yo=X.actions.internal.getVideoElement,Di=X.actions.internal.replayInteractive,Zi=X.actions.internal.prevVideoClick,gn=X.actions.internal.nextVideoClick,Ai=X.state.isInteractive,xo=X.state.isInteractiveTime$,hn=X.state.showInteractiveGraph,Zn=X.state.showSeekToInteractive,Jn=X.state.showPlayPrevChapter,ys=X.state.showInteractiveTimeIndicator,xs=X.state.playPrevChapterDisabledTooltip,rs=Ne.seekToInteractiveDisabledTooltip$,_r=Ne.graphIsOpened$,_n=be.features.interactiveResponsiveUi,bn=m(()=>r().has("EPISODE_BUTTON")),er=m(()=>r().has("GRAPH_BUTTON")),br=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),tr=m(()=>r().has("PLAY_BUTTON")),Nr=m(()=>r().has("REPLAY_BUTTON")),Or=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Hn=()=>X.actions.internal.toggleChromecast(),ir=m(()=>St()?a()==="playing":l()===il.PlaybackState.PLAYING),Un=m(()=>d().value!=="off"),or=m(()=>s()&&!St()||Ai),Br=m(()=>_n?n(or)&&io(u(),"m"):n(or)),Fr=m(()=>!s()||Ai||St()),wi=m(()=>!f()&&io(u(),"m")),ss=m(()=>e.showNextPrevButtons&&!f()&&io(u(),"m")&&!St()&&e.nextButtonActive),en=m(()=>e.showNextPrevButtons&&!f()&&io(u(),"m")&&!St()&&e.prevButtonActive),_t=m(()=>!St()&&!!p()),Zt=m(()=>!f()&&v()!==il.ChromecastState.NOT_AVAILABLE&&!(_()&&y()===1)&&io(u(),"m")&&!Ai&&!St()),nr=m(()=>e.showAutoplayNext&&!f()&&!Rt()&&io(u(),"s")),zn=m(()=>!f()&&$().length>0&&io(u(),"m")),Hr=m(()=>x()||I()),$r=m(()=>io(u(),"s")&&!St()),Ur=m(()=>!e.logoHidden&&!St()&&!f()),$n=m(()=>be.features.fullscreen&&qe()&&(e.logoHidden||io(u(),_n?"xs":"s"))&&!(_()&&y()===1)&&(Ai?zt():!0)),tn=m(()=>(!p()||St())&&!(be.features.interactiveHideTime&&Ai)),yn=m(()=>hn&&io(u(),"m")),yr=m(()=>_n?Zn&&io(u(),"s"):Zn),xr=m(()=>_n?Jn&&io(u(),"s"):Jn),xn=m(()=>!f()&&!St()&&!p()&&!!(nt!=null&&nt.length)&&n(wi)&&!n(bn)),wn=m(()=>!T()||!!R()),rr=m(()=>k()?dt("tooltip_interactive_graph_on"):dt("tooltip_interactive_graph_off")),Ti=m(()=>P()?dt("tooltip_context_menu_close"):dt("tooltip_context_menu_open")),wo=(gt,bt)=>gt?bt&&bt===il.PlaybackState.PAUSED?dt("tooltip_play"):"":dt("tooltip_live"),Ro=m(()=>wo(n(wn),l())),so=m(()=>be.logoType==="vk_video"?dt("tooltip_vk_video_logo"):dt("tooltip_vk_logo")),Sn=m(()=>n(Un)?dt("tooltip_subtitles_on"):dt("tooltip_subtitles_off")),Cn=m(()=>E()?dt("tooltip_fullscreen_on"):dt("tooltip_fullscreen_off")),zr=m(()=>v()===il.ChromecastState.CONNECTED?dt("tooltip_chromecast_on"):dt("tooltip_chromecast_off")),Ct=m(()=>W()?dt("tooltip_autoplay_on"):dt("tooltip_autoplay_off")),ai=K(0),Qt=ni({}),ho=ni({}),on=m(()=>He.prevButton),Do=m(()=>He.replayButton),No=m(()=>He.playButton),Ji=m(()=>He.nextButton),Tn=m(()=>He.playPrevChapterButton),In=m(()=>He.seekToInteractiveButton),nn=m(()=>He.interactiveGraphButton),ws=m(()=>He.liveButton),Wr=m(()=>He.time),Ss=m(()=>He.episodes),Ui=m(()=>He.vkLogo),Cs=m(()=>He.volume),as=m(()=>He.subtitles),wr=m(()=>He.settings),So=m(()=>He.context),Sr=m(()=>He.fullscreen),Xe=m(()=>He.chromecast),pt=m(()=>({prevButton:H()?H().right-H().left:0,replayButton:U()?U().right-U().left:0,playButton:G()?G().right-G().left:0,nextButton:se()?se().right-se().left:0,playPrevChapterButton:te()?te().right-te().left:0,seekToInteractiveButton:J()?J().right-J().left:0,interactiveGraphButton:Y()?Y().right-Y().left:0,liveButton:Ie()?Ie().right-Ie().left:0,time:ue()?ue().right-ue().left:0,episodes:ie()?ie().right-ie().left:0,vkLogo:ge()?ge().right-ge().left:0,volume:Pe()?Pe().right-Pe().left:0,subtitles:de()?de().right-de().left:0,settings:Ke()?Ke().right-Ke().left:0,context:pe()?pe().right-pe().left:0,fullscreen:me()?me().right-me().left:0,chromecast:Z()?Z().right-Z().left:0,additionalButtons:O().length?O().reduce(gt=>[...gt,40],[]):[]})),Jt=K(0);Fe(()=>{(!n(Jt)||n(Jt)<n(pt).time)&&Et(()=>D(Jt,n(pt).time,!0))});let ao=K(!1);Fe(()=>{let gt=0;n(xn)&&(io(u(),"xl")?gt=n(pt).time:gt=60);let bt=n(pt).prevButton+n(pt).playButton+n(pt).nextButton+n(pt).seekToInteractiveButton+n(pt).interactiveGraphButton+n(pt).liveButton+n(Jt)+gt;D(ao,n(tn)&&n(ai)>=bt,!0)});let ki=m(()=>n(ao)&&io(u(),"m")),Oo=(0,uv.debounceFn)(nd,260),_o=(0,uv.debounceFn)(vp,260);Fe(()=>{fe(),ce(),Re(),Oo(yo(),He,Qt,e.showControls),_o(yo(),bi,ho,e.showControls)}),Fe(()=>{ho.bottom=lt()});let Bo=ae();Fe(()=>{tt(),ke()&&Et(()=>Yl(ke(),tt(),mi))});let Fo;Fe(()=>{j(),Et(()=>fp(si,j(),Fo))});function sr(){pa({isAudioDisabled:Ci,isAudioAvailable:ne(),isAds:St(),audioIsNotExistHintCallback:ze,audioDisabledHintCallback:st})&&Ue()}let Co=Ai?Di:Te,rn=m(()=>Se()!==null),Cr=m(()=>n(rn)?Se():n(ir)),sn=m(()=>n(Cr)?dt("tooltip_pause"):dt("tooltip_play")),En=dt("tooltip_episodes"),Pn=m(()=>{var gt,bt,$i,zo;return n(en)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ks.prevButton,buttonComponent:Ja,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Zi.bind(null,!0)},tooltipEnabled:!((bt=(gt=X.callbacks)==null?void 0:gt.uiInfo)!=null&&bt.onPrevButtonMouseEnter)&&!((zo=($i=X.callbacks)==null?void 0:$i.uiInfo)!=null&&zo.onPrevButtonMouseLeave),mouseEnter:()=>{var Wi,hi,Ni;(Ni=(hi=(Wi=X.callbacks)==null?void 0:Wi.uiInfo)==null?void 0:hi.onPrevButtonMouseEnter)==null||Ni.call(hi,jn(yo(),Qt,"prevButton",e.showControls))},mouseLeave:()=>{var Wi,hi,Ni;(Ni=(hi=(Wi=X.callbacks)==null?void 0:Wi.uiInfo)==null?void 0:hi.onPrevButtonMouseLeave)==null||Ni.call(hi,jn(yo(),Qt,"prevButton",e.showControls))},tooltipText:dt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Kr=m(()=>n(Br)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ks.replayButton,buttonComponent:rd,buttonComponentProps:{disabled:n(Nr),click:Co},tooltipText:dt("tooltip_restart"),disabled:n(Nr)}:void 0),ls=m(()=>n(Fr)?{id:"playButton",type:"desktop-control-panel-left",weight:Ks.playButton,buttonComponent:sd,buttonComponentProps:{disabled:n(tr),isPlaying:n(ir),click:Te},tooltipText:n(sn),disabled:n(tr)}:void 0),Ze=m(()=>{var gt,bt,$i,zo;return n(ss)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ks.nextButton,buttonComponent:Ja,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:gn.bind(null,!0)},tooltipEnabled:!((bt=(gt=X.callbacks)==null?void 0:gt.uiInfo)!=null&&bt.onNextButtonMouseEnter)&&!((zo=($i=X.callbacks)==null?void 0:$i.uiInfo)!=null&&zo.onNextButtonMouseLeave),mouseEnter:()=>{var Wi,hi,Ni;(Ni=(hi=(Wi=X.callbacks)==null?void 0:Wi.uiInfo)==null?void 0:hi.onNextButtonMouseEnter)==null||Ni.call(hi,jn(yo(),Qt,"nextButton",e.showControls))},mouseLeave:()=>{var Wi,hi,Ni;(Ni=(hi=(Wi=X.callbacks)==null?void 0:Wi.uiInfo)==null?void 0:hi.onNextButtonMouseLeave)==null||Ni.call(hi,jn(yo(),Qt,"nextButton",e.showControls))},tooltipText:dt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Bt=m(()=>Ai&&n(xr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ks.playPrevChapterButton,buttonComponent:xc,buttonComponentProps:{disabled:n(Or),click:e.playPrevChapter},tooltipText:dt("tooltip_interactive_go_back"),disabledTooltipContent:dt(xs),disabled:n(Or)}:void 0),Ii=m(()=>Ai&&n(yr)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ks.seekToInteractiveButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(br),click:e.seekToInteractive},tooltipText:dt("tooltip_interactive_seek"),disabled:n(br),disabledTooltipContent:dt(Le())}:void 0),an=m(()=>Ai&&n(yn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ks.interactiveGraphButton,buttonComponent:Cc,buttonComponentProps:{disabled:n(er),click:_r.toggle,graphIsOpened:k()},tooltipText:n(rr)}:void 0),Ho=m(()=>n(_t)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ks.liveButton,buttonComponent:Tc,buttonComponentProps:{isLiveActive:n(wn),ariaLabel:n(Ro)},tooltipText:n(Ro),disabled:n(wn)&&l()===il.PlaybackState.PLAYING}:void 0),Tr=m(()=>[n(Pn),n(Kr),n(ls),n(Ze),n(Bt),n(Ii),n(an),n(Ho)].filter(gt=>!!gt).sort(Wa)),An=m(()=>n(Ur)?{id:"vkLogo",type:"desktop-control-panel-right",weight:qs.vkLogo,buttonComponent:uc,buttonComponentProps:{targetUrl:Ut(),logoClickable:e.logoClickable,click:$t},tooltipText:n(so),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ln=m(()=>n(nr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:qs.autoplayNext,buttonComponent:wc,tooltipText:n(Ct)}:void 0),Ts=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:qs.volume,buttonComponent:km,buttonComponentProps:{click:sr,isAds:St()}})),Ys=m(()=>n(zn)?{id:"subtitles",type:"desktop-control-panel-right",weight:qs.subtitles,buttonComponent:Im,buttonComponentProps:{isSubtitlesEnabled:n(Un),click:$e},tooltipText:n(Sn)}:void 0),ds=m(()=>n($r)?{id:"settings",type:"desktop-control-panel-right",weight:qs.settings,buttonComponent:ed,buttonComponentProps:{ref$:Bo},tooltipText:tt()?void 0:dt("tooltip_settings_off")}:void 0),Ir=m(()=>be.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:qs.context,buttonComponent:Gm,buttonComponentProps:{ariaLabel:dt("aria_label_context_menu")},className:n(Hr)?"":"out-of-view",tooltipText:n(Ti)}:void 0),Is=m(()=>n($n)?{id:"fullscreen",type:"desktop-control-panel-right",weight:qs.fullscreen,buttonComponent:cc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(Cn)}:void 0),vt=m(()=>n(Zt)?{id:"chromecast",type:"desktop-control-panel-right",weight:qs.chromecast,buttonComponent:fc,buttonComponentProps:{state:v(),click:Hn},tooltipText:n(zr)}:void 0),li=m(()=>[n(An),n(ln),n(Ts),n(Ys),n(ds),n(Ir),n(Is),n(vt),...O()].filter(gt=>!!gt).sort(Wa)),To=X.ui.previewTrackActive,ar=X.ui.previewTrackDragInProgress,Er=X.ui.previewTrackAvailable,Li=X.ui.isPreviewTrackHorizontallyAligned,bo=m(()=>Mb({onPreviewTrackOpened:X.actions.internal.previewTrackOpened,getTimelineRef:()=>Qt.timeline,isHorizontal:We()})),Es=m(()=>n(bo).progressBarY),lo=m(()=>n(bo).controlsY),zi=m(()=>n(bo).onPointerDown),dn=m(()=>n(bo).onPointerMove),Wn=m(()=>n(bo).onPointerUp),he=m(()=>n(bo).calculatedHeight),ft=m(()=>n(bo).closePreviewTrack);Fe(()=>{Re()||n(ft)()});let di;Lt(()=>()=>di&&clearTimeout(di));let Mi=gt=>{Re()||!Ce()||(n(zi)(gt),di=setTimeout(()=>{X.actions.internal.previewTrackDragStarted()},200))},Uo=()=>{Re()||n(Wn)(),di&&clearTimeout(di),we()&&X.actions.internal.previewTrackDragFinished()},co=gt=>{n(dn)(gt)},uo=-(parseInt("24")/2+4);var cs=Z2(),kn=le(cs);let Ps;var $a=C(kn);{var ya=gt=>{let bt=m(()=>n(Es)()),$i=m(()=>n(he)());cv(gt,{get animatedOffsetY(){return n(bt)},get animatedPreviewTrackHeight(){return n($i)},get canRewindLive(){return e.canRewindLive},get isAds(){return St()},onTimelineMove:co,onTimelinePointerDown:Mi,onTimelinePointerUp:Uo,get previewTrackAvailable(){return Ce()},get timelineRef(){return Qt.timeline},set timelineRef(zo){Qt.timeline=zo}})};M($a,gt=>{e.showControls&&gt(ya)})}var Qr=A($a,2),us=C(Qr),lr=C(us);yi(lr,17,()=>n(Tr),gt=>gt.id,(gt,bt)=>{mp(gt,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get tooltipEnabled(){return n(bt).tooltipEnabled},get mouseEnter(){return n(bt).mouseEnter},get mouseLeave(){return n(bt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Qt[n(bt).id]},set ref($i){Qt[n(bt).id]=$i}})});var fl=A(lr,2);{var ml=gt=>{let bt=m(()=>!e.showControls),$i=m(()=>St()?Be():rt()),zo=m(()=>St()?mt():Vt());ac(gt,{get isHidden(){return n(bt)},isMobile:!1,get showDuration(){return n(ki)},get position(){return n($i)},get duration(){return n(zo)},get ref(){return Qt.time},set ref(Wi){Qt.time=Wi}})};M(fl,gt=>{n(tn)&&gt(ml)})}var qr=A(fl,2);let vl=m(()=>!n(xn));ko(qr,{className:"w-max",get disabled(){return n(vl)},get tooltipContent(){return En},get tooltipVisible(){return e.showControls},tooltipPlacement:"top-left",get initialTranslateXPx(){return uo},get ref(){return Qt.episodes},set ref(gt){Qt.episodes=gt},children:(gt,bt)=>{var $i=Ve(),zo=le($i);{var Wi=hi=>{mc(hi,{get position(){return rt()},get duration(){return Vt()},get timeCodes(){return nt}})};M(zo,hi=>{n(xn)&&hi(Wi)})}b(gt,$i)},$$slots:{default:!0}}),S(us);var gl=A(us,2);yi(gl,21,()=>n(li),gt=>gt.id,(gt,bt)=>{var $i=Ve(),zo=le($i);{var Wi=Ni=>{mp(Ni,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get tooltipVisible(){return e.showControls},get ref(){return Qt[n(bt).id]},set ref(wa){Qt[n(bt).id]=wa}})},hi=Ni=>{let wa=m(()=>!!n(bt).disabled);ev(Ni,{get id(){return n(bt).id},get testId(){return n(bt).testId},get icon(){return n(bt).icon},get ariaLabel(){return n(bt).ariaLabel},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(wa)},get onClick(){return n(bt).onClick},get disableMouseupTooltipShow(){return n(bt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Qt[n(bt).id]},set ref(bl){Qt[n(bt).id]=bl}})};M(zo,Ni=>{Ab(n(bt))?Ni(Wi):Ni(hi,!1)})}b(gt,$i)}),S(gl),S(Qr),it(Qr,gt=>jt(gt),()=>jt()),S(kn),it(kn,gt=>lt(gt),()=>lt());var hl=A(kn,2);{var vd=gt=>{$c(gt,{get ref(){return Qt.interactiveTimeIndicator},set ref(bt){Qt.interactiveTimeIndicator=bt}})};M(hl,gt=>{ys&&gt(vd)})}N((gt,bt)=>{Ps=oe(kn,1,"wrapper-bottom s-x",null,Ps,gt),Qe(kn,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Qe(Qr,bt),Qr.inert=Re()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||we()}),()=>`transform: translateY(${n(lo)()}px);`]),Dn(us,"clientWidth",gt=>D(ai,gt)),b(t,cs),F(),o()}var ad=require("@vkontakte/videoplayer-core/es2018");var fv=require("@vkontakte/videoplayer-shared/es2018");var ew=L('<div class="icon icon-error-stub s-1z"><div class="inner s-1z"></div></div>'),tw=L('<img class="icon s-1z" aria-hidden="true"/>'),iw={hash:"s-1z",code:".icon.s-1z{height:24px!important;width:24px!important}.inner.s-1z{background-color:var(--white);height:16px;width:16px}"};function mv(t,e){Q(t,iw);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,fv.noop),r=m(()=>o()===fv.noop),a=m(()=>n(r)||i()),l=K(!1),d=()=>{D(l,!0)},s=m(()=>n(r)?"btn-full-opacity":"");Ht(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,f)=>{var p=Ve(),v=le(p);{var _=$=>{var x=ew();b($,x)},y=$=>{var x=tw();N(()=>De(x,"src",e.iconUrl)),ht("error",x,d),Da(x),b($,x)};M(v,$=>{n(l)?$(_):$(y,!1)})}b(u,p)},$$slots:{default:!0}})}var ow=Ae('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function vv(t){je(t,{testId:"muted-icon",children:(e,i)=>{var o=ow();b(e,o)},$$slots:{default:!0}})}var Ob=require("@vkontakte/videoplayer-shared/es2018");function hp(t,e){B(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Ob.noop),r=g(e,"ref",15,void 0),l=ye().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ht(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,f)=>{var p=Ve(),v=le(p);{var _=$=>{vv($,{})},y=$=>{va($,{get size(){return"24"}})};M(v,$=>{i()?$(_):$(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var nw=Ae('<path d="M11.64 12.37 9.07 9.8h1.03a.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.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),rw=Ae('<path d="m6.36 9.63 2.57 2.57H7.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.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),sw=Ae('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function gv(t,e){let i=g(e,"isActive",3,!1),o=m(()=>i()?"pip-icon--active":"pip-icon");je(t,{get testId(){return n(o)},children:(r,a)=>{var l=sw(),d=A(le(l));{var s=f=>{var p=nw();b(f,p)},u=f=>{var p=rw();b(f,p)};M(d,f=>{i()?f(s):f(u,!1)})}b(r,l)},$$slots:{default:!0}})}var Bb=require("@vkontakte/videoplayer-shared/es2018");function hv(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,Bb.noop),a=q("menu_pip");Ht(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{gv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var _v=require("@vkontakte/videoplayer-shared/es2018");var aw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},lw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},dw=L("<div><!></div>"),cw=L("<div><!></div>"),uw=L("<div><!></div>"),pw=L("<!> <!> <!>",1),fw=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),mw=L('<div class="wrapper-middle s-y"><!></div>'),vw=L("<div><!></div> <!> <div><!></div>",1),gw=L('<div aria-hidden="true">·</div> <!>',1),hw=L('<!> <!> <div><div><div class="controls mobile s-y" data-testid="bottom-controls"><div class="controls-group contain s-y"><!> <!> <!> <!></div> <div class="controls-group s-y"><!> <!> <!></div></div> <!></div></div> <!>',1),_w={hash:"s-y",code:".wrapper-bottom.s-y{background:var(--controls-gradient);bottom:0;box-sizing:border-box;display:flex;flex-direction:column;height:var(--controls-gradient-height);justify-content:flex-end;left:0;padding:0 4px 8px;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-y>:where(.s-y){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-y{height:9px;padding:0 4px 4px}.wrapper-middle.s-y{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-y,.wrapper-top-right.s-y{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-y{right:8px;top:4px}.wrapper-top-left.s-y{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-y,.wrapper-middle-left-second.s-y,.wrapper-middle-right.s-y{align-items:center;background-color:rgba(0,0,0,.56);border-radius:12px;display:flex;height:44px;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}.wrapper-middle-left.s-y{left:12px}.wrapper-middle-left-second.s-y{left:64px}.wrapper-middle-right.s-y{right:12px}.controls.s-y{align-items:center;box-sizing:border-box;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 4px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform}.controls.s-y,.controls-group.s-y{display:flex}.controls-group.contain.s-y{min-width:0}.controls-group.s-y >:not(:first-child){margin-left:8px}.hidden.s-y{opacity:0;visibility:hidden}.controls-hidden.s-y{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-y{transition:none}.overlay-mobile.s-y{background-color:rgba(0,0,0,.3);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:opacity var(--controls-transition-duration);width:100%}@media screen and (orientation:portrait){.wrapper-top-left.fullscreen.s-y,.wrapper-top-right.fullscreen.s-y{top:16px}.controls-wrapper.fullscreen.s-y{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-y{left:44px;top:12px}.wrapper-top-right.fullscreen.s-y{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-y{left:44px}.wrapper-middle-left-second.fullscreen.s-y{left:96px}.wrapper-middle-right.fullscreen.s-y{right:44px}.controls-wrapper.fullscreen.s-y{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function bv(t,e){var So,Sr;B(e,!0),Q(t,_w);let[i,o]=Oe(),r=()=>w(Ri,"$seekToInteractiveDisabledTooltip$",i),a=()=>w(gi,"$disabledControls$",i),l=()=>w(Ut,"$playbackState$",i),d=()=>w(ro,"$adPlaybackState",i),s=()=>w(xe,"$isEnded$",i),u=()=>w(Tt,"$playerSize",i),f=()=>w($t,"$scrubbingInProgress",i),p=()=>w(Xi,"$chromecastState$",i),v=()=>w(qe,"$isPictureInPictureActive",i),_=()=>w(ze,"$pictureInPictureType$",i),y=()=>w($e,"$mobileNotReportControlHidden$",i),$=()=>w(ri,"$chromecastHidden",i),x=()=>w(lt,"$playerPhase",i),I=()=>w(Ci,"$pipHidden",i),T=()=>w(He,"$currentGridType$",i),R=()=>w(_i,"$vkLogoHidden",i),k=()=>w(Xt,"$volumeHidden",i),P=()=>w(X,"$isLive$",i),E=()=>w(st,"$settingsMenuVisible",i),W=()=>w(Te,"$isRewindableLive$",i),H=()=>w(Ue,"$isActiveLive$",i),U=()=>w(Rt,"$isAudioAvailable$",i),G=()=>w(be,"$muted$",i),se=()=>w(Ne,"$volume$",i),te=()=>w(bi,"$isInteractiveTime$",i),J=()=>w(yn,"$settingButtonRef$",i),Y=()=>w(mi,"$startedByKeyboard$",i),Ie=()=>w(Mo,"$isFullscreen",i),ue=()=>w(Nt,"$additionalButtons$",i),ie=()=>w(Ei,"$autoplayNextToggleHidden",i),ge=()=>w(It,"$crashed$",i),Pe=()=>w(ji,"$settingsHidden",i),de=()=>w(Jo,"$graphIsOpened$",i),Ke=()=>w(Pi,"$adPosition",i),pe=()=>w(nt,"$adDuration",i),me=()=>w(St,"$position$",i),Z=()=>w(jt,"$duration$",i),O=g(e,"playerControlsWrapperRef",15,void 0),fe=g(e,"playerControlsRef",15,void 0),ce=g(e,"isAds",3,!1),Re=g(e,"logoTargetUrl",3,""),tt=g(e,"isOneVideoPlaylist",3,!1),ke=g(e,"customFullscreenSupported",3,!0),j=ye(),ne=$o(),Se=Mt(),Le=j.actions.internal.toggleMuted,We=j.actions.internal.togglePlay,Ce=j.actions.internal.pause,we=j.actions.internal.prevVideoClick,Be=j.actions.internal.nextVideoClick,rt=j.actions.internal.checkFullscreenSupport,mt=(So=j.callbacks)==null?void 0:So.onAudioDoesNotExistHint,Vt=(Sr=j.callbacks)==null?void 0:Sr.onAudioDisabledHint,lt=j.playerPhase,jt=j.state.duration$,St=j.state.positionWithScrubbing$,Ut=j.state.playbackState$,Rt=j.state.isAudioAvailable$,zt=j.state.isAudioDisabled,xe=j.state.isEnded$,X=j.state.isLive$,Ne=j.state.volume$,be=j.state.muted$,Ue=j.state.isActiveLive$,Te=j.state.isRewindableLive$,$t=j.ui.scrubbingInProgress,$e=j.ui.mobileNotReportControlHidden$,{isActive$:qe,type$:ze}=ne.pictureInPicture$,st=j.ui.settingsMenu.visible$,Gt=j.ui.settingsMenu.openedByBtnKeyboard$,Pt=j.ui.controls,{volume:Xt,vkLogo:_i,autoplayNextToggle:Ei,pip:Ci,settings:ji,chromecast:ri}=j.ui.hiddenControls,ut=j.actions.internal.getVideoEpisodes(),ci=j.webApi.pictureInPictureApi,Xi=j.state.chromecastState$,It=j.state.crashed$,gi=Pt.disabledControls$,mi=j.ui.startedByKeyboard$,He=j.ui.currentGridType$,nt=j.ads.duration,Pi=j.ads.position,ro=j.ads.playbackState,Mo=j.ui.isFullscreen,Tt=j.ui.playerSize,Nt=j.ui.additionalButtonsDeprecated$,z=j.actions.internal.getVideoElement,kt=j.actions.internal.replayInteractive,si=j.state.isInteractive,bi=j.state.isInteractiveTime$,dt=j.state.showInteractiveGraph,Yt=j.state.showSeekToInteractive,ct=j.state.showPlayPrevChapter,oi=j.state.showInteractiveTimeIndicator,Ri=ne.seekToInteractiveDisabledTooltip$,Jo=ne.graphIsOpened$,vn=j.ui.controlBlocks,go=m(()=>q(j.state.playPrevChapterDisabledTooltip)),Vo=m(()=>q(r())),yo=m(()=>a().has("EPISODE_BUTTON")),Di=m(()=>a().has("GRAPH_BUTTON")),Zi=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),gn=m(()=>a().has("PLAY_BUTTON")),Ai=m(()=>a().has("REPLAY_BUTTON")),xo=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),hn=m(()=>l()===ad.PlaybackState.PLAYING),Zn=m(()=>d()==="paused"),Jn=m(()=>s()&&!ce()&&!si),ys=m(()=>!s()||ce()),xs=m(()=>e.showNextPrevButtons&&!ce()&&e.prevButtonActive),rs=m(()=>e.showNextPrevButtons&&!ce()&&e.nextButtonActive),_r=m(()=>u().width>300),_n=m(()=>u().width>400),bn=m(f),er=m(()=>p()!==ad.ChromecastState.NOT_AVAILABLE&&!(v()&&_()===1)&&!y()&&!si&&!$()),br=m(()=>x()==="LiveWaitingStart"),tr=m(()=>!!ci&&p()!==ad.ChromecastState.CONNECTED&&!y()&&(_()===1&&n(br)||!n(br))&&!n(bn)&&!si&&!I()),Nr=K(!1);Lt(()=>{let Xe=ci==null?void 0:ci.info.isActive$.subscribe(pt=>D(Nr,pt,!0));return()=>Xe==null?void 0:Xe.unsubscribe()});let Or=m(()=>!n(bn)&&io(T(),"s")),Hn=m(()=>!e.logoHidden&&u().width>350&&!R()),ir=m(()=>Se.features.fullscreen&&rt()&&!(v()&&_()===1)&&(si?ke():!0)&&!n(bn)&&!n(Nr)),Un=m(()=>!k()&&!n(bn)),or=m(()=>(!P()||ce())&&u().width>260&&!n(bn)&&!(Se.features.interactiveHideTime&&si)),Br=m(()=>E()||e.showControls),Fr=m(()=>!ce()&&!P()&&!!(ut!=null&&ut.length)&&n(_r)&&!n(yo)&&!n(bn)),wi=m(()=>!W()||!!H()),ss=m(()=>dt&&io(T(),"m")),en=m(()=>!U()||G()||se()===0),_t=ni({}),Zt=ni({}),nr=(0,_v.debounceFn)(nd,260),zn=(0,_v.debounceFn)(vp,260);Fe(()=>{u(),te(),nr(z(),Pt,_t,e.showControls),zn(z(),vn,Zt,e.showControls)});let Hr=()=>j.actions.internal.toggleChromecast();async function $r(){ci!=null&&ci.isActive()?await(ci==null?void 0:ci.exit()):await(ci==null?void 0:ci.request())}function Ur(){pa({isAudioDisabled:zt,audioDisabledHintCallback:Vt,isAudioAvailable:U(),audioIsNotExistHintCallback:mt,isAds:ce()})&&Le()}let $n=K(""),tn=(Xe,pt)=>{if(!Xe){D($n,q("tooltip_live"),!0);return}pt&&pt===ad.PlaybackState.PAUSED&&D($n,q("tooltip_play"),!0)};Fe(()=>{tn(n(wi),l())});let yn=ae();Fe(()=>{J()&&Yl(J(),E(),Gt)}),Fe(()=>{fp(mi,Y(),_t.playButton)});var yr=hw(),xr=le(yr);{var xn=Xe=>{var pt=fw(),Jt=le(pt);let ao;var ki=A(Jt,2);let Oo;it(ki,vt=>Zt.topLeft=vt,()=>Zt==null?void 0:Zt.topLeft);var _o=A(ki,2);let Bo;var Fo=C(_o);yi(Fo,1,ue,({iconUrl:vt,ariaLabel:li,testId:To,onClick:ar,tooltip:Er})=>vt,(vt,li)=>{let To=()=>n(li).iconUrl,ar=()=>n(li).ariaLabel,Er=()=>n(li).testId,Li=()=>n(li).onClick,bo=()=>n(li).tooltip,Es=m(()=>{var lo;return(lo=ar())!=null?lo:bo()});mv(vt,{get iconUrl(){return To()},get ariaLabel(){return n(Es)},get testId(){return Er()},get onClick(){return Li()}})});var sr=A(Fo,2);{var Co=vt=>{wc(vt,{get ref(){return _t.autoplayNextToggle},set ref(li){_t.autoplayNextToggle=li}})};M(sr,vt=>{e.showAutoplayNext&&!tt()&&!ie()&&vt(Co)})}var rn=A(sr,2);{var Cr=vt=>{fc(vt,{isMobile:!0,click:Hr,get state(){return p()},get ref(){return _t.chromecast},set ref(li){_t.chromecast=li}})};M(rn,vt=>{n(er)&&vt(Cr)})}var sn=A(rn,2);{var En=vt=>{hv(vt,{click:$r,get isPictureInPictureActive(){return v()},get ref(){return _t.pip},set ref(li){_t.pip=li}})};M(sn,vt=>{n(tr)&&vt(En)})}var Pn=A(sn,2);{var Kr=vt=>{ed(vt,{get ref$(){return yn}})};M(Pn,vt=>{ge()&&!Pe()&&vt(Kr)})}var ls=A(Pn,2);{var Ze=vt=>{uc(vt,{get click(){return Ce},get targetUrl(){return Re()},get logoClickable(){return e.logoClickable},get ref(){return _t.vkLogo},set ref(li){_t.vkLogo=li}})};M(ls,vt=>{n(Hn)&&vt(Ze)})}S(_o),it(_o,vt=>Zt.topRight=vt,()=>Zt==null?void 0:Zt.topRight);var Bt=A(_o,2);let Ii;var an=C(Bt);{var Ho=vt=>{let li=m(()=>we.bind(null,!0));Ja(vt,{get click(){return n(li)},type:"prev",isMobile:!0,get ref(){return _t.prevButton},set ref(To){_t.prevButton=To}})};M(an,vt=>{n(xs)&&vt(Ho)})}var Tr=A(an,2);{var An=vt=>{sd(vt,{get disabled(){return n(gn)},get click(){return We},isMobile:!0,get isPlaying(){return n(hn)},get ref(){return _t.playButton},set ref(li){_t.playButton=li}})};M(Tr,vt=>{n(ys)&&vt(An)})}var ln=A(Tr,2);{var Ts=vt=>{rd(vt,{get disabled(){return n(Ai)},get click(){return We},isMobile:!0,get ref(){return _t.replayButton},set ref(li){_t.replayButton=li}})};M(ln,vt=>{n(Jn)&&vt(Ts)})}var Ys=A(ln,2);{var ds=vt=>{let li=m(()=>Be.bind(null,!0));Ja(vt,{get click(){return n(li)},type:"next",isMobile:!0,get ref(){return _t.nextButton},set ref(To){_t.nextButton=To}})};M(Ys,vt=>{n(rs)&&vt(ds)})}S(Bt),it(Bt,vt=>Zt.middle=vt,()=>Zt==null?void 0:Zt.middle);var Ir=A(Bt,2);{var Is=vt=>{var li=pw(),To=le(li);{var ar=lo=>{var zi=dw();let dn;zi.__click=[aw,xo,e,go];var Wn=C(zi);let he=m(()=>!e.showControls);xc(Wn,{get hidden(){return n(he)},get disabled(){return n(xo)},get click(){return e.playPrevChapter},get ref(){return _t.playPrevChapterButton},set ref(ft){_t.playPrevChapterButton=ft}}),S(zi),N(ft=>dn=oe(zi,1,"wrapper-middle-left s-y",null,dn,ft),[()=>({fullscreen:Ie(),hidden:!e.showControls})]),b(lo,zi)};M(To,lo=>{ct&&lo(ar)})}var Er=A(To,2);{var Li=lo=>{var zi=cw();let dn;var Wn=C(zi);let he=m(()=>!e.showControls&&!de());Cc(Wn,{get hidden(){return n(he)},get disabled(){return n(Di)},get click(){return Jo.toggle},get graphIsOpened(){return de()},get ref(){return _t.interactiveGraphButton},set ref(ft){_t.interactiveGraphButton=ft}}),S(zi),N(ft=>dn=oe(zi,1,Bd(ct?"wrapper-middle-left-second":"wrapper-middle-left"),"s-y",dn,ft),[()=>({fullscreen:Ie(),hidden:!e.showControls&&!de()})]),b(lo,zi)};M(Er,lo=>{n(ss)&&lo(Li)})}var bo=A(Er,2);{var Es=lo=>{var zi=uw();let dn;zi.__click=[lw,Zi,e,Vo];var Wn=C(zi);let he=m(()=>!e.showControls);Sc(Wn,{get hidden(){return n(he)},get disabled(){return n(Zi)},get click(){return e.seekToInteractive},get ref(){return _t.seekToInteractiveButton},set ref(ft){_t.seekToInteractiveButton=ft}}),S(zi),N(ft=>dn=oe(zi,1,"wrapper-middle-right s-y",null,dn,ft),[()=>({fullscreen:Ie(),hidden:!e.showControls})]),b(lo,zi)};M(bo,lo=>{Yt&&lo(Es)})}b(vt,li)};M(Ir,vt=>{si&&!f()&&vt(Is)})}N((vt,li,To,ar)=>{ao=oe(Jt,1,"overlay-mobile s-y",null,ao,vt),Oo=oe(ki,1,"wrapper-top-left s-y",null,Oo,li),Bo=oe(_o,1,"wrapper-top-right s-y",null,Bo,To),Ii=oe(Bt,1,"wrapper-middle s-y",null,Ii,ar)},[()=>({hidden:!n(Br)}),()=>({hidden:!e.showControls,fullscreen:Ie()}),()=>({hidden:!e.showControls&&!y(),fullscreen:Ie()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(Xe,pt)};M(xr,Xe=>{ce()||Xe(xn)})}var wn=A(xr,2);{var rr=Xe=>{var pt=vw(),Jt=le(pt);let ao;var ki=C(Jt);hp(ki,{get muted(){return G()},click:Ur,get ref(){return _t.volume},set ref(Co){_t.volume=Co}}),S(Jt);var Oo=A(Jt,2);{var _o=Co=>{var rn=mw(),Cr=C(rn);let sn=m(()=>!n(Zn));sd(Cr,{get disabled(){return n(gn)},get click(){return We},isMobile:!0,get isPlaying(){return n(sn)},get ref(){return _t.playButton},set ref(En){_t.playButton=En}}),S(rn),b(Co,rn)};M(Oo,Co=>{n(Zn)&&Co(_o)})}var Bo=A(Oo,2);let Fo;var sr=C(Bo);Ic(sr,{get position(){return Ke()},get duration(){return pe()}}),S(Bo),N((Co,rn)=>{ao=oe(Jt,1,"wrapper-top-right s-y",null,ao,Co),Fo=oe(Bo,1,"wrapper-bottom ads-timeline-mobile s-y",null,Fo,rn)},[()=>({fullscreen:Ie()}),()=>({fullscreen:Ie()})]),b(Xe,pt)};M(wn,Xe=>{ce()&&d()!=="inactive"&&Xe(rr)})}var Ti=A(wn,2);let wo;var Ro=C(Ti);let so;var Sn=C(Ro),Cn=C(Sn),zr=C(Cn);{var Ct=Xe=>{ko(Xe,{get disabled(){return n(Ai)},get ref(){return _t.replayButton},set ref(pt){_t.replayButton=pt},children:(pt,Jt)=>{rd(pt,{get disabled(){return n(Ai)},get click(){return kt}})},$$slots:{default:!0}})};M(zr,Xe=>{si&&Xe(Ct)})}var ai=A(zr,2);{var Qt=Xe=>{ko(Xe,{get ref(){return _t.liveButton},set ref(pt){_t.liveButton=pt},children:(pt,Jt)=>{Tc(pt,{get isLiveActive(){return n(wi)},isMobile:!0,get ariaLabel(){return n($n)}})},$$slots:{default:!0}})};M(ai,Xe=>{!ce()&&P()&&Xe(Qt)})}var ho=A(ai,2);{var on=Xe=>{let pt=m(()=>ce()?Ke():me()),Jt=m(()=>ce()?pe():Z()),ao=m(()=>!e.showControls);ac(Xe,{get showDuration(){return n(_n)},get position(){return n(pt)},get duration(){return n(Jt)},isMobile:!0,get isHidden(){return n(ao)},get ref(){return _t.time},set ref(ki){_t.time=ki}})};M(ho,Xe=>{n(or)&&Xe(on)})}var Do=A(ho,2);let No=m(()=>!n(Fr));ko(Do,{className:"w-max",get disabled(){return n(No)},get ref(){return _t.episodes},set ref(Xe){_t.episodes=Xe},children:(Xe,pt)=>{var Jt=Ve(),ao=le(Jt);{var ki=Oo=>{var _o=gw(),Bo=A(le(_o),2);mc(Bo,{get position(){return me()},get duration(){return Z()},get timeCodes(){return ut}}),b(Oo,_o)};M(ao,Oo=>{n(Fr)&&Oo(ki)})}b(Xe,Jt)},$$slots:{default:!0}}),S(Cn),it(Cn,Xe=>Zt.bottomLeft=Xe,()=>Zt==null?void 0:Zt.bottomLeft);var Ji=A(Cn,2),Tn=C(Ji);{var In=Xe=>{ko(Xe,{get ref(){return _t.volume},set ref(pt){_t.volume=pt},children:(pt,Jt)=>{hp(pt,{get muted(){return n(en)},click:Ur})},$$slots:{default:!0}})};M(Tn,Xe=>{n(Un)&&Xe(In)})}var nn=A(Tn,2);{var ws=Xe=>{ko(Xe,{get ref(){return _t.settings},set ref(pt){_t.settings=pt},children:(pt,Jt)=>{ed(pt,{get ref$(){return yn}})},$$slots:{default:!0}})};M(nn,Xe=>{n(Or)&&Xe(ws)})}var Wr=A(nn,2);{var Ss=Xe=>{ko(Xe,{get ref(){return _t.fullscreen},set ref(pt){_t.fullscreen=pt},children:(pt,Jt)=>{cc(pt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Ie()}})},$$slots:{default:!0}})};M(Wr,Xe=>{n(ir)&&Xe(Ss)})}S(Ji),it(Ji,Xe=>Zt.bottomRight=Xe,()=>Zt==null?void 0:Zt.bottomRight),S(Sn),it(Sn,Xe=>fe(Xe),()=>fe());var Ui=A(Sn,2);let Cs=m(()=>!e.showControls);tl(Ui,{get isHidden(){return n(Cs)},get isAds(){return ce()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return W()},get ref(){return _t.timeline},set ref(Xe){_t.timeline=Xe}}),S(Ro),it(Ro,Xe=>Zt.bottom=Xe,()=>Zt==null?void 0:Zt.bottom),S(Ti),it(Ti,Xe=>O(Xe),()=>O());var as=A(Ti,2);{var wr=Xe=>{$c(Xe,{get ref(){return _t.interactiveTimeIndicator},set ref(pt){_t.interactiveTimeIndicator=pt}})};M(as,Xe=>{oi&&Xe(wr)})}N((Xe,pt)=>{wo=oe(Ti,1,"wrapper-bottom mobile s-y",null,wo,Xe),Qe(Ti,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),so=oe(Ro,1,"controls-wrapper s-y",null,so,pt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:Ie()})]),b(t,yr),F(),o()}et(["click"]);function Ec(t,e){B(e,!0);let[i,o]=Oe(),r=()=>w(I,"$isMobile",i),a=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),s=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),f=g(e,"showAutoplayNext",3,!1),p=g(e,"isOneVideoPlaylist",3,!1),v=g(e,"customFullscreenSupported",3,!0),_=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,$v.noop),$=g(e,"onDisabledSeekToInteractiveClick",3,$v.noop),I=ye().ui.isMobile,T=K(!1);Lt(()=>{let E=setTimeout(()=>D(T,!0),0);return()=>clearTimeout(E)});var R=Ve(),k=le(R);{var P=E=>{var W=Ve(),H=le(W);{var U=se=>{bv(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},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 p()},get customFullscreenSupported(){return v()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return $()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(te){l(te)},get playerControlsRef(){return d()},set playerControlsRef(te){d(te)}})},G=se=>{pv(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return v()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(te){l(te)},get playerControlsRef(){return d()},set playerControlsRef(te){d(te)}})};M(H,se=>{r()?se(U):se(G,!1)})}b(E,W)};M(k,E=>{n(T)&&E(P)})}b(t,R),F(),o()}var bw=Ae('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Pc(t,e){B(e,!0);let i=m(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=m(()=>`${fn(e.size)}${n(i)}`);je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=bw();b(r,l)},$$slots:{default:!0}}),F()}var $w=Ae('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function yv(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=m(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=m(()=>`seek-icon-${i()?"backward":"forward"}`);je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=$w();b(a,d)},$$slots:{default:!0}}),F()}var yw=L('<span class="hot-key-helpers-text s-1f"> </span>'),xw=L('<div data-testid="hotkey-helper-icon" class="s-1f"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),ww=L("<div><!></div>"),Sw={hash:"s-1f",code:'.hot-key-helpers-container.s-1f{align-items:center;animation:s-1f-fadeIn ease var(--controls-transition-duration);box-sizing:border-box;display:flex;flex-direction:column;height:120px;left:calc(50% - 100px);padding-top:14px;position:absolute;top:calc(50% - 40px);width:200px;z-index:var(--hot-key-helpers-container-z-index)}.hot-key-helpers-container--left.s-1f{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-1f{left:calc(75% - 100px)}.hot-key-helpers-text.s-1f{display:-webkit-box;font-feature-settings:"clig" off,"liga" off;font-size:15px;font-style:normal;font-weight:600;letter-spacing:-.105px;-webkit-line-clamp:2;line-height:20px;margin-top:4px;max-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-shadow:0 0 5px rgba(0,0,0,.16);white-space:pre-wrap;width:100%;-webkit-box-orient:vertical}.hidden.s-1f{animation:s-1f-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-1f-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-1f-fadeOut{0%{opacity:1}to{opacity:0}}'};function xv(t,e){B(e,!0),Q(t,Sw);let[i,o]=Oe(),r=()=>w(e.data,"$data",i),a=ye(),{features:l}=Mt(),d=a.ui.t,s=m(()=>!r()),u=m(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),f=m(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=m(()=>{var I;return(I=r())==null?void 0:I.type}),v=m(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var _=ww();let y;var $=C(_);{var x=I=>{var T=xw(),R=le(T),k=C(R);{var P=fe=>{let ce=m(()=>n(p)==="BACKWARD_SEEK");yv(fe,{get reversed(){return n(ce)},shadow:!0})};M(k,fe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&fe(P)})}var E=A(k,2);{var W=fe=>{Qs(fe,{get size(){return"48"},shadow:!0})};M(E,fe=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&fe(W)})}var H=A(E,2);{var U=fe=>{On(fe,{get size(){return"48"},shadow:!0})};M(H,fe=>{n(p)==="PLAY"&&!l.playbackStatusShow&&fe(U)})}var G=A(H,2);{var se=fe=>{yc(fe,{get size(){return"48"},shadow:!0})};M(G,fe=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&fe(se)})}var te=A(G,2);{var J=fe=>{ma(fe,{get size(){return"48"},type:"off",shadow:!0})};M(te,fe=>{n(p)==="SUBTITLES_OFF"&&fe(J)})}var Y=A(te,2);{var Ie=fe=>{ma(fe,{get size(){return"48"},shadow:!0})};M(Y,fe=>{n(p)==="SUBTITLES_ON"&&fe(Ie)})}var ue=A(Y,2);{var ie=fe=>{let ce=m(()=>n(p)==="RATE_DOWN");Pc(fe,{get size(){return"48"},get reversed(){return n(ce)},testId:"rate-change-icon",shadow:!0})};M(ue,fe=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&fe(ie)})}var ge=A(ue,2);{var Pe=fe=>{let ce=m(()=>n(p)==="EPISODE_PREV");ga(fe,{get size(){return"48"},get reversed(){return n(ce)},shadow:!0})};M(ge,fe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&fe(Pe)})}var de=A(ge,2);{var Ke=fe=>{va(fe,{get size(){return"48"},volume:0,shadow:!0})};M(de,fe=>{n(p)==="MUTE"&&fe(Ke)})}var pe=A(de,2);{var me=fe=>{va(fe,{get size(){return"48"},volume:1,shadow:!0})};M(pe,fe=>{n(p)==="VOLUME"&&fe(me)})}S(R);var Z=A(R,2);{var O=fe=>{var ce=yw(),Re=C(ce,!0);S(ce),N(()=>ve(Re,n(v))),b(fe,ce)};M(Z,fe=>{n(v)&&fe(O)})}N(()=>De(R,"data-type",n(p))),b(I,T)};M($,I=>{!n(s)&&n(p)&&I(x)})}S(_),N(I=>y=oe(_,1,"hot-key-helpers-container s-1f",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),b(t,_),F(),o()}var Cw=(t,e,i,o,r,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":a();break}},Tw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Iw=L('<div tabindex="0" role="button"><div class="button-block s-p" aria-hidden="true"><div class="button-row s-p"><div class="button button-up s-p"><!></div> <div class="button button-right s-p"><!></div></div> <div class="button-row s-p"><div class="button button-left s-p"><!></div> <div class="button button-down s-p"><!></div></div></div></div>'),Ew={hash:"s-p",code:".immersive-controls.s-p{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-p{left:20px;top:50px}.button-block.s-p{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-p{display:flex;flex-direction:row;position:relative}.button.s-p{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-p svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-p svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-p svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-p svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-p svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-p:hover svg{opacity:1}"};function Ac(t,e){B(e,!0),Q(t,Ew);let i=g(e,"isShifted",3,!1),o=ye(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=q("aria_label_spherical_control");var p=Iw();let v;p.__keydown=[Cw,r,a,l,s,d],p.__keyup=[Tw,r,u];var _=C(p),y=C(_),$=C(y);$.__mousedown=a,$.__mouseup=u;var x=C($);Vr(x,{direction:"up",useBtnColor:!0}),S($);var I=A($,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Vr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var R=A(y,2),k=C(R);k.__mousedown=s,k.__mouseup=u;var P=C(k);Vr(P,{direction:"up",useBtnColor:!0}),S(k);var E=A(k,2);E.__mousedown=l,E.__mouseup=u;var W=C(E);Vr(W,{direction:"up",useBtnColor:!0}),S(E),S(R),S(_),S(p),N(H=>{v=oe(p,1,"immersive-controls s-p",null,v,H),De(p,"aria-label",f)},[()=>({"m-shifted":i()})]),ht("mouseleave",$,u),ht("mouseleave",I,u),ht("mouseleave",k,u),ht("mouseleave",E,u),b(t,p),F()}et(["keydown","keyup","mousedown","mouseup"]);var Gs=require("@vkontakte/videoplayer-shared/es2018");var Fb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var _p=class{constructor(){this.flickeringTimeout=Fb(1e3);this.subscriptions=new Gs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Gs.ValueSubject([]);this.captionsPrepared$=new Gs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Gs.filter)(()=>this.isEnabled()),(0,Gs.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((r,{type:a,value:l},d)=>(o&&!d||(a==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var Pw=L('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),Aw=L('<span class="caption-line s-c"><span class="caption-segment s-c"></span></span>'),kw=L('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),Lw=L('<div><span class="caption s-c"><!></span></div>'),Mw=L("<div><!></div>"),Vw={hash:"s-c",code:".subtitles-container.s-c{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-c{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-c{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-c .subtitles-caption:where(.s-c){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-c{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-c{bottom:8%}.subtitles-container.auto.s-c .subtitles-caption:where(.s-c){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-c{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-c .caption:where(.s-c){width:100%}.caption-line.s-c{display:block;text-align:center}.subtitles-container.auto.s-c .caption-line:where(.s-c){text-align:left}.caption-segment.s-c{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function nl(t,e){B(e,!0),Q(t,Vw);let[i,o]=Oe(),r=()=>w(v,"$currentSubtitle$",i),a=()=>w(y,"$isLive$",i),l=()=>w($,"$isFullscreen",i),d=()=>w(x,"$previewTrackActive",i),s=()=>w(_,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),f=ye(),p=Mt(),v=f.state.currentSubtitle$,_=f.state.isAutoSubtitleCaptionVisible$,y=f.state.isLive$,$=f.ui.isFullscreen,x=f.ui.previewTrackActive,I=m(()=>!!r().isAuto),T=m(()=>!!a()),R=m(()=>e.playerSize.width*.02),k=m(()=>u()&&!l()||n(R)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(R)),P=K(null);Fe(()=>{var te,J,Y;(te=n(P))==null||te.setIsAuto(n(I)),(J=n(P))==null||J.setIsLive(n(T)),(Y=n(P))==null||Y.setCaptions(e.captions)});let E=K(ni([[]]));Lt(()=>{D(P,new _p().subscribe(),!0);let te=n(P).captionsPrepared$.subscribe(J=>{D(E,J,!0)});return()=>{var J;(J=n(P))==null||J.destroy(),te.unsubscribe()}}),Lt(()=>{if(n(I)){let te=window.setTimeout(()=>{_.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(te)}}else _.set(!1)});let W=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var H=Mw();let U;var G=C(H);{var se=te=>{var J=Lw();let Y;var Ie=C(J),ue=C(Ie);{var ie=Pe=>{var de=Pw(),Ke=C(de),pe=C(Ke,!0);S(Ke),S(de),N(me=>{var Z;Qe(Ke,`font-size: ${(Z=n(k))!=null?Z:""}px`),ve(pe,me)},[()=>q("subtitles_auto_caption")]),b(Pe,de)},ge=(Pe,de)=>{{var Ke=me=>{var Z=Ve(),O=le(Z);yi(O,17,()=>n(E),Nd,(fe,ce)=>{var Re=Aw(),tt=C(Re);yi(tt,21,()=>n(ce),({value:ke,timeAppeared:j})=>j,(ke,j)=>{let ne=()=>n(j).value,Se=()=>n(j).timeAppeared;var Le=Ve(),We=le(Le);{var Ce=we=>{var Be=hs();N(()=>ve(Be,ne())),b(we,Be)};M(We,we=>{(!Se()||Se()<=e.position)&&we(Ce)})}b(ke,Le)}),S(tt),S(Re),N(()=>{var ke;return Qe(tt,`font-size: ${(ke=n(k))!=null?ke:""}px`)}),b(fe,Re)}),b(me,Z)},pe=me=>{var Z=Ve(),O=le(Z);yi(O,17,()=>e.captions,({value:fe})=>fe,(fe,ce)=>{let Re=()=>n(ce).value;var tt=kw(),ke=C(tt),j=C(ke,!0);S(ke),S(tt),N(()=>{var ne;Qe(ke,`font-size: ${(ne=n(k))!=null?ne:""}px`),ve(j,Re())}),b(fe,tt)}),b(me,Z)};M(Pe,me=>{var Z;n(I)&&((Z=n(E))!=null&&Z.length)?me(Ke):me(pe,!1)},de)}};M(ue,Pe=>{n(I)&&s()?Pe(ie):Pe(ge,!1)})}S(Ie),S(J),N(Pe=>{var de;Y=oe(J,1,"subtitles-caption s-c",null,Y,Pe),Qe(J,`--subtitles-caption-margin: ${(de=n(W))!=null?de:""}%`)},[()=>({mobile:u()})]),b(te,J)};M(G,te=>{var J;(e.captions.length||(J=n(E))!=null&&J.length)&&te(se)})}S(H),N(te=>U=oe(H,1,"subtitles-container s-c",null,U,te),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),b(t,H),F(),o()}var Hb=require("@vkontakte/videoplayer-core/es2018");var Rw=L('<div class="text s-r"> </div>'),Dw=L('<div><div class="icon_wrapper s-r"><!></div> <!></div>'),Nw={hash:"s-r",code:".wrapper.s-r{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center}.wrapper.bgCover.s-r{background-size:cover}.icon_wrapper.s-r{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-r{margin-top:20px}"};function kc(t,e){B(e,!0),Q(t,Nw);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Mt();var r=Dw();let a;r.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},r.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)},r.__dblclick=function(...f){var p;(p=e.onDblClick)==null||p.apply(this,f)};var l=C(r),d=C(l);pc(d,{get size(){return"48"},get iconState(){return Hb.ChromecastState.CONNECTED}}),S(l);var s=A(l,2);{var u=f=>{var p=Rw(),v=C(p);S(p),N(()=>{var _;return ve(v,`Видео воспроизводится на ${(_=i())!=null?_:""}`)}),b(f,p)};M(s,f=>{i()&&f(u)})}S(r),N(f=>{a=oe(r,1,"wrapper s-r",null,a,f),Qe(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),b(t,r),F()}et(["contextmenu","click","dblclick"]);var Ow=Ae('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 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.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function wv(t){je(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Ow();b(e,o)},$$slots:{default:!0}})}var Bw=L('<div class="container s-6"><!></div>'),Fw={hash:"s-6",code:".container.s-6{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function rl(t){Q(t,Fw);var e=Bw(),i=C(e);wv(i,{}),S(e),b(t,e)}var Hw=L('<div class="playButton s-d" tabindex="0" role="button"><div class="playButtonBackground s-d"></div> <!></div>'),Uw=L('<div data-testid="unstarted-thumb"><!></div>'),zw={hash:"s-d",code:".container.s-d{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-d{opacity:0;visibility:hidden}.container.bgCover.s-d{background-size:cover}.playButton.s-d{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-d,.playButtonBackground.s-d{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-d{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-d:hover .playButtonBackground:where(.s-d){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-d svg{position:relative}"};function sl(t,e){B(e,!0),Q(t,zw);let i=g(e,"iconVisible",3,!0),o=ye(),r=Mt(),a=o.ui.startedByKeyboard$,l=q("tooltip_play"),d=_=>{var $;let y=_.code;["Enter","Space"].includes(y)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),($=e.startVideo)==null||$.call(e))},s=_=>{var y,$;_.stopPropagation(),(y=e.startVideo)==null||y.call(e),($=e.onClick)==null||$.call(e,_)};var u=Uw();let f;u.__click=s,u.__contextmenu=function(..._){var y;(y=e.onContextMenu)==null||y.apply(this,_)};var p=C(u);{var v=_=>{var y=Hw();y.__keydown=d;var $=A(C(y),2);On($,{get size(){return"48"}}),S(y),N(()=>De(y,"aria-label",l)),b(_,y)};M(p,_=>{i()&&_(v)})}return S(u),N(_=>{f=oe(u,1,"container s-d",null,f,_),Qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),F({handlePressKey:d,handleClick:s})}et(["click","contextmenu","keydown"]);var Ww=L('<span class="text s-1e"> </span>'),Kw=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},Qw=L('<a target="_blank" class="link s-1e"><!></a>'),qw=(t,e)=>e.onTitleClicked(),Gw=L("<button><!></button>"),Yw=L('<div data-testid="video_title"><!></div>'),jw={hash:"s-1e",code:".title.s-1e{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity;z-index:var(--controls-container-z-index)}.link.s-1e,.title.s-1e{color:var(--white)}.link.s-1e{pointer-events:auto;text-decoration:none}.link.s-1e:hover{text-decoration:underline}.text.s-1e{pointer-events:auto}.size-sm.s-1e{font-size:14px;font-weight:500;line-height:18px}.hidden.s-1e{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function Sv(t,e){B(e,!0),Q(t,jw);let i=_=>{var y=Ww(),$=C(y,!0);S(y),it(y,x=>l(x),()=>l()),N(()=>ve($,o())),ht("mouseenter",y,function(...x){var I;(I=e.onMouseEnter)==null||I.apply(this,x)}),ht("mouseleave",y,function(...x){var I;(I=e.onMouseLeave)==null||I.apply(this,x)}),b(_,y)},o=g(e,"title",3,""),r=g(e,"isHidden",3,!1),a=g(e,"size",3,"md"),l=g(e,"ref",15),d=K(void 0);Lt(()=>{var y;requestAnimationFrame(()=>{var $;($=e.onVisibilityChanged)==null||$.call(e,!0)});function _($){var x;$.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",_),()=>{var $;return($=n(d))==null?void 0:$.removeEventListener("transitionend",_)}});var s=Yw();let u;var f=C(s);{var p=_=>{var y=Qw();y.__click=[Kw,e];var $=C(y);i($),S(y),N(()=>De(y,"href",e.titleLinkHref)),b(_,y)},v=(_,y)=>{{var $=I=>{var T=Gw();T.__click=[qw,e];var R=C(T);i(R),S(T),b(I,T)},x=I=>{i(I)};M(_,I=>{e.onTitleClicked?I($):I(x,!1)},y)}};M(f,_=>{e.titleLinkHref?_(p):_(v,!1)})}S(s),it(s,_=>D(d,_),()=>n(d)),N(_=>u=oe(s,1,`title size-${a()}`,"s-1e",u,_),[()=>({hidden:r()})]),b(t,s),F()}et(["click"]);var Ub=require("@vkontakte/videoplayer-shared/es2018");var Xw=L('<div class="timer__cell cell s-w"><span class="cell__value s-w"> </span> <span class="cell__unit s-w"> </span></div> <span class="timer__points s-w"> </span>',1),Zw=L('<div class="timer__cell cell s-w"><span class="cell__value s-w"> </span> <span class="cell__unit s-w"> </span></div> <span class="timer__points s-w"> </span>',1),Jw=L('<div class="timer__cell cell s-w"><span class="cell__value s-w"> </span> <span class="cell__unit s-w"> </span></div> <span class="timer__points s-w"> </span>',1),eS=L('<div class="timer__cell cell s-w"><span class="cell__value s-w"> </span> <span class="cell__unit s-w"> </span></div>'),tS=L("<div><!> <!> <!> <!></div>"),iS={hash:"s-w",code:".timer__container.s-w{align-items:flex-start;display:flex;justify-content:center}.cell.s-w{align-items:center;display:flex;flex-direction:column}.cell__value.s-w{font-size:48px;font-weight:600;line-height:1.2}.small.s-w .cell__value:where(.s-w){font-size:24px}.cell__unit.s-w{font-size:14px;font-weight:400;line-height:1.2}.small.s-w .cell__unit:where(.s-w){font-size:12px}.timer__points.s-w{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-w .timer__points:where(.s-w){font-size:20px}"};function Cv(t,e){B(e,!0),Q(t,iS);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),p=H=>`${(e.isSmallSize?s:d)*f(H)}px`,v=H=>{let U=Math.floor(H/86400);U&&(H-=U*86400,D(i,u(U),!0));let G=Math.floor(H/3600);D(o,u(G),!0);let se=Math.floor(H/60)%60;D(r,u(se),!0);let te=H%60;D(a,u(te),!0)},_=()=>{let H=Math.floor(Date.now()/1e3),U=e.startTime-H;v(U),U>=1?l=requestAnimationFrame(_):e.onTimerOver()};Lt(()=>{l=requestAnimationFrame(_)}),pn(()=>{cancelAnimationFrame(l)});var y=tS();let $;var x=C(y);{var I=H=>{var U=Xw(),G=le(U);let se;var te=C(G),J=C(te,!0);S(te);var Y=A(te,2),Ie=C(Y,!0);S(Y),S(G);var ue=A(G,2),ie=C(ue,!0);S(ue),N((ge,Pe,de)=>{se=Qe(G,"",se,{width:ge}),ve(J,n(i)),ve(Ie,Pe),ve(ie,de)},[()=>p(n(i)),()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),b(H,U)};M(x,H=>{n(i)&&H(I)})}var T=A(x,2);{var R=H=>{var U=Zw(),G=le(U);let se;var te=C(G),J=C(te,!0);S(te);var Y=A(te,2),Ie=C(Y,!0);S(Y),S(G);var ue=A(G,2),ie=C(ue,!0);S(ue),N((ge,Pe,de)=>{se=Qe(G,"",se,{width:ge}),ve(J,n(o)),ve(Ie,Pe),ve(ie,de)},[()=>p(n(o)),()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),b(H,U)};M(T,H=>{n(o)&&H(R)})}var k=A(T,2);{var P=H=>{var U=Jw(),G=le(U);let se;var te=C(G),J=C(te,!0);S(te);var Y=A(te,2),Ie=C(Y,!0);S(Y),S(G);var ue=A(G,2),ie=C(ue,!0);S(ue),N((ge,Pe,de)=>{se=Qe(G,"",se,{width:ge}),ve(J,n(r)),ve(Ie,Pe),ve(ie,de)},[()=>p(n(r)),()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),b(H,U)};M(k,H=>{n(r)&&H(P)})}var E=A(k,2);{var W=H=>{var U=eS();let G;var se=C(U),te=C(se,!0);S(se);var J=A(se,2),Y=C(J,!0);S(J),S(U),N((Ie,ue)=>{G=Qe(U,"",G,{width:Ie}),ve(te,n(a)),ve(Y,ue)},[()=>p(n(a)),()=>q("waiting_live_second_value")]),b(H,U)};M(E,H=>{n(a)&&H(W)})}S(y),N(H=>$=oe(y,1,"timer__container s-w",null,$,H),[()=>({small:e.isSmallSize})]),b(t,y),F()}var oS=L('<div class="waiting s-l"><span> </span></div>'),nS=L('<div class="upcoming-timer timer s-l"><span> </span> <!></div>'),rS=L('<div class="waiting-container s-l"><!></div>'),sS={hash:"s-l",code:'.waiting-container.s-l{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-l,.waiting-container.s-l:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-l:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-l{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-l{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-l{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-l{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-l{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-l{font-size:15px}.medium.s-l{font-size:17px}'};function Lc(t,e){B(e,!0),Q(t,sS);let i=g(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),a=K(void 0),l=0,d=K(void 0),s=K(void 0),u=m(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),f=m(()=>{var x,I;return!n(u)&&(((x=n(d))!=null?x:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,Ub.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;Fe(()=>{n(s),n(d),n(o),p==null||p()}),pn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var v=rS();v.__contextmenu=function(...x){var I;(I=e.onContextMenu)==null||I.apply(this,x)},v.__click=function(...x){var I;(I=e.onClick)==null||I.apply(this,x)};var _=C(v);{var y=x=>{var I=oS(),T=C(I);let R;var k=C(T,!0);S(T),S(I),it(I,P=>D(r,P),()=>n(r)),N((P,E)=>{R=oe(T,1,"waiting__title s-l",null,R,P),ve(k,E)},[()=>({medium:n(f),small:n(u)}),()=>q("waiting_live_upcoming_title")]),b(x,I)},$=x=>{var I=nS(),T=C(I);let R;var k=C(T,!0);S(T);var P=A(T,2);let E=m(()=>n(u)||n(f)),W=m(()=>i()||0);Cv(P,{get isSmallSize(){return n(E)},get startTime(){return n(W)},onTimerOver:()=>D(o,!0)}),S(I),it(I,H=>D(a,H),()=>n(a)),N((H,U)=>{R=oe(T,1,"timer__title s-l",null,R,H),ve(k,U)},[()=>({medium:n(f),small:n(u)}),()=>q("waiting_live_timer_title")]),b(x,I)};M(_,x=>{n(o)?x(y):x($,!1)})}S(v),N(()=>Qe(v,`background-image: url(${e.thumbUrl})`)),Dn(v,"clientWidth",x=>D(d,x)),Dn(v,"clientHeight",x=>D(s,x)),b(t,v),F()}et(["contextmenu","click"]);var aS=L('<div class="waiting-container s-o"><div class="waiting-caption s-o"><!> <p class="waiting-title s-o"> </p></div></div>'),lS={hash:"s-o",code:'.waiting-container.s-o{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-o,.waiting-container.s-o:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-o:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-o{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-o{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function al(t,e){B(e,!0),Q(t,lS);let i=g(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},r=m(()=>o[e.kind]||"");var a=aS();a.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},a.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)};var l=C(a),d=C(l);Qa(d,{style:"position: static; transform: translate(0, 0)"});var s=A(d,2),u=C(s,!0);S(s),S(l),S(a),N(()=>{Qe(a,`background-image: url('${i()}')`),ve(u,n(r))}),b(t,a),F()}et(["contextmenu","click"]);var dS=Ae('<path 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>');function Tv(t){je(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=dS();b(e,o)},$$slots:{default:!0}})}var cS=L('<div class="select-icon s-1w"><!></div>'),uS={hash:"s-1w",code:".select-icon.s-1w{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Mc(t){Q(t,uS);var e=cS(),i=C(e);Tv(i,{}),S(e),b(t,e)}var pS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},fS=(t,e)=>{jl(t,()=>e.item.selectItem(e.item.value))},mS=L("<p> </p>"),vS=L('<p class="sublabel s-1r"> </p>'),gS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),hS={hash:"s-1r",code:".menu-item-value.s-1r{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1r{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1r,.sublabel.s-1r{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1r{opacity:.5}"};function Iv(t,e){B(e,!0),Q(t,hS);let i=g(e,"isMobile",3,!1);var o=gS();let r;o.__click=[pS,e],o.__keydown=[fS,e];var a=C(o);{var l=y=>{Mc(y,{})};M(a,y=>{e.item.selected&&y(l)})}var d=A(a,2);let s;var u=C(d);{var f=y=>{var $=Ve(),x=le($);Fi(x,()=>e.item.valueComponent,(I,T)=>{T(I,es(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),b(y,$)},p=y=>{var $=mS();let x;var I=C($,!0);S($),N(T=>{var R;x=oe($,1,"label s-1r",null,x,T),ve(I,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),b(y,$)};M(u,y=>{e.item.valueComponent?y(f):y(p,!1)})}var v=A(u,2);{var _=y=>{var $=vS(),x=C($,!0);S($),N(()=>ve(x,e.item.sublabel)),b(y,$)};M(v,y=>{e.item.sublabel&&y(_)})}S(d),S(o),N((y,$,x)=>{var I;r=oe(o,1,"item",null,r,y),De(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),De(o,"aria-label",$),De(o,"data-testid",e.item.dataTestid),s=oe(d,1,"menu-item-value s-1r",null,s,x),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,$;return($=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?$:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),F()}et(["click","keydown"]);var _S=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Ev(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>$=>Gu($,n(r)));var l=_S();let d;l.__click=function(...$){var x;(x=n(r))==null||x.apply(this,$)},l.__keydown=function(...$){var x;(x=n(a))==null||x.apply(this,$)};var s=C(l);{var u=$=>{Mc($,{})};M(s,$=>{e.item.selected&&$(u)})}var f=A(s,2);let p;var v=C(f);{var _=$=>{var x=Ve();let I=m(()=>e.item.valueComponent);var T=le(x);Fi(T,()=>n(I),(R,k)=>{k(R,es(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b($,x)},y=$=>{var x=hs();N(()=>ve(x,e.item.label)),b($,x)};M(v,$=>{e.item.valueComponent?$(_):$(y,!1)})}S(f),S(l),it(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),N(($,x)=>{var I;d=oe(l,1,"item",null,d,$),De(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),De(l,"data-testid",e.item.id),p=oe(f,1,"menu-item-value",null,p,x)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),F()}et(["click","keydown"]);var ns={"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 $S=(t,e)=>{ib(t,e.returnFromSubMenu,e.closeSettingsMenu)},yS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},xS=(t,e)=>{tc(t)&&(Rr(t),e.returnFromSubMenu())},wS=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1h"> </p></li> <!></ul></div>'),SS={hash:"s-1h",code:".sub-menu.s-1h{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1h .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1h{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1h{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1h .items:where(.s-1h) .item.header:where(.s-1h){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1h .title:where(.s-1h){margin-left:8px}.sub-menu.s-1h .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1h .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1h .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1h .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1h .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1h .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1h .item .sublabel{font-size:12px;line-height:14px}.item.s-1h:not(.mobile) p:where(.s-1h),.sub-menu.s-1h .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Av(t,e){B(e,!0),Q(t,SS);let[i,o]=Oe(),r=()=>w(p,"$isFullscreen",i),a=()=>w(v,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),s=g(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),u=g(e,"listRef",15);Lt(()=>{let te=e.items.findIndex(J=>J.selected);u().children[te+1].focus()});let f=ye(),p=f.ui.isFullscreen,v=f.ui.playerSize,_=K(void 0),y=K(0),$=K(0),x=m(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n($)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,n(y)));var T=wS();let R;var k=C(T);let P;k.__keydown=[$S,e];var E=C(k);let W;E.__click=[yS,e],E.__keydown=[xS,e];var H=C(E);Vr(H,{direction:"left"});var U=A(H,2),G=C(U,!0);S(U),S(E),it(E,te=>D(_,te),()=>n(_));var se=A(E,2);yi(se,17,()=>e.items,Nd,(te,J)=>{var Y=Ve(),Ie=le(Y);{var ue=ge=>{Iv(ge,{get item(){return n(J)},get isMobile(){return l()}})},ie=(ge,Pe)=>{{var de=Ke=>{Ev(Ke,{get isMobile(){return l()},get item(){return n(J)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};M(ge,Ke=>{n(J).type==="OPEN_SUB_MENU"&&Ke(de)},Pe)}};M(Ie,ge=>{n(J).type==="SELECT_VALUE"?ge(ue):ge(ie,!1)})}b(te,Y)}),S(k),it(k,te=>u(te),()=>u()),S(T),N((te,J,Y)=>{R=oe(T,1,"sub-menu menu s-1h",null,R,te),De(T,"data-testid",`${e.id}-sub-menu`),Qe(T,`min-width: ${n(I)}px`),P=oe(k,1,"items s-1h",null,P,J),Qe(k,n(x)),W=oe(E,1,"item header back s-1h",null,W,Y),De(E,"aria-label",s()),ve(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Dn(E,"clientWidth",te=>D(y,te)),Dn(E,"clientHeight",te=>D($,te)),b(t,T),F(),o()}et(["keydown","click"]);var Wb=require("@vkontakte/videoplayer-shared/es2018");var CS=(t,e)=>Gu(t,e()),TS=(t,e)=>{t.stopPropagation(),e()()},IS=L('<div class="value s-1j"> </div>'),ES=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),PS={hash:"s-1j",code:".value.s-1j{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function kv(t,e){B(e,!0),Q(t,PS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Wb.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"iconProps",19,()=>({})),l=g(e,"ref",15);var d=ES();let s;d.__click=[TS,o],d.__keydown=[CS,o];var u=C(d),f=C(u);{var p=T=>{el(T,{get icon(){return e.icon}})},v=T=>{var R=Ve();let k=m(()=>e.icon);var P=le(R);Fi(P,()=>n(k),(E,W)=>{W(E,es(a))}),b(T,R)};M(f,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var _=A(u,2),y=C(_,!0);S(_);var $=A(_,2);{var x=T=>{var R=Ve();let k=m(r);var P=le(R);Fi(P,()=>n(k),(E,W)=>{W(E,{})}),b(T,R)},I=T=>{var R=IS(),k=C(R,!0);S(R),N(()=>ve(k,e.value)),b(T,R)};M($,T=>{r()?T(x):T(I,!1)})}S(d),it(d,T=>l(T),()=>l()),N(T=>{s=oe(d,1,"item",null,s,T),De(d,"aria-label",e.ariaLabel),De(d,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,d),F()}et(["click","keydown"]);var Lv=require("@vkontakte/videoplayer-shared/es2018");var AS=(t,e)=>{jl(t,()=>e())},kS=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),LS=L('<img class="icon" aria-hidden="true"/>'),MS=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1i"> </div></li>'),VS={hash:"s-1i",code:".label.s-1i{overflow:hidden;text-overflow:ellipsis}"};function Mv(t,e){B(e,!0),Q(t,VS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Lv.noop),r=g(e,"closeSettings",3,Lv.noop),a=K(!1),l=()=>{D(a,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var s=MS();let u;s.__click=d,s.__keydown=[AS,d];var f=C(s),p=C(f);{var v=x=>{var I=Ve(),T=le(I);{var R=P=>{var E=kS();b(P,E)},k=P=>{var E=LS();N(()=>De(E,"src",e.icon)),ht("error",E,l),Da(E),b(P,E)};M(T,P=>{n(a)?P(R):P(k,!1)})}b(x,I)},_=x=>{var I=Ve();let T=m(()=>e.icon);var R=le(I);Fi(R,()=>n(T),(k,P)=>{P(k,{})}),b(x,I)};M(p,x=>{typeof e.icon=="string"?x(v):x(_,!1)})}S(f);var y=A(f,2),$=C(y,!0);S(y),S(s),N(x=>{var I;u=oe(s,1,"item",null,u,x),De(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),De(s,"data-testid",e.id),ve($,e.label)},[()=>({mobile:i()})]),b(t,s),F()}et(["click","keydown"]);var Kb=require("@vkontakte/videoplayer-shared/es2018");var RS=L('<div class="toggle_wrap s-1o"><div></div> <div class="toggle-label s-1o"></div></div>'),DS={hash:"s-1o",code:'.toggle_wrap.s-1o{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1o{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1o:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1o:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1o{overflow:hidden}'};function Vv(t,e){Q(t,DS);let i=g(e,"enabled",3,!1);var o=RS(),r=C(o);let a;ei(2),S(o),N(l=>a=oe(r,1,"toggle s-1o",null,a,l),[()=>({on:i()})]),b(t,o)}var NS=(t,e,i)=>{ob(t,e(),o=>i()(o))},OS=(t,e,i)=>{t.stopPropagation(),e()(!i())},BS=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),FS=L('<li role="menuitem" tabindex="0"><!></li>');function Rv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Kb.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=FS();let s;d.__click=[OS,o,r],d.__keydown=[NS,r,o];var u=C(d);Ga(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,p)=>{var v=BS();let _;var y=C(v),$=C(y);{var x=P=>{el(P,{get icon(){return e.icon}})},I=P=>{var E=Ve();let W=m(()=>e.icon);var H=le(E);Fi(H,()=>n(W),(U,G)=>{G(U,{})}),b(P,E)};M($,P=>{typeof e.icon=="string"?P(x):P(I,!1)})}S(y);var T=A(y,2),R=C(T,!0);S(T);var k=A(T,2);Vv(k,{get enabled(){return r()}}),S(v),N(P=>{_=oe(v,1,"switch-wrapper",null,_,P),ve(R,e.label)},[()=>({mobile:i()})]),b(f,v)},$$slots:{default:!0}}),S(d),N(f=>{var p;s=oe(d,1,"item switch-item",null,s,f),De(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}et(["click","keydown"]);var Rc=require("@vkontakte/videoplayer-shared/es2018");var Qb=()=>{let t=K(ni([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{D(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{D(t,[],!0)}}};var qb=require("@vkontakte/videoplayer-shared/es2018");var HS=L('<div class="quality-icon s-1m"><!></div>'),US=L('<div class="quality-label s-1m"><span> </span> <!></div>'),zS={hash:"s-1m",code:".quality-label.s-1m{position:relative}.quality.s-1m{font-size:13px;line-height:18px}.quality.sub.s-1m{opacity:.7}.quality-icon.s-1m{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1m svg{color:var(--blue-light)}"};function ll(t,e){B(e,!0),Q(t,zS);let i=g(e,"isSubCase",3,!1),o=m(()=>e.quality?(0,qb.getVideoQualityLabel)(e.quality):""),r=m(()=>ep(e.quality));var a=US(),l=C(a);let d;var s=C(l,!0);S(l);var u=A(l,2);{var f=p=>{var v=HS();let _=m(()=>n(r));var y=C(v);Fi(y,()=>n(_),($,x)=>{x($,{})}),S(v),N(()=>De(v,"data-testid",`${n(o)}-icon`)),b(p,v)};M(u,p=>{n(r)&&!e.isMobile&&p(f)})}S(a),N(p=>{d=oe(l,1,"s-1m",null,d,p),ve(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,a),F()}var Xb=require("@vkontakte/videoplayer-shared/es2018");var Dv=require("@vkontakte/videoplayer-core/es2018");var Gb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Yb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Gb({quality:t,availableQualities:e});return i?t===Dv.VideoQuality.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},jb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Dv.VideoQuality.INVARIANT?i:`${i}${Gb({quality:t,availableQualities:e})}`:"...";var WS=L('<div class="menu-item-value-wrapper s-1p"><!></div>'),KS={hash:"s-1p",code:".menu-item-value-wrapper.s-1p{line-height:normal}"};function ld(t,e){B(e,!0),Q(t,KS);let[i,o]=Oe(),r=()=>w(s,"$currentQuality$",i),a=()=>w(u,"$availableQualities$",i),l=()=>w(f,"$isMobile$",i),d=ye(),s=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,p=" · ",v=m(()=>e.prefix+(e.selected&&r()!==Xb.VideoQuality.INVARIANT?p:"")),_=m(()=>jb({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=WS(),$=C(y);let x=m(()=>e.selected?r():void 0);ll($,{get quality(){return n(x)},get label(){return n(_)},get isMobile(){return l()},isSubCase:!0}),S(y),b(t,y),F(),o()}var QS=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${a}`,"g")},qS={br:!0,span:!0},Nv=(t,e={})=>{var d,s,u,f,p,v,_;if(!t)return t;let i={...qS,...e},o=Object.keys(i);if(!o.length)return t;let r=QS(o),a=[],l=0;for(let y of t.matchAll(r)){let $=y[0],x=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((f=y.groups)==null?void 0:f.keyi18nself)||"",{index:I}=y;if(!i[x]){a.push(t.slice(l,I)),l=I+$.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Nv(y.groups.childrenhtml,i):"",R=(v=y.groups)!=null&&v.childrenhtml?$.replace(new RegExp((_=y.groups)==null?void 0:_.childrenhtml),()=>T||""):$;a.push(t.slice(l,I),R),l=I+$.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Vc(t,e){B(e,!1);let i=g(e,"message",8),o=Nv(i());Xo();var r=Ve(),a=le(r);{var l=d=>{var s=Ve(),u=le(s);Od(u,()=>o),b(d,s)};M(a,d=>{o&&d(l)})}b(t,r),F()}var GS=L('<p class="quality-applies sublabel s-1q"><!></p>'),YS={hash:"s-1q",code:".quality-applies.s-1q{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Ov(t,e){B(e,!1),Q(t,YS),Xo();var i=GS(),o=C(i);let r=mr(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));Vc(o,{get message(){return n(r)}}),S(i),b(t,i),F()}var Jb=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:q("other_quality"),selected:o,valueComponent:ld,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"quality-other-settings"}},Bv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?ld:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),e$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Ov,bottomBordered:!0,children:"quality-appliance"}),Fv=({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?ld:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),Hv=({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?ld:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var bp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),$p=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=vc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:r,label:o});{let s=bp(t,d);return q("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=bp(t,d);return q("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=bp(t,d);return q("audio_stream_display_language_index",{language:r,index:s})}}let a=bp(t,e);return q("audio_stream_display_unknown",{index:a})};var jS={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Bv,selected:e&&!o&&!r||!1}),a.push({handler:Hv,selected:o},{handler:Fv,selected:r}),{title:q("submenu_quality"),id:"quality-settings",items:[e$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Jb(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:ll,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Bv,selected:((i=Hu())==null?void 0:i.type)==="auto_quality"},{handler:Hv,selected:((o=Hu())==null?void 0:o.type)==="traffic_saving"},{handler:Fv,selected:((r=Hu())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-tracks":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-tracks",title:q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:$p(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",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===Fn?"sub_off":void 0}))})},t$=({subMenuId:t,context:e})=>t?[jS[t](e)]:[];var XS=Ae('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Uv(t){je(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=XS();b(e,o)},$$slots:{default:!0}})}var ZS=Ae('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function zv(t){je(t,{width:"18",height:"15",children:(e,i)=>{var o=ZS();b(e,o)},$$slots:{default:!0}})}var JS=Ae('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 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.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function Wv(t){je(t,{testId:"play-speed-icon",children:(e,i)=>{var o=JS();b(e,o)},$$slots:{default:!0}})}var eC=Ae('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function Kv(t){je(t,{testId:"download-icon",children:(e,i)=>{var o=eC();b(e,o)},$$slots:{default:!0}})}var tC=Ae('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 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"></path>');function Qv(t){je(t,{testId:"report-icon",children:(e,i)=>{var o=tC();b(e,o)},$$slots:{default:!0}})}var iC=Ae('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function yp(t){je(t,{children:(e,i)=>{var o=iC();b(e,o)},$$slots:{default:!0}})}var oC=Ae('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function qv(t){je(t,{testId:"info-icon",children:(e,i)=>{var o=oC();b(e,o)},$$slots:{default:!0}})}var nC=L('<div class="menu-item-value-wrapper s-1v"><!></div>'),rC={hash:"s-1v",code:".menu-item-value-wrapper.s-1v{line-height:normal}"};function Gv(t,e){B(e,!0),Q(t,rC);let[i,o]=Oe(),r=()=>w(u,"$currentQuality$",i),a=()=>w(f,"$availableQualities$",i),l=()=>w(p,"$isAutoQualityEnabled$",i),d=()=>w(v,"$isMobile$",i),s=ye(),u=s.state.currentQuality$,f=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,_=m(()=>Yb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=nC(),$=C(y);ll($,{get quality(){return r()},get label(){return n(_)},get isMobile(){return d()}}),S(y),b(t,y),F(),o()}var aC={"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:sc,label:q("menu_quality"),value:e,valueComponent:Gv,weight:ns["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:ns["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:Uv,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=$p(t,e);return{id:"audio-tracks-settings",weight:ns["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:zv,label:q("menu_audio_languages"),value:i,children:"audio-tracks"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:ns["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:Wv,label:q("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:ns["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ma,iconProps:{type:"outline"},label:q("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:ns.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:Kv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:ns.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:Qv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:ns["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:yp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:ns["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:yp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:ns["debug-info"],type:"CLICK",onClick:t,ariaLabel:q("aria_label_menu_debug_overlay"),label:q("menu_debug_overlay"),icon:qv,isHiddenFor:["desktop"]})},i$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>aC[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Wa)};var dC=(t,e)=>{qu(t,e)},cC=L('<div><div> </div> <div class="close s-s" data-testid="close-settings-menu"></div></div>'),uC=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),pC=L("<div><!> <!></div>"),fC={hash:"s-s",code:'.settings-menu-container.mobile.s-s{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-s ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-s .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-s .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-s .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-s .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-s .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-s .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-s{line-height:40px}.settings-menu.desktop.s-s{min-width:300px}.settings-menu-container.s-s .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-s .menu.mobile.hidden{display:none}.settings-menu-container.s-s .menu .item:not(.switch-item),.settings-menu-container.s-s .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;position:relative;white-space:nowrap}.settings-menu-container.s-s .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-s .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-s .item:not(.switch-item),.settings-menu.s-s .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-s .item.mobile:not(.switch-item),.settings-menu.s-s .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-s .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-s .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-s .item.header.mobile:where(.s-s){border-bottom:var(--divider-border);color:var(--white);column-gap:12px;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:4px}.settings-menu-container.s-s .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-s .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-s .items::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.settings-menu-container.s-s .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-s .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-s{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-s:after,.close.s-s:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-s:before{transform:rotate(45deg)}.close.s-s:after{transform:rotate(-45deg)}'};function Dc(t,e){B(e,!0),Q(t,fC);let[i,o]=Oe(),r=()=>w(tt,"$settingsMenuVisible",i),a=()=>w(ke,"$settingsMenuOpenedByKeyboard",i),l=()=>w(Be,"$debugPanelVisible",i),d=()=>w(ne,"$isMobile",i),s=()=>w(we,"$playerSize",i),u=()=>w(Re,"$hasMpegSources$",i),f=()=>w(Se,"$mobileNotReportControlHidden$",i),p=()=>w(de,"$autoQualityLimitingAvailable$",i),v=()=>w(fe,"$availableSubtitlesList$",i),_=()=>w(Le,"$isLiveWithPlaybackSpeed",i),y=()=>w(ie,"$availableAudioStreams$",i),$=()=>w(Z,"$availablePlaybackRates$",i),x=()=>w(ue,"$currentAudioStream$",i),I=()=>w(me,"$currentPlaybackRate$",i),T=()=>w(We,"$trafficSavingEnabled",i),R=()=>w(ge,"$currentQuality$",i),k=()=>w(Ke,"$isAutoQualityEnabled$",i),P=()=>w(O,"$currentSubtitle$",i),E=()=>w(mt,"$additionalSettingsMenuItems$",i),W=()=>w(pe,"$isAutoQualityAvailable$",i),H=()=>w(Pe,"$availableQualities$",i),U=()=>w(Ce,"$highQualityEnabled",i),G=g(e,"ref",15,void 0),se=g(e,"playerControlsHeight",3,0),te=ni({}),J=ni({}),Y=ye(),Ie=Mt(),ue=Y.state.audioStream$,ie=Y.state.availableAudioStreams$,ge=Y.state.currentQuality$,Pe=Y.state.availableQualities$,de=Y.state.autoQualityLimitingAvailable$,Ke=Y.state.isAutoQualityEnabled$,pe=Y.state.isAutoQualityAvailable$,me=Y.state.currentPlaybackRate$,Z=Y.state.availablePlaybackRates$,O=Y.state.currentSubtitle$,fe=Y.state.availableSubtitlesList$,ce=Y.state.canDownload,Re=Y.state.hasMpegSources$,tt=Y.ui.settingsMenu.visible$,ke=Y.ui.settingsMenu.openedByBtnKeyboard$,j=Y.ui.settingsMenu.ref$,ne=Y.ui.isMobile,Se=Y.ui.mobileNotReportControlHidden$,Le=Y.state.canChangePlaybackSpeed$,We=Y.state.trafficSavingEnabled$,Ce=Y.state.highQualityEnabled$,we=Y.ui.playerSize,Be=Y.ui.debugPanelVisible,rt=Y.state.isInteractiveTime$,mt=Y.ui.additionalSettingsMenuItems$,Vt=Y.ui.t,lt=Y.actions.internal.downloadVideo,jt=Y.actions.internal.closeSettingsMenu,St=Y.actions.internal.openSettingsSubMenu,Ut=Y.actions.internal.closeSettingsSubMenu,Rt=K(!1),zt=K(void 0),xe=Qb();Fe(()=>{!r()&&xe.current&&(Ut(J[xe.current]),xe.popAllSubMenus())}),Fe(()=>{r()||D(zt,void 0)}),Fe(()=>{!xe.current&&n(zt)&&tb(te,n(zt))}),Fe(()=>{G()&&j.set(G())});async function X(Tt){var z;xe.pushSubMenu(Tt),await vo(),St(Tt,J[Tt]);let Nt=(z=G())==null?void 0:z.firstElementChild;Nt&&am(Nt)}function Ne(Tt){var Nt;Tt==null||Tt.stopPropagation(),a()||(Nt=e.returnFocus)==null||Nt.call(e),jt(),D(Rt,!1)}function be(Tt,Nt){Y.actions.internal.setQuality(Tt,{appliesTo:Nt,byUser:!0}),Ne()}function Ue(Tt){Y.actions.internal.setAudioStream(Tt),Ne()}function Te(Tt,Nt){Y.actions.internal.setTrafficSavingEnabled(Tt,Nt),Ie.features.qualityDetailsSubMenuEnabled&&Ne()}function $t(Tt,Nt){Y.actions.internal.setHighQualityEnabled(Tt,Nt),Ne()}function $e(Tt){Y.actions.internal.setPlaybackRate(Tt),Ne()}function qe(Tt){Y.actions.internal.setSubtitle(Tt),Ne()}function ze(){lt()}function st(){(0,Rc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),Y.actions.internal.reportProblem(),Y.actions.internal.pause()}function Gt(){Gl(Y.actions.internal.getDebugTextData())}let Pt=()=>{let Tt=Y.actions.internal.getTraceTextData(),Nt=new Blob([...Tt],{type:"application/json"}),z=window.URL.createObjectURL(Nt);Ua(z,"vk_player_trace_info","json")};function Xt(){Be.set(!l())}function _i(){D(Rt,!0)}function Ei(){D(Rt,!1)}function Ci(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-se()}px; overflow: auto;`}let ji=m(()=>ce&&u()&&!f()),ri=m(()=>Ie.features.trafficSaving&&!f()&&p()&&!Ie.features.qualityDetailsSubMenuEnabled),ut=m(()=>v().length>0&&!f()),ci=m(()=>!!_()&&!f()),Xi=m(()=>Ie.features.audioLanguages&&y().length>=2&&!f()),It=m(()=>!f());Lt(()=>rt.subscribe(Tt=>{Tt&&!d()&&!n(Rt)&&!a()&&Ne()}));let gi=m(()=>{let Tt=[n(It)&&"quality-settings",n(Xi)&&"audio-tracks-settings",n(ci)&&"playback-rate-settings",n(ut)&&"subtitles-settings",n(ri)&&"traffic-saving-switch",n(ji)&&"download",Ie.showSupport&&"show-support","copy-data",Ie.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Nt=>!!Nt);return i$({items:Tt,context:{qualityDetailsSubMenuEnabled:Ie.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:x(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:$e,trafficSavingEnabled:T(),toggleTrafficSaving:Te,currentQuality:R()||Rc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:ze,onCopyDataClick:Gt,onReportProblemClick:st,onSaveTraceDataClick:Pt,toggleShowDebugInfo:Xt},additionalSettingsMenuItems:E()})}),mi=m(()=>t$({subMenuId:xe.current,context:{availablePlaybackRates:$(),selectPlaybackRate:$e,trafficSavingEnabled:T(),toggleTrafficSaving:Te,currentQuality:R()||Rc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:W()||!1,availableQualities:H(),highQualityEnabled:U(),toggleHighQuality:$t,availableAudioStreams:y(),availableSubtitlesList:v(),closeSettingsMenu:jt,currentAudioStream:x(),isMobile:d(),selectAudioLanguage:Ue,selectQuality:be,selectSubtitle:qe}}));var He=pC();let nt;var Pi=C(He);{var ro=Tt=>{var Nt=uC();let z;Nt.__keydown=[dC,jt];var kt=C(Nt);{var si=Yt=>{var ct=cC();let oi;var Ri=C(ct),Jo=C(Ri,!0);S(Ri);var vn=A(Ri,2);vn.__click=Ne,S(ct),N((go,Vo)=>{oi=oe(ct,1,"item header s-s",null,oi,go),ve(Jo,Vo)},[()=>({mobile:d()}),()=>Vt("submenu_settings")]),b(Yt,ct)};M(kt,Yt=>{d()&&Yt(si)})}var bi=A(kt,2);let dt;yi(bi,21,()=>n(gi),Yt=>Yt.id,(Yt,ct)=>{var oi=Ve(),Ri=le(oi);{var Jo=go=>{kv(go,{get isMobile(){return d()},get id(){return n(ct).id},get icon(){return n(ct).icon},get iconProps(){return n(ct).iconProps},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},get value(){return n(ct).value},get valueComponent(){return n(ct).valueComponent},onClick:()=>{X(n(ct).children),D(zt,n(ct).id,!0)},get ref(){return te[n(ct).id]},set ref(Vo){te[n(ct).id]=Vo}})},vn=(go,Vo)=>{{var yo=Zi=>{let gn=m(()=>`${n(ct).id}-menu-item`);Mv(Zi,{get isMobile(){return d()},get id(){return n(gn)},get onClick(){return n(ct).onClick},get icon(){return n(ct).icon},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},closeSettings:Ne})},Di=(Zi,gn)=>{{var Ai=xo=>{let hn=m(()=>`${n(ct).id}-menu-item`);Rv(xo,{get isMobile(){return d()},get id(){return n(hn)},get onClick(){return n(ct).onClick},get icon(){return n(ct).icon},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},get enabled(){return n(ct).enabled},get tooltipText(){return n(ct).tooltipText},get maxTooltipWidth(){return n(ct).maxTooltipWidth}})};M(Zi,xo=>{n(ct).type==="SWITCH"&&xo(Ai)},gn)}};M(go,Zi=>{n(ct).type==="CLICK"?Zi(yo):Zi(Di,!1)},Vo)}};M(Ri,go=>{n(ct).type==="OPEN_SUB_MENU"?go(Jo):go(vn,!1)})}b(Yt,oi)}),S(bi),it(bi,Yt=>G(Yt),()=>G()),S(Nt),N((Yt,ct,oi)=>{z=oe(Nt,1,"settings-menu menu s-s",null,z,Yt),dt=oe(bi,1,"items",null,dt,ct),Qe(bi,oi)},[()=>({desktop:!d(),mobile:d(),hidden:!!xe.current}),()=>({mobile:d()}),Ci]),ht("mouseenter",Nt,_i),ht("mouseleave",Nt,Ei),b(Tt,Nt)};M(Pi,Tt=>{r()&&Tt(ro)})}var Mo=A(Pi,2);yi(Mo,17,()=>n(mi),Tt=>Tt.id,(Tt,Nt)=>{let z=m(()=>{var kt;return(kt=n(Nt).minWidth)!=null?kt:137});Av(Tt,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return xe.popSubMenu},get id(){return n(Nt).id},get title(){return n(Nt).title},get closeSettingsMenu(){return jt},openSubMenuList:X,get items(){return n(Nt).items},get minWidth(){return n(z)},get refMenuItems(){return te},get listRef(){return J[n(Nt).id]},set listRef(kt){J[n(Nt).id]=kt}})}),S(He),N(Tt=>nt=oe(He,1,"settings-menu-container s-s",null,nt,Tt),[()=>({mobile:d(),hidden:!r()})]),b(t,He),F(),o()}et(["keydown","click"]);var mC=L('<button class="btn s-13"> </button>'),vC={hash:"s-13",code:"button.btn.s-13{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Yv(t,e){Q(t,vC);var i=mC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);S(i),N(()=>ve(o,e.label)),b(t,i)}et(["click"]);var gC=L('<div class="container s-q"><div class="notification s-q"><div><p class="description s-q"><!></p> <!></div> <!></div></div>'),hC={hash:"s-q",code:".container.s-q{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px;z-index:var(--controls-container-z-index)}.notification.s-q{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-q{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Nc(t,e){B(e,!0),Q(t,hC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Mt(),{ui:{t:r}}=ye(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=gC(),d=C(l),s=C(d),u=C(s),f=C(u);Vc(f,{get message(){return a}}),S(u);var p=A(u,2);{var v=y=>{let $=m(()=>r("slow_video_notification_button"));Yv(y,{get label(){return n($)},get onClick(){return e.onSelectAutoQuality}})};M(p,y=>{o||y(v)})}S(s);var _=A(s,2);Fs(_,{get onClick(){return e.onClose}}),S(d),S(l),Os(3,d,()=>ha,()=>({duration:i})),b(t,l),F()}var Oc=require("@vkontakte/videoplayer-shared/es2018"),dl="annotation",xp=class{constructor(e){this.slots=new Map;this.disabledIds=new Set(e)}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var s;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;if(this.disabledIds.has(r))return{success:!1,message:"current slotId is disabled via config"};let d=typeof e=="function"?e():e;return d.setAttribute("slot",dl),this.setupSlotStyles(d,o),this.shadowRootContainer.append(d),this.slots.set(r,{rootElement:d,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((s=this.store)==null||s.ui.isControlsAvailable.set(!1)),{success:!0}}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"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let r=this.slots.get(e);if(!r)return;let a=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},s=new MutationObserver(p=>p.forEach(()=>{let v=Ws(a,this.shadowRootContainer);o.forEach(_=>{let y=l==null?void 0:l[_],$=y?_e(y):null,x=d==null?void 0:d[_];$&&(x==null||x.set((0,Oc.isIntersecting)($,v)))})}));s.observe(a,{childList:!0,subtree:!0}),r.observer=s;let u=new Oc.Subscription;o.forEach(p=>{l&&u.add(l[p].subscribe(v=>{let _=d==null?void 0:d[p];v&&v.isDisplayed?_==null||_.set((0,Oc.isIntersecting)(v,Ws(a,this.shadowRootContainer))):_==null||_.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});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:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(p=>{var v,_;(_=(v=this.store)==null?void 0:v.ui.hiddenControls[p])==null||_.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var _C=L('<div class="container s-5"><!></div>'),bC={hash:"s-5",code:".container.s-5{align-items:center;animation-fill-mode:forwards;animation-name:s-5-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-5-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function Bc(t,e){B(e,!0),Q(t,bC);let i=g(e,"reversed",3,!1);var o=Ve(),r=le(o);Rs(r,()=>e.Icon,a=>{var l=_C(),d=C(l);Fi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),N(()=>Qe(l,`animation-duration: ${e.duration}ms`)),b(a,l)}),b(t,o),F()}var jv=require("@vkontakte/videoplayer-core/es2018"),$C=L('<div class="container s-1a"><!></div>'),yC={hash:"s-1a",code:".container.s-1a{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function Xv(t,e){B(e,!0),Q(t,yC);let[i,o]=Oe(),r=()=>w(s,"$playbackState$",i),a=()=>w(f,"$previewTrackActive",i),l=()=>w(p,"$previewTrackDragInProgress",i),d=()=>w(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:p}}=ye(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:_}=Mt(),y=0,$=K(null),x=K(!1);Fe(()=>{r()===jv.PlaybackState.PLAYING?D($,On,!0):r()===jv.PlaybackState.PAUSED?D($,Qs,!0):D($,null)}),Fe(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,D($,null)},_),()=>{y&&(window.clearTimeout(y),y=0)}}),Fe(()=>{d()&&!n(x)&&(D(x,!0),D($,null))});var I=Ve(),T=le(I);{var R=k=>{var P=$C(),E=C(P);Bc(E,{get duration(){return _},get Icon(){return n($)}}),S(P),b(k,P)};M(T,k=>{n($)&&v&&k(R)})}b(t,I),F(),o()}var xC=L('<div><div data-testid="video-container"></div></div>'),wC={hash:"s-a",code:".video-container.s-a,.video-wrapper.s-a{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-a{background:var(--black)}.video-container.s-a,.video-wrapper.s-a{z-index:var(--video-container-z-index)}.video-container.s-a{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-a{transition:none}.nocursor.s-a{cursor:none}"};function cl(t,e){B(e,!0),Q(t,wC);let[i,o]=Oe(),r=()=>w(p,"$rotateAlpha",i),a=()=>w(v,"$playerSize",i),l=()=>w(f,"$playerPhase",i),d=()=>w(y,"$chromecastConnected$",i),s=()=>w(_,"$isPlaying$",i),u=g(e,"videoContainer",15),{playerPhase:f,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:_,chromecastConnected$:y}}=ye(),{isSmoothVideoRotate:$}=Mt(),x=m(()=>u()&&r()%180?a().height/a().width:1);var I=xC();let T;I.__contextmenu=function(...P){var E;(E=e.onContextMenu)==null||E.apply(this,P)},I.__mousedown=function(...P){var E;(E=e.onMouseDown)==null||E.apply(this,P)},I.__mouseup=function(...P){var E;(E=e.onMouseUp)==null||E.apply(this,P)},I.__click=function(...P){var E;(E=e.onClick)==null||E.apply(this,P)},I.__dblclick=function(...P){var E;(E=e.onDblClick)==null||E.apply(this,P)};var R=C(I);let k;it(R,P=>u(P),()=>u()),S(I),N((P,E)=>{T=oe(I,1,"video-wrapper s-a",null,T,P),k=oe(R,1,"video-container s-a",null,k,E),Qe(R,`transform: rotate(${r()}deg) scale(${n(x)})`),De(R,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,I),F(),o()}et(["contextmenu","mousedown","mouseup","click","dblclick"]);var SC=L('<div><span class="text s-1d"> </span> <!></div>'),CC={hash:"s-1d",code:".root.s-1d{background-color:var(--double-forward-bg);border-radius:100px;color:var(--white);display:flex;gap:4px;left:50%;opacity:0;padding:6px 12px;pointer-events:none;position:absolute;top:24px;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden}.root.s-1d,.root.visible.s-1d{transform:translateX(-50%)}.root.visible.s-1d{opacity:1;visibility:visible}.text.s-1d{font-size:13px;font-weight:600;line-height:16px}"};function Zv(t,e){B(e,!0),Q(t,CC);let{ui:{t:i}}=ye();var o=SC();let r;var a=C(o),l=C(a,!0);S(a);var d=A(a,2);Pc(d,{get size(){return"16"},fill:"currentColor"}),S(o),N((s,u)=>{r=oe(o,1,"root s-1d",null,r,s),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),F()}var TC=L('<div class="container s-1c" role="button" data-testid="preview-track-overlay"><div class="icon s-1c"><!></div></div>'),IC={hash:"s-1c",code:".container.s-1c{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-1c,.icon.s-1c{align-items:center;display:flex;justify-content:center}.icon.s-1c{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-1c:hover .icon:where(.s-1c){transform:scale(1.15)}"};function Jv(t,e){B(e,!1),Q(t,IC);let o=ye().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};Xo();var l=TC();l.__click=a;var d=C(l),s=C(d);return On(s,{get size(){return"32"}}),S(d),S(l),Os(3,l,()=>ha,()=>({duration:r})),b(t,l),Lf(e,"handleClick",a),F({handleClick:a})}et(["click"]);var EC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},PC=L("<div><!></div>"),AC=L('<div class="spherical-video-icon s-9"><!></div>'),kC=L("<div><!></div>"),LC=L('<div class="settings-menu s-9"><!></div>'),MC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),VC=L("<!> <!> <!>",1),RC=L('<div class="blocked s-9"></div>'),DC=L('<div class="player-wrapper s-9"><!> <div class="overlay-container"></div></div> <!>',1),NC={hash:"s-9",code:".blocked.s-9,.player-wrapper.s-9{height:100%;position:absolute;width:100%}.blocked.s-9{z-index:var(--overlay-container-z-index)}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-9{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function tg(t,e){B(e,!0),Q(t,NC);let[i,o]=Oe(),r=()=>w($r,"$notificationsToShow$",i),a=()=>w(ci,"$playerPhase",i),l=()=>w(Tt,"$isLoaderVisible",i),d=()=>w(ji,"$adPlaybackState",i),s=()=>w(Yt,"$crashed",i),u=()=>w(Zi,"$isInteractiveTime$",i),f=()=>w(mi,"$settingsMenuVisible",i),p=()=>w(gn,"$isInteractiveExpectation$",i),v=()=>w(Ei,"$isMinimalMode$",i),_=()=>w(gi,"$controlsVisible",i),y=()=>w(xo,"$touched",i),$=()=>w(Fr,"$graphIsOpened$",i),x=()=>w(Xi,"$isFullscreen",i),I=()=>w(er,"$autoplayNextEnabled$",i),T=()=>w(si,"$postrollPassed",i),R=()=>w(Nt,"$isEnded$",i),k=()=>w(rr,"$cursorInside",i),P=()=>w(tr,"$isControlsAvailable",i),E=()=>w(Or,"$doubleForwardOn$",i),W=()=>w(or,"$fakeIsPlaying$",i),H=()=>w(yr,"$bottomNoSmooth",i),U=()=>w(xs,"$interactiveTimeIndicator",i),G=()=>w(vn,"$playerSize",i),se=()=>w(Vo,"$is3DVideo",i),te=()=>w(Hn,"$doubleForwardAvailable$",i),J=()=>w(ro,"$contextMenuVisible$",i),Y=()=>w(Ci,"$playbackState$",i),Ie=()=>w(hn,"$hotKeyMapData",i),ue=()=>w(nt,"$scrubbingInProgress",i),ie=()=>w(Pi,"$volumeChangingInProgress",i),ge=()=>w(z,"$chromecastConnected$",i),Pe=()=>w(xn,"$controlsTimeoutActive",i),de=()=>w(go,"$adsPlaybackState",i),Ke=()=>w(He,"$settingsMenuOpenedByKeyboard",i),pe=()=>w(Tr,"$contextMenuOpenedByKeyboard$",i),me=()=>w(Ts,"$contextMenuOpenedByHotKey$",i),Z=()=>w(An,"$contextMenuButtonRef$",i),O=()=>w(Ys,"$contextMenuLastActiveElem$",i),fe=()=>w(It,"$isFullscreenOpenedByKeyboard",i),ce=()=>w(Jn,"$positionExact$",i),Re=()=>w(_i,"$language$",i),tt=()=>w(Ir,"$previewTrackActive$",i),ke=()=>w(yo,"$icon3DVideoVisible",i),j=()=>w(kt,"$chromecastDeviceName$",i),ne=()=>w(Ri,"$currentSubtitle$",i),Se=()=>w(Jo,"$currentSubtitleCaptions$",i),Le=()=>w(ri,"$position$",i),We=()=>w(ut,"$duration$",i),Ce=()=>w(bi,"$isLive$",i),we=()=>w(dt,"$isPlaying$",i),Be=()=>w(_r,"$contextMenuPosition$",i),rt=()=>w(Zn,"$showHotKeyMap",i),mt=()=>w(Mo,"$debugPanelVisible",i),Vt=()=>w(br,"$userActionsDisabled$",i),lt=g(e,"videoContainer",15),jt=g(e,"adsSlotId",3,void 0),St=g(e,"adsParams",3,void 0),Ut=g(e,"adsAutoplayParam",3,void 0),Rt=g(e,"duration",3,void 0),zt=g(e,"logoTargetUrl",3,""),xe=g(e,"showNextPrevButtons",3,!1),X=g(e,"nextButtonActive",3,!1),Ne=g(e,"prevButtonActive",3,!1),be=g(e,"endScreenVideoTitle",3,void 0),Ue=g(e,"endScreenVideoThumb",3,void 0),Te=g(e,"isOneVideoPlaylist",3,!1),$t=g(e,"shadowRootContainer",3,void 0),$e=g(e,"outerContainerRef",3,void 0),qe=g(e,"playerStarted",3,!1),ze=g(e,"fullScreenTarget",3,void 0),st=g(e,"showMiniTimer",3,!1),Gt=g(e,"showEndScreen",3,!0),Pt=g(e,"keyboardControls",15),Xt=e.store.getLogger().createComponentLog("Root component"),_i=e.store.interfaceLanguage$,Ei=e.store.ui.isMinimalMode$,Ci=e.store.state.playbackState$,ji=e.store.ads.playbackState,ri=e.store.state.positionWithScrubbing$,ut=e.store.state.duration$,ci=e.store.playerPhase,Xi=e.store.ui.isFullscreen,It=e.store.ui.isFullscreenOpenedByKeyboard,gi=e.store.ui.controlsVisible,mi=e.store.ui.settingsMenu.visible$,He=e.store.ui.settingsMenu.openedByBtnKeyboard$,nt=e.store.ui.scrubbingInProgress,Pi=e.store.ui.volumeChangingInProgress,ro=e.store.ui.contextMenu.visible$,Mo=e.store.ui.debugPanelVisible,Tt=e.store.state.isLoaderVisible,Nt=e.store.state.isEnded$,z=e.store.state.chromecastConnected$,kt=e.store.state.chromecastDeviceName$,si=e.store.ads.postrollPassed,bi=e.store.state.isLive$,dt=e.store.state.isPlaying$,Yt=e.store.state.crashed$,ct=e.store.webApi.annotationsApi,oi=e.store.webApi.pictureInPictureApi,Ri=e.store.state.currentSubtitle$,Jo=e.store.state.currentSubtitleCaptions$,vn=e.store.ui.playerSize,go=e.store.ads.playbackState,Vo=e.store.ui.is3DVideo,yo=e.store.ui.icon3DVideoVisible,Di=e.store.state.isInteractive,Zi=e.store.state.isInteractiveTime$,gn=e.store.state.isInteractiveExpectation$,Ai=e.store.state.hasInteractiveBranches,xo=e.store.ui.touched,hn=e.store.ui.modals.hotKeyMap.data,Zn=e.store.ui.modals.hotKeyMap.show,Jn=e.store.state.positionExact$,ys=e.store.ui.overlayContainer$,xs=e.store.ui.controls.interactiveTimeIndicator,rs=e.store.state.showInteractiveTimeIndicator,_r=e.store.ui.contextMenu.position$,_n=e.store.actions.internal.setQuality,bn=e.store.actions.internal.closeSettingsMenu,er=e.store.ui.autoplayNextEnabled$,br=e.store.ui.userActionsDisabled,tr=e.store.ui.isControlsAvailable,Nr=e.store.ui.videoTitleInfo,Or=e.store.ui.doubleForwardOn$,Hn=e.store.ui.doubleForwardAvailable$,ir=e.store.actions.internal.getVideoElement,Un=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:or,notifications$:Br,graphIsOpened$:Fr}=$o(),wi=K(void 0),ss=K(void 0),en=K(void 0),_t=K(void 0),Zt,nr,zn;hn.set(Y_());let{closeNotification:Hr,notificationsToShow$:$r}=Br,Ur=m(()=>!!r().slow_video),$n=()=>Hr("slow_video"),tn=m(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),yn=K(void 0),yr=ae(!1),xr,xn=ae(!1),wn=ae(),rr=ae(!1),Ti=K(!1),wo=K(!1),Ro=K(!1),so=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Sn=m(()=>u()&&!f()&&!(n(Ti)||n(wo))&&!(n(Ro)&&!p())),Cn=!0,zr=m(()=>e.uiConfig.features.thumbTimer&&!v()&&st()&&a()==="video"&&!_()&&!s()&&!Di&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Ct=e.uiConfig.titleShowBehaviour,ai=m(()=>!["video","thumb"].includes(a())||Ct==="never"||$()?!1:Ct==="fullscreen"?x():!0),Qt=m(()=>Ct==="always"||a()==="thumb"?!1:!_()),ho=K(!1),on=m(()=>(Gt()||e.showAutoplayNext&&I())&&!!be()&&!!Ue()&&(e.showAds&&T()||!e.showAds)&&R()&&!s()&&!n(ho)&&!Ai),Do=m(()=>k()&&!(_()||n(on))&&!u()&&P()&&!E()),No=K(!1),Ji=m(()=>W()!==null),{toggle:Tn}=or,In=!1,nn=null;oi==null||oi.setContext(yd());let ws=()=>{e.autoplay&&!Di&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ui(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ws});let Wr=()=>{window.clearTimeout(Zt),xn.set(!1)},Ss=()=>{window.clearTimeout(nr),wn.set(null)},Ui=he=>{Wr(),xn.set(!0),Zt=window.setTimeout(()=>xn.set(!1),he);let ft=he-100;xr=window.setTimeout(()=>{H()&&yr.set(!1)},ft>0?ft:he)},Cs=(he,ft)=>{Ss(),wn.set(ft),nr=window.setTimeout(()=>wn.set(null),he)},as=Vo.subscribe(he=>{yo.set(he),he&&(window.clearTimeout(zn),zn=window.setTimeout(()=>yo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),wr=async()=>{var ft,di,Mi,Uo;let he=la();if(he){let co=jd(),uo=Xe();he=co===uo||co===$t()}if(he){Ui(e.uiConfig.controls.hideTimeoutFullscreen);try{await(oi==null?void 0:oi.exit())}catch(co){Xt({message:String(co)})}}Xi.set(he),e.store.getAdmanWrapper().setFullscreen(he),x()?(di=(ft=e.store.callbacks)==null?void 0:ft.onFullscreenEnter)==null||di.call(ft):(Uo=(Mi=e.store.callbacks)==null?void 0:Mi.onFullscreenExit)==null||Uo.call(Mi)},So=he=>{vn.set(he)},Sr=()=>{if(n(wi)){let{width:he,height:ft}=n(wi).getBoundingClientRect();vn.set({width:he,height:ft})}};Lt(()=>{var ft;return Ku(wr),e.uiConfig.features.annotationsInside&&(ct==null||ct.init(n(wi))),oi==null||oi.assignPlayerContainer(n(wi)),e.uiConfig.disablePiPResizeHandling||oi==null||oi.setExternalEventHandlers({resize:So,leavepictureinpicture:Sr}),e.interactiveContainer&&((ft=lt().parentElement)==null||ft.insertBefore(e.interactiveContainer,lt().nextSibling)),()=>{window.clearTimeout(Zt),window.clearTimeout(xr),window.clearTimeout(nr),window.clearTimeout(zn),as(),oi==null||oi.dispose().catch(di=>{Xt({message:String(di)})}),Qu(wr)}});let Xe=()=>{let he=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!$e()?n(wi):$e(),ft=he.getRootNode(),di=ft instanceof ShadowRoot?ft.host:ft,Mi=ze()instanceof HTMLElement&&ze().contains(di);return e.uiConfig.allowChangingFullscreenTarget&&ze()&&Mi?ze():he},pt=()=>{ro.set(!1)},Jt=()=>{bn(),pt()},ao=async()=>{if(!Un()){Xt({message:"fullscreen disabled"});return}pt(),la()?(await Wu(document),Xt({message:"exit fullscreen"})):(Xt({message:"request fullscreen"}),await zu(Xe()))},ki=he=>{$()||(he.preventDefault(),ro.set(!0),_r.set({left:he.clientX,top:he.clientY}))};function Oo(){rr.set(!0),Di||Ui(e.uiConfig.controls.hideTimeoutCursor)}function _o(he){var co,uo;let{relatedTarget:ft}=he,Mi=!!(ft&&((co=n(en))!=null&&co.contains(ft)))&&((uo=Pt())==null?void 0:uo.isFocused()),Uo=e.uiConfig.controls.showOnStartupAtAutoplay||!!ft;!Di&&!Mi&&Uo&&(yr.set(!0),Ui(e.uiConfig.controls.hideTimeoutCursor))}function Bo(){rr.set(!1),D(wo,!1),D(Ti,!1),In=!1,e.store.actions.internal.releaseCamera(),Ui(e.uiConfig.controls.hideTimeout),E()&&Pn()}function Fo(he){return he?he.offsetTop+Fo(he.offsetParent):0}function sr(he){return he?he.offsetLeft+sr(he.offsetParent):0}function Co(he){if(U()&&rs){let ft=he.currentTarget,di=Fo(ft),Mi=sr(ft),Uo=he.pageX-Mi,co=he.pageY-di,{left:uo,bottom:cs,right:kn}=U(),Ps=kn-uo;return Uo>=uo-Ps&&co<=cs+Ps}}function rn(he){if(n(wi)){let ft=Fo(he.currentTarget),di=G().height,Mi=he.pageY-ft;if(Co(he)){D(wo,!1);return}Mi<40?D(wo,!0):Mi>di-40?D(Ti,!0):(D(wo,!1),f()||D(Ti,!1))}}function Cr(he){rn(he),!n(Sn)&&!E()&&Ui(e.uiConfig.controls.hideTimeoutCursor),se()&&In&&nn&&e.store.actions.internal.moveCameraFocusPX(nn.clientX-he.clientX,nn.clientY-he.clientY,he.timeStamp-nn.timeStamp),nn=he}let sn=null,En=()=>{sn=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Wr()},e.uiConfig.doubleForwardActivationTime)},Pn=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),sn&&clearTimeout(sn),sn=null},Kr=he=>{he.preventDefault(),he.button===0&&(In=!0,e.store.actions.internal.holdCamera(),te()&&En()),!In&&Ui(e.uiConfig.controls.hideTimeoutCursor)},ls=he=>{he.preventDefault(),he.button===0&&(nn=he,In=!1,e.store.actions.internal.releaseCamera()),!E()&&Ui(e.uiConfig.controls.hideTimeoutCursor)},Ze=he=>{he.preventDefault(),Cn&&(Xt({message:"double click on video"}),ao(),Ui(e.uiConfig.controls.hideTimeoutCursor))},Bt=he=>{var ft;if(he.preventDefault(),E()){Pn();return}if(sn&&Pn(),J()||f()){Jt();return}if(!(R()&&!Ai)){if(n(Ji))return Tn();if((ft=Pt())==null||ft.focus(),!qe()){e.firstStart(),Ui(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||Y()!==eg.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ui(e.uiConfig.controls.hideTimeoutCursor)}},Ii=he=>{Jt(),xo.set(!0),Ui(e.uiConfig.controls.hideTimeout),he&&Cs(e.uiConfig.controls.hideHotKeyHelpers,he)},an=()=>{var he,ft;v()||(Jt(),(he=e.store.callbacks)!=null&&he.onOpenHotKeyMap?(ft=e.store.callbacks)==null||ft.onOpenHotKeyMap(Ie()):Zn.update(di=>!di))},Ho=()=>{xo.set(!0)},Tr=e.store.ui.contextMenu.openedByBtnKeyboard$,An=e.store.ui.contextMenu.btnRef$,ln=K(void 0),Ts=e.store.ui.contextMenu.openedByHotKey$,Ys=e.store.ui.contextMenu.lastActiveElem$,ds=K(!1),Ir=e.store.ui.previewTrackActive;Fe(()=>{ys.set(n(yn))}),Fe(()=>{D(Ro,n(so)&&Y()!==eg.PlaybackState.PLAYING,!0),n(so)||Et(()=>D(so,!0))}),Fe(()=>{var ft,di;let he=(n(Ro)||R()||f()||ue()||ie()||ge()||Pe()||n(ds))&&!n(Sn)&&(a()==="video"||a()==="ads"&&(e.uiConfig.controls.showOnStartupAtAutoplay||de()!=="inactive"))&&!s()&&P();gi.set(he),!he&&!Pe()&&((ft=n(en))!=null&&ft.contains(Ju()))&&((di=Pt())==null||di.focus())}),Fe(()=>{!ue()&&n(No)&&!u()&&Ui(e.uiConfig.controls.hideTimeoutCursor),Et(()=>D(No,ue(),!0))}),Fe(()=>{n(_t),f(),Ke(),Et(()=>ic(n(_t),f(),Ke()))}),Fe(()=>{n(ln),J(),pe(),me(),Et(()=>{let he=pe()||me();ic(n(ln),J(),he)})}),Fe(()=>{let he=Z();he&&(J(),Et(()=>Yl(he,J(),Tr)))}),Fe(()=>{let he=O();he&&(J(),Et(()=>eb(he,J(),Ts)))}),Fe(()=>{var he;!fe()&&x()&&(Et(()=>It.set(!1)),(he=Pt())==null||he.focus())}),Fe(()=>{$()&&Jt()});let Is=K(void 0),vt=he=>{Nr.set(jn(ir(),{title:n(Is)},"title",he))},li=(he,ft)=>{var co,uo;let di=(uo=(co=e.store.callbacks)==null?void 0:co.uiInfo)==null?void 0:uo.onUpcomingLiveViewStateChanged;if(!di)return;let Mi=!!ft,Uo={...jn(n(wi),{upcomingLiveScreen:ft},"upcomingLiveScreen",Mi),...he};di(Uo)},To="",ar=m(()=>{var he;return n(Qt)?To:(he=e.getVideoDeeplink)==null?void 0:he.call(e,ce())});Fe(()=>{To=n(ar)});var Er=DC();ht("blur",La,Jt);var Li=le(Er);Li.__mousemove=Cr;var bo=C(Li);let Es=m(()=>a()==="ads"),lo=m(()=>n(Ji)?Tn:void 0);it(vm(bo,{startDoubleForwardActivationTimer:En,stopDoubleForward:Pn,toggleFullscreen:ao,hideContextMenu:Jt,showHotKeyHelpers:Ii,showKeyMap:an,get isAds(){return n(Es)},get fakePlayButtonHandler(){return n(lo)},get nextButtonActive(){return X()},get prevButtonActive(){return Ne()},children:(he,ft)=>{var di=VC(),Mi=le(di);cl(Mi,{get hideCursor(){return n(Do)},onClick:Bt,onContextMenu:ki,onMouseDown:Kr,onMouseUp:ls,onDblClick:Ze,get videoContainer(){return lt()},set videoContainer(uo){lt(uo)}});var Uo=A(Mi,2);Oa(Uo,()=>"slot",!1,(uo,cs)=>{to(uo,()=>({name:dl}))});var co=A(Uo,2);Rs(co,Re,uo=>{var cs=MC(),kn=le(cs);let Ps=m(()=>a()!=="thumb"||s()||Di&&e.autoplay);sl(kn,{get hidden(){return n(Ps)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:ki,onClick:pt});var $a=A(kn,2);{var ya=Ge=>{Jv(Ge,{})};M($a,Ge=>{tt()&&Ge(ya)})}var Qr=A($a,2);Xv(Qr,{});var us=A(Qr,2);Zv(us,{get isVisible(){return E()}});var lr=A(us,2);{var fl=Ge=>{let vi=m(()=>{var Wo;return(Wo=e.live)==null?void 0:Wo.startTime});Lc(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(vi)},onUpcomingLiveViewStateChanged:li,onContextMenu:ki,onClick:pt})};M(lr,Ge=>{a()==="LiveWaitingStart"&&Ge(fl)})}var ml=A(lr,2);{var qr=Ge=>{al(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:ki,onClick:pt})};M(ml,Ge=>{a()==="LiveWaitingRecover"&&Ge(qr)})}var vl=A(ml,2);{var gl=Ge=>{al(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:ki,onClick:pt})};M(vl,Ge=>{a()==="LiveWaitingRecord"&&Ge(gl)})}var hl=A(vl,2);{var vd=Ge=>{var vi=PC();let Wo;var Pr=C(vi);Xd(Pr,{get adsSlotId(){return jt()},get adsParams(){return St()},get adsAutoplayParam(){return Ut()},get duration(){return Rt()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(vi),N(Io=>Wo=oe(vi,1,"ads-container s-9",null,Wo,Io),[()=>({hidden:a()!=="ads"})]),b(Ge,vi)};M(hl,Ge=>{e.showAds&&qe()&&Ge(vd)})}var xa=A(hl,2);{var _l=Ge=>{let vi=m(()=>!Gt()&&e.showAutoplayNext&&I());pm(Ge,{get title(){return be()},get thumb(){return Ue()},get isHide(){return n(vi)},clickCloseIcon:()=>D(ho,!0)})};M(xa,Ge=>{n(on)&&be()&&Ue()&&Ge(_l)})}var gt=A(xa,2);{var bt=Ge=>{let vi=m(()=>x()?"md":"sm"),Wo=m(()=>{var Pr;return(Pr=e.store.callbacks)==null?void 0:Pr.onTitleClicked});Sv(Ge,{get title(){return e.title},get isHidden(){return n(Qt)},onVisibilityChanged:vt,get titleLinkHref(){return n(ar)},onMouseEnter:()=>{D(ds,!0)},onMouseLeave:()=>{D(ds,!1)},get size(){return n(vi)},get onTitleClicked(){return n(Wo)},get ref(){return n(Is)},set ref(Pr){D(Is,Pr,!0)}})};M(gt,Ge=>{n(ai)&&Ge(bt)})}var $i=A(gt,2);{var zo=Ge=>{let vi=m(()=>a()==="video"&&_());Ac(Ge,{get isShifted(){return n(vi)}})};M($i,Ge=>{se()&&Ge(zo)})}var Wi=A($i,2);{var hi=Ge=>{var vi=AC(),Wo=C(vi);Yd(Wo,{}),S(vi),b(Ge,vi)};M(Wi,Ge=>{ke()&&Ge(hi)})}var Ni=A(Wi,2);{var wa=Ge=>{kc(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return j()},onClick:Bt,onContextMenu:ki,onDblClick:Ze})};M(Ni,Ge=>{ge()&&Ge(wa)})}var bl=A(Ni,2);{var Dp=Ge=>{nl(Ge,{get shifted(){return _()},get captions(){return Se()},get position(){return Le()},get playerSize(){return G()}})};M(bl,Ge=>{ne().value!=="off"&&a()==="video"&&Ge(Dp)})}var Yc=A(bl,2);{var Np=Ge=>{var vi=kC();vi.__contextmenu=ki,vi.__click=[EC,J,ro,f,mi,Jt];var Wo=C(vi);rl(Wo,{}),S(vi),b(Ge,vi)};M(Yc,Ge=>{s()&&Ge(Np)})}var jc=A(Yc,2);{var Op=Ge=>{let vi=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Wo=m(()=>a()==="ads"),Pr=m(()=>e.canRewindLive&&We()!==0);Ec(Ge,{get bottomHidden(){return n(vi)},get bottomNoSmooth(){return H()},get showControls(){return _()},get isAds(){return n(Wo)},get canRewindLive(){return n(Pr)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return zt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return xe()},get nextButtonActive(){return X()},get prevButtonActive(){return Ne()},get isOneVideoPlaylist(){return Te()},customFullscreenSupported:Cn,toggleFullscreen:ao,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(ss)},set playerControlsWrapperRef(Io){D(ss,Io,!0)},get playerControlsRef(){return n(en)},set playerControlsRef(Io){D(en,Io,!0)}})};M(jc,Ge=>{qe()&&Ge(Op)})}var Xc=A(jc,2);{var Bp=Ge=>{var vi=LC(),Wo=C(vi);let Pr=m(()=>{var Io;return(Io=n(en))==null?void 0:Io.clientHeight});Dc(Wo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(Pr)},returnFocus:()=>{var Io;return(Io=Pt())==null?void 0:Io.focus()},get ref(){return n(_t)},set ref(Io){D(_t,Io,!0)}}),S(vi),b(Ge,vi)};M(Xc,Ge=>{!ge()&&a()!=="ads"&&Ge(Bp)})}var Zc=A(Xc,2);let Fp=m(()=>!n(zr));ec(Zc,{get isLive(){return Ce()},get isHidden(){return n(Fp)},get isPlaying(){return we()},get position(){return Le()},get duration(){return We()}});var Sa=A(Zc,2);xv(Sa,{get data(){return wn}});var Jc=A(Sa,2);cm(Jc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Pt())==null?void 0:Ge.focus()},get visible(){return J()},get playerContainerRef(){return n(wi)},get position(){return Be()},get menuElementRef(){return n(ln)},set menuElementRef(Ge){D(ln,Ge,!0)}});var js=A(Jc,2);{var $l=Ge=>{Nc(Ge,{onClose:$n,onSelectAutoQuality:()=>{_n("auto"),$n()}})};M(js,Ge=>{n(Ur)&&Ge($l)})}var eu=A(js,2);{var tu=Ge=>{Qa(Ge,{})};M(eu,Ge=>{n(tn)&&Ge(tu)})}var yl=A(eu,2);{var iu=Ge=>{_m(Ge,{})};M(yl,Ge=>{rt()&&Ge(iu)})}var Hp=A(yl,2);{var ou=Ge=>{nc(Ge,{})};M(Hp,Ge=>{mt()&&Ge(ou)})}b(uo,cs)}),b(he,di)},$$slots:{default:!0}}),he=>Pt(he),()=>Pt());var zi=A(bo,2);it(zi,he=>D(yn,he),()=>n(yn)),S(Li),it(Li,he=>D(wi,he),()=>n(wi));var dn=A(Li,2);{var Wn=he=>{var ft=RC();b(he,ft)};M(dn,he=>{Vt()&&he(Wn)})}ht("mouseenter",Li,Oo),ht("mouseleave",Li,Bo),ht("click",Li,Ho,!0),ht("focusin",Li,_o,!0),b(t,Er),F(),o()}et(["mousemove","contextmenu","click"]);var _a=require("@vkontakte/videoplayer-core/es2018"),d$=require("@vkontakte/videoplayer-shared/es2018");var OC=L('<div></div> <div class="info s-j"><div class="triangles-wrapper s-j"><div></div> <div></div> <div></div></div> <p class="step-caption s-j"> </p></div>',1),BC=L("<div><!></div>"),FC={hash:"s-j",code:".double-click-area.s-j{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-j{left:0}.double-click-area.right.s-j{right:0}.semicircle.s-j{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-j{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-j{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-j{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-j,.triangles-wrapper.s-j{display:flex;justify-content:center}.triangles-wrapper.s-j{margin-bottom:10px;position:relative}.triangle.s-j{animation:s-j-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-j:nth-child(3),.triangle.right.s-j:first-child{animation-delay:0s}.triangle.left.s-j:nth-child(2),.triangle.right.s-j:nth-child(2){animation-delay:.1s}.triangle.left.s-j:first-child,.triangle.right.s-j:nth-child(3){animation-delay:.2s}@keyframes s-j-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-j{border-right:8px solid var(--white)}.triangle.right.s-j{border-left:8px solid var(--white)}.triangle.s-j:not(:last-child){margin-right:5px}.step-caption.s-j{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function wp(t,e){B(e,!0),Q(t,FC);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(ni(i())),d=p=>{p.stopPropagation(),a+=1,D(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(D(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,D(o,!1)},300)};pn(()=>{window.clearTimeout(r)});var s=BC();s.__click=d;var u=C(s);{var f=p=>{var v=OC(),_=le(v),y=A(_,2),$=C(y),x=C($),I=A(x,2),T=A(I,2);S($);var R=A($,2),k=C(R,!0);S(R),S(y),N(P=>{var E,W,H,U;oe(_,1,`semicircle ${(E=e.side)!=null?E:""}`,"s-j"),oe(x,1,`triangle ${(W=e.side)!=null?W:""}`,"s-j"),oe(I,1,`triangle ${(H=e.side)!=null?H:""}`,"s-j"),oe(T,1,`triangle ${(U=e.side)!=null?U:""}`,"s-j"),ve(k,P)},[()=>q("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(p,v)};M(u,p=>{n(o)&&p(f)})}S(s),N(()=>{var p;return oe(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-j")}),b(t,s),F()}et(["click"]);var HC=(t,e,i)=>{e(!1),i()},UC=L('<div class="overlay s-m"></div> <div class="next-video s-m"><div class="top s-m"><div class="caption s-m"> </div> <!></div> <div class="row s-m"><div class="column s-m"><div class="thumb s-m"><div></div> <!></div></div> <div class="column s-m"><div class="title s-m"> </div></div></div></div>',1),zC={hash:"s-m",code:".overlay.s-m{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-m{display:flex;flex-direction:column;left:50%;margin:0 auto;max-width:362px;min-width:320px;padding-bottom:12px;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:var(--end-screen-mobile-z-index)}.top.s-m{display:flex;justify-content:space-between}.caption.s-m{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-m{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-m{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-m{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-m,.thumb-overlay.s-m{height:100%;width:100%}.thumb-overlay.s-m{position:absolute}.thumb-overlay.withOpacity.s-m{background:var(--black);opacity:.3}.title.s-m{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function ig(t,e){B(e,!0),Q(t,zC);let[i,o]=Oe(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ye(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,_=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},$=()=>{e.clickCloseIcon(),_()};Lt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),v())});var x=Ve(),I=le(x);{var T=R=>{var k=UC(),P=A(le(k),2),E=C(P),W=C(E),H=C(W,!0);S(W);var U=A(W,2);Fs(U,{onClick:$}),S(E);var G=A(E,2);G.__click=[HC,u,p];var se=C(G),te=C(se),J=C(te);let Y;var Ie=A(J,2);{var ue=de=>{rc(de,{get isRunning(){return a()},onTimerEnded:y})};M(Ie,de=>{r()&&de(ue)})}S(te),S(se);var ie=A(se,2),ge=C(ie),Pe=C(ge,!0);S(ge),S(ie),S(G),S(P),N((de,Ke)=>{ve(H,de),Qe(te,`background-image: url('${e.thumb}')`),Y=oe(J,1,"thumb-overlay s-m",null,Y,Ke),ve(Pe,e.title)},[()=>r()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,k)};M(I,R=>{e.isHide||R(T)})}b(t,x),F(),o()}et(["click"]);var n$=require("@vkontakte/videoplayer-core/es2018");var r$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Lt(()=>{n$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),pn(()=>{i==null||i(),clearTimeout(o)})};var s$=require("@vkontakte/videoplayer-core/es2018");var Sp=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 a$=require("@vkontakte/videoplayer-core/es2018"),l$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),f=()=>a$.clientChecker.device.isIOS&&_e(l)===s$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=_=>{if(p(),!f()||!_)return;let y=u();if(!y)return;let $=new Sp(y),x=_e(d),I=_e(a),T=_e(r);for(let P of x)I.some(W=>W.value===P.id)&&$.attach(P,T.value===P.id);let R=d.subscribe(P=>{for(let E of P)$.updateSrc(E)}),k=()=>{let P=$.getCurrentShowingId();o(_e(a).find(E=>E.value===P))};y.textTracks.addEventListener("change",k),s=()=>{R(),$.detachAll(),y.textTracks.removeEventListener("change",k)}};Lt(()=>i.subscribe(v)),pn(p)};var WC=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},KC=L("<!> <!>",1),QC=L("<div><!></div>"),qC=L('<div class="spherical-video-icon s-8"><!></div>'),GC=L("<div><!></div>"),YC=L('<div class="settings-mobile s-8"><!></div>'),jC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),XC=L('<div class="player-wrapper s-8" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),ZC={hash:"s-8",code:".player-wrapper.s-8{height:100%;position:absolute;width:100%}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-8{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function og(t,e){var Cn,zr;B(e,!0),Q(t,ZC);let[i,o]=Oe(),r=()=>w(Ue,"$playerPhase",i),a=()=>w(_i,"$isLoaderVisible",i),l=()=>w(X,"$adPlaybackState",i),d=()=>w(gi,"$crashed",i),s=()=>w(xs,"$notificationsToShow$",i),u=()=>w(xe,"$playbackState$",i),f=()=>w(Ut,"$graphIsOpened$",i),p=()=>w(qe,"$interactiveHideMobileControls",i),v=()=>w(Ei,"$isEnded$",i),_=()=>w(bi,"$isInteractiveExpectation$",i),y=()=>w($t,"$controlsVisible",i),$=()=>w(ct,"$touched",i),x=()=>w(Ri,"$autoplayNextEnabled$",i),I=()=>w(ri,"$postrollPassed",i),T=()=>w(_n,"$bottomNoSmooth",i),R=()=>w(nt,"$videoSize",i),k=()=>w(Tt,"$playerSize",i),P=()=>w(Te,"$isFullscreen",i),E=()=>w(Ne,"$position$",i),W=()=>w(be,"$duration$",i),H=()=>w(Jo,"$loadedMetadata",i),U=()=>w(ze,"$settingsMenuVisible",i),G=()=>w(Gt,"$scrubbingInProgress",i),se=()=>w(Pt,"$volumeChangingInProgress",i),te=()=>w(Ci,"$chromecastConnected$",i),J=()=>w($e,"$isControlsAvailable",i),Y=()=>w(si,"$isInteractiveTime$",i),Ie=()=>w(Xi,"$isActiveLive",i),ue=()=>w(st,"$settingsMenuOpenedByKeyboard",i),ie=()=>w(zt,"$language$",i),ge=()=>w(Yt,"$disabledControls$",i),Pe=()=>w(Nt,"$is3DVideo",i),de=()=>w(z,"$icon3DVideoVisible",i),Ke=()=>w(ji,"$chromecastDeviceName$",i),pe=()=>w(Pi,"$currentSubtitle$",i),me=()=>w(ro,"$currentSubtitleCaptions$",i),Z=()=>w(Mo,"$realDuration$",i),O=()=>w(ut,"$isLive$",i),fe=()=>w(ci,"$isPlaying$",i),ce=()=>w(Xt,"$debugPanelVisible",i),Re=g(e,"videoContainer",15),tt=g(e,"adsSlotId",3,void 0),ke=g(e,"adsParams",3,void 0),j=g(e,"adsAutoplayParam",3,void 0),ne=g(e,"duration",3,void 0),Se=g(e,"logoTargetUrl",3,""),Le=g(e,"showNextPrevButtons",3,!1),We=g(e,"nextButtonActive",3,!1),Ce=g(e,"prevButtonActive",3,!1),we=g(e,"endScreenVideoTitle",3,void 0),Be=g(e,"endScreenVideoThumb",3,void 0),rt=g(e,"isOneVideoPlaylist",3,!1),mt=g(e,"showMiniTimer",3,!1),Vt=g(e,"fullScreenTarget",3,void 0),lt=g(e,"playerStarted",3,!1),jt=g(e,"showEndScreen",3,!0),{notifications$:St,graphIsOpened$:Ut}=$o(),Rt=e.store.getLogger().createComponentLog("Root component"),zt=e.store.interfaceLanguage$,xe=e.store.state.playbackState$,X=e.store.ads.playbackState,Ne=e.store.state.positionWithScrubbing$,be=e.store.state.duration$,Ue=e.store.playerPhase,Te=e.store.ui.isFullscreen,$t=e.store.ui.controlsVisible,$e=e.store.ui.isControlsAvailable,qe=e.store.ui.interactiveHideMobileControls,ze=e.store.ui.settingsMenu.visible$,st=e.store.ui.settingsMenu.openedByBtnKeyboard$,Gt=e.store.ui.scrubbingInProgress,Pt=e.store.ui.volumeChangingInProgress,Xt=e.store.ui.debugPanelVisible,_i=e.store.state.isLoaderVisible,Ei=e.store.state.isEnded$,Ci=e.store.state.chromecastConnected$,ji=e.store.state.chromecastDeviceName$,ri=e.store.ads.postrollPassed,ut=e.store.state.isLive$,ci=e.store.state.isPlaying$,Xi=e.store.state.isActiveLive$,It=e.store.state.isRewindableLive$,gi=e.store.state.crashed$,mi=e.store.webApi.annotationsApi,He=e.store.webApi.pictureInPictureApi,nt=e.store.state.videoSize$,Pi=e.store.state.currentSubtitle$,ro=e.store.state.currentSubtitleCaptions$,Mo=e.store.state.duration$,Tt=e.store.ui.playerSize,Nt=e.store.ui.is3DVideo,z=e.store.ui.icon3DVideoVisible,kt=e.store.state.isInteractive,si=e.store.state.isInteractiveTime$,bi=e.store.state.isInteractiveExpectation$,dt=e.store.state.hasInteractiveBranches,Yt=e.store.ui.controls.disabledControls$,ct=e.store.ui.touched,oi=e.store.ui.overlayContainer$,Ri=e.store.ui.autoplayNextEnabled$,Jo=e.store.state.loadedMetadata$,vn=e.store.actions.internal.closeSettingsMenu,go=(Cn=e.store.callbacks)==null?void 0:Cn.onDisabledPlayPrevChapterClick,Vo=(zr=e.store.callbacks)==null?void 0:zr.onDisabledSeekToInteractiveClick,yo=e.store.actions.internal.setQuality,Di=K(void 0),Zi=K(void 0),gn=K(void 0),Ai=K(void 0),xo,hn,Zn=m(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Jn=K(void 0),{closeNotification:ys,notificationsToShow$:xs}=St,rs=m(()=>!!s().slow_video),_r=()=>ys("slow_video"),_n=ae(!1),bn,er=K(!1),br=m(()=>u()!==_a.PlaybackState.PLAYING),tr=K(!1),Nr=m(()=>f()||p()||!n(er)&&(v()&&!!dt||n(br)&&_())),Or=K(!0),Hn=m(()=>e.uiConfig.features.thumbTimer&&mt()&&r()==="video"&&!y()&&!d()&&!kt&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),ir=K(!1),Un=m(()=>(jt()||e.showAutoplayNext&&x())&&!!we()&&!!Be()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(ir)),or=K(!1);He==null||He.setContext(yd());let Br=Ct=>{Ct&&!kt&&e.uiConfig.controls.showOnStartupAtAutoplay&&wi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Br});let Fr=()=>{clearTimeout(xo),D(er,!1),p()&&qe.set(!1)},wi=Ct=>{Fr(),D(er,!0),xo=setTimeout(()=>D(er,!1),Ct);let ai=Ct-100;bn=setTimeout(()=>{T()&&_n.set(!1)},ai>0?ai:Ct)},ss=Nt.subscribe(Ct=>{z.set(Ct),Ct&&(clearTimeout(hn),hn=setTimeout(()=>z.set(!1),e.uiConfig.controls.hide360IconTimeout))}),en=async(Ct=la())=>{var ai,Qt,ho,on,Do,No;if(Ct&&!_a.clientChecker.device.isIOS){let Ji=jd(),Tn=$r(),In=_a.clientChecker.browser.isSamsungBrowser&&Ji===e.shadowRootContainer;Ct=Ji===Tn||In}if(Ct){wi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(He==null?void 0:He.exit())}catch(Ji){Rt({message:String(Ji)})}try{let Ji=(ai=R())!=null&&ai.width&&((Qt=R())!=null&&Qt.height)?R():k();await G_(Ji)}catch(Ji){Rt({message:String(Ji)})}}Te.set(Ct),e.store.getAdmanWrapper().setFullscreen(Ct),P()?(on=(ho=e.store.callbacks)==null?void 0:ho.onFullscreenEnter)==null||on.call(ho):(No=(Do=e.store.callbacks)==null?void 0:Do.onFullscreenExit)==null||No.call(Do)},_t=Ct=>{Tt.set(Ct)},Zt=()=>{if(n(Di)){let{width:Ct,height:ai}=n(Di).getBoundingClientRect();Tt.set({width:Ct,height:ai})}};Lt(()=>{var Ct;return Ku(en),e.uiConfig.features.annotationsInside&&(mi==null||mi.init(n(Di))),He==null||He.assignPlayerContainer(n(Di)),e.uiConfig.disablePiPResizeHandling||He==null||He.setExternalEventHandlers({resize:_t,leavepictureinpicture:Zt}),D(Or,!_a.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((Ct=Re().parentElement)==null||Ct.insertBefore(e.interactiveContainer,Re().nextSibling)),()=>{clearTimeout(xo),clearTimeout(bn),clearTimeout(hn),ss(),He==null||He.dispose().catch(ai=>{Rt({message:String(ai)})}),Qu(en)}});let nr=K(!0),zn=K(!0),Hr=Ct=>{let ai=E()+(Ct==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ai<0?(D(nr,!1),ai=0):ai>=W()&&(D(zn,!1),ai=W()),D(tr,!0),e.seekTime(ai)},$r=()=>_a.clientChecker.device.isIOS?n(Di):!e.uiConfig.allowChangingFullscreenTarget||!Vt()?e.outerContainerRef:Vt().contains(e.outerContainerRef)?Vt():e.outerContainerRef,Ur=async()=>{try{if(la())await Wu(document),Rt({message:"exit fullscreen"});else{if(Rt({message:"request fullscreen"}),_a.clientChecker.device.isIOS&&!H())return;await zu($r())}}catch(Ct){Rt({message:String(Ct)})}},$n=()=>{vn()},tn=Ct=>{if(Ct.preventDefault(),U()){$n();return}if(!lt()){e.firstStart(),wi(e.uiConfig.controls.hideTimeoutCursor);return}D(tr,!1),y()?Fr():wi(e.uiConfig.controls.hideTimeoutMobile)},yn=()=>{ct.set(!0)},yr=()=>{kt||(_n.set(!0),wi(e.uiConfig.controls.hideTimeoutCursor))},xr=Ct=>{go&&(go(Ct),wi(e.uiConfig.controls.hideTimeoutMobile))},xn=Ct=>{Vo&&(Vo(Ct),wi(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{oi.set(n(Jn))}),Fe(()=>{$t.set((n(br)||U()||G()||se()||te()||!n(Un)&&(v()||n(er)&&!n(tr)))&&!n(Nr)&&r()==="video"&&!d()&&J())}),Fe(()=>{!G()&&n(or)&&!Y()&&wi(e.uiConfig.controls.hideTimeoutMobile),D(or,G(),!0)}),Fe(()=>{D(nr,E()>0),D(zn,!Ie()&&E()<W(),!0)}),Fe(()=>{ic(n(Ai),U(),ue(),!0)});let wn=q("aria_label_video_player");r$({fullScreenChangeHandler:en,getFullscreenTarget:$r}),l$({store:e.store,getFullscreenTarget:$r});let rr=(Ct,ai)=>{var Do,No;let Qt=(No=(Do=e.store.callbacks)==null?void 0:Do.uiInfo)==null?void 0:No.onUpcomingLiveViewStateChanged;if(!Qt)return;let ho=!!ai,on={...jn(n(Di),{upcomingLiveScreen:ai},"upcomingLiveScreen",ho),...Ct};Qt(on)};var Ti=XC();ht("blur",La,$n);var wo=C(Ti);cl(wo,{onClick:tn,get videoContainer(){return Re()},set videoContainer(Ct){Re(Ct)}});var Ro=A(wo,2);Oa(Ro,()=>"slot",!1,(Ct,ai)=>{to(Ct,()=>({name:dl}))});var so=A(Ro,2);Rs(so,ie,Ct=>{var ai=jC(),Qt=le(ai);let ho=m(()=>r()!=="thumb"||d()||kt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);sl(Qt,{get hidden(){return n(ho)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var on=A(Qt,2);{var Do=Ze=>{var Bt=KC(),Ii=le(Bt);{var an=An=>{let ln=m(()=>e.uiConfig.controls.seekStepMobile/1e3);wp(An,{side:"left",get seekStep(){return n(ln)},handleSingleFirstClick:tn,handleSecondClick:()=>Hr("backward")})};M(Ii,An=>{n(nr)&&An(an)})}var Ho=A(Ii,2);{var Tr=An=>{let ln=m(()=>e.uiConfig.controls.seekStepMobile/1e3);wp(An,{side:"right",get seekStep(){return n(ln)},handleSingleFirstClick:tn,handleSecondClick:()=>Hr("forward")})};M(Ho,An=>{n(zn)&&An(Tr)})}b(Ze,Bt)};M(on,Ze=>{e.canRewindLive&&It&&!ge().has("TIMELINE")&&Ze(Do)})}var No=A(on,2);{var Ji=Ze=>{let Bt=m(()=>{var Ii;return(Ii=e.live)==null?void 0:Ii.startTime});Lc(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Bt)},onUpcomingLiveViewStateChanged:rr})};M(No,Ze=>{r()==="LiveWaitingStart"&&Ze(Ji)})}var Tn=A(No,2);{var In=Ze=>{al(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(Tn,Ze=>{r()==="LiveWaitingRecover"&&Ze(In)})}var nn=A(Tn,2);{var ws=Ze=>{al(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(nn,Ze=>{r()==="LiveWaitingRecord"&&Ze(ws)})}var Wr=A(nn,2);{var Ss=Ze=>{var Bt=QC();let Ii;var an=C(Bt);Xd(an,{get adsSlotId(){return tt()},get adsParams(){return ke()},get adsAutoplayParam(){return j()},get duration(){return ne()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(Bt),N(Ho=>Ii=oe(Bt,1,"ads-container s-8",null,Ii,Ho),[()=>({hidden:r()!=="ads"})]),b(Ze,Bt)};M(Wr,Ze=>{e.showAds&&lt()&&Ze(Ss)})}var Ui=A(Wr,2);{var Cs=Ze=>{let Bt=m(()=>!jt()&&e.showAutoplayNext&&x());ig(Ze,{get title(){return we()},get thumb(){return Be()},get isHide(){return n(Bt)},clickCloseIcon:()=>D(ir,!0)})};M(Ui,Ze=>{n(Un)&&we()&&Be()&&Ze(Cs)})}var as=A(Ui,2);{var wr=Ze=>{Ac(Ze,{})};M(as,Ze=>{Pe()&&Ze(wr)})}var So=A(as,2);{var Sr=Ze=>{var Bt=qC(),Ii=C(Bt);Yd(Ii,{}),S(Bt),b(Ze,Bt)};M(So,Ze=>{de()&&Ze(Sr)})}var Xe=A(So,2);{var pt=Ze=>{kc(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ke()},onClick:tn})};M(Xe,Ze=>{te()&&Ze(pt)})}var Jt=A(Xe,2);{var ao=Ze=>{nl(Ze,{get shifted(){return y()},get captions(){return me()},get position(){return E()},get playerSize(){return k()},isMobile:!0})};M(Jt,Ze=>{pe().value!=="off"&&Ze(ao)})}var ki=A(Jt,2);{var Oo=Ze=>{var Bt=GC();Bt.__click=[WC,U,ze,$n];var Ii=C(Bt);rl(Ii,{}),S(Bt),b(Ze,Bt)};M(ki,Ze=>{d()&&Ze(Oo)})}var _o=A(ki,2);{var Bo=Ze=>{let Bt=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Ii=m(()=>r()==="ads"),an=m(()=>e.canRewindLive&&Z()!==0);Ec(Ze,{get bottomHidden(){return n(Bt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(Ii)},get canRewindLive(){return n(an)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Se()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Le()},get nextButtonActive(){return We()},get prevButtonActive(){return Ce()},get isOneVideoPlaylist(){return rt()},get customFullscreenSupported(){return n(Or)},get endScreenShown(){return n(Un)},toggleFullscreen:Ur,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:xr,onDisabledSeekToInteractiveClick:xn,get playerControlsWrapperRef(){return n(Zi)},set playerControlsWrapperRef(Ho){D(Zi,Ho,!0)},get playerControlsRef(){return n(gn)},set playerControlsRef(Ho){D(gn,Ho,!0)}})};M(_o,Ze=>{lt()&&Ze(Bo)})}var Fo=A(_o,2);{var sr=Ze=>{var Bt=YC(),Ii=C(Bt);Dc(Ii,{get supportLink(){return e.supportLink},get returnFocus(){return d$.noop},get ref(){return n(Ai)},set ref(an){D(Ai,an,!0)}}),S(Bt),b(Ze,Bt)};M(Fo,Ze=>{U()&&Ze(sr)})}var Co=A(Fo,2);let rn=m(()=>!n(Hn));ec(Co,{get isLive(){return O()},get isHidden(){return n(rn)},get isPlaying(){return fe()},get position(){return E()},get duration(){return W()}});var Cr=A(Co,2);{var sn=Ze=>{Qa(Ze,{})};M(Cr,Ze=>{n(Zn)&&Ze(sn)})}var En=A(Cr,2);{var Pn=Ze=>{nc(Ze,{})};M(En,Ze=>{ce()&&Ze(Pn)})}var Kr=A(En,2);{var ls=Ze=>{Nc(Ze,{onClose:_r,onSelectAutoQuality:()=>{yo("auto"),_r()}})};M(Kr,Ze=>{n(rs)&&Ze(ls)})}b(Ct,ai)});var Sn=A(so,2);it(Sn,Ct=>D(Jn,Ct),()=>n(Jn)),S(Ti),it(Ti,Ct=>D(Di,Ct),()=>n(Di)),N(()=>De(Ti,"aria-label",wn)),ht("click",Ti,yn,!0),ht("focusin",Ti,yr,!0),b(t,Ti),F(),o()}et(["click"]);var c$=require("@vkontakte/videoplayer-shared/es2018");var JC=L('<div class="time-container s-7"><!></div>'),eT=L('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),tT={hash:"s-7",code:".player-wrapper.s-7{height:100%;position:absolute;width:100%}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-7{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-7{opacity:1}.time-container.s-7{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function ng(t,e){B(e,!0),Q(t,tT);let[i,o]=Oe(),r=()=>w(Y,"$scrubbingInProgress",i),a=()=>w(te,"$playerSize",i),l=()=>w(E,"$isPlaying$",i),d=()=>w(k,"$duration$",i),s=()=>w(U,"$positionWithScrubbing$",i),u=()=>w(T,"$playerPhase",i),f=()=>w(R,"$crashed$",i),p=()=>w(W,"$currentSubtitle$",i),v=()=>w(H,"$currentSubtitleCaptions$",i),_=()=>w(P,"$positionExact$",i),y=()=>w(G,"$isLive$",i),$=()=>w(se,"$isRewindableLive$",i),x=g(e,"outsideDuration",3,0),I=g(e,"videoContainer",15),{playerPhase:T,state:{crashed$:R,duration$:k,positionExact$:P,isPlaying$:E,currentSubtitle$:W,currentSubtitleCaptions$:H,positionWithScrubbing$:U,isLive$:G,isRewindableLive$:se},ui:{playerSize:te,controls:J,scrubbingInProgress:Y},actions:{internal:{getVideoElement:Ie}}}=ye(),ue=8,ie=K(!1),ge=ni({}),Pe=K(!1),de=m(()=>!r()&&!n(Pe)),Ke=()=>{D(ie,!0)},pe=()=>{D(ie,!1)},me=(0,c$.debounceFn)(nd,260);Fe(()=>{a(),me(Ie(),J,ge,n(ie))});let Z=m(()=>l()?Zo(d()-s()):Zo(isFinite(d())?d():x()));var O=eT(),fe=C(O);cl(fe,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(we){I(we)}});var ce=A(fe,2);Oa(ce,()=>"slot",!1,(we,Be)=>{to(we,()=>({name:dl}))});var Re=A(ce,2);let tt=m(()=>u()!=="thumb"||f());sl(Re,{get hidden(){return n(tt)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ke=A(Re,2);{var j=we=>{nl(we,{shifted:!1,get captions(){return v()},get position(){return _()},get playerSize(){return a()}})};M(ke,we=>{p().value!=="off"&&n(de)&&we(j)})}var ne=A(ke,2);{var Se=we=>{var Be=JC(),rt=C(Be);Jd(rt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(Z)}}),S(Be),b(we,Be)};M(ne,we=>{n(de)&&we(Se)})}var Le=A(ne,2);let We;var Ce=C(Le);tl(Ce,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return $()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ue,tooltipRightOffset:ue,get ref(){return ge.timeline},set ref(we){ge.timeline=we}}),S(Le),S(O),N(we=>We=oe(Le,1,"timeline s-7",null,We,we),[()=>({visible:n(ie)})]),ht("mouseenter",O,Ke),ht("mouseleave",O,pe),ht("mouseenter",Le,()=>D(Pe,!0)),ht("mouseleave",Le,()=>D(Pe,!1)),b(t,O),F(),o()}var iT=L("<div><!></div>"),oT={hash:"s-4",code:'.vk-vp-root.s-4{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.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,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-4{overflow:visible}.vk-vp-root.s-4 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-4 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-4 p{margin:0}.vk-vp-root.s-4 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-4 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-4 :focus,.vk-vp-root.s-4 :focus-visible{outline:none}.vk-vp-root.s-4 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-4 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-4 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-4 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-4 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-4 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-4 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function rg(t,e){B(e,!0),Q(t,oT);let[i,o]=Oe(),r=()=>w(lt,"$isLive$",i),a=()=>w(mi,"$availableSubtitlesList$",i),l=()=>w(He,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),f=g(e,"videoConfig",7),p=g(e,"uiConfig",7),v=g(e,"title",7),_=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),$=g(e,"interactiveController",7),x=g(e,"subtitles",7),I=g(e,"subtitlesForcedLanguage",7),T=g(e,"live",7),R=g(e,"preload",7),k=g(e,"autoplay",7),P=g(e,"volume",7,void 0),E=g(e,"muted",7,void 0),W=g(e,"fromTime",7),H=g(e,"canRewindLive",7),U=g(e,"showAds",7),G=g(e,"adsSlotId",7,void 0),se=g(e,"adsParams",7,void 0),te=g(e,"adsAutoplayParam",7,void 0),J=g(e,"duration",7,void 0),Y=g(e,"logoClickable",7),Ie=g(e,"logoHidden",7),ue=g(e,"isMobile",7),ie=g(e,"showNextPrevButtons",7,!1),ge=g(e,"nextButtonActive",7,!1),Pe=g(e,"prevButtonActive",7,!1),de=g(e,"endScreenVideoTitle",7,void 0),Ke=g(e,"endScreenVideoThumb",7,void 0),pe=g(e,"isOneVideoPlaylist",7,!1),me=g(e,"supportLink",7),Z=g(e,"shadowRootContainer",7),O=g(e,"outerContainerRef",7),fe=g(e,"fullScreenTarget",7,void 0),ce=g(e,"failoverHosts",7,void 0),Re=g(e,"showMiniTimer",7,!1),tt=g(e,"saveRate",7),ke=g(e,"seekToInteractive",7,ul.noop),j=g(e,"playPrevChapter",7,ul.noop),ne=g(e,"volumeMultiplier",7),Se=g(e,"showAutoplayNext",7),Le=g(e,"showEndScreen",7,!0),We=g(e,"keyboardControls",15,void 0),{subscribers:Ce,stores:we}=u();n_(p());let Be=Mt(),rt=p().logoLink,mt=s().ui.debugPanelVisible,Vt=s().ui.playerSize,lt=s().state.isLive$,St=s().state.isInteractive&&dd.clientChecker.device.isAndroid,Ut=K(void 0),Rt=null,zt=K(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),v_(s(),we),Fe(()=>{var z,kt;s().ui.isMobile.set(ue()),(kt=(z=f().callbacks)==null?void 0:z.onDomReady)==null||kt.call(z)});let xe=(z=!1)=>{D(zt,!0),z?s().actions.external.firstStart(U()):s().actions.internal.firstStart(U())},X=()=>{if(Be.features.qualityDetailsSubMenuEnabled){let z=O_(s().videoId);if(z)switch(z.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,z.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,z.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(z.quality);break}}else{B_(s().videoId),qf()&&s().actions.internal.setTrafficSavingEnabled(!0);let kt=Wf(s().videoId);kt&&s().actions.internal.setQuality(kt)}};function Ne(z){var Yt,ct,oi;let kt=d()||z;kt&&s().initVideo({container:n(Ut),sources:kt,failoverHosts:ce(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:ne()});let si=ul.safeStorage.get(zd)==="true";mt.set(si),W()>0&&s().actions.external.seekTime(W());let bi=ue()?Be.volumeDefault:(ct=(Yt=P())!=null?Yt:Ou())!=null?ct:Be.volumeDefault,dt=(oi=E())!=null?oi:L_();if(s().actions.external.setVolume(bi),s().actions.external.setMuted(dt),s().getAdmanWrapper().setInitialVolume(dt?0:bi),X(),Be.features.saveRate&&tt()){let Ri=R_();Ri&&!r()&&s().actions.internal.setPlaybackRate(Ri)}if(Se()){let Ri=N_();Ri&&s().actions.internal.setAutoplayNextEnabled(Ri)}s().ui.isAutoplay.set(k()),k()&&xe(),R()&&Be.features.preload&&s().actions.internal.preload()}let be=z=>{if(window.ResizeObserver){let kt,si;Rt=new ResizeObserver((0,ul.throttleFn)(bi=>{let dt=bi[0];if(dt.contentBoxSize){let Yt=Array.isArray(dt.contentBoxSize)?dt.contentBoxSize[0]:dt.contentBoxSize;kt=Yt.inlineSize,si=Yt.blockSize}else dt.contentRect&&(kt=dt.contentRect.width,si=dt.contentRect.height);Vt.set({width:kt,height:si})},300)),Rt.observe(z)}z.clientWidth&&z.clientHeight&&Vt.set({width:z.clientWidth,height:z.clientHeight})},Ue=()=>{document.hidden&&s().actions.external.stop()};Lt(()=>{var si,bi,dt,Yt;St&&document.addEventListener("visibilitychange",Ue),Be.debugLog&&s().actions.internal.startLogging(),be(n(Ut));let z=Ce.map(ct=>ct.init({store:s(),microStores:we,config:f(),interactiveController:$(),uiConfig:p()})),kt=()=>{St&&document.removeEventListener("visibilitychange",Ue),Rt==null||Rt.disconnect(),z.forEach(ct=>ct.unsubscribe()),s().destroy()};return((si=T())==null?void 0:si.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),kt):((bi=T())==null?void 0:bi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),kt):(((dt=T())==null?void 0:dt.status)==="finished"||((Yt=T())==null?void 0:Yt.status)==="postlive")&&!(d()&&(0,dd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),kt):(Ne(),kt)});function Te(){n(zt)?s().actions.external.play():xe(!0)}function $t(){s().actions.external.pause()}function $e(z){s().actions.external.setMuted(z)}function qe(){s().actions.external.toggleSubtitle()}function ze(z,kt){s().actions.external.changeSubtitle(z,kt)}function st(z){s().actions.external.changeAudioStream(z)}function Gt(){var z;(z=s().webApi.slotsApi)!=null&&z.haveSlots()&&s().actions.external.hideControls()}function Pt(){var z;(z=s().webApi.slotsApi)!=null&&z.haveSlots()&&s().actions.external.showControls()}function Xt(z){ue()||z>=0&&z<=1&&s().actions.external.setVolume(z)}function _i(z){s().actions.internal.seekTime(z,u$.SeekAction.UNKNOWN)}function Ei(z){s().actions.external.seekEpisodeStartTime(z)}function Ci(){s().actions.external.returnFocusToEpisodes()}function ji(z){s().actions.external.setPlaybackRate(z)}function ri(z){s().actions.external.setAutoQualityLimits(z)}function ut(){s().actions.external.setQuality("auto")}function ci(z){s().actions.external.setTrafficSavingEnabled(z)}function Xi(z){s().actions.external.setHighQualityEnabled(z)}let It=lp(Be.view),gi=f().playerView==="preview",mi=s().state.availableSubtitlesList$;if(Be.features.initSubtitles){let z=!1;Fe(()=>{var kt;if(!z&&a().length){z=!0;let si;if(Be.features.userVideoPrefs&&s().videoId){let dt=Uu(Be.userSalt,String(s().videoId));dt!=null&&dt.subtitleTrackId&&(si=a().find(Yt=>Yt.value===dt.subtitleTrackId))}let bi=(kt=I())!=null?kt:Yf();bi&&(si=a().find(dt=>dt.language===bi)),s().actions.internal.setSubtitle(si)}})}let He=s().ui.isPreviewTrackHorizontallyAligned;var nt=iT();let Pi;var ro=C(nt);{var Mo=z=>{og(z,{get store(){return s()},get uiConfig(){return Be},get thumbUrl(){return _()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return k()},get canRewindLive(){return H()},get showAds(){return U()},get adsSlotId(){return G()},get adsParams(){return se()},get adsAutoplayParam(){return te()},get duration(){return J()},get logoClickable(){return Y()},get logoHidden(){return Ie()},get logoTargetUrl(){return rt},get nextButtonActive(){return ge()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return Ke()},get isOneVideoPlaylist(){return pe()},get supportLink(){return me()},get shadowRootContainer(){return Z()},get outerContainerRef(){return O()},get fullScreenTarget(){return fe()},get showMiniTimer(){return Re()},get playerStarted(){return n(zt)},get seekToInteractive(){return ke()},get playPrevChapter(){return j()},firstStart:xe,seekTime:_i,get showEndScreen(){return Le()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return ie()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get videoContainer(){return n(Ut)},set videoContainer(kt){D(Ut,kt,!0)}})},Tt=z=>{var kt=Ve(),si=le(kt);{var bi=Yt=>{ng(Yt,{get thumbUrl(){return _()},get outsideDuration(){return J()},get canRewindLive(){return H()},get videoContainer(){return n(Ut)},set videoContainer(ct){D(Ut,ct,!0)}})},dt=Yt=>{tg(Yt,{get store(){return s()},get uiConfig(){return Be},get title(){return v()},get thumbUrl(){return _()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return k()},get canRewindLive(){return H()},get showAds(){return U()},get adsSlotId(){return G()},get adsParams(){return se()},get adsAutoplayParam(){return te()},get duration(){return J()},get logoClickable(){return Y()},get logoHidden(){return Ie()},get logoTargetUrl(){return rt},get nextButtonActive(){return ge()},get prevButtonActive(){return Pe()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return Ke()},get isOneVideoPlaylist(){return pe()},get supportLink(){return me()},get shadowRootContainer(){return Z()},get outerContainerRef(){return O()},get fullScreenTarget(){return fe()},get showMiniTimer(){return Re()},get playerStarted(){return n(zt)},get seekToInteractive(){return ke()},get playPrevChapter(){return j()},firstStart:xe,get showEndScreen(){return Le()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return ie()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Ut)},set videoContainer(ct){D(Ut,ct,!0)},get keyboardControls(){return We()},set keyboardControls(ct){We(ct)}})};M(si,Yt=>{gi?Yt(bi):Yt(dt,!1)})}b(z,kt)};M(ro,z=>{ue()?z(Mo):z(Tt,!1)})}S(nt),N(z=>{Pi=oe(nt,1,"vk-vp-root s-4",null,Pi,z),Qe(nt,It)},[()=>({"root--miui-browser":dd.clientChecker.device.isMobile&&dd.clientChecker.browser.isMiuiBrowser,"visible-outside":gi,"preview-track-horizontally-alinged":l()})]),b(t,nt);var Nt=F({initVideo:Ne,play:Te,pause:$t,setMuted:$e,toggleSubtitle:qe,changeSubtitle:ze,changeAudioStream:st,hideControls:Gt,showControls:Pt,setVolume:Xt,seekTime:_i,seekEpisodeStartTime:Ei,returnFocusToEpisodes:Ci,setPlaybackRate:ji,setAutoQualityLimits:ri,setAutoQuality:ut,toggleTrafficSaving:ci,toggleHighQuality:Xi,get sources(){return d()},set sources(z){d(z)},get store(){return s()},set store(z){s(z)},get microStoresRoot(){return u()},set microStoresRoot(z){u(z)},get videoConfig(){return f()},set videoConfig(z){f(z)},get uiConfig(){return p()},set uiConfig(z){p(z)},get title(){return v()},set title(z){v(z)},get thumbUrl(){return _()},set thumbUrl(z){_(z)},get interactiveContainer(){return y()},set interactiveContainer(z){y(z)},get interactiveController(){return $()},set interactiveController(z){$(z)},get subtitles(){return x()},set subtitles(z){x(z)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(z){I(z)},get live(){return T()},set live(z){T(z)},get preload(){return R()},set preload(z){R(z)},get autoplay(){return k()},set autoplay(z){k(z)},get volume(){return P()},set volume(z){P(z)},get muted(){return E()},set muted(z){E(z)},get fromTime(){return W()},set fromTime(z){W(z)},get canRewindLive(){return H()},set canRewindLive(z){H(z)},get showAds(){return U()},set showAds(z){U(z)},get adsSlotId(){return G()},set adsSlotId(z){G(z)},get adsParams(){return se()},set adsParams(z){se(z)},get adsAutoplayParam(){return te()},set adsAutoplayParam(z){te(z)},get duration(){return J()},set duration(z){J(z)},get logoClickable(){return Y()},set logoClickable(z){Y(z)},get logoHidden(){return Ie()},set logoHidden(z){Ie(z)},get isMobile(){return ue()},set isMobile(z){ue(z)},get showNextPrevButtons(){return ie()},set showNextPrevButtons(z){ie(z)},get nextButtonActive(){return ge()},set nextButtonActive(z){ge(z)},get prevButtonActive(){return Pe()},set prevButtonActive(z){Pe(z)},get endScreenVideoTitle(){return de()},set endScreenVideoTitle(z){de(z)},get endScreenVideoThumb(){return Ke()},set endScreenVideoThumb(z){Ke(z)},get isOneVideoPlaylist(){return pe()},set isOneVideoPlaylist(z){pe(z)},get supportLink(){return me()},set supportLink(z){me(z)},get shadowRootContainer(){return Z()},set shadowRootContainer(z){Z(z)},get outerContainerRef(){return O()},set outerContainerRef(z){O(z)},get fullScreenTarget(){return fe()},set fullScreenTarget(z){fe(z)},get failoverHosts(){return ce()},set failoverHosts(z){ce(z)},get showMiniTimer(){return Re()},set showMiniTimer(z){Re(z)},get saveRate(){return tt()},set saveRate(z){tt(z)},get showAutoplayNext(){return Se()},set showAutoplayNext(z){Se(z)},get seekToInteractive(){return ke()},set seekToInteractive(z){ke(z)},get playPrevChapter(){return j()},set playPrevChapter(z){j(z)},get volumeMultiplier(){return ne()},set volumeMultiplier(z){ne(z)},get showEndScreen(){return Le()},set showEndScreen(z){Le(z)},get keyboardControls(){return We()},set keyboardControls(z){We(z)}});return o(),Nt}var nT=Ae('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function sg(t,e){let i=g(e,"isWhite",3,!1),o=m(()=>i()?"#fff":"#909499");je(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=nT();ei(9),b(r,l)},$$slots:{default:!0}})}var rT=L('<div class="title s-1"> </div>'),sT=L('<div class="playerStub s-1"><!> <!></div>'),aT={hash:"s-1",code:".playerStub.s-1{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-1{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function ag(t,e){Q(t,aT);var i=sT(),o=C(i);{var r=d=>{var s=rT(),u=C(s,!0);S(s),N(()=>ve(u,e.title)),b(d,s)};M(o,d=>{e.title&&d(r)})}var a=A(o,2);{var l=d=>{let s=m(()=>!!e.thumbUrl);sg(d,{get isWhite(){return n(s)}})};M(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),N(()=>Qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var lT=L('<div class="playerError s-3"><!></div>'),dT={hash:"s-3",code:".playerError.s-3{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function lg(t){Q(t,dT);var e=lT(),i=C(e);rl(i,{}),S(e),b(t,e)}var ba=require("@vkontakte/videoplayer-shared/es2018"),Yi=require("@vkontakte/videoplayer-shared/es2018"),Gc=require("@vkontakte/videoplayer-core/es2018"),fd=require("@vkontakte/videoplayer-statistics/es2018");var Tp=require("@vkontakte/videoplayer-shared/es2018"),Cp=class{constructor(){this.subscription=new Tp.Subscription,this.logger=new Tp.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[r,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,a)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,l;let o=_e(e.state.currentPlaybackRate$),r=_e(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};function Fc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var p$="Inner error. Unexpectedly root annotation container null reference exception",f$="Annotation with such name already exists",m$="Annotation with such name does not exist";var cd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var ud=require("@vkontakte/videoplayer-shared/es2018"),cT="1",uT=100,Ip=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new ud.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,ud.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"},uT);this.subscriptions.add((0,ud.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},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 cd(p$);if(this.annotations.has(e))throw new cd(f$);i.style.zIndex=(o=i.style.zIndex)!=null?o:cT,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 cd(m$);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 r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var pl=require("@vkontakte/videoplayer-shared/es2018"),mn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,pl.assertNonNullable)(e),(0,pl.assertNonNullable)(i),(0,pl.assertNonNullable)(r),r.interactiveData&&(0,pl.assertNonNullable)(o),this.subscription=new pl.Subscription,this.subscription}};var Hc=class extends mn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Uc=class extends mn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:f}=a.ui,p=_e(f),v=()=>p&&_e(u);return o.add(u.subscribe(_=>{if(!p)return;let y=_e(l);_e(s)?this.state$.set(_):y!==null&&this.state$.set(!y||_)})),o.add(s.subscribe(_=>{this.state$.set(!_||v())})),o.add(l.subscribe(_=>{if(_===null)return;let y=_e(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!_)})),o}};var zc=class extends mn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var v$=require("@vkontakte/videoplayer-shared/es2018"),dg=ae(!1),Ep=null,Wc=class extends mn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...dg,set:(i,o=!1)=>{i!==_e(dg)&&(this.clearTimeout(),dg.set(i),!i&&Ep&&(Ep=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(p=>{_e(l)&&p&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,v$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:_})=>{var y,$;if(!(!p||!(_!=null&&_.isDisplayed))){if(!v)return this.state$.set(!1);f.tooltipHelpHintActive&&Ep===null&&(Ep=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),($=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||$.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Pp=require("@vkontakte/videoplayer-shared/es2018");var Kc=class extends mn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:Pp.noop};this.checkIfShouldHide=i=>Hs(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:a}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(_e(l)))return;let s=_e(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:p}=r.ui.controls,v=_e(u),_=_e(f);if(s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),p.remove(Nf),!v&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),p.add(Nf),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}},o.add((0,Pp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:s,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}})),o}};var cg=require("@vkontakte/videoplayer-shared/es2018"),Qc=class extends mn{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:r}=i,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new cg.ValueSubject(!1),isEnabled$:new cg.ValueSubject(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};var kp=require("@vkontakte/videoplayer-shared/es2018");var Ap=require("@vkontakte/videoplayer-shared/es2018"),g$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?pT({maxCount:t}):void 0,e!==0?fT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},pT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Ap.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},fT=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ap.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Ap.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var qc=class extends mn{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:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=g$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,kp.filterChanged)(),(0,kp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var h$=()=>[Hc,Uc,zc,Wc,Kc,Qc,qc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var pd=require("@vkontakte/videoplayer-shared/es2018");var Lp=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var Mp=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.focusLock=new Lp(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var mT=L('<div class="root s-2"><!></div>'),vT={hash:"s-2",code:".root.s-2{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function ug(t,e){B(e,!0),Q(t,vT);let i=null,o=K(null);Fe(()=>(n(o)&&(i=window.setTimeout(()=>{D(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&D(o,s?"prev":"next",!0)}var a=Ve(),l=le(a);{var d=s=>{var u=Ve(),f=le(u);Rs(f,()=>n(o),p=>{var v=mT(),_=C(v);let y=m(()=>n(o)==="prev");Bc(_,{get duration(){return e.animationDuration},get Icon(){return ga},get reversed(){return n(y)}}),S(v),b(p,v)}),b(s,u)};M(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return b(t,a),F({startVideoChangedAnimation:r})}var _$=require("@vkontakte/videoplayer-shared/es2018"),pg=(0,_$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var gT=Object.defineProperty,hT=(t,e,i)=>e in t?gT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,qt=(t,e,i)=>hT(t,typeof e!="symbol"?e+"":e,i),_T={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Yi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Xn=K(void 0),fg=ni({animationDuration:0,playbackStatusShow:!1}),Vp=class extends pg{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,"_shadowRoot"),qt(this,"playerContainer"),qt(this,"rootContainer"),qt(this,"stateContainer"),qt(this,"shadowRootContainer"),qt(this,"playerId"),qt(this,"uiConfig"),qt(this,"coreConfig"),qt(this,"statisticsConfig"),qt(this,"metaConfig"),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,"postponedInitParams",null),qt(this,"internalsExposure",null),qt(this,"shadowDOMCallbacksDisabled",!1),qt(this,"fatalError$",new ba.ValueSubject(null)),qt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:f,statVKAppId:p,refreshStatAuthToken:v,autoplay:_,isMobile:y,isTouch:$,refDomain:x,deviceId:I,interactiveData:T}=Fc(this.videoConfig,i),R=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,k=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:E=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new fd.OneStat({movieId:P,albumId:d,place:s,trackCode:f,vkAppId:p,autoplay:(l=_&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:y,clip:E,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||k)&&{projectId:Number(R)}},{refreshAuthToken:v,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(H){console.error(H),this.log({message:H.message})}}),pd.devNull.create("ui"),this.logger=new Yi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Yi.Subscription,this.interactiveSubscription=new Yi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Zr(lg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=ni({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Zr(ag,l),this.sveltePersistentLayerComponent=Zr(ug,{target:this.playerContainer,props:fg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;fg.animationDuration=e,fg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),pd.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.stateContainer=document.createElement("div"),this.stateContainer.className="state-container",this.stateContainer.style.width="1px",this.stateContainer.style.height="1px",this.stateContainer.style.position="absolute",this.stateContainer.style.backgroundColor="transparent",this.stateContainer.style.left="-100000px",this.append(this.rootContainer),this.append(this.stateContainer)}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:r,refreshStatAuthToken:a}=Fc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new fd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,f,p,v,_;if(!this.videoConfig)return;let{albumId:y,statPlace:$,statAuthToken:x,preload:I,autoplay:T,volume:R,muted:k,fromTime:P,canRewindLive:E,supportLink:W,showAds:H,adsSlotId:U,adsParams:G={},adsAutoplayParam:se,interfaceLanguage:te,isCyrillicRelatedInterface:J,logoClickable:Y,logoHidden:Ie,isMobile:ue,isTouch:ie,isAudioDisabled:ge,isLiveCatchUpMode:Pe,fullScreenTarget:de,failoverHosts:Ke,canDownload:pe,callbacks:me,interactiveData:Z,showThumbTimer:O,additionalButtons:fe=[],additionalSettingsMenuItems:ce=[],additionalContextMenuItems:Re=[],repeat:tt,loop:ke,saveRate:j,volumeMultiplier:ne,showEndScreen:Se,showAutoplayNext:Le,mediascopePixels:We}=Fc(this.videoConfig,i),{sources:Ce,title:we,thumbUrl:Be,unitedVideoId:rt,isClip:mt=!1,duration:Vt,adsParams:lt={},videoEpisodes:jt,previewThumbsData:St,subtitles:Ut,subtitlesForcedLanguage:Rt,live:zt,adsExternalApi:xe,adsJson:X}=e;if(!Ce&&!zt){let ri=new Error("empty sources and live");this.fatalError$.next(ri),(r=me.onCrashed)==null||r.call(me,ri.message);return}let Ne={...G,...lt},be=this.getNextVideoInfo(),Ue={sources:Ce,title:we,thumbUrl:Be,subtitles:Ut,subtitlesForcedLanguage:Rt,unitedVideoId:rt,isClip:mt,live:zt,albumId:y,statPlace:$,autoplay:T,muted:k,volume:R,fromTime:P,canRewindLive:E,showAds:H,adsSlotId:U,adsParams:Ne,adsAutoplayParam:se,duration:Vt,logoClickable:Y,logoHidden:Ie,isTouch:ie!=null?ie:ue,repeat:tt,loop:ke,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Te={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Ue)}`});let $t=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),$e=($t==null?void 0:$t.oneStat)||this.createOneStat(e,i),qe=this.createThinOneStat(e,i),ze;We&&(ze=new fd.MediascopePixel({pixels:We})),($e||qe)&&(this.statistics=new pp($e,qe,ze,$t==null?void 0:$t.statSubscription));let st=this.uiConfig.features.apptracer.enabled?new ba.AppTracer("videoplayer",this.uiConfig.features.apptracer,{version:Ha,env:Ru},(0,ba.withoutNullable)({movieId:rt,albumId:y,place:$,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:ie!=null?ie:ue,clip:mt})):void 0;this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue()));let Gt=!!Z,Pt=[],Xt="tooltip_interactive_go_back_disabled_first";if(Gt&&this.interactiveController){let ri=this.interactiveController.state.isInitialChapter$.getValue(),ut=this.interactiveController.getHistoryState();ri&&Pt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Pt.push("SEEK_TO_INTERACTIVE_BUTTON"),ut.hasPrevChapter$.getValue()||(Pt.push("PLAY_PREV_CHAPTER_BUTTON"),ri||(ut.isGoBackLimited$.getValue()?Xt="tooltip_interactive_go_back_disabled_limit":Xt="tooltip_interactive_go_back_disabled"))}let _i=()=>{var ri;this.isInited=!1,this.prevIsid=void 0;let ut=(o==null?void 0:o.info.isEnded$.getValue())&&((ri=this.interactiveController)==null?void 0:ri.state.isEndChapter$.getValue());me.onReplayInteractiveVideo&&!ut?me.onReplayInteractiveVideo():this.replayInteractiveVideo()},Ei=tt&&this.videoConfig.videos.length===1;this.store=Ib({player:o,interfaceLanguage:te,isCyrillicRelatedInterface:J,videoId:rt,isClip:mt,isLiveCatchUpMode:Pe,isAudioDisabled:ge,statAuthToken:x,callbacks:me,webApi:Te,videoEpisodes:jt,previewThumbsData:St,canDownload:pe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:Pt,isInteractive:Gt,saveRate:j,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:_i,playPrevChapterDisabledTooltip:Xt,hasInteractiveBranches:!!((_=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:ce!=null?ce:[],additionalContextMenuItems:Re!=null?Re:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ri=>{var ut;return(ut=this.sveltePersistentLayerComponent)==null?void 0:ut.startVideoChangedAnimation(ri)},looped:this.uiConfig.features.useLoopSetting?ke:Ei,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId,appTracer:st});let{stores:Ci}=this.microStoresRoot=h$(),ji=()=>{var ri,ut,ci,Xi,It,gi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(He=>{var nt;return(nt=me==null?void 0:me.onCurrentFormatChanged)==null?void 0:nt.call(me,He)})),this.subscription.add(Ci.interactiveControlsOpacity$.subscribe(He=>{var nt;He!==null&&((nt=this==null?void 0:this.interactiveController)==null||nt.setDisabledControls(He))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(He=>{var nt;return(nt=me==null?void 0:me.onThroughputEstimationChanged)==null?void 0:nt.call(me,He)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(He=>{var nt;return(nt=me==null?void 0:me.onTrafficSavingEnabledChanged)==null?void 0:nt.call(me,He)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(He=>{var nt;return(nt=me==null?void 0:me.onHighQualityEnabledChanged)==null?void 0:nt.call(me,He)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(He=>{var nt;return(nt=me==null?void 0:me.onAutoQualityEnabledChanged)==null?void 0:nt.call(me,!!He)})),this.subscription.add(new Yi.Observable(He=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(nt=>He.next(nt)))}).pipe((0,Yi.skip)(1)).subscribe(He=>{var nt;return(nt=me==null?void 0:me.onCurrentPlaybackRateChanged)==null?void 0:nt.call(me,He)})),this.subscription.add(this.store.state.volume$.subscribe(He=>{var nt;return(nt=me==null?void 0:me.onVolumeChange)==null?void 0:nt.call(me,He)})),this.subscription.add(this.store.state.muted$.subscribe(He=>{var nt,Pi,ro,Mo;if(He)(nt=me==null?void 0:me.onMute)==null||nt.call(me);else{let Tt=(ro=((Pi=this.store)==null?void 0:Pi.state.volume$)&&_e(this.store.state.volume$))!=null?ro:0;(Mo=me==null?void 0:me.onUnmute)==null||Mo.call(me,Tt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(He=>{var nt;return(nt=me==null?void 0:me.onVideoBitrateChanged)==null?void 0:nt.call(me,He)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(He=>{var nt;let Pi=(nt=this.store)==null?void 0:nt.ui.controls.disabledControls$;Pi&&(He&&!Pi.includes(Wd)&&Pi.add(Wd),He||Pi.remove(Wd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async He=>{var nt;if(!Gc.clientChecker.browser.isSamsungBrowser||!He||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((nt=this.videoConfig)==null?void 0:nt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(He=>{var nt;return(nt=me==null?void 0:me.onVSIDChanged)==null?void 0:nt.call(me,He)})),this.initMediaSession(),D(Xn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ce,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:we,thumbUrl:Be,subtitles:Ut,subtitlesForcedLanguage:Rt,live:zt,preload:I,autoplay:T,muted:k,volume:R,fromTime:P,canRewindLive:E,supportLink:W,showAds:H,adsSlotId:U,adsParams:Ne,adsAutoplayParam:se,duration:Vt,logoClickable:Y,logoHidden:Ie,isMobile:ie!=null?ie:ue,failoverHosts:Ke,fullScreenTarget:de,saveRate:j,shadowRootContainer:this.shadowRootContainer,showMiniTimer:O,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ne,showEndScreen:Se,showAutoplayNext:Le,adsExternalApi:xe,adsJson:X,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let mi={target:this.playerContainer,props:n(Xn)};this.svelteRootComponent=Zr(rg,mi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ci=(ut=(ri=this.videoConfig)==null?void 0:ri.callbacks)==null?void 0:ut.onInited)==null||ci.call(ut)),(Xi=this.internalsExposure)==null||Xi.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((gi=(It=this.videoConfig)==null?void 0:It.callbacks)!=null&&gi.onDevNullLog)?pd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):pd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Gc.clientChecker.isInited$.subscribe(ri=>{ri&&(console.log("UI SDK async start"),ji())}):ji()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,d))})).add(o.state.playbackStateRealistic$.subscribe(d=>{d?this.stateContainer.setAttribute("data-playback-state",d):this.stateContainer.removeAttribute("data-playback-state")})).add(o.state.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u,f;up(this.pictureInPictureApi)&&this.uiConfig.features.dpip&&!((s=this.videoConfig)!=null&&s.playerView)&&o.actions.external.setMinimalMode(d),d?(u=a.onPiPEnter)==null||u.call(a):(f=a.onPiPExit)==null||f.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls["theater-mode-button"].subscribe(d=>{var s;return(s=l.onTheaterModeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.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 r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Yi.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{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)}async initInteractives(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?_e(s):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:p,historyApi:v,videoLoader:_}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:p,historyApi:v,vkVideoLoader:_,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$:y,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(f==null?void 0:f.title)||I.config.title};let T=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var R,k,P,E,W,H;if(!this.store||!this.microStoresRoot)return;let U=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Kd)),I==="action-choice-canceled"){let G=_e(this.store.state.isPlaying$)||U;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(k=this.videoConfig)!=null&&k.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(E=this.videoConfig)==null?void 0:(W=E.callbacks).onDisabledInteractiveClick)==null||H.call(W)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(Kd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(T=>{var R,k,P;T.length&&((P=(k=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||P.call(k,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,R,k;(k=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveChapterChanged)==null||k.call(R,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,R,k;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,a,l,d,s,u,f,p,v,_,y,$,x,I,T,R,k,P,E;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let W=new Error("empty videos");this.fatalError$.next(W),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,W.message);return}else this.fatalError$.next(null);this.videoConfig=Fc(_T,(0,Yi.cloneDeepWith)(e,W=>W instanceof pg?W:void 0)),this.playerId=(0,Yi.getPlayerId)(e.playerId),this.uiConfig=o_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.metaConfig=i.meta,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.uiConfig.features.exposeInternalsToGlobal&&((s=this.internalsExposure)!=null||(this.internalsExposure=new Yi.InternalsExposure("ui",this.playerId))),pd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((u=this.videoConfig)==null?void 0:u.showAds)],numbers:[(0,ba.now)()]}),(0,Yi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(f=this.uiConfig.features.mediaSession)!=null?f:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),this.uiConfig.ads.paramsOverride={preview:(v=this.uiConfig.ads.preview)!=null?v:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(y=(_=this.uiConfig.isMobile)!=null?_:this.videoConfig.isTouch)!=null?y:this.videoConfig.isMobile,($=this.videoConfig).autoplay&&($.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(x=this.uiConfig.ads.enable)!=null?x:this.videoConfig.showAds,this.videoConfig.adsSlotId=(I=this.uiConfig.ads.slot)!=null?I:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(k=this.videoConfig.supportLink)!=null?k:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((P=this.videoConfig.videos)!=null&&P[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.pictureInPictureApi=Qm(this.videoConfig.pipEnabled!==!1,this.uiConfig.features.dpip)),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Cp:void 0,this.slotsApi=this.uiConfig.features.slots?new xp(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ip(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Mp(this._shadowRoot):void 0,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]),up(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(E=this.slotsApi)==null||E.init(this.shadowRootContainer,this.store)}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();n(Xn)&&(n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).prevButtonActive=this.isPrevButtonActive(),n(Xn).endScreenVideoTitle=o.nextVideoTitle,n(Xn).endScreenVideoThumb=o.nextVideoThumb,n(Xn).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}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}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="Реклама",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,r;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"}),(r=this.svelteRootComponent)==null||r.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,n(Xn)&&(n(Xn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).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,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.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)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((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.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{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(r){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}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()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=_e(this.store.state.positionExact$),l=_e(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Yi.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();await 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)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Na(e)}};var md=require("@vkontakte/videoplayer-shared/es2018"),Rp=require("@vkontakte/videoplayer-core/es2018"),bT=()=>{window.customElements.define("vk-video-player",Vp)};
58
+ M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),$(m,p)};M(d,m=>{e.type==="off"?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}}),F()}function Em(t,e){H(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ye().ui.t,a=f(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ht(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyC},role:"button",children:(l,d)=>{let s=f(()=>i()?void 0:"outline");fa(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),F()}var Qy=k('<span class="duration s-1y" data-testid="video_duration"> </span>'),Gy=k('<div data-testid="time"><span class="current s-1y" data-testid="current_time"> </span> <!></div>'),Yy={hash:"s-1y",code:'.time.s-1y{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-1y{padding:0 0 0 8px}.current.s-1y{position:relative}.duration.s-1y{opacity:.7}.duration.s-1y:before{content:" / ";white-space:pre}'};function cc(t,e){H(e,!0),Q(t,Yy);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),a=g(e,"ref",15),l=Mt(),d=re(!1),s=f(()=>nn(e.duration)),u=f(()=>nn(e.position));var m=Gy();let p;var v=C(m),b=C(v,!0);S(v);var y=P(v,2);{var _=x=>{var I=Qy(),T=C(I,!0);S(I),O(()=>ge(T,n(s))),$(x,I)};M(y,x=>{r()&&x(_)})}S(m),Rs(m,()=>ql(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),tt(m,x=>a(x),()=>a()),O(x=>{p=ie(m,1,"time s-1y",null,p,x),ge(b,n(u))},[()=>({mobile:i()})]),$(t,m),F()}var pc=require("@vkontakte/videoplayer-shared/es2018");var jy=Ae('<path d="M21.8632 10.0832C22.2147 9.73171 22.7852 9.73171 23.1367 10.0832C23.4881 10.4347 23.4881 11.0051 23.1367 11.3566L18.6367 15.8566C18.2852 16.2081 17.7147 16.2081 17.3632 15.8566C17.0117 15.5051 17.0117 14.9347 17.3632 14.5832L21.8632 10.0832Z"></path><path d="M17.3632 11.3566C17.0117 11.0051 17.0117 10.4347 17.3632 10.0832C17.7147 9.73171 18.2852 9.73171 18.6367 10.0832L23.1367 14.5832C23.4881 14.9347 23.4881 15.5051 23.1367 15.8566C22.7852 16.2081 22.2147 16.2081 21.8632 15.8566L17.3632 11.3566Z"></path>',1),Xy=Ae("<path></path>"),Zy=Ae('<path d="M14 3C14.5523 3 15 3.44772 15 4V20C15 20.5523 14.5523 21 14 21C13.3585 21 12.7422 20.7509 12.2808 20.3052L6.79013 15H4C2.89543 15 2 14.1046 2 13V11C2 9.89543 2.89543 9 4 9H6.765L12.2794 3.6934C12.7418 3.24852 13.3584 3 14 3Z"></path><!>',1);function ma(t,e){H(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(u,m)=>m?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=f(()=>r(i(),o())),l=f(()=>un(e.size)),d="M16.8748 8.85259C17.2324 8.50731 17.8021 8.51726 18.1474 8.87481C18.5465 9.28803 18.8614 9.77691 19.0757 10.3128C19.2901 10.8486 19.4 11.4218 19.4 12C19.4 12.5782 19.2901 13.1514 19.0757 13.6872C18.8614 14.2231 18.5465 14.712 18.1474 15.1252C17.8021 15.4827 17.2324 15.4927 16.8748 15.1474C16.5173 14.8021 16.5073 14.2324 16.8526 13.8748C17.0876 13.6314 17.2757 13.3408 17.4045 13.0187C17.5333 12.6966 17.6 12.3504 17.6 12C17.6 11.6496 17.5333 11.3034 17.4045 10.9813C17.2757 10.6592 17.0876 10.3686 16.8526 10.1252C16.5073 9.76764 16.5173 9.19788 16.8748 8.85259Z",s="M19.2636 6.2636C19.6151 5.91213 20.1849 5.91213 20.5364 6.2636C21.2516 6.97878 21.9929 7.99659 22.3989 8.97678C22.7959 9.93525 23.0003 10.9625 23.0003 12C23.0003 13.0374 22.7959 14.0647 22.3989 15.0232C21.9929 16.0034 21.2516 17.0212 20.5364 17.7364C20.1849 18.0879 19.6151 18.0879 19.2636 17.7364C18.9121 17.3849 18.9121 16.8151 19.2636 16.4636C19.8484 15.8788 20.4384 15.0527 20.7359 14.3343C21.0425 13.5943 21.2003 12.801 21.2003 12C21.2003 11.1989 21.0425 10.4057 20.7359 9.66561C20.4384 8.94724 19.8484 8.12124 19.2636 7.5364C18.9121 7.18492 18.9121 6.61508 19.2636 6.2636Z";Xe(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,m)=>{var p=Zy(),v=P(se(p));{var b=_=>{var x=jy();Xt(),$(_,x)},y=_=>{var x=Xy();O(()=>De(x,"d",`${d}${n(a)==="max"?s:""}`)),$(_,x)};M(v,_=>{n(a)==="off"?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}}),F()}var Ro=require("@vkontakte/videoplayer-shared/es2018");var tp=require("@vkontakte/videoplayer-shared/es2018");var mb=require("@vkontakte/videoplayer-shared/es2018");var Jy=k('<div class="overlay"><!></div>');function Pm(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(l,"$overlayContainer$",i),l=ye().ui.overlayContainer$,d=K(void 0),s=v=>{!v||!n(d)||!v.contains(n(d))||v.removeChild(n(d))},u=v=>{!v||!n(d)||v.contains(n(d))||v.appendChild(n(d))};Fe(()=>{u(r())}),Lt(()=>(u(r()),()=>s(r())));var m=Jy(),p=C(m);ei(p,()=>{var v;return(v=e.children)!=null?v:yt}),S(m),tt(m,v=>N(d,v),()=>n(d)),$(t,m),F(),o()}var ex=k('<div class="tooltip s-1o"><div class="content s-1o"> </div> <div class="tooltip-pointer s-1o"></div></div>'),tx=k("<div><!></div> <!>",1),ix={hash:"s-1o",code:'.tooltip-wrapper.s-1o{display:flex;flex-direction:column;min-width:0}.full-width.s-1o{width:100%}.tooltip.s-1o{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1o{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1o{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function Ya(t,e){H(e,!0),Q(t,ix);let[i,o]=Be(),r=()=>w(j,"$overlayContainer$",i),a=()=>w(z,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),s=g(e,"active",15,!1),u=g(e,"translateX",3,0),m=g(e,"translateY",3,0),p=g(e,"isFullWidthWrapper",3,!1),v=g(e,"maxTooltipWidth",3,void 0),b=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,mb.noop),_=5,x=K(void 0),I=K(void 0),T,D=K(0),A=K(0),E=K(0),V=K(0),q=Mt(),L=ye(),z=L.ui.playerSize,j=L.ui.overlayContainer$;Fe(()=>{Pt(()=>{y()(s())})});let te=L.getLogger().createComponentLog("Tooltip component"),ee=be=>{if(!r()||!n(I)||!n(x))return;N(A,_);let W=r().getBoundingClientRect(),Ce=n(x).getBoundingClientRect(),ke=Ce.width,Qe=n(I).clientWidth,Te=a().width,we=(ke-Qe)/2,He=Ce.left+u()-W.left,st=He+we,ut=Ce.top+m()-W.top,It=Qe/2-_,lt=st<8,ri=st+Qe>Te-8;be==="top-left"&&(st=He),lt&&(st=8,It=He+Ce.width/2-2.5*_),ri&&(st=Te-8-Qe,It=Ce.left-W.left+Ce.width/2-st-_),N(E,st,!0),N(V,ut),N(D,It,!0)},oe=()=>{!r()||!n(I)||!n(x)||N(A,-_)},ae=()=>{if(!r()||!n(I)||!n(x))return;N(D,_);let be=r().getBoundingClientRect(),W=n(x).getBoundingClientRect(),Ce=W.height,ke=n(I).clientHeight,Qe=(Ce-ke)/2+ke,Te=W.left+u()-be.left-n(I).clientWidth,we=2,He=Te-_;He<8&&(He=8);let ut=W.top+m()-be.top+Qe,It=we-Qe/2,lt=we-_;N(E,He,!0),N(V,ut),N(A,It),N(D,lt)},le=()=>{!r()||!n(I)||!n(x)||N(D,-_)},ce=()=>{switch(b()){case"top":ee();break;case"bottom":oe();break;case"left":ae();break;case"top-left":ee("top-left");break;default:le();break}},X=()=>{try{if(!r()||!n(x))return;ce(),s(!0)}catch(be){te({message:String(be)})}},_e=()=>{s(!1)},Ee=()=>{n(I)&&(T||(T=window.setTimeout(X,q.controls.hideTimeoutTooltips)),s()&&X())},de=()=>{_e(),window.clearTimeout(T),T=void 0},ze=(be,W,Ce)=>{let ke="";switch(b()){case"top":ke=`transform: translate(${be}px, ${W}px);`;break;case"bottom":ke=`transform: translate(${be}px, ${W}px); top: auto; bottom: 100%;`;break;case"left":ke=`transform: translate(${be}px, ${W}px); left: 0; right: auto;`;break;default:ke=`transform: translate(${be}px, ${W}px);`}return ke+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,ke+=` opacity: ${Ce?1:0}; visibility: ${Ce?"visible":"hidden"}`,ke},ue=(be,W)=>{let Ce="";switch(b()){case"top-left":case"top":Ce=`transform: translate(${be}px, ${W}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ce=`transform: translate(${be}px, ${W}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ce=`transform: translate(${be}px, ${W}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ce=`transform: translate(${be}px, ${W}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ce},pe=f(()=>ze(n(E),n(V),s())),Z=f(()=>ue(n(D),n(A)));Lt(ce),cn(()=>window.clearTimeout(T));var B=tx(),fe=se(B);let me;fe.__pointermove=Ee,fe.__pointerdown=de,fe.__pointerup=function(...be){var W;(W=e.disableMouseupTooltipShow?void 0:Ee)==null||W.apply(this,be)};var Ie=C(fe);ei(Ie,()=>{var be;return(be=e.children)!=null?be:yt}),S(fe),tt(fe,be=>N(x,be),()=>n(x));var ot=P(fe,2);{var Me=be=>{Pm(be,{children:(W,Ce)=>{var ke=ex(),Qe=C(ke),Te=C(Qe,!0);S(Qe);var we=P(Qe,2);S(ke),tt(ke,He=>N(I,He),()=>n(I)),O(()=>{Ke(ke,n(pe)),ge(Te,d()),Ke(we,n(Z))}),$(W,ke)},$$slots:{default:!0}})};M(ot,be=>{d()&&!l()&&be(Me)})}O(be=>me=ie(fe,1,"tooltip-wrapper s-1o",null,me,be),[()=>({"full-width":p()})]),_t("pointerenter",fe,Ee),_t("pointerleave",fe,de),$(t,B),F(),o()}et(["pointermove","pointerdown","pointerup"]);var vb=t=>{t.stopPropagation()},ox=k("<div><!></div>"),nx={hash:"s-1i",code:".btn-container.s-1i{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-1i{min-width:0;width:100%}"};function Vo(t,e){H(e,!0),Q(t,nx);let[i,o]=Be(),r=()=>w(u,"$isGraphOpened$",i),a=()=>w(s,"$isMobile",i),l=ye(),d=yo(),s=l.ui.isMobile,u=d.graphIsOpened$,m=l.ui.t,p=g(e,"className",3,""),v=g(e,"disabled",3,!1),b=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),_=g(e,"width",15,void 0),x=g(e,"isFullWidthTooltip",3,!0),I=g(e,"tooltipContent",3,""),T=g(e,"tooltipVisible",3,!1),D=g(e,"tooltipPlacement",3,"top"),A=g(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),E=g(e,"isAriaHidden",3,!1),V=g(e,"onTooltipVisibilityChange",3,tp.noop),q=g(e,"initialTranslateXPx",3,0),L=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,tp.noop),j=g(e,"mouseLeave",3,tp.noop),te=f(()=>v()?r()?m("tooltip_disabled_when_graph_on"):A():I()),ee=K(!1);Fe(()=>{T()||N(ee,!1)});var oe=ox();oe.__pointerdown=[vb],oe.__click=[vb];var ae=C(oe);{var le=X=>{Ya(X,{get content(){return n(te)},get translateX(){return q()},get translateY(){return L()},get isFullWidthWrapper(){return x()},get placement(){return D()},get onVisibilityChange(){return V()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(ee)},set active(_e){N(ee,_e,!0)},children:(_e,Ee)=>{var de=Re(),ze=se(de);ei(ze,()=>{var ue;return(ue=e.children)!=null?ue:yt}),$(_e,de)},$$slots:{default:!0}})},ce=X=>{var _e=Re(),Ee=se(_e);ei(Ee,()=>{var de;return(de=e.children)!=null?de:yt}),$(X,_e)};M(ae,X=>{b()&&n(te)&&!a()?X(le):X(ce,!1)})}S(oe),tt(oe,X=>y(X),()=>y()),O(()=>{var X;ie(oe,1,`btn-container ${(X=p())!=null?X:""}`,"s-1i"),De(oe,"aria-hidden",E()||null)}),_t("mouseenter",oe,function(...X){var _e;(_e=z())==null||_e.apply(this,X)}),_t("mouseleave",oe,function(...X){var _e;(_e=j())==null||_e.apply(this,X)}),kn(oe,"clientWidth",_),$(t,oe),F(),o()}et(["pointerdown","click"]);var rx=Ae('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function uc(t,e){let i=f(()=>(e.completed,"interactive-episode-completed-icon"));Xe(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=rx(),l=se(a),d=P(l);O(()=>{De(l,"fill",sa),De(l,"fill-opacity",e.completed?1:.24),De(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(o,a)},$$slots:{default:!0}})}var sx=k("<div><!></div>"),ax={hash:"s-1d",code:".interactive-episode-icon.s-1d{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-1d{opacity:.4;pointer-events:none}"};function Am(t,e){H(e,!0),Q(t,ax);let o=ye().ui.t,r=K(0),a=f(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Vo(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=sx();let u;var m=C(s);let p=f(()=>!!e.videoEpisode.completed);uc(m,{get completed(){return n(p)}}),S(s),O(v=>{u=ie(s,1,"interactive-episode-icon s-1d",null,u,v),Ke(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),kn(s,"clientWidth",v=>N(r,v)),$(l,s)},$$slots:{default:!0}}),F()}var lx=k('<div><div class="video-episode-inner s-1b"><div class="video-episode-loaded s-1b"></div> <div></div></div></div>'),dx=k('<div class="video-episodes-wrap s-1b"></div>'),cx={hash:"s-1b",code:".video-episodes-wrap.s-1b{height:100%;position:absolute;width:100%}.video-episode.s-1b{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-1b:first-child{padding-left:0}.video-episode.s-1b:last-child{padding-right:0}.video-episode.s-1b:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-1b,.video-episode-inner.s-1b,.video-episode-loaded.s-1b{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-1b{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-1b:first-child .video-episode-inner:where(.s-1b),.video-episode.s-1b:last-child .video-episode-inner:where(.s-1b){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-1b{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-1b,.video-episode-loaded.s-1b{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-1b{background-color:var(--slider-filled-bg)}"};function km(t,e){Q(t,cx);let i=g(e,"videoEpisodes",19,()=>[]);var o=dx();xi(o,21,i,r=>r.from,(r,a)=>{var l=lx();let d;var s=C(l),u=C(s),m=P(u,2);let p;S(s),S(l),O((v,b)=>{d=ie(l,1,"video-episode s-1b",null,d,v),Ke(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ke(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=ie(m,1,"video-episode-filled s-1b",null,p,b),Ke(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(r,l)}),S(o),$(t,o)}function ux(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function px(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function fx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function mx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function vx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),a()(l)}var gx=k("<div></div>"),hx=k('<div class="bars s-t"><div class="loaded s-t"></div> <div></div></div>'),_x=k('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),bx={hash:"s-t",code:'.interactive-icons.s-t{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-t{top:-10px}.slider.s-t{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-t{cursor:default}.slider.s-t:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-t{background:var(--slider-bg);overflow:hidden}.bars.s-t,.loaded.s-t{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-t{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-t{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-t,.slider.square.s-t .filled:where(.s-t),.slider.square.s-t .loaded:where(.s-t),.slider.square.s-t>.bars:where(.s-t){border-radius:unset}.filled.active-live.s-t{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-t{background-color:var(--slider-filled-ads)}.handleWrap.s-t{left:-100%;position:absolute;width:100%}.handle.s-t{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-t{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-t .handle:where(.s-t),.slider-dragging.s-t .handle:where(.s-t),.slider.s-t:hover .handle:where(.s-t){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-t .handle:where(.s-t){transform:scale(1.3)}.slider-vertical.s-t{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-t{cursor:default;opacity:.4}'};function ja(t,e){H(e,!0),Q(t,bx);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),a=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),s=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),m=g(e,"videoEpisodes",19,()=>[]),p=g(e,"withWheelHandler",3,!1),v=g(e,"isInteractive",3,!1),b=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),_=g(e,"onPointerDown",3,Ro.noop),x=g(e,"onHandleMove",3,Ro.noop),I=g(e,"onPointerUp",3,Ro.noop),T=g(e,"onPointerEnter",3,Ro.noop),D=g(e,"onPointerMove",3,Ro.noop),A=g(e,"onPointerLeave",3,Ro.noop),E=g(e,"onMouseEnter",3,Ro.noop),V=g(e,"onMouseLeave",3,Ro.noop),q=g(e,"onWheelUp",3,Ro.noop),L=g(e,"onWheelDown",3,Ro.noop),z=g(e,"onWheelLeft",3,Ro.noop),j=g(e,"onWheelRight",3,Ro.noop),te=g(e,"onDisabledClick",3,Ro.noop),ee=g(e,"loadedProgress",3,0),oe=g(e,"filledProgress",3,0),ae=g(e,"handleProgress",3,0),le=g(e,"ariaLabel",3,""),ce=g(e,"ariaValueMin",3,void 0),X=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),Ee=g(e,"ariaValueText",3,""),de=g(e,"onContextMenu",3,Ro.noop),ze=g(e,"handleAlwaysVisible",3,!1),ue=Mt(),pe=K(void 0),Z=K(!1),B=f(()=>{var $e;return($e=X())!=null?$e:0}),fe=f(()=>{var $e;return(0,Ro.isNonNullable)(m())&&(($e=m()[m().length-1])==null?void 0:$e.time)<n(B)}),me=f(()=>(0,Ro.isNonNullable)(m())&&m().length&&n(fe)&&n(B)?Qe(ee()*100,oe()*100):[]);function Ie($e){if($e.preventDefault(),i()&&N(pe,i().getBoundingClientRect(),!0),b())return;let Oe=Ce($e.clientX,$e.clientY),mt=ke($e.clientX);T()(Oe,mt,n(pe).width)}function ot($e){$e.preventDefault(),!b()&&A()()}function Me(){E()()}function be(){V()()}function W($e){b()||p()&&($e.preventDefault(),$e.deltaY<0?q()():$e.deltaY>0?L()():$e.deltaX>0?j()():z()())}function Ce($e,Oe){return l()?Math.max(0,Math.min(1,(n(pe).height-(Oe-n(pe).top))/n(pe).height)):Math.min(Math.max($e-n(pe).x,0),n(pe).width)/n(pe).width}function ke($e){return Math.min(Math.max($e-n(pe).x,0),n(pe).width)}function Qe($e,Oe){let mt=ue.features.episodesClustering&&!v()?ue.episodeMinWidthPc:0,Et=[],Se=m()[0].time/n(B)*100,Ye=0,Ue=0;for(let Tt=1;Tt<m().length;Tt++)Ye=m()[Tt].time/n(B)*100,Ye-Se>mt&&(Et.push({from:Se,width:Math.max(0,Ye-Se),loadedWidth:Math.max(0,Math.min(Ye,$e)-Se),filledWidth:Math.max(0,Math.min(Ye,Oe)-Se),interactive:m()[Tt-1].interactive,completed:m()[Tt-1].completed}),Se=m()[Tt].time/n(B)*100,Ue++);let xe={from:Se,width:Math.max(0,100-Se),loadedWidth:Math.max(0,Math.min($e,100)-Se),filledWidth:Math.max(0,Math.min(Oe,100)-Se),interactive:m()[Ue].interactive,completed:m()[Ue].completed};100-Se<mt?(Ue-=1,Et[Ue].width+=100-Se,Et[Ue].loadedWidth+=Math.max(0,Math.min($e,100)-Se),Et[Ue].filledWidth+=Math.max(0,Math.min(Oe,100)-Se)):Et[Ue]=xe;let Nt=m()[0].time;if(Nt!==0){let Tt=Nt/n(B)*100;Et.unshift({from:0,width:Tt,loadedWidth:Math.min(Tt,$e),filledWidth:Math.min(Tt,Oe)})}return Et}function Te($e){return Math.max(0,Math.min(100,$e*100))}let we=f(()=>Te(ee())),He=f(()=>Te(oe()));var st=_x(),ut=se(st);{var It=$e=>{var Oe=gx();let mt;xi(Oe,21,()=>n(me),Et=>Et.from,(Et,Se)=>{var Ye=Re(),Ue=se(Ye);{var xe=Nt=>{Am(Nt,{get videoEpisode(){return n(Se)},get disabled(){return b()}})};M(Ue,Nt=>{n(Se).interactive&&Nt(xe)})}$(Et,Ye)}),S(Oe),O(Et=>mt=ie(Oe,1,"interactive-icons s-t",null,mt,Et),[()=>({mobile:s(),hidden:s()&&!n(Z)})]),$($e,Oe)};M(ut,$e=>{v()&&$e(It)})}var lt=P(ut,2);let ri;lt.__pointerdown=[ux,i,pe,b,Z,Ce,_],lt.__pointermove=[px,b,Ce,ke,D,pe,Z,x],lt.__pointerup=[fx,b,Z,Ce,I],lt.__click=[mx,b,te,Ce],lt.__contextmenu=[vx,Ce,b,te,Z,de];var St=C(lt);{var Rt=$e=>{km($e,{get videoEpisodes(){return n(me)},get disabled(){return b()},get isMobile(){return s()}})},Dt=$e=>{var Oe=hx(),mt=C(Oe),Et=P(mt,2);let Se;S(Oe),O(Ye=>{De(mt,"data-value",n(we)),Ke(mt,`transform: translateX(${n(we)}%);`),Se=ie(Et,1,"filled s-t",null,Se,Ye),De(Et,"data-value",n(He)),Ke(Et,`transform: translateX(${n(He)}%);`)},[()=>({"active-live":d()})]),$($e,Oe)};M(St,$e=>{n(me).length?$e(Rt):$e(Dt,!1)})}var Wt=P(St,2);let Le;var Y=C(Wt);let Ne;S(Wt),S(lt),tt(lt,$e=>i($e),()=>i()),O(($e,Oe,mt,Et)=>{var Se,Ye;ri=ie(lt,1,`slider ${(Se=o())!=null?Se:""}`,"s-t",ri,$e),De(lt,"aria-label",le()),De(lt,"aria-valuemin",ce()),De(lt,"aria-valuemax",X()),De(lt,"aria-valuenow",_e()),De(lt,"aria-valuetext",Ee()),De(lt,"data-testid",(Ye=r())!=null?Ye:null),Le=ie(Wt,1,"handleWrap s-t",null,Le,Oe),Ke(Wt,mt),Ne=ie(Y,1,"handle s-t",null,Ne,Et)},[()=>({disabled:b(),"slider-dragging":n(Z),hidden:a(),"handle-always-visible":ze(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Te(ae())}%);`,()=>({"active-live":d()})]),_t("pointerenter",lt,Ie),_t("pointerleave",lt,ot),_t("mouseenter",lt,Me),_t("mouseleave",lt,be),_t("wheel",lt,W),$(t,st),F()}et(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ao=(t,e)=>Yd[t]>=Yd[e];var Bs=(t,e)=>Yd[t]<=Yd[e],gb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var yx=k("<div><!></div>"),xx=k("<div><!> <!></div>"),wx={hash:"s-28",code:".volumeBar-container.s-28{align-items:center;display:flex}.vertical.s-28 .btn,.vertical.s-28 .tooltip-wrapper,.volumeBar-container.vertical.s-28{width:40px}.volumeBar.s-28{align-items:center;display:flex;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.s-28{padding:0 8px 0 0;width:0}"};function Lm(t,e){var ke,Qe;H(e,!0),Q(t,wx);let[i,o]=Be(),r=()=>w(D,"$isAudioAvailable$",i),a=()=>w(v,"$muted$",i),l=()=>w(p,"$volume$",i),d=()=>w(x,"$currentGridType$",i),s=()=>w(Ie,"$controlsVisible",i),u=ye(),m=Mt(),p=u.state.volume$,v=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:_}=u.actions.internal,x=u.ui.currentGridType$,I=(ke=u.callbacks)==null?void 0:ke.onAudioDoesNotExistHint,T=(Qe=u.callbacks)==null?void 0:Qe.onAudioDisabledHint,D=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,E=u.ui.t,V=K(!1),q,L=f(()=>e.isAds||r()),z=f(()=>!n(L)||a()||l()===0),j=f(()=>Bs(d(),"l")),te=f(()=>n(j)?"":n(z)?!r()||A?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),ee=f(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),oe=f(()=>n(z)?0:l()),ae=!1,le=f(()=>e.isAds?!1:A?!T:r()?!1:!I);function ce(Te){y(),b(Te)}function X(){Xu(u,l(),m.controls.volumeStepWheel)}function _e(){Zu(u,l(),m.controls.volumeStepWheel)}function Ee(Te){b(Te)}function de(Te){b(Te),_()}function ze(){ae=!0}function ue(){ae=!1,B()}function pe(){clearTimeout(q),N(V,!0)}function Z(){B()}function B(){q=window.setTimeout(()=>{ae||N(V,!1)},m.controls.volumeBarTimeout)}function fe(Te){Te.preventDefault(),Te.deltaY<0?X():Te.deltaY>0&&_e()}let me=K(!1),Ie=u.ui.controlsVisible;Fe(()=>{s()||N(me,!1)});var ot=xx();let Me;var be=C(ot);Ya(be,{get content(){return n(te)},translateY:-18,get active(){return n(me)},set active(Te){N(me,Te,!0)},children:(Te,we)=>{let He=f(()=>n(j)?"btn-volume-vertical":"btn-volume-horizontal");Ht(Te,{className:"btn-full-opacity",get disabled(){return n(le)},get testId(){return n(He)},get ariaLabel(){return n(ee)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyM},role:"button",children:(st,ut)=>{ma(st,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var W=P(be,2);{var Ce=Te=>{var we=yx();let He;var st=C(we);let ut=f(()=>n(j)?"volumeBar-slider-vertical":""),It=f(()=>n(j)&&!n(V)),lt=f(()=>n(j)?ze:pc.noop),ri=f(()=>n(j)?ue:pc.noop),St=f(()=>Math.round(n(oe)*100)),Rt=f(()=>`${Math.round(n(oe)*100)}%`),Dt=f(()=>n(j)?"volume-slider-vertical":"volume-slider");ja(st,{get className(){return n(ut)},get isHidden(){return n(It)},get isVertical(){return n(j)},withWheelHandler:!0,onWheelUp:X,onWheelDown:_e,onPointerDown:ce,onHandleMove:Ee,onPointerUp:de,get onPointerEnter(){return n(lt)},get onPointerLeave(){return n(ri)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(St)},get ariaValueText(){return n(Rt)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(Dt)}}),S(we),O(Wt=>He=ie(we,1,"volumeBar s-28",null,He,Wt),[()=>({"volumeBar-vertical":n(j)})]),$(Te,we)};M(W,Te=>{n(L)&&Te(Ce)})}S(ot),O(Te=>Me=ie(ot,1,"volumeBar-container s-28",null,Me,Te),[()=>({vertical:n(j)})]),_t("mouseenter",ot,function(...Te){var we;(we=n(j)?pe:pc.noop)==null||we.apply(this,Te)}),_t("mouseleave",ot,function(...Te){var we;(we=n(j)?Z:pc.noop)==null||we.apply(this,Te)}),_t("wheel",ot,fe),$(t,ot),F(),o()}var hb=require("@vkontakte/videoplayer-shared/es2018");var Sx=Ae('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),Cx=Ae('<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.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Mm(t,e){let i=g(e,"isFullscreen",8,!1),o=Tn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=Re(),d=se(l);{var s=m=>{var p=Sx();$(m,p)},u=m=>{var p=Cx();$(m,p)};M(d,m=>{i()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}function fc(t,e){H(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,hb.noop),r=ye(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=f(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ht(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=ca(u);a.set(m),o()()},get ariaKeyShortCut(){return _s.KeyF},role:"button",children:(u,m)=>{Mm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Tx=Ae('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Vm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Tx();so(o,()=>({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 r=C(o);ei(r,()=>{var a;return(a=e.children)!=null?a:yt}),Xt(),S(o),$(t,o)}var Ix=Ae('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Rm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Ix();so(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=C(o);ei(r,()=>{var a;return(a=e.children)!=null?a:yt}),Xt(6),S(o),$(t,o)}var Ex={hash:"s-29",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Dm(t,e){H(e,!0),Q(t,Ex);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=f(()=>!o()&&!i()?91:i()?l:95),s=f(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=f(()=>`0 0 ${n(d)} 24`);Rm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),F()}function mc(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(b,"$isMobile",i),a=()=>w(v,"$currentGridType$",i),l=()=>w(_,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),s=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),m=Mt(),p=ye(),v=p.ui.currentGridType$,b=p.ui.isMobile,y=p.ui.t,_=p.isCyrillicRelatedInterface$,x=f(()=>m.logoType!=="vk"),I=f(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=f(()=>(r()&&Bs(a(),"m")||Bs(a(),"l"))&&n(x)),D=()=>{var V,q;e.click(),(V=p.callbacks)!=null&&V.onLogoClicked?(q=p.callbacks)==null||q.onLogoClicked():u()&&window.open(u(),"_blank")},A=f(()=>!s()),E=f(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");Ht(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:D,get testId(){return n(E)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(V){d(V)},children:(V,q)=>{var L=Re(),z=se(L);{var j=ee=>{Dm(ee,{get logo(){return m.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},te=ee=>{Vm(ee,{})};M(z,ee=>{n(x)?ee(j):ee(te,!1)})}$(V,L)},$$slots:{default:!0}}),F(),o()}var bb=require("@vkontakte/videoplayer-core/es2018");var Nm=require("@vkontakte/videoplayer-core/es2018");var Px=Ae('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-16"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-16"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-16"></path>',1),Ax=Ae('<path d="M3.60219 13.2993C6.41858 13.2995 8.70256 15.5835 8.70278 18.3999C8.70277 18.6469 8.68424 18.8909 8.65004 19.1294C8.57937 19.6212 8.12333 19.9625 7.63149 19.8921C7.13968 19.8213 6.79823 19.3654 6.86879 18.8735C6.89087 18.7195 6.90199 18.5611 6.902 18.3999C6.90178 16.5776 5.42447 15.1003 3.60219 15.1001C3.441 15.1001 3.28267 15.1112 3.12856 15.1333C2.63666 15.2039 2.18077 14.8624 2.11 14.3706C2.03966 13.8788 2.38091 13.4227 2.8727 13.3521C3.11125 13.3178 3.35516 13.2993 3.60219 13.2993Z"></path><path d="M3.60219 9.69971C8.40682 9.69977 12.3021 13.5953 12.3024 18.3999C12.3024 18.6248 12.2938 18.8489 12.277 19.0698C12.239 19.5651 11.8065 19.9365 11.3112 19.8989C10.8157 19.8611 10.4445 19.4286 10.4821 18.9331C10.4954 18.7576 10.5026 18.5791 10.5026 18.3999C10.5023 14.5894 7.41271 11.5005 3.60219 11.5005C3.42268 11.5005 3.24474 11.5066 3.06899 11.52C2.57352 11.5578 2.14115 11.1863 2.10317 10.6909C2.06587 10.1957 2.43694 9.76287 2.93227 9.7251C3.15348 9.70823 3.37699 9.69971 3.60219 9.69971Z"></path><path d="M3.60219 16.8999C4.43047 16.8999 5.10198 17.5717 5.10219 18.3999C5.10209 19.2282 4.43054 19.8999 3.60219 19.8999C2.77383 19.8999 2.10229 19.2282 2.10219 18.3999C2.10241 17.5717 2.7739 16.8999 3.60219 16.8999Z"></path><path d="M16.2379 4.1001C17.0459 4.10009 17.7067 4.10017 18.2438 4.14404C18.7997 4.18946 19.3022 4.28599 19.7711 4.5249C20.5049 4.89882 21.1014 5.49623 21.4752 6.22998C21.714 6.69873 21.8107 7.20063 21.8561 7.75635C21.9 8.29338 21.9001 8.95424 21.9 9.76221V14.2378C21.9001 15.0458 21.9 15.7066 21.8561 16.2437C21.8107 16.7996 21.7141 17.3021 21.4752 17.771C21.1014 18.5046 20.5048 19.1012 19.7711 19.4751C19.3022 19.714 18.7997 19.8105 18.2438 19.856C17.7067 19.8998 17.0459 19.8999 16.2379 19.8999H14.9997C14.503 19.8996 14.1005 19.4972 14.1002 19.0005C14.1002 18.5036 14.5028 18.1004 14.9997 18.1001H16.1998C17.0548 18.1001 17.6422 18.0992 18.0973 18.062C18.5419 18.0257 18.7809 17.9596 18.9538 17.8716C19.3489 17.6702 19.6704 17.3487 19.8717 16.9536C19.9598 16.7808 20.0258 16.5417 20.0622 16.0972C20.0993 15.6421 20.1002 15.0546 20.1002 14.1997V9.80029C20.1002 8.94536 20.0993 8.35794 20.0622 7.90283C20.0258 7.45834 19.9598 7.21921 19.8717 7.04639C19.6704 6.6514 19.3487 6.33073 18.9538 6.12939C18.7809 6.04133 18.5419 5.97431 18.0973 5.93799C17.6422 5.9008 17.0548 5.8999 16.1998 5.8999H6.00063L5.83071 5.90674C4.99191 5.97398 4.28981 6.53462 4.01918 7.30029C3.85342 7.76872 3.33928 8.01472 2.87075 7.84912C2.40214 7.68346 2.15628 7.16833 2.32192 6.69971C2.85696 5.18632 4.30125 4.1001 6.00063 4.1001H16.2379Z"></path><path d="M2.95114 7.11345C2.42394 7.1914 1.90399 6.78569 2.00995 6.2634C2.05777 6.0277 2.12517 5.82449 2.22018 5.63803C2.5078 5.07354 2.96674 4.6146 3.53123 4.32698C4.17296 4 5.01304 4 6.6932 4H17.2001C18.8803 4 19.7204 4 20.3621 4.32698C20.9266 4.6146 21.3855 5.07354 21.6731 5.63803C22.0001 6.27976 22.0001 7.11984 22.0001 8.8V15.2C22.0001 16.8802 22.0001 17.7202 21.6731 18.362C21.3855 18.9265 20.9266 19.3854 20.3621 19.673C19.7204 20 18.8803 20 17.2001 20H15.7196C15.2009 20 14.8203 19.5134 14.8938 19C14.9638 18.5101 15.0001 18.0093 15.0001 17.5C15.0001 11.701 10.2991 7 4.5001 7C3.97384 7 3.45662 7.03872 2.95114 7.11345Z"></path>',1),kx={hash:"s-16",code:".animated.s-16{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-16{animation-name:s-16-wave1}.wave2.animated.s-16{animation-name:s-16-wave2}.wave3.animated.s-16{animation-name:s-16-wave3}@keyframes s-16-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-16-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-16-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function vc(t,e){H(e,!0),Q(t,kx);let i=g(e,"isMobile",3,!1),o=f(()=>e.iconState===Nm.ChromecastState.CONNECTED),r=f(()=>e.iconState===Nm.ChromecastState.CONNECTING),a=f(()=>n(o)?"#2688EB":sa),l=f(()=>e.size?un(e.size):void 0);var d=Re(),s=se(d);{var u=p=>{Xe(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,b)=>{var y=Px();Xt(2),$(v,y)},$$slots:{default:!0}})},m=p=>{Xe(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,b)=>{var y=Ax(),_=se(y);let x;var I=P(_);let T;var D=P(I);let A;var E=P(D);let V;var q=P(E);let L;O((z,j,te,ee,oe)=>{x=ie(_,0,"wave2 s-16",null,x,z),T=ie(I,0,"wave3 s-16",null,T,j),A=ie(D,0,"wave1 s-16",null,A,te),V=ie(E,0,"s-16",null,V,ee),L=ie(q,0,"s-16",null,L,oe)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),$(v,y)},$$slots:{default:!0}})};M(s,p=>{i()?p(u):p(m,!1)})}$(t,d),F()}var $b=require("@vkontakte/videoplayer-shared/es2018");function gc(t,e){H(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,$b.noop),l=ye().ui.t,d=f(()=>e.state===bb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ht(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{vc(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var yb=require("@vkontakte/videoplayer-shared/es2018");var Lx=Ae('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Om(t){Xe(t,{testId:"episodes-icon",children:(e,i)=>{var o=Lx();Xt(2),$(e,o)},$$slots:{default:!0}})}var ip=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Mx=k('<span class="text mobile s-23"> </span> <div class="chevron-episodes s-23" data-testid="btn-episodes_icon"><!></div>',1),Vx=k('<span class="text s-23"> </span>'),Rx=k('<span class="text count s-23"> </span>'),Dx=k('<span class="icon s-23"><!></span> <!>',1),Nx={hash:"s-23",code:".icon.s-23{flex-shrink:0}.text.s-23{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-23{overflow:visible}.text.mobile.s-23{padding:0 3px 0 4px}.chevron-episodes.s-23{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function hc(t,e){var ae,le,ce;H(e,!0),Q(t,Nx);let[i,o]=Be(),r=()=>w(y,"$currentGridType$",i),a=()=>w(_,"$openedByKeyboard$",i),l=()=>w(x,"$panelOpened$",i),d=()=>w(I,"$isMobile",i),s=g(e,"position",3,0),u=g(e,"duration",3,0),m=g(e,"timeCodes",19,()=>[]),p=ye(),v=(le=(ae=p.callbacks)==null?void 0:ae.onEpisodeChanged)!=null?le:yb.noop,b=!!((ce=p.callbacks)!=null&&ce.onEpisodeClicked),y=p.ui.currentGridType$,_=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,D=K(void 0),A=X=>{var Ee,de,ze;if(!!((Ee=p.callbacks)!=null&&Ee.onEpisodeClicked)){let ue=ca(X);_.set(ue),x.set(!0),(ze=(de=p.callbacks)==null?void 0:de.onEpisodeClicked)==null||ze.call(de,ue)}},E=K(null),V=f(()=>s()/u());Fe(()=>{var _e;let X=ip(n(V),u(),m());X?((_e=n(E))==null?void 0:_e.time)!==X.time&&(v(X),N(E,X,!0)):N(E,null)});let q=f(()=>{var X;return((X=n(E))==null?void 0:X.text)||""}),L=f(()=>ao(r(),"xl")?"FULL":ao(r(),"m")?"COUNT":"SHORT"),z=f(()=>`${T("tooltip_episodes")}: ${n(q)}`),j=async(X,_e,Ee)=>{await ho(),(X==null?void 0:X.getAttribute("aria-expanded"))==="false"&&_e&&!Ee&&Pt(()=>{_.set(!1),X.focus()})};Fe(()=>{j(n(D),a(),l())});var te=Re(),ee=se(te);{var oe=X=>{let _e=f(()=>d()?"px-0":""),Ee=f(()=>!b);Ht(X,{get className(){var de;return`w-max btn-full-opacity btn-jc-l ${(de=n(_e))!=null?de:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Ee)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(D)},set ref(de){N(D,de,!0)},children:(de,ze)=>{var ue=Re(),pe=se(ue);{var Z=fe=>{var me=Mx(),Ie=se(me),ot=C(Ie,!0);S(Ie);var Me=P(Ie,2),be=C(Me);kr(be,{direction:"right"}),S(Me),O(()=>ge(ot,n(q))),$(fe,me)},B=fe=>{var me=Dx(),Ie=se(me),ot=C(Ie);Om(ot,{}),S(Ie);var Me=P(Ie,2);{var be=Ce=>{var ke=Vx(),Qe=C(ke,!0);S(ke),O(()=>ge(Qe,n(q))),$(Ce,ke)},W=(Ce,ke)=>{{var Qe=Te=>{var we=Rx(),He=C(we,!0);S(we),O(()=>ge(He,m().length)),$(Te,we)};M(Ce,Te=>{n(L)==="COUNT"&&Te(Qe)},ke)}};M(Me,Ce=>{n(L)==="FULL"?Ce(be):Ce(W,!1)})}$(fe,me)};M(pe,fe=>{d()?fe(Z):fe(B,!1)})}$(de,ue)},$$slots:{default:!0}})};M(ee,X=>{n(E)&&X(oe)})}$(t,te),F(),o()}var mv=require("@vkontakte/videoplayer-shared/es2018");var fi=require("@vkontakte/videoplayer-core/es2018"),dt=require("@vkontakte/videoplayer-shared/es2018"),Mr=require("@vkontakte/videoplayer-statistics/es2018");var Ge=require("@vkontakte/videoplayer-shared/es2018"),lo=require("@vkontakte/videoplayer-shared/es2018"),Ox="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",op=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 lo.Subject,loadStarted$:new lo.Subject,loadEnded$:new lo.Subject,loadError$:new lo.Subject,ready$:new lo.Subject,slotRequested$:new lo.Subject,started$:new lo.Subject,timeRemained$:new lo.Subject,paused$:new lo.Subject,resumed$:new lo.Subject,ended$:new lo.Subject,empty$:new lo.Subject,skipped$:new lo.Subject,clicked$:new lo.Subject,closed$:new lo.Subject,error$:new lo.Subject};this.loadAdman=e=>(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ge.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ge.now)()]}),o())};(0,lo.addScript)(Ox,e,this.loadTimeout).then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ge.now)()]}),window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ge.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ge.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ge.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ge.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ge.now)()]}),!d&&(window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ge.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ge.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(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?he(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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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")=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ge.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ge.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}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){var A,E;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ge.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:p,json:v}=e;this.externalApi=p;let b,y=this.playerState&&he(this.playerState.vsid);y&&(this.isVsidOriginal?b=y:b=parseInt(y,36));let{isEmbed:_,immediateOrigin:x}=(0,Ge.detectEmbed)(),I=(A=_?x:window.location.href)!=null?A:window.location.href,T=(0,Ge.withoutNullable)({...s,dl:encodeURIComponent(I),autoplay:r?1:0,player_width:i,player_height:o,...b?{request_id:b}:{},duration:m,...u}),D=(0,Ge.withoutNullable)({slot:v?void 0:d,wrapper:a,videoEl:l,videoQuality:o,params:v?void 0:T,browser:{mobile:!1},json:v});try{let V=new window.AdmanHTML;if(V.onReady(this.onAdsReady),V.onStarted(this.onAdStarted),V.onPlayed(this.onAdPlayed),V.onPaused(this.onAdPaused),V.adMidrollPoint(this.onAdMidrollPoint),V.onClosed(this.onAdClosed),V.onSkipped(this.onAdSkipped),V.onClicked(this.onAdClicked),V.onTimeRemained(this.onAdTimeRemained),V.onCompleted(this.onAdCompleted),V.onError(this.onAdError),V.setDebug(!1),!v&&((E=this.externalApi)!=null&&E.videoGetAds)){let q=await this.safeExternalCall(this.externalApi.videoGetAds,T);q&&(delete D.slot,delete D.params,Object.assign(D,{json:q}))}V.init(D),this.adman=V,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(D)}`})}catch(V){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(V)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,a;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ge.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)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adsState){this.log({message:"toggle play"});let i=he(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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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,r,a,l,d,s,u,m,p,v;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ge.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),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,lo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}}};var xb=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 Bm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new np,{startTime:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new Hm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},np=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",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},Hm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((m,p)=>{let v=l.indexOf(p,d);return m===-1||m>v?v:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new np;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},wb=Bm;var sp=require("@vkontakte/videoplayer-shared/es2018"),Xa,Ri,Fm=0,Um=!1,Sb="",Cb=(t,e=0,i=0)=>t<e&&t<i,rp=(t,e=0,i=0)=>t>=e&&t<=i,Bx=(t,e=0,i=0)=>t>e&&t>i,Tb=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:m})=>rp(t,u,m));let a=t>=Fm,l=t<Fm;if(Fm=t,l&&(Um=!1),(0,sp.isNonNullable)(Xa)&&rp(t,Xa.startTime,Xa.endTime)&&Sb===e.value)return Xa;if(!(0,sp.isNonNullable)(Ri)&&(r!=null&&r.length)&&!Um){Ri=r.find(({startTime:u,endTime:m})=>rp(t,u,m)||a&&Cb(t,u,m)),Xa=void 0,!(0,sp.isNonNullable)(Ri)&&r[r.length-1].endTime<t&&(Um=!0);return}else{if(rp(t,Ri==null?void 0:Ri.startTime,Ri==null?void 0:Ri.endTime))return Xa=Ri,Ri=void 0,Sb=e.value,Xa;(a&&Bx(t,Ri==null?void 0:Ri.startTime,Ri==null?void 0:Ri.endTime)||l&&Cb(t,Ri==null?void 0:Ri.startTime,Ri==null?void 0:Ri.endTime))&&(Ri=void 0)}};var ap={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},Hx={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"},_c=t=>{var e,i;return(i=(e=ap[t])!=null?e:ap[Hx[t]])!=null?i:void 0};var cp=require("@vkontakte/videoplayer-shared/es2018");function lp(t){let e="";return Xi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Xi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Xi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Xi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Xi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Xi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Xi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Xi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Xi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Xi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Xi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Xi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Xi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Xi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Xi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Xi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Xi(t.controlsDesktopPaddingHorizontalMinimalView)&&(e+=`--controls-desktop-padding-horizontal-minimal-view:${t.controlsDesktopPaddingHorizontalMinimalView};`),Xi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Xi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Xi(t.font)&&(e+=`--font:${t.font};`),Xi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Xi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Xi(t){return typeof t=="string"&&!t.includes(";")}var Fx=Ae('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),Ux=k('<div data-testid="player-pip-dummy"><div><!></div> <span class="title s-0"> </span></div>'),zx={hash:"s-0",code:".player-pip-dummy.s-0{align-items:center;background-color:#19191a;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;width:100%}.player-pip-dummy.is-pip-api.s-0{position:relative}.dummy-image.s-0 svg{transform:scale(1.07143)}.dummy-image.desktop.s-0{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-0{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function zm(t,e){H(e,!0),Q(t,zx);let[i,o]=Be(),r=()=>w(u,"$interfaceLanguage$",i),a=()=>w(m,"$isMobile$",i),l=ye(),d=Mt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,v=f(()=>r()&&p("pip_dummy_title")),b=lp(d.view);var y=Ux();let _;var x=C(y);let I;var T=C(x);Xe(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,V)=>{var q=Fx();Xt(),$(E,q)},$$slots:{default:!0}}),S(x);var D=P(x,2),A=C(D,!0);S(D),S(y),O((E,V)=>{_=ie(y,1,"player-pip-dummy s-0",null,_,E),Ke(y,b),I=ie(x,1,"dummy-image s-0",null,I,V),ge(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),$(t,y),F(),o()}var qm=require("@vkontakte/videoplayer-core/es2018"),bs=require("@vkontakte/videoplayer-shared/es2018");var bc=require("@vkontakte/videoplayer-shared/es2018"),Hs=()=>{var t;return(t=(0,bc.getWindow)().document)==null?void 0:t.pictureInPictureEnabled},Za=()=>{let{isEmbed:t}=(0,bc.detectEmbed)();return"documentPictureInPicture"in(0,bc.getWindow)()&&!t},dp=t=>!!t.pictureInPictureWindow,Ib=t=>!!t.target&&"height"in t.target&&"width"in t.target,Eb=t=>typeof t=="boolean"?t:t!==void 0,Wm=t=>[...t.cssRules].map(e=>e.cssText).join(" "),Km=(t,e)=>{let i=document.createElement("style");return i.setAttribute("id",e),i.textContent=t,i};var Ja=class{constructor({enabled:e=!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,bs.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new bs.ValueSubject(!1),isEnabled$:new bs.ValueSubject(!1),type:0};this.info.isEnabled$=new bs.ValueSubject(e)}isSupported(){return Hs()}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){let{document:e}=(0,bs.getWindow)();!this.isSupported()||!this.isActive()||!this.videoElement||!e.pictureInPictureElement||(await e.exitPictureInPicture(),qm.clientChecker.browser.isYandex&&!this.videoElement.isConnected&&this.onLeavePictureInPicture())}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var i;this.removeEventHandlers();let e=this.videoElement;this.videoElement=(i=this.playerContainer)==null?void 0:i.querySelector("video"),this.waitForSafariLeavePictureInPicture(e,this.videoElement),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={...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)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var o,r;let i=dp(e)?e.pictureInPictureWindow:void 0;this.info.isActive$.next(!0),this.isRequested=!0,i==null||i.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o)}onLeavePictureInPicture(e){var i,o;if(e){let r=dp(e)?e.pictureInPictureWindow:void 0;r==null||r.removeEventListener("resize",this.eventHandlers.resize)}this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),(o=(i=this.externalEventHandlers).leavepictureinpicture)==null||o.call(i)}onResize(e){var o,r;let i=Ib(e)?e.target:dp(e)?e.pictureInPictureWindow:void 0;i&&((r=(o=this.externalEventHandlers).resize)==null||r.call(o,{width:i.width,height:i.height}))}setEnabled(e){this.info.isEnabled$.next(e)}waitForSafariLeavePictureInPicture(e,i){if(qm.clientChecker.browser.isSafari&&e&&e!==i){let r=this.eventHandlers.leavepictureinpicture,a=0,l=()=>{(0,bs.getWindow)().clearTimeout(a),e.removeEventListener("leavepictureinpicture",d)},d=s=>(r(s),l());e.addEventListener("leavepictureinpicture",d),a=(0,bs.getWindow)().setTimeout(l,1e3)}}};function Gm(t){return t instanceof Ja}var Wx=Object.defineProperty,Kx=(t,e,i)=>e in t?Wx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Fs=(t,e,i)=>Kx(t,typeof e!="symbol"?e+"":e,i),qx=400,Qx=225,Pb="parent-styles",yc=class{constructor({enabled:e=!0,initialSize:i={width:qx,height:Qx}}){Fs(this,"initialSize"),Fs(this,"playerDomElement"),Fs(this,"playerParentShadowRoot"),Fs(this,"playerDummyElement"),Fs(this,"svelteContext"),Fs(this,"pipWindow"),Fs(this,"info",{isActive$:new cp.ValueSubject(!1),isEnabled$:new cp.ValueSubject(!1),type:1}),Fs(this,"pipActive",!1),Fs(this,"pipApi"),this.initialSize=i,this.info.isEnabled$=new cp.ValueSubject(e),Hs()&&(this.pipApi=new Ja({enabled:e}),this.pipApi.info.isActive$.subscribe(o=>{(o&&!this.info.isActive$.getValue()||!o&&this.pipActive)&&this.info.isActive$.next(o),this.pipActive=o}))}isSupported(){return Za()}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({...this.initialSize,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(Wm).filter(Boolean).join(`
59
+ `),r=Km(o,Pb),a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Gr(zm,d),(e=this.pipWindow)==null||e.document.body.append(a),this.pipWindow.focus(),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{if(!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement)return;let u=[];[...l.styleSheets].forEach(m=>{var p,v,b;let{ownerNode:y}=m,_=m.cssRules.item(0);if(y&&y.id!==Pb&&_){let x=(v=(p=_.selectorText)==null?void 0:p.split("."))!=null?v:[],I=x.length?x[x.length-1]:"";(I?(b=this.playerParentShadowRoot)==null?void 0:b.querySelector(`style#${I}`):null)||u.push(Km(Wm(m),I))}}),u.length&&this.playerParentShadowRoot.append(...u),Oa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0})}async exit(){return new Promise(e=>{var i,o,r;this.pipWindow?((i=documentPictureInPicture.window)==null||i.close(),window.focus()):(o=this.pipApi)!=null&&o.isActive()&&((r=this.pipApi)==null||r.exit()),e()})}async dispose(){await this.exit()}setEnabled(e){var i;this.info.isEnabled$.next(e),(i=this.pipApi)==null||i.setEnabled(e)}assignPlayerContainer(e){var i;(i=this.pipApi)==null||i.assignPlayerContainer(e)}updateVideoElement(){var e;(e=this.pipApi)==null||e.updateVideoElement()}setExternalEventHandlers(e){var i;(i=this.pipApi)==null||i.setExternalEventHandlers(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 up(t){return t instanceof yc}var Ym=(t,e)=>{if(Eb(e)&&Za())return new yc({enabled:t,...typeof e!="boolean"&&e});if(Hs())return new Ja({enabled:t})};var Ab=require("@vkontakte/videoplayer-shared/es2018"),SB=require("@vkontakte/videoplayer-statistics/es2018"),pp=class{constructor(e,i,o,r=new Ab.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}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 xc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(xc||{});var $s=t=>t!=null?t:0,Us=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round($s(i==null?void 0:i.top)-$s(o==null?void 0:o.top)),left:Math.round($s(i==null?void 0:i.left)-$s(o==null?void 0:o.left)),bottom:Math.round($s(i==null?void 0:i.bottom)-$s(o==null?void 0:o.top)),right:Math.round($s(i==null?void 0:i.right)-$s(o==null?void 0:o.left))}},ed=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:$s(e==null?void 0:e.width),height:$s(e==null?void 0:e.height)}};var Vn="off";var td=t=>!!(Math.round(Math.abs(t)/90)%2);var kb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:p,uiConfig:v,coreConfig:b,player:y,disabledControls:_,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:D,stopPlayer:A,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,additionalButtons:q,additionalSettingsMenuItems:L,additionalContextMenuItems:z,playPrevVideo:j,playNextVideo:te,onVideoChanged:ee,looped:oe=!1,statistics:ae,saveRate:le,internalsExposure:ce,playerView:X,playerId:_e,metaConfig:Ee,appTracer:de})=>{var $g,yg;let ze={...b,isAudioDisabled:l,live:{...($g=b.live)!=null?$g:{},isLiveCatchUpMode:!!r}},ue=v,pe=dt.TracerFactory.createRootTracer(ue.features.tracer),Z=pe.createComponentTracer("Store"),B=y||new fi.Player(ze,pe,{playerId:_e,onDevNullLog:s==null?void 0:s.onDevNullLog});ce==null||ce.expose({corePlayer:B});let fe=new dt.Logger,me=new op(fe,{loadTimeout:ue.ads.loadTimeout,initTimeout:ue.ads.initTimeout,runtimeTimeout:ue.ads.runtimeTimeout,useAdmanFromNPM:ue.ads.useAdmanFromNPM,volumeMultiplier:ue.ads.volumeMultiplier,isVsidOriginal:ue.ads.isVsidOriginal}),Ie=u==null?void 0:u.pictureInPictureApi,ot=u==null?void 0:u.annotationsApi,Me=u==null?void 0:u.slotsApi,be=u==null?void 0:u.focusManager,W=fe.createComponentLog("Store"),Ce,ke,Qe={},Te=new Du,we=new dt.Subscription,He="",st=re(!1),ut=re(!1),It=ae&&ae.oneStat?ti(ae.oneStat.vsid$):Ar(void 0),lt=re(aa()),ri=re(!1),St=()=>Y_(document,fi.clientChecker.device.isIOS),Rt=(yg=Ie==null?void 0:Ie.info.isActive$)!=null?yg:new dt.ValueSubject(!1),Dt=re(0),Wt=re(!1),Le=re(!1),Y=re([]),Ne=(0,dt.merge)(B.events.fatalError$,B.events.managedError$).subscribe(c=>Y.update(h=>[...h,c])),$e=Ar(!1,c=>{let h=B.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),Oe=c=>{ut.set(c)},mt=async c=>{var ne;let h=Object.values(dt.InterfaceLanguage).includes(c);if(ue.downloadVKLanguages&&(h&&ue.updateBuiltinLanguages||!em(c))){let Pe;try{Pe=await(0,dt.loadVKLangPack)(c,l_,d_)}catch(Je){(ne=ae==null?void 0:ae.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),de==null||de.error({category:dt.ErrorCategory.WTF,id:"VKLangPack",message:String(Je),thrown:Je},{severity:"warning"})}Pe&&(Jf({language:c,pack:Pe,fallback:ue.defaultLanguage}),Et.set(c),Se.update(Je=>Je+1))}em(c)&&Et.set(c)},Et=re(t),Se=re(0),Ye=re(e);mt(t);let Ue=(c,h)=>{let R=he(Et);return tm(R,c,h,ue.defaultLanguage)},xe=re("thumb");xe.subscribe(c=>{c==="ads"&&B.info.playbackState$.getValue()&&qt()});let Nt=(()=>{let c=ui([$e,xe],([h,R])=>h?"crashed":R);return{...c,is:h=>he(c)===h}})(),Tt=re(),qt=()=>{Tt.set({muted:B.info.muted$.getValue()})},hi=(()=>{let c=re(new Set(_));return{...c,add:h=>{c.update(R=>new Set([...R].concat(h)))},remove:h=>{c.update(R=>{let ne=[...R];return new Set(Array.isArray(h)?ne.filter(Pe=>!h.includes(Pe)):ne.filter(Pe=>Pe!==h))})},includes:h=>{let R=he(c);return Array.isArray(h)?h.every(ne=>R.has(ne)):R.has(h)}}})(),mi=re({width:0,height:0}),ki=null,Ji=B.info.isBuffering$,ai=Ar(Ji.getValue(),c=>{let h=Ji.subscribe(R=>{R&&ki===null?ki=window.setTimeout(()=>{c(Ji.getValue()),ki=null},ue.loaderDelay):c(R)});return()=>{h.unsubscribe(),ki&&clearTimeout(ki)}});Z.log("create store"),W({message:"create store"});let wi=c=>{let h=c.container,R=()=>{nt=new MutationObserver(Pe=>{let{removedNodes:Je}=Pe[0];Je.length&&h.append(B.experimental.element$.getValue())}),nt.observe(h,{childList:!0})},ne=B.experimental.element$.getValue();if(ne)h.append(ne),R();else{let Pe=B.experimental.element$.pipe((0,dt.filter)(Je=>!!Je),(0,dt.once)()).subscribe(Je=>{h.append(Je),R()});we.add(Pe)}},eo=c=>{W({message:`init video, config: ${JSON.stringify(c)}`}),x?wi(c):(dt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,dt.now)()]}),B.initVideo(c)),Z.log("init video",{isInteractive:x}),c.subtitles&&B.setExternalTextTracks(c.subtitles),Ce=c,He=c.subtitlesForcedLanguage||""},Li=new dt.Subject,li=c=>Li.next(c),Ui=new dt.Subject,bt=new dt.ValueSubject(Mr.SeekAction.UNKNOWN),We=new dt.Subject,nt=null,pt={actionRewind$:Ui,actionSeek$:bt,inPiP$:Rt,inFullscreen$:new dt.Observable(c=>lt.subscribe(h=>c.next(h))),actionSetSubtitle$:We,nextMovie$:Li},di=new dt.Subject,zi=new dt.Subject,to={actionSeek$:bt,actionSubtitlesSwitched$:di,actionQuality$:zi,playerSize$:new dt.Observable(c=>mi.subscribe(h=>c.next(h))),inPiP$:Rt,inFullscreen$:new dt.Observable(c=>lt.subscribe(h=>c.next(h))),isLoaderVisible$:new dt.Observable(c=>ai.subscribe(h=>c.next(h)))};if(ae){let{oneStat:c,thinOneStat:h,mediascopePixel:R,statSubscription:ne}=ae;c&&(x||ne.add(c.attachTo(B)),ne.add(c.attachToUi(pt)),ne.add(c.attachToAds(me.events)),c.authorize(a).catch(Pe=>{W({message:`onestat auth error ${String(Pe)}`})}),R&&R.attachTo(B)),h&&(ne.add(h.attachTo(B,me.events)),ne.add(h.attachToUi(to)),ne.add(h.attachToAds(me.events)),h.updateContext({isMobile:he(st)}),h.authorize(a))}de&&(de.addSubscription(B.events.managedError$.subscribe(c=>{de.error(c,{severity:"debug"})})),de.addSubscription(B.events.fatalError$.subscribe(c=>{de.error(c,{severity:"fatal"})})),ae!=null&&ae.oneStat&&de.addSubscription(ae.oneStat.experimental.error$.subscribe(c=>{de.error(c,{severity:"warning"})})));let fn=()=>{if(fi.clientChecker.device.isIOS&&ke)try{j_(ke)}catch(c){W({message:`exitIosSafariFullscreen failed: ${c}`})}};we.add(B.experimental.element$.subscribe(c=>{c&&c!==ke&&(ke=c,c.classList.add("player-media"),Ie==null||Ie.updateVideoElement(),x&&c.setAttribute("pip","false"),(X==="preview"||!ue.features.pip&&!ue.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(B.events.ended$.subscribe(()=>{var c;fn(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(B.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(B.events.started$.subscribe(async()=>{var h,R;Gm(Ie)&&await(Ie==null?void 0:Ie.revealPictureInPicture());let c=B.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(R=Qe.onStarted)==null||R.call(Qe,c)})).add(B.events.willSeek$.subscribe(({from:c,to:h})=>{var R;(R=s==null?void 0:s.onSeek)==null||R.call(s,c,h,bt.getValue())})).add(B.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(B.info.position$.subscribe(c=>{var R;let h=B.info.duration$.getValue();isFinite(h)&&h>0&&((R=s==null?void 0:s.onTimeupdate)==null||R.call(s,h,c),me.setPosition(c,h))})).add(B.events.fatalError$.subscribe(c=>{var h;(h=s==null?void 0:s.onCrashed)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.fetcherRecoverableError$.subscribe(c=>{var h;(h=s==null?void 0:s.onRecoverableError)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(B.events.loadedMetadata$.subscribe(()=>{Wt.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{Le.set(c)})).add(B.info.isEnded$.subscribe(c=>{x&&(c?(T!=null&&T.getValue()&&hi.add(Gd),hi.add("PLAY_BUTTON")):hi.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(B.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(me.events.loadStarted$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:h.call(c)})).add(me.events.loadEnded$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:h.call(c)})).add(me.events.loadError$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:h.call(c)})).add(me.events.init$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:h.call(c)})).add(me.events.ready$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:h.call(c)})).add(me.events.started$.subscribe(c=>{var h,R;return(R=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:R.call(h,c)})).add(me.events.timeRemained$.subscribe(c=>{var h,R;return(R=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:R.call(h,c)})).add(me.events.ended$.subscribe(c=>{var h,R;return(R=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:R.call(h,c)})).add(me.events.empty$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:h.call(c)})).add(me.events.clicked$.subscribe(c=>{var h,R;return(R=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:R.call(h,c)})).add(me.events.closed$.subscribe(c=>{var h,R;return(R=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:R.call(h,c)})).add(me.events.error$.subscribe(c=>{var h,R;return(R=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:R.call(h,c)})).add(me.events.paused$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:h.call(c)})).add(me.events.resumed$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:h.call(c)}));let U=new dt.Subscription,it=()=>{var Je,At,Ot;let{debugLog:c}=ue,h,R="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:zt}=c;h=c.tag,R=(Je=zt==null?void 0:zt[0])!=null?Je:R,ne=(Ot=(At=zt==null?void 0:zt[1])!=null?At:zt==null?void 0:zt[0])!=null?Ot:ne}let Pe=h?`: ${h}`:"";U.add(B.events.log$.subscribe(zt=>{console.debug(`%c sdk${Pe} `,`background:${R};`,`sdk component: ${zt.component}`,zt.message)})).add(fe.log$.subscribe(zt=>{console.debug(`%c ui${Pe} `,`background:${ne};`,`ui component: ${zt.component}.`,zt.message)}))},Yt=()=>{U.unsubscribe()},vi=(c,h)=>{Z.log("start camera manual rotation",{mx:c,my:h}),B.startCameraManualRotation(c,h)},at=(c=!1)=>{Z.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},si=(c,h,R)=>{Z.log("move camera focus px",{xpx:c,ypx:h,dt:R}),B.moveCameraFocusPX(c,h,R)},_i=()=>{B.holdCamera()},Gt=()=>{B.releaseCamera()},Ct=Ar(B.info.position$.getValue(),c=>{let h,R,ne=()=>{let Pe=B.info.playbackState$.getValue(),Je=B.info.isLive$.getValue(),At=B.info.duration$.getValue(),Ot=B.info.position$.getValue();if(Pe&&[fi.PlaybackState.PLAYING,fi.PlaybackState.PAUSED].includes(Pe)){let zt=Je?Ot-At:B.getExactTime();zt!==R&&c(zt),R=zt}h=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(h)}),_o=ti(B.info.playbackState$),Do=ti(B.info.isBuffering$),mn=ui([_o,Do],([c,h])=>h?"buffering":c),vn=ti(B.info.currentBuffer$),Ei=ti(B.info.isEnded$),Si=ti(B.info.isLive$),gn=ue.features.playbackRate?ti(B.info.canChangePlaybackSpeed$):Ar(!1),gr=ti(B.info.liveBufferTime$),yi=ti(B.info.volume$),xo=ti(B.info.muted$),No=Nu(B.info.predefinedQualityLimitType$.pipe((0,dt.map)(c=>c===fi.PredefinedQualityLimits.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.TRAFFIC_SAVING),Oo=Nu(B.info.predefinedQualityLimitType$.pipe((0,dt.map)(c=>c===fi.PredefinedQualityLimits.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.HIGH_QUALITY),hn=ti(B.info.autoQualityLimitingAvailable$),ts=ti(B.info.availableQualities$),ys=ti(B.info.availableQualitiesFps$),is=ti(B.info.chromecastState$),hr=ti(B.info.chromecastDeviceName$),_n=ti(B.info.currentFormat$),os=ti(B.info.throughputEstimation$),Zn=ti(B.info.videoBitrate$),Vr=ti(B.info.intrinsicVideoSize$),wo=ti(B.info.duration$),ns=ti(B.info.isAudioAvailable$),_r=()=>{ki&&clearTimeout(ki),ki=null},Rn=ui([wo,Si],([c,h])=>h?-c:c),Dn=ui([_o],([c])=>c===fi.PlaybackState.PLAYING),Nn=ti(B.info.atLiveEdge$),Jn=ti(B.info.atLiveDurationEdge$),Rr=ti(B.info.position$),rs=ui([Rr,wo],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),Pi=ui([is],([c])=>c===fi.ChromecastState.CONNECTED),ss=ti(B.info.availableVideoStreams$),Bo=ue.features.audioLanguages?ti(B.info.availableAudioStreams$):Ar([]),er=ti(B.info.currentVideoStream$),br=ti(B.info.currentAudioStream$),tr=c=>{c.language&&Yf(c.language),B.setVideoStream(c)},ft=(c,h)=>{B.setAudioStream(c),To(h)&&(c.language&&Yf(c.language),ue.features.userVideoPrefs&&i&&Zf(ue.userSalt,String(i),{audioTrackId:c.id}))},Zt=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(ne=>"isDefault"in ne&&ne.isDefault)),ue.features.userVideoPrefs&&i){let ne=Uu(ue.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Pe=c.find(Je=>Je.id===ne.audioTrackId);h=Pe!=null?Pe:h}}let R=D_();return R&&(h!=null||(h=c.find(({language:ne})=>R===ne))),h!=null||(h=c.at(0)),h},$r=c=>{Z.log("change audio stream",{id:c});let h=B.info.availableAudioStreams$.getValue().find(R=>R.id===c);h&&ft(h,!0)},as=!1;we.add(B.info.availableAudioStreams$.subscribe(c=>{if(!as&&c.length){let h=Zt(c);h&&(B.setAudioStream(h),as=!0)}})),Bo.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:R="",id:ne="",language:Pe=""})=>({label:R,language:Pe,id:ne})))}),br.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let ir=!1;we.add(B.info.availableVideoStreams$.subscribe(c=>{if(!ir&&c.length){let h=Zt(c);h&&(B.setVideoStream(h),ir=!0)}}));let rn=re(void 0),On=ti(B.info.isAutoQualityEnabled$,c=>c&&rn.set(void 0)),or=ti(B.info.currentQuality$,()=>rn.set(void 0)),Dr=ui([rn,or],([c,h])=>c!=null?c:h),Ho=ui(_n,c=>c!==fi.VideoFormat.MPEG),bn=ui([ts,ys,On,Dr,Ho],([c,h,R,ne,Pe])=>{let Je=[];Pe&&Je.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:R});let At=c.filter(Ot=>!(0,dt.isInvariantQuality)(Ot));for(let Ot of At){let zt=h[Ot];Je.push({value:Ot,displayValue:`${Ot}${zt?xb(zt):""}`,selected:R?!1:Ot===ne})}return Je}),Bn=ti(B.info.currentPlaybackRate$),co=ui([Bn,Nn,Jn],([c,h,R])=>{let ne=R||x?1:ue.controls.playbackRateMin,Pe=h?1:ue.controls.playbackRateMax,Je=ue.controls.playbackRateStep,At=[];for(let Ot=ne;Ot<=Pe;Ot+=Je)At.push({value:Ot,displayValue:Ot===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:Ot.toString(10)}),selected:c===Ot});return At}),So=()=>({displayValue:Ue("subtitles_off"),value:Vn,language:""}),Hn=re(So()),Mi=ui([Hn,Se],([c],h)=>{c.value===Vn?h(So()):h(c)}),nr=ue.features.subtitles?ti(B.info.availableTextTracks$):Ar([]),$n=S_(),Nr=ui([nr,Mi],([c,h],R)=>{var Je;let ne=[],Pe=c.find(({id:At})=>At===h.value);if(Pe!=null&&Pe.url){let[,At]=(Je=$n.find(Pe.url))!=null?Je:[];if(At){R(At);return}Te.download(Pe.url).then(Ot=>{if(!Ot||Te.isDestroyed())return;let zt=new wb,js=Pe.language;if(js){let A$=!!Pe.isAuto,k$=zt.parse(Ot,js);ne.push({lang:js,subtitles:k$,isAuto:A$,id:Pe.id})}$n.add(Pe.url,ne),he(Mi).value===h.value&&R(ne)}).catch(dt.suppressAbort).catch(Ot=>{var zt;(zt=ae==null?void 0:ae.oneStat)==null||zt.logError({errorType:"Subtitles download",fatal:!1}),de==null||de.error({category:dt.ErrorCategory.WTF,id:"Subtitles download",message:String(Ot),thrown:Ot},{severity:"warning"})})}R(ne)}),$t=ui([Bn,Dn,Mi],([c,h,R],ne)=>{let At;if(B.info.isLive$.getValue()&&h&&R.value!==Vn){let zt=()=>{let js=1e3/(3*c);At=setTimeout(zt,js),ne(Date.now())};return zt(),()=>clearTimeout(At)}}),Jt=ui([nr,Mi],([c,h])=>{if(!c.length)return[];let R=[];for(let{language:ne,isAuto:Pe,id:Je}of c){let At=ne&&_c(ne);ne&&At&&R.push({displayValue:Pe?Ue("subtitles_auto",{language:At}):At,value:Je,selected:(h==null?void 0:h.value)===Je,isAuto:Pe,language:ne})}return R.length?(R.unshift({...So(),selected:(h==null?void 0:h.value)===Vn}),R):[]}),Ut={available:[],prev:[]},Co=()=>{var h,R;let c=B.experimental.getCurrentTime$.getValue();return(R=(h=c==null?void 0:c())!=null?h:ke==null?void 0:ke.currentTime)!=null?R:0},Fo=ui([Ct,Mi,Nr,$t],([c,h,R,ne])=>{var Je;let Pe=B.info.isLive$.getValue();if(Pe&&Ut.prev!==R){let At=R.find(({id:zt})=>zt===h.value),Ot=Ut.prev.find(({id:zt})=>zt===h.value);if(At){let zt={...At,subtitles:[...(Je=Ot==null?void 0:Ot.subtitles)!=null?Je:[],...At.subtitles]};Ut.available=[zt],Ut.prev=R}}if(h&&h.value!==Vn){let At=Pe?Co():c,Ot=Pe?Ut.available:R;return Tb(At,h,Ot,Pe)}}),Uo=ui([Fo],([c])=>c!=null&&c.texts?c.texts:[]);we.add(Mi.subscribe(c=>{var h,R;if(c.value===Vn)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let ne=Object.entries(ap).find(([Pe,Je])=>Je===c.displayValue);(R=s==null?void 0:s.onSubtitleOn)==null||R.call(s,ne?ne[0]:"",c.value)}}));let zo=re(!0),bo=ui([vn,Rn,Rr,gr],([c,h,R,ne])=>{var Ot;let Pe=(Ot=c==null?void 0:c.end)!=null?Ot:0;if(!ne)return Pe/h;let At=-R+ne-h;return(Pe-At)/h}),Fn=ti(B.info.availableSources$),yr=ui([Fn],([c])=>Object.keys((c==null?void 0:c[fi.VideoFormat.MPEG])||{}).length>0),sn=()=>{var R,ne,Pe;let c=Object.keys(((ne=(R=B.info.availableSources$)==null?void 0:R.getValue())==null?void 0:ne[fi.VideoFormat.MPEG])||{}),h=(0,dt.getHighestQuality)(c)||dt.VideoQuality.Q_144P;return(Pe=Ce.sources[fi.VideoFormat.MPEG])==null?void 0:Pe[h]},yn=()=>{var h;let c=sn();if(c)Z.log("download video",{url:c}),y_(c,((h=Ce==null?void 0:Ce.meta)==null?void 0:h.title)||"video");else{let R="There is no URL for download video";Z.log("download video",{message:R}),W({message:R})}},ls=()=>{W({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?Hr(Br(),!1):Un(!c,!1)},Or=()=>{var c;if(Ft.ui.settingsMenu.visible$.set(!1),!he(Ft.ui.settingsSubMenu.visible$)){let h=he(Ft.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let ne=ed(h),Pe={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Pe,name:"settings"})}}Z.log("close settings menu")},ds=async(c,h=()=>Promise.resolve())=>{var Pe;Ft.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Ft.ui.settingsMenu.visible$.set(!0),await h();let R=he(Ft.ui.settingsMenu.ref$),ne=$l();if((Pe=s==null?void 0:s.uiInfo)!=null&&Pe.onSettingsMenu&&R&&ne){let At=ed(R),Ot=Us(R,ne);s.uiInfo.onSettingsMenu({visible:!0,size:At,position:Ot,name:"settings"})}Z.log("open settings menu",{wasOpenedByKeyboard:c})},io=(c,h=!1)=>{var Je;Ft.ui.settingsSubMenu.visible$.set(!1);let R=he(Ft.ui.settingsMenu.ref$),ne=$l(),Pe=he(Ft.ui.settingsMenu.visible$);if((Je=s==null?void 0:s.uiInfo)!=null&&Je.onSettingsMenu&&R&&ne)if(Pe&&!h){let Ot=ed(R),zt=Us(R,ne);s.uiInfo.onSettingsMenu({visible:!0,size:Ot,position:zt,name:"settings"})}else{let Ot=ed(c),zt={top:0,left:0,bottom:0,right:0},js=he(Ft.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ot,position:zt,name:js})}Z.log("close settings sub menu")},cs=(c,h)=>{var ne;Ft.ui.settingsSubMenu.visible$.set(!0),Ft.ui.settingsSubMenu.ref$.set(h),Ft.ui.settingsSubMenu.name$.set(c);let R=$l();if((ne=s==null?void 0:s.uiInfo)!=null&&ne.onSettingsMenu&&h&&R){let Je=ed(h),At=Us(h,R);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:Je,position:At})}Z.log("open settings sub menu",{name:c})},Br=()=>{var h;let c=Math.max(ue.volumeMinRestore,(h=Ou())!=null?h:0);return c===0?ue.volumeDefault:c},To=c=>{let h=ue.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},Hr=(c,h)=>{let R=c===0?Br():c,ne=B.info.muted$.getValue();W({message:`set volume, volume: ${c}, preferredVolume: ${R}`});let Pe=!l||Nt.is("ads");ne&&c>0&&Pe&&(ne=!1,To(h)&&Qf(!1)),B.setVolume(c,ne),me.setVolume(c),To(h)&&zf(R)},Un=(c,h)=>{let R=B.info.volume$.getValue();W({message:`set muted, currentVolume: ${R}, mute: ${c}`});let ne=Nt.is("ads");if(B.setMuted(c,ne),me.setVolume(c?0:R),To(h)&&(!ne||!c)&&Qf(c),!c&&R===0){let Pe=Br();B.setVolume(Pe),To(h)&&zf(Pe),me.setVolume(Pe)}},uo=re(!1),po=c=>{var h,R;Z.log("set looped",{isLooped:c}),uo.set(c),B.setLooped(c),(R=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||R.call(h,c)};po(oe);let je=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},kt=(c,h=!1)=>{var R;W({message:`set autoplayNextEnabled, value: ${c}`}),Z.log("set autoplay next enabled",{autoplayNextEnabled:c}),Ft.ui.autoplayNextEnabled$.set(c),B_(c),h&&((R=s==null?void 0:s.onSetAutoplayNextEnabled)==null||R.call(s,c))},ci=c=>{W({message:`set timerNextVideoRunning, value: ${c}`}),Z.log("set timer next video running",{timerNextVideoRunning:c}),Ft.ui.timerNextVideoRunning$.set(c)},Io=(c=!0)=>{var R;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(R=s==null?void 0:s.onPrevVideoClick)==null?void 0:R.call(s)}catch(ne){W({message:"onPrevVideoClick callback failed to execute"})}ee(!0),h&&j()},Eo=(c=!0)=>{var R;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(R=s==null?void 0:s.onNextVideoClick)==null?void 0:R.call(s)}catch(ne){W({message:"onNextVideoClick callback failed to execute"})}ee(!1),h&&te()},$o=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},fo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Po=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},rr=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},sr=()=>{B.prepare()},Wo=()=>{(0,dt.assertNonNullable)(Ft);let c=he(Ft.ui.controls.disabledControls$),h=he(Ft.playerPhase),R={playerPhase:h,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Ti.set(!1),W({message:"toggle play"}),h==="ads"){R.action="play",Z.log("toggle adman play",R),me.togglePlay();return}let ne=()=>{var Je;W({message:"toggle play, call player.play"}),R.action="play",B.play(),(Je=s==null?void 0:s.onPlay)==null||Je.call(s)},Pe=()=>{var Je;W({message:"toggle play, call player.pause"}),R.action="pause",B.pause(),(Je=s==null?void 0:s.onPause)==null||Je.call(s)};if(B.info.isEnded$.getValue()){if(W({message:"toggle play, video ended, seek to 0"}),Ui.next(),bt.next(Mr.SeekAction.REWIND),x){D==null||D();return}B.seekTime(0),ne()}else B.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING?ne():Pe();Z.log("toggle play",R)},Di=(c,{changeReason:h="default",appliesTo:R="to-video",byUser:ne=!1}={},Pe)=>{W({message:`set quality, quality: ${c}`}),Z.log("set quality",{quality:c}),ne&&zi.next(c),B.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Je}=ue.features;Bu(),c!=="auto"?(Je?(Hu({type:"exact_quality",quality:c,videoId:i},R),B.setPredefinedQualityLimits(fi.PredefinedQualityLimits.UNKNOWN)):Wf(i,c),rn.set(c),B.setQuality(c)):Je&&h==="default"&&(Ze("auto_quality",R,Pe),he(No)&&zn(!1,void 0,Pe),he(Oo)&&Ko(!1,void 0,Pe))},zn=(c,h="as-default",R)=>{W({message:`set trafficSavingEnabled, value: ${c}`}),Z.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?fi.PredefinedQualityLimits.TRAFFIC_SAVING:fi.PredefinedQualityLimits.UNKNOWN;ue.features.qualityDetailsSubMenuEnabled?(xr(ne,h,R),Xd(!1)):(B.setPredefinedQualityLimits(ne),To(R)&&Xd(c))},Ko=(c,h="as-default",R)=>{W({message:`set highQualityEnabled, value: ${c}`}),Z.log("set high quality enabled",{highQualityEnabled:c}),xr(c?fi.PredefinedQualityLimits.HIGH_QUALITY:fi.PredefinedQualityLimits.UNKNOWN,h,R)},xr=(c,h,R)=>{c!==fi.PredefinedQualityLimits.UNKNOWN&&(he(hn)&&!he(On)&&Di("auto",{appliesTo:h,changeReason:"limit-changed"},R),Ze(c,h,R)),B.setPredefinedQualityLimits(c)},Ze=(c,h,R)=>{To(R)&&(Hu({type:c,videoId:i},h),h==="as-default"&&Hu({type:c,videoId:i},"to-video"))},Qt=(c,h=!0)=>{Z.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),ue.features.saveRate&&le&&!B.info.isLive$.getValue()&&h&&N_(c)},Ai=()=>{let c=he(gn),h=he(co),R=h.findIndex(({selected:Pe})=>Pe);if(R===h.length-1||!c)return h[R];let ne=h[R+1];return Qt(ne.value),ne},xn=()=>{let c=he(gn),h=he(co),R=h.findIndex(({selected:Pe})=>Pe);if(R===0||!c)return h[R];let ne=h[R-1];return Qt(ne.value),ne},oo=(c={...So(),selected:!1},h)=>{Z.log("set subtitles",{...c}),c.value!==Vn&&We.next(c.isAuto?c.value+"_auto":c.value),di.next({enabled:c.value!==Vn,lang:c.language,auto:!!c.isAuto}),Hn.set(c),To(h)&&(Xf(c.value===Vn?void 0:c.language),ue.features.userVideoPrefs&&i&&Zf(ue.userSalt,String(i),{subtitleTrackId:c.value===Vn?void 0:c.value}))},Fr=c=>{Z.log("toggle subtitles");let h=he(Mi);(h==null?void 0:h.value)===Vn?wr(c):Sr(c)},qo=(c,h)=>{Z.log("change subtitle",{enabled:c}),c?wr(!0,h):Sr(!0)},wr=(c,h)=>{if(he(ut))return;Z.log("subtitle on");let R=he(Jt),ne=he(Et),Pe=He!=null?He:ne,Je;h&&(Je=R.find(At=>At.value===h)),Je!=null||(Je=R.filter(At=>At.value!==Vn).find(At=>At.language===Pe)),oo(Je!=null?Je:R[1],c)},Sr=c=>{Z.log("subtitle off"),oo(void 0,c)};we.add(B.info.availableTextTracks$.subscribe(c=>{var R;function h(){let ne=[];for(let{language:Pe,isAuto:Je,id:At}of c){let Ot=Pe&&_c(Pe);Pe&&Ot&&ne.push({id:At,language:Pe,title:Je?Ue("subtitles_auto",{language:Ot}):Ot})}return ne}(R=s==null?void 0:s.onAvailableSubtitlesChanged)==null||R.call(s,h())}));let xs=re(!0),ws=c=>{xs.set(c)},Wn=(c,h,R=!0)=>{var ne;if(W({message:`seek to time, time: ${c}`}),Z.log("seek to time",{time:c,action:h,forcePrecise:R}),bt.next(h),B.info.isLive$.getValue()){let Pe=B.info.duration$.getValue(),Je=Math.min(0,Pe+c);B.seekTime(Je,R)}else{if(T!=null&&T.getValue())return;B.info.isEnded$.getValue()&&(W({message:"seek after ended, call callbacks.onPlay"}),(ne=s==null?void 0:s.onPlay)==null||ne.call(s)),B.seekTime(hg(c),R)}},ba=c=>{W({message:`seek to episode start time: ${c}`}),Z.log("seek to episode start time",{time:c}),Wn(c,Mr.SeekAction.EPISODE,!0)},us=(c,h,R=!1)=>{W({message:`seek to percent, percent: ${c}`}),Z.log("seek to percent",{percent:c,action:h});let ne=he(Rn)*c;Wn(ne,h,R)},$a=c=>{W({message:`seek external, time: ${c}`}),Z.log("seek external",{time:c}),bt.next(Mr.SeekAction.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},ya=c=>{var ne,Pe;let h=(ne=c.max)!=null?ne:"none",R=(Pe=c.min)!=null?Pe:"none";W({message:`set auto quality limitation. Max: ${h}. Min: ${R}`}),Z.log("set auto quality limits",{max:h,min:R}),B.setAutoQualityLimits(c)},vt=c=>{W({message:`seek external to episode start time: ${c}`}),Z.log("seek external to episode start time",{time:c}),Wn(c,Mr.SeekAction.EPISODE,!0)},ii=c=>{W({message:`set playback rate to: ${c}`}),Z.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},Ti=re(!1),bi=re(!1),Cr=ui([Rn,ut],([c,h])=>!!p&&c>=ue.suitableDurationForUsingRichSeek&&ue.features.useRichSeek&&!x&&X!=="preview"&&!h),Ss=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Cs=ui([Dt],([c])=>{let h=td(c);return Ss?!h:h});we.add(Nt.subscribe(c=>{c!=="video"&&Ti.set(!1)})),Ti.subscribe(c=>{var h;(h=s==null?void 0:s.onRichSeekActiveChanged)==null||h.call(s,c)});let Ur=re(void 0),Ni=re(!1),Wi=c=>{W({message:`start scrubbing, progress: ${c}`}),Z.log("start scrubbing",{progress:c}),Ni.set(!0),ve(c)},ve=c=>{Ur.set(c)},gt,oi,jt=()=>{Ur.set(void 0),Ni.set(!1)},Qo=()=>{clearTimeout(oi),clearTimeout(gt),gt=window.setTimeout(()=>{jt()},500),ke==null||ke.removeEventListener("seeked",Qo)},Ao=(c,h=!1,R=Mr.ThinOneStat.ActionSeekType.SLIDER)=>{W({message:`complete scrubbing, progress: ${c}`}),Z.log("complete scrubbing",{progress:c}),us(c,R,h),he(Ft.ui.isMobile)&&he(Ft.state.currentFormat$)===fi.VideoFormat.HLS?(ke==null||ke.addEventListener("seeked",Qo),oi=window.setTimeout(()=>{Qo()},300)):jt()},no=ui([Ct,Rn,Ur],([c,h,R],ne)=>{ne((0,dt.isNonNullable)(R)?R*h:c)}),an=re(!1),Ts=()=>{an.set(!0)},Is=()=>{an.set(!1)},Qs=ui([mi],([{width:c}],h)=>{let R=gb(c);h(R)}),zr=q.filter(c=>x_(c)),Gs=ui([Qs,st],([c,h])=>h?zr.filter(R=>!R.hideOnMobile):zr.filter(R=>{var ne;return!((ne=R.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),wn=re(q.filter(c=>w_(c))),xa=ui([wn,Qs],([c,h])=>c.filter(R=>{var ne;return!((ne=R.hideOnDesktopGridTypes)!=null&&ne.includes(h))})),ml=ui([xa,Gs],([c,h])=>[...ue.features.additionalButtonsDesktopControlPanelRight?c.filter(R=>R.type==="desktop-control-panel-right"):[],...ue.features.additionalButtons?h.map((R,ne)=>{var Pe;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:R.testId,icon:R.iconUrl,onClick:R.onClick,ariaLabel:(Pe=R.ariaLabel)!=null?Pe:R.tooltip,tooltipText:R.tooltip}}):[]].filter(R=>!v.disabledAdditionalButtonIds.includes(R.id))),Tr=re(L),md=ui([Tr],([c])=>ue.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?{...h,onClick:h.onChangeEnabled}:h):[]),vl=(c,h)=>{let R=he(wn).map(ne=>ne.id!==c?ne:{...ne,...h});wn.set(R)},gl=c=>{let h=he(wn);if(h.some(R=>R.id===c.id)){W({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),wn.set(h)},hl=c=>{let h=he(wn);if(!h.some(R=>R.id===c)){W({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(R=>R.id!==c),wn.set(h)},vd=c=>{bt.next(Mr.SeekAction.LIVE),W({message:"live switch to low latency "+c}),Z.log("live switch to low latency "+c),B.setLiveLowLatency(c)},wa=(c,h)=>{let R=he(Tr).map(ne=>ne.id!==c?ne:{...ne,...h});Tr.set(R)},_l=c=>{let h=he(Tr);if(h.some(R=>R.id===c.id)){W({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Tr.set(h)},ht=c=>{let h=he(Tr);if(!h.some(R=>R.id===c)){W({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(R=>R.id!==c),Tr.set(h)},ct=re(z),Vi=ui([ct],([c])=>ue.features.additionalContextMenuItems?c:[]),Go=(c,h)=>{let R=he(ct).map(ne=>ne.id!==c?ne:{...ne,...h});ct.set(R)},Ki=c=>{let h=he(ct);if(h.some(R=>R.id===c.id)){W({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),ct.set(h)},$i=c=>{let h=he(ct);if(!h.some(R=>R.id===c)){W({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(R=>R.id!==c),ct.set(h)},Oi=ui([st,$e],([c,h],R)=>{R(c&&h)}),Sa=()=>{bt.next(Mr.SeekAction.LIVE),W({message:"switch to active live"}),Z.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING&&Ft.actions.internal.togglePlay()},bl=()=>{Z.log("skip adman"),me.skip()},Dp=(c=!0)=>{var ne;(0,dt.assertNonNullable)(Ft),W({message:`switch from ads to video, callPlay: ${c}`}),Z.log("switch from ads to video",{callPlay:c}),xe.set("video"),c&&B.play(),l&&Un(!0,!0);let h=(ne=he(Tt))==null?void 0:ne.muted,R=!B.info.muted$.getValue();h!==void 0&&!R&&Un(h,!0),Tt.set(void 0)},Zc=()=>{(0,dt.assertNonNullable)(Ft),W({message:"switch from video to ads"}),Z.log("switch from video to ads"),Ft.actions.internal.pause(),fn(),xe.set("ads")},Np=c=>{(0,dt.assertNonNullable)(Ft);let h=c?"LiveWaitingStart":"thumb";Z.log("set live waiting start",{state:c,playerPhase:h}),xe.set(h)},Jc=c=>{(0,dt.assertNonNullable)(Ft);let h=c?"LiveWaitingRecover":"thumb";Z.log("set live waiting recover",{state:c,playerPhase:h}),xe.set(h)},Op=c=>{(0,dt.assertNonNullable)(Ft);let h=c?"LiveWaitingRecord":"thumb";Z.log("set live waiting record",{state:c,playerPhase:h}),xe.set(h)},eu=()=>((0,dt.assertNonNullable)(Ft),Z.log("get debug text data"),b_(B,Ce,Ft,pe.getTraceId(),Ee)),Bp=()=>((0,dt.assertNonNullable)(Ft),JSON.stringify(pe.getFinishedSpans())),tu=()=>((0,dt.assertNonNullable)(Ft),$_(B,Ce,Ft)),$l=()=>ke,iu=()=>{W({message:"toggle chromecast"}),Z.log("toggle chromecast"),B.toggleChromecast()},Ys=c=>{var R;if((0,dt.assertNonNullable)(Ft),B.info.isEnded$.getValue())return;let h=!c;if(he(Ft.playerPhase)==="ads"){W({message:`pause ads, internalCall: ${h}`}),Z.log("pause ads",{internalCall:h}),me.pause();return}W({message:`pause video, internalCall: ${h}`}),Z.log("pause video",{internalCall:h}),h&&((R=s==null?void 0:s.onPause)==null||R.call(s)),B.pause()},Ca=c=>{var R;(0,dt.assertNonNullable)(Ft);let h=!c;if(he(Ft.playerPhase)==="ads"){W({message:`play ads, internalCall: ${h}`}),Z.log("play ads",{internalCall:h}),me.play();return}W({message:`play video, internalCall: ${h}`}),Z.log("play video",{internalCall:h}),h&&((R=s==null?void 0:s.onPlay)==null||R.call(s)),B.play()},Hp=c=>{(0,dt.assertNonNullable)(Ft);let h=!c;if(he(Ft.playerPhase)==="ads"){W({message:"player cannot be stopped during ads via external method"});return}W({message:`player will be stopped, internalCall: ${h}`}),A==null||A()},gd=(c,h)=>{(0,dt.assertNonNullable)(Ft),W({message:`first start, show ads: ${c}, internalCall: ${!h}`}),Z.log("first start",{showAds:c,external:h}),c?xe.set("ads"):(xe.set("video"),h?B.play():Ft.actions.internal.togglePlay())},hd=()=>(W({message:"getting time codes"}),m),_d=()=>{let c=hd();if(!c||[0,1].includes(c.length))return;let h=B.info.position$.getValue();return c.find(R=>R.time>h)},Fp=c=>{let h=c;h||(h=_d());let R=B.info.position$.getValue();Z.log("seek to next episode",{currentTime:R,...h}),h&&(W({message:"seek to next episode"}),Wn(h.time,Mr.SeekAction.EPISODE,!0))},ou=()=>{let c=hd();if(!c||[0,1].includes(c.length))return;let h=B.info.position$.getValue(),R=c.findIndex(Pe=>Pe.time>h),ne=R===-1?c.length-2:R-2;if(!(ne<0))return c[ne]},Up=c=>{let h=c;h||(h=ou());let R=B.info.position$.getValue();Z.log("seek to prev episode",{currentTime:R,...h}),h&&(W({message:"seek to prev episode"}),Wn(h.time,Mr.SeekAction.EPISODE,!0))},qe=()=>(W({message:"getting preview thumbs data"}),Z.log("get preview thumbs data",{...p}),p),gi=async()=>{let c=Ie==null?void 0:Ie.isActive(),h="none";Ie!=null&&Ie.isActive()?(h="exit",await(Ie==null?void 0:Ie.exit())):(h="request",await(Ie==null?void 0:Ie.request())),Z.log("toggle picture in picture",{isActive:c,action:h})},Yo=(c=-90)=>{Z.log("rotate video",{alphaDiff:c}),Dt.update(h=>h+c)},Sn=re([]);I==null||I.subscribe(c=>{let h=[];for(let R=0;R<c.length;R++){let{range:[ne,Pe],subjects:Je}=c[R];R===0&&ne!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:ne/1e3,text:"",interactive:!0,completed:ue.features.interactiveTimeOpenUri?!Je.length||Je.every(At=>At.isRemoved):!Je.length}),Pe!==1/0&&h.push({time:Pe/1e3,text:"",interactive:!1,completed:!0})}Sn.set(h)});let Cn=re(!1);T==null||T.subscribe(c=>{c&&he(Ni)&&jt()});let hg=c=>{if(!x)return c;let h=he(Sn),R=he(Rn),Pe=he(Rr)/R,Je=h.find(At=>At.interactive&&!At.completed&&At.time>Pe);return typeof(Je==null?void 0:Je.time)=="number"?Math.min(c,Je.time-.05):c},w$=()=>{Ft.ui.episodes.panelOpened$.set(!1)},S$=()=>{Z.log("destroy store"),clearTimeout(oi),clearTimeout(gt),we.unsubscribe(),U.unsubscribe(),B.destroy(),me.destroy(),ae==null||ae.destroy(),Ne.unsubscribe(),nt==null||nt.disconnect(),nt=null,Te.destroy(),de==null||de.destroy()},C$=ui([Nn,Nt,gn],([c,h,R])=>v.features.doubleForwardAvailable&&!c&&h==="video"&&R),zp=re(!1),_g=2,nu=null,bg=c=>{if(!he(Dn)&&c)return;let h=B.info.currentPlaybackRate$.getValue();c?h!==_g&&(nu=h,Qt(_g,!1),zp.set(!0)):(nu&&Qt(nu,!1),zp.set(!1),nu=null)};Nt.subscribe(c=>{c!=="video"&&bg(!1)});let T$=()=>{Ys(!1),Ti.set(!0)},I$=()=>{Ca(!1),Ti.set(!1)},Wp=!1,E$=()=>{bi.set(!0),Wp=B.info.playbackState$.getValue()===fi.PlaybackState.PLAYING,Ys(!1)},P$=()=>{bi.set(!1),!he(Ti)&&Wp&&Ca(!1),Wp=!1};B.events.playing$.subscribe(()=>{he(Ti)&&Ys(!1)});let Ft={interfaceLanguage$:Et,isCyrillicRelatedInterface$:Ye,initVideo:eo,videoId:i,isClip:o,playerPhase:Nt,vsid:It,state:{positionExact$:Ct,positionWithScrubbing$:no,duration$:Rn,playbackState$:_o,playbackStateRealistic$:mn,isPlaying$:Dn,isLoaderVisible:ai,bufferedProgress$:bo,isLive$:Si,canChangePlaybackSpeed$:gn,isActiveLive$:Nn,isOldestAvailableLive$:Jn,isRewindableLive$:rs,isEnded$:Ei,muted$:xo,volume$:yi,trafficSavingEnabled$:No,highQualityEnabled$:Oo,autoQualityLimitingAvailable$:hn,availableVideoStreams$:ss,availableAudioStreams$:Bo,videoStream$:er,audioStream$:br,currentQuality$:Dr,isAutoQualityEnabled$:On,availableQualities$:bn,currentPlaybackRate$:Bn,availablePlaybackRates$:co,currentSubtitle$:Mi,availableTextTracks$:nr,availableSubtitlesList$:Jt,currentSubtitleCaptions$:Uo,isAutoSubtitleCaptionVisible$:zo,chromecastState$:is,chromecastDeviceName$:hr,chromecastConnected$:Pi,currentFormat$:_n,throughputEstimation$:os,videoBitrate$:Zn,videoSize$:Vr,errorLog$:Y,crashed$:$e,isAudioAvailable$:ns,isAudioDisabled:!!l,canDownload:ue.features.download&&!!d,availableSources$:Fn,hasMpegSources$:yr,isInteractive:x,showInteractiveGraph:ue.features.interactiveGraph,showSeekToInteractive:ue.features.seekToInteractive,showPlayPrevChapter:ue.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ue.features.interactiveTimeIndicator&&!!he(Sn).length,interactiveEpisodes$:Sn,isInteractiveTime$:T?ti(T):re(!1),isInteractiveExpectation$:Cn,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,looped$:uo,loadedMetadata$:Wt,isAutoQualityAvailable$:Ho,previewTrackActive:Ti,previewTrackDragInProgress:bi},ui:{t:Ue,isMinimalView$:ut,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),"theater-mode-button":re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:q.length?q.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:hi},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:lt,isFullscreenOpenedByKeyboard:ri,rotateAlpha:Dt,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:mi,isMobile:st,mobileNotReportControlHidden$:Oi,icon3DVideoVisible:re(!1),scrubbingInProgress:Ni,volumeChangingInProgress:an,is3DVideo:Le,currentGridType$:Qs,additionalButtonsDeprecated$:Gs,additionalDesktopControlPanelRightButtons$:ml,additionalSettingsMenuItems$:md,additionalContextMenuItems$:Vi,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:xs,controlBlocks:{topLeft:re(void 0),topRight:re(void 0),middle:re(void 0),bottom:re(void 0),bottomLeft:re(void 0),bottomRight:re(void 0)},videoTitleInfo:re(void 0),doubleForwardOn$:zp,doubleForwardAvailable$:C$,previewTrackActive:Ti,previewTrackDragInProgress:bi,previewTrackAvailable:Cr,isPreviewTrackHorizontallyAligned:Cs},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:Ie,annotationsApi:ot,slotsApi:Me,focusManager:be},actions:{internal:{preload:sr,firstStart:c=>gd(c,!1),play:()=>Ca(!1),pause:()=>Ys(!1),togglePlay:Wo,toggleMuted:ls,openSettingsMenu:ds,closeSettingsMenu:Or,openSettingsSubMenu:cs,closeSettingsSubMenu:io,setVolume:c=>Hr(c,!1),setMuted:c=>Un(c,!1),startVolumeChanging:Ts,stopVolumeChanging:Is,setVideoStream:tr,setAudioStream:c=>ft(c,!1),setQuality:(c,h)=>Di(c,h,!1),setTrafficSavingEnabled:(c,h)=>zn(c,h,!1),setHighQualityEnabled:(c,h)=>Ko(c,h,!1),setPlaybackRate:Qt,incrementPlaybackRate:Ai,decrementPlaybackRate:xn,setSubtitle:c=>oo(c,!1),toggleSubtitle:()=>Fr(!1),togglePictureInPicture:gi,startScrubbing:Wi,progressScrubbing:ve,completeScrubbing:Ao,toggleChromecast:iu,switchToActiveLive:Sa,switchFromAdsToVideo:Dp,switchFromVideoToAds:Zc,skipAd:bl,setLiveWaitingStart:Np,setLiveWaitingRecover:Jc,setLiveWaitingRecord:Op,getDebugTextData:eu,getTraceTextData:Bp,getDebugPanelData:tu,getVideoElement:$l,seekTime:(c,h,R)=>Wn(c,h,R),clearDelayedBufferingCheckTimeout:_r,seekEpisodeStartTime:ba,seekToPercent:us,getNextEpisode:_d,seekToNextEpisode:Fp,getPrevEpisode:ou,seekToPrevEpisode:Up,startLogging:it,stopLogging:Yt,startCameraManualRotation:vi,stopCameraManualRotation:at,moveCameraFocusPX:si,holdCamera:_i,releaseCamera:Gt,getVideoEpisodes:hd,getPreviewThumbsData:qe,downloadVideo:yn,addLanguage:Jf,setLanguage:mt,nextMovie:li,videoRotate:Yo,correctSeekTimeToInteractive:hg,replayInteractive:D,setLooped:po,reportProblem:je,setAutoplayNextEnabled:kt,setTimerNextVideoRunning:ci,prevVideoClick:Io,nextVideoClick:Eo,nextVideoAnnouncementShow:$o,nextVideoAnnouncementClick:fo,nextVideoAnnouncementAuto:Po,nextVideoAnnouncementCancel:rr,checkFullscreenSupport:St,changeDoubleForwardOn:bg,closePreviewTrack:I$,previewTrackOpened:T$,previewTrackDragStarted:E$,previewTrackDragFinished:P$},external:{firstStart:c=>gd(c,!0),play:()=>Ca(!0),pause:()=>Ys(!0),stop:()=>Hp(!0),seekTime:c=>$a(c),seekEpisodeStartTime:c=>vt(c),setPlaybackRate:c=>ii(c),setAutoQualityLimits:c=>ya(c),setMuted:c=>Un(c,!0),toggleSubtitle:()=>Fr(!0),changeSubtitle:qo,setVolume:c=>Hr(c,!0),returnFocusToEpisodes:w$,updateAdditionalSettingsItem:wa,addAdditionalSettingsItem:_l,removeAdditionalSettingsItem:ht,updateAdditionalContextItem:Go,addAdditionalContextItem:Ki,removeAdditionalContextItem:$i,updateAdditionalButton:vl,addAdditionalButton:gl,removeAdditionalButton:hl,setLiveLowLatency:vd,hideControls:()=>ws(!1),showControls:()=>ws(!0),setQuality:c=>Di(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>zn(c,"to-video",!0),setHighQualityEnabled:c=>Ko(c,"to-video",!0),changeAudioStream:$r,setMinimalView:Oe}},callbacks:s,setUiCallbacks:c=>{Qe={...c}},getAdmanWrapper:()=>me,getLogger:()=>fe,getPlayer:()=>B,destroy:S$};return Ft};function jn(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Us(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var Gx=["disabledControls$","additionalButtons"],Yx=["interactiveTimeIndicator"],od=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!Gx.includes(r)){let l=o||Yx.includes(r);a.set(jn(t,i,r,l))}}};var fp=async(t,e,i)=>{await ho(),e&&i&&(i.focus(),t.set(!1))};var jx=Ae('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function jm(t){Xe(t,{children:(e,i)=>{var o=jx();$(e,o)},$$slots:{default:!0}})}function Xm(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(s,"$contextMenuVisible$",i),a=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=ye(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,b=K(void 0);Fe(()=>{n(b)&&Pt(()=>{v.set(n(b))})});let y=T=>{let D=ca(T),A=ab(n(b));p.set(A),u.set(D),s.set(!r())},_=()=>{m.set(!0)},x=()=>{m.set(!1)},I=f(()=>r()?"opened":"");Ht(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:_,blur:x,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(T){N(b,T,!0)},children:(T,D)=>{jm(T,{})},$$slots:{default:!0}}),F(),o()}var Xx=t=>{t.stopPropagation()},Zx=k("<div><!> <div></div> <div></div></div>"),Jx={hash:"s-25",code:'.interactive-episode-icon-animated.s-25{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-25{height:28px;width:28px}.invisible.s-25{opacity:0;visibility:hidden}.fullscreen.s-25:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-25{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-25{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-25{right:16px;top:40px}}@keyframes s-25-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-25{animation:s-25-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-25{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-25{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-25{display:none}'};function wc(t,e){var fe;H(e,!0),Q(t,Jx);let[i,o]=Be(),r=()=>w(x,"$isMobile",i),a=()=>w(A,"$areControlsVisible",i),l=()=>w(V,"$currentGridType$",i),d=()=>w(T,"$isInteractiveTime$",i),s=()=>w(_,"$interactiveControlsOpacity$",i),u=()=>w(D,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>w(I,"$isFullscreen",i),p=g(e,"ref",15,void 0),v=K(void 0),b=ye(),y=yo(),{interactiveControlsOpacity$:_}=y,x=b.ui.isMobile,I=b.ui.isFullscreen,T=b.state.isInteractiveTime$,D=y.showInteractiveTimeIndicatorTooltip$,A=b.ui.controlsVisible,E=(fe=b.callbacks)==null?void 0:fe.onInteractiveTimeIndicatorClick,V=b.ui.currentGridType$,q=f(()=>!r()&&a()),L=f(()=>Bs(l(),"s")),z=f(()=>!d()||!!s()||n(q)),j=K(!1);Fe(()=>{N(j,n(z),!0)});let te=()=>{N(j,!0)},ee=()=>{var me;oe(),(me=n(v))==null||me.addEventListener("animationiteration",te,{once:!0})},oe=()=>{var me;N(j,!1),(me=n(v))==null||me.removeEventListener("animationiteration",te)},ae=me=>{D.set(me)},le=f(()=>u()&&!n(z));Fe(()=>{u()?ee():oe()});let ce=()=>{n(z)||(D.set(!0),E==null||E())};cn(()=>{D.clearTimeout(),oe()});let X=()=>{D.set(!1)},_e=G("tooltip_interactive_interaction_time_indicator");var Ee=Zx();let de;Ee.__mousemove=[Xx],Ee.__click=ce;var ze=C(Ee);Vo(ze,{get tooltipContent(){return _e},get tooltipVisible(){return n(le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ae,get ref(){return p()},set ref(me){p(me)},children:(me,Ie)=>{uc(me,{completed:!0})},$$slots:{default:!0}});var ue=P(ze,2);let pe;tt(ue,me=>p(me),()=>p());var Z=P(ue,2);let B;tt(Z,me=>N(v,me),()=>n(v)),S(Ee),O((me,Ie,ot)=>{de=ie(Ee,1,"interactive-episode-icon-animated s-25",null,de,me),pe=ie(ue,1,"ref-block s-25",null,pe,Ie),B=ie(Z,1,"pulse s-25",null,B,ot)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(L)}),()=>({hidden:n(z)}),()=>({paused:n(j)})]),_t("mouseleave",Ee,X),$(t,Ee),F(),o()}et(["mousemove","click"]);function mp(t,e){H(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),a=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);Vo(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 tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Re();let m=f(()=>e.buttonComponent);var p=se(u);Fi(p,()=>n(m),(v,b)=>{b(v,jr(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(d,u)},$$slots:{default:!0}}),F()}var zs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var t2=Ae('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function va(t,e){H(e,!0);let i=g(e,"reversed",3,!1),o=f(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=f(()=>`${un(e.size)}${n(o)}`),a=f(()=>i()?"prev-icon":"next-icon");Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=t2();$(l,s)},$$slots:{default:!0}}),F()}var i2=k('<div class="icon-background-mobile s-20"><!></div>'),o2={hash:"s-20",code:".icon-background-mobile.s-20{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function el(t,e){H(e,!0),Q(t,o2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=ye().ui.t,d=f(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=f(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=f(()=>`btn-${o()?"m":"d"}--${e.type}`);Ht(t,{get className(){return n(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{var v=Re(),b=se(v);{var y=x=>{var I=i2(),T=C(I);let D=f(()=>e.type==="prev");va(T,{get size(){return"32"},get reversed(){return n(D)}}),S(I),$(x,I)},_=x=>{let I=f(()=>e.type==="prev");va(x,{get size(){return"24"},get reversed(){return n(I)}})};M(b,x=>{o()?x(y):x(_,!1)})}$(m,v)},$$slots:{default:!0}}),F()}var n2=Ae('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function Sc(t,e){H(e,!0);let i=f(()=>un(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=n2();$(o,a)},$$slots:{default:!0}}),F()}var Lb=require("@vkontakte/videoplayer-shared/es2018");var r2=k('<div class="icon-background-mobile s-24"></div>'),s2=k("<!> <div><!></div>",1),a2={hash:"s-24",code:".mobile.s-24{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-24{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function nd(t,e){H(e,!0),Q(t,a2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),a=g(e,"className",3,""),l=g(e,"click",3,Lb.noop),d=G("tooltip_restart"),s=f(()=>`${o()?"btn-m--play":""} ${a()}`);Ht(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return _s.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=s2(),v=se(p);{var b=T=>{var D=r2();$(T,D)};M(v,T=>{o()&&T(b)})}var y=P(v,2);let _;var x=C(y);let I=f(()=>o()?"48":"24");Sc(x,{get size(){return n(I)}}),S(y),O(T=>_=ie(y,1,"s-24",null,_,T),[()=>({mobile:o()})]),$(u,p)},$$slots:{default:!0}}),F()}var l2=Ae('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Ws(t,e){H(e,!0);let i=f(()=>un(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=l2();$(o,a)},$$slots:{default:!0}}),F()}var Mb=require("@vkontakte/videoplayer-shared/es2018");var d2=k('<div class="icon-background-mobile s-22"><!></div>'),c2={hash:"s-22",code:".icon-background-mobile.s-22{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function rd(t,e){H(e,!0),Q(t,c2);let[i,o]=Be(),r=()=>w(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=yo(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),s=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),m=g(e,"className",3,""),p=g(e,"click",3,Mb.noop),b=ye().ui.t,{toggle:y}=a,_=f(()=>y),x=f(()=>r()!==null),I=f(()=>n(x)?r():s()),T=f(()=>n(I)?b("tooltip_pause"):b("tooltip_play")),D=f(()=>n(I)?Ws:vr),A=f(()=>`${d()?"btn-m--play":""} ${m()}`),E=f(()=>n(x)?n(_):p());Ht(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return _s.KeyK},get ref(){return l()},set ref(V){l(V)},children:(V,q)=>{var L=Re();let z=f(()=>n(D));var j=se(L);{var te=oe=>{var ae=d2(),le=C(ae);Fi(le,()=>n(z),(ce,X)=>{X(ce,{get size(){return"48"}})}),S(ae),$(oe,ae)},ee=oe=>{var ae=Re(),le=se(ae);Fi(le,()=>n(z),(ce,X)=>{X(ce,{get size(){return"24"}})}),$(oe,ae)};M(j,oe=>{d()?oe(te):oe(ee,!1)})}$(V,L)},$$slots:{default:!0}}),F(),o()}var u2=Ae('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function Zm(t){Xe(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=u2();$(e,o)},$$slots:{default:!0}})}function Cc(t,e){H(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_go_back"),l=f(()=>o()?"hidden":"");Ht(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Zm(d,{})},$$slots:{default:!0}}),F()}var p2=k('<span class="gutter s-26"><span><!></span></span>'),f2={hash:"s-26",code:".gutter.s-26{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-26{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-26{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Tc(t,e){H(e,!0),Q(t,f2);let[i,o]=Be(),r=()=>w(s,"$autoplayNextEnabled$",i),a=g(e,"ref",15,void 0),l=ye(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",b="#000",y=f(()=>r()?"true":"false");Ht(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(_){a(_)},children:(_,x)=>{var I=p2(),T=C(I);let D;var A=C(T);{var E=q=>{vr(q,{get size(){return v},fill:b})},V=q=>{Ws(q,{get size(){return v},fill:b})};M(A,q=>{r()?q(E):q(V,!1)})}S(T),S(I),O(q=>D=ie(T,1,"toggler s-26",null,D,q),[()=>({enabled:r()})]),$(_,I)},$$slots:{default:!0}}),F(),o()}var m2=Ae('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function Jm(t){Xe(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=m2();Xt(),$(e,o)},$$slots:{default:!0}})}function Ic(t,e){H(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_seek"),l=f(()=>o()?"hidden":"");Ht(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Jm(d,{})},$$slots:{default:!0}}),F()}var v2=Ae('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),g2=Ae('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function ev(t,e){let i=g(e,"isOpened",3,!1),o=f(()=>i()?"graph-close-icon":"graph-open-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=g2(),d=P(se(l));{var s=u=>{var m=v2();$(u,m)};M(d,u=>{i()&&u(s)})}$(r,l)},$$slots:{default:!0}})}function Ec(t,e){H(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=g(e,"graphIsOpened",3,!1),d=ye().ui.t,s=f(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=f(()=>o()?"hidden":"");Ht(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{let v=f(()=>!!a());ev(m,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),F()}var tv=require("@vkontakte/videoplayer-core/es2018");function Pc(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(u,"$playbackState$",i),a=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),s=ye(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=f(()=>()=>{if(!l()){m();return}r()===tv.PlaybackState.PAUSED&&p()}),b=f(()=>a()?"":"btn--live btn-full-opacity"),y=f(()=>l()?"btn-live":"btn-live-offset"),_=f(()=>l()&&r()===tv.PlaybackState.PLAYING);Ht(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n(_)},get ariaLabel(){return d()},get click(){return n(v)},children:(x,I)=>{tc(x,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var iv=require("@vkontakte/videoplayer-shared/es2018");var h2=k('<div class="icon icon-error-stub"><div class="inner"></div></div>'),_2=k('<img class="icon" aria-hidden="true"/>');function tl(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=Re(),a=se(r);{var l=s=>{var u=h2();$(s,u)},d=s=>{var u=_2();O(()=>De(u,"src",e.icon)),_t("error",u,o),Na(u),$(s,u)};M(a,s=>{n(i)?s(l):s(d,!1)})}$(t,r)}function ov(t,e){H(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,iv.noop),r=g(e,"ref",15),a=f(()=>o()===iv.noop),l=f(()=>n(a)||i()),d=f(()=>n(a)?"btn-full-opacity":"");Vo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let m=f(()=>{var p;return(p=e.testId)!=null?p:e.id});Ht(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(m)},children:(p,v)=>{tl(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var Vb=t=>!!t.buttonComponent;var Ks={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var vp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(jn(t,i,r,o))};var gp=require("@vkontakte/videoplayer-shared/es2018"),Rb=10,Db=40,nv=.2,$2=.5,y2=65,x2=114,w2=4,Nb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=f(()=>i?y2:x2),r=K(!1),a=K(0),l=K(0),d=f(()=>n(o)+Rb-Db-w2),s=f(()=>(0,gp.interpolate)(n(a),[nv,1],[0,-n(d)])),u=f(()=>(0,gp.interpolate)(n(a),[nv,1],[0,Db])),m=f(()=>(0,gp.interpolate)(n(a),[nv,1],[0,n(o)+Rb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:_=>{var x;N(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:_=>{if(!n(r))return;let x=Math.max(Math.min(_.clientY-n(l),0),-n(d));N(a,Math.abs(x/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(a,n(a)>=$2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{N(a,0)}}};var S2=t=>t;function ga(t,{delay:e=0,duration:i=400,easing:o=S2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var C2=k('<span class="root s-2b"> </span>'),T2={hash:"s-2b",code:".root.s-2b{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function rv(t,e){Q(t,T2);var i=C2(),o=C(i,!0);S(i),O(()=>ge(o,e.time)),$(t,i)}var I2=k('<div class="tooltip-wrapper s-13"><div><!></div></div>'),E2={hash:"s-13",code:'.tooltip-wrapper.s-13{display:block;position:relative}.tooltip.s-13{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-13:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-13{opacity:1;visibility:visible}'};function sv(t,e){Q(t,E2);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),a=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),s=K(void 0),u=K(void 0);function m(x){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return x<T?T+l():x>e.containerWidth-T?e.containerWidth-T-d():x}let p=f(()=>m(r()));var v=I2(),b=C(v);let y;var _=C(b);ei(_,()=>{var x;return(x=e.children)!=null?x:yt}),S(b),tt(b,x=>N(u,x),()=>n(u)),S(v),tt(v,x=>N(s,x),()=>n(s)),O(x=>{Ke(v,`transform: translate(${n(p)}px, ${a()}px);`),y=ie(b,1,"tooltip s-13",null,y,x),Ke(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,v)}var Ob=t=>Math.abs(t)/90%4===1;var P2=Ae('<path xmlns="http://www.w3.org/2000/svg" d="M15.782 10.152a.75.75 0 0 1-1.06 0L9.999 5.438l-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.246a.75.75 0 0 1 0 1.06Z"></path><path xmlns="http://www.w3.org/2000/svg" d="M15.782 16.152a.75.75 0 0 1-1.06 0l-4.723-4.715-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.245a.75.75 0 0 1 0 1.061Z"></path>',1);function av(t){Xe(t,{height:"20",width:"20",shadow:!0,children:(e,i)=>{var o=P2();Xt(),$(e,o)},$$slots:{default:!0}})}var A2=k('<div class="rich-seek-hint s-12"><span class="icon_wrapper s-12"><!></span> <span class="rich-seek-hint-text s-12"> </span></div>'),k2=k('<div class="preview s-12"><!></div>'),L2=k('<div class="episode s-12"><!></div>'),M2=k('<div class="time s-12"> </div>'),V2=k("<div><!> <!> <!></div>"),R2={hash:"s-12",code:".timeline-preview.s-12{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-12{bottom:72px}.preview.s-12{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow);display:flex;justify-content:center}.episode.s-12{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-12,.time.s-12{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-12{color:var(--white)}.rich-seek-hint.s-12{position:absolute;text-align:center;top:-12px;transform:translateY(-100%)}.icon_wrapper.s-12{display:inline-block;height:20px;margin-right:6px;vertical-align:top;width:20px}.rich-seek-hint-text.s-12{font-size:14px;line-height:18px;text-shadow:0 2px 4px rgba(0,0,0,.3),0 7px 16px rgba(0,0,0,.25);vertical-align:top}"};function lv(t,e){H(e,!0),Q(t,R2);let[i,o]=Be(),r=()=>w(x,"$isMinimalView$",i),a=()=>w(I,"$rotateAlpha",i),l=()=>w(T,"$playerSize",i),d=()=>w(D,"$previewTrackAvailable",i),s={MOBILE:150,DESKTOP:278},u=g(e,"time",3,""),m=g(e,"isMobile",3,!1),p=g(e,"videoEpisodes",19,()=>[]),v=g(e,"progress",3,0),b=g(e,"duration",3,0),y=g(e,"isInteractive",3,!1),_=ye(),x=_.ui.isMinimalView$,I=_.ui.rotateAlpha,T=_.ui.playerSize,D=_.ui.previewTrackAvailable,A=K(0),E=K(0),V=K(""),q=K(0),L=K(0),z=K(0),j=K(0),te=f(()=>ip(v(),b(),p())),ee=f(()=>!r()),oe=f(()=>td(a())),ae=f(()=>Ob(a())),le=f(_e),ce=f(()=>(n(ae)?1:-1)*(n(A)/2-n(E)/2)),X=f(()=>n(ce)*-1);Fe(()=>{(Me=>{N(A,Me.width,!0),N(E,Me.height,!0)})(de())}),Fe(()=>{(Me=>{N(V,Me.imgSrc,!0),N(q,Me.imgWidth,!0),N(L,Me.imgHeight,!0),N(z,Me.imgOffsetX,!0),N(j,Me.imgOffsetY,!0)})(ze(v()))});function _e(){var Ce;let Me=m()?s.MOBILE:s.DESKTOP,{isVertical:be}=Ee(),W=30;return(Ce=n(te))!=null&&Ce.text&&(W+=16),(be||n(oe))&&(W+=18,W+=50),Math.min(Math.max(l().height-W,0),Me)}function Ee(){let Me=e.previewThumbsData.frameWidth,be=e.previewThumbsData.frameHeight,W=be>Me;return{width:Me,height:be,isHorizontal:!W,isVertical:W}}function de(){let{height:Me,isHorizontal:be,isVertical:W,width:Ce}=Ee();return be&&(Me=Me/Ce*n(le),Ce=n(le)),W&&(Ce=Ce/Me*n(le),Me=n(le)),{width:Ce,height:Me}}function ze(Me){let be;e.previewThumbsData.isUV?be=Math.floor(b()*Me/e.previewThumbsData.frequency):be=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Me)));let W=Math.floor(be/e.previewThumbsData.countPerImage),Ce=Math.floor(be%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ke=be%e.previewThumbsData.countPerRow,Qe=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&W===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Qe=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Qe++);let Te=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&W===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Te=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let we=n(A)*Te,He=n(E)*Qe,st=-ke*n(A),ut=-Ce*n(E);return{imgSrc:e.previewThumbsData.links[W],imgWidth:we,imgHeight:He,imgOffsetX:st,imgOffsetY:ut}}var ue=V2();let pe;var Z=C(ue);{var B=Me=>{var be=k2(),W=C(be);{var Ce=ke=>{var Qe=A2(),Te=C(Qe),we=C(Te);av(we,{}),S(Te);var He=P(Te,2),st=C(He,!0);S(He),S(Qe),O(ut=>ge(st,ut),[()=>G("preview_track_notification_text")]),$(ke,Qe)};M(W,ke=>{d()&&ke(Ce)})}S(be),O(()=>Ke(be,`width: ${n(A)}px; height: ${n(E)}px; background-image: url(${n(V)}); background-size: ${n(q)}px ${n(L)}px; background-position: ${n(z)}px ${n(j)}px;
60
+ transform: rotate(${a()}deg) ${n(oe)?`translate(${n(ce)}px, ${n(X)}px)`:""};
61
+ `)),$(Me,be)};M(Z,Me=>{n(V)&&Me(B)})}var fe=P(Z,2);{var me=Me=>{var be=L2(),W=C(be);{var Ce=ke=>{var Qe=Re(),Te=se(Qe);{var we=st=>{var ut=hs();O(It=>ge(ut,It),[()=>G("tooltip_episode_unfinished")]),$(st,ut)},He=st=>{var ut=hs();O(()=>ge(ut,n(te).text||"")),$(st,ut)};M(Te,st=>{y()&&n(te).completed===!1?st(we):st(He,!1)})}$(ke,Qe)};M(W,ke=>{n(te)&&ke(Ce)})}S(be),$(Me,be)};M(fe,Me=>{n(ee)&&Me(me)})}var Ie=P(fe,2);{var ot=Me=>{var be=M2(),W=C(be,!0);S(be),O(()=>ge(W,u())),$(Me,be)};M(Ie,Me=>{y()||Me(ot)})}S(ue),O(Me=>{pe=ie(ue,1,"timeline-preview s-12",null,pe,Me),Ke(ue,`width: ${n(oe)?n(E):n(A)}px;`)},[()=>({mobile:m()})]),$(t,ue),F(),o()}var D2=k('<span class="time s-f"> </span>'),N2=k("<!> <!>",1),O2={hash:"s-f",code:".time.s-f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.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 dv(t,e){var Ne,$e,Oe,mt,Et;H(e,!0),Q(t,O2);let[i,o]=Be(),r=()=>w(ee,"$interactiveEpisodes$",i),a=()=>w(V,"$duration$",i),l=()=>w(E,"$position$",i),d=()=>w(le,"$isInteractiveExpectation$",i),s=()=>w(ae,"$isInteractiveTime$",i),u=()=>w(Ee,"$previewTrackActive",i),m=()=>w(q,"$isLive$",i),p=()=>w(_e,"$disabledControls$",i),v=()=>w(z,"$isMobile",i),b=()=>w(L,"$isActiveLive$",i),y=()=>w(A,"$bufferedProgress$",i),_=g(e,"showTimeline",3,!1),x=g(e,"withEpisodes",3,!0),I=g(e,"ref",15,void 0),T=ye(),D=Mt(),A=T.state.bufferedProgress$,E=T.state.positionWithScrubbing$,V=T.state.duration$,q=T.state.isLive$,L=T.state.isActiveLive$,z=T.ui.isMobile,j=D.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,te=T.actions.internal.getPreviewThumbsData(),ee=T.state.interactiveEpisodes$,oe=T.state.isInteractive,ae=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,ce=T.actions.internal.correctSeekTimeToInteractive,X=(Ne=T.callbacks)==null?void 0:Ne.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,Ee=T.ui.previewTrackActive,de=(Oe=($e=T.callbacks)==null?void 0:$e.uiInfo)==null?void 0:Oe.onTimelineMouseEnter,ze=(Et=(mt=T.callbacks)==null?void 0:mt.uiInfo)==null?void 0:Et.onTimelineMouseLeave,ue=T.ui.t,pe=D.features.interactiveResponsiveUi,Z=f(()=>oe?r():j),B=f(()=>nn(a())),fe=f(()=>nn(l())),me=f(()=>l()/a()),Ie=f(()=>d()||s()),ot=K(!1),Me=K(""),be=K(0),W=K(0),Ce=K(0),ke=f(()=>({containerWidth:n(W),translateXPx:n(be),translateYPx:oe&&te?-36:-16,active:n(ot)&&_()&&!n(Ie)&&!pe&&!u(),pointer:!D.features.timelinePreview||!te||m()})),Qe=ue("aria_timeline"),Te=f(()=>ue("aria_timeline_value",{position:n(fe),duration:n(B)}));function we(Se){return!ce||!oe?Se:ce(Se*a())/a()}function He(Se,Ye){var Ue;(Ue=e.onSliderPointerDown)==null||Ue.call(e,Ye),T.actions.internal.startScrubbing(we(Se))}function st(Se){s()||T.actions.internal.progressScrubbing(we(Se))}function ut(Se){var Ye;T.actions.internal.completeScrubbing(we(Se)),N(ot,!1),(Ye=e.onSliderPointerUp)==null||Ye.call(e)}function It(Se,Ye,Ue){var xe;(xe=e.onSliderPointerEnter)==null||xe.call(e,Se),St(Se,Ye,Ue),N(ot,!0)}function lt(Se,Ye,Ue,xe){var Nt;(Nt=e.onSliderMove)==null||Nt.call(e,xe,Se),St(Se,Ye,Ue),N(ot,!0)}function ri(){var Se;N(ot,!1),(Se=e.onSliderLeave)==null||Se.call(e)}function St(Se,Ye,Ue){N(Ce,we(Se),!0),N(be,Ye,!0),Ue&&N(W,Ue,!0),N(Me,Rt(Se),!0)}function Rt(Se){let Ye=nn((m()?1-Se:Se)*a());return m()?`-${Ye}`:Ye}let Dt=f(()=>p().has("TIMELINE"));var Wt=N2(),Le=se(Wt);sv(Le,jr(()=>n(ke),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Se,Ye)=>{var Ue=Re(),xe=se(Ue);{var Nt=qt=>{lv(qt,{get time(){return n(Me)},get isMobile(){return v()},get videoEpisodes(){return n(Z)},get previewThumbsData(){return te},get progress(){return n(Ce)},get duration(){return a()},get isInteractive(){return oe}})},Tt=qt=>{var hi=D2(),mi=C(hi,!0);S(hi),O(()=>ge(mi,n(Me))),$(qt,hi)};M(xe,qt=>{D.features.timelinePreview&&te&&!m()?qt(Nt):qt(Tt,!1)})}$(Se,Ue)},$$slots:{default:!0}}));var Y=P(Le,2);ja(Y,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return v()},get ariaLabel(){return Qe},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Te)},get loadedProgress(){return y()},get filledProgress(){return n(me)},get handleProgress(){return n(me)},get videoEpisodes(){return n(Z)},onPointerDown:He,onHandleMove:st,onPointerMove:lt,onPointerUp:ut,onPointerEnter:It,onPointerLeave:ri,get onMouseEnter(){return de},get onMouseLeave(){return ze},get onDisabledClick(){return X},get isInteractive(){return oe},get disabled(){return n(Dt)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:ut,get ref(){return I()},set ref(Se){I(Se)}}),$(t,Wt),F(),o()}var B2={hash:"s-g",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 Ac(t,e){H(e,!0),Q(t,B2);let[i,o]=Be(),r=()=>w(s,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"duration",3,0),d=ye(),s=d.ui.isMobile,u=d.ui.t,m=f(()=>nn(l())),p=f(()=>nn(a())),v=f(()=>a()/l()),b=f(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),y=f(()=>Math.round(n(v)*100));ja(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n(b)},get filledProgress(){return n(v)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var H2=k("<div><!></div>"),F2=k("<div></div>"),U2={hash:"s-e",code:".timeline.s-e{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-e{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-e{padding:0}.timeline-stub.s-e{min-width:20px;width:100%}.timeline-stub.mobile.s-e{height:8px}"};function il(t,e){H(e,!0),Q(t,U2);let[i,o]=Be(),r=()=>w(x,"$isLive$",i),a=()=>w(D,"$isMobile",i),l=()=>w(A,"$disabled",i),d=()=>w(T,"$adPosition",i),s=()=>w(I,"$adDuration",i),u=g(e,"isAds",3,!1),m=g(e,"isHidden",3,!1),p=g(e,"timelineNotAvailable",3,!1),v=g(e,"needPadding",3,!0),b=g(e,"ref",15,void 0),y=ye(),_=Mt(),x=y.state.isLive$,I=y.ads.duration,T=y.ads.position,D=y.ui.isMobile,A=re(!1),E=f(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var V=Re(),q=se(V);{var L=j=>{var te=H2();let ee;var oe=C(te);{var ae=ce=>{Ac(ce,{get position(){return d()},get duration(){return s()}})},le=ce=>{dv(ce,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(E)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return b()},set ref(X){b(X)}})};M(oe,ce=>{u()?ce(ae):ce(le,!1)})}S(te),Rs(te,()=>ql(m()&&_.features.usePerformanceFix,A,_.disableInvisibleComponentsTimeout)),O(ce=>ee=ie(te,1,"timeline s-e",null,ee,ce),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),$(j,te)},z=j=>{var te=F2();let ee;O(oe=>ee=ie(te,1,"timeline-stub s-e",null,ee,oe),[()=>({mobile:a()})]),$(j,te)};M(q,j=>{n(E)?j(L):j(z,!1)})}$(t,V),F(),o()}var Bb=require("@vkontakte/videoplayer-shared/es2018");var Hb=require("@vkontakte/videoplayer-statistics/es2018"),z2=(t,e,i,o,r,a,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),a(l())},W2=k("<div></div>"),K2=k('<div><div class="track s-2a"></div></div>'),q2={hash:"s-2a",code:'.root.s-2a{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2a,.root.vertically-rotated.s-2a{height:var(--preview-track-frame-height-vertical)}.root.s-2a:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2a{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2a,.track.s-2a{position:absolute}.frame.s-2a{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2a .frame:where(.s-2a){transform-origin:0 0}.rotate-1.s-2a{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2a{transform:rotate(-180deg)}.rotate-3.s-2a{transform:rotate(-270deg) translateY(-100%)}'};function uv(t,e){H(e,!0),Q(t,q2);let[i,o]=Be(),r=()=>w(D,"$rotateAlpha",i),a=()=>w(_,"$position$",i),l=()=>w(y,"$duration$",i),d=ye(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:v=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:_}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,D=d.ui.rotateAlpha,A=K(void 0),E=K(!1),V=K(0),q=K(0),L=K(0),z=K(0),j=f(()=>v<=b),te=f(()=>td(r())),ee=f(()=>n(j)?!n(te):n(te)),oe=114,ae=65,le=3,ce=f(()=>n(ee)?oe:ae),X=f(()=>n(j)?oe:ae),_e=f(()=>n(j)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Ee=f(()=>m*n(ce)),de=K(0);Fe(()=>{N(z,Math.ceil(-n(L)/n(ce))-1),N(L,-n(Ee)*a()/l())});let ze=()=>{T(ue(),!0,Hb.ThinOneStat.ActionSeekType.RICH)},ue=()=>l()*-n(L)/n(Ee)/l(),pe=!1,Z=Te=>{if(!n(E))return!1;let we=Te.clientX-n(V);N(L,n(q)+we),N(L,Math.max(Math.min(n(L),0),-n(Ee)),!0),Math.abs(we)>1&&(pe=!0),I(ue())},B=Te=>{n(E)&&(N(E,!1),!pe&&Te&&N(L,-(Te.offsetX-n(de)/2)),pe=!1,ze())},fe=()=>{n(E)&&B()},me=f(()=>s/u),Ie=(Te,we)=>{if(Te!==p.length-1)return u;let He=0,st=we*u;for(let ut=1;ut<=u;ut++)Te*s+He+st<m&&He++;return He},ot=f(()=>Math.floor(n(z)/s)),Me=f(()=>(0,Bb.getRangeAroundIndex)(3,n(ot),p.length-1)),be=(Te,we,He)=>{let st=s*n(ce);return Te*st+we*n(ce)*u+n(de)/2-le/2+He*n(ce)},W=f(()=>[`--row-numbers: ${n(me)}`,`--column-numbers: ${u}`,`--frame-width: ${n(X)}px`,`--frame-height: ${n(_e)}`].join(";"));var Ce=K2();let ke;var Qe=C(Ce);Qe.__pointerdown=[z2,E,V,q,L,x,ue],Qe.__pointermove=Z,Qe.__pointerup=B,xi(Qe,20,()=>n(Me),Te=>Te,(Te,we)=>{var He=Re(),st=se(He);xi(st,16,()=>Array.from({length:n(me)},(ut,It)=>It),ut=>ut,(ut,It)=>{var lt=Re(),ri=se(lt);xi(ri,16,()=>Array.from({length:Ie(we,It)},(St,Rt)=>Rt),St=>St,(St,Rt)=>{var Dt=W2();O((Wt,Le)=>{Ke(Dt,Wt),ie(Dt,1,Le,"s-2a")},[()=>`--row-index: ${It}; --column-index: ${Rt}; left: ${be(we,It,Rt)}px; background-image: url(${p[we]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),$(St,Dt)}),$(ut,lt)}),$(Te,He)}),S(Qe),S(Ce),tt(Ce,Te=>N(A,Te),()=>n(A)),O(Te=>{ke=ie(Ce,1,"root s-2a",null,ke,Te),Ke(Ce,n(W)),Ke(Qe,`transform: translateX(${n(L)}px); width: ${n(Ee)}px;`)},[()=>({"is-vertical-video":!n(j),"vertically-rotated":n(te)})]),_t("mouseleave",Qe,fe),kn(Ce,"clientWidth",Te=>N(de,Te)),$(t,Ce),F(),o()}et(["pointerdown","pointermove","pointerup"]);var Q2=k('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),G2={hash:"s-2c",code:".notification.s-2c{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2c{font-size:14px;line-height:18px}"};function pv(t,e){H(e,!1),Q(t,G2);let i=340,{ui:{t:o}}=ye();on();var r=Q2(),a=C(r),l=C(a,!0);S(a),S(r),O(d=>ge(l,d),[()=>o("preview_track_close_tooltip")],Tn),Ds(3,r,()=>ga,()=>({duration:i})),$(t,r),F()}var Fb=require("@vkontakte/videoplayer-shared/es2018"),Y2=k('<div class="preview-track-close tooltip s-27"><!></div>'),j2=k('<div class="preview-track-control s-27"><!> <div class="preview-track-close s-27"><!></div> <!></div>'),X2=k('<div class="wrapper-preview-track s-27"><!></div>'),Z2=k('<div class="enriched-timeline s-27"><!> <!> <!></div>'),J2={hash:"s-27",code:".enriched-timeline.s-27{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-27{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-27{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-27{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-27:hover+.tooltip:where(.s-27){opacity:1}.wrapper-preview-track.s-27{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function fv(t,e){H(e,!0),Q(t,J2);let[i,o]=Be(),r=()=>w(_,"$playerSize",i),a=()=>w(y,"$duration$",i),l=()=>w(x,"$previewTrackActive",i),d=()=>w(v,"$position$",i),s=()=>w(b,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),m=ye(),p=200,{positionWithScrubbing$:v,isRewindableLive$:b,duration$:y}=m.state,{playerSize:_,previewTrackActive:x}=m.ui,{countPerImage:I=0,links:T=[],frequency:D=0}=m.actions.internal.getPreviewThumbsData()||{},A=f(()=>r().width>100),E=K(!K_()),V=()=>{n(E)&&(W_(),N(E,!1))},q=ce=>{let X=Math.floor(a()*ce/D),_e=Math.floor(X/I),Ee=(0,Fb.getRangeAroundIndex)(3,_e,T.length-1);for(let de of Ee){let ze=new Image;ze.src=T[de]}},L=(ce,X)=>{q(X),!l()&&e.onTimelineMove(ce)};var z=Z2(),j=C(z);{var te=ce=>{var X=j2(),_e=C(X);let Ee=f(()=>nn(d()));rv(_e,{get time(){return n(Ee)}});var de=P(_e,2),ze=C(de);Os(ze,{onClick:()=>m.actions.internal.closePreviewTrack()}),S(de);var ue=P(de,2);{var pe=Z=>{var B=Y2(),fe=C(B);pv(fe,{}),S(B),$(Z,B)};M(ue,Z=>{n(E)&&Z(pe)})}S(X),_t("mouseleave",de,V),Ds(3,X,()=>ga,()=>({duration:p})),$(ce,X)};M(j,ce=>{l()&&ce(te)})}var ee=P(j,2);let oe=f(()=>!n(A));il(ee,{get isHidden(){return n(oe)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:L,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:q,get ref(){return u()},set ref(ce){u(ce)}});var ae=P(ee,2);{var le=ce=>{var X=X2(),_e=C(X);uv(_e,{}),S(X),O(()=>Ke(X,`height: ${e.animatedPreviewTrackHeight}px;`)),$(ce,X)};M(ae,ce=>{e.previewTrackAvailable&&ce(le)})}S(z),O(()=>Ke(z,`transform: translateY(${e.animatedOffsetY}px);`)),$(t,z),F(),o()}var tw=k('<div><!> <div data-testid="player_controls"><div class="controls-left s-18"><!> <!> <!></div> <div class="controls-right s-18"></div></div></div> <!>',1),iw={hash:"s-18",code:'.wrapper-bottom.s-18{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-18:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-18>:where(.s-18){pointer-events:auto}.controls.s-18{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls.minimal-view.s-18{padding:0 var(--controls-desktop-padding-horizontal-minimal-view) 4px}.controls-left.s-18,.controls-right.s-18{align-content:center;display:flex}.controls-left.s-18{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-18 >:not(:first-child),.controls-right.s-18 >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-18{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-18{transition:none}'};function vv(t,e){var wa,_l;H(e,!0),Q(t,iw);let[i,o]=Be(),r=()=>w(to,"$disabledControls$",i),a=()=>w(Gt,"$adPlaybackState",i),l=()=>w(hi,"$playbackState$",i),d=()=>w(zi,"$currentSubtitle$",i),s=()=>w(Ji,"$isEnded$",i),u=()=>w(Do,"$currentGridType$",i),m=()=>w(Nt,"$isMinimalView$",i),p=()=>w(ai,"$isLive$",i),v=()=>w(pt,"$chromecastState$",i),b=()=>w(Li,"$isPictureInPictureActive",i),y=()=>w(li,"$pictureInPictureType$",i),_=()=>w(di,"$availableSubtitlesList$",i),x=()=>w(it,"$contextMenuOpenedByKeyboard$",i),I=()=>w(U,"$showContextMenuBtn$",i),T=()=>w(eo,"$isRewindableLive$",i),D=()=>w(wi,"$isActiveLive$",i),A=()=>w(hr,"$graphIsOpened$",i),E=()=>w(fn,"$contextMenuVisible$",i),V=()=>w(Ct,"$isFullscreen",i),q=()=>w(vn,"$autoplayNextEnabled",i),L=()=>w(n(Fo),"$prevButton",i),z=()=>w(n(Uo),"$replayButton",i),j=()=>w(n(zo),"$playButton",i),te=()=>w(n(bo),"$nextButton",i),ee=()=>w(n(Fn),"$playPrevChapterButton",i),oe=()=>w(n(yr),"$seekToInteractiveButton",i),ae=()=>w(n(sn),"$interactiveGraphButton",i),le=()=>w(n(yn),"$liveButton",i),ce=()=>w(n(ls),"$time",i),X=()=>w(n(Or),"$episodes",i),_e=()=>w(n(ds),"$vkLogo",i),Ee=()=>w(n(io),"$volume",i),de=()=>w(n(cs),"$subtitles",i),ze=()=>w(n(Br),"$settings",i),ue=()=>w(n(To),"$context",i),pe=()=>w(n(Hr),"$fullscreen",i),Z=()=>w(n(Un),"$chromecast",i),B=()=>w(mn,"$additionalDesktopControlPanelRightButtons$",i),fe=()=>w(_o,"$playerSize",i),me=()=>w(xo,"$isInteractiveTime$",i),Ie=()=>w(ya,"$previewTrackActive",i),ot=()=>w(Ui,"$settingsMenuVisible",i),Me=()=>w(Eo,"$settingButtonRef$",i),be=()=>w(Yt,"$startedByKeyboard$",i),W=()=>w(mi,"$isAudioAvailable$",i),Ce=()=>w(Le,"$fakeIsPlaying$",i),ke=()=>w(is,"$seekToInteractiveDisabledTooltip$",i),Qe=()=>w(Ti,"$isPreviewTrackHorizontallyAligned$",i),Te=()=>w(ii,"$previewTrackAvailable",i),we=()=>w(vt,"$previewTrackDragInProgress",i),He=()=>w(_i,"$adPosition",i),st=()=>w(qt,"$position$",i),ut=()=>w(si,"$adDuration",i),It=()=>w(Tt,"$duration$",i),lt=g(e,"playerControlsWrapperRef",15,void 0),ri=g(e,"playerControlsRef",15,void 0),St=g(e,"isAds",3,!1),Rt=g(e,"logoTargetUrl",3,""),Dt=g(e,"isOneVideoPlaylist",3,!1),Wt=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Le}=yo(),Y=ye(),Ne=yo(),$e=Mt(),Oe=Y.actions.internal.toggleMuted,mt=Y.actions.internal.togglePlay,Et=Y.actions.internal.pause,Se=Y.actions.internal.toggleSubtitle,Ye=Y.actions.internal.checkFullscreenSupport,Ue=(wa=Y.callbacks)==null?void 0:wa.onAudioDoesNotExistHint,xe=(_l=Y.callbacks)==null?void 0:_l.onAudioDisabledHint,Nt=Y.ui.isMinimalView$,Tt=Y.state.duration$,qt=Y.state.positionWithScrubbing$,hi=Y.state.playbackState$,mi=Y.state.isAudioAvailable$,ki=Y.state.isAudioDisabled,Ji=Y.state.isEnded$,ai=Y.state.isLive$,wi=Y.state.isActiveLive$,eo=Y.state.isRewindableLive$,{isActive$:Li,type$:li}=Ne.pictureInPicture$,Ui=Y.ui.settingsMenu.visible$,bt=Y.ui.settingsMenu.openedByBtnKeyboard$,We=Y.ui.controls,nt=Y.actions.internal.getVideoEpisodes(),pt=Y.state.chromecastState$,di=Y.state.availableSubtitlesList$,zi=Y.state.currentSubtitle$,to=We.disabledControls$,fn=Y.ui.contextMenu.visible$,U=Y.ui.contextMenu.showContextMenuBtn$,it=Y.ui.contextMenu.openedByBtnKeyboard$,Yt=Y.ui.startedByKeyboard$,vi=Y.ui.controlBlocks,at=Y.ui.t,si=Y.ads.duration,_i=Y.ads.position,Gt=Y.ads.playbackState,Ct=Y.ui.isFullscreen,_o=Y.ui.playerSize,Do=Y.ui.currentGridType$,mn=Y.ui.additionalDesktopControlPanelRightButtons$,vn=Y.ui.autoplayNextEnabled$,Ei=Y.actions.internal.getVideoElement,Si=Y.actions.internal.replayInteractive,gn=Y.actions.internal.prevVideoClick,gr=Y.actions.internal.nextVideoClick,yi=Y.state.isInteractive,xo=Y.state.isInteractiveTime$,No=Y.state.showInteractiveGraph,Oo=Y.state.showSeekToInteractive,hn=Y.state.showPlayPrevChapter,ts=Y.state.showInteractiveTimeIndicator,ys=Y.state.playPrevChapterDisabledTooltip,is=Ne.seekToInteractiveDisabledTooltip$,hr=Ne.graphIsOpened$,_n=$e.features.interactiveResponsiveUi,os=f(()=>r().has("EPISODE_BUTTON")),Zn=f(()=>r().has("GRAPH_BUTTON")),Vr=f(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),wo=f(()=>r().has("PLAY_BUTTON")),ns=f(()=>r().has("REPLAY_BUTTON")),_r=f(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Rn=()=>Y.actions.internal.toggleChromecast(),Dn=f(()=>St()?a()==="playing":l()===ol.PlaybackState.PLAYING),Nn=f(()=>d().value!=="off"),Jn=f(()=>s()&&!St()||yi),Rr=f(()=>_n?n(Jn)&&ao(u(),"m"):n(Jn)),rs=f(()=>!s()||yi||St()),Pi=f(()=>!m()&&ao(u(),"m")),ss=f(()=>!m()&&ao(u(),"m")&&!St()&&e.nextButtonActive),Bo=f(()=>!m()&&ao(u(),"m")&&!St()&&e.prevButtonActive),er=f(()=>!St()&&!!p()),br=f(()=>!m()&&v()!==ol.ChromecastState.NOT_AVAILABLE&&!(b()&&y()===1)&&ao(u(),"m")&&!yi&&!St()),tr=f(()=>e.showAutoplayNext&&!m()&&!Dt()&&ao(u(),"s")),ft=f(()=>!m()&&_().length>0&&ao(u(),"m")),Zt=f(()=>x()||I()),$r=f(()=>ao(u(),"s")&&!St()),as=f(()=>!e.logoHidden&&!St()&&!m()),ir=f(()=>$e.features.fullscreen&&Ye()&&(e.logoHidden||ao(u(),_n?"xs":"s"))&&!(b()&&y()===1)&&(yi?Wt():!0)),rn=f(()=>(!p()||St())&&!($e.features.interactiveHideTime&&yi)),On=f(()=>No&&ao(u(),"m")),or=f(()=>_n?Oo&&ao(u(),"s"):Oo),Dr=f(()=>_n?hn&&ao(u(),"s"):hn),Ho=f(()=>!m()&&!St()&&!p()&&!!(nt!=null&&nt.length)&&n(Pi)&&!n(os)),bn=f(()=>!T()||!!D()),Bn=f(()=>A()?at("tooltip_interactive_graph_on"):at("tooltip_interactive_graph_off")),co=f(()=>E()?at("tooltip_context_menu_close"):at("tooltip_context_menu_open")),So=(ht,ct)=>ht?ct&&ct===ol.PlaybackState.PAUSED?at("tooltip_play"):"":at("tooltip_live"),Hn=f(()=>So(n(bn),l())),Mi=f(()=>$e.logoType==="vk_video"?at("tooltip_vk_video_logo"):at("tooltip_vk_logo")),nr=f(()=>n(Nn)?at("tooltip_subtitles_on"):at("tooltip_subtitles_off")),$n=f(()=>V()?at("tooltip_fullscreen_on"):at("tooltip_fullscreen_off")),Nr=f(()=>v()===ol.ChromecastState.CONNECTED?at("tooltip_chromecast_on"):at("tooltip_chromecast_off")),$t=f(()=>q()?at("tooltip_autoplay_on"):at("tooltip_autoplay_off")),Jt=K(0),Ut=ni({}),Co=ni({}),Fo=f(()=>We.prevButton),Uo=f(()=>We.replayButton),zo=f(()=>We.playButton),bo=f(()=>We.nextButton),Fn=f(()=>We.playPrevChapterButton),yr=f(()=>We.seekToInteractiveButton),sn=f(()=>We.interactiveGraphButton),yn=f(()=>We.liveButton),ls=f(()=>We.time),Or=f(()=>We.episodes),ds=f(()=>We.vkLogo),io=f(()=>We.volume),cs=f(()=>We.subtitles),Br=f(()=>We.settings),To=f(()=>We.context),Hr=f(()=>We.fullscreen),Un=f(()=>We.chromecast),uo=f(()=>({prevButton:L()?L().right-L().left:0,replayButton:z()?z().right-z().left:0,playButton:j()?j().right-j().left:0,nextButton:te()?te().right-te().left:0,playPrevChapterButton:ee()?ee().right-ee().left:0,seekToInteractiveButton:oe()?oe().right-oe().left:0,interactiveGraphButton:ae()?ae().right-ae().left:0,liveButton:le()?le().right-le().left:0,time:ce()?ce().right-ce().left:0,episodes:X()?X().right-X().left:0,vkLogo:_e()?_e().right-_e().left:0,volume:Ee()?Ee().right-Ee().left:0,subtitles:de()?de().right-de().left:0,settings:ze()?ze().right-ze().left:0,context:ue()?ue().right-ue().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:Z()?Z().right-Z().left:0,additionalButtons:B().length?B().reduce(ht=>[...ht,40],[]):[]})),po=K(0);Fe(()=>{(!n(po)||n(po)<n(uo).time)&&Pt(()=>N(po,n(uo).time,!0))});let je=K(!1);Fe(()=>{let ht=0;n(Ho)&&(ao(u(),"xl")?ht=n(uo).time:ht=60);let ct=n(uo).prevButton+n(uo).playButton+n(uo).nextButton+n(uo).seekToInteractiveButton+n(uo).interactiveGraphButton+n(uo).liveButton+n(po)+ht;N(je,n(rn)&&n(Jt)>=ct,!0)});let kt=f(()=>n(je)&&ao(u(),"m")),ci=(0,mv.debounceFn)(od,260),Io=(0,mv.debounceFn)(vp,260);Fe(()=>{fe(),me(),Ie(),ci(Ei(),We,Ut,e.showControls),Io(Ei(),vi,Co,e.showControls)}),Fe(()=>{Co.bottom=lt()});let Eo=re();Fe(()=>{ot(),Me()&&Pt(()=>Gl(Me(),ot(),bt))});let $o;Fe(()=>{be(),Pt(()=>fp(Yt,be(),$o))});function fo(){ua({isAudioDisabled:ki,isAudioAvailable:W(),isAds:St(),audioIsNotExistHintCallback:Ue,audioDisabledHintCallback:xe})&&Oe()}let Po=yi?Si:mt,rr=f(()=>Ce()!==null),sr=f(()=>n(rr)?Ce():n(Dn)),Wo=f(()=>n(sr)?at("tooltip_pause"):at("tooltip_play")),Di=at("tooltip_episodes"),zn=f(()=>{var ht,ct,Vi,Go;return n(Bo)?{id:"prevButton",type:"desktop-control-panel-left",weight:zs.prevButton,buttonComponent:el,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:gn.bind(null,!0)},tooltipEnabled:!((ct=(ht=Y.callbacks)==null?void 0:ht.uiInfo)!=null&&ct.onPrevButtonMouseEnter)&&!((Go=(Vi=Y.callbacks)==null?void 0:Vi.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var Ki,$i,Oi;(Oi=($i=(Ki=Y.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:$i.onPrevButtonMouseEnter)==null||Oi.call($i,jn(Ei(),Ut,"prevButton",e.showControls))},mouseLeave:()=>{var Ki,$i,Oi;(Oi=($i=(Ki=Y.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:$i.onPrevButtonMouseLeave)==null||Oi.call($i,jn(Ei(),Ut,"prevButton",e.showControls))},tooltipText:at("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Ko=f(()=>n(Rr)?{id:"replayButton",type:"desktop-control-panel-left",weight:zs.replayButton,buttonComponent:nd,buttonComponentProps:{disabled:n(ns),click:Po},tooltipText:at("tooltip_restart"),disabled:n(ns)}:void 0),xr=f(()=>n(rs)?{id:"playButton",type:"desktop-control-panel-left",weight:zs.playButton,buttonComponent:rd,buttonComponentProps:{disabled:n(wo),isPlaying:n(Dn),click:mt},tooltipText:n(Wo),disabled:n(wo)}:void 0),Ze=f(()=>{var ht,ct,Vi,Go;return n(ss)?{id:"nextButton",type:"desktop-control-panel-left",weight:zs.nextButton,buttonComponent:el,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:gr.bind(null,!0)},tooltipEnabled:!((ct=(ht=Y.callbacks)==null?void 0:ht.uiInfo)!=null&&ct.onNextButtonMouseEnter)&&!((Go=(Vi=Y.callbacks)==null?void 0:Vi.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var Ki,$i,Oi;(Oi=($i=(Ki=Y.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:$i.onNextButtonMouseEnter)==null||Oi.call($i,jn(Ei(),Ut,"nextButton",e.showControls))},mouseLeave:()=>{var Ki,$i,Oi;(Oi=($i=(Ki=Y.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:$i.onNextButtonMouseLeave)==null||Oi.call($i,jn(Ei(),Ut,"nextButton",e.showControls))},tooltipText:at("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Qt=f(()=>yi&&n(Dr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:zs.playPrevChapterButton,buttonComponent:Cc,buttonComponentProps:{disabled:n(_r),click:e.playPrevChapter},tooltipText:at("tooltip_interactive_go_back"),disabledTooltipContent:at(ys),disabled:n(_r)}:void 0),Ai=f(()=>yi&&n(or)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:zs.seekToInteractiveButton,buttonComponent:Ic,buttonComponentProps:{disabled:n(Vr),click:e.seekToInteractive},tooltipText:at("tooltip_interactive_seek"),disabled:n(Vr),disabledTooltipContent:at(ke())}:void 0),xn=f(()=>yi&&n(On)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:zs.interactiveGraphButton,buttonComponent:Ec,buttonComponentProps:{disabled:n(Zn),click:hr.toggle,graphIsOpened:A()},tooltipText:n(Bn)}:void 0),oo=f(()=>n(er)?{id:"liveButton",type:"desktop-control-panel-left",weight:zs.liveButton,buttonComponent:Pc,buttonComponentProps:{isLiveActive:n(bn),ariaLabel:n(Hn)},tooltipText:n(Hn),disabled:n(bn)&&l()===ol.PlaybackState.PLAYING}:void 0),Fr=f(()=>[n(zn),n(Ko),n(xr),n(Ze),n(Qt),n(Ai),n(xn),n(oo)].filter(ht=>!!ht).sort(Ka)),qo=f(()=>n(as)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ks.vkLogo,buttonComponent:mc,buttonComponentProps:{targetUrl:Rt(),logoClickable:e.logoClickable,click:Et},tooltipText:n(Mi),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),wr=f(()=>n(tr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ks.autoplayNext,buttonComponent:Tc,tooltipText:n($t)}:void 0),Sr=f(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ks.volume,buttonComponent:Lm,buttonComponentProps:{click:fo,isAds:St()}})),xs=f(()=>n(ft)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ks.subtitles,buttonComponent:Em,buttonComponentProps:{isSubtitlesEnabled:n(Nn),click:Se},tooltipText:n(nr)}:void 0),ws=f(()=>n($r)?{id:"settings",type:"desktop-control-panel-right",weight:Ks.settings,buttonComponent:Jl,buttonComponentProps:{ref$:Eo},tooltipText:ot()?void 0:at("tooltip_settings_off")}:void 0),Wn=f(()=>$e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ks.context,buttonComponent:Xm,buttonComponentProps:{ariaLabel:at("aria_label_context_menu")},className:n(Zt)?"":"out-of-view",tooltipText:n(co)}:void 0),ba=f(()=>n(ir)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ks.fullscreen,buttonComponent:fc,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:n($n)}:void 0),us=f(()=>n(br)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ks.chromecast,buttonComponent:gc,buttonComponentProps:{state:v(),click:Rn},tooltipText:n(Nr)}:void 0),$a=f(()=>[n(qo),n(wr),n(Sr),n(xs),n(ws),n(Wn),n(ba),n(us),...B()].filter(ht=>!!ht).sort(Ka)),ya=Y.ui.previewTrackActive,vt=Y.ui.previewTrackDragInProgress,ii=Y.ui.previewTrackAvailable,Ti=Y.ui.isPreviewTrackHorizontallyAligned,bi=f(()=>Nb({onPreviewTrackOpened:Y.actions.internal.previewTrackOpened,getTimelineRef:()=>Ut.timeline,isHorizontal:Qe()})),Cr=f(()=>n(bi).progressBarY),Ss=f(()=>n(bi).controlsY),Cs=f(()=>n(bi).onPointerDown),Ur=f(()=>n(bi).onPointerMove),Ni=f(()=>n(bi).onPointerUp),Wi=f(()=>n(bi).calculatedHeight),ve=f(()=>n(bi).closePreviewTrack);Fe(()=>{Ie()||n(ve)()});let gt;Lt(()=>()=>gt&&clearTimeout(gt));let oi=ht=>{Ie()||!Te()||(n(Cs)(ht),gt=setTimeout(()=>{Y.actions.internal.previewTrackDragStarted()},200))},jt=()=>{Ie()||n(Ni)(),gt&&clearTimeout(gt),we()&&Y.actions.internal.previewTrackDragFinished()},Qo=ht=>{n(Ur)(ht)},Ao=-(parseInt("24")/2+4);var no=tw(),an=se(no);let Ts;var Is=C(an);{var Qs=ht=>{let ct=f(()=>n(Cr)()),Vi=f(()=>n(Wi)());fv(ht,{get animatedOffsetY(){return n(ct)},get animatedPreviewTrackHeight(){return n(Vi)},get canRewindLive(){return e.canRewindLive},get isAds(){return St()},onTimelineMove:Qo,onTimelinePointerDown:oi,onTimelinePointerUp:jt,get previewTrackAvailable(){return Te()},get timelineRef(){return Ut.timeline},set timelineRef(Go){Ut.timeline=Go}})};M(Is,ht=>{e.showControls&&ht(Qs)})}var zr=P(Is,2);let Gs;var wn=C(zr),xa=C(wn);xi(xa,17,()=>n(Fr),ht=>ht.id,(ht,ct)=>{mp(ht,{get buttonComponent(){return n(ct).buttonComponent},get buttonComponentProps(){return n(ct).buttonComponentProps},get tooltipText(){return n(ct).tooltipText},get disabledTooltipContent(){return n(ct).disabledTooltipContent},get disabled(){return n(ct).disabled},get className(){return n(ct).className},get tooltipEnabled(){return n(ct).tooltipEnabled},get mouseEnter(){return n(ct).mouseEnter},get mouseLeave(){return n(ct).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Ut[n(ct).id]},set ref(Vi){Ut[n(ct).id]=Vi}})});var ml=P(xa,2);{var Tr=ht=>{let ct=f(()=>!e.showControls),Vi=f(()=>St()?He():st()),Go=f(()=>St()?ut():It());cc(ht,{get isHidden(){return n(ct)},isMobile:!1,get showDuration(){return n(kt)},get position(){return n(Vi)},get duration(){return n(Go)},get ref(){return Ut.time},set ref(Ki){Ut.time=Ki}})};M(ml,ht=>{n(rn)&&ht(Tr)})}var md=P(ml,2);let vl=f(()=>!n(Ho));Vo(md,{className:"w-max",get disabled(){return n(vl)},get tooltipContent(){return Di},get tooltipVisible(){return e.showControls},tooltipPlacement:"top-left",get initialTranslateXPx(){return Ao},get ref(){return Ut.episodes},set ref(ht){Ut.episodes=ht},children:(ht,ct)=>{var Vi=Re(),Go=se(Vi);{var Ki=$i=>{hc($i,{get position(){return st()},get duration(){return It()},get timeCodes(){return nt}})};M(Go,$i=>{n(Ho)&&$i(Ki)})}$(ht,Vi)},$$slots:{default:!0}}),S(wn);var gl=P(wn,2);xi(gl,21,()=>n($a),ht=>ht.id,(ht,ct)=>{var Vi=Re(),Go=se(Vi);{var Ki=Oi=>{mp(Oi,{get buttonComponent(){return n(ct).buttonComponent},get buttonComponentProps(){return n(ct).buttonComponentProps},get tooltipText(){return n(ct).tooltipText},get disabledTooltipContent(){return n(ct).disabledTooltipContent},get disabled(){return n(ct).disabled},get className(){return n(ct).className},get tooltipVisible(){return e.showControls},get ref(){return Ut[n(ct).id]},set ref(Sa){Ut[n(ct).id]=Sa}})},$i=Oi=>{let Sa=f(()=>!!n(ct).disabled);ov(Oi,{get id(){return n(ct).id},get testId(){return n(ct).testId},get icon(){return n(ct).icon},get ariaLabel(){return n(ct).ariaLabel},get tooltipText(){return n(ct).tooltipText},get disabledTooltipContent(){return n(ct).disabledTooltipContent},get disabled(){return n(Sa)},get onClick(){return n(ct).onClick},get disableMouseupTooltipShow(){return n(ct).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Ut[n(ct).id]},set ref(bl){Ut[n(ct).id]=bl}})};M(Go,Oi=>{Vb(n(ct))?Oi(Ki):Oi($i,!1)})}$(ht,Vi)}),S(gl),S(zr),tt(zr,ht=>ri(ht),()=>ri()),S(an),tt(an,ht=>lt(ht),()=>lt());var hl=P(an,2);{var vd=ht=>{wc(ht,{get ref(){return Ut.interactiveTimeIndicator},set ref(ct){Ut.interactiveTimeIndicator=ct}})};M(hl,ht=>{ts&&ht(vd)})}O((ht,ct,Vi)=>{Ts=ie(an,1,"wrapper-bottom s-18",null,Ts,ht),Ke(an,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Gs=ie(zr,1,"controls s-18",null,Gs,ct),Ke(zr,Vi),zr.inert=Ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||we()}),()=>({"minimal-view":m()}),()=>`transform: translateY(${n(Ss)()}px);`]),kn(wn,"clientWidth",ht=>N(Jt,ht)),$(t,no),F(),o()}var sd=require("@vkontakte/videoplayer-core/es2018");var gv=require("@vkontakte/videoplayer-shared/es2018");var ow=k('<div class="icon icon-error-stub s-21"><div class="inner s-21"></div></div>'),nw=k('<img class="icon s-21" aria-hidden="true"/>'),rw={hash:"s-21",code:".icon.s-21{height:24px!important;width:24px!important}.inner.s-21{background-color:var(--white);height:16px;width:16px}"};function hv(t,e){Q(t,rw);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,gv.noop),r=f(()=>o()===gv.noop),a=f(()=>n(r)||i()),l=K(!1),d=()=>{N(l,!0)},s=f(()=>n(r)?"btn-full-opacity":"");Ht(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,m)=>{var p=Re(),v=se(p);{var b=_=>{var x=ow();$(_,x)},y=_=>{var x=nw();O(()=>De(x,"src",e.iconUrl)),_t("error",x,d),Na(x),$(_,x)};M(v,_=>{n(l)?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}})}var sw=Ae('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function _v(t){Xe(t,{testId:"muted-icon",children:(e,i)=>{var o=sw();$(e,o)},$$slots:{default:!0}})}var Ub=require("@vkontakte/videoplayer-shared/es2018");function hp(t,e){H(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Ub.noop),r=g(e,"ref",15,void 0),l=ye().ui.t,d=f(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=f(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ht(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var p=Re(),v=se(p);{var b=_=>{_v(_,{})},y=_=>{ma(_,{get size(){return"24"}})};M(v,_=>{i()?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}}),F()}var aw=Ae('<path d="M11.64 12.37 9.07 9.8h1.03a.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.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),lw=Ae('<path d="m6.36 9.63 2.57 2.57H7.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.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),dw=Ae('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function bv(t,e){let i=g(e,"isActive",3,!1),o=f(()=>i()?"pip-icon--active":"pip-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=dw(),d=P(se(l));{var s=m=>{var p=aw();$(m,p)},u=m=>{var p=lw();$(m,p)};M(d,m=>{i()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}var zb=require("@vkontakte/videoplayer-shared/es2018");function $v(t,e){H(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,zb.noop),a=G("menu_pip");Ht(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{bv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var yv=require("@vkontakte/videoplayer-shared/es2018");var cw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},uw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},pw=k("<div><!></div>"),fw=k("<div><!></div>"),mw=k("<div><!></div>"),vw=k("<!> <!> <!>",1),gw=k("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),hw=k('<div class="wrapper-middle s-17"><!></div>'),_w=k("<div><!></div> <!> <div><!></div>",1),bw=k('<div aria-hidden="true">·</div> <!>',1),$w=k('<!> <!> <div><div><div class="controls mobile s-17" data-testid="bottom-controls"><div class="controls-group contain s-17"><!> <!> <!> <!></div> <div class="controls-group s-17"><!> <!> <!></div></div> <!></div></div> <!>',1),yw={hash:"s-17",code:".wrapper-bottom.s-17{background:var(--controls-gradient);bottom:0;box-sizing:border-box;display:flex;flex-direction:column;height:var(--controls-gradient-height);justify-content:flex-end;left:0;padding:0 4px 8px;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-17>:where(.s-17){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-17{height:9px;padding:0 4px 4px}.wrapper-middle.s-17{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-17,.wrapper-top-right.s-17{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-17{right:8px;top:4px}.wrapper-top-left.s-17{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-17,.wrapper-middle-left-second.s-17,.wrapper-middle-right.s-17{align-items:center;background-color:rgba(0,0,0,.56);border-radius:12px;display:flex;height:44px;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}.wrapper-middle-left.s-17{left:12px}.wrapper-middle-left-second.s-17{left:64px}.wrapper-middle-right.s-17{right:12px}.controls.s-17{align-items:center;box-sizing:border-box;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 4px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform}.controls.s-17,.controls-group.s-17{display:flex}.controls-group.contain.s-17{min-width:0}.controls-group.s-17 >:not(:first-child){margin-left:8px}.hidden.s-17{opacity:0;visibility:hidden}.controls-hidden.s-17{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-17{transition:none}.overlay-mobile.s-17{background-color:rgba(0,0,0,.3);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:opacity var(--controls-transition-duration);width:100%}@media screen and (orientation:portrait){.wrapper-top-left.fullscreen.s-17,.wrapper-top-right.fullscreen.s-17{top:16px}.controls-wrapper.fullscreen.s-17{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-17{left:44px;top:12px}.wrapper-top-right.fullscreen.s-17{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-17{left:44px}.wrapper-middle-left-second.fullscreen.s-17{left:96px}.wrapper-middle-right.fullscreen.s-17{right:44px}.controls-wrapper.fullscreen.s-17{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function xv(t,e){var uo,po;H(e,!0),Q(t,yw);let[i,o]=Be(),r=()=>w(Do,"$seekToInteractiveDisabledTooltip$",i),a=()=>w(We,"$disabledControls$",i),l=()=>w(Dt,"$playbackState$",i),d=()=>w(to,"$adPlaybackState",i),s=()=>w(Y,"$isEnded$",i),u=()=>w(Se,"$isMinimalView$",i),m=()=>w(Ji,"$autoplayNextToggleHidden",i),p=()=>w(U,"$playerSize",i),v=()=>w(Ye,"$scrubbingInProgress",i),b=()=>w(Ui,"$chromecastState$",i),y=()=>w(xe,"$isPictureInPictureActive",i),_=()=>w(Nt,"$pictureInPictureType$",i),x=()=>w(Ue,"$mobileNotReportControlHidden$",i),I=()=>w(eo,"$chromecastHidden",i),T=()=>w(ri,"$playerPhase",i),D=()=>w(ai,"$pipHidden",i),A=()=>w(pt,"$currentGridType$",i),E=()=>w(ki,"$vkLogoHidden",i),V=()=>w(mi,"$volumeHidden",i),q=()=>w(Ne,"$isLive$",i),L=()=>w(Tt,"$settingsMenuVisible",i),z=()=>w(Et,"$isRewindableLive$",i),j=()=>w(mt,"$isActiveLive$",i),te=()=>w(Wt,"$isAudioAvailable$",i),ee=()=>w(Oe,"$muted$",i),oe=()=>w($e,"$volume$",i),ae=()=>w(si,"$isInteractiveTime$",i),le=()=>w(Ho,"$settingButtonRef$",i),ce=()=>w(nt,"$startedByKeyboard$",i),X=()=>w(fn,"$isFullscreen",i),_e=()=>w(it,"$additionalButtons$",i),Ee=()=>w(bt,"$crashed$",i),de=()=>w(wi,"$settingsHidden",i),ze=()=>w(mn,"$graphIsOpened$",i),ue=()=>w(zi,"$adPosition",i),pe=()=>w(di,"$adDuration",i),Z=()=>w(Rt,"$position$",i),B=()=>w(St,"$duration$",i),fe=g(e,"playerControlsWrapperRef",15,void 0),me=g(e,"playerControlsRef",15,void 0),Ie=g(e,"isAds",3,!1),ot=g(e,"logoTargetUrl",3,""),Me=g(e,"isOneVideoPlaylist",3,!1),be=g(e,"customFullscreenSupported",3,!0),W=ye(),Ce=yo(),ke=Mt(),Qe=W.actions.internal.toggleMuted,Te=W.actions.internal.togglePlay,we=W.actions.internal.pause,He=W.actions.internal.prevVideoClick,st=W.actions.internal.nextVideoClick,ut=W.actions.internal.checkFullscreenSupport,It=(uo=W.callbacks)==null?void 0:uo.onAudioDoesNotExistHint,lt=(po=W.callbacks)==null?void 0:po.onAudioDisabledHint,ri=W.playerPhase,St=W.state.duration$,Rt=W.state.positionWithScrubbing$,Dt=W.state.playbackState$,Wt=W.state.isAudioAvailable$,Le=W.state.isAudioDisabled,Y=W.state.isEnded$,Ne=W.state.isLive$,$e=W.state.volume$,Oe=W.state.muted$,mt=W.state.isActiveLive$,Et=W.state.isRewindableLive$,Se=W.ui.isMinimalView$,Ye=W.ui.scrubbingInProgress,Ue=W.ui.mobileNotReportControlHidden$,{isActive$:xe,type$:Nt}=Ce.pictureInPicture$,Tt=W.ui.settingsMenu.visible$,qt=W.ui.settingsMenu.openedByBtnKeyboard$,hi=W.ui.controls,{volume:mi,vkLogo:ki,autoplayNextToggle:Ji,pip:ai,settings:wi,chromecast:eo}=W.ui.hiddenControls,Li=W.actions.internal.getVideoEpisodes(),li=W.webApi.pictureInPictureApi,Ui=W.state.chromecastState$,bt=W.state.crashed$,We=hi.disabledControls$,nt=W.ui.startedByKeyboard$,pt=W.ui.currentGridType$,di=W.ads.duration,zi=W.ads.position,to=W.ads.playbackState,fn=W.ui.isFullscreen,U=W.ui.playerSize,it=W.ui.additionalButtonsDeprecated$,Yt=W.actions.internal.getVideoElement,vi=W.actions.internal.replayInteractive,at=W.state.isInteractive,si=W.state.isInteractiveTime$,_i=W.state.showInteractiveGraph,Gt=W.state.showSeekToInteractive,Ct=W.state.showPlayPrevChapter,_o=W.state.showInteractiveTimeIndicator,Do=Ce.seekToInteractiveDisabledTooltip$,mn=Ce.graphIsOpened$,vn=W.ui.controlBlocks,Ei=f(()=>G(W.state.playPrevChapterDisabledTooltip)),Si=f(()=>G(r())),gn=f(()=>a().has("EPISODE_BUTTON")),gr=f(()=>a().has("GRAPH_BUTTON")),yi=f(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),xo=f(()=>a().has("PLAY_BUTTON")),No=f(()=>a().has("REPLAY_BUTTON")),Oo=f(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),hn=f(()=>l()===sd.PlaybackState.PLAYING),ts=f(()=>d()==="paused"),ys=f(()=>s()&&!Ie()&&!at),is=f(()=>!s()||Ie()),hr=f(()=>!u()&&!Ie()&&e.prevButtonActive),_n=f(()=>!u()&&!Ie()&&e.nextButtonActive),os=f(()=>e.showAutoplayNext&&!u()&&!Me()&&!m()),Zn=f(()=>!u()&&p().width>300),Vr=f(()=>p().width>400),wo=f(v),ns=f(()=>b()!==sd.ChromecastState.NOT_AVAILABLE&&!(y()&&_()===1)&&!x()&&!at&&!I()),_r=f(()=>T()==="LiveWaitingStart"),Rn=f(()=>!!li&&!u()&&b()!==sd.ChromecastState.CONNECTED&&!x()&&(_()===1&&n(_r)||!n(_r))&&!n(wo)&&!at&&!D()),Dn=K(!1);Lt(()=>{let je=li==null?void 0:li.info.isActive$.subscribe(kt=>N(Dn,kt,!0));return()=>je==null?void 0:je.unsubscribe()});let Nn=f(()=>!n(wo)&&ao(A(),"s")),Jn=f(()=>!e.logoHidden&&p().width>350&&!E()),Rr=f(()=>ke.features.fullscreen&&ut()&&!(y()&&_()===1)&&(at?be():!0)&&!n(wo)&&!n(Dn)),rs=f(()=>!V()&&!n(wo)),Pi=f(()=>(!q()||Ie())&&p().width>260&&!n(wo)&&!(ke.features.interactiveHideTime&&at)),ss=f(()=>L()||e.showControls),Bo=f(()=>!Ie()&&!q()&&!!(Li!=null&&Li.length)&&n(Zn)&&!n(gn)&&!n(wo)),er=f(()=>!z()||!!j()),br=f(()=>_i&&ao(A(),"m")),tr=f(()=>!te()||ee()||oe()===0),ft=ni({}),Zt=ni({}),$r=(0,yv.debounceFn)(od,260),as=(0,yv.debounceFn)(vp,260);Fe(()=>{p(),ae(),$r(Yt(),hi,ft,e.showControls),as(Yt(),vn,Zt,e.showControls)});let ir=()=>W.actions.internal.toggleChromecast();async function rn(){li!=null&&li.isActive()?await(li==null?void 0:li.exit()):await(li==null?void 0:li.request())}function On(){ua({isAudioDisabled:Le,audioDisabledHintCallback:lt,isAudioAvailable:te(),audioIsNotExistHintCallback:It,isAds:Ie()})&&Qe()}let or=K(""),Dr=(je,kt)=>{if(!je){N(or,G("tooltip_live"),!0);return}kt&&kt===sd.PlaybackState.PAUSED&&N(or,G("tooltip_play"),!0)};Fe(()=>{Dr(n(er),l())});let Ho=re();Fe(()=>{le()&&Gl(le(),L(),qt)}),Fe(()=>{fp(nt,ce(),ft.playButton)});var bn=$w(),Bn=se(bn);{var co=je=>{var kt=gw(),ci=se(kt);let Io;var Eo=P(ci,2);let $o;tt(Eo,vt=>Zt.topLeft=vt,()=>Zt==null?void 0:Zt.topLeft);var fo=P(Eo,2);let Po;var rr=C(fo);xi(rr,1,_e,({iconUrl:vt,ariaLabel:ii,testId:Ti,onClick:bi,tooltip:Cr})=>vt,(vt,ii)=>{let Ti=()=>n(ii).iconUrl,bi=()=>n(ii).ariaLabel,Cr=()=>n(ii).testId,Ss=()=>n(ii).onClick,Cs=()=>n(ii).tooltip,Ur=f(()=>{var Ni;return(Ni=bi())!=null?Ni:Cs()});hv(vt,{get iconUrl(){return Ti()},get ariaLabel(){return n(Ur)},get testId(){return Cr()},get onClick(){return Ss()}})});var sr=P(rr,2);{var Wo=vt=>{Tc(vt,{get ref(){return ft.autoplayNextToggle},set ref(ii){ft.autoplayNextToggle=ii}})};M(sr,vt=>{n(os)&&vt(Wo)})}var Di=P(sr,2);{var zn=vt=>{gc(vt,{isMobile:!0,click:ir,get state(){return b()},get ref(){return ft.chromecast},set ref(ii){ft.chromecast=ii}})};M(Di,vt=>{n(ns)&&vt(zn)})}var Ko=P(Di,2);{var xr=vt=>{$v(vt,{click:rn,get isPictureInPictureActive(){return y()},get ref(){return ft.pip},set ref(ii){ft.pip=ii}})};M(Ko,vt=>{n(Rn)&&vt(xr)})}var Ze=P(Ko,2);{var Qt=vt=>{Jl(vt,{get ref$(){return Ho}})};M(Ze,vt=>{Ee()&&!de()&&vt(Qt)})}var Ai=P(Ze,2);{var xn=vt=>{mc(vt,{get click(){return we},get targetUrl(){return ot()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(ii){ft.vkLogo=ii}})};M(Ai,vt=>{n(Jn)&&vt(xn)})}S(fo),tt(fo,vt=>Zt.topRight=vt,()=>Zt==null?void 0:Zt.topRight);var oo=P(fo,2);let Fr;var qo=C(oo);{var wr=vt=>{let ii=f(()=>He.bind(null,!0));el(vt,{get click(){return n(ii)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(Ti){ft.prevButton=Ti}})};M(qo,vt=>{n(hr)&&vt(wr)})}var Sr=P(qo,2);{var xs=vt=>{rd(vt,{get disabled(){return n(xo)},get click(){return Te},isMobile:!0,get isPlaying(){return n(hn)},get ref(){return ft.playButton},set ref(ii){ft.playButton=ii}})};M(Sr,vt=>{n(is)&&vt(xs)})}var ws=P(Sr,2);{var Wn=vt=>{nd(vt,{get disabled(){return n(No)},get click(){return Te},isMobile:!0,get ref(){return ft.replayButton},set ref(ii){ft.replayButton=ii}})};M(ws,vt=>{n(ys)&&vt(Wn)})}var ba=P(ws,2);{var us=vt=>{let ii=f(()=>st.bind(null,!0));el(vt,{get click(){return n(ii)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(Ti){ft.nextButton=Ti}})};M(ba,vt=>{n(_n)&&vt(us)})}S(oo),tt(oo,vt=>Zt.middle=vt,()=>Zt==null?void 0:Zt.middle);var $a=P(oo,2);{var ya=vt=>{var ii=vw(),Ti=se(ii);{var bi=Ni=>{var Wi=pw();let ve;Wi.__click=[cw,Oo,e,Ei];var gt=C(Wi);let oi=f(()=>!e.showControls);Cc(gt,{get hidden(){return n(oi)},get disabled(){return n(Oo)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(jt){ft.playPrevChapterButton=jt}}),S(Wi),O(jt=>ve=ie(Wi,1,"wrapper-middle-left s-17",null,ve,jt),[()=>({fullscreen:X(),hidden:!e.showControls})]),$(Ni,Wi)};M(Ti,Ni=>{Ct&&Ni(bi)})}var Cr=P(Ti,2);{var Ss=Ni=>{var Wi=fw();let ve;var gt=C(Wi);let oi=f(()=>!e.showControls&&!ze());Ec(gt,{get hidden(){return n(oi)},get disabled(){return n(gr)},get click(){return mn.toggle},get graphIsOpened(){return ze()},get ref(){return ft.interactiveGraphButton},set ref(jt){ft.interactiveGraphButton=jt}}),S(Wi),O(jt=>ve=ie(Wi,1,Ud(Ct?"wrapper-middle-left-second":"wrapper-middle-left"),"s-17",ve,jt),[()=>({fullscreen:X(),hidden:!e.showControls&&!ze()})]),$(Ni,Wi)};M(Cr,Ni=>{n(br)&&Ni(Ss)})}var Cs=P(Cr,2);{var Ur=Ni=>{var Wi=mw();let ve;Wi.__click=[uw,yi,e,Si];var gt=C(Wi);let oi=f(()=>!e.showControls);Ic(gt,{get hidden(){return n(oi)},get disabled(){return n(yi)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(jt){ft.seekToInteractiveButton=jt}}),S(Wi),O(jt=>ve=ie(Wi,1,"wrapper-middle-right s-17",null,ve,jt),[()=>({fullscreen:X(),hidden:!e.showControls})]),$(Ni,Wi)};M(Cs,Ni=>{Gt&&Ni(Ur)})}$(vt,ii)};M($a,vt=>{at&&!v()&&vt(ya)})}O((vt,ii,Ti,bi)=>{Io=ie(ci,1,"overlay-mobile s-17",null,Io,vt),$o=ie(Eo,1,"wrapper-top-left s-17",null,$o,ii),Po=ie(fo,1,"wrapper-top-right s-17",null,Po,Ti),Fr=ie(oo,1,"wrapper-middle s-17",null,Fr,bi)},[()=>({hidden:!n(ss)}),()=>({hidden:!e.showControls,fullscreen:X()}),()=>({hidden:!e.showControls&&!x(),fullscreen:X()}),()=>({hidden:!e.showControls||v()||e.endScreenShown&&e.showNextPrevButtons})]),$(je,kt)};M(Bn,je=>{Ie()||je(co)})}var So=P(Bn,2);{var Hn=je=>{var kt=_w(),ci=se(kt);let Io;var Eo=C(ci);hp(Eo,{get muted(){return ee()},click:On,get ref(){return ft.volume},set ref(Wo){ft.volume=Wo}}),S(ci);var $o=P(ci,2);{var fo=Wo=>{var Di=hw(),zn=C(Di);let Ko=f(()=>!n(ts));rd(zn,{get disabled(){return n(xo)},get click(){return Te},isMobile:!0,get isPlaying(){return n(Ko)},get ref(){return ft.playButton},set ref(xr){ft.playButton=xr}}),S(Di),$(Wo,Di)};M($o,Wo=>{n(ts)&&Wo(fo)})}var Po=P($o,2);let rr;var sr=C(Po);Ac(sr,{get position(){return ue()},get duration(){return pe()}}),S(Po),O((Wo,Di)=>{Io=ie(ci,1,"wrapper-top-right s-17",null,Io,Wo),rr=ie(Po,1,"wrapper-bottom ads-timeline-mobile s-17",null,rr,Di)},[()=>({fullscreen:X()}),()=>({fullscreen:X()})]),$(je,kt)};M(So,je=>{Ie()&&d()!=="inactive"&&je(Hn)})}var Mi=P(So,2);let nr;var $n=C(Mi);let Nr;var $t=C($n),Jt=C($t),Ut=C(Jt);{var Co=je=>{Vo(je,{get disabled(){return n(No)},get ref(){return ft.replayButton},set ref(kt){ft.replayButton=kt},children:(kt,ci)=>{nd(kt,{get disabled(){return n(No)},get click(){return vi}})},$$slots:{default:!0}})};M(Ut,je=>{at&&je(Co)})}var Fo=P(Ut,2);{var Uo=je=>{Vo(je,{get ref(){return ft.liveButton},set ref(kt){ft.liveButton=kt},children:(kt,ci)=>{Pc(kt,{get isLiveActive(){return n(er)},isMobile:!0,get ariaLabel(){return n(or)}})},$$slots:{default:!0}})};M(Fo,je=>{!Ie()&&q()&&je(Uo)})}var zo=P(Fo,2);{var bo=je=>{let kt=f(()=>Ie()?ue():Z()),ci=f(()=>Ie()?pe():B()),Io=f(()=>!e.showControls);cc(je,{get showDuration(){return n(Vr)},get position(){return n(kt)},get duration(){return n(ci)},isMobile:!0,get isHidden(){return n(Io)},get ref(){return ft.time},set ref(Eo){ft.time=Eo}})};M(zo,je=>{n(Pi)&&je(bo)})}var Fn=P(zo,2);let yr=f(()=>!n(Bo));Vo(Fn,{className:"w-max",get disabled(){return n(yr)},get ref(){return ft.episodes},set ref(je){ft.episodes=je},children:(je,kt)=>{var ci=Re(),Io=se(ci);{var Eo=$o=>{var fo=bw(),Po=P(se(fo),2);hc(Po,{get position(){return Z()},get duration(){return B()},get timeCodes(){return Li}}),$($o,fo)};M(Io,$o=>{n(Bo)&&$o(Eo)})}$(je,ci)},$$slots:{default:!0}}),S(Jt),tt(Jt,je=>Zt.bottomLeft=je,()=>Zt==null?void 0:Zt.bottomLeft);var sn=P(Jt,2),yn=C(sn);{var ls=je=>{Vo(je,{get ref(){return ft.volume},set ref(kt){ft.volume=kt},children:(kt,ci)=>{hp(kt,{get muted(){return n(tr)},click:On})},$$slots:{default:!0}})};M(yn,je=>{n(rs)&&je(ls)})}var Or=P(yn,2);{var ds=je=>{Vo(je,{get ref(){return ft.settings},set ref(kt){ft.settings=kt},children:(kt,ci)=>{Jl(kt,{get ref$(){return Ho}})},$$slots:{default:!0}})};M(Or,je=>{n(Nn)&&je(ds)})}var io=P(Or,2);{var cs=je=>{Vo(je,{get ref(){return ft.fullscreen},set ref(kt){ft.fullscreen=kt},children:(kt,ci)=>{fc(kt,{get click(){return e.toggleFullscreen},get isFullscreen(){return X()}})},$$slots:{default:!0}})};M(io,je=>{n(Rr)&&je(cs)})}S(sn),tt(sn,je=>Zt.bottomRight=je,()=>Zt==null?void 0:Zt.bottomRight),S($t),tt($t,je=>me(je),()=>me());var Br=P($t,2);let To=f(()=>!e.showControls);il(Br,{get isHidden(){return n(To)},get isAds(){return Ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return z()},get ref(){return ft.timeline},set ref(je){ft.timeline=je}}),S($n),tt($n,je=>Zt.bottom=je,()=>Zt==null?void 0:Zt.bottom),S(Mi),tt(Mi,je=>fe(je),()=>fe());var Hr=P(Mi,2);{var Un=je=>{wc(je,{get ref(){return ft.interactiveTimeIndicator},set ref(kt){ft.interactiveTimeIndicator=kt}})};M(Hr,je=>{_o&&je(Un)})}O((je,kt)=>{nr=ie(Mi,1,"wrapper-bottom mobile s-17",null,nr,je),Ke(Mi,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Nr=ie($n,1,"controls-wrapper s-17",null,Nr,kt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:X()})]),$(t,bn),F(),o()}et(["click"]);function kc(t,e){H(e,!0);let[i,o]=Be(),r=()=>w(I,"$isMobile",i),a=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),s=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),m=g(e,"showAutoplayNext",3,!1),p=g(e,"isOneVideoPlaylist",3,!1),v=g(e,"customFullscreenSupported",3,!0),b=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,wv.noop),_=g(e,"onDisabledSeekToInteractiveClick",3,wv.noop),I=ye().ui.isMobile,T=K(!1);Lt(()=>{let V=setTimeout(()=>N(T,!0),0);return()=>clearTimeout(V)});var D=Re(),A=se(D);{var E=V=>{var q=Re(),L=se(q);{var z=te=>{xv(te,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return v()},get endScreenShown(){return b()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return _()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(ee){l(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})},j=te=>{vv(te,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return p()},get showAutoplayNext(){return m()},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return v()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(ee){l(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})};M(L,te=>{r()?te(z):te(j,!1)})}$(V,q)};M(A,V=>{n(T)&&V(E)})}$(t,D),F(),o()}var xw=Ae('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Lc(t,e){H(e,!0);let i=f(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=f(()=>`${un(e.size)}${n(i)}`);Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=xw();$(r,l)},$$slots:{default:!0}}),F()}var ww=Ae('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function Sv(t,e){H(e,!0);let i=g(e,"reversed",3,!1),o=f(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=f(()=>`seek-icon-${i()?"backward":"forward"}`);Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=ww();$(a,d)},$$slots:{default:!0}}),F()}var Sw=k('<span class="hot-key-helpers-text s-y"> </span>'),Cw=k('<div data-testid="hotkey-helper-icon" class="s-y"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Tw=k("<div><!></div>"),Iw={hash:"s-y",code:'.hot-key-helpers-container.s-y{align-items:center;animation:s-y-fadeIn ease var(--controls-transition-duration);box-sizing:border-box;display:flex;flex-direction:column;height:120px;left:calc(50% - 100px);padding-top:14px;position:absolute;top:calc(50% - 40px);width:200px;z-index:var(--hot-key-helpers-container-z-index)}.hot-key-helpers-container--left.s-y{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-y{left:calc(75% - 100px)}.hot-key-helpers-text.s-y{display:-webkit-box;font-feature-settings:"clig" off,"liga" off;font-size:15px;font-style:normal;font-weight:600;letter-spacing:-.105px;-webkit-line-clamp:2;line-height:20px;margin-top:4px;max-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-shadow:0 0 5px rgba(0,0,0,.16);white-space:pre-wrap;width:100%;-webkit-box-orient:vertical}.hidden.s-y{animation:s-y-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-y-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-y-fadeOut{0%{opacity:1}to{opacity:0}}'};function Cv(t,e){H(e,!0),Q(t,Iw);let[i,o]=Be(),r=()=>w(e.data,"$data",i),a=ye(),{features:l}=Mt(),d=a.ui.t,s=f(()=>!r()),u=f(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=f(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=f(()=>{var I;return(I=r())==null?void 0:I.type}),v=f(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var b=Tw();let y;var _=C(b);{var x=I=>{var T=Cw(),D=se(T),A=C(D);{var E=fe=>{let me=f(()=>n(p)==="BACKWARD_SEEK");Sv(fe,{get reversed(){return n(me)},shadow:!0})};M(A,fe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&fe(E)})}var V=P(A,2);{var q=fe=>{Ws(fe,{get size(){return"48"},shadow:!0})};M(V,fe=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&fe(q)})}var L=P(V,2);{var z=fe=>{vr(fe,{get size(){return"48"},shadow:!0})};M(L,fe=>{n(p)==="PLAY"&&!l.playbackStatusShow&&fe(z)})}var j=P(L,2);{var te=fe=>{Sc(fe,{get size(){return"48"},shadow:!0})};M(j,fe=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&fe(te)})}var ee=P(j,2);{var oe=fe=>{fa(fe,{get size(){return"48"},type:"off",shadow:!0})};M(ee,fe=>{n(p)==="SUBTITLES_OFF"&&fe(oe)})}var ae=P(ee,2);{var le=fe=>{fa(fe,{get size(){return"48"},shadow:!0})};M(ae,fe=>{n(p)==="SUBTITLES_ON"&&fe(le)})}var ce=P(ae,2);{var X=fe=>{let me=f(()=>n(p)==="RATE_DOWN");Lc(fe,{get size(){return"48"},get reversed(){return n(me)},testId:"rate-change-icon",shadow:!0})};M(ce,fe=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&fe(X)})}var _e=P(ce,2);{var Ee=fe=>{let me=f(()=>n(p)==="EPISODE_PREV");va(fe,{get size(){return"48"},get reversed(){return n(me)},shadow:!0})};M(_e,fe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&fe(Ee)})}var de=P(_e,2);{var ze=fe=>{ma(fe,{get size(){return"48"},volume:0,shadow:!0})};M(de,fe=>{n(p)==="MUTE"&&fe(ze)})}var ue=P(de,2);{var pe=fe=>{ma(fe,{get size(){return"48"},volume:1,shadow:!0})};M(ue,fe=>{n(p)==="VOLUME"&&fe(pe)})}S(D);var Z=P(D,2);{var B=fe=>{var me=Sw(),Ie=C(me,!0);S(me),O(()=>ge(Ie,n(v))),$(fe,me)};M(Z,fe=>{n(v)&&fe(B)})}O(()=>De(D,"data-type",n(p))),$(I,T)};M(_,I=>{!n(s)&&n(p)&&I(x)})}S(b),O(I=>y=ie(b,1,"hot-key-helpers-container s-y",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),$(t,b),F(),o()}var Ew=(t,e,i,o,r,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":a();break}},Pw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Aw=k('<div tabindex="0" role="button"><div class="button-block s-l" aria-hidden="true"><div class="button-row s-l"><div class="button button-up s-l"><!></div> <div class="button button-right s-l"><!></div></div> <div class="button-row s-l"><div class="button button-left s-l"><!></div> <div class="button button-down s-l"><!></div></div></div></div>'),kw={hash:"s-l",code:".immersive-controls.s-l{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-l{left:20px;top:50px}.button-block.s-l{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-l{display:flex;flex-direction:row;position:relative}.button.s-l{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-l svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-l svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-l svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-l svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-l svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-l:hover svg{opacity:1}"};function Mc(t,e){H(e,!0),Q(t,kw);let i=g(e,"isShifted",3,!1),o=ye(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=G("aria_label_spherical_control");var p=Aw();let v;p.__keydown=[Ew,r,a,l,s,d],p.__keyup=[Pw,r,u];var b=C(p),y=C(b),_=C(y);_.__mousedown=a,_.__mouseup=u;var x=C(_);kr(x,{direction:"up",useBtnColor:!0}),S(_);var I=P(_,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);kr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var D=P(y,2),A=C(D);A.__mousedown=s,A.__mouseup=u;var E=C(A);kr(E,{direction:"up",useBtnColor:!0}),S(A);var V=P(A,2);V.__mousedown=l,V.__mouseup=u;var q=C(V);kr(q,{direction:"up",useBtnColor:!0}),S(V),S(D),S(b),S(p),O(L=>{v=ie(p,1,"immersive-controls s-l",null,v,L),De(p,"aria-label",m)},[()=>({"m-shifted":i()})]),_t("mouseleave",_,u),_t("mouseleave",I,u),_t("mouseleave",A,u),_t("mouseleave",V,u),$(t,p),F()}et(["keydown","keyup","mousedown","mouseup"]);var qs=require("@vkontakte/videoplayer-shared/es2018");var Wb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var _p=class{constructor(){this.flickeringTimeout=Wb(1e3);this.subscriptions=new qs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new qs.ValueSubject([]);this.captionsPrepared$=new qs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,qs.filter)(()=>this.isEnabled()),(0,qs.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((r,{type:a,value:l},d)=>(o&&!d||(a==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var Lw=k('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Mw=k('<span class="caption-line s-b"><span class="caption-segment s-b"></span></span>'),Vw=k('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Rw=k('<div><span class="caption s-b"><!></span></div>'),Dw=k("<div><!></div>"),Nw={hash:"s-b",code:".subtitles-container.s-b{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-b{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-b{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-b .subtitles-caption:where(.s-b){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-b{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-b{bottom:8%}.subtitles-container.auto.s-b .subtitles-caption:where(.s-b){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-b{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-b .caption:where(.s-b){width:100%}.caption-line.s-b{display:block;text-align:center}.subtitles-container.auto.s-b .caption-line:where(.s-b){text-align:left}.caption-segment.s-b{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function rl(t,e){H(e,!0),Q(t,Nw);let[i,o]=Be(),r=()=>w(v,"$currentSubtitle$",i),a=()=>w(y,"$isLive$",i),l=()=>w(_,"$isFullscreen",i),d=()=>w(x,"$previewTrackActive",i),s=()=>w(b,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),m=ye(),p=Mt(),v=m.state.currentSubtitle$,b=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,_=m.ui.isFullscreen,x=m.ui.previewTrackActive,I=f(()=>!!r().isAuto),T=f(()=>!!a()),D=f(()=>e.playerSize.width*.02),A=f(()=>u()&&!l()||n(D)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(D)),E=K(null);Fe(()=>{var ee,oe,ae;(ee=n(E))==null||ee.setIsAuto(n(I)),(oe=n(E))==null||oe.setIsLive(n(T)),(ae=n(E))==null||ae.setCaptions(e.captions)});let V=K(ni([[]]));Lt(()=>{N(E,new _p().subscribe(),!0);let ee=n(E).captionsPrepared$.subscribe(oe=>{N(V,oe,!0)});return()=>{var oe;(oe=n(E))==null||oe.destroy(),ee.unsubscribe()}}),Lt(()=>{if(n(I)){let ee=window.setTimeout(()=>{b.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(ee)}}else b.set(!1)});let q=f(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var L=Dw();let z;var j=C(L);{var te=ee=>{var oe=Rw();let ae;var le=C(oe),ce=C(le);{var X=Ee=>{var de=Lw(),ze=C(de),ue=C(ze,!0);S(ze),S(de),O(pe=>{var Z;Ke(ze,`font-size: ${(Z=n(A))!=null?Z:""}px`),ge(ue,pe)},[()=>G("subtitles_auto_caption")]),$(Ee,de)},_e=(Ee,de)=>{{var ze=pe=>{var Z=Re(),B=se(Z);xi(B,17,()=>n(V),Hd,(fe,me)=>{var Ie=Mw(),ot=C(Ie);xi(ot,21,()=>n(me),({value:Me,timeAppeared:be})=>be,(Me,be)=>{let W=()=>n(be).value,Ce=()=>n(be).timeAppeared;var ke=Re(),Qe=se(ke);{var Te=we=>{var He=hs();O(()=>ge(He,W())),$(we,He)};M(Qe,we=>{(!Ce()||Ce()<=e.position)&&we(Te)})}$(Me,ke)}),S(ot),S(Ie),O(()=>{var Me;return Ke(ot,`font-size: ${(Me=n(A))!=null?Me:""}px`)}),$(fe,Ie)}),$(pe,Z)},ue=pe=>{var Z=Re(),B=se(Z);xi(B,17,()=>e.captions,({value:fe})=>fe,(fe,me)=>{let Ie=()=>n(me).value;var ot=Vw(),Me=C(ot),be=C(Me,!0);S(Me),S(ot),O(()=>{var W;Ke(Me,`font-size: ${(W=n(A))!=null?W:""}px`),ge(be,Ie())}),$(fe,ot)}),$(pe,Z)};M(Ee,pe=>{var Z;n(I)&&((Z=n(V))!=null&&Z.length)?pe(ze):pe(ue,!1)},de)}};M(ce,Ee=>{n(I)&&s()?Ee(X):Ee(_e,!1)})}S(le),S(oe),O(Ee=>{var de;ae=ie(oe,1,"subtitles-caption s-b",null,ae,Ee),Ke(oe,`--subtitles-caption-margin: ${(de=n(q))!=null?de:""}%`)},[()=>({mobile:u()})]),$(ee,oe)};M(j,ee=>{var oe;(e.captions.length||(oe=n(V))!=null&&oe.length)&&ee(te)})}S(L),O(ee=>z=ie(L,1,"subtitles-container s-b",null,z,ee),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),$(t,L),F(),o()}var Kb=require("@vkontakte/videoplayer-core/es2018");var Ow=k('<div class="text s-s"> </div>'),Bw=k('<div><div class="icon_wrapper s-s"><!></div> <!></div>'),Hw={hash:"s-s",code:".wrapper.s-s{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center}.wrapper.bgCover.s-s{background-size:cover}.icon_wrapper.s-s{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-s{margin-top:20px}"};function Vc(t,e){H(e,!0),Q(t,Hw);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Mt();var r=Bw();let a;r.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},r.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)},r.__dblclick=function(...m){var p;(p=e.onDblClick)==null||p.apply(this,m)};var l=C(r),d=C(l);vc(d,{get size(){return"48"},get iconState(){return Kb.ChromecastState.CONNECTED}}),S(l);var s=P(l,2);{var u=m=>{var p=Ow(),v=C(p);S(p),O(()=>{var b;return ge(v,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),$(m,p)};M(s,m=>{i()&&m(u)})}S(r),O(m=>{a=ie(r,1,"wrapper s-s",null,a,m),Ke(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),$(t,r),F()}et(["contextmenu","click","dblclick"]);var Fw=Ae('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 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.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function Tv(t){Xe(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Fw();$(e,o)},$$slots:{default:!0}})}var Uw=k('<div class="container s-5"><!></div>'),zw={hash:"s-5",code:".container.s-5{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function sl(t){Q(t,zw);var e=Uw(),i=C(e);Tv(i,{}),S(e),$(t,e)}var Ww=k('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),Kw=k('<div data-testid="unstarted-thumb"><!></div>'),qw={hash:"s-a",code:".container.s-a{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-a{opacity:0;visibility:hidden}.container.bgCover.s-a{background-size:cover}.playButton.s-a{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-a,.playButtonBackground.s-a{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-a{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-a:hover .playButtonBackground:where(.s-a){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-a svg{position:relative}"};function al(t,e){H(e,!0),Q(t,qw);let i=g(e,"iconVisible",3,!0),o=ye(),r=Mt(),a=o.ui.startedByKeyboard$,l=G("tooltip_play"),d=b=>{var _;let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),a.set(!0),(_=e.startVideo)==null||_.call(e))},s=b=>{var y,_;b.stopPropagation(),(y=e.startVideo)==null||y.call(e),(_=e.onClick)==null||_.call(e,b)};var u=Kw();let m;u.__click=s,u.__contextmenu=function(...b){var y;(y=e.onContextMenu)==null||y.apply(this,b)};var p=C(u);{var v=b=>{var y=Ww();y.__keydown=d;var _=P(C(y),2);vr(_,{get size(){return"48"}}),S(y),O(()=>De(y,"aria-label",l)),$(b,y)};M(p,b=>{i()&&b(v)})}return S(u),O(b=>{m=ie(u,1,"container s-a",null,m,b),Ke(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),$(t,u),F({handlePressKey:d,handleClick:s})}et(["click","contextmenu","keydown"]);var Qw=k('<span class="text s-v"> </span>'),Gw=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},Yw=k('<a target="_blank" class="link s-v"><!></a>'),jw=(t,e)=>e.onTitleClicked(),Xw=k("<button><!></button>"),Zw=k('<div data-testid="video_title"><!></div>'),Jw={hash:"s-v",code:".title.s-v{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity;z-index:var(--controls-container-z-index)}.link.s-v,.title.s-v{color:var(--white)}.link.s-v{pointer-events:auto;text-decoration:none}.link.s-v:hover{text-decoration:underline}.text.s-v{pointer-events:auto}.size-sm.s-v{font-size:14px;font-weight:500;line-height:18px}.hidden.s-v{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function Iv(t,e){H(e,!0),Q(t,Jw);let i=b=>{var y=Qw(),_=C(y,!0);S(y),tt(y,x=>l(x),()=>l()),O(()=>ge(_,o())),_t("mouseenter",y,function(...x){var I;(I=e.onMouseEnter)==null||I.apply(this,x)}),_t("mouseleave",y,function(...x){var I;(I=e.onMouseLeave)==null||I.apply(this,x)}),$(b,y)},o=g(e,"title",3,""),r=g(e,"isHidden",3,!1),a=g(e,"size",3,"md"),l=g(e,"ref",15),d=K(void 0);Lt(()=>{var y;requestAnimationFrame(()=>{var _;(_=e.onVisibilityChanged)==null||_.call(e,!0)});function b(_){var x;_.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",b),()=>{var _;return(_=n(d))==null?void 0:_.removeEventListener("transitionend",b)}});var s=Zw();let u;var m=C(s);{var p=b=>{var y=Yw();y.__click=[Gw,e];var _=C(y);i(_),S(y),O(()=>De(y,"href",e.titleLinkHref)),$(b,y)},v=(b,y)=>{{var _=I=>{var T=Xw();T.__click=[jw,e];var D=C(T);i(D),S(T),$(I,T)},x=I=>{i(I)};M(b,I=>{e.onTitleClicked?I(_):I(x,!1)},y)}};M(m,b=>{e.titleLinkHref?b(p):b(v,!1)})}S(s),tt(s,b=>N(d,b),()=>n(d)),O(b=>u=ie(s,1,`title size-${a()}`,"s-v",u,b),[()=>({hidden:r()})]),$(t,s),F()}et(["click"]);var qb=require("@vkontakte/videoplayer-shared/es2018");var eS=k('<div class="timer__cell cell s-15"><span class="cell__value s-15"> </span> <span class="cell__unit s-15"> </span></div> <span class="timer__points s-15"> </span>',1),tS=k('<div class="timer__cell cell s-15"><span class="cell__value s-15"> </span> <span class="cell__unit s-15"> </span></div> <span class="timer__points s-15"> </span>',1),iS=k('<div class="timer__cell cell s-15"><span class="cell__value s-15"> </span> <span class="cell__unit s-15"> </span></div> <span class="timer__points s-15"> </span>',1),oS=k('<div class="timer__cell cell s-15"><span class="cell__value s-15"> </span> <span class="cell__unit s-15"> </span></div>'),nS=k("<div><!> <!> <!> <!></div>"),rS={hash:"s-15",code:".timer__container.s-15{align-items:flex-start;display:flex;justify-content:center}.cell.s-15{align-items:center;display:flex;flex-direction:column}.cell__value.s-15{font-size:48px;font-weight:600;line-height:1.2}.small.s-15 .cell__value:where(.s-15){font-size:24px}.cell__unit.s-15{font-size:14px;font-weight:400;line-height:1.2}.small.s-15 .cell__unit:where(.s-15){font-size:12px}.timer__points.s-15{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-15 .timer__points:where(.s-15){font-size:20px}"};function Ev(t,e){H(e,!0),Q(t,rS);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=L=>String(L).padStart(2,"0"),m=L=>Math.max(L.length,1),p=L=>`${(e.isSmallSize?s:d)*m(L)}px`,v=L=>{let z=Math.floor(L/86400);z&&(L-=z*86400,N(i,u(z),!0));let j=Math.floor(L/3600);N(o,u(j),!0);let te=Math.floor(L/60)%60;N(r,u(te),!0);let ee=L%60;N(a,u(ee),!0)},b=()=>{let L=Math.floor(Date.now()/1e3),z=e.startTime-L;v(z),z>=1?l=requestAnimationFrame(b):e.onTimerOver()};Lt(()=>{l=requestAnimationFrame(b)}),cn(()=>{cancelAnimationFrame(l)});var y=nS();let _;var x=C(y);{var I=L=>{var z=eS(),j=se(z);let te;var ee=C(j),oe=C(ee,!0);S(ee);var ae=P(ee,2),le=C(ae,!0);S(ae),S(j);var ce=P(j,2),X=C(ce,!0);S(ce),O((_e,Ee,de)=>{te=Ke(j,"",te,{width:_e}),ge(oe,n(i)),ge(le,Ee),ge(X,de)},[()=>p(n(i)),()=>G("waiting_live_day_value"),()=>G("waiting_live_colon")]),$(L,z)};M(x,L=>{n(i)&&L(I)})}var T=P(x,2);{var D=L=>{var z=tS(),j=se(z);let te;var ee=C(j),oe=C(ee,!0);S(ee);var ae=P(ee,2),le=C(ae,!0);S(ae),S(j);var ce=P(j,2),X=C(ce,!0);S(ce),O((_e,Ee,de)=>{te=Ke(j,"",te,{width:_e}),ge(oe,n(o)),ge(le,Ee),ge(X,de)},[()=>p(n(o)),()=>G("waiting_live_hour_value"),()=>G("waiting_live_colon")]),$(L,z)};M(T,L=>{n(o)&&L(D)})}var A=P(T,2);{var E=L=>{var z=iS(),j=se(z);let te;var ee=C(j),oe=C(ee,!0);S(ee);var ae=P(ee,2),le=C(ae,!0);S(ae),S(j);var ce=P(j,2),X=C(ce,!0);S(ce),O((_e,Ee,de)=>{te=Ke(j,"",te,{width:_e}),ge(oe,n(r)),ge(le,Ee),ge(X,de)},[()=>p(n(r)),()=>G("waiting_live_minute_value"),()=>G("waiting_live_colon")]),$(L,z)};M(A,L=>{n(r)&&L(E)})}var V=P(A,2);{var q=L=>{var z=oS();let j;var te=C(z),ee=C(te,!0);S(te);var oe=P(te,2),ae=C(oe,!0);S(oe),S(z),O((le,ce)=>{j=Ke(z,"",j,{width:le}),ge(ee,n(a)),ge(ae,ce)},[()=>p(n(a)),()=>G("waiting_live_second_value")]),$(L,z)};M(V,L=>{n(a)&&L(q)})}S(y),O(L=>_=ie(y,1,"timer__container s-15",null,_,L),[()=>({small:e.isSmallSize})]),$(t,y),F()}var sS=k('<div class="waiting s-r"><span> </span></div>'),aS=k('<div class="upcoming-timer timer s-r"><span> </span> <!></div>'),lS=k('<div class="waiting-container s-r"><!></div>'),dS={hash:"s-r",code:'.waiting-container.s-r{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-r,.waiting-container.s-r:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-r:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-r{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-r{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-r{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-r{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-r{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-r{font-size:15px}.medium.s-r{font-size:17px}'};function Rc(t,e){H(e,!0),Q(t,dS);let i=g(e,"startTime",3,0),o=f(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),a=K(void 0),l=0,d=K(void 0),s=K(void 0),u=f(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=f(()=>{var x,I;return!n(u)&&(((x=n(d))!=null?x:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,qb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;Fe(()=>{n(s),n(d),n(o),p==null||p()}),cn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var v=lS();v.__contextmenu=function(...x){var I;(I=e.onContextMenu)==null||I.apply(this,x)},v.__click=function(...x){var I;(I=e.onClick)==null||I.apply(this,x)};var b=C(v);{var y=x=>{var I=sS(),T=C(I);let D;var A=C(T,!0);S(T),S(I),tt(I,E=>N(r,E),()=>n(r)),O((E,V)=>{D=ie(T,1,"waiting__title s-r",null,D,E),ge(A,V)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_upcoming_title")]),$(x,I)},_=x=>{var I=aS(),T=C(I);let D;var A=C(T,!0);S(T);var E=P(T,2);let V=f(()=>n(u)||n(m)),q=f(()=>i()||0);Ev(E,{get isSmallSize(){return n(V)},get startTime(){return n(q)},onTimerOver:()=>N(o,!0)}),S(I),tt(I,L=>N(a,L),()=>n(a)),O((L,z)=>{D=ie(T,1,"timer__title s-r",null,D,L),ge(A,z)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_timer_title")]),$(x,I)};M(b,x=>{n(o)?x(y):x(_,!1)})}S(v),O(()=>Ke(v,`background-image: url(${e.thumbUrl})`)),kn(v,"clientWidth",x=>N(d,x)),kn(v,"clientHeight",x=>N(s,x)),$(t,v),F()}et(["contextmenu","click"]);var cS=k('<div class="waiting-container s-p"><div class="waiting-caption s-p"><!> <p class="waiting-title s-p"> </p></div></div>'),uS={hash:"s-p",code:'.waiting-container.s-p{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-p,.waiting-container.s-p:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-p:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-p{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-p{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function ll(t,e){H(e,!0),Q(t,uS);let i=g(e,"thumbUrl",3,""),o={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")},r=f(()=>o[e.kind]||"");var a=cS();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=C(a),d=C(l);Qa(d,{style:"position: static; transform: translate(0, 0)"});var s=P(d,2),u=C(s,!0);S(s),S(l),S(a),O(()=>{Ke(a,`background-image: url('${i()}')`),ge(u,n(r))}),$(t,a),F()}et(["contextmenu","click"]);var pS=Ae('<path 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>');function Pv(t){Xe(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=pS();$(e,o)},$$slots:{default:!0}})}var fS=k('<div class="select-icon s-1w"><!></div>'),mS={hash:"s-1w",code:".select-icon.s-1w{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Dc(t){Q(t,mS);var e=fS(),i=C(e);Pv(i,{}),S(e),$(t,e)}var vS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},gS=(t,e)=>{Yl(t,()=>e.item.selectItem(e.item.value))},hS=k("<p> </p>"),_S=k('<p class="sublabel s-1r"> </p>'),bS=k('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),$S={hash:"s-1r",code:".menu-item-value.s-1r{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1r{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1r,.sublabel.s-1r{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1r{opacity:.5}"};function Av(t,e){H(e,!0),Q(t,$S);let i=g(e,"isMobile",3,!1);var o=bS();let r;o.__click=[vS,e],o.__keydown=[gS,e];var a=C(o);{var l=y=>{Dc(y,{})};M(a,y=>{e.item.selected&&y(l)})}var d=P(a,2);let s;var u=C(d);{var m=y=>{var _=Re(),x=se(_);Fi(x,()=>e.item.valueComponent,(I,T)=>{T(I,jr(()=>{var D;return(D=e.item.valueComponentParams)!=null?D:{}}))}),$(y,_)},p=y=>{var _=hS();let x;var I=C(_,!0);S(_),O(T=>{var D;x=ie(_,1,"label s-1r",null,x,T),ge(I,(D=e.item.label)!=null?D:e.item.value)},[()=>({mobile:i()})]),$(y,_)};M(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var v=P(u,2);{var b=y=>{var _=_S(),x=C(_,!0);S(_),O(()=>ge(x,e.item.sublabel)),$(y,_)};M(v,y=>{e.item.sublabel&&y(b)})}S(d),S(o),O((y,_,x)=>{var I;r=ie(o,1,"item",null,r,y),De(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),De(o,"aria-label",_),De(o,"data-testid",e.item.dataTestid),s=ie(d,1,"menu-item-value s-1r",null,s,x),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,_;return(_=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?_:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),F()}et(["click","keydown"]);var yS=k('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function kv(t,e){H(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=f(()=>()=>e.openSubMenuList(e.item.children)),a=f(()=>_=>Gu(_,n(r)));var l=yS();let d;l.__click=function(..._){var x;(x=n(r))==null||x.apply(this,_)},l.__keydown=function(..._){var x;(x=n(a))==null||x.apply(this,_)};var s=C(l);{var u=_=>{Dc(_,{})};M(s,_=>{e.item.selected&&_(u)})}var m=P(s,2);let p;var v=C(m);{var b=_=>{var x=Re();let I=f(()=>e.item.valueComponent);var T=se(x);Fi(T,()=>n(I),(D,A)=>{A(D,jr(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),$(_,x)},y=_=>{var x=hs();O(()=>ge(x,e.item.label)),$(_,x)};M(v,_=>{e.item.valueComponent?_(b):_(y,!1)})}S(m),S(l),tt(l,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),O((_,x)=>{var I;d=ie(l,1,"item",null,d,_),De(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),De(l,"data-testid",e.item.id),p=ie(m,1,"menu-item-value",null,p,x)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),F()}et(["click","keydown"]);var es={"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 wS=(t,e)=>{rb(t,e.returnFromSubMenu,e.closeSettingsMenu)},SS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},CS=(t,e)=>{nc(t)&&(Lr(t),e.returnFromSubMenu())},TS=k('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1j"> </p></li> <!></ul></div>'),IS={hash:"s-1j",code:".sub-menu.s-1j{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1j .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1j{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1j{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1j .items:where(.s-1j) .item.header:where(.s-1j){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1j .title:where(.s-1j){margin-left:8px}.sub-menu.s-1j .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1j .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1j .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1j .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1j .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1j .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1j .item .sublabel{font-size:12px;line-height:14px}.item.s-1j:not(.mobile) p:where(.s-1j),.sub-menu.s-1j .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Mv(t,e){H(e,!0),Q(t,IS);let[i,o]=Be(),r=()=>w(p,"$isFullscreen",i),a=()=>w(v,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),s=g(e,"ariaLabelReturnFromSubMenu",19,()=>G("aria_label_submenu_back")),u=g(e,"listRef",15);Lt(()=>{let ee=e.items.findIndex(oe=>oe.selected);u().children[ee+1].focus()});let m=ye(),p=m.ui.isFullscreen,v=m.ui.playerSize,b=K(void 0),y=K(0),_=K(0),x=f(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(_)-d()}px; overflow: auto;`),I=f(()=>Math.max(e.minWidth,n(y)));var T=TS();let D;var A=C(T);let E;A.__keydown=[wS,e];var V=C(A);let q;V.__click=[SS,e],V.__keydown=[CS,e];var L=C(V);kr(L,{direction:"left"});var z=P(L,2),j=C(z,!0);S(z),S(V),tt(V,ee=>N(b,ee),()=>n(b));var te=P(V,2);xi(te,17,()=>e.items,Hd,(ee,oe)=>{var ae=Re(),le=se(ae);{var ce=_e=>{Av(_e,{get item(){return n(oe)},get isMobile(){return l()}})},X=(_e,Ee)=>{{var de=ze=>{kv(ze,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};M(_e,ze=>{n(oe).type==="OPEN_SUB_MENU"&&ze(de)},Ee)}};M(le,_e=>{n(oe).type==="SELECT_VALUE"?_e(ce):_e(X,!1)})}$(ee,ae)}),S(A),tt(A,ee=>u(ee),()=>u()),S(T),O((ee,oe,ae)=>{D=ie(T,1,"sub-menu menu s-1j",null,D,ee),De(T,"data-testid",`${e.id}-sub-menu`),Ke(T,`min-width: ${n(I)}px`),E=ie(A,1,"items s-1j",null,E,oe),Ke(A,n(x)),q=ie(V,1,"item header back s-1j",null,q,ae),De(V,"aria-label",s()),ge(j,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),kn(V,"clientWidth",ee=>N(y,ee)),kn(V,"clientHeight",ee=>N(_,ee)),$(t,T),F(),o()}et(["keydown","click"]);var Gb=require("@vkontakte/videoplayer-shared/es2018");var ES=(t,e)=>Gu(t,e()),PS=(t,e)=>{t.stopPropagation(),e()()},AS=k('<div class="value s-1k"> </div>'),kS=k('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),LS={hash:"s-1k",code:".value.s-1k{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Vv(t,e){H(e,!0),Q(t,LS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Gb.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"iconProps",19,()=>({})),l=g(e,"ref",15);var d=kS();let s;d.__click=[PS,o],d.__keydown=[ES,o];var u=C(d),m=C(u);{var p=T=>{tl(T,{get icon(){return e.icon}})},v=T=>{var D=Re();let A=f(()=>e.icon);var E=se(D);Fi(E,()=>n(A),(V,q)=>{q(V,jr(a))}),$(T,D)};M(m,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var b=P(u,2),y=C(b,!0);S(b);var _=P(b,2);{var x=T=>{var D=Re();let A=f(r);var E=se(D);Fi(E,()=>n(A),(V,q)=>{q(V,{})}),$(T,D)},I=T=>{var D=AS(),A=C(D,!0);S(D),O(()=>ge(A,e.value)),$(T,D)};M(_,T=>{r()?T(x):T(I,!1)})}S(d),tt(d,T=>l(T),()=>l()),O(T=>{s=ie(d,1,"item",null,s,T),De(d,"aria-label",e.ariaLabel),De(d,"data-testid",e.id),ge(y,e.label)},[()=>({mobile:i()})]),$(t,d),F()}et(["click","keydown"]);var Rv=require("@vkontakte/videoplayer-shared/es2018");var MS=(t,e)=>{Yl(t,()=>e())},VS=k('<div class="icon icon-error-stub"><div class="inner"></div></div>'),RS=k('<img class="icon" aria-hidden="true"/>'),DS=k('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1l"> </div></li>'),NS={hash:"s-1l",code:".label.s-1l{overflow:hidden;text-overflow:ellipsis}"};function Dv(t,e){H(e,!0),Q(t,NS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Rv.noop),r=g(e,"closeSettings",3,Rv.noop),a=K(!1),l=()=>{N(a,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var s=DS();let u;s.__click=d,s.__keydown=[MS,d];var m=C(s),p=C(m);{var v=x=>{var I=Re(),T=se(I);{var D=E=>{var V=VS();$(E,V)},A=E=>{var V=RS();O(()=>De(V,"src",e.icon)),_t("error",V,l),Na(V),$(E,V)};M(T,E=>{n(a)?E(D):E(A,!1)})}$(x,I)},b=x=>{var I=Re();let T=f(()=>e.icon);var D=se(I);Fi(D,()=>n(T),(A,E)=>{E(A,{})}),$(x,I)};M(p,x=>{typeof e.icon=="string"?x(v):x(b,!1)})}S(m);var y=P(m,2),_=C(y,!0);S(y),S(s),O(x=>{var I;u=ie(s,1,"item",null,u,x),De(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),De(s,"data-testid",e.id),ge(_,e.label)},[()=>({mobile:i()})]),$(t,s),F()}et(["click","keydown"]);var Yb=require("@vkontakte/videoplayer-shared/es2018");var OS=k('<div class="toggle_wrap s-1q"><div></div> <div class="toggle-label s-1q"></div></div>'),BS={hash:"s-1q",code:'.toggle_wrap.s-1q{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1q{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1q:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1q:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1q{overflow:hidden}'};function Nv(t,e){Q(t,BS);let i=g(e,"enabled",3,!1);var o=OS(),r=C(o);let a;Xt(2),S(o),O(l=>a=ie(r,1,"toggle s-1q",null,a,l),[()=>({on:i()})]),$(t,o)}var HS=(t,e,i)=>{sb(t,e(),o=>i()(o))},FS=(t,e,i)=>{t.stopPropagation(),e()(!i())},US=k('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),zS=k('<li role="menuitem" tabindex="0"><!></li>');function Ov(t,e){H(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Yb.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=zS();let s;d.__click=[FS,o,r],d.__keydown=[HS,r,o];var u=C(d);Ya(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,p)=>{var v=US();let b;var y=C(v),_=C(y);{var x=E=>{tl(E,{get icon(){return e.icon}})},I=E=>{var V=Re();let q=f(()=>e.icon);var L=se(V);Fi(L,()=>n(q),(z,j)=>{j(z,{})}),$(E,V)};M(_,E=>{typeof e.icon=="string"?E(x):E(I,!1)})}S(y);var T=P(y,2),D=C(T,!0);S(T);var A=P(T,2);Nv(A,{get enabled(){return r()}}),S(v),O(E=>{b=ie(v,1,"switch-wrapper",null,b,E),ge(D,e.label)},[()=>({mobile:i()})]),$(m,v)},$$slots:{default:!0}}),S(d),O(m=>{var p;s=ie(d,1,"item switch-item",null,s,m),De(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),F()}et(["click","keydown"]);var Oc=require("@vkontakte/videoplayer-shared/es2018");var jb=()=>{let t=K(ni([])),e=f(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var Xb=require("@vkontakte/videoplayer-shared/es2018");var WS=k('<div class="quality-icon s-1p"><!></div>'),KS=k('<div class="quality-label s-1p"><span> </span> <!></div>'),qS={hash:"s-1p",code:".quality-label.s-1p{position:relative}.quality.s-1p{font-size:13px;line-height:18px}.quality.sub.s-1p{opacity:.7}.quality-icon.s-1p{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1p svg{color:var(--blue-light)}"};function dl(t,e){H(e,!0),Q(t,qS);let i=g(e,"isSubCase",3,!1),o=f(()=>e.quality?(0,Xb.getVideoQualityLabel)(e.quality):""),r=f(()=>ep(e.quality));var a=KS(),l=C(a);let d;var s=C(l,!0);S(l);var u=P(l,2);{var m=p=>{var v=WS();let b=f(()=>n(r));var y=C(v);Fi(y,()=>n(b),(_,x)=>{x(_,{})}),S(v),O(()=>De(v,"data-testid",`${n(o)}-icon`)),$(p,v)};M(u,p=>{n(r)&&!e.isMobile&&p(m)})}S(a),O(p=>{d=ie(l,1,"s-1p",null,d,p),ge(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,a),F()}var t$=require("@vkontakte/videoplayer-shared/es2018");var Bv=require("@vkontakte/videoplayer-core/es2018");var Zb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Jb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Zb({quality:t,availableQualities:e});return i?t===Bv.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o},e$=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Bv.VideoQuality.INVARIANT?i:`${i}${Zb({quality:t,availableQualities:e})}`:"...";var QS=k('<div class="menu-item-value-wrapper s-1s"><!></div>'),GS={hash:"s-1s",code:".menu-item-value-wrapper.s-1s{line-height:normal}"};function ad(t,e){H(e,!0),Q(t,GS);let[i,o]=Be(),r=()=>w(s,"$currentQuality$",i),a=()=>w(u,"$availableQualities$",i),l=()=>w(m,"$isMobile$",i),d=ye(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",v=f(()=>e.prefix+(e.selected&&r()!==t$.VideoQuality.INVARIANT?p:"")),b=f(()=>e$({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=QS(),_=C(y);let x=f(()=>e.selected?r():void 0);dl(_,{get quality(){return n(x)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),S(y),$(t,y),F(),o()}var YS=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${a}`,"g")},jS={br:!0,span:!0},Hv=(t,e={})=>{var d,s,u,m,p,v,b;if(!t)return t;let i={...jS,...e},o=Object.keys(i);if(!o.length)return t;let r=YS(o),a=[],l=0;for(let y of t.matchAll(r)){let _=y[0],x=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:I}=y;if(!i[x]){a.push(t.slice(l,I)),l=I+_.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Hv(y.groups.childrenhtml,i):"",D=(v=y.groups)!=null&&v.childrenhtml?_.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>T||""):_;a.push(t.slice(l,I),D),l=I+_.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Nc(t,e){H(e,!1);let i=g(e,"message",8),o=Hv(i());on();var r=Re(),a=se(r);{var l=d=>{var s=Re(),u=se(s);Fd(u,()=>o),$(d,s)};M(a,d=>{o&&d(l)})}$(t,r),F()}var XS=k('<p class="quality-applies sublabel s-1t"><!></p>'),ZS={hash:"s-1t",code:".quality-applies.s-1t{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Fv(t,e){H(e,!1),Q(t,ZS),on();var i=XS(),o=C(i);let r=Tn(()=>G("quality_applience",{action:`<span>${G("quality_applience_action")}</span>`}));Nc(o,{get message(){return n(r)}}),S(i),$(t,i),F()}var o$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:G("other_quality"),selected:o,valueComponent:ad,valueComponentParams:{prefix:G("other_quality"),selected:o},children:"quality-other-settings"}},Uv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:G("auto_quality_limit"),valueComponent:e?ad:void 0,valueComponentParams:{prefix:G("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),n$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Fv,bottomBordered:!0,children:"quality-appliance"}),zv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:G("high_quality"),valueComponent:t?ad:void 0,valueComponentParams:{prefix:G("high_quality"),selected:i},sublabel:G("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:G("traffic_saving_quality"),valueComponent:t?ad:void 0,valueComponentParams:{prefix:G("traffic_saving_quality"),selected:i},sublabel:G("traffic_saving_quality_description")});var bp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),$p=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=_c(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return G("audio_stream_display_language_label",{language:r,label:o});{let s=bp(t,d);return G("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=bp(t,d);return G("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=bp(t,d);return G("audio_stream_display_language_index",{language:r,index:s})}}let a=bp(t,e);return G("audio_stream_display_unknown",{index:a})};var JS={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Uv,selected:e&&!o&&!r||!1}),a.push({handler:Wv,selected:o},{handler:zv,selected:r}),{title:G("submenu_quality"),id:"quality-settings",items:[n$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),o$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:G("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:dl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:G("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Uv,selected:((i=Fu())==null?void 0:i.type)==="auto_quality"},{handler:Wv,selected:((o=Fu())==null?void 0:o.type)==="traffic_saving"},{handler:zv,selected:((r=Fu())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-tracks":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-tracks",title:G("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:$p(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:G("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:G("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Vn?"sub_off":void 0}))})},r$=({subMenuId:t,context:e})=>t?[JS[t](e)]:[];var eC=Ae('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Kv(t){Xe(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=eC();$(e,o)},$$slots:{default:!0}})}var tC=Ae('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function qv(t){Xe(t,{width:"18",height:"15",children:(e,i)=>{var o=tC();$(e,o)},$$slots:{default:!0}})}var iC=Ae('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 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.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function Qv(t){Xe(t,{testId:"play-speed-icon",children:(e,i)=>{var o=iC();$(e,o)},$$slots:{default:!0}})}var oC=Ae('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function Gv(t){Xe(t,{testId:"download-icon",children:(e,i)=>{var o=oC();$(e,o)},$$slots:{default:!0}})}var nC=Ae('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 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"></path>');function Yv(t){Xe(t,{testId:"report-icon",children:(e,i)=>{var o=nC();$(e,o)},$$slots:{default:!0}})}var rC=Ae('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function yp(t){Xe(t,{children:(e,i)=>{var o=rC();$(e,o)},$$slots:{default:!0}})}var sC=Ae('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function jv(t){Xe(t,{testId:"info-icon",children:(e,i)=>{var o=sC();$(e,o)},$$slots:{default:!0}})}var aC=k('<div class="menu-item-value-wrapper s-1v"><!></div>'),lC={hash:"s-1v",code:".menu-item-value-wrapper.s-1v{line-height:normal}"};function Xv(t,e){H(e,!0),Q(t,lC);let[i,o]=Be(),r=()=>w(u,"$currentQuality$",i),a=()=>w(m,"$availableQualities$",i),l=()=>w(p,"$isAutoQualityEnabled$",i),d=()=>w(v,"$isMobile$",i),s=ye(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,b=f(()=>Jb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=aC(),_=C(y);dl(_,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),S(y),$(t,y),F(),o()}var cC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?G("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_quality",{actual:o}),icon:dc,label:G("menu_quality"),value:e,valueComponent:Xv,weight:es["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:es["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:G("aria_label_submenu_traffic_saving"),icon:Kv,label:G("menu_traffic_saving"),enabled:t,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=$p(t,e);return{id:"audio-tracks-settings",weight:es["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_audio_languages",{actual:i}),icon:qv,label:G("menu_audio_languages"),value:i,children:"audio-tracks"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:es["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_rate",{actual:i}),icon:Qv,label:G("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:es["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_subtitle",{actual:t.displayValue}),icon:fa,iconProps:{type:"outline"},label:G("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:es.download,type:"CLICK",onClick:t,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:Gv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:es.report,type:"CLICK",onClick:t,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,icon:Yv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:es["copy-data"],type:"CLICK",onClick:t,label:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:yp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:es["save-trace-info"],type:"CLICK",onClick:t,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:yp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:es["debug-info"],type:"CLICK",onClick:t,ariaLabel:G("aria_label_menu_debug_overlay"),label:G("menu_debug_overlay"),icon:jv,isHiddenFor:["desktop"]})},s$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>cC[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ka)};var pC=(t,e)=>{Qu(t,e)},fC=k('<div><div> </div> <div class="close s-n" data-testid="close-settings-menu"></div></div>'),mC=k('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),vC=k("<div><!> <!></div>"),gC={hash:"s-n",code:'.settings-menu-container.mobile.s-n{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-n ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-n .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-n .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-n .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-n .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-n .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-n .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-n{line-height:40px}.settings-menu.desktop.s-n{min-width:300px}.settings-menu-container.s-n .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-n .menu.mobile.hidden{display:none}.settings-menu-container.s-n .menu .item:not(.switch-item),.settings-menu-container.s-n .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;position:relative;white-space:nowrap}.settings-menu-container.s-n .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-n .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-n .item:not(.switch-item),.settings-menu.s-n .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-n .item.mobile:not(.switch-item),.settings-menu.s-n .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-n .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-n .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-n .item.header.mobile:where(.s-n){border-bottom:var(--divider-border);color:var(--white);column-gap:12px;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:4px}.settings-menu-container.s-n .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-n .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-n .items::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.settings-menu-container.s-n .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-n .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-n{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-n:after,.close.s-n:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-n:before{transform:rotate(45deg)}.close.s-n:after{transform:rotate(-45deg)}'};function Bc(t,e){H(e,!0),Q(t,gC);let[i,o]=Be(),r=()=>w(be,"$settingsMenuVisible",i),a=()=>w(W,"$settingsMenuOpenedByKeyboard",i),l=()=>w(ut,"$debugPanelVisible",i),d=()=>w(ke,"$isMobile",i),s=()=>w(st,"$playerSize",i),u=()=>w(Me,"$hasMpegSources$",i),m=()=>w(Qe,"$mobileNotReportControlHidden$",i),p=()=>w(ue,"$autoQualityLimitingAvailable$",i),v=()=>w(X,"$isMinimalView$",i),b=()=>w(Ie,"$availableSubtitlesList$",i),y=()=>w(Te,"$isLiveWithPlaybackSpeed",i),_=()=>w(Ee,"$availableAudioStreams$",i),x=()=>w(fe,"$availablePlaybackRates$",i),I=()=>w(_e,"$currentAudioStream$",i),T=()=>w(B,"$currentPlaybackRate$",i),D=()=>w(we,"$trafficSavingEnabled",i),A=()=>w(de,"$currentQuality$",i),E=()=>w(pe,"$isAutoQualityEnabled$",i),V=()=>w(me,"$currentSubtitle$",i),q=()=>w(lt,"$additionalSettingsMenuItems$",i),L=()=>w(Z,"$isAutoQualityAvailable$",i),z=()=>w(ze,"$availableQualities$",i),j=()=>w(He,"$highQualityEnabled",i),te=g(e,"ref",15,void 0),ee=g(e,"playerControlsHeight",3,0),oe=ni({}),ae=ni({}),le=ye(),ce=Mt(),X=le.ui.isMinimalView$,_e=le.state.audioStream$,Ee=le.state.availableAudioStreams$,de=le.state.currentQuality$,ze=le.state.availableQualities$,ue=le.state.autoQualityLimitingAvailable$,pe=le.state.isAutoQualityEnabled$,Z=le.state.isAutoQualityAvailable$,B=le.state.currentPlaybackRate$,fe=le.state.availablePlaybackRates$,me=le.state.currentSubtitle$,Ie=le.state.availableSubtitlesList$,ot=le.state.canDownload,Me=le.state.hasMpegSources$,be=le.ui.settingsMenu.visible$,W=le.ui.settingsMenu.openedByBtnKeyboard$,Ce=le.ui.settingsMenu.ref$,ke=le.ui.isMobile,Qe=le.ui.mobileNotReportControlHidden$,Te=le.state.canChangePlaybackSpeed$,we=le.state.trafficSavingEnabled$,He=le.state.highQualityEnabled$,st=le.ui.playerSize,ut=le.ui.debugPanelVisible,It=le.state.isInteractiveTime$,lt=le.ui.additionalSettingsMenuItems$,ri=le.ui.t,St=le.actions.internal.downloadVideo,Rt=le.actions.internal.closeSettingsMenu,Dt=le.actions.internal.openSettingsSubMenu,Wt=le.actions.internal.closeSettingsSubMenu,Le=K(!1),Y=K(void 0),Ne=jb();Fe(()=>{!r()&&Ne.current&&(Wt(ae[Ne.current]),Ne.popAllSubMenus())}),Fe(()=>{r()||N(Y,void 0)}),Fe(()=>{!Ne.current&&n(Y)&&nb(oe,n(Y))}),Fe(()=>{te()&&Ce.set(te())});async function $e(U){var Yt;Ne.pushSubMenu(U),await ho(),Dt(U,ae[U]);let it=(Yt=te())==null?void 0:Yt.firstElementChild;it&&lm(it)}function Oe(U){var it;U==null||U.stopPropagation(),a()||(it=e.returnFocus)==null||it.call(e),Rt(),N(Le,!1)}function mt(U,it){le.actions.internal.setQuality(U,{appliesTo:it,byUser:!0}),Oe()}function Et(U){le.actions.internal.setAudioStream(U),Oe()}function Se(U,it){le.actions.internal.setTrafficSavingEnabled(U,it),ce.features.qualityDetailsSubMenuEnabled&&Oe()}function Ye(U,it){le.actions.internal.setHighQualityEnabled(U,it),Oe()}function Ue(U){le.actions.internal.setPlaybackRate(U),Oe()}function xe(U){le.actions.internal.setSubtitle(U),Oe()}function Nt(){St()}function Tt(){(0,Oc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function qt(){Ql(le.actions.internal.getDebugTextData())}let hi=()=>{let U=le.actions.internal.getTraceTextData(),it=new Blob([...U],{type:"application/json"}),Yt=window.URL.createObjectURL(it);za(Yt,"vk_player_trace_info","json")};function mi(){ut.set(!l())}function ki(){N(Le,!0)}function Ji(){N(Le,!1)}function ai(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-ee()}px; overflow: auto;`}let wi=f(()=>ot&&u()&&!m()),eo=f(()=>ce.features.trafficSaving&&!m()&&p()&&!ce.features.qualityDetailsSubMenuEnabled),Li=f(()=>!v()&&b().length>0&&!m()),li=f(()=>!!y()&&!m()),Ui=f(()=>ce.features.audioLanguages&&_().length>=2&&!m()),bt=f(()=>!m());Lt(()=>It.subscribe(U=>{U&&!d()&&!n(Le)&&!a()&&Oe()}));let We=f(()=>{let U=[n(bt)&&"quality-settings",n(Ui)&&"audio-tracks-settings",n(li)&&"playback-rate-settings",n(Li)&&"subtitles-settings",n(eo)&&"traffic-saving-switch",n(wi)&&"download",ce.showSupport&&"show-support","copy-data",ce.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(it=>!!it);return s$({items:U,context:{qualityDetailsSubMenuEnabled:ce.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:I(),availableAudioStreams:_(),currentPlaybackRate:T(),selectPlaybackRate:Ue,trafficSavingEnabled:D(),toggleTrafficSaving:Se,currentQuality:A()||Oc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:V(),isMobile:d(),onDownloadClick:Nt,onCopyDataClick:qt,onReportProblemClick:Tt,onSaveTraceDataClick:hi,toggleShowDebugInfo:mi},additionalSettingsMenuItems:q()})}),nt=f(()=>r$({subMenuId:Ne.current,context:{availablePlaybackRates:x(),selectPlaybackRate:Ue,trafficSavingEnabled:D(),toggleTrafficSaving:Se,currentQuality:A()||Oc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:L()||!1,availableQualities:z(),highQualityEnabled:j(),toggleHighQuality:Ye,availableAudioStreams:_(),availableSubtitlesList:b(),closeSettingsMenu:Rt,currentAudioStream:I(),isMobile:d(),selectAudioLanguage:Et,selectQuality:mt,selectSubtitle:xe}}));var pt=vC();let di;var zi=C(pt);{var to=U=>{var it=mC();let Yt;it.__keydown=[pC,Rt];var vi=C(it);{var at=Gt=>{var Ct=fC();let _o;var Do=C(Ct),mn=C(Do,!0);S(Do);var vn=P(Do,2);vn.__click=Oe,S(Ct),O((Ei,Si)=>{_o=ie(Ct,1,"item header s-n",null,_o,Ei),ge(mn,Si)},[()=>({mobile:d()}),()=>ri("submenu_settings")]),$(Gt,Ct)};M(vi,Gt=>{d()&&Gt(at)})}var si=P(vi,2);let _i;xi(si,21,()=>n(We),Gt=>Gt.id,(Gt,Ct)=>{var _o=Re(),Do=se(_o);{var mn=Ei=>{Vv(Ei,{get isMobile(){return d()},get id(){return n(Ct).id},get icon(){return n(Ct).icon},get iconProps(){return n(Ct).iconProps},get label(){return n(Ct).label},get ariaLabel(){return n(Ct).ariaLabel},get value(){return n(Ct).value},get valueComponent(){return n(Ct).valueComponent},onClick:()=>{$e(n(Ct).children),N(Y,n(Ct).id,!0)},get ref(){return oe[n(Ct).id]},set ref(Si){oe[n(Ct).id]=Si}})},vn=(Ei,Si)=>{{var gn=yi=>{let xo=f(()=>`${n(Ct).id}-menu-item`);Dv(yi,{get isMobile(){return d()},get id(){return n(xo)},get onClick(){return n(Ct).onClick},get icon(){return n(Ct).icon},get label(){return n(Ct).label},get ariaLabel(){return n(Ct).ariaLabel},closeSettings:Oe})},gr=(yi,xo)=>{{var No=Oo=>{let hn=f(()=>`${n(Ct).id}-menu-item`);Ov(Oo,{get isMobile(){return d()},get id(){return n(hn)},get onClick(){return n(Ct).onClick},get icon(){return n(Ct).icon},get label(){return n(Ct).label},get ariaLabel(){return n(Ct).ariaLabel},get enabled(){return n(Ct).enabled},get tooltipText(){return n(Ct).tooltipText},get maxTooltipWidth(){return n(Ct).maxTooltipWidth}})};M(yi,Oo=>{n(Ct).type==="SWITCH"&&Oo(No)},xo)}};M(Ei,yi=>{n(Ct).type==="CLICK"?yi(gn):yi(gr,!1)},Si)}};M(Do,Ei=>{n(Ct).type==="OPEN_SUB_MENU"?Ei(mn):Ei(vn,!1)})}$(Gt,_o)}),S(si),tt(si,Gt=>te(Gt),()=>te()),S(it),O((Gt,Ct,_o)=>{Yt=ie(it,1,"settings-menu menu s-n",null,Yt,Gt),_i=ie(si,1,"items",null,_i,Ct),Ke(si,_o)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ne.current}),()=>({mobile:d()}),ai]),_t("mouseenter",it,ki),_t("mouseleave",it,Ji),$(U,it)};M(zi,U=>{r()&&U(to)})}var fn=P(zi,2);xi(fn,17,()=>n(nt),U=>U.id,(U,it)=>{let Yt=f(()=>{var vi;return(vi=n(it).minWidth)!=null?vi:137});Mv(U,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return Ne.popSubMenu},get id(){return n(it).id},get title(){return n(it).title},get closeSettingsMenu(){return Rt},openSubMenuList:$e,get items(){return n(it).items},get minWidth(){return n(Yt)},get refMenuItems(){return oe},get listRef(){return ae[n(it).id]},set listRef(vi){ae[n(it).id]=vi}})}),S(pt),O(U=>di=ie(pt,1,"settings-menu-container s-n",null,di,U),[()=>({mobile:d(),hidden:!r()})]),$(t,pt),F(),o()}et(["keydown","click"]);var hC=k('<button class="btn s-1e"> </button>'),_C={hash:"s-1e",code:"button.btn.s-1e{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Zv(t,e){Q(t,_C);var i=hC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);S(i),O(()=>ge(o,e.label)),$(t,i)}et(["click"]);var bC=k('<div class="container s-q"><div class="notification s-q"><div><p class="description s-q"><!></p> <!></div> <!></div></div>'),$C={hash:"s-q",code:".container.s-q{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px;z-index:var(--controls-container-z-index)}.notification.s-q{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-q{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Hc(t,e){H(e,!0),Q(t,$C);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Mt(),{ui:{t:r}}=ye(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=bC(),d=C(l),s=C(d),u=C(s),m=C(u);Nc(m,{get message(){return a}}),S(u);var p=P(u,2);{var v=y=>{let _=f(()=>r("slow_video_notification_button"));Zv(y,{get label(){return n(_)},get onClick(){return e.onSelectAutoQuality}})};M(p,y=>{o||y(v)})}S(s);var b=P(s,2);Os(b,{get onClick(){return e.onClose}}),S(d),S(l),Ds(3,d,()=>ga,()=>({duration:i})),$(t,l),F()}var Fc=require("@vkontakte/videoplayer-shared/es2018"),cl="annotation",xp=class{constructor(e){this.slots=new Map;this.disabledIds=new Set(e)}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var s;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;if(this.disabledIds.has(r))return{success:!1,message:"current slotId is disabled via config"};let d=typeof e=="function"?e():e;return d.setAttribute("slot",cl),this.setupSlotStyles(d,o),this.shadowRootContainer.append(d),this.slots.set(r,{rootElement:d,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((s=this.store)==null||s.ui.isControlsAvailable.set(!1)),{success:!0}}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"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var m;let r=this.slots.get(e);if(!r)return;let a=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((m=this.store)==null?void 0:m.ui)||{},s=new MutationObserver(p=>p.forEach(()=>{let v=Us(a,this.shadowRootContainer);o.forEach(b=>{let y=l==null?void 0:l[b],_=y?he(y):null,x=d==null?void 0:d[b];_&&(x==null||x.set((0,Fc.isIntersecting)(_,v)))})}));s.observe(a,{childList:!0,subtree:!0}),r.observer=s;let u=new Fc.Subscription;o.forEach(p=>{l&&u.add(l[p].subscribe(v=>{let b=d==null?void 0:d[p];v&&v.isDisplayed?b==null||b.set((0,Fc.isIntersecting)(v,Us(a,this.shadowRootContainer))):b==null||b.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var v,b;(b=(v=this.store)==null?void 0:v.ui.hiddenControls[p])==null||b.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var yC=k('<div class="container s-6"><!></div>'),xC={hash:"s-6",code:".container.s-6{align-items:center;animation-fill-mode:forwards;animation-name:s-6-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-6-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function Uc(t,e){H(e,!0),Q(t,xC);let i=g(e,"reversed",3,!1);var o=Re(),r=se(o);Ms(r,()=>e.Icon,a=>{var l=yC(),d=C(l);Fi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),O(()=>Ke(l,`animation-duration: ${e.duration}ms`)),$(a,l)}),$(t,o),F()}var Jv=require("@vkontakte/videoplayer-core/es2018"),wC=k('<div class="container s-w"><!></div>'),SC={hash:"s-w",code:".container.s-w{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function eg(t,e){H(e,!0),Q(t,SC);let[i,o]=Be(),r=()=>w(s,"$playbackState$",i),a=()=>w(m,"$previewTrackActive",i),l=()=>w(p,"$previewTrackDragInProgress",i),d=()=>w(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=ye(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:b}=Mt(),y=0,_=K(null),x=K(!1);Fe(()=>{r()===Jv.PlaybackState.PLAYING?N(_,vr,!0):r()===Jv.PlaybackState.PAUSED?N(_,Ws,!0):N(_,null)}),Fe(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,N(_,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),Fe(()=>{d()&&!n(x)&&(N(x,!0),N(_,null))});var I=Re(),T=se(I);{var D=A=>{var E=wC(),V=C(E);Uc(V,{get duration(){return b},get Icon(){return n(_)}}),S(E),$(A,E)};M(T,A=>{n(_)&&v&&A(D)})}$(t,I),F(),o()}var CC=k('<div><div data-testid="video-container"></div></div>'),TC={hash:"s-d",code:".video-container.s-d,.video-wrapper.s-d{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-d{background:var(--black)}.video-container.s-d,.video-wrapper.s-d{z-index:var(--video-container-z-index)}.video-container.s-d{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-d{transition:none}.nocursor.s-d{cursor:none}"};function ul(t,e){H(e,!0),Q(t,TC);let[i,o]=Be(),r=()=>w(p,"$rotateAlpha",i),a=()=>w(v,"$playerSize",i),l=()=>w(m,"$playerPhase",i),d=()=>w(y,"$chromecastConnected$",i),s=()=>w(b,"$isPlaying$",i),u=g(e,"videoContainer",15),{playerPhase:m,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:b,chromecastConnected$:y}}=ye(),{isSmoothVideoRotate:_}=Mt(),x=f(()=>u()&&r()%180?a().height/a().width:1);var I=CC();let T;I.__contextmenu=function(...E){var V;(V=e.onContextMenu)==null||V.apply(this,E)},I.__mousedown=function(...E){var V;(V=e.onMouseDown)==null||V.apply(this,E)},I.__mouseup=function(...E){var V;(V=e.onMouseUp)==null||V.apply(this,E)},I.__click=function(...E){var V;(V=e.onClick)==null||V.apply(this,E)},I.__dblclick=function(...E){var V;(V=e.onDblClick)==null||V.apply(this,E)};var D=C(I);let A;tt(D,E=>u(E),()=>u()),S(I),O((E,V)=>{T=ie(I,1,"video-wrapper s-d",null,T,E),A=ie(D,1,"video-container s-d",null,A,V),Ke(D,`transform: rotate(${r()}deg) scale(${n(x)})`),De(D,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!_})]),$(t,I),F(),o()}et(["contextmenu","mousedown","mouseup","click","dblclick"]);var IC=k('<div><span class="text s-11"> </span> <!></div>'),EC={hash:"s-11",code:".root.s-11{background-color:var(--double-forward-bg);border-radius:100px;color:var(--white);display:flex;gap:4px;left:50%;opacity:0;padding:6px 12px;pointer-events:none;position:absolute;top:24px;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden}.root.s-11,.root.visible.s-11{transform:translateX(-50%)}.root.visible.s-11{opacity:1;visibility:visible}.text.s-11{font-size:13px;font-weight:600;line-height:16px}"};function tg(t,e){H(e,!0),Q(t,EC);let{ui:{t:i}}=ye();var o=IC();let r;var a=C(o),l=C(a,!0);S(a);var d=P(a,2);Lc(d,{get size(){return"16"},fill:"currentColor"}),S(o),O((s,u)=>{r=ie(o,1,"root s-11",null,r,s),ge(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),F()}var PC=k('<div class="container s-10" role="button" data-testid="preview-track-overlay"></div>'),AC={hash:"s-10",code:".container.s-10{align-items:center;background-color:rgba(0,0,0,.48);cursor:pointer;display:flex;height:100%;justify-content:center;position:absolute;width:100%}"};function ig(t,e){H(e,!1),Q(t,AC);let i=ye(),o=i.actions.internal.closePreviewTrack,r=i.ui.t,a=200,l=s=>{s.stopPropagation(),o()};on();var d=PC();return d.__click=l,O(s=>De(d,"aria-label",s),[()=>r("tooltip_play")],Tn),Ds(3,d,()=>ga,()=>({duration:a})),$(t,d),Mf(e,"handleClick",l),F({handleClick:l})}et(["click"]);var kC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},LC=k("<div><!></div>"),MC=k('<div class="spherical-video-icon s-8"><!></div>'),VC=k("<div><!></div>"),RC=k('<div class="settings-menu s-8"><!></div>'),DC=k("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),NC=k("<!> <!> <!>",1),OC=k('<div class="blocked s-8"></div>'),BC=k('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),HC={hash:"s-8",code:".blocked.s-8,.player-wrapper.s-8{height:100%;position:absolute;width:100%}.blocked.s-8{z-index:var(--overlay-container-z-index)}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-8{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function ng(t,e){H(e,!0),Q(t,HC);let[i,o]=Be(),r=()=>w($r,"$notificationsToShow$",i),a=()=>w(eo,"$playerPhase",i),l=()=>w(to,"$isLoaderVisible",i),d=()=>w(Ji,"$adPlaybackState",i),s=()=>w(si,"$crashed",i),u=()=>w(gn,"$isInteractiveTime$",i),m=()=>w(bt,"$settingsMenuVisible",i),p=()=>w(gr,"$isInteractiveExpectation$",i),v=()=>w(mi,"$isMinimalView$",i),b=()=>w(Ui,"$controlsVisible",i),y=()=>w(xo,"$touched",i),_=()=>w(rs,"$graphIsOpened$",i),x=()=>w(Li,"$isFullscreen",i),I=()=>w(Zn,"$autoplayNextEnabled$",i),T=()=>w(Yt,"$postrollPassed",i),D=()=>w(fn,"$isEnded$",i),A=()=>w(Ct,"$currentSubtitle$",i),E=()=>w(Bn,"$cursorInside",i),V=()=>w(wo,"$isControlsAvailable",i),q=()=>w(_r,"$doubleForwardOn$",i),L=()=>w(Jn,"$fakeIsPlaying$",i),z=()=>w(or,"$bottomNoSmooth",i),j=()=>w(ys,"$interactiveTimeIndicator",i),te=()=>w(Do,"$playerSize",i),ee=()=>w(vn,"$is3DVideo",i),oe=()=>w(Rn,"$doubleForwardAvailable$",i),ae=()=>w(di,"$contextMenuVisible$",i),le=()=>w(ki,"$playbackState$",i),ce=()=>w(No,"$hotKeyMapData",i),X=()=>w(nt,"$scrubbingInProgress",i),_e=()=>w(pt,"$volumeChangingInProgress",i),Ee=()=>w(U,"$chromecastConnected$",i),de=()=>w(Ho,"$controlsTimeoutActive",i),ze=()=>w(mn,"$adsPlaybackState",i),ue=()=>w(We,"$settingsMenuOpenedByKeyboard",i),pe=()=>w(qo,"$contextMenuOpenedByKeyboard$",i),Z=()=>w(xs,"$contextMenuOpenedByHotKey$",i),B=()=>w(wr,"$contextMenuButtonRef$",i),fe=()=>w(ws,"$contextMenuLastActiveElem$",i),me=()=>w(li,"$isFullscreenOpenedByKeyboard",i),Ie=()=>w(hn,"$positionExact$",i),ot=()=>w(hi,"$language$",i),Me=()=>w(ba,"$previewTrackActive$",i),be=()=>w(Ei,"$icon3DVideoVisible",i),W=()=>w(it,"$chromecastDeviceName$",i),Ce=()=>w(_o,"$currentSubtitleCaptions$",i),ke=()=>w(ai,"$position$",i),Qe=()=>w(wi,"$duration$",i),Te=()=>w(vi,"$isLive$",i),we=()=>w(at,"$isPlaying$",i),He=()=>w(hr,"$contextMenuPosition$",i),st=()=>w(Oo,"$showHotKeyMap",i),ut=()=>w(zi,"$debugPanelVisible",i),It=()=>w(Vr,"$userActionsDisabled$",i),lt=g(e,"videoContainer",15),ri=g(e,"adsSlotId",3,void 0),St=g(e,"adsParams",3,void 0),Rt=g(e,"adsAutoplayParam",3,void 0),Dt=g(e,"duration",3,void 0),Wt=g(e,"logoTargetUrl",3,""),Le=g(e,"showNextPrevButtons",3,!1),Y=g(e,"nextButtonActive",3,!1),Ne=g(e,"prevButtonActive",3,!1),$e=g(e,"endScreenVideoTitle",3,void 0),Oe=g(e,"endScreenVideoThumb",3,void 0),mt=g(e,"isOneVideoPlaylist",3,!1),Et=g(e,"shadowRootContainer",3,void 0),Se=g(e,"outerContainerRef",3,void 0),Ye=g(e,"playerStarted",3,!1),Ue=g(e,"fullScreenTarget",3,void 0),xe=g(e,"showMiniTimer",3,!1),Nt=g(e,"showEndScreen",3,!0),Tt=g(e,"keyboardControls",15),qt=e.store.getLogger().createComponentLog("Root component"),hi=e.store.interfaceLanguage$,mi=e.store.ui.isMinimalView$,ki=e.store.state.playbackState$,Ji=e.store.ads.playbackState,ai=e.store.state.positionWithScrubbing$,wi=e.store.state.duration$,eo=e.store.playerPhase,Li=e.store.ui.isFullscreen,li=e.store.ui.isFullscreenOpenedByKeyboard,Ui=e.store.ui.controlsVisible,bt=e.store.ui.settingsMenu.visible$,We=e.store.ui.settingsMenu.openedByBtnKeyboard$,nt=e.store.ui.scrubbingInProgress,pt=e.store.ui.volumeChangingInProgress,di=e.store.ui.contextMenu.visible$,zi=e.store.ui.debugPanelVisible,to=e.store.state.isLoaderVisible,fn=e.store.state.isEnded$,U=e.store.state.chromecastConnected$,it=e.store.state.chromecastDeviceName$,Yt=e.store.ads.postrollPassed,vi=e.store.state.isLive$,at=e.store.state.isPlaying$,si=e.store.state.crashed$,_i=e.store.webApi.annotationsApi,Gt=e.store.webApi.pictureInPictureApi,Ct=e.store.state.currentSubtitle$,_o=e.store.state.currentSubtitleCaptions$,Do=e.store.ui.playerSize,mn=e.store.ads.playbackState,vn=e.store.ui.is3DVideo,Ei=e.store.ui.icon3DVideoVisible,Si=e.store.state.isInteractive,gn=e.store.state.isInteractiveTime$,gr=e.store.state.isInteractiveExpectation$,yi=e.store.state.hasInteractiveBranches,xo=e.store.ui.touched,No=e.store.ui.modals.hotKeyMap.data,Oo=e.store.ui.modals.hotKeyMap.show,hn=e.store.state.positionExact$,ts=e.store.ui.overlayContainer$,ys=e.store.ui.controls.interactiveTimeIndicator,is=e.store.state.showInteractiveTimeIndicator,hr=e.store.ui.contextMenu.position$,_n=e.store.actions.internal.setQuality,os=e.store.actions.internal.closeSettingsMenu,Zn=e.store.ui.autoplayNextEnabled$,Vr=e.store.ui.userActionsDisabled,wo=e.store.ui.isControlsAvailable,ns=e.store.ui.videoTitleInfo,_r=e.store.ui.doubleForwardOn$,Rn=e.store.ui.doubleForwardAvailable$,Dn=e.store.actions.internal.getVideoElement,Nn=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Jn,notifications$:Rr,graphIsOpened$:rs}=yo(),Pi=K(void 0),ss=K(void 0),Bo=K(void 0),er=K(void 0),br,tr,ft;No.set(Z_());let{closeNotification:Zt,notificationsToShow$:$r}=Rr,as=f(()=>!!r().slow_video),ir=()=>Zt("slow_video"),rn=f(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),On=K(void 0),or=re(!1),Dr,Ho=re(!1),bn=re(),Bn=re(!1),co=K(!1),So=K(!1),Hn=K(!1),Mi=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),nr=f(()=>u()&&!m()&&!(n(co)||n(So))&&!(n(Hn)&&!p())),$n=!0,Nr=f(()=>e.uiConfig.features.thumbTimer&&!v()&&xe()&&a()==="video"&&!b()&&!s()&&!Si&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),$t=e.uiConfig.titleShowBehaviour,Jt=f(()=>!["video","thumb"].includes(a())||$t==="never"||_()?!1:$t==="fullscreen"?x():!0),Ut=f(()=>$t==="always"||a()==="thumb"?!1:!b()),Co=K(!1),Fo=f(()=>(Nt()||e.showAutoplayNext&&I())&&!!$e()&&!!Oe()&&(e.showAds&&T()||!e.showAds)&&D()&&!s()&&!n(Co)&&!yi),Uo=f(()=>!v()&&A().value!=="off"&&a()==="video"),zo=f(()=>E()&&!(b()||n(Fo))&&!u()&&V()&&!q()),bo=K(!1),Fn=f(()=>L()!==null),{toggle:yr}=Jn,sn=!1,yn=null;Gt==null||Gt.setContext(Sd());let ls=()=>{e.autoplay&&!Si&&e.uiConfig.controls.showOnStartupAtAutoplay&&io(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ls});let Or=()=>{window.clearTimeout(br),Ho.set(!1)},ds=()=>{window.clearTimeout(tr),bn.set(null)},io=ve=>{Or(),Ho.set(!0),br=window.setTimeout(()=>Ho.set(!1),ve);let gt=ve-100;Dr=window.setTimeout(()=>{z()&&or.set(!1)},gt>0?gt:ve)},cs=(ve,gt)=>{ds(),bn.set(gt),tr=window.setTimeout(()=>bn.set(null),ve)},Br=vn.subscribe(ve=>{Ei.set(ve),ve&&(window.clearTimeout(ft),ft=window.setTimeout(()=>Ei.set(!1),e.uiConfig.controls.hide360IconTimeout))}),To=async()=>{var gt,oi,jt,Qo;let ve=aa();if(ve){let Ao=Jd(),no=uo();ve=Ao===no||Ao===Et()}if(ve){io(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Gt==null?void 0:Gt.exit())}catch(Ao){qt({message:String(Ao)})}}Li.set(ve),e.store.getAdmanWrapper().setFullscreen(ve),x()?(oi=(gt=e.store.callbacks)==null?void 0:gt.onFullscreenEnter)==null||oi.call(gt):(Qo=(jt=e.store.callbacks)==null?void 0:jt.onFullscreenExit)==null||Qo.call(jt)},Hr=ve=>{Do.set(ve)},Un=()=>{if(n(Pi)){let{width:ve,height:gt}=n(Pi).getBoundingClientRect();Do.set({width:ve,height:gt})}};Lt(()=>{var gt;return Ku(To),e.uiConfig.features.annotationsInside&&(_i==null||_i.init(n(Pi))),Gt==null||Gt.assignPlayerContainer(n(Pi)),e.uiConfig.disablePiPResizeHandling||Gt==null||Gt.setExternalEventHandlers({resize:Hr,leavepictureinpicture:Un}),e.interactiveContainer&&((gt=lt().parentElement)==null||gt.insertBefore(e.interactiveContainer,lt().nextSibling)),()=>{window.clearTimeout(br),window.clearTimeout(Dr),window.clearTimeout(tr),window.clearTimeout(ft),Br(),Gt==null||Gt.dispose().catch(oi=>{qt({message:String(oi)})}),qu(To)}});let uo=()=>{let ve=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Se()?n(Pi):Se(),gt=ve.getRootNode(),oi=gt instanceof ShadowRoot?gt.host:gt,jt=Ue()instanceof HTMLElement&&Ue().contains(oi);return e.uiConfig.allowChangingFullscreenTarget&&Ue()&&jt?Ue():ve},po=()=>{di.set(!1)},je=()=>{os(),po()},kt=async()=>{if(!Nn()){qt({message:"fullscreen disabled"});return}po(),aa()?(await Wu(document),qt({message:"exit fullscreen"})):(qt({message:"request fullscreen"}),await zu(uo()))},ci=ve=>{_()||(ve.preventDefault(),di.set(!0),hr.set({left:ve.clientX,top:ve.clientY}))};function Io(){Bn.set(!0),Si||io(e.uiConfig.controls.hideTimeoutCursor)}function Eo(ve){var Ao,no;let{relatedTarget:gt}=ve,jt=!!(gt&&((Ao=n(Bo))!=null&&Ao.contains(gt)))&&((no=Tt())==null?void 0:no.isFocused()),Qo=e.uiConfig.controls.showOnStartupAtAutoplay||!!gt;!Si&&!jt&&Qo&&(or.set(!0),io(e.uiConfig.controls.hideTimeoutCursor))}function $o(){Bn.set(!1),N(So,!1),N(co,!1),sn=!1,e.store.actions.internal.releaseCamera(),io(e.uiConfig.controls.hideTimeout),q()&&Ko()}function fo(ve){return ve?ve.offsetTop+fo(ve.offsetParent):0}function Po(ve){return ve?ve.offsetLeft+Po(ve.offsetParent):0}function rr(ve){if(j()&&is){let gt=ve.currentTarget,oi=fo(gt),jt=Po(gt),Qo=ve.pageX-jt,Ao=ve.pageY-oi,{left:no,bottom:an,right:Ts}=j(),Is=Ts-no;return Qo>=no-Is&&Ao<=an+Is}}function sr(ve){if(n(Pi)){let gt=fo(ve.currentTarget),oi=te().height,jt=ve.pageY-gt;if(rr(ve)){N(So,!1);return}jt<40?N(So,!0):jt>oi-40?N(co,!0):(N(So,!1),m()||N(co,!1))}}function Wo(ve){sr(ve),!n(nr)&&!q()&&io(e.uiConfig.controls.hideTimeoutCursor),ee()&&sn&&yn&&e.store.actions.internal.moveCameraFocusPX(yn.clientX-ve.clientX,yn.clientY-ve.clientY,ve.timeStamp-yn.timeStamp),yn=ve}let Di=null,zn=()=>{Di=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Or()},e.uiConfig.doubleForwardActivationTime)},Ko=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Di&&clearTimeout(Di),Di=null},xr=ve=>{ve.preventDefault(),ve.button===0&&(sn=!0,e.store.actions.internal.holdCamera(),oe()&&zn()),!sn&&io(e.uiConfig.controls.hideTimeoutCursor)},Ze=ve=>{ve.preventDefault(),ve.button===0&&(yn=ve,sn=!1,e.store.actions.internal.releaseCamera()),!q()&&io(e.uiConfig.controls.hideTimeoutCursor)},Qt=ve=>{ve.preventDefault(),$n&&(qt({message:"double click on video"}),kt(),io(e.uiConfig.controls.hideTimeoutCursor))},Ai=ve=>{var gt;if(ve.preventDefault(),q()){Ko();return}if(Di&&Ko(),ae()||m()){je();return}if(!(D()&&!yi)){if(n(Fn))return yr();if((gt=Tt())==null||gt.focus(),!Ye()){e.firstStart(),io(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||le()!==og.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),io(e.uiConfig.controls.hideTimeoutCursor)}},xn=ve=>{je(),xo.set(!0),io(e.uiConfig.controls.hideTimeout),ve&&cs(e.uiConfig.controls.hideHotKeyHelpers,ve)},oo=()=>{var ve,gt;v()||(je(),(ve=e.store.callbacks)!=null&&ve.onOpenHotKeyMap?(gt=e.store.callbacks)==null||gt.onOpenHotKeyMap(ce()):Oo.update(oi=>!oi))},Fr=()=>{xo.set(!0)},qo=e.store.ui.contextMenu.openedByBtnKeyboard$,wr=e.store.ui.contextMenu.btnRef$,Sr=K(void 0),xs=e.store.ui.contextMenu.openedByHotKey$,ws=e.store.ui.contextMenu.lastActiveElem$,Wn=K(!1),ba=e.store.ui.previewTrackActive;Fe(()=>{ts.set(n(On))}),Fe(()=>{N(Hn,n(Mi)&&le()!==og.PlaybackState.PLAYING,!0),n(Mi)||Pt(()=>N(Mi,!0))}),Fe(()=>{var gt,oi;let ve=(n(Hn)||D()||m()||X()||_e()||Ee()||de()||n(Wn))&&!n(nr)&&(a()==="video"||a()==="ads"&&(e.uiConfig.controls.showOnStartupAtAutoplay||ze()!=="inactive"))&&!s()&&V();Ui.set(ve),!ve&&!de()&&((gt=n(Bo))!=null&&gt.contains(Ju()))&&((oi=Tt())==null||oi.focus())}),Fe(()=>{!X()&&n(bo)&&!u()&&io(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>N(bo,X(),!0))}),Fe(()=>{n(er),m(),ue(),Pt(()=>rc(n(er),m(),ue()))}),Fe(()=>{n(Sr),ae(),pe(),Z(),Pt(()=>{let ve=pe()||Z();rc(n(Sr),ae(),ve)})}),Fe(()=>{let ve=B();ve&&(ae(),Pt(()=>Gl(ve,ae(),qo)))}),Fe(()=>{let ve=fe();ve&&(ae(),Pt(()=>ob(ve,ae(),xs)))}),Fe(()=>{var ve;!me()&&x()&&(Pt(()=>li.set(!1)),(ve=Tt())==null||ve.focus())}),Fe(()=>{_()&&je()});let us=K(void 0),$a=ve=>{ns.set(jn(Dn(),{title:n(us)},"title",ve))},ya=(ve,gt)=>{var Ao,no;let oi=(no=(Ao=e.store.callbacks)==null?void 0:Ao.uiInfo)==null?void 0:no.onUpcomingLiveViewStateChanged;if(!oi)return;let jt=!!gt,Qo={...jn(n(Pi),{upcomingLiveScreen:gt},"upcomingLiveScreen",jt),...ve};oi(Qo)},vt="",ii=f(()=>{var ve;return n(Ut)?vt:(ve=e.getVideoDeeplink)==null?void 0:ve.call(e,Ie())});Fe(()=>{vt=n(ii)});var Ti=BC();_t("blur",Ma,je);var bi=se(Ti);bi.__mousemove=Wo;var Cr=C(bi);let Ss=f(()=>a()==="ads"),Cs=f(()=>n(Fn)?yr:void 0);tt(gm(Cr,{startDoubleForwardActivationTimer:zn,stopDoubleForward:Ko,toggleFullscreen:kt,hideContextMenu:je,showHotKeyHelpers:xn,showKeyMap:oo,get isAds(){return n(Ss)},get fakePlayButtonHandler(){return n(Cs)},get hasNextVideo(){return Y()},get hasPrevVideo(){return Ne()},children:(ve,gt)=>{var oi=NC(),jt=se(oi);ul(jt,{get hideCursor(){return n(zo)},onClick:Ai,onContextMenu:ci,onMouseDown:xr,onMouseUp:Ze,onDblClick:Qt,get videoContainer(){return lt()},set videoContainer(no){lt(no)}});var Qo=P(jt,2);Ba(Qo,()=>"slot",!1,(no,an)=>{so(no,()=>({name:cl}))});var Ao=P(Qo,2);Ms(Ao,ot,no=>{var an=DC(),Ts=se(an);let Is=f(()=>a()!=="thumb"||s()||Si&&e.autoplay);al(Ts,{get hidden(){return n(Is)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:ci,onClick:po});var Qs=P(Ts,2);{var zr=qe=>{ig(qe,{})};M(Qs,qe=>{Me()&&qe(zr)})}var Gs=P(Qs,2);eg(Gs,{});var wn=P(Gs,2);tg(wn,{get isVisible(){return q()}});var xa=P(wn,2);{var ml=qe=>{let gi=f(()=>{var Yo;return(Yo=e.live)==null?void 0:Yo.startTime});Rc(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(gi)},onUpcomingLiveViewStateChanged:ya,onContextMenu:ci,onClick:po})};M(xa,qe=>{a()==="LiveWaitingStart"&&qe(ml)})}var Tr=P(xa,2);{var md=qe=>{ll(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:ci,onClick:po})};M(Tr,qe=>{a()==="LiveWaitingRecover"&&qe(md)})}var vl=P(Tr,2);{var gl=qe=>{ll(qe,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:ci,onClick:po})};M(vl,qe=>{a()==="LiveWaitingRecord"&&qe(gl)})}var hl=P(vl,2);{var vd=qe=>{var gi=LC();let Yo;var Sn=C(gi);ec(Sn,{get adsSlotId(){return ri()},get adsParams(){return St()},get adsAutoplayParam(){return Rt()},get duration(){return Dt()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(gi),O(Cn=>Yo=ie(gi,1,"ads-container s-8",null,Yo,Cn),[()=>({hidden:a()!=="ads"})]),$(qe,gi)};M(hl,qe=>{e.showAds&&Ye()&&qe(vd)})}var wa=P(hl,2);{var _l=qe=>{let gi=f(()=>!Nt()&&e.showAutoplayNext&&I());fm(qe,{get title(){return $e()},get thumb(){return Oe()},get isHide(){return n(gi)},clickCloseIcon:()=>N(Co,!0)})};M(wa,qe=>{n(Fo)&&$e()&&Oe()&&qe(_l)})}var ht=P(wa,2);{var ct=qe=>{let gi=f(()=>x()?"md":"sm"),Yo=f(()=>{var Sn;return(Sn=e.store.callbacks)==null?void 0:Sn.onTitleClicked});Iv(qe,{get title(){return e.title},get isHidden(){return n(Ut)},onVisibilityChanged:$a,get titleLinkHref(){return n(ii)},onMouseEnter:()=>{N(Wn,!0)},onMouseLeave:()=>{N(Wn,!1)},get size(){return n(gi)},get onTitleClicked(){return n(Yo)},get ref(){return n(us)},set ref(Sn){N(us,Sn,!0)}})};M(ht,qe=>{n(Jt)&&qe(ct)})}var Vi=P(ht,2);{var Go=qe=>{let gi=f(()=>a()==="video"&&b());Mc(qe,{get isShifted(){return n(gi)}})};M(Vi,qe=>{ee()&&qe(Go)})}var Ki=P(Vi,2);{var $i=qe=>{var gi=MC(),Yo=C(gi);Zd(Yo,{}),S(gi),$(qe,gi)};M(Ki,qe=>{be()&&qe($i)})}var Oi=P(Ki,2);{var Sa=qe=>{Vc(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return W()},onClick:Ai,onContextMenu:ci,onDblClick:Qt})};M(Oi,qe=>{Ee()&&qe(Sa)})}var bl=P(Oi,2);{var Dp=qe=>{rl(qe,{get shifted(){return b()},get captions(){return Ce()},get position(){return ke()},get playerSize(){return te()}})};M(bl,qe=>{n(Uo)&&qe(Dp)})}var Zc=P(bl,2);{var Np=qe=>{var gi=VC();gi.__contextmenu=ci,gi.__click=[kC,ae,di,m,bt,je];var Yo=C(gi);sl(Yo,{}),S(gi),$(qe,gi)};M(Zc,qe=>{s()&&qe(Np)})}var Jc=P(Zc,2);{var Op=qe=>{let gi=f(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Yo=f(()=>a()==="ads"),Sn=f(()=>e.canRewindLive&&Qe()!==0);kc(qe,{get bottomHidden(){return n(gi)},get bottomNoSmooth(){return z()},get showControls(){return b()},get isAds(){return n(Yo)},get canRewindLive(){return n(Sn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Wt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Le()},get nextButtonActive(){return Y()},get prevButtonActive(){return Ne()},get isOneVideoPlaylist(){return mt()},customFullscreenSupported:$n,toggleFullscreen:kt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(ss)},set playerControlsWrapperRef(Cn){N(ss,Cn,!0)},get playerControlsRef(){return n(Bo)},set playerControlsRef(Cn){N(Bo,Cn,!0)}})};M(Jc,qe=>{Ye()&&qe(Op)})}var eu=P(Jc,2);{var Bp=qe=>{var gi=RC(),Yo=C(gi);let Sn=f(()=>{var Cn;return(Cn=n(Bo))==null?void 0:Cn.clientHeight});Bc(Yo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(Sn)},returnFocus:()=>{var Cn;return(Cn=Tt())==null?void 0:Cn.focus()},get ref(){return n(er)},set ref(Cn){N(er,Cn,!0)}}),S(gi),$(qe,gi)};M(eu,qe=>{!Ee()&&a()!=="ads"&&qe(Bp)})}var tu=P(eu,2);let $l=f(()=>!n(Nr));oc(tu,{get isLive(){return Te()},get isHidden(){return n($l)},get isPlaying(){return we()},get position(){return ke()},get duration(){return Qe()}});var iu=P(tu,2);Cv(iu,{get data(){return bn}});var Ys=P(iu,2);um(Ys,{get supportLink(){return e.supportLink},returnFocus:()=>{var qe;return(qe=Tt())==null?void 0:qe.focus()},get visible(){return ae()},get playerContainerRef(){return n(Pi)},get position(){return He()},get menuElementRef(){return n(Sr)},set menuElementRef(qe){N(Sr,qe,!0)}});var Ca=P(Ys,2);{var Hp=qe=>{Hc(qe,{onClose:ir,onSelectAutoQuality:()=>{_n("auto"),ir()}})};M(Ca,qe=>{n(as)&&qe(Hp)})}var gd=P(Ca,2);{var hd=qe=>{Qa(qe,{})};M(gd,qe=>{n(rn)&&qe(hd)})}var _d=P(gd,2);{var Fp=qe=>{bm(qe,{})};M(_d,qe=>{st()&&qe(Fp)})}var ou=P(_d,2);{var Up=qe=>{ac(qe,{})};M(ou,qe=>{ut()&&qe(Up)})}$(no,an)}),$(ve,oi)},$$slots:{default:!0}}),ve=>Tt(ve),()=>Tt());var Ur=P(Cr,2);tt(Ur,ve=>N(On,ve),()=>n(On)),S(bi),tt(bi,ve=>N(Pi,ve),()=>n(Pi));var Ni=P(bi,2);{var Wi=ve=>{var gt=OC();$(ve,gt)};M(Ni,ve=>{It()&&ve(Wi)})}_t("mouseenter",bi,Io),_t("mouseleave",bi,$o),_t("click",bi,Fr,!0),_t("focusin",bi,Eo,!0),$(t,Ti),F(),o()}et(["mousemove","contextmenu","click"]);var ha=require("@vkontakte/videoplayer-core/es2018"),f$=require("@vkontakte/videoplayer-shared/es2018");var FC=k('<div></div> <div class="info s-k"><div class="triangles-wrapper s-k"><div></div> <div></div> <div></div></div> <p class="step-caption s-k"> </p></div>',1),UC=k("<div><!></div>"),zC={hash:"s-k",code:".double-click-area.s-k{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-k{left:0}.double-click-area.right.s-k{right:0}.semicircle.s-k{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-k{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-k{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-k{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-k,.triangles-wrapper.s-k{display:flex;justify-content:center}.triangles-wrapper.s-k{margin-bottom:10px;position:relative}.triangle.s-k{animation:s-k-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-k:nth-child(3),.triangle.right.s-k:first-child{animation-delay:0s}.triangle.left.s-k:nth-child(2),.triangle.right.s-k:nth-child(2){animation-delay:.1s}.triangle.left.s-k:first-child,.triangle.right.s-k:nth-child(3){animation-delay:.2s}@keyframes s-k-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-k{border-right:8px solid var(--white)}.triangle.right.s-k{border-left:8px solid var(--white)}.triangle.s-k:not(:last-child){margin-right:5px}.step-caption.s-k{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function wp(t,e){H(e,!0),Q(t,zC);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(ni(i())),d=p=>{p.stopPropagation(),a+=1,N(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,N(o,!1)},300)};cn(()=>{window.clearTimeout(r)});var s=UC();s.__click=d;var u=C(s);{var m=p=>{var v=FC(),b=se(v),y=P(b,2),_=C(y),x=C(_),I=P(x,2),T=P(I,2);S(_);var D=P(_,2),A=C(D,!0);S(D),S(y),O(E=>{var V,q,L,z;ie(b,1,`semicircle ${(V=e.side)!=null?V:""}`,"s-k"),ie(x,1,`triangle ${(q=e.side)!=null?q:""}`,"s-k"),ie(I,1,`triangle ${(L=e.side)!=null?L:""}`,"s-k"),ie(T,1,`triangle ${(z=e.side)!=null?z:""}`,"s-k"),ge(A,E)},[()=>G("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),$(p,v)};M(u,p=>{n(o)&&p(m)})}S(s),O(()=>{var p;return ie(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-k")}),$(t,s),F()}et(["click"]);var WC=(t,e,i)=>{e(!1),i()},KC=k('<div class="overlay s-o"></div> <div class="next-video s-o"><div class="top s-o"><div class="caption s-o"> </div> <!></div> <div class="row s-o"><div class="column s-o"><div class="thumb s-o"><div></div> <!></div></div> <div class="column s-o"><div class="title s-o"> </div></div></div></div>',1),qC={hash:"s-o",code:".overlay.s-o{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-o{display:flex;flex-direction:column;left:50%;margin:0 auto;max-width:362px;min-width:320px;padding-bottom:12px;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:var(--end-screen-mobile-z-index)}.top.s-o{display:flex;justify-content:space-between}.caption.s-o{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-o{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-o{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-o{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-o,.thumb-overlay.s-o{height:100%;width:100%}.thumb-overlay.s-o{position:absolute}.thumb-overlay.withOpacity.s-o{background:var(--black);opacity:.3}.title.s-o{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function rg(t,e){H(e,!0),Q(t,qC);let[i,o]=Be(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=ye(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},_=()=>{e.clickCloseIcon(),b()};Lt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Re(),I=se(x);{var T=D=>{var A=KC(),E=P(se(A),2),V=C(E),q=C(V),L=C(q,!0);S(q);var z=P(q,2);Os(z,{onClick:_}),S(V);var j=P(V,2);j.__click=[WC,u,p];var te=C(j),ee=C(te),oe=C(ee);let ae;var le=P(oe,2);{var ce=de=>{lc(de,{get isRunning(){return a()},onTimerEnded:y})};M(le,de=>{r()&&de(ce)})}S(ee),S(te);var X=P(te,2),_e=C(X),Ee=C(_e,!0);S(_e),S(X),S(j),S(E),O((de,ze)=>{ge(L,de),Ke(ee,`background-image: url('${e.thumb}')`),ae=ie(oe,1,"thumb-overlay s-o",null,ae,ze),ge(Ee,e.title)},[()=>r()?G("end_screen_next_video"):G("end_screen_recommended_video"),()=>({withOpacity:r()})]),$(D,A)};M(I,D=>{e.isHide||D(T)})}$(t,x),F(),o()}et(["click"]);var l$=require("@vkontakte/videoplayer-core/es2018");var d$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Lt(()=>{l$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),cn(()=>{i==null||i(),clearTimeout(o)})};var c$=require("@vkontakte/videoplayer-core/es2018");var Sp=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 u$=require("@vkontakte/videoplayer-core/es2018"),p$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),m=()=>u$.clientChecker.device.isIOS&&he(l)===c$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=b=>{if(p(),!m()||!b)return;let y=u();if(!y)return;let _=new Sp(y),x=he(d),I=he(a),T=he(r);for(let E of x)I.some(q=>q.value===E.id)&&_.attach(E,T.value===E.id);let D=d.subscribe(E=>{for(let V of E)_.updateSrc(V)}),A=()=>{let E=_.getCurrentShowingId();o(he(a).find(V=>V.value===E))};y.textTracks.addEventListener("change",A),s=()=>{D(),_.detachAll(),y.textTracks.removeEventListener("change",A)}};Lt(()=>i.subscribe(v)),cn(p)};var QC=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},GC=k("<!> <!>",1),YC=k("<div><!></div>"),jC=k('<div class="spherical-video-icon s-9"><!></div>'),XC=k("<div><!></div>"),ZC=k('<div class="settings-mobile s-9"><!></div>'),JC=k("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),eT=k('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),tT={hash:"s-9",code:".player-wrapper.s-9{height:100%;position:absolute;width:100%}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-9{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function sg(t,e){var $n,Nr;H(e,!0),Q(t,tT);let[i,o]=Be(),r=()=>w(Oe,"$playerPhase",i),a=()=>w(hi,"$isLoaderVisible",i),l=()=>w(Y,"$adPlaybackState",i),d=()=>w(Ui,"$crashed",i),s=()=>w(ys,"$notificationsToShow$",i),u=()=>w(Le,"$playbackState$",i),m=()=>w(Rt,"$graphIsOpened$",i),p=()=>w(Ye,"$interactiveHideMobileControls",i),v=()=>w(mi,"$isEnded$",i),b=()=>w(vi,"$isInteractiveExpectation$",i),y=()=>w(Et,"$controlsVisible",i),_=()=>w(_i,"$touched",i),x=()=>w(Ct,"$autoplayNextEnabled$",i),I=()=>w(ai,"$postrollPassed",i),T=()=>w(_n,"$bottomNoSmooth",i),D=()=>w(nt,"$videoSize",i),A=()=>w(to,"$playerSize",i),E=()=>w(mt,"$isFullscreen",i),V=()=>w(Ne,"$position$",i),q=()=>w($e,"$duration$",i),L=()=>w(_o,"$loadedMetadata",i),z=()=>w(Ue,"$settingsMenuVisible",i),j=()=>w(Nt,"$scrubbingInProgress",i),te=()=>w(Tt,"$volumeChangingInProgress",i),ee=()=>w(ki,"$chromecastConnected$",i),oe=()=>w(Se,"$isControlsAvailable",i),ae=()=>w(Yt,"$isInteractiveTime$",i),le=()=>w(Li,"$isActiveLive",i),ce=()=>w(xe,"$settingsMenuOpenedByKeyboard",i),X=()=>w(Wt,"$language$",i),_e=()=>w(si,"$disabledControls$",i),Ee=()=>w(fn,"$is3DVideo",i),de=()=>w(U,"$icon3DVideoVisible",i),ze=()=>w(Ji,"$chromecastDeviceName$",i),ue=()=>w(pt,"$currentSubtitle$",i),pe=()=>w(di,"$currentSubtitleCaptions$",i),Z=()=>w(zi,"$realDuration$",i),B=()=>w(wi,"$isLive$",i),fe=()=>w(eo,"$isPlaying$",i),me=()=>w(qt,"$debugPanelVisible",i),Ie=g(e,"videoContainer",15),ot=g(e,"adsSlotId",3,void 0),Me=g(e,"adsParams",3,void 0),be=g(e,"adsAutoplayParam",3,void 0),W=g(e,"duration",3,void 0),Ce=g(e,"logoTargetUrl",3,""),ke=g(e,"showNextPrevButtons",3,!1),Qe=g(e,"nextButtonActive",3,!1),Te=g(e,"prevButtonActive",3,!1),we=g(e,"endScreenVideoTitle",3,void 0),He=g(e,"endScreenVideoThumb",3,void 0),st=g(e,"isOneVideoPlaylist",3,!1),ut=g(e,"showMiniTimer",3,!1),It=g(e,"fullScreenTarget",3,void 0),lt=g(e,"playerStarted",3,!1),ri=g(e,"showEndScreen",3,!0),{notifications$:St,graphIsOpened$:Rt}=yo(),Dt=e.store.getLogger().createComponentLog("Root component"),Wt=e.store.interfaceLanguage$,Le=e.store.state.playbackState$,Y=e.store.ads.playbackState,Ne=e.store.state.positionWithScrubbing$,$e=e.store.state.duration$,Oe=e.store.playerPhase,mt=e.store.ui.isFullscreen,Et=e.store.ui.controlsVisible,Se=e.store.ui.isControlsAvailable,Ye=e.store.ui.interactiveHideMobileControls,Ue=e.store.ui.settingsMenu.visible$,xe=e.store.ui.settingsMenu.openedByBtnKeyboard$,Nt=e.store.ui.scrubbingInProgress,Tt=e.store.ui.volumeChangingInProgress,qt=e.store.ui.debugPanelVisible,hi=e.store.state.isLoaderVisible,mi=e.store.state.isEnded$,ki=e.store.state.chromecastConnected$,Ji=e.store.state.chromecastDeviceName$,ai=e.store.ads.postrollPassed,wi=e.store.state.isLive$,eo=e.store.state.isPlaying$,Li=e.store.state.isActiveLive$,li=e.store.state.isRewindableLive$,Ui=e.store.state.crashed$,bt=e.store.webApi.annotationsApi,We=e.store.webApi.pictureInPictureApi,nt=e.store.state.videoSize$,pt=e.store.state.currentSubtitle$,di=e.store.state.currentSubtitleCaptions$,zi=e.store.state.duration$,to=e.store.ui.playerSize,fn=e.store.ui.is3DVideo,U=e.store.ui.icon3DVideoVisible,it=e.store.state.isInteractive,Yt=e.store.state.isInteractiveTime$,vi=e.store.state.isInteractiveExpectation$,at=e.store.state.hasInteractiveBranches,si=e.store.ui.controls.disabledControls$,_i=e.store.ui.touched,Gt=e.store.ui.overlayContainer$,Ct=e.store.ui.autoplayNextEnabled$,_o=e.store.state.loadedMetadata$,Do=e.store.actions.internal.closeSettingsMenu,mn=($n=e.store.callbacks)==null?void 0:$n.onDisabledPlayPrevChapterClick,vn=(Nr=e.store.callbacks)==null?void 0:Nr.onDisabledSeekToInteractiveClick,Ei=e.store.actions.internal.setQuality,Si=K(void 0),gn=K(void 0),gr=K(void 0),yi=K(void 0),xo,No,Oo=f(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),hn=K(void 0),{closeNotification:ts,notificationsToShow$:ys}=St,is=f(()=>!!s().slow_video),hr=()=>ts("slow_video"),_n=re(!1),os,Zn=K(!1),Vr=f(()=>u()!==ha.PlaybackState.PLAYING),wo=K(!1),ns=f(()=>m()||p()||!n(Zn)&&(v()&&!!at||n(Vr)&&b())),_r=K(!0),Rn=f(()=>e.uiConfig.features.thumbTimer&&ut()&&r()==="video"&&!y()&&!d()&&!it&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Dn=K(!1),Nn=f(()=>(ri()||e.showAutoplayNext&&x())&&!!we()&&!!He()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(Dn)),Jn=K(!1);We==null||We.setContext(Sd());let Rr=$t=>{$t&&!it&&e.uiConfig.controls.showOnStartupAtAutoplay&&Pi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Rr});let rs=()=>{clearTimeout(xo),N(Zn,!1),p()&&Ye.set(!1)},Pi=$t=>{rs(),N(Zn,!0),xo=setTimeout(()=>N(Zn,!1),$t);let Jt=$t-100;os=setTimeout(()=>{T()&&_n.set(!1)},Jt>0?Jt:$t)},ss=fn.subscribe($t=>{U.set($t),$t&&(clearTimeout(No),No=setTimeout(()=>U.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Bo=async($t=aa())=>{var Jt,Ut,Co,Fo,Uo,zo;if($t&&!ha.clientChecker.device.isIOS){let bo=Jd(),Fn=$r(),yr=ha.clientChecker.browser.isSamsungBrowser&&bo===e.shadowRootContainer;$t=bo===Fn||yr}if($t){Pi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(We==null?void 0:We.exit())}catch(bo){Dt({message:String(bo)})}try{let bo=(Jt=D())!=null&&Jt.width&&((Ut=D())!=null&&Ut.height)?D():A();await X_(bo)}catch(bo){Dt({message:String(bo)})}}mt.set($t),e.store.getAdmanWrapper().setFullscreen($t),E()?(Fo=(Co=e.store.callbacks)==null?void 0:Co.onFullscreenEnter)==null||Fo.call(Co):(zo=(Uo=e.store.callbacks)==null?void 0:Uo.onFullscreenExit)==null||zo.call(Uo)},er=$t=>{to.set($t)},br=()=>{if(n(Si)){let{width:$t,height:Jt}=n(Si).getBoundingClientRect();to.set({width:$t,height:Jt})}};Lt(()=>{var $t;return Ku(Bo),e.uiConfig.features.annotationsInside&&(bt==null||bt.init(n(Si))),We==null||We.assignPlayerContainer(n(Si)),e.uiConfig.disablePiPResizeHandling||We==null||We.setExternalEventHandlers({resize:er,leavepictureinpicture:br}),N(_r,!ha.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&(($t=Ie().parentElement)==null||$t.insertBefore(e.interactiveContainer,Ie().nextSibling)),()=>{clearTimeout(xo),clearTimeout(os),clearTimeout(No),ss(),We==null||We.dispose().catch(Jt=>{Dt({message:String(Jt)})}),qu(Bo)}});let tr=K(!0),ft=K(!0),Zt=$t=>{let Jt=V()+($t==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Jt<0?(N(tr,!1),Jt=0):Jt>=q()&&(N(ft,!1),Jt=q()),N(wo,!0),e.seekTime(Jt)},$r=()=>ha.clientChecker.device.isIOS?n(Si):!e.uiConfig.allowChangingFullscreenTarget||!It()?e.outerContainerRef:It().contains(e.outerContainerRef)?It():e.outerContainerRef,as=async()=>{try{if(aa())await Wu(document),Dt({message:"exit fullscreen"});else{if(Dt({message:"request fullscreen"}),ha.clientChecker.device.isIOS&&!L())return;await zu($r())}}catch($t){Dt({message:String($t)})}},ir=()=>{Do()},rn=$t=>{if($t.preventDefault(),z()){ir();return}if(!lt()){e.firstStart(),Pi(e.uiConfig.controls.hideTimeoutCursor);return}N(wo,!1),y()?rs():Pi(e.uiConfig.controls.hideTimeoutMobile)},On=()=>{_i.set(!0)},or=()=>{it||(_n.set(!0),Pi(e.uiConfig.controls.hideTimeoutCursor))},Dr=$t=>{mn&&(mn($t),Pi(e.uiConfig.controls.hideTimeoutMobile))},Ho=$t=>{vn&&(vn($t),Pi(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{Gt.set(n(hn))}),Fe(()=>{Et.set((n(Vr)||z()||j()||te()||ee()||!n(Nn)&&(v()||n(Zn)&&!n(wo)))&&!n(ns)&&r()==="video"&&!d()&&oe())}),Fe(()=>{!j()&&n(Jn)&&!ae()&&Pi(e.uiConfig.controls.hideTimeoutMobile),N(Jn,j(),!0)}),Fe(()=>{N(tr,V()>0),N(ft,!le()&&V()<q(),!0)}),Fe(()=>{rc(n(yi),z(),ce(),!0)});let bn=G("aria_label_video_player");d$({fullScreenChangeHandler:Bo,getFullscreenTarget:$r}),p$({store:e.store,getFullscreenTarget:$r});let Bn=($t,Jt)=>{var Uo,zo;let Ut=(zo=(Uo=e.store.callbacks)==null?void 0:Uo.uiInfo)==null?void 0:zo.onUpcomingLiveViewStateChanged;if(!Ut)return;let Co=!!Jt,Fo={...jn(n(Si),{upcomingLiveScreen:Jt},"upcomingLiveScreen",Co),...$t};Ut(Fo)};var co=eT();_t("blur",Ma,ir);var So=C(co);ul(So,{onClick:rn,get videoContainer(){return Ie()},set videoContainer($t){Ie($t)}});var Hn=P(So,2);Ba(Hn,()=>"slot",!1,($t,Jt)=>{so($t,()=>({name:cl}))});var Mi=P(Hn,2);Ms(Mi,X,$t=>{var Jt=JC(),Ut=se(Jt);let Co=f(()=>r()!=="thumb"||d()||it&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);al(Ut,{get hidden(){return n(Co)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Fo=P(Ut,2);{var Uo=Ze=>{var Qt=GC(),Ai=se(Qt);{var xn=qo=>{let wr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);wp(qo,{side:"left",get seekStep(){return n(wr)},handleSingleFirstClick:rn,handleSecondClick:()=>Zt("backward")})};M(Ai,qo=>{n(tr)&&qo(xn)})}var oo=P(Ai,2);{var Fr=qo=>{let wr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);wp(qo,{side:"right",get seekStep(){return n(wr)},handleSingleFirstClick:rn,handleSecondClick:()=>Zt("forward")})};M(oo,qo=>{n(ft)&&qo(Fr)})}$(Ze,Qt)};M(Fo,Ze=>{e.canRewindLive&&li&&!_e().has("TIMELINE")&&Ze(Uo)})}var zo=P(Fo,2);{var bo=Ze=>{let Qt=f(()=>{var Ai;return(Ai=e.live)==null?void 0:Ai.startTime});Rc(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Qt)},onUpcomingLiveViewStateChanged:Bn})};M(zo,Ze=>{r()==="LiveWaitingStart"&&Ze(bo)})}var Fn=P(zo,2);{var yr=Ze=>{ll(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(Fn,Ze=>{r()==="LiveWaitingRecover"&&Ze(yr)})}var sn=P(Fn,2);{var yn=Ze=>{ll(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(sn,Ze=>{r()==="LiveWaitingRecord"&&Ze(yn)})}var ls=P(sn,2);{var Or=Ze=>{var Qt=YC();let Ai;var xn=C(Qt);ec(xn,{get adsSlotId(){return ot()},get adsParams(){return Me()},get adsAutoplayParam(){return be()},get duration(){return W()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(Qt),O(oo=>Ai=ie(Qt,1,"ads-container s-9",null,Ai,oo),[()=>({hidden:r()!=="ads"})]),$(Ze,Qt)};M(ls,Ze=>{e.showAds&&lt()&&Ze(Or)})}var ds=P(ls,2);{var io=Ze=>{let Qt=f(()=>!ri()&&e.showAutoplayNext&&x());rg(Ze,{get title(){return we()},get thumb(){return He()},get isHide(){return n(Qt)},clickCloseIcon:()=>N(Dn,!0)})};M(ds,Ze=>{n(Nn)&&we()&&He()&&Ze(io)})}var cs=P(ds,2);{var Br=Ze=>{Mc(Ze,{})};M(cs,Ze=>{Ee()&&Ze(Br)})}var To=P(cs,2);{var Hr=Ze=>{var Qt=jC(),Ai=C(Qt);Zd(Ai,{}),S(Qt),$(Ze,Qt)};M(To,Ze=>{de()&&Ze(Hr)})}var Un=P(To,2);{var uo=Ze=>{Vc(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ze()},onClick:rn})};M(Un,Ze=>{ee()&&Ze(uo)})}var po=P(Un,2);{var je=Ze=>{rl(Ze,{get shifted(){return y()},get captions(){return pe()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};M(po,Ze=>{ue().value!=="off"&&Ze(je)})}var kt=P(po,2);{var ci=Ze=>{var Qt=XC();Qt.__click=[QC,z,Ue,ir];var Ai=C(Qt);sl(Ai,{}),S(Qt),$(Ze,Qt)};M(kt,Ze=>{d()&&Ze(ci)})}var Io=P(kt,2);{var Eo=Ze=>{let Qt=f(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Ai=f(()=>r()==="ads"),xn=f(()=>e.canRewindLive&&Z()!==0);kc(Ze,{get bottomHidden(){return n(Qt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(Ai)},get canRewindLive(){return n(xn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ce()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ke()},get nextButtonActive(){return Qe()},get prevButtonActive(){return Te()},get isOneVideoPlaylist(){return st()},get customFullscreenSupported(){return n(_r)},get endScreenShown(){return n(Nn)},toggleFullscreen:as,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Dr,onDisabledSeekToInteractiveClick:Ho,get playerControlsWrapperRef(){return n(gn)},set playerControlsWrapperRef(oo){N(gn,oo,!0)},get playerControlsRef(){return n(gr)},set playerControlsRef(oo){N(gr,oo,!0)}})};M(Io,Ze=>{lt()&&Ze(Eo)})}var $o=P(Io,2);{var fo=Ze=>{var Qt=ZC(),Ai=C(Qt);Bc(Ai,{get supportLink(){return e.supportLink},get returnFocus(){return f$.noop},get ref(){return n(yi)},set ref(xn){N(yi,xn,!0)}}),S(Qt),$(Ze,Qt)};M($o,Ze=>{z()&&Ze(fo)})}var Po=P($o,2);let rr=f(()=>!n(Rn));oc(Po,{get isLive(){return B()},get isHidden(){return n(rr)},get isPlaying(){return fe()},get position(){return V()},get duration(){return q()}});var sr=P(Po,2);{var Wo=Ze=>{Qa(Ze,{})};M(sr,Ze=>{n(Oo)&&Ze(Wo)})}var Di=P(sr,2);{var zn=Ze=>{ac(Ze,{})};M(Di,Ze=>{me()&&Ze(zn)})}var Ko=P(Di,2);{var xr=Ze=>{Hc(Ze,{onClose:hr,onSelectAutoQuality:()=>{Ei("auto"),hr()}})};M(Ko,Ze=>{n(is)&&Ze(xr)})}$($t,Jt)});var nr=P(Mi,2);tt(nr,$t=>N(hn,$t),()=>n(hn)),S(co),tt(co,$t=>N(Si,$t),()=>n(Si)),O(()=>De(co,"aria-label",bn)),_t("click",co,On,!0),_t("focusin",co,or,!0),$(t,co),F(),o()}et(["click"]);var m$=require("@vkontakte/videoplayer-shared/es2018");var iT=k('<div class="time-container s-7"><!></div>'),oT=k('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),nT={hash:"s-7",code:".player-wrapper.s-7{height:100%;position:absolute;width:100%}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-7{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-7{opacity:1}.time-container.s-7{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function ag(t,e){H(e,!0),Q(t,nT);let[i,o]=Be(),r=()=>w(ae,"$scrubbingInProgress",i),a=()=>w(ee,"$playerSize",i),l=()=>w(V,"$isPlaying$",i),d=()=>w(A,"$duration$",i),s=()=>w(z,"$positionWithScrubbing$",i),u=()=>w(T,"$playerPhase",i),m=()=>w(D,"$crashed$",i),p=()=>w(q,"$currentSubtitle$",i),v=()=>w(L,"$currentSubtitleCaptions$",i),b=()=>w(E,"$positionExact$",i),y=()=>w(j,"$isLive$",i),_=()=>w(te,"$isRewindableLive$",i),x=g(e,"outsideDuration",3,0),I=g(e,"videoContainer",15),{playerPhase:T,state:{crashed$:D,duration$:A,positionExact$:E,isPlaying$:V,currentSubtitle$:q,currentSubtitleCaptions$:L,positionWithScrubbing$:z,isLive$:j,isRewindableLive$:te},ui:{playerSize:ee,controls:oe,scrubbingInProgress:ae},actions:{internal:{getVideoElement:le}}}=ye(),ce=8,X=K(!1),_e=ni({}),Ee=K(!1),de=f(()=>!r()&&!n(Ee)),ze=()=>{N(X,!0)},ue=()=>{N(X,!1)},pe=(0,m$.debounceFn)(od,260);Fe(()=>{a(),pe(le(),oe,_e,n(X))});let Z=f(()=>l()?nn(d()-s()):nn(isFinite(d())?d():x()));var B=oT(),fe=C(B);ul(fe,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(we){I(we)}});var me=P(fe,2);Ba(me,()=>"slot",!1,(we,He)=>{so(we,()=>({name:cl}))});var Ie=P(me,2);let ot=f(()=>u()!=="thumb"||m());al(Ie,{get hidden(){return n(ot)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Me=P(Ie,2);{var be=we=>{rl(we,{shifted:!1,get captions(){return v()},get position(){return b()},get playerSize(){return a()}})};M(Me,we=>{p().value!=="off"&&n(de)&&we(be)})}var W=P(Me,2);{var Ce=we=>{var He=iT(),st=C(He);ic(st,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(Z)}}),S(He),$(we,He)};M(W,we=>{n(de)&&we(Ce)})}var ke=P(W,2);let Qe;var Te=C(ke);il(Te,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return _()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return _e.timeline},set ref(we){_e.timeline=we}}),S(ke),S(B),O(we=>Qe=ie(ke,1,"timeline s-7",null,Qe,we),[()=>({visible:n(X)})]),_t("mouseenter",B,ze),_t("mouseleave",B,ue),_t("mouseenter",ke,()=>N(Ee,!0)),_t("mouseleave",ke,()=>N(Ee,!1)),$(t,B),F(),o()}var rT=k("<div><!></div>"),sT={hash:"s-2",code:'.vk-vp-root.s-2{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.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;--controls-desktop-padding-horizontal-minimal-view:8px;--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,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-horizontal) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-2{overflow:visible}.vk-vp-root.s-2 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-2 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-2 p{margin:0}.vk-vp-root.s-2 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-2 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-2 :focus,.vk-vp-root.s-2 :focus-visible{outline:none}.vk-vp-root.s-2 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-2 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-2 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-2 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-2 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-2 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-2 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function lg(t,e){H(e,!0),Q(t,sT);let[i,o]=Be(),r=()=>w(lt,"$isLive$",i),a=()=>w(bt,"$availableSubtitlesList$",i),l=()=>w(We,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),m=g(e,"videoConfig",7),p=g(e,"uiConfig",7),v=g(e,"title",7),b=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),_=g(e,"interactiveController",7),x=g(e,"subtitles",7),I=g(e,"subtitlesForcedLanguage",7),T=g(e,"live",7),D=g(e,"preload",7),A=g(e,"autoplay",7),E=g(e,"volume",7,void 0),V=g(e,"muted",7,void 0),q=g(e,"fromTime",7),L=g(e,"canRewindLive",7),z=g(e,"showAds",7),j=g(e,"adsSlotId",7,void 0),te=g(e,"adsParams",7,void 0),ee=g(e,"adsAutoplayParam",7,void 0),oe=g(e,"duration",7,void 0),ae=g(e,"logoClickable",7),le=g(e,"logoHidden",7),ce=g(e,"isMobile",7),X=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),Ee=g(e,"prevButtonActive",7,!1),de=g(e,"endScreenVideoTitle",7,void 0),ze=g(e,"endScreenVideoThumb",7,void 0),ue=g(e,"isOneVideoPlaylist",7,!1),pe=g(e,"supportLink",7),Z=g(e,"shadowRootContainer",7),B=g(e,"outerContainerRef",7),fe=g(e,"fullScreenTarget",7,void 0),me=g(e,"failoverHosts",7,void 0),Ie=g(e,"showMiniTimer",7,!1),ot=g(e,"saveRate",7),Me=g(e,"seekToInteractive",7,pl.noop),be=g(e,"playPrevChapter",7,pl.noop),W=g(e,"volumeMultiplier",7),Ce=g(e,"showAutoplayNext",7),ke=g(e,"showEndScreen",7,!0),Qe=g(e,"keyboardControls",15,void 0),{subscribers:Te,stores:we}=u();a_(p());let He=Mt(),st=p().logoLink,ut=s().ui.debugPanelVisible,It=s().ui.playerSize,lt=s().state.isLive$,St=s().state.isInteractive&&ld.clientChecker.device.isAndroid,Rt=K(void 0),Dt=null,Wt=K(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),__(s(),we),Fe(()=>{var U,it;s().ui.isMobile.set(ce()),(it=(U=m().callbacks)==null?void 0:U.onDomReady)==null||it.call(U)});let Le=(U=!1)=>{N(Wt,!0),U?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},Y=()=>{if(He.features.qualityDetailsSubMenuEnabled){let U=F_(s().videoId);if(U)switch(U.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,U.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,U.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(U.quality);break}}else{U_(s().videoId),Gf()&&s().actions.internal.setTrafficSavingEnabled(!0);let it=Kf(s().videoId);it&&s().actions.internal.setQuality(it)}};function Ne(U){var si,_i,Gt;let it=d()||U;it&&s().initVideo({container:n(Rt),sources:it,failoverHosts:me(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:W()});let Yt=pl.safeStorage.get(qd)==="true";ut.set(Yt),q()>0&&s().actions.external.seekTime(q());let vi=ce()?He.volumeDefault:(_i=(si=E())!=null?si:Ou())!=null?_i:He.volumeDefault,at=(Gt=V())!=null?Gt:R_();if(s().actions.external.setVolume(vi),s().actions.external.setMuted(at),s().getAdmanWrapper().setInitialVolume(at?0:vi),Y(),He.features.saveRate&&ot()){let Ct=O_();Ct&&!r()&&s().actions.internal.setPlaybackRate(Ct)}if(Ce()){let Ct=H_();Ct&&s().actions.internal.setAutoplayNextEnabled(Ct)}s().ui.isAutoplay.set(A()),A()&&Le(),D()&&He.features.preload&&s().actions.internal.preload()}let $e=U=>{if(window.ResizeObserver){let it,Yt;Dt=new ResizeObserver((0,pl.throttleFn)(vi=>{let at=vi[0];if(at.contentBoxSize){let si=Array.isArray(at.contentBoxSize)?at.contentBoxSize[0]:at.contentBoxSize;it=si.inlineSize,Yt=si.blockSize}else at.contentRect&&(it=at.contentRect.width,Yt=at.contentRect.height);It.set({width:it,height:Yt})},300)),Dt.observe(U)}U.clientWidth&&U.clientHeight&&It.set({width:U.clientWidth,height:U.clientHeight})},Oe=()=>{document.hidden&&s().actions.external.stop()};Lt(()=>{var Yt,vi,at,si;St&&document.addEventListener("visibilitychange",Oe),He.debugLog&&s().actions.internal.startLogging(),$e(n(Rt));let U=Te.map(_i=>_i.init({store:s(),microStores:we,config:m(),interactiveController:_(),uiConfig:p()})),it=()=>{St&&document.removeEventListener("visibilitychange",Oe),Dt==null||Dt.disconnect(),U.forEach(_i=>_i.unsubscribe()),s().destroy()};return((Yt=T())==null?void 0:Yt.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),it):((vi=T())==null?void 0:vi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),it):(((at=T())==null?void 0:at.status)==="finished"||((si=T())==null?void 0:si.status)==="postlive")&&!(d()&&(0,ld.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),it):(Ne(),it)});function mt(){n(Wt)?s().actions.external.play():Le(!0)}function Et(){s().actions.external.pause()}function Se(U){s().actions.external.setMuted(U)}function Ye(){s().actions.external.toggleSubtitle()}function Ue(U,it){s().actions.external.changeSubtitle(U,it)}function xe(U){s().actions.external.changeAudioStream(U)}function Nt(){var U;(U=s().webApi.slotsApi)!=null&&U.haveSlots()&&s().actions.external.hideControls()}function Tt(){var U;(U=s().webApi.slotsApi)!=null&&U.haveSlots()&&s().actions.external.showControls()}function qt(U){ce()||U>=0&&U<=1&&s().actions.external.setVolume(U)}function hi(U){s().actions.internal.seekTime(U,v$.SeekAction.UNKNOWN)}function mi(U){s().actions.external.seekEpisodeStartTime(U)}function ki(){s().actions.external.returnFocusToEpisodes()}function Ji(U){s().actions.external.setPlaybackRate(U)}function ai(U){s().actions.external.setAutoQualityLimits(U)}function wi(){s().actions.external.setQuality("auto")}function eo(U){s().actions.external.setTrafficSavingEnabled(U)}function Li(U){s().actions.external.setHighQualityEnabled(U)}let li=lp(He.view),Ui=m().playerView==="preview",bt=s().state.availableSubtitlesList$;if(He.features.initSubtitles){let U=!1;Fe(()=>{var it;if(!U&&a().length){U=!0;let Yt;if(He.features.userVideoPrefs&&s().videoId){let at=Uu(He.userSalt,String(s().videoId));at!=null&&at.subtitleTrackId&&(Yt=a().find(si=>si.value===at.subtitleTrackId))}let vi=(it=I())!=null?it:jf();vi&&(Yt=a().find(at=>at.language===vi)),s().actions.internal.setSubtitle(Yt)}})}let We=s().ui.isPreviewTrackHorizontallyAligned;var nt=rT();let pt;var di=C(nt);{var zi=U=>{sg(U,{get store(){return s()},get uiConfig(){return He},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return L()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return te()},get adsAutoplayParam(){return ee()},get duration(){return oe()},get logoClickable(){return ae()},get logoHidden(){return le()},get logoTargetUrl(){return st},get nextButtonActive(){return _e()},get prevButtonActive(){return Ee()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return ze()},get isOneVideoPlaylist(){return ue()},get supportLink(){return pe()},get shadowRootContainer(){return Z()},get outerContainerRef(){return B()},get fullScreenTarget(){return fe()},get showMiniTimer(){return Ie()},get playerStarted(){return n(Wt)},get seekToInteractive(){return Me()},get playPrevChapter(){return be()},firstStart:Le,seekTime:hi,get showEndScreen(){return ke()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return X()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get videoContainer(){return n(Rt)},set videoContainer(it){N(Rt,it,!0)}})},to=U=>{var it=Re(),Yt=se(it);{var vi=si=>{ag(si,{get thumbUrl(){return b()},get outsideDuration(){return oe()},get canRewindLive(){return L()},get videoContainer(){return n(Rt)},set videoContainer(_i){N(Rt,_i,!0)}})},at=si=>{ng(si,{get store(){return s()},get uiConfig(){return He},get title(){return v()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return L()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return te()},get adsAutoplayParam(){return ee()},get duration(){return oe()},get logoClickable(){return ae()},get logoHidden(){return le()},get logoTargetUrl(){return st},get nextButtonActive(){return _e()},get prevButtonActive(){return Ee()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return ze()},get isOneVideoPlaylist(){return ue()},get supportLink(){return pe()},get shadowRootContainer(){return Z()},get outerContainerRef(){return B()},get fullScreenTarget(){return fe()},get showMiniTimer(){return Ie()},get playerStarted(){return n(Wt)},get seekToInteractive(){return Me()},get playPrevChapter(){return be()},firstStart:Le,get showEndScreen(){return ke()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return X()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Rt)},set videoContainer(_i){N(Rt,_i,!0)},get keyboardControls(){return Qe()},set keyboardControls(_i){Qe(_i)}})};M(Yt,si=>{Ui?si(vi):si(at,!1)})}$(U,it)};M(di,U=>{ce()?U(zi):U(to,!1)})}S(nt),O(U=>{pt=ie(nt,1,"vk-vp-root s-2",null,pt,U),Ke(nt,li)},[()=>({"root--miui-browser":ld.clientChecker.device.isMobile&&ld.clientChecker.browser.isMiuiBrowser,"visible-outside":Ui,"preview-track-horizontally-alinged":l()})]),$(t,nt);var fn=F({initVideo:Ne,play:mt,pause:Et,setMuted:Se,toggleSubtitle:Ye,changeSubtitle:Ue,changeAudioStream:xe,hideControls:Nt,showControls:Tt,setVolume:qt,seekTime:hi,seekEpisodeStartTime:mi,returnFocusToEpisodes:ki,setPlaybackRate:Ji,setAutoQualityLimits:ai,setAutoQuality:wi,toggleTrafficSaving:eo,toggleHighQuality:Li,get sources(){return d()},set sources(U){d(U)},get store(){return s()},set store(U){s(U)},get microStoresRoot(){return u()},set microStoresRoot(U){u(U)},get videoConfig(){return m()},set videoConfig(U){m(U)},get uiConfig(){return p()},set uiConfig(U){p(U)},get title(){return v()},set title(U){v(U)},get thumbUrl(){return b()},set thumbUrl(U){b(U)},get interactiveContainer(){return y()},set interactiveContainer(U){y(U)},get interactiveController(){return _()},set interactiveController(U){_(U)},get subtitles(){return x()},set subtitles(U){x(U)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(U){I(U)},get live(){return T()},set live(U){T(U)},get preload(){return D()},set preload(U){D(U)},get autoplay(){return A()},set autoplay(U){A(U)},get volume(){return E()},set volume(U){E(U)},get muted(){return V()},set muted(U){V(U)},get fromTime(){return q()},set fromTime(U){q(U)},get canRewindLive(){return L()},set canRewindLive(U){L(U)},get showAds(){return z()},set showAds(U){z(U)},get adsSlotId(){return j()},set adsSlotId(U){j(U)},get adsParams(){return te()},set adsParams(U){te(U)},get adsAutoplayParam(){return ee()},set adsAutoplayParam(U){ee(U)},get duration(){return oe()},set duration(U){oe(U)},get logoClickable(){return ae()},set logoClickable(U){ae(U)},get logoHidden(){return le()},set logoHidden(U){le(U)},get isMobile(){return ce()},set isMobile(U){ce(U)},get showNextPrevButtons(){return X()},set showNextPrevButtons(U){X(U)},get nextButtonActive(){return _e()},set nextButtonActive(U){_e(U)},get prevButtonActive(){return Ee()},set prevButtonActive(U){Ee(U)},get endScreenVideoTitle(){return de()},set endScreenVideoTitle(U){de(U)},get endScreenVideoThumb(){return ze()},set endScreenVideoThumb(U){ze(U)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(U){ue(U)},get supportLink(){return pe()},set supportLink(U){pe(U)},get shadowRootContainer(){return Z()},set shadowRootContainer(U){Z(U)},get outerContainerRef(){return B()},set outerContainerRef(U){B(U)},get fullScreenTarget(){return fe()},set fullScreenTarget(U){fe(U)},get failoverHosts(){return me()},set failoverHosts(U){me(U)},get showMiniTimer(){return Ie()},set showMiniTimer(U){Ie(U)},get saveRate(){return ot()},set saveRate(U){ot(U)},get showAutoplayNext(){return Ce()},set showAutoplayNext(U){Ce(U)},get seekToInteractive(){return Me()},set seekToInteractive(U){Me(U)},get playPrevChapter(){return be()},set playPrevChapter(U){be(U)},get volumeMultiplier(){return W()},set volumeMultiplier(U){W(U)},get showEndScreen(){return ke()},set showEndScreen(U){ke(U)},get keyboardControls(){return Qe()},set keyboardControls(U){Qe(U)}});return o(),fn}var aT=Ae('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function dg(t,e){let i=g(e,"isWhite",3,!1),o=f(()=>i()?"#fff":"#909499");Xe(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=aT();Xt(9),$(r,l)},$$slots:{default:!0}})}var lT=k('<div class="title s-3"> </div>'),dT=k('<div class="playerStub s-3"><!> <!></div>'),cT={hash:"s-3",code:".playerStub.s-3{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-3{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function cg(t,e){Q(t,cT);var i=dT(),o=C(i);{var r=d=>{var s=lT(),u=C(s,!0);S(s),O(()=>ge(u,e.title)),$(d,s)};M(o,d=>{e.title&&d(r)})}var a=P(o,2);{var l=d=>{let s=f(()=>!!e.thumbUrl);dg(d,{get isWhite(){return n(s)}})};M(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),O(()=>Ke(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var uT=k('<div class="playerError s-1"><!></div>'),pT={hash:"s-1",code:".playerError.s-1{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function ug(t){Q(t,pT);var e=uT(),i=C(e);sl(i,{}),S(e),$(t,e)}var _a=require("@vkontakte/videoplayer-shared/es2018"),Zi=require("@vkontakte/videoplayer-shared/es2018"),Xc=require("@vkontakte/videoplayer-core/es2018"),pd=require("@vkontakte/videoplayer-statistics/es2018");var Tp=require("@vkontakte/videoplayer-shared/es2018"),Cp=class{constructor(){this.subscription=new Tp.Subscription,this.logger=new Tp.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[r,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,a)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,l;let o=he(e.state.currentPlaybackRate$),r=he(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};function zc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var g$="Inner error. Unexpectedly root annotation container null reference exception",h$="Annotation with such name already exists",_$="Annotation with such name does not exist";var dd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var cd=require("@vkontakte/videoplayer-shared/es2018"),fT="1",mT=100,Ip=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new cd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,cd.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"},mT);this.subscriptions.add((0,cd.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},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 dd(g$);if(this.annotations.has(e))throw new dd(h$);i.style.zIndex=(o=i.style.zIndex)!=null?o:fT,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 dd(_$);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 r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var fl=require("@vkontakte/videoplayer-shared/es2018"),pn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,fl.assertNonNullable)(e),(0,fl.assertNonNullable)(i),(0,fl.assertNonNullable)(r),r.interactiveData&&(0,fl.assertNonNullable)(o),this.subscription=new fl.Subscription,this.subscription}};var Wc=class extends pn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Kc=class extends pn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:m}=a.ui,p=he(m),v=()=>p&&he(u);return o.add(u.subscribe(b=>{if(!p)return;let y=he(l);he(s)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(s.subscribe(b=>{this.state$.set(!b||v())})),o.add(l.subscribe(b=>{if(b===null)return;let y=he(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!b)})),o}};var qc=class extends pn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var b$=require("@vkontakte/videoplayer-shared/es2018"),pg=re(!1),Ep=null,Qc=class extends pn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...pg,set:(i,o=!1)=>{i!==he(pg)&&(this.clearTimeout(),pg.set(i),!i&&Ep&&(Ep=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(p=>{he(l)&&p&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,b$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:b})=>{var y,_;if(!(!p||!(b!=null&&b.isDisplayed))){if(!v)return this.state$.set(!1);m.tooltipHelpHintActive&&Ep===null&&(Ep=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Pp=require("@vkontakte/videoplayer-shared/es2018");var Gc=class extends pn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:Pp.noop};this.checkIfShouldHide=i=>Bs(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:a}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(he(l)))return;let s=he(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,v=he(u),b=he(m);if(s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),p.remove(Of),!v&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),p.add(Of),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}},o.add((0,Pp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:s,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}})),o}};var fg=require("@vkontakte/videoplayer-shared/es2018"),Yc=class extends pn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new fg.ValueSubject(!1),isEnabled$:new fg.ValueSubject(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};var kp=require("@vkontakte/videoplayer-shared/es2018");var Ap=require("@vkontakte/videoplayer-shared/es2018"),$$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?vT({maxCount:t}):void 0,e!==0?gT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},vT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Ap.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},gT=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ap.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Ap.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var jc=class extends pn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),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:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=$$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,kp.filterChanged)(),(0,kp.filter)(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var y$=()=>[Wc,Kc,qc,Qc,Gc,Yc,jc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var ud=require("@vkontakte/videoplayer-shared/es2018");var Lp=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var Mp=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.focusLock=new Lp(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var hT=k('<div class="root s-4"><!></div>'),_T={hash:"s-4",code:".root.s-4{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function mg(t,e){H(e,!0),Q(t,_T);let i=null,o=K(null);Fe(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&N(o,s?"prev":"next",!0)}var a=Re(),l=se(a);{var d=s=>{var u=Re(),m=se(u);Ms(m,()=>n(o),p=>{var v=hT(),b=C(v);let y=f(()=>n(o)==="prev");Uc(b,{get duration(){return e.animationDuration},get Icon(){return va},get reversed(){return n(y)}}),S(v),$(p,v)}),$(s,u)};M(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return $(t,a),F({startVideoChangedAnimation:r})}var x$=require("@vkontakte/videoplayer-shared/es2018"),vg=(0,x$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var bT=Object.defineProperty,$T=(t,e,i)=>e in t?bT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Kt=(t,e,i)=>$T(t,typeof e!="symbol"?e+"":e,i),yT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Zi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Xc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Xn=K(void 0),gg=ni({animationDuration:0,playbackStatusShow:!1}),Vp=class extends vg{constructor(){super(),Kt(this,"svelteStubComponent"),Kt(this,"svelteRootComponent"),Kt(this,"sveltePersistentLayerComponent"),Kt(this,"svelteErrorComponent"),Kt(this,"store"),Kt(this,"microStoresRoot"),Kt(this,"statistics"),Kt(this,"_shadowRoot"),Kt(this,"playerContainer"),Kt(this,"rootContainer"),Kt(this,"stateContainer"),Kt(this,"shadowRootContainer"),Kt(this,"playerId"),Kt(this,"uiConfig"),Kt(this,"coreConfig"),Kt(this,"statisticsConfig"),Kt(this,"metaConfig"),Kt(this,"interactiveController"),Kt(this,"interactiveContainer"),Kt(this,"graphMadePause"),Kt(this,"currentPlayingVideoIndex",0),Kt(this,"needToRepeatPlaylist",!1),Kt(this,"videoConfig"),Kt(this,"pictureInPictureApi"),Kt(this,"mediaSessionApi"),Kt(this,"unsubscribePlayerPhaseSubscription"),Kt(this,"logger"),Kt(this,"log"),Kt(this,"subscription"),Kt(this,"interactiveSubscription"),Kt(this,"annotationsApi"),Kt(this,"slotsApi"),Kt(this,"focusManager"),Kt(this,"prevIsid"),Kt(this,"isInited",!1),Kt(this,"postponedInitParams",null),Kt(this,"internalsExposure",null),Kt(this,"shadowDOMCallbacksDisabled",!1),Kt(this,"fatalError$",new _a.ValueSubject(null)),Kt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:p,refreshStatAuthToken:v,autoplay:b,isMobile:y,isTouch:_,refDomain:x,deviceId:I,interactiveData:T}=zc(this.videoConfig,i),D=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new pd.OneStat({movieId:E,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:_!=null?_:y,clip:V,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview",...D&&(!this.isInited||A)&&{projectId:Number(D)}},{refreshAuthToken:v,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(L){console.error(L),this.log({message:L.message})}}),ud.devNull.create("ui"),this.logger=new Zi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Zi.Subscription,this.interactiveSubscription=new Zi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Gr(ug,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=ni({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Gr(cg,l),this.sveltePersistentLayerComponent=Gr(mg,{target:this.playerContainer,props:gg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;gg.animationDuration=e,gg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),ud.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.stateContainer=document.createElement("div"),this.stateContainer.className="state-container",this.stateContainer.style.width="1px",this.stateContainer.style.height="1px",this.stateContainer.style.position="absolute",this.stateContainer.style.backgroundColor="transparent",this.stateContainer.style.left="-100000px",this.append(this.rootContainer),this.append(this.stateContainer)}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:r,refreshStatAuthToken:a}=zc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new pd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,m,p,v,b;if(!this.videoConfig)return;let{albumId:y,statPlace:_,statAuthToken:x,preload:I,autoplay:T,volume:D,muted:A,fromTime:E,canRewindLive:V,supportLink:q,showAds:L,adsSlotId:z,adsParams:j={},adsAutoplayParam:te,interfaceLanguage:ee,isCyrillicRelatedInterface:oe,logoClickable:ae,logoHidden:le,isMobile:ce,isTouch:X,isAudioDisabled:_e,isLiveCatchUpMode:Ee,fullScreenTarget:de,failoverHosts:ze,canDownload:ue,callbacks:pe,interactiveData:Z,showThumbTimer:B,additionalButtons:fe=[],additionalSettingsMenuItems:me=[],additionalContextMenuItems:Ie=[],repeat:ot,loop:Me,saveRate:be,volumeMultiplier:W,showEndScreen:Ce,showAutoplayNext:ke,mediascopePixels:Qe}=zc(this.videoConfig,i),{sources:Te,title:we,thumbUrl:He,unitedVideoId:st,isClip:ut=!1,duration:It,adsParams:lt={},videoEpisodes:ri,previewThumbsData:St,subtitles:Rt,subtitlesForcedLanguage:Dt,live:Wt,adsExternalApi:Le,adsJson:Y}=e;if(!Te&&!Wt){let ai=new Error("empty sources and live");this.fatalError$.next(ai),(r=pe.onCrashed)==null||r.call(pe,ai.message);return}let Ne={...j,...lt},$e=this.getNextVideoInfo(),Oe={sources:Te,title:we,thumbUrl:He,subtitles:Rt,subtitlesForcedLanguage:Dt,unitedVideoId:st,isClip:ut,live:Wt,albumId:y,statPlace:_,autoplay:T,muted:A,volume:D,fromTime:E,canRewindLive:V,showAds:L,adsSlotId:z,adsParams:Ne,adsAutoplayParam:te,duration:It,logoClickable:ae,logoHidden:le,isTouch:X!=null?X:ce,repeat:ot,loop:Me,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},mt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Oe)}`});let Et=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),Se=(Et==null?void 0:Et.oneStat)||this.createOneStat(e,i),Ye=this.createThinOneStat(e,i),Ue;Qe&&(Ue=new pd.MediascopePixel({pixels:Qe})),(Se||Ye)&&(this.statistics=new pp(Se,Ye,Ue,Et==null?void 0:Et.statSubscription));let xe=this.uiConfig.features.apptracer.enabled?new _a.AppTracer("videoplayer",this.uiConfig.features.apptracer,{version:Ua,env:Ru},(0,_a.withoutNullable)({movieId:st,albumId:y,place:_,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:X!=null?X:ce,clip:ut})):void 0;this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue()));let Nt=!!Z,Tt=[],qt="tooltip_interactive_go_back_disabled_first";if(Nt&&this.interactiveController){let ai=this.interactiveController.state.isInitialChapter$.getValue(),wi=this.interactiveController.getHistoryState();ai&&Tt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Tt.push("SEEK_TO_INTERACTIVE_BUTTON"),wi.hasPrevChapter$.getValue()||(Tt.push("PLAY_PREV_CHAPTER_BUTTON"),ai||(wi.isGoBackLimited$.getValue()?qt="tooltip_interactive_go_back_disabled_limit":qt="tooltip_interactive_go_back_disabled"))}let hi=()=>{var ai;this.isInited=!1,this.prevIsid=void 0;let wi=(o==null?void 0:o.info.isEnded$.getValue())&&((ai=this.interactiveController)==null?void 0:ai.state.isEndChapter$.getValue());pe.onReplayInteractiveVideo&&!wi?pe.onReplayInteractiveVideo():this.replayInteractiveVideo()},mi=ot&&this.videoConfig.videos.length===1;this.store=kb({player:o,interfaceLanguage:ee,isCyrillicRelatedInterface:oe,videoId:st,isClip:ut,isLiveCatchUpMode:Ee,isAudioDisabled:_e,statAuthToken:x,callbacks:pe,webApi:mt,videoEpisodes:ri,previewThumbsData:St,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:Tt,isInteractive:Nt,saveRate:be,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:hi,playPrevChapterDisabledTooltip:qt,hasInteractiveBranches:!!((b=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:me!=null?me:[],additionalContextMenuItems:Ie!=null?Ie:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ai=>{var wi;return(wi=this.sveltePersistentLayerComponent)==null?void 0:wi.startVideoChangedAnimation(ai)},looped:this.uiConfig.features.useLoopSetting?Me:mi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId,appTracer:xe});let{stores:ki}=this.microStoresRoot=y$(),Ji=()=>{var ai,wi,eo,Li,li,Ui;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(We=>{var nt;return(nt=pe==null?void 0:pe.onCurrentFormatChanged)==null?void 0:nt.call(pe,We)})),this.subscription.add(ki.interactiveControlsOpacity$.subscribe(We=>{var nt;We!==null&&((nt=this==null?void 0:this.interactiveController)==null||nt.setDisabledControls(We))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(We=>{var nt;return(nt=pe==null?void 0:pe.onThroughputEstimationChanged)==null?void 0:nt.call(pe,We)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(We=>{var nt;return(nt=pe==null?void 0:pe.onTrafficSavingEnabledChanged)==null?void 0:nt.call(pe,We)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(We=>{var nt;return(nt=pe==null?void 0:pe.onHighQualityEnabledChanged)==null?void 0:nt.call(pe,We)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(We=>{var nt;return(nt=pe==null?void 0:pe.onAutoQualityEnabledChanged)==null?void 0:nt.call(pe,!!We)})),this.subscription.add(new Zi.Observable(We=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(nt=>We.next(nt)))}).pipe((0,Zi.skip)(1)).subscribe(We=>{var nt;return(nt=pe==null?void 0:pe.onCurrentPlaybackRateChanged)==null?void 0:nt.call(pe,We)})),this.subscription.add(this.store.state.volume$.subscribe(We=>{var nt;return(nt=pe==null?void 0:pe.onVolumeChange)==null?void 0:nt.call(pe,We)})),this.subscription.add(this.store.state.muted$.subscribe(We=>{var nt,pt,di,zi;if(We)(nt=pe==null?void 0:pe.onMute)==null||nt.call(pe);else{let to=(di=((pt=this.store)==null?void 0:pt.state.volume$)&&he(this.store.state.volume$))!=null?di:0;(zi=pe==null?void 0:pe.onUnmute)==null||zi.call(pe,to)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(We=>{var nt;return(nt=pe==null?void 0:pe.onVideoBitrateChanged)==null?void 0:nt.call(pe,We)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(We=>{var nt;let pt=(nt=this.store)==null?void 0:nt.ui.controls.disabledControls$;pt&&(We&&!pt.includes(Qd)&&pt.add(Qd),We||pt.remove(Qd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async We=>{var nt;if(!Xc.clientChecker.browser.isSamsungBrowser||!We||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((nt=this.videoConfig)==null?void 0:nt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(We=>{var nt;return(nt=pe==null?void 0:pe.onVSIDChanged)==null?void 0:nt.call(pe,We)})),this.initMediaSession(),N(Xn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:we,thumbUrl:He,subtitles:Rt,subtitlesForcedLanguage:Dt,live:Wt,preload:I,autoplay:T,muted:A,volume:D,fromTime:E,canRewindLive:V,supportLink:q,showAds:L,adsSlotId:z,adsParams:Ne,adsAutoplayParam:te,duration:It,logoClickable:ae,logoHidden:le,isMobile:X!=null?X:ce,failoverHosts:ze,fullScreenTarget:de,saveRate:be,shadowRootContainer:this.shadowRootContainer,showMiniTimer:B,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:W,showEndScreen:Ce,showAutoplayNext:ke,adsExternalApi:Le,adsJson:Y,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let bt={target:this.playerContainer,props:n(Xn)};this.svelteRootComponent=Gr(lg,bt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(eo=(wi=(ai=this.videoConfig)==null?void 0:ai.callbacks)==null?void 0:wi.onInited)==null||eo.call(wi)),(Li=this.internalsExposure)==null||Li.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ui=(li=this.videoConfig)==null?void 0:li.callbacks)!=null&&Ui.onDevNullLog)?ud.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):ud.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Xc.clientChecker.isInited$.subscribe(ai=>{ai&&(console.log("UI SDK async start"),Ji())}):Ji()}get useMinimalViewForDpip(){var e;let i=(e=this.uiConfig.features.dpip)!=null?e:!1;return typeof i=="boolean"?!1:!!i.minimalView}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,d))})).add(o.state.playbackStateRealistic$.subscribe(d=>{d?this.stateContainer.setAttribute("data-playback-state",d):this.stateContainer.removeAttribute("data-playback-state")})).add(o.state.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;up(this.pictureInPictureApi)&&this.useMinimalViewForDpip&&o.actions.external.setMinimalView(d),d?(s=a.onPiPEnter)==null||s.call(a):(u=a.onPiPExit)==null||u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls["theater-mode-button"].subscribe(d=>{var s;return(s=l.onTheaterModeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.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 r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Zi.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{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)}async initInteractives(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?he(s):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:p,historyApi:v,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:p,historyApi:v,vkVideoLoader:b,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$:y,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(m==null?void 0:m.title)||I.config.title};let T=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var D,A,E,V,q,L;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Gd)),I==="action-choice-canceled"){let j=he(this.store.state.isPlaying$)||z;if(((E=(D=this.videoConfig)==null?void 0:D.isTouch)!=null?E:(A=this.videoConfig)!=null&&A.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(L=(V=this.videoConfig)==null?void 0:(q=V.callbacks).onDisabledInteractiveClick)==null||L.call(q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(Gd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(T=>{var D,A,E;T.length&&((E=(A=(D=this.videoConfig)==null?void 0:D.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||E.call(A,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,D,A;(A=(T=this.videoConfig)==null?void 0:(D=T.callbacks).onInteractiveChapterChanged)==null||A.call(D,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,D,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(T=this.videoConfig)==null?void 0:(D=T.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(D)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,a,l,d,s,u,m,p,v,b,y,_,x,I,T,D,A,E,V,q;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let L=new Error("empty videos");this.fatalError$.next(L),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,L.message);return}else this.fatalError$.next(null);this.videoConfig=zc(yT,(0,Zi.cloneDeepWith)(e,L=>L instanceof vg?L:void 0)),(a=this.playerId)!=null||(this.playerId=(0,Zi.getPlayerId)(e.playerId)),this.uiConfig=s_((l=i.ui)!=null?l:{}),this.updatePersistentLayerProps(),this.coreConfig=(d=i.core)!=null?d:{},this.statisticsConfig=(s=i.statistics)!=null?s:{},this.metaConfig=i.meta,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.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Zi.InternalsExposure("ui",this.playerId))),ud.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((m=this.videoConfig)==null?void 0:m.showAds)],numbers:[(0,_a.now)()]}),(0,Zi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),this.uiConfig.ads.paramsOverride={preview:(b=this.uiConfig.ads.preview)!=null?b:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(_=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?_:this.videoConfig.isMobile,(x=this.videoConfig).autoplay&&(x.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(T=this.uiConfig.ads.slot)!=null?T:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((D=this.uiConfig.showLogo)!=null?D:!this.videoConfig.logoHidden),(A=this.videoConfig).canRewindLive&&(A.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(E=this.videoConfig.supportLink)!=null?E:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((V=this.videoConfig.videos)!=null&&V[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.pictureInPictureApi=Ym(this.videoConfig.pipEnabled!==!1,this.uiConfig.features.dpip)),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Cp:void 0,this.slotsApi=this.uiConfig.features.slots?new xp(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ip(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Mp(this._shadowRoot):void 0,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]),up(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(q=this.slotsApi)==null||q.init(this.shadowRootContainer,this.store)}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();n(Xn)&&(n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).prevButtonActive=this.isPrevButtonActive(),n(Xn).endScreenVideoTitle=o.nextVideoTitle,n(Xn).endScreenVideoThumb=o.nextVideoThumb,n(Xn).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}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}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="Реклама",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,r;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"}),(r=this.svelteRootComponent)==null||r.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,n(Xn)&&(n(Xn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).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,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.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)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((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.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{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(r){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}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()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=he(this.store.state.positionExact$),l=he(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Zi.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();await 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)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Oa(e)}};var fd=require("@vkontakte/videoplayer-shared/es2018"),Rp=require("@vkontakte/videoplayer-core/es2018"),xT=()=>{window.customElements.define("vk-video-player",Vp)};