@vkontakte/videoplayer 1.1.76 → 1.1.77-dev.0b43ee9b.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.cjs.js CHANGED
@@ -1,63 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.76
3
- * Thu, 06 Nov 2025 09:30:06 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-76/doc/
2
+ * @vkontakte/videoplayer v1.1.77-dev.0b43ee9b.0
3
+ * Tue, 11 Nov 2025 17:58:46 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-77/doc/
5
5
  */
6
- "use strict";var $$=Object.create;var _d=Object.defineProperty;var y$=Object.getOwnPropertyDescriptor;var x$=Object.getOwnPropertyNames;var w$=Object.getPrototypeOf,S$=Object.prototype.hasOwnProperty;var pg=t=>{throw TypeError(t)};var T$=(t,e,i)=>e in t?_d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var C$=(t,e)=>{for(var i in e)_d(t,i,{get:e[i],enumerable:!0})},fg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of x$(e))!S$.call(t,r)&&r!==i&&_d(t,r,{get:()=>e[r],enumerable:!(o=y$(e,r))||o.enumerable});return t};var mg=(t,e,i)=>(i=t!=null?$$(w$(t)):{},fg(e||!t||!t.__esModule?_d(i,"default",{value:t,enumerable:!0}):i,t)),I$=t=>fg(_d({},"__esModule",{value:!0}),t);var rr=(t,e,i)=>T$(t,typeof e!="symbol"?e+"":e,i),Hp=(t,e,i)=>e.has(t)||pg("Cannot "+i);var Ri=(t,e,i)=>(Hp(t,e,"read from private field"),i?i.call(t):e.get(t)),zs=(t,e,i)=>e.has(t)?pg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),_l=(t,e,i,o)=>(Hp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),vg=(t,e,i)=>(Hp(t,e,"access private method"),i);var cC={};C$(cC,{ControlButtonType:()=>$c,GridTypes:()=>Xr,InterfaceLanguage:()=>md.InterfaceLanguage,MenuItemType:()=>Yl,PlayerPhase:()=>Zr,VERSION:()=>Va,VKNumericLanguage:()=>md.VKNumericLanguage,VideoFormat:()=>Rp.VideoFormat,VideoQuality:()=>Rp.VideoQuality,loadVKLangPack:()=>md.loadVKLangPack,registerPlayerWebComponent:()=>dC});module.exports=I$(cC);var Ws="[",Ks="[!",ha="]",ds={};var ji=Symbol(),Hn=Symbol("filename"),gg=Symbol("hmr"),hg="http://www.w3.org/1999/xhtml",nu="http://www.w3.org/2000/svg";var Up="@attach";var ru=!0;var bg,$g,_g=($g=(bg=globalThis.process)==null?void 0:bg.env)==null?void 0:$g.NODE_ENV,Ae=_g&&!_g.toLowerCase().startsWith("prod");var sr=Array.isArray,yg=Array.prototype.indexOf,bd=Array.from,zp=Object.keys,mo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,su=Object.getOwnPropertyDescriptors,Wp=Object.prototype,xg=Array.prototype,_a=Object.getPrototypeOf,Kp=Object.isExtensible;function qs(t){return typeof t=="function"}var ht=()=>{};function wg(t){return t()}function Qs(t){for(var e=0;e<t.length;e++)t[e]()}var jo=Symbol("$state"),bl=Symbol("legacy props"),Sg=Symbol(""),au=Symbol("proxy path"),lu=1,$l=3,ar=8;function du(t){return t===this.v}function yl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tg(t,e){return t!==e}function xl(t){return!yl(t,this.v)}function Cg(){if(Ae){let t=new Error(`derived_references_self
6
+ "use strict";var S$=Object.create;var _d=Object.defineProperty;var T$=Object.getOwnPropertyDescriptor;var C$=Object.getOwnPropertyNames;var I$=Object.getPrototypeOf,E$=Object.prototype.hasOwnProperty;var fg=t=>{throw TypeError(t)};var P$=(t,e,i)=>e in t?_d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var k$=(t,e)=>{for(var i in e)_d(t,i,{get:e[i],enumerable:!0})},mg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of C$(e))!E$.call(t,r)&&r!==i&&_d(t,r,{get:()=>e[r],enumerable:!(o=T$(e,r))||o.enumerable});return t};var vg=(t,e,i)=>(i=t!=null?S$(I$(t)):{},mg(e||!t||!t.__esModule?_d(i,"default",{value:t,enumerable:!0}):i,t)),A$=t=>mg(_d({},"__esModule",{value:!0}),t);var cr=(t,e,i)=>P$(t,typeof e!="symbol"?e+"":e,i),Fp=(t,e,i)=>e.has(t)||fg("Cannot "+i);var Li=(t,e,i)=>(Fp(t,e,"read from private field"),i?i.call(t):e.get(t)),Us=(t,e,i)=>e.has(t)?fg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),gl=(t,e,i,o)=>(Fp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),gg=(t,e,i)=>(Fp(t,e,"access private method"),i);var mC={};k$(mC,{ControlButtonType:()=>_c,GridTypes:()=>jr,InterfaceLanguage:()=>pd.InterfaceLanguage,MenuItemType:()=>Ql,PlayerPhase:()=>Xr,VERSION:()=>La,VKNumericLanguage:()=>pd.VKNumericLanguage,VideoFormat:()=>Vp.VideoFormat,VideoQuality:()=>Vp.VideoQuality,loadVKLangPack:()=>pd.loadVKLangPack,registerPlayerWebComponent:()=>fC});module.exports=A$(mC);var zs="[",Ws="[!",va="]",ss={};var Yi=Symbol(),Kn=Symbol("filename"),hg=Symbol("hmr"),_g="http://www.w3.org/1999/xhtml",ou="http://www.w3.org/2000/svg";var Hp="@attach";var nu=!0;var $g,yg,bg=(yg=($g=globalThis.process)==null?void 0:$g.env)==null?void 0:yg.NODE_ENV,ke=bg&&!bg.toLowerCase().startsWith("prod");var ur=Array.isArray,xg=Array.prototype.indexOf,bd=Array.from,Up=Object.keys,mo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,ru=Object.getOwnPropertyDescriptors,zp=Object.prototype,wg=Array.prototype,ga=Object.getPrototypeOf,Wp=Object.isExtensible;function Ks(t){return typeof t=="function"}var vt=()=>{};function Sg(t){return t()}function qs(t){for(var e=0;e<t.length;e++)t[e]()}var Go=Symbol("$state"),hl=Symbol("legacy props"),Tg=Symbol(""),su=Symbol("proxy path"),au=1,_l=3,pr=8;function lu(t){return t===this.v}function bl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Cg(t,e){return t!==e}function $l(t){return!bl(t,this.v)}function Ig(){if(ke){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 Ig(t){if(Ae){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 Eg(t){if(ke){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 Eg(){if(Ae){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 Pg(t){if(Ae){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 Pg(){if(ke){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 kg(t){if(ke){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 Ag(){if(Ae){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 Ag(){if(ke){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 kg(){if(Ae){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 Lg(){if(ke){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 Lg(){if(Ae){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 Mg(t){if(Ae){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 Mg(){if(ke){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 Vg(t){if(ke){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 Vg(t){if(Ae){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 Rg(t){if(ke){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 Rg(t){if(Ae){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 Ng(t){if(ke){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 Ng(){if(Ae){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 Og(){if(Ae){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 Dg(){if(Ae){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 cs=!1,us=!1;function Bg(){cs=!0}var $d=null;function $s(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 Og(){if(ke){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 Dg(){if(ke){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 Bg(){if(ke){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 as=!1,ls=!1;function Fg(){as=!0}var $d=null;function $s(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),r=[`
24
24
  `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||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,cu(t.v,e),t}function cu(t,e){var i;return(i=t==null?void 0:t[au])==null||i.call(t,e),t}function wl(t){if(Ae){let e=new Error(`lifecycle_outside_component
25
+ `)}),mo(e,"name",{value:`${t}Error`})}return e}function zr(t,e){return t.label=e,du(t.v,e),t}function du(t,e){var i;return(i=t==null?void 0:t[su])==null||i.call(t,e),t}function yl(t){if(ke){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 Ht=null;function yd(t){Ht=t}var lr=null;function xd(t){lr=t}function Sl(t){return Gp("getContext").get(t)}function Tl(t,e){return Gp("setContext").set(t,e),e}function wd(){return Gp("getAllContexts")}function F(t,e=!1,i){var o=Ht={p:Ht,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};cs&&!e&&(Ht.l={s:null,u:null,r1:[],r2:Er(!1)}),Io(()=>{o.d=!0}),Ae&&(Ht.function=i,lr=i)}function H(t){var l,d;let e=Ht;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=yt,o=Rt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];vo(s.effect),qi(s.reaction),Eo(s.fn)}}finally{vo(i),qi(o)}}Ht=e.p,Ae&&(lr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ps(){return!cs||Ht!==null&&Ht.l===null}function Gp(t){var e;return Ht===null&&wl(t),(e=Ht.c)!=null?e:Ht.c=new Map(P$(Ht)||void 0)}function P$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var A$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ai(t){if(typeof t!="object"||t===null||jo in t)return t;let e=_a(t);if(e!==Wp&&e!==xg)return t;var i=new Map,o=sr(t),r=K(0),s=Ae&&us?$s("CreatedAt"):null,l=Rt,d=p=>{var m=Rt;qi(l);var f=p();return qi(m),f};o&&i.set("length",K(t.length,s));var a="";function u(p){a=p,Wr(r,`${a} version`);for(let[m,f]of i)Wr(f,ba(a,m))}return new Proxy(t,{defineProperty(p,m,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Ng();var b=i.get(m);return b===void 0?b=d(()=>{var y=K(f.value,s);return i.set(m,y),Ae&&typeof m=="string"&&Wr(y,ba(a,m)),y}):N(b,f.value,!0),!0},deleteProperty(p,m){var f=i.get(m);if(f===void 0){if(m in p){let $=d(()=>K(ji,s));i.set(m,$),Yp(r),Ae&&Wr($,ba(a,m))}}else{if(o&&typeof m=="string"){var b=i.get("length"),y=Number(m);Number.isInteger(y)&&y<b.v&&N(b,y)}N(f,ji),Yp(r)}return!0},get(p,m,f){var S;if(m===jo)return t;if(Ae&&m===au)return u;var b=i.get(m),y=m in p;if(b===void 0&&(!y||(S=Yo(p,m))!=null&&S.writable)&&(b=d(()=>{var C=ai(y?p[m]:ji),I=K(C,s);return Ae&&Wr(I,ba(a,m)),I}),i.set(m,b)),b!==void 0){var $=n(b);return $===ji?void 0:$}return Reflect.get(p,m,f)},getOwnPropertyDescriptor(p,m){var f=Reflect.getOwnPropertyDescriptor(p,m);if(f&&"value"in f){var b=i.get(m);b&&(f.value=n(b))}else if(f===void 0){var y=i.get(m),$=y==null?void 0:y.v;if(y!==void 0&&$!==ji)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return f},has(p,m){var $;if(m===jo)return!0;var f=i.get(m),b=f!==void 0&&f.v!==ji||Reflect.has(p,m);if(f!==void 0||yt!==null&&(!b||($=Yo(p,m))!=null&&$.writable)){f===void 0&&(f=d(()=>{var S=b?ai(p[m]):ji,C=K(S,s);return Ae&&Wr(C,ba(a,m)),C}),i.set(m,f));var y=n(f);if(y===ji)return!1}return b},set(p,m,f,b){var O;var y=i.get(m),$=m in p;if(o&&m==="length")for(var S=f;S<y.v;S+=1){var C=i.get(S+"");C!==void 0?N(C,ji):S in p&&(C=d(()=>K(ji,s)),i.set(S+"",C),Ae&&Wr(C,ba(a,S)))}if(y===void 0)(!$||(O=Yo(p,m))!=null&&O.writable)&&(y=d(()=>K(void 0,s)),N(y,ai(f)),i.set(m,y),Ae&&Wr(y,ba(a,m)));else{$=y.v!==ji;var I=d(()=>ai(f));N(y,I)}var R=Reflect.getOwnPropertyDescriptor(p,m);if(R!=null&&R.set&&R.set.call(b,f),!$){if(o&&typeof m=="string"){var E=i.get("length"),P=Number(m);Number.isInteger(P)&&P>=E.v&&N(E,P+1)}Yp(r)}return!0},ownKeys(p){n(r);var m=Reflect.ownKeys(p).filter(y=>{var $=i.get(y);return $===void 0||$.v!==ji});for(var[f,b]of i)b.v!==ji&&!(f in p)&&m.push(f);return m},setPrototypeOf(){Og()}})}function ba(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:A$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Yp(t,e=1){N(t,t.v+e)}function Cl(t){try{if(t!==null&&typeof t=="object"&&jo in t)return t[jo]}catch(e){}return t}function jp(t,e){return Object.is(Cl(t),Cl(e))}function Kr(t){var e=2050,i=Rt!==null&&(Rt.f&2)!==0?Rt:null;yt===null||i!==null&&(i.f&256)!==0?e|=256:yt.f|=1048576;let o={ctx:Ht,deps:null,effects:null,equals:du,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:yt};return Ae&&us&&(o.created=$s("CreatedAt")),o}function v(t){let e=Kr(t);return fu(e),e}function Tn(t){let e=Kr(t);return e.equals=xl,e}function uu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Qi(e[i])}}var Xp=[];function k$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function ef(t){var e,i=yt;if(vo(k$(t)),Ae){let o=$a;Zp(new Set);try{Xp.includes(t)&&Cg(),Xp.push(t),uu(t),e=pu(t)}finally{vo(i),Zp(o),Xp.pop()}}else try{uu(t),e=pu(t)}finally{vo(i)}return e}function tf(t){var e=ef(t);if(t.equals(e)||(t.v=e,t.wv=Sd()),!ys){var i=(xs||(t.f&256)!==0)&&t.deps!==null?4096:1024;Cn(t,i)}}var $a=new Set,Il=new Map;function Zp(t){$a=t}function Er(t,e){var i={f:0,v:t,reactions:null,equals:du,rv:0,wv:0};return Ae&&us&&(i.created=e!=null?e:$s("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=Er(t,e);return fu(i),i}function fs(t,e=!1,i=!0){var r,s;let o=Er(t);return e||(o.equals=xl),cs&&i&&Ht!==null&&Ht.l!==null&&((s=(r=Ht.l).s)!=null?s:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Rt!==null&&(!ur||(Rt.f&262144)!==0)&&ps()&&(Rt.f&262162)!==0&&!((r=Zo)!=null&&r[1].includes(t)&&Zo[0]===Rt)&&Dg();let o=i?ai(e):e;return Ae&&cu(o,t.label),El(t,o)}function El(t,e){if(!t.equals(e)){var i=t.v;if(ys?Il.set(t,e):Il.set(t,i),t.v=e,Ae&&us&&(t.updated=$s("UpdatedAt"),yt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&ef(t),Cn(t,(t.f&256)===0?1024:4096)),t.wv=Sd(),Hg(t,2048),ps()&&yt!==null&&(yt.f&1024)!==0&&(yt.f&96)===0&&(cr===null?Ug([t]):cr.push(t)),Ae&&$a.size>0){let o=Array.from($a);for(let r of o)(r.f&1024)!==0&&Cn(r,4096),xa(r)&&Pl(r);$a.clear()}}return e}function Hg(t,e){var i=t.reactions;if(i!==null)for(var o=ps(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===yt)){if(Ae&&(d&262144)!==0){$a.add(l);continue}Cn(l,e),(d&1280)!==0&&((d&2)!==0?Hg(l,4096):Cd(l))}}}var Al="font-weight: bold",kl="font-weight: normal";function zg(t,e,i){Ae?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 Ht=null;function yd(t){Ht=t}var fr=null;function xd(t){fr=t}function xl(t){return Qp("getContext").get(t)}function wl(t,e){return Qp("setContext").set(t,e),e}function wd(){return Qp("getAllContexts")}function H(t,e=!1,i){var o=Ht={p:Ht,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};as&&!e&&(Ht.l={s:null,u:null,r1:[],r2:Ar(!1)}),Ao(()=>{o.d=!0}),ke&&(Ht.function=i,fr=i)}function U(t){var l,d;let e=Ht;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=bt,o=Rt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];vo(s.effect),Ui(s.reaction),Lo(s.fn)}}finally{vo(i),Ui(o)}}Ht=e.p,ke&&(fr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ds(){return!as||Ht!==null&&Ht.l===null}function Qp(t){var e;return Ht===null&&yl(t),(e=Ht.c)!=null?e:Ht.c=new Map(M$(Ht)||void 0)}function M$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var V$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function di(t){if(typeof t!="object"||t===null||Go in t)return t;let e=ga(t);if(e!==zp&&e!==wg)return t;var i=new Map,o=ur(t),r=K(0),s=ke&&ls?$s("CreatedAt"):null,l=Rt,d=m=>{var f=Rt;Ui(l);var p=m();return Ui(f),p};o&&i.set("length",K(t.length,s));var a="";function u(m){a=m,zr(r,`${a} version`);for(let[f,p]of i)zr(p,ha(a,f))}return new Proxy(t,{defineProperty(m,f,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Og();var b=i.get(f);return b===void 0?b=d(()=>{var y=K(p.value,s);return i.set(f,y),ke&&typeof f=="string"&&zr(y,ha(a,f)),y}):N(b,p.value,!0),!0},deleteProperty(m,f){var p=i.get(f);if(p===void 0){if(f in m){let $=d(()=>K(Yi,s));i.set(f,$),Gp(r),ke&&zr($,ha(a,f))}}else{if(o&&typeof f=="string"){var b=i.get("length"),y=Number(f);Number.isInteger(y)&&y<b.v&&N(b,y)}N(p,Yi),Gp(r)}return!0},get(m,f,p){var S;if(f===Go)return t;if(ke&&f===su)return u;var b=i.get(f),y=f in m;if(b===void 0&&(!y||(S=Qo(m,f))!=null&&S.writable)&&(b=d(()=>{var I=di(y?m[f]:Yi),C=K(I,s);return ke&&zr(C,ha(a,f)),C}),i.set(f,b)),b!==void 0){var $=n(b);return $===Yi?void 0:$}return Reflect.get(m,f,p)},getOwnPropertyDescriptor(m,f){var p=Reflect.getOwnPropertyDescriptor(m,f);if(p&&"value"in p){var b=i.get(f);b&&(p.value=n(b))}else if(p===void 0){var y=i.get(f),$=y==null?void 0:y.v;if(y!==void 0&&$!==Yi)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return p},has(m,f){var $;if(f===Go)return!0;var p=i.get(f),b=p!==void 0&&p.v!==Yi||Reflect.has(m,f);if(p!==void 0||bt!==null&&(!b||($=Qo(m,f))!=null&&$.writable)){p===void 0&&(p=d(()=>{var S=b?di(m[f]):Yi,I=K(S,s);return ke&&zr(I,ha(a,f)),I}),i.set(f,p));var y=n(p);if(y===Yi)return!1}return b},set(m,f,p,b){var O;var y=i.get(f),$=f in m;if(o&&f==="length")for(var S=p;S<y.v;S+=1){var I=i.get(S+"");I!==void 0?N(I,Yi):S in m&&(I=d(()=>K(Yi,s)),i.set(S+"",I),ke&&zr(I,ha(a,S)))}if(y===void 0)(!$||(O=Qo(m,f))!=null&&O.writable)&&(y=d(()=>K(void 0,s)),N(y,di(p)),i.set(f,y),ke&&zr(y,ha(a,f)));else{$=y.v!==Yi;var C=d(()=>di(p));N(y,C)}var R=Reflect.getOwnPropertyDescriptor(m,f);if(R!=null&&R.set&&R.set.call(b,p),!$){if(o&&typeof f=="string"){var E=i.get("length"),k=Number(f);Number.isInteger(k)&&k>=E.v&&N(E,k+1)}Gp(r)}return!0},ownKeys(m){n(r);var f=Reflect.ownKeys(m).filter(y=>{var $=i.get(y);return $===void 0||$.v!==Yi});for(var[p,b]of i)b.v!==Yi&&!(p in m)&&f.push(p);return f},setPrototypeOf(){Dg()}})}function ha(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:V$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Gp(t,e=1){N(t,t.v+e)}function Sl(t){try{if(t!==null&&typeof t=="object"&&Go in t)return t[Go]}catch(e){}return t}function Yp(t,e){return Object.is(Sl(t),Sl(e))}function Wr(t){var e=2050,i=Rt!==null&&(Rt.f&2)!==0?Rt:null;bt===null||i!==null&&(i.f&256)!==0?e|=256:bt.f|=1048576;let o={ctx:Ht,deps:null,effects:null,equals:lu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:bt};return ke&&ls&&(o.created=$s("CreatedAt")),o}function v(t){let e=Wr(t);return pu(e),e}function Cn(t){let e=Wr(t);return e.equals=$l,e}function cu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)zi(e[i])}}var jp=[];function R$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Jp(t){var e,i=bt;if(vo(R$(t)),ke){let o=_a;Xp(new Set);try{jp.includes(t)&&Ig(),jp.push(t),cu(t),e=uu(t)}finally{vo(i),Xp(o),jp.pop()}}else try{cu(t),e=uu(t)}finally{vo(i)}return e}function ef(t){var e=Jp(t);if(t.equals(e)||(t.v=e,t.wv=Sd()),!ys){var i=(xs||(t.f&256)!==0)&&t.deps!==null?4096:1024;In(t,i)}}var _a=new Set,Tl=new Map;function Xp(t){_a=t}function Ar(t,e){var i={f:0,v:t,reactions:null,equals:lu,rv:0,wv:0};return ke&&ls&&(i.created=e!=null?e:$s("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=Ar(t,e);return pu(i),i}function cs(t,e=!1,i=!0){var r,s;let o=Ar(t);return e||(o.equals=$l),as&&i&&Ht!==null&&Ht.l!==null&&((s=(r=Ht.l).s)!=null?s:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Rt!==null&&(!gr||(Rt.f&262144)!==0)&&ds()&&(Rt.f&262162)!==0&&!((r=jo)!=null&&r[1].includes(t)&&jo[0]===Rt)&&Bg();let o=i?di(e):e;return ke&&du(o,t.label),Cl(t,o)}function Cl(t,e){if(!t.equals(e)){var i=t.v;if(ys?Tl.set(t,e):Tl.set(t,i),t.v=e,ke&&ls&&(t.updated=$s("UpdatedAt"),bt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Jp(t),In(t,(t.f&256)===0?1024:4096)),t.wv=Sd(),Ug(t,2048),ds()&&bt!==null&&(bt.f&1024)!==0&&(bt.f&96)===0&&(vr===null?zg([t]):vr.push(t)),ke&&_a.size>0){let o=Array.from(_a);for(let r of o)(r.f&1024)!==0&&In(r,4096),$a(r)&&Il(r);_a.clear()}}return e}function Ug(t,e){var i=t.reactions;if(i!==null)for(var o=ds(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===bt)){if(ke&&(d&262144)!==0){_a.add(l);continue}In(l,e),(d&1280)!==0&&((d&2)!==0?Ug(l,4096):Cd(l))}}}var El="font-weight: bold",Pl="font-weight: normal";function Wg(t,e,i){ke?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`,Al,kl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Wg(t){Ae?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,El,Pl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Kg(t){ke?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`,Al,kl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Gs(t){Ae?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,El,Pl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Qs(t){ke?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`,Al,kl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Kg(){Ae?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,El,Pl):console.warn("https://svelte.dev/e/hydration_mismatch")}function qg(){ke?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`,Al,kl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function qg(){Ae?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",Al,kl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function mu(t){Ae?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,El,Pl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Qg(){ke?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",El,Pl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function fu(t){ke?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`,Al,kl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var tt=!1;function go(t){tt=t}var xt;function Si(t){if(t===null)throw Gs(),ds;return xt=t}function Gi(){return Si(Jo(xt))}function w(t){if(tt){if(Jo(xt)!==null)throw Gs(),ds;xt=t}}function ui(t=1){if(tt){for(var e=t,i=xt;e--;)i=Jo(i);xt=i}}function wa(){for(var t=0,e=xt;;){if(e.nodeType===ar){var i=e.data;if(i===ha){if(t===0)return e;t-=1}else(i===Ws||i===Ks)&&(t+=1)}var o=Jo(e);e.remove(),e=o}}function vu(t){if(!t||t.nodeType!==ar)throw Gs(),ds;return t.data}function Qg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Cl(this[a])===s){mu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Cl(this[a])===s){mu("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=r.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(Cl(this[a])===s){mu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Sa,Gg,Id,Yg,jg;function gu(){if(Sa===void 0){Sa=window,Gg=document,Id=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Yg=Yo(e,"firstChild").get,jg=Yo(e,"nextSibling").get,Kp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Kp(i)&&(i.__t=void 0),Ae&&(t.__svelte_meta=null,Qg())}}function In(t=""){return document.createTextNode(t)}function Ti(t){return Yg.call(t)}function Jo(t){return jg.call(t)}function T(t,e){if(!tt)return Ti(t);var i=Ti(xt);if(i===null)i=xt.appendChild(In());else if(e&&i.nodeType!==$l){var o=In();return i==null||i.before(o),Si(o),o}return Si(i),i}function de(t,e){var r,s;if(!tt){var i=Ti(t);return i.nodeType===8&&i.data===""?Jo(i):i}if(e&&((r=xt)==null?void 0:r.nodeType)!==$l){var o=In();return(s=xt)==null||s.before(o),Si(o),o}return xt}function k(t,e=1,i=!1){let o=tt?xt:t;for(var r;e--;)r=o,o=Jo(o);if(!tt)return o;if(i&&(o==null?void 0:o.nodeType)!==$l){var s=In();return o===null?r==null||r.after(s):o.before(s),Si(s),s}return Si(o),o}function Ed(t){t.textContent=""}function rf(t){yt===null&&Rt===null&&Pg(t),Rt!==null&&(Rt.f&256)!==0&&yt===null&&Eg(),ys&&Ig(t)}function L$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ta(t,e,i,o=!0){var a;var r=yt;if(Ae)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Ht,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(Ae&&(s.component_function=lr),i)try{Pl(s),s.f|=32768}catch(u){throw Qi(s),u}else e!==null&&Cd(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(r!==null&&L$(s,r),Rt!==null&&(Rt.f&2)!==0)){var d=Rt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Io(t){let e=Ta(8,null,!1);return Cn(e,1024),e.teardown=t,e}function Oe(t){var r;rf("$effect");var e=yt!==null&&(yt.f&32)!==0&&Ht!==null&&!Ht.m;if(Ae&&mo(t,"name",{value:"$effect"}),e){var i=Ht;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:yt,reaction:Rt})}else{var o=Eo(t);return o}}function kd(t){return rf("$effect.pre"),Ae&&mo(t,"name",{value:"$effect.pre"}),en(t)}function bu(t){let e=Ta(64,t,!0);return()=>{Qi(e)}}function Zg(t){let e=Ta(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Kn(e,()=>{Qi(e),o(void 0)}):(Qi(e),o(void 0))})}function Eo(t){return Ta(4,t,!1)}function en(t){return Ta(8,t,!0)}function B(t,e=[],i=Kr){if(Ae)return en(()=>{var r=yt,s=()=>t(...l.map(n));mo(r.fn,"name",{value:"{expression}"}),mo(s,"name",{value:"{expression}"});let l=e.map(i);Yi(s)});let o=e.map(i);return Yi(()=>t(...o.map(n)))}function Yi(t,e=0){return Ta(24|e,t,!0)}function Ni(t,e=!0){return Ta(40,t,!0,e)}function sf(t){var e=t.teardown;if(e!==null){let i=ys,o=Rt;of(!0),qi(null);try{e.call(null)}finally{of(i),qi(o)}}}function af(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 Jg(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&&(lf(t.nodes_start,t.nodes_end),i=!0),af(t,e&&!i),Ld(t,0),Cn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();sf(t);var r=t.parent;r!==null&&r.first!==null&&df(t),Ae&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function lf(t,e){for(;t!==null;){var i=t===e?null:Jo(t);t.remove(),t=i}}function df(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 Kn(t,e){var i=[];$u(t,i,!0),cf(i,()=>{Qi(t),e&&e()})}function cf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function $u(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,s=(o.f&65536)!==0||(o.f&32)!==0;$u(o,e,s?i:!1),o=r}}}function Ss(t){eh(t,!0)}function eh(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;eh(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Md=[],uf=[];function th(){var t=Md;Md=[],Qs(t)}function M$(){var t=uf;uf=[],Qs(t)}function En(t){Md.length===0&&queueMicrotask(th),Md.push(t)}function ih(){Md.length>0&&th(),uf.length>0&&M$()}function nh(t){var e=yt;if(Ae&&t instanceof Error&&V$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Vd(t,e)}function Vd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var oh=new WeakSet;function V$(t,e){var l,d;if(oh.has(t))return;oh.add(t);let i=Yo(t,"message");if(!(i&&!i.configurable)){for(var o=Id?" ":" ",r=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,El,Pl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var tt=!1;function go(t){tt=t}var $t;function Si(t){if(t===null)throw Qs(),ss;return $t=t}function Wi(){return Si(Xo($t))}function w(t){if(tt){if(Xo($t)!==null)throw Qs(),ss;$t=t}}function ui(t=1){if(tt){for(var e=t,i=$t;e--;)i=Xo(i);$t=i}}function ya(){for(var t=0,e=$t;;){if(e.nodeType===pr){var i=e.data;if(i===va){if(t===0)return e;t-=1}else(i===zs||i===Ws)&&(t+=1)}var o=Xo(e);e.remove(),e=o}}function mu(t){if(!t||t.nodeType!==pr)throw Qs(),ss;return t.data}function Gg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Sl(this[a])===s){fu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Sl(this[a])===s){fu("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=r.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(Sl(this[a])===s){fu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var xa,Yg,Id,jg,Xg;function vu(){if(xa===void 0){xa=window,Yg=document,Id=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;jg=Qo(e,"firstChild").get,Xg=Qo(e,"nextSibling").get,Wp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Wp(i)&&(i.__t=void 0),ke&&(t.__svelte_meta=null,Gg())}}function En(t=""){return document.createTextNode(t)}function Ti(t){return jg.call(t)}function Xo(t){return Xg.call(t)}function T(t,e){if(!tt)return Ti(t);var i=Ti($t);if(i===null)i=$t.appendChild(En());else if(e&&i.nodeType!==_l){var o=En();return i==null||i.before(o),Si(o),o}return Si(i),i}function de(t,e){var r,s;if(!tt){var i=Ti(t);return i.nodeType===8&&i.data===""?Xo(i):i}if(e&&((r=$t)==null?void 0:r.nodeType)!==_l){var o=En();return(s=$t)==null||s.before(o),Si(o),o}return $t}function A(t,e=1,i=!1){let o=tt?$t:t;for(var r;e--;)r=o,o=Xo(o);if(!tt)return o;if(i&&(o==null?void 0:o.nodeType)!==_l){var s=En();return o===null?r==null||r.after(s):o.before(s),Si(s),s}return Si(o),o}function Ed(t){t.textContent=""}function nf(t){bt===null&&Rt===null&&kg(t),Rt!==null&&(Rt.f&256)!==0&&bt===null&&Pg(),ys&&Eg(t)}function N$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function wa(t,e,i,o=!0){var a;var r=bt;if(ke)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Ht,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(ke&&(s.component_function=fr),i)try{Il(s),s.f|=32768}catch(u){throw zi(s),u}else e!==null&&Cd(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(r!==null&&N$(s,r),Rt!==null&&(Rt.f&2)!==0)){var d=Rt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Ao(t){let e=wa(8,null,!1);return In(e,1024),e.teardown=t,e}function De(t){var r;nf("$effect");var e=bt!==null&&(bt.f&32)!==0&&Ht!==null&&!Ht.m;if(ke&&mo(t,"name",{value:"$effect"}),e){var i=Ht;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:bt,reaction:Rt})}else{var o=Lo(t);return o}}function Ad(t){return nf("$effect.pre"),ke&&mo(t,"name",{value:"$effect.pre"}),Zo(t)}function _u(t){let e=wa(64,t,!0);return()=>{zi(e)}}function Jg(t){let e=wa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Yn(e,()=>{zi(e),o(void 0)}):(zi(e),o(void 0))})}function Lo(t){return wa(4,t,!1)}function Zo(t){return wa(8,t,!0)}function D(t,e=[],i=Wr){if(ke)return Zo(()=>{var r=bt,s=()=>t(...l.map(n));mo(r.fn,"name",{value:"{expression}"}),mo(s,"name",{value:"{expression}"});let l=e.map(i);Ki(s)});let o=e.map(i);return Ki(()=>t(...o.map(n)))}function Ki(t,e=0){return wa(24|e,t,!0)}function Mi(t,e=!0){return wa(40,t,!0,e)}function rf(t){var e=t.teardown;if(e!==null){let i=ys,o=Rt;tf(!0),Ui(null);try{e.call(null)}finally{tf(i),Ui(o)}}}function sf(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:zi(i,e),i=o}}function eh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&zi(e),e=i}}function zi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(af(t.nodes_start,t.nodes_end),i=!0),sf(t,e&&!i),Ld(t,0),In(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();rf(t);var r=t.parent;r!==null&&r.first!==null&&lf(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function af(t,e){for(;t!==null;){var i=t===e?null:Xo(t);t.remove(),t=i}}function lf(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=[];bu(t,i,!0),df(i,()=>{zi(t),e&&e()})}function df(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function bu(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,s=(o.f&65536)!==0||(o.f&32)!==0;bu(o,e,s?i:!1),o=r}}}function Ss(t){th(t,!0)}function th(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;th(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Md=[],cf=[];function ih(){var t=Md;Md=[],qs(t)}function O$(){var t=cf;cf=[],qs(t)}function Pn(t){Md.length===0&&queueMicrotask(ih),Md.push(t)}function oh(){Md.length>0&&ih(),cf.length>0&&O$()}function rh(t){var e=bt;if(ke&&t instanceof Error&&D$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Vd(t,e)}function Vd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var nh=new WeakSet;function D$(t,e){var l,d;if(nh.has(t))return;nh.add(t);let i=Qo(t,"message");if(!(i&&!i.configurable)){for(var o=Id?" ":" ",r=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
39
- ${o}in ${(d=s.function)==null?void 0:d[Hn].split("/").pop()}`,s=s.p;mo(t,"message",{value:t.message+`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Kn].split("/").pop()}`,s=s.p;mo(t,"message",{value:t.message+`
40
40
  ${r}
41
41
  `}),t.stack&&mo(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var Ca=!1,Ll=null,Ia=!1,ys=!1;function of(t){ys=t}var Rd=[],Nd=[],Rt=null,ur=!1;function qi(t){Rt=t}var yt=null;function vo(t){yt=t}var Zo=null;function fu(t){Rt!==null&&Rt.f&2097152&&(Zo===null?Zo=[Rt,[t]]:Zo[1].push(t))}var Pn=null,pr=0,cr=null;function Ug(t){cr=t}var ah=1,xu=0,xs=!1,wu=null;function Sd(){return++ah}function xa(t){var m,f;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,s,l=(e&512)!==0,d=o&&yt!==null&&!xs,a=i.length;if(l||d){var u=t,p=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((m=s==null?void 0:s.reactions)!=null&&m.includes(u)))&&((f=s.reactions)!=null?f:s.reactions=[]).push(u);l&&(u.f^=512),d&&p!==null&&(p.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],xa(s)&&tf(s),s.wv>t.wv)return!0}(!o||yt!==null&&!xs)&&Cn(t,1024)}return!1}function lh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Zo!=null&&Zo[1].includes(t)&&Zo[0]===Rt||((s.f&2)!==0?lh(s,e,!1):e===s&&(i?Cn(s,2048):(s.f&1024)!==0&&Cn(s,4096),Cd(s)))}}function pu(t){var b,y;var e=Pn,i=pr,o=cr,r=Rt,s=xs,l=Zo,d=Ht,a=ur,u=t.f;Pn=null,pr=0,cr=null,xs=(u&256)!==0&&(ur||!Ia||Rt===null),Rt=(u&96)===0?t:null,Zo=null,yd(t.ctx),ur=!1,xu++,t.f|=2097152;try{var p=(0,t.fn)(),m=t.deps;if(Pn!==null){var f;if(Ld(t,pr),m!==null&&pr>0)for(m.length=pr+Pn.length,f=0;f<Pn.length;f++)m[pr+f]=Pn[f];else t.deps=m=Pn;if(!xs||(u&2)!==0&&t.reactions!==null)for(f=pr;f<m.length;f++)((y=(b=m[f]).reactions)!=null?y:b.reactions=[]).push(t)}else m!==null&&pr<m.length&&(Ld(t,pr),m.length=pr);if(ps()&&cr!==null&&!ur&&m!==null&&(t.f&6146)===0)for(f=0;f<cr.length;f++)lh(cr[f],t);return r!==null&&r!==t&&(xu++,cr!==null&&(o===null?o=cr:o.push(...cr))),p}catch($){nh($)}finally{Pn=e,pr=i,cr=o,Rt=r,xs=s,Zo=l,yd(d),ur=a,t.f^=2097152}}function R$(t,e){let i=e.reactions;if(i!==null){var o=yg.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&&(Pn===null||!Pn.includes(e))&&(Cn(e,4096),(e.f&768)===0&&(e.f^=512),uu(e),Ld(e,0))}function Ld(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)R$(t,i[o])}function Pl(t){var e=t.f;if((e&16384)===0){Cn(t,1024);var i=yt,o=Ia;if(yt=t,Ia=!0,Ae){var r=lr;xd(t.component_function)}try{(e&16)!==0?Jg(t):af(t),sf(t);var s=pu(t);if(t.teardown=typeof s=="function"?s:null,t.wv=ah,Ae&&us&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Sd(),l.set_during_effect=!1);Ae&&Nd.push(t)}finally{Ia=o,yt=i,Ae&&xd(r)}}}function rh(){console.error("Last ten effects were: ",Nd.slice(-10).map(t=>t.fn)),Nd=[]}function N$(){try{Ag()}catch(t){if(Ae&&mo(t,"stack",{value:""}),Ll!==null)if(Ae)try{Vd(t,Ll)}catch(e){throw rh(),e}else Vd(t,Ll);else throw Ae&&rh(),t}}function ff(){var t=Ia;try{var e=0;for(Ia=!0;Rd.length>0;){e++>1e3&&N$();var i=Rd,o=i.length;Rd=[];for(var r=0;r<o;r++){var s=D$(i[r]);O$(s)}Il.clear()}}finally{Ca=!1,Ia=t,Ll=null,Ae&&(Nd=[])}}function O$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&xa(o)&&(Pl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?df(o):o.fn=null))}}function Cd(t){Ca||(Ca=!0,queueMicrotask(ff));for(var e=Ll=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Rd.push(e)}function D$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:xa(i)&&Pl(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 Ml(t){var e;for(t&&(Ca=!0,ff(),Ca=!0,e=t());;){if(ih(),Rd.length===0)return Ca=!1,Ll=null,Ae&&(Nd=[]),e;Ca=!0,ff()}}async function ho(){await Promise.resolve(),Ml()}function n(t){var e=t.f,i=(e&2)!==0;if(wu!==null&&wu.add(t),Rt!==null&&!ur){if(!(Zo!=null&&Zo[1].includes(t))||Zo[0]!==Rt){var o=Rt.deps;t.rv<xu&&(t.rv=xu,Pn===null&&o!==null&&o[pr]===t?pr++:Pn===null?Pn=[t]:(!xs||!Pn.includes(t))&&Pn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,xa(r)&&tf(r)),Ae&&us&&!ur&&$d!==null&&Rt!==null&&$d.reaction===Rt)if(t.trace)t.trace();else{var l=$s("TracedAt");if(l){var d=$d.entries.get(t);d===void 0&&(d={traces:[]},$d.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ys&&Il.has(t)?Il.get(t):t.v}function Pt(t){var e=ur;try{return ur=!0,t()}finally{ur=e}}var B$=-7169;function Cn(t,e){t.f=t.f&B$|e}function Tu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jo in t)Su(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&jo in i&&Su(i)}}}function Su(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{Su(t[o],e)}catch(r){}let i=_a(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=su(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function mf(t,e){if(e){let i=document.body;t.autofocus=!0,En(()=>{document.activeElement===i&&t.focus()})}}function Od(t){var e=Rt,i=yt;qi(null),vo(null);try{return t()}finally{qi(e),vo(i)}}var vf=new Set,Cu=new Set;function Ea(t){if(!tt)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function gf(t,e,i,o={}){function r(s){if(o.capture||Vl.call(e,s),!s.cancelBubble)return Od(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?En(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function _t(t,e,i,o,r){var s={capture:o,passive:r},l=gf(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Io(()=>{e.removeEventListener(t,l,s)})}function rt(t){for(var e=0;e<t.length;e++)vf.add(t[e]);for(var i of Cu)i(t)}function Vl(t){var I;var e=this,i=e.ownerDocument,o=t.type,r=((I=t.composedPath)==null?void 0:I.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){mo(t,"currentTarget",{configurable:!0,get(){return s||i}});var p=Rt,m=yt;qi(null),vo(null);try{for(var f,b=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var $=s["__"+o];if($!=null&&(!s.disabled||t.target===s))if(sr($)){var[S,...C]=$;S.apply(s,[t,...C])}else $.call(s,t)}catch(R){f?b.push(R):f=R}if(t.cancelBubble||y===e||y===null)break;s=y}if(f){for(let R of b)queueMicrotask(()=>{throw R});throw f}}finally{t.__root=e,delete t.currentTarget,qi(p),vo(m)}}}var H$;function dh(){H$=void 0}function Rl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Po(t,e){var i=yt;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,s=!t.startsWith("<!>");return()=>{if(tt)return Po(xt,null),xt;r===void 0&&(r=Rl(s?t:"<!>"+t),i||(r=Ti(r)));var l=o||Id?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ti(l),a=l.lastChild;Po(d,a)}else Po(l,l);return l}}function W$(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(tt)return Po(xt,null),xt;if(!l){var d=Rl(s),a=Ti(d);if(r)for(l=document.createDocumentFragment();Ti(a);)l.appendChild(Ti(a));else l=Ti(a)}var u=l.cloneNode(!0);if(r){var p=Ti(u),m=u.lastChild;Po(p,m)}else Po(u,u);return u}}function Ee(t,e){return W$(t,e,"svg")}function ms(t=""){if(!tt){var e=In(t+"");return Po(e,e),e}var i=xt;return i.nodeType!==$l&&(i.before(i=In()),Si(i)),Po(i,i),i}function ke(){if(tt)return Po(xt,null),xt;var t=document.createDocumentFragment(),e=document.createComment(""),i=In();return t.append(e,i),Po(e,i),t}function _(t,e){if(tt){yt.nodes_end=xt,Gi();return}t!==null&&t.before(e)}var K$=/\r/g;function uh(t){t=t.replace(K$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function ph(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var q$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function fh(t){return q$.includes(t)}var Q$=["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 G$={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 mh(t){var e;return t=t.toLowerCase(),(e=G$[t])!=null?e:t}var ZE=[...Q$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Y$=["touchstart","touchmove"];function vh(t){return Y$.includes(t)}var j$=["$state","$state.raw","$derived","$derived.by"],JE=[...j$,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var X$=["textarea","script","style","title"];function gh(t){return X$.includes(t)}function Iu(t){return t==null?void 0:t.replace(/\//g,"/​")}var Dd=!0;function Eu(t){Dd=t}function pe(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 hh(t,e)}function _f(t,e){var l;gu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=tt,r=xt;try{for(var s=Ti(i);s&&(s.nodeType!==ar||s.data!==Ws);)s=Jo(s);if(!s)throw ds;go(!0),Si(s),Gi();let d=hh(t,{...e,anchor:s});if(xt===null||xt.nodeType!==ar||xt.data!==ha)throw Gs(),ds;return go(!1),d}catch(d){if(d===ds)return e.recover===!1&&kg(),gu(),Ed(i),go(!1),Gr(t,e);throw d}finally{go(o),Si(r),dh()}}var Nl=new Map;function hh(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){gu();var d=new Set,a=m=>{for(var f=0;f<m.length;f++){var b=m[f];if(!d.has(b)){d.add(b);var y=vh(b);e.addEventListener(b,Vl,{passive:y});var $=Nl.get(b);$===void 0?(document.addEventListener(b,Vl,{passive:y}),Nl.set(b,1)):Nl.set(b,$+1)}}};a(bd(vf)),Cu.add(a);var u=void 0,p=Zg(()=>{var m=i!=null?i:e.appendChild(In());return Ni(()=>{if(s){F({});var f=Ht;f.c=s}r&&(o.$$events=r),tt&&Po(m,null),Dd=l,u=t(m,o)||{},Dd=!0,tt&&(yt.nodes_end=xt),s&&H()}),()=>{var y;for(var f of d){e.removeEventListener(f,Vl);var b=Nl.get(f);--b===0?(document.removeEventListener(f,Vl),Nl.delete(f)):Nl.set(f,b)}Cu.delete(a),m!==i&&((y=m.parentNode)==null||y.removeChild(m))}});return hf.set(u,p),u}var hf=new WeakMap;function Pa(t,e){let i=hf.get(t);return i?(hf.delete(t),i(e)):(Ae&&Kg(),Promise.resolve())}function ni(t,e,...i){var o=t,r=ht,s;Yi(()=>{r!==(r=e())&&(s&&(Qi(s),s=null),Ae&&r==null&&Lg(),s=Ni(()=>r(o,...i)))},65536),tt&&(o=xt)}if(Ae){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Rg(e)},set:o=>{i=o}})}};t1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var t1;function Nt(t){Ht===null&&wl("onMount"),cs&&Ht.l!==null?e1(Ht).m.push(t):Oe(()=>{let e=Pt(t);if(typeof e=="function")return e})}function hn(t){Ht===null&&wl("onDestroy"),Nt(()=>()=>Pt(t))}function e1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var _h=new Map;function bh(t,e){var i=_h.get(t);i||(i=new Set,_h.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){tt&&i===0&&Gi();var r=t,s=null,l=null,d=ji,a=i>0?65536:0,u=!1;let p=(f,b=!0)=>{u=!0,m(b,f)},m=(f,b)=>{if(d===(d=f))return;let y=!1;if(tt&&o!==-1){if(i===0){let S=vu(r);S===Ws?o=0:S===Ks?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(r=wa(),Si(r),go(!1),y=!0,o=-1)}d?(s?Ss(s):b&&(s=Ni(()=>b(r))),l&&Kn(l,()=>{l=null})):(l?Ss(l):b&&(l=Ni(()=>b(r,[i+1,o]))),s&&Kn(s,()=>{s=null})),y&&go(!0)};Yi(()=>{u=!1,e(p),u||m(null,null)},a),tt&&(r=xt)}function Ts(t,e,i){tt&&Gi();var o=t,r=ji,s,l=ps()?Tg:yl;Yi(()=>{l(r,r=e())&&(s&&Kn(s),s=Ni(()=>i(o)))}),tt&&(o=xt)}var js=null;function yf(t){js=t}function Bd(t,e){return e}function n1(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)$u(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;Ed(a),a.append(i),o.clear(),Ys(t,e[0].prev,e[s-1].next)}cf(r,()=>{for(var u=0;u<s;u++){var p=e[u];d||(o.delete(p.k),Ys(t,p.prev,p.next)),Qi(p.e,!d)}})}function yi(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=tt?Si(Ti(u)):u.appendChild(In())}tt&&Gi();var p=null,m=!1,f=Tn(()=>{var b=i();return sr(b)?b:b==null?[]:bd(b)});Yi(()=>{var b=n(f),y=b.length;if(m&&y===0)return;m=y===0;let $=!1;if(tt){var S=vu(l)===Ks;S!==(y===0)&&(l=wa(),Si(l),go(!1),$=!0)}if(tt){for(var C=null,I,R=0;R<y;R++){if(xt.nodeType===ar&&xt.data===ha){l=xt,$=!0,go(!1);break}var E=b[R],P=o(E,R);I=xh(xt,d,C,null,E,P,R,r,e,i),d.items.set(P,I),C=I}y>0&&Si(wa())}tt||r1(b,d,l,r,e,o,i),s!==null&&(y===0?p?Ss(p):p=Ni(()=>s(l)):p!==null&&Kn(p,()=>{p=null})),$&&go(!0),n(f)}),tt&&(l=xt)}function r1(t,e,i,o,r,s,l){var j,ge,ce,re;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,p=e.items,m=e.first,f=m,b,y=null,$,S=[],C=[],I,R,E,P;if(d)for(P=0;P<u;P+=1)I=t[P],R=s(I,P),E=p.get(R),E!==void 0&&((j=E.a)==null||j.measure(),($!=null?$:$=new Set).add(E));for(P=0;P<u;P+=1){if(I=t[P],R=s(I,P),E=p.get(R),E===void 0){var O=f?f.e.nodes_start:i;y=xh(O,e,y,y===null?e.first:y.next,I,R,P,o,r,l),p.set(R,y),S=[],C=[],f=y.next;continue}if(a&&s1(E,I,P,r),(E.e.f&8192)!==0&&(Ss(E.e),d&&((ge=E.a)==null||ge.unfix(),($!=null?$:$=new Set).delete(E))),E!==f){if(b!==void 0&&b.has(E)){if(S.length<C.length){var D=C[0],U;y=D.prev;var z=S[0],G=S[S.length-1];for(U=0;U<S.length;U+=1)$h(S[U],D,i);for(U=0;U<C.length;U+=1)b.delete(C[U]);Ys(e,z.prev,G.next),Ys(e,y,z),Ys(e,G,D),f=D,y=G,P-=1,S=[],C=[]}else b.delete(E),$h(E,f,i),Ys(e,E.prev,E.next),Ys(e,E,y===null?e.first:y.next),Ys(e,y,E),y=E;continue}for(S=[],C=[];f!==null&&f.k!==R;)(f.e.f&8192)===0&&(b!=null?b:b=new Set).add(f),C.push(f),f=f.next;if(f===null)continue;E=f}S.push(E),y=E,f=E.next}if(f!==null||b!==void 0){for(var le=b===void 0?[]:bd(b);f!==null;)(f.e.f&8192)===0&&le.push(f),f=f.next;var X=le.length;if(X>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(P=0;P<X;P+=1)(ce=le[P].a)==null||ce.measure();for(P=0;P<X;P+=1)(re=le[P].a)==null||re.fix()}n1(e,le,oe,p)}}d&&En(()=>{var _e;if($!==void 0)for(E of $)(_e=E.a)==null||_e.apply()}),yt.first=e.first&&e.first.e,yt.last=y&&y.e}function s1(t,e,i,o){(o&1)!==0&&El(t.v,e),(o&2)!==0?El(t.i,i):t.i=i}function xh(t,e,i,o,r,s,l,d,a,u){var p=js,m=(a&1)!==0,f=(a&16)===0,b=m?f?fs(r,!1,!1):Er(r):r,y=(a&2)===0?l:Er(l);Ae&&m&&(b.trace=()=>{var S=typeof y=="number"?l:y.v;u()[S]});var $={i:y,v:b,k:s,a:null,e:null,prev:i,next:o};js=$;try{return $.e=Ni(()=>d(t,b,y,u),tt),$.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{js=p}}function $h(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Jo(s);r.before(s),s=l}}function Ys(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 a1(t,e,i){var s,l;if(!e||e===uh(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=lr)!=null&&l[Hn]&&(o=`in ${lr[Hn]}`),Wg(Iu(o))}function Fd(t,e,i=!1,o=!1,r=!1){var s=t,l="";B(()=>{var b;var d=yt;if(l===(l=(b=e())!=null?b:"")){tt&&Gi();return}if(d.nodes_start!==null&&(lf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(tt){for(var a=xt.data,u=Gi(),p=u;u!==null&&(u.nodeType!==ar||u.data!=="");)p=u,u=Jo(u);if(u===null)throw Gs(),ds;Ae&&!r&&a1(u.parentNode,a,l),Po(xt,p),s=Si(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var f=Rl(m);if((i||o)&&(f=Ti(f)),Po(Ti(f),f.lastChild),i||o)for(;Ti(f);)s.before(Ti(f));else s.before(f)}})}function Oi(t,e,i){tt&&Gi();var o=t,r,s;Yi(()=>{r!==(r=e())&&(s&&(Kn(s),s=null),r&&(s=Ni(()=>i(o,r))))},65536),tt&&(o=xt)}function Aa(t,e,i,o,r,s){var y;let l=tt;tt&&Gi();var d=Ae&&s&&((y=Ht)==null?void 0:y.function[Hn]),a,u,p=null;tt&&xt.nodeType===lu&&(p=xt,Gi());var m=tt?xt:t,f,b=js;Yi(()=>{let $=e()||null;var S=r?r():i||$==="svg"?nu:null;if($!==a){var C=js;yf(b),f&&($===null?Kn(f,()=>{f=null,u=null}):$===u?Ss(f):(Qi(f),Eu(!1))),$&&$!==u&&(f=Ni(()=>{if(p=tt?p:S?document.createElementNS(S,$):document.createElement($),Ae&&s&&(p.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Po(p,p),o){tt&&gh($)&&p.append(document.createComment(""));var I=tt?Ti(p):p.appendChild(In());tt&&(I===null?go(!1):Si(I)),o(p,I)}yt.nodes_end=p,m.before(p)})),a=$,a&&(u=a),Eu(!0),yf(C)}},65536),l&&(go(!0),Si(m))}var wf;function wh(t){return wf=t.target,new xf(t)}var Cs,Pr,xf=class{constructor(e){zs(this,Cs);zs(this,Pr);var s,l;var i=new Map,o=(d,a)=>{var u=fs(a,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===bl?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var p;return N((p=i.get(a))!=null?p:o(a,u),u),Reflect.set(d,a,u)}});_l(this,Pr,(e.hydrate?_f:Gr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ml(),_l(this,Cs,r.$$events);for(let d of Object.keys(Ri(this,Pr)))d==="$set"||d==="$destroy"||d==="$on"||mo(this,d,{get(){return Ri(this,Pr)[d]},set(a){Ri(this,Pr)[d]=a},enumerable:!0});Ri(this,Pr).$set=d=>{Object.assign(r,d)},Ri(this,Pr).$destroy=()=>{Pa(Ri(this,Pr))}}$set(e){Ri(this,Pr).$set(e)}$on(e,i){Ri(this,Cs)[e]=Ri(this,Cs)[e]||[];let o=(...r)=>i.call(this,...r);return Ri(this,Cs)[e].push(o),()=>{Ri(this,Cs)[e]=Ri(this,Cs)[e].filter(r=>r!==o)}}$destroy(){Ri(this,Pr).$destroy()}};Cs=new WeakMap,Pr=new WeakMap;function q(t,e){En(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=wf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ae&&bh(e.hash,d)}})}function Is(t,e){var i=void 0,o;Yi(()=>{i!==(i=e())&&(o&&(Qi(o),o=null),i&&(o=Ni(()=>{Eo(()=>i(t))})))})}function Sh(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=Sh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Th(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Sh(t))&&(o&&(o+=" "),o+=e);return o}function Hd(t){return typeof t=="object"?Th(t):t!=null?t:""}var Ch=[...`
44
- \r\f \v\uFEFF`];function Eh(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 s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||Ch.includes(o[l-1]))&&(d===o.length||Ch.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Ih(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function Sf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ph(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 s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Sf)),r&&a.push(...Object.keys(r).map(Sf));var u=0,p=-1;let $=t.length;for(var m=0;m<$;m++){var f=t[m];if(d?f==="/"&&t[m-1]==="*"&&(d=!1):s?s===f&&(s=!1):f==="/"&&t[m+1]==="*"?d=!0:f==='"'||f==="'"?s=f:f==="("?l++:f===")"&&l--,!d&&s===!1&&l===0){if(f===":"&&p===-1)p=m;else if(f===";"||m===$-1){if(p!==-1){var b=Sf(t.substring(u,p).trim());if(!a.includes(b)){f!==";"&&m++;var y=t.substring(u,m).trim();i+=" "+y+";"}}u=m+1,p=-1}}}}return o&&(i+=Ih(o)),r&&(i+=Ih(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function se(t,e,i,o,r,s){var l=t.__className;if(tt||l!==i||l===void 0){var d=Eh(i,o,s);(!tt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function Tf(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function Qe(t,e,i,o){var r=t.__style;if(tt||r!==e){var s=Ph(e,o);(!tt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Tf(t,i==null?void 0:i[0],o[0]),Tf(t,i==null?void 0:i[1],o[1],"important")):Tf(t,i,o));return o}function Ud(t,e,i){if(t.multiple){if(e==null)return;if(!sr(e))return qg();for(var o of t.options)o.selected=e.includes(Ah(o));return}for(o of t.options){var r=Ah(o);if(jp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Cf(t){var e=new MutationObserver(()=>{Ud(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Io(()=>{e.disconnect()})}function Ah(t){return"__value"in t?t.__value:t.value}var Ol=Symbol("class"),Dl=Symbol("style"),Mh=Symbol("is custom element"),Vh=Symbol("is html");function Rh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function He(t,e,i,o){var r=Oh(t);if(tt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||v1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Sg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Dh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Nh(t,e,i,o,r=!1){var E;var s=Oh(t),l=s[Mh],d=!s[Vh];let a=tt&&l;a&&go(!1);var u=e||{},p=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=Hd(i.class):(o||i[Ol])&&(i.class=null),i[Dl]&&((E=i.style)!=null||(i.style=null));var f=Dh(t);for(let P in i){let O=i[P];if(p&&P==="value"&&O==null){t.value=t.__value="",u[P]=O;continue}if(P==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,b,O,o,e==null?void 0:e[Ol],i[Ol]),u[P]=O,u[Ol]=i[Ol];continue}if(P==="style"){Qe(t,O,e==null?void 0:e[Dl],i[Dl]),u[P]=O,u[Dl]=i[Dl];continue}var y=u[P];if(!(O===y&&!(O===void 0&&t.hasAttribute(P)))){u[P]=O;var $=P[0]+P[1];if($!=="$$")if($==="on"){let D={},U="$$"+P,z=P.slice(2);var S=fh(z);if(ph(z)&&(z=z.slice(0,-7),D.capture=!0),!S&&y){if(O!=null)continue;t.removeEventListener(z,u[U],D),u[U]=null}if(O!=null)if(S)t[`__${z}`]=O,rt([z]);else{let G=function(le){u[P].call(this,le)};var R=G;u[U]=gf(z,t,G,D)}else S&&(t[`__${z}`]=void 0)}else if(P==="style")He(t,P,O);else if(P==="autofocus")mf(t,!!O);else if(!l&&(P==="__value"||P==="value"&&O!=null))t.value=t.__value=O;else if(P==="selected"&&p)Rh(t,O);else{var C=P;d||(C=mh(C));var I=C==="defaultValue"||C==="defaultChecked";if(O==null&&!l&&!I)if(s[P]=null,C==="value"||C==="checked"){let D=t,U=e===void 0;if(C==="value"){let z=D.defaultValue;D.removeAttribute(C),D.defaultValue=z,D.value=D.__value=U?z:null}else{let z=D.defaultChecked;D.removeAttribute(C),D.defaultChecked=z,D.checked=U?z:!1}}else t.removeAttribute(P);else I||f.includes(C)&&(l||typeof O!="string")?t[C]=O:typeof O!="function"&&He(t,C,O,r)}}}return a&&go(!0),u}function Xi(t,e,i=[],o,r=!1,s=Kr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",p=!1;if(Yi(()=>{var f=e(...l.map(n)),b=Nh(t,d,f,o,r);p&&u&&"value"in f&&Ud(t,f.value,!1);for(let $ of Object.getOwnPropertySymbols(a))f[$]||Qi(a[$]);for(let $ of Object.getOwnPropertySymbols(f)){var y=f[$];$.description===Up&&(!d||y!==d[$])&&(a[$]&&Qi(a[$]),a[$]=Ni(()=>Is(t,()=>y))),b[$]=y}d=b}),u){var m=t;Eo(()=>{Ud(m,d.value),Cf(m)})}p=!0}function Oh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Mh]:t.nodeName.includes("-"),[Vh]:t.namespaceURI===hg}}var kh=new Map;function Dh(t){var e=kh.get(t.nodeName);if(e)return e;kh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=su(o);for(var s in i)i[s].set&&e.push(s);o=_a(o)}return e}function v1(t,e,i){var o;Ae&&(e==="srcset"&&g1(t,i)||If((o=t.getAttribute(e))!=null?o:"",i)||zg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function If(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Lh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function g1(t,e){var i=Lh(t.srcset),o=Lh(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(If(i[l][0],r)||If(r,i[l][0])))}var h1=ru?()=>performance.now():()=>Date.now(),Yr={tick:t=>(ru?requestAnimationFrame:ht)(t),now:()=>h1(),tasks:new Set};function Bh(){let t=Yr.now();Yr.tasks.forEach(e=>{e.c(t)||(Yr.tasks.delete(e),e.f())}),Yr.tasks.size!==0&&Yr.tick(Bh)}function Fh(t){let e;return Yr.tasks.size===0&&Yr.tick(Bh),{promise:new Promise(i=>{Yr.tasks.add(e={c:t,f:i})}),abort(){Yr.tasks.delete(e)}}}function Pu(t,e){Od(()=>{t.dispatchEvent(new CustomEvent(e))})}function y1(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 Hh(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=y1(r.trim());e[l]=s.trim()}return e}var x1=t=>t;function jr(t,e,i,o){var R;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,p=e.inert,m=e.style.overflow,f,b;function y(){var O;var E=Rt,P=yt;qi(null),vo(null);try{return u!=null?u:u=i()(e,(O=o==null?void 0:o())!=null?O:{},{direction:a})}finally{qi(E),vo(P)}}var $={is_global:d,in(){var E;if(e.inert=p,!r){b==null||b.abort(),(E=b==null?void 0:b.reset)==null||E.call(b);return}s||f==null||f.abort(),Pu(e,"introstart"),f=Ef(e,y(),b,1,()=>{Pu(e,"introend"),f==null||f.abort(),f=u=void 0,e.style.overflow=m})},out(E){if(!s){E==null||E(),u=void 0;return}e.inert=!0,Pu(e,"outrostart"),b=Ef(e,y(),f,0,()=>{Pu(e,"outroend"),E==null||E()})},stop:()=>{f==null||f.abort(),b==null||b.abort()}},S=yt;if(((R=S.transitions)!=null?R:S.transitions=[]).push($),r&&Dd){var C=d;if(!C){for(var I=S.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);C=!I||(I.f&32768)!==0}C&&Eo(()=>{Pt(()=>$.in())})}}function Ef(t,e,i,o,r){var s=o===1;if(qs(e)){var l,d=!1;return En(()=>{if(!d){var S=e({direction:s?"in":"out"});l=Ef(t,S,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:ht,deactivate:ht,reset:ht,t:()=>o};let{delay:a=0,css:u,tick:p,easing:m=x1}=e;var f=[];if(s&&i===void 0&&(p&&p(0,1),u)){var b=Hh(u(0,1));f.push(b,b)}var y=()=>1-o,$=t.animate(f,{duration:a,fill:"forwards"});return $.onfinish=()=>{var z;$.cancel();var S=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var C=o-S,I=e.duration*Math.abs(C),R=[];if(I>0){var E=!1;if(u)for(var P=Math.ceil(I/16.666666666666668),O=0;O<=P;O+=1){var D=S+C*m(O/P),U=Hh(u(D,1-D));R.push(U),E||(E=U.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var G=$.currentTime;return S+C*m(G/I)},p&&Fh(()=>{if($.playState!=="running")return!1;var G=y();return p(G,1-G),!0})}$=t.animate(R,{duration:I,fill:"forwards"}),$.onfinish=()=>{y=()=>o,p==null||p(o,1-o),r()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=ht)},deactivate:()=>{r=ht},reset:()=>{o===0&&(p==null||p(1,0))},t:()=>y()}}function Pf(t,e,i){var o=Yo(t,e);o&&o.set&&(t[e]=i,Io(()=>{t[e]=null}))}var Xs,Bl,zd,ku,Uh,Lu=class Lu{constructor(e){zs(this,ku);zs(this,Xs,new WeakMap);zs(this,Bl);zs(this,zd);_l(this,zd,e)}observe(e,i){var o=Ri(this,Xs).get(e)||new Set;return o.add(i),Ri(this,Xs).set(e,o),vg(this,ku,Uh).call(this).observe(e,Ri(this,zd)),()=>{var r=Ri(this,Xs).get(e);r.delete(i),r.size===0&&(Ri(this,Xs).delete(e),Ri(this,Bl).unobserve(e))}}};Xs=new WeakMap,Bl=new WeakMap,zd=new WeakMap,ku=new WeakSet,Uh=function(){var e;return(e=Ri(this,Bl))!=null?e:_l(this,Bl,new ResizeObserver(i=>{for(var o of i){Lu.entries.set(o.target,o);for(var r of Ri(this,Xs).get(o.target)||[])r(o)}}))},rr(Lu,"entries",new WeakMap);var Af=Lu;var w1=new Af({box:"border-box"});function An(t,e,i){var o=w1.observe(t,()=>i(t[e]));Eo(()=>(Pt(()=>i(t[e])),o))}function zh(t,e){return t===e||(t==null?void 0:t[jo])===e}function ot(t={},e,i,o){return Eo(()=>{var r,s;return en(()=>{r=s,s=(o==null?void 0:o())||[],Pt(()=>{t!==i(...s)&&(e(t,...s),r&&zh(i(...r),t)&&e(null,...r))})}),()=>{En(()=>{s&&zh(i(...s),t)&&e(null,...s)})}}),t}function xo(t=!1){let e=Ht,i=e.l.u;if(!i)return;let o=()=>Tu(e.s);if(t){let r=0,s={},l=Kr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&kd(()=>{Wh(e,o),Qs(i.b)}),Oe(()=>{let r=Pt(()=>i.m.map(wg));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&Oe(()=>{Wh(e,o),Qs(i.a)})}function Wh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Wd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ht;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Fl=[];function Ar(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ht){let i=null,o=new Set;function r(d){if(yl(t,d)&&(t=d,i)){let a=!Fl.length;for(let u of o)u[1](),Fl.push(u,t);if(a){for(let u=0;u<Fl.length;u+=2)Fl[u][0](Fl[u+1]);Fl.length=0}}}function s(d){r(d(t))}function l(d,a=ht){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||ht),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function vi(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 s=e.length<2;return Ar(i,(l,d)=>{let a=!1,u=[],p=0,m=ht,f=()=>{if(p)return;m();let y=e(o?u[0]:u,l,d);s?l(y):m=typeof y=="function"?y:ht},b=r.map((y,$)=>Wd(y,S=>{u[$]=S,p&=~(1<<$),a&&f()},()=>{p|=1<<$}));return a=!0,f(),function(){Qs(b),m(),a=!1}})}function he(t){let e;return Wd(t,i=>e=i)(),e}var Mu=!1,kf=Symbol();function x(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:fs(void 0),unsubscribe:ht};if(o.store!==t&&!(kf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ht;else{var r=!0;o.unsubscribe=Wd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&kf in i?he(t):n(o.source)}function Ve(){let t={};function e(){Io(()=>{for(var i in t)t[i].unsubscribe();mo(t,kf,{enumerable:!1,value:!0})})}return[t,e]}function Lf(t){var e=Mu;try{return Mu=!1,[t(),Mu]}finally{Mu=e}}var A1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ae&&Vg(`${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 kn(t,e,i){return new Proxy(Ae?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},A1)}var k1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(qs(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];qs(r)&&(r=r());let s=Yo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(qs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Yo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===jo||e===bl)return!1;for(let i of t.props)if(qs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(qs(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},k1)}function Kh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var D,U;var r=(i&1)!==0,s=!cs||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Lf(()=>t[e]):u=t[e];var p=jo in t||bl in t,m=l&&((U=(D=Yo(t,e))==null?void 0:D.set)!=null?U:p&&e in t&&(z=>t[e]=z))||void 0,f=o,b=!0,y=!1,$=()=>(y=!0,b&&(b=!1,d?f=Pt(o):f=o),f);u===void 0&&o!==void 0&&(m&&s&&Mg(e),u=$(),m&&m(u));var S;if(s)S=()=>{var z=t[e];return z===void 0?$():(b=!0,y=!1,z)};else{var C=(r?Kr:Tn)(()=>t[e]);C.f|=131072,S=()=>{var z=n(C);return z!==void 0&&(f=void 0),z===void 0?f:z}}if((i&4)===0&&s)return S;if(m){var I=t.$$legacy;return function(z,G){return arguments.length>0?((!s||!G||I||a)&&m(G?S():z),z):S()}}var R=!1,E=!1,P=fs(u),O=Kr(()=>{var z=S(),G=n(P);return R?(R=!1,E=!0,G):(E=!1,P.v=z)});return l&&n(O),r||(O.equals=xl),function(z,G){if(wu!==null&&(R=E,S(),n(P)),arguments.length>0){let le=G?n(O):s&&l?ai(z):z;if(!O.equals(le)){if(R=!0,N(P,le),y&&f!==void 0&&(f=le),Kh(O))return z;Pt(()=>n(O))}return z}return Kh(O)?O.v:n(O)}}var L1;typeof HTMLElement=="function"&&(L1=class extends HTMLElement{constructor(e,i,o){super();rr(this,"$$ctor");rr(this,"$$s");rr(this,"$$c");rr(this,"$$cn",!1);rr(this,"$$d",{});rr(this,"$$r",!1);rr(this,"$$p_d",{});rr(this,"$$l",{});rr(this,"$$l_u",new Map);rr(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(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),_(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=M1(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Mf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=wh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=bu(()=>{en(()=>{var s;this.$$r=!0;for(let l of zp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Mf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Mf(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 zp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Mf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.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 M1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var qh="5";var Qh,Gh,Yh;typeof window!="undefined"&&((Yh=(Gh=(Qh=window.__svelte)!=null?Qh:window.__svelte={}).v)!=null?Yh:Gh.v=new Set).add(qh);var ad=require("@vkontakte/videoplayer-core/es2018"),fZ=require("@vkontakte/videoplayer-core/es2018"),sl=require("@vkontakte/videoplayer-shared/es2018"),i$=require("@vkontakte/videoplayer-statistics/es2018");var ka=require("@vkontakte/videoplayer-shared/es2018");var V1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:ka.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:ka.VideoQuality.Q_480P,highQualityLimit:ka.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!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},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},jh=t=>(0,ka.fillWithDefault)(t,V1),Xh=t=>Tl("ui-config",t),Mt=()=>Sl("ui-config");var Kd="vk_player_debug_panel_opened";var Zh="videoplayer",Jh="videoplayer";var vs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},e_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),t_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),i_=new Set(["ShiftRight","ShiftLeft"]);var o_=["TIMELINE"],qd=[...o_,"GRAPH_BUTTON"],Vf=[...o_,"PLAY_BUTTON"],Qd=[...qd,"PLAY_BUTTON"];var Xr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Xr||{}),Ma={xs:0,s:1,m:2,l:3,xl:4};var Gd=require("@vkontakte/videoplayer-shared/es2018"),n_=require("@vkontakte/videoplayer-core/es2018"),r_=require("@vkontakte/videoplayer-statistics/es2018");var Vu="prod",Va="1.1.76";var Ra=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var s_=Symbol("storeContext"),a_=Symbol("microStoresContext"),l_=(t,e)=>{Tl(s_,t),Tl(a_,e),Vu==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=Sl(s_);return(0,Gd.assertNonNullable)(t,"Store context is empty!"),t},wo=()=>{let t=Sl(a_);return(0,Gd.assertNonNullable)(t,"MicroStores context is empty!"),t},li=(t,e)=>Nu(t,t.getValue(),e),Nu=(t,e,i)=>Ar(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),d_=(t,e,i,o)=>{var D,U,z,G,le,X,oe,j,ge;let r=t.info,{width:s,height:l}=he(i.ui.playerSize),d=(U=(D=r.throughputEstimation$.getValue())==null?void 0:D.toFixed(0))!=null?U:0,a=(G=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?G:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Va} (core: ${n_.VERSION}, stat: ${r_.VERSION}, shared: ${Gd.VERSION})`,m=he(i.state.errorLog$),f=m.length?`
45
- `+m.map((ce,re)=>{var Re;let _e=`${re}) Type: ${ce.id}
43
+ `)})}}var Sa=!1,kl=null,Ta=!1,ys=!1;function tf(t){ys=t}var Rd=[],Nd=[],Rt=null,gr=!1;function Ui(t){Rt=t}var bt=null;function vo(t){bt=t}var jo=null;function pu(t){Rt!==null&&Rt.f&2097152&&(jo===null?jo=[Rt,[t]]:jo[1].push(t))}var kn=null,hr=0,vr=null;function zg(t){vr=t}var lh=1,yu=0,xs=!1,xu=null;function Sd(){return++lh}function $a(t){var f,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,s,l=(e&512)!==0,d=o&&bt!==null&&!xs,a=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((f=s==null?void 0:s.reactions)!=null&&f.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],$a(s)&&ef(s),s.wv>t.wv)return!0}(!o||bt!==null&&!xs)&&In(t,1024)}return!1}function dh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];jo!=null&&jo[1].includes(t)&&jo[0]===Rt||((s.f&2)!==0?dh(s,e,!1):e===s&&(i?In(s,2048):(s.f&1024)!==0&&In(s,4096),Cd(s)))}}function uu(t){var b,y;var e=kn,i=hr,o=vr,r=Rt,s=xs,l=jo,d=Ht,a=gr,u=t.f;kn=null,hr=0,vr=null,xs=(u&256)!==0&&(gr||!Ta||Rt===null),Rt=(u&96)===0?t:null,jo=null,yd(t.ctx),gr=!1,yu++,t.f|=2097152;try{var m=(0,t.fn)(),f=t.deps;if(kn!==null){var p;if(Ld(t,hr),f!==null&&hr>0)for(f.length=hr+kn.length,p=0;p<kn.length;p++)f[hr+p]=kn[p];else t.deps=f=kn;if(!xs||(u&2)!==0&&t.reactions!==null)for(p=hr;p<f.length;p++)((y=(b=f[p]).reactions)!=null?y:b.reactions=[]).push(t)}else f!==null&&hr<f.length&&(Ld(t,hr),f.length=hr);if(ds()&&vr!==null&&!gr&&f!==null&&(t.f&6146)===0)for(p=0;p<vr.length;p++)dh(vr[p],t);return r!==null&&r!==t&&(yu++,vr!==null&&(o===null?o=vr:o.push(...vr))),m}catch($){rh($)}finally{kn=e,hr=i,vr=o,Rt=r,xs=s,jo=l,yd(d),gr=a,t.f^=2097152}}function B$(t,e){let i=e.reactions;if(i!==null){var o=xg.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&&(kn===null||!kn.includes(e))&&(In(e,4096),(e.f&768)===0&&(e.f^=512),cu(e),Ld(e,0))}function Ld(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)B$(t,i[o])}function Il(t){var e=t.f;if((e&16384)===0){In(t,1024);var i=bt,o=Ta;if(bt=t,Ta=!0,ke){var r=fr;xd(t.component_function)}try{(e&16)!==0?eh(t):sf(t),rf(t);var s=uu(t);if(t.teardown=typeof s=="function"?s:null,t.wv=lh,ke&&ls&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Sd(),l.set_during_effect=!1);ke&&Nd.push(t)}finally{Ta=o,bt=i,ke&&xd(r)}}}function sh(){console.error("Last ten effects were: ",Nd.slice(-10).map(t=>t.fn)),Nd=[]}function F$(){try{Ag()}catch(t){if(ke&&mo(t,"stack",{value:""}),kl!==null)if(ke)try{Vd(t,kl)}catch(e){throw sh(),e}else Vd(t,kl);else throw ke&&sh(),t}}function pf(){var t=Ta;try{var e=0;for(Ta=!0;Rd.length>0;){e++>1e3&&F$();var i=Rd,o=i.length;Rd=[];for(var r=0;r<o;r++){var s=U$(i[r]);H$(s)}Tl.clear()}}finally{Sa=!1,Ta=t,kl=null,ke&&(Nd=[])}}function H$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&$a(o)&&(Il(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?lf(o):o.fn=null))}}function Cd(t){Sa||(Sa=!0,queueMicrotask(pf));for(var e=kl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Rd.push(e)}function U$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:$a(i)&&Il(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Al(t){var e;for(t&&(Sa=!0,pf(),Sa=!0,e=t());;){if(oh(),Rd.length===0)return Sa=!1,kl=null,ke&&(Nd=[]),e;Sa=!0,pf()}}async function ho(){await Promise.resolve(),Al()}function n(t){var e=t.f,i=(e&2)!==0;if(xu!==null&&xu.add(t),Rt!==null&&!gr){if(!(jo!=null&&jo[1].includes(t))||jo[0]!==Rt){var o=Rt.deps;t.rv<yu&&(t.rv=yu,kn===null&&o!==null&&o[hr]===t?hr++:kn===null?kn=[t]:(!xs||!kn.includes(t))&&kn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,$a(r)&&ef(r)),ke&&ls&&!gr&&$d!==null&&Rt!==null&&$d.reaction===Rt)if(t.trace)t.trace();else{var l=$s("TracedAt");if(l){var d=$d.entries.get(t);d===void 0&&(d={traces:[]},$d.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return ys&&Tl.has(t)?Tl.get(t):t.v}function Pt(t){var e=gr;try{return gr=!0,t()}finally{gr=e}}var z$=-7169;function In(t,e){t.f=t.f&z$|e}function Su(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Go in t)wu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Go in i&&wu(i)}}}function wu(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{wu(t[o],e)}catch(r){}let i=ga(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=ru(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function ff(t,e){if(e){let i=document.body;t.autofocus=!0,Pn(()=>{document.activeElement===i&&t.focus()})}}function Od(t){var e=Rt,i=bt;Ui(null),vo(null);try{return t()}finally{Ui(e),vo(i)}}var mf=new Set,Tu=new Set;function Ca(t){if(!tt)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function vf(t,e,i,o={}){function r(s){if(o.capture||Ll.call(e,s),!s.cancelBubble)return Od(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Pn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function gt(t,e,i,o,r){var s={capture:o,passive:r},l=vf(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ao(()=>{e.removeEventListener(t,l,s)})}function rt(t){for(var e=0;e<t.length;e++)mf.add(t[e]);for(var i of Tu)i(t)}function Ll(t){var C;var e=this,i=e.ownerDocument,o=t.type,r=((C=t.composedPath)==null?void 0:C.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){mo(t,"currentTarget",{configurable:!0,get(){return s||i}});var m=Rt,f=bt;Ui(null),vo(null);try{for(var p,b=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var $=s["__"+o];if($!=null&&(!s.disabled||t.target===s))if(ur($)){var[S,...I]=$;S.apply(s,[t,...I])}else $.call(s,t)}catch(R){p?b.push(R):p=R}if(t.cancelBubble||y===e||y===null)break;s=y}if(p){for(let R of b)queueMicrotask(()=>{throw R});throw p}}finally{t.__root=e,delete t.currentTarget,Ui(m),vo(f)}}}var K$;function ch(){K$=void 0}function Ml(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Mo(t,e){var i=bt;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,s=!t.startsWith("<!>");return()=>{if(tt)return Mo($t,null),$t;r===void 0&&(r=Ml(s?t:"<!>"+t),i||(r=Ti(r)));var l=o||Id?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ti(l),a=l.lastChild;Mo(d,a)}else Mo(l,l);return l}}function G$(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(tt)return Mo($t,null),$t;if(!l){var d=Ml(s),a=Ti(d);if(r)for(l=document.createDocumentFragment();Ti(a);)l.appendChild(Ti(a));else l=Ti(a)}var u=l.cloneNode(!0);if(r){var m=Ti(u),f=u.lastChild;Mo(m,f)}else Mo(u,u);return u}}function Ee(t,e){return G$(t,e,"svg")}function us(t=""){if(!tt){var e=En(t+"");return Mo(e,e),e}var i=$t;return i.nodeType!==_l&&(i.before(i=En()),Si(i)),Mo(i,i),i}function Ae(){if(tt)return Mo($t,null),$t;var t=document.createDocumentFragment(),e=document.createComment(""),i=En();return t.append(e,i),Mo(e,i),t}function _(t,e){if(tt){bt.nodes_end=$t,Wi();return}t!==null&&t.before(e)}var Y$=/\r/g;function ph(t){t=t.replace(Y$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function fh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var j$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function mh(t){return j$.includes(t)}var X$=["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 Z$={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 vh(t){var e;return t=t.toLowerCase(),(e=Z$[t])!=null?e:t}var iP=[...X$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var J$=["touchstart","touchmove"];function gh(t){return J$.includes(t)}var e1=["$state","$state.raw","$derived","$derived.by"],oP=[...e1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var t1=["textarea","script","style","title"];function hh(t){return t1.includes(t)}function Cu(t){return t==null?void 0:t.replace(/\//g,"/​")}var Dd=!0;function Iu(t){Dd=t}function pe(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 Qr(t,e){return _h(t,e)}function hf(t,e){var l;vu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=tt,r=$t;try{for(var s=Ti(i);s&&(s.nodeType!==pr||s.data!==zs);)s=Xo(s);if(!s)throw ss;go(!0),Si(s),Wi();let d=_h(t,{...e,anchor:s});if($t===null||$t.nodeType!==pr||$t.data!==va)throw Qs(),ss;return go(!1),d}catch(d){if(d===ss)return e.recover===!1&&Lg(),vu(),Ed(i),go(!1),Qr(t,e);throw d}finally{go(o),Si(r),ch()}}var Vl=new Map;function _h(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){vu();var d=new Set,a=f=>{for(var p=0;p<f.length;p++){var b=f[p];if(!d.has(b)){d.add(b);var y=gh(b);e.addEventListener(b,Ll,{passive:y});var $=Vl.get(b);$===void 0?(document.addEventListener(b,Ll,{passive:y}),Vl.set(b,1)):Vl.set(b,$+1)}}};a(bd(mf)),Tu.add(a);var u=void 0,m=Jg(()=>{var f=i!=null?i:e.appendChild(En());return Mi(()=>{if(s){H({});var p=Ht;p.c=s}r&&(o.$$events=r),tt&&Mo(f,null),Dd=l,u=t(f,o)||{},Dd=!0,tt&&(bt.nodes_end=$t),s&&U()}),()=>{var y;for(var p of d){e.removeEventListener(p,Ll);var b=Vl.get(p);--b===0?(document.removeEventListener(p,Ll),Vl.delete(p)):Vl.set(p,b)}Tu.delete(a),f!==i&&((y=f.parentNode)==null||y.removeChild(f))}});return gf.set(u,m),u}var gf=new WeakMap;function Ia(t,e){let i=gf.get(t);return i?(gf.delete(t),i(e)):(ke&&qg(),Promise.resolve())}function oi(t,e,...i){var o=t,r=vt,s;Ki(()=>{r!==(r=e())&&(s&&(zi(s),s=null),ke&&r==null&&Mg(),s=Mi(()=>r(o,...i)))},65536),tt&&(o=$t)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Ng(e)},set:o=>{i=o}})}};r1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var r1;function Nt(t){Ht===null&&yl("onMount"),as&&Ht.l!==null?n1(Ht).m.push(t):De(()=>{let e=Pt(t);if(typeof e=="function")return e})}function mn(t){Ht===null&&yl("onDestroy"),Nt(()=>()=>Pt(t))}function n1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var bh=new Map;function $h(t,e){var i=bh.get(t);i||(i=new Set,bh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){tt&&i===0&&Wi();var r=t,s=null,l=null,d=Yi,a=i>0?65536:0,u=!1;let m=(p,b=!0)=>{u=!0,f(b,p)},f=(p,b)=>{if(d===(d=p))return;let y=!1;if(tt&&o!==-1){if(i===0){let S=mu(r);S===zs?o=0:S===Ws?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(r=ya(),Si(r),go(!1),y=!0,o=-1)}d?(s?Ss(s):b&&(s=Mi(()=>b(r))),l&&Yn(l,()=>{l=null})):(l?Ss(l):b&&(l=Mi(()=>b(r,[i+1,o]))),s&&Yn(s,()=>{s=null})),y&&go(!0)};Ki(()=>{u=!1,e(m),u||f(null,null)},a),tt&&(r=$t)}function Ts(t,e,i){tt&&Wi();var o=t,r=Yi,s,l=ds()?Cg:bl;Ki(()=>{l(r,r=e())&&(s&&Yn(s),s=Mi(()=>i(o)))}),tt&&(o=$t)}var Ys=null;function $f(t){Ys=t}function Bd(t,e){return e}function l1(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)bu(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;Ed(a),a.append(i),o.clear(),Gs(t,e[0].prev,e[s-1].next)}df(r,()=>{for(var u=0;u<s;u++){var m=e[u];d||(o.delete(m.k),Gs(t,m.prev,m.next)),zi(m.e,!d)}})}function xi(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=tt?Si(Ti(u)):u.appendChild(En())}tt&&Wi();var m=null,f=!1,p=Cn(()=>{var b=i();return ur(b)?b:b==null?[]:bd(b)});Ki(()=>{var b=n(p),y=b.length;if(f&&y===0)return;f=y===0;let $=!1;if(tt){var S=mu(l)===Ws;S!==(y===0)&&(l=ya(),Si(l),go(!1),$=!0)}if(tt){for(var I=null,C,R=0;R<y;R++){if($t.nodeType===pr&&$t.data===va){l=$t,$=!0,go(!1);break}var E=b[R],k=o(E,R);C=wh($t,d,I,null,E,k,R,r,e,i),d.items.set(k,C),I=C}y>0&&Si(ya())}tt||d1(b,d,l,r,e,o,i),s!==null&&(y===0?m?Ss(m):m=Mi(()=>s(l)):m!==null&&Yn(m,()=>{m=null})),$&&go(!0),n(p)}),tt&&(l=$t)}function d1(t,e,i,o,r,s,l){var j,ve,ce,re;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,m=e.items,f=e.first,p=f,b,y=null,$,S=[],I=[],C,R,E,k;if(d)for(k=0;k<u;k+=1)C=t[k],R=s(C,k),E=m.get(R),E!==void 0&&((j=E.a)==null||j.measure(),($!=null?$:$=new Set).add(E));for(k=0;k<u;k+=1){if(C=t[k],R=s(C,k),E=m.get(R),E===void 0){var O=p?p.e.nodes_start:i;y=wh(O,e,y,y===null?e.first:y.next,C,R,k,o,r,l),m.set(R,y),S=[],I=[],p=y.next;continue}if(a&&c1(E,C,k,r),(E.e.f&8192)!==0&&(Ss(E.e),d&&((ve=E.a)==null||ve.unfix(),($!=null?$:$=new Set).delete(E))),E!==p){if(b!==void 0&&b.has(E)){if(S.length<I.length){var B=I[0],F;y=B.prev;var z=S[0],G=S[S.length-1];for(F=0;F<S.length;F+=1)yh(S[F],B,i);for(F=0;F<I.length;F+=1)b.delete(I[F]);Gs(e,z.prev,G.next),Gs(e,y,z),Gs(e,G,B),p=B,y=G,k-=1,S=[],I=[]}else b.delete(E),yh(E,p,i),Gs(e,E.prev,E.next),Gs(e,E,y===null?e.first:y.next),Gs(e,y,E),y=E;continue}for(S=[],I=[];p!==null&&p.k!==R;)(p.e.f&8192)===0&&(b!=null?b:b=new Set).add(p),I.push(p),p=p.next;if(p===null)continue;E=p}S.push(E),y=E,p=E.next}if(p!==null||b!==void 0){for(var le=b===void 0?[]:bd(b);p!==null;)(p.e.f&8192)===0&&le.push(p),p=p.next;var X=le.length;if(X>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(k=0;k<X;k+=1)(ce=le[k].a)==null||ce.measure();for(k=0;k<X;k+=1)(re=le[k].a)==null||re.fix()}l1(e,le,oe,m)}}d&&Pn(()=>{var _e;if($!==void 0)for(E of $)(_e=E.a)==null||_e.apply()}),bt.first=e.first&&e.first.e,bt.last=y&&y.e}function c1(t,e,i,o){(o&1)!==0&&Cl(t.v,e),(o&2)!==0?Cl(t.i,i):t.i=i}function wh(t,e,i,o,r,s,l,d,a,u){var m=Ys,f=(a&1)!==0,p=(a&16)===0,b=f?p?cs(r,!1,!1):Ar(r):r,y=(a&2)===0?l:Ar(l);ke&&f&&(b.trace=()=>{var S=typeof y=="number"?l:y.v;u()[S]});var $={i:y,v:b,k:s,a:null,e:null,prev:i,next:o};Ys=$;try{return $.e=Mi(()=>d(t,b,y,u),tt),$.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{Ys=m}}function yh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Xo(s);r.before(s),s=l}}function Gs(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 u1(t,e,i){var s,l;if(!e||e===ph(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=fr)!=null&&l[Kn]&&(o=`in ${fr[Kn]}`),Kg(Cu(o))}function Fd(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var b;var d=bt;if(l===(l=(b=e())!=null?b:"")){tt&&Wi();return}if(d.nodes_start!==null&&(af(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(tt){for(var a=$t.data,u=Wi(),m=u;u!==null&&(u.nodeType!==pr||u.data!=="");)m=u,u=Xo(u);if(u===null)throw Qs(),ss;ke&&!r&&u1(u.parentNode,a,l),Mo($t,m),s=Si(u);return}var f=l+"";i?f=`<svg>${f}</svg>`:o&&(f=`<math>${f}</math>`);var p=Ml(f);if((i||o)&&(p=Ti(p)),Mo(Ti(p),p.lastChild),i||o)for(;Ti(p);)s.before(Ti(p));else s.before(p)}})}function Vi(t,e,i){tt&&Wi();var o=t,r,s;Ki(()=>{r!==(r=e())&&(s&&(Yn(s),s=null),r&&(s=Mi(()=>i(o,r))))},65536),tt&&(o=$t)}function Ea(t,e,i,o,r,s){var y;let l=tt;tt&&Wi();var d=ke&&s&&((y=Ht)==null?void 0:y.function[Kn]),a,u,m=null;tt&&$t.nodeType===au&&(m=$t,Wi());var f=tt?$t:t,p,b=Ys;Ki(()=>{let $=e()||null;var S=r?r():i||$==="svg"?ou:null;if($!==a){var I=Ys;$f(b),p&&($===null?Yn(p,()=>{p=null,u=null}):$===u?Ss(p):(zi(p),Iu(!1))),$&&$!==u&&(p=Mi(()=>{if(m=tt?m:S?document.createElementNS(S,$):document.createElement($),ke&&s&&(m.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Mo(m,m),o){tt&&hh($)&&m.append(document.createComment(""));var C=tt?Ti(m):m.appendChild(En());tt&&(C===null?go(!1):Si(C)),o(m,C)}bt.nodes_end=m,f.before(m)})),a=$,a&&(u=a),Iu(!0),$f(I)}},65536),l&&(go(!0),Si(f))}var xf;function Sh(t){return xf=t.target,new yf(t)}var Cs,Lr,yf=class{constructor(e){Us(this,Cs);Us(this,Lr);var s,l;var i=new Map,o=(d,a)=>{var u=cs(a,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===hl?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var m;return N((m=i.get(a))!=null?m:o(a,u),u),Reflect.set(d,a,u)}});gl(this,Lr,(e.hydrate?hf:Qr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Al(),gl(this,Cs,r.$$events);for(let d of Object.keys(Li(this,Lr)))d==="$set"||d==="$destroy"||d==="$on"||mo(this,d,{get(){return Li(this,Lr)[d]},set(a){Li(this,Lr)[d]=a},enumerable:!0});Li(this,Lr).$set=d=>{Object.assign(r,d)},Li(this,Lr).$destroy=()=>{Ia(Li(this,Lr))}}$set(e){Li(this,Lr).$set(e)}$on(e,i){Li(this,Cs)[e]=Li(this,Cs)[e]||[];let o=(...r)=>i.call(this,...r);return Li(this,Cs)[e].push(o),()=>{Li(this,Cs)[e]=Li(this,Cs)[e].filter(r=>r!==o)}}$destroy(){Li(this,Lr).$destroy()}};Cs=new WeakMap,Lr=new WeakMap;function q(t,e){Pn(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=xf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&$h(e.hash,d)}})}function Is(t,e){var i=void 0,o;Ki(()=>{i!==(i=e())&&(o&&(zi(o),o=null),i&&(o=Mi(()=>{Lo(()=>i(t))})))})}function Th(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=Th(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Ch(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Th(t))&&(o&&(o+=" "),o+=e);return o}function Hd(t){return typeof t=="object"?Ch(t):t!=null?t:""}var Ih=[...`
44
+ \r\f \v\uFEFF`];function Ph(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 s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||Ih.includes(o[l-1]))&&(d===o.length||Ih.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Eh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function wf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function kh(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 s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(wf)),r&&a.push(...Object.keys(r).map(wf));var u=0,m=-1;let $=t.length;for(var f=0;f<$;f++){var p=t[f];if(d?p==="/"&&t[f-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[f+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&m===-1)m=f;else if(p===";"||f===$-1){if(m!==-1){var b=wf(t.substring(u,m).trim());if(!a.includes(b)){p!==";"&&f++;var y=t.substring(u,f).trim();i+=" "+y+";"}}u=f+1,m=-1}}}}return o&&(i+=Eh(o)),r&&(i+=Eh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function se(t,e,i,o,r,s){var l=t.__className;if(tt||l!==i||l===void 0){var d=Ph(i,o,s);(!tt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function Sf(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function Qe(t,e,i,o){var r=t.__style;if(tt||r!==e){var s=kh(e,o);(!tt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Sf(t,i==null?void 0:i[0],o[0]),Sf(t,i==null?void 0:i[1],o[1],"important")):Sf(t,i,o));return o}function Ud(t,e,i){if(t.multiple){if(e==null)return;if(!ur(e))return Qg();for(var o of t.options)o.selected=e.includes(Ah(o));return}for(o of t.options){var r=Ah(o);if(Yp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Tf(t){var e=new MutationObserver(()=>{Ud(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ao(()=>{e.disconnect()})}function Ah(t){return"__value"in t?t.__value:t.value}var Rl=Symbol("class"),Nl=Symbol("style"),Vh=Symbol("is custom element"),Rh=Symbol("is html");function Nh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Re(t,e,i,o){var r=Dh(t);if(tt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||b1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Tg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Bh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Oh(t,e,i,o,r=!1){var E;var s=Dh(t),l=s[Vh],d=!s[Rh];let a=tt&&l;a&&go(!1);var u=e||{},m=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class?i.class=Hd(i.class):(o||i[Rl])&&(i.class=null),i[Nl]&&((E=i.style)!=null||(i.style=null));var p=Bh(t);for(let k in i){let O=i[k];if(m&&k==="value"&&O==null){t.value=t.__value="",u[k]=O;continue}if(k==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,b,O,o,e==null?void 0:e[Rl],i[Rl]),u[k]=O,u[Rl]=i[Rl];continue}if(k==="style"){Qe(t,O,e==null?void 0:e[Nl],i[Nl]),u[k]=O,u[Nl]=i[Nl];continue}var y=u[k];if(!(O===y&&!(O===void 0&&t.hasAttribute(k)))){u[k]=O;var $=k[0]+k[1];if($!=="$$")if($==="on"){let B={},F="$$"+k,z=k.slice(2);var S=mh(z);if(fh(z)&&(z=z.slice(0,-7),B.capture=!0),!S&&y){if(O!=null)continue;t.removeEventListener(z,u[F],B),u[F]=null}if(O!=null)if(S)t[`__${z}`]=O,rt([z]);else{let G=function(le){u[k].call(this,le)};var R=G;u[F]=vf(z,t,G,B)}else S&&(t[`__${z}`]=void 0)}else if(k==="style")Re(t,k,O);else if(k==="autofocus")ff(t,!!O);else if(!l&&(k==="__value"||k==="value"&&O!=null))t.value=t.__value=O;else if(k==="selected"&&m)Nh(t,O);else{var I=k;d||(I=vh(I));var C=I==="defaultValue"||I==="defaultChecked";if(O==null&&!l&&!C)if(s[k]=null,I==="value"||I==="checked"){let B=t,F=e===void 0;if(I==="value"){let z=B.defaultValue;B.removeAttribute(I),B.defaultValue=z,B.value=B.__value=F?z:null}else{let z=B.defaultChecked;B.removeAttribute(I),B.defaultChecked=z,B.checked=F?z:!1}}else t.removeAttribute(k);else C||p.includes(I)&&(l||typeof O!="string")?t[I]=O:typeof O!="function"&&Re(t,I,O,r)}}}return a&&go(!0),u}function ji(t,e,i=[],o,r=!1,s=Wr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",m=!1;if(Ki(()=>{var p=e(...l.map(n)),b=Oh(t,d,p,o,r);m&&u&&"value"in p&&Ud(t,p.value,!1);for(let $ of Object.getOwnPropertySymbols(a))p[$]||zi(a[$]);for(let $ of Object.getOwnPropertySymbols(p)){var y=p[$];$.description===Hp&&(!d||y!==d[$])&&(a[$]&&zi(a[$]),a[$]=Mi(()=>Is(t,()=>y))),b[$]=y}d=b}),u){var f=t;Lo(()=>{Ud(f,d.value),Tf(f)})}m=!0}function Dh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Vh]:t.nodeName.includes("-"),[Rh]:t.namespaceURI===_g}}var Lh=new Map;function Bh(t){var e=Lh.get(t.nodeName);if(e)return e;Lh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=ru(o);for(var s in i)i[s].set&&e.push(s);o=ga(o)}return e}function b1(t,e,i){var o;ke&&(e==="srcset"&&$1(t,i)||Cf((o=t.getAttribute(e))!=null?o:"",i)||Wg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Cf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Mh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function $1(t,e){var i=Mh(t.srcset),o=Mh(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(Cf(i[l][0],r)||Cf(r,i[l][0])))}var y1=nu?()=>performance.now():()=>Date.now(),Gr={tick:t=>(nu?requestAnimationFrame:vt)(t),now:()=>y1(),tasks:new Set};function Fh(){let t=Gr.now();Gr.tasks.forEach(e=>{e.c(t)||(Gr.tasks.delete(e),e.f())}),Gr.tasks.size!==0&&Gr.tick(Fh)}function Hh(t){let e;return Gr.tasks.size===0&&Gr.tick(Fh),{promise:new Promise(i=>{Gr.tasks.add(e={c:t,f:i})}),abort(){Gr.tasks.delete(e)}}}function Eu(t,e){Od(()=>{t.dispatchEvent(new CustomEvent(e))})}function T1(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 Uh(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=T1(r.trim());e[l]=s.trim()}return e}var C1=t=>t;function Yr(t,e,i,o){var R;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,m=e.inert,f=e.style.overflow,p,b;function y(){var O;var E=Rt,k=bt;Ui(null),vo(null);try{return u!=null?u:u=i()(e,(O=o==null?void 0:o())!=null?O:{},{direction:a})}finally{Ui(E),vo(k)}}var $={is_global:d,in(){var E;if(e.inert=m,!r){b==null||b.abort(),(E=b==null?void 0:b.reset)==null||E.call(b);return}s||p==null||p.abort(),Eu(e,"introstart"),p=If(e,y(),b,1,()=>{Eu(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=f})},out(E){if(!s){E==null||E(),u=void 0;return}e.inert=!0,Eu(e,"outrostart"),b=If(e,y(),p,0,()=>{Eu(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),b==null||b.abort()}},S=bt;if(((R=S.transitions)!=null?R:S.transitions=[]).push($),r&&Dd){var I=d;if(!I){for(var C=S.parent;C&&(C.f&65536)!==0;)for(;(C=C.parent)&&(C.f&16)===0;);I=!C||(C.f&32768)!==0}I&&Lo(()=>{Pt(()=>$.in())})}}function If(t,e,i,o,r){var s=o===1;if(Ks(e)){var l,d=!1;return Pn(()=>{if(!d){var S=e({direction:s?"in":"out"});l=If(t,S,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:vt,deactivate:vt,reset:vt,t:()=>o};let{delay:a=0,css:u,tick:m,easing:f=C1}=e;var p=[];if(s&&i===void 0&&(m&&m(0,1),u)){var b=Uh(u(0,1));p.push(b,b)}var y=()=>1-o,$=t.animate(p,{duration:a,fill:"forwards"});return $.onfinish=()=>{var z;$.cancel();var S=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-S,C=e.duration*Math.abs(I),R=[];if(C>0){var E=!1;if(u)for(var k=Math.ceil(C/16.666666666666668),O=0;O<=k;O+=1){var B=S+I*f(O/k),F=Uh(u(B,1-B));R.push(F),E||(E=F.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var G=$.currentTime;return S+I*f(G/C)},m&&Hh(()=>{if($.playState!=="running")return!1;var G=y();return m(G,1-G),!0})}$=t.animate(R,{duration:C,fill:"forwards"}),$.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=vt)},deactivate:()=>{r=vt},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Ef(t,e,i){var o=Qo(t,e);o&&o.set&&(t[e]=i,Ao(()=>{t[e]=null}))}var js,Ol,zd,ku,zh,Au=class Au{constructor(e){Us(this,ku);Us(this,js,new WeakMap);Us(this,Ol);Us(this,zd);gl(this,zd,e)}observe(e,i){var o=Li(this,js).get(e)||new Set;return o.add(i),Li(this,js).set(e,o),gg(this,ku,zh).call(this).observe(e,Li(this,zd)),()=>{var r=Li(this,js).get(e);r.delete(i),r.size===0&&(Li(this,js).delete(e),Li(this,Ol).unobserve(e))}}};js=new WeakMap,Ol=new WeakMap,zd=new WeakMap,ku=new WeakSet,zh=function(){var e;return(e=Li(this,Ol))!=null?e:gl(this,Ol,new ResizeObserver(i=>{for(var o of i){Au.entries.set(o.target,o);for(var r of Li(this,js).get(o.target)||[])r(o)}}))},cr(Au,"entries",new WeakMap);var Pf=Au;var I1=new Pf({box:"border-box"});function An(t,e,i){var o=I1.observe(t,()=>i(t[e]));Lo(()=>(Pt(()=>i(t[e])),o))}function Wh(t,e){return t===e||(t==null?void 0:t[Go])===e}function ot(t={},e,i,o){return Lo(()=>{var r,s;return Zo(()=>{r=s,s=(o==null?void 0:o())||[],Pt(()=>{t!==i(...s)&&(e(t,...s),r&&Wh(i(...r),t)&&e(null,...r))})}),()=>{Pn(()=>{s&&Wh(i(...s),t)&&e(null,...s)})}}),t}function wo(t=!1){let e=Ht,i=e.l.u;if(!i)return;let o=()=>Su(e.s);if(t){let r=0,s={},l=Wr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Ad(()=>{Kh(e,o),qs(i.b)}),De(()=>{let r=Pt(()=>i.m.map(Sg));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&De(()=>{Kh(e,o),qs(i.a)})}function Kh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Wd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),vt;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Dl=[];function Mr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=vt){let i=null,o=new Set;function r(d){if(bl(t,d)&&(t=d,i)){let a=!Dl.length;for(let u of o)u[1](),Dl.push(u,t);if(a){for(let u=0;u<Dl.length;u+=2)Dl[u][0](Dl[u+1]);Dl.length=0}}}function s(d){r(d(t))}function l(d,a=vt){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||vt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function mi(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 s=e.length<2;return Mr(i,(l,d)=>{let a=!1,u=[],m=0,f=vt,p=()=>{if(m)return;f();let y=e(o?u[0]:u,l,d);s?l(y):f=typeof y=="function"?y:vt},b=r.map((y,$)=>Wd(y,S=>{u[$]=S,m&=~(1<<$),a&&p()},()=>{m|=1<<$}));return a=!0,p(),function(){qs(b),f(),a=!1}})}function he(t){let e;return Wd(t,i=>e=i)(),e}var Lu=!1,kf=Symbol();function x(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:cs(void 0),unsubscribe:vt};if(o.store!==t&&!(kf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=vt;else{var r=!0;o.unsubscribe=Wd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&kf in i?he(t):n(o.source)}function Ve(){let t={};function e(){Ao(()=>{for(var i in t)t[i].unsubscribe();mo(t,kf,{enumerable:!1,value:!0})})}return[t,e]}function Af(t){var e=Lu;try{return Lu=!1,[t(),Lu]}finally{Lu=e}}var V1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Rg(`${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(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},V1)}var R1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ks(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];Ks(r)&&(r=r());let s=Qo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ks(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Qo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Go||e===hl)return!1;for(let i of t.props)if(Ks(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ks(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},R1)}function qh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var B,F;var r=(i&1)!==0,s=!as||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Af(()=>t[e]):u=t[e];var m=Go in t||hl in t,f=l&&((F=(B=Qo(t,e))==null?void 0:B.set)!=null?F:m&&e in t&&(z=>t[e]=z))||void 0,p=o,b=!0,y=!1,$=()=>(y=!0,b&&(b=!1,d?p=Pt(o):p=o),p);u===void 0&&o!==void 0&&(f&&s&&Vg(e),u=$(),f&&f(u));var S;if(s)S=()=>{var z=t[e];return z===void 0?$():(b=!0,y=!1,z)};else{var I=(r?Wr:Cn)(()=>t[e]);I.f|=131072,S=()=>{var z=n(I);return z!==void 0&&(p=void 0),z===void 0?p:z}}if((i&4)===0&&s)return S;if(f){var C=t.$$legacy;return function(z,G){return arguments.length>0?((!s||!G||C||a)&&f(G?S():z),z):S()}}var R=!1,E=!1,k=cs(u),O=Wr(()=>{var z=S(),G=n(k);return R?(R=!1,E=!0,G):(E=!1,k.v=z)});return l&&n(O),r||(O.equals=$l),function(z,G){if(xu!==null&&(R=E,S(),n(k)),arguments.length>0){let le=G?n(O):s&&l?di(z):z;if(!O.equals(le)){if(R=!0,N(k,le),y&&p!==void 0&&(p=le),qh(O))return z;Pt(()=>n(O))}return z}return qh(O)?O.v:n(O)}}var N1;typeof HTMLElement=="function"&&(N1=class extends HTMLElement{constructor(e,i,o){super();cr(this,"$$ctor");cr(this,"$$s");cr(this,"$$c");cr(this,"$$cn",!1);cr(this,"$$d",{});cr(this,"$$r",!1);cr(this,"$$p_d",{});cr(this,"$$l",{});cr(this,"$$l_u",new Map);cr(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(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),_(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=O1(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Lf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Sh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=_u(()=>{Zo(()=>{var s;this.$$r=!0;for(let l of Up(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Lf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Lf(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 Up(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Lf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.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 O1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Qh="5";var Gh,Yh,jh;typeof window!="undefined"&&((jh=(Yh=(Gh=window.__svelte)!=null?Gh:window.__svelte={}).v)!=null?jh:Yh.v=new Set).add(Qh);var rd=require("@vkontakte/videoplayer-core/es2018"),gZ=require("@vkontakte/videoplayer-core/es2018"),nl=require("@vkontakte/videoplayer-shared/es2018"),r$=require("@vkontakte/videoplayer-statistics/es2018");var Pa=require("@vkontakte/videoplayer-shared/es2018");var D1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Pa.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Pa.VideoQuality.Q_480P,highQualityLimit:Pa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!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},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},Xh=t=>(0,Pa.fillWithDefault)(t,D1),Zh=t=>wl("ui-config",t),Mt=()=>xl("ui-config");var Kd="vk_player_debug_panel_opened";var Jh="videoplayer",e_="videoplayer";var ps={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},t_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),i_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),o_=new Set(["ShiftRight","ShiftLeft"]);var n_=["TIMELINE"],qd=[...n_,"GRAPH_BUTTON"],Mf=[...n_,"PLAY_BUTTON"],Qd=[...qd,"PLAY_BUTTON"];var jr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(jr||{}),Aa={xs:0,s:1,m:2,l:3,xl:4};var Gd=require("@vkontakte/videoplayer-shared/es2018"),r_=require("@vkontakte/videoplayer-core/es2018"),s_=require("@vkontakte/videoplayer-statistics/es2018");var Mu="prod",La="1.1.77-dev.0b43ee9b.0";var Ma=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var a_=Symbol("storeContext"),l_=Symbol("microStoresContext"),d_=(t,e)=>{wl(a_,t),wl(l_,e),Mu==="dev"&&(window.app={store:t,microStores:e})},me=()=>{let t=xl(a_);return(0,Gd.assertNonNullable)(t,"Store context is empty!"),t},So=()=>{let t=xl(l_);return(0,Gd.assertNonNullable)(t,"MicroStores context is empty!"),t},ni=(t,e)=>Ru(t,t.getValue(),e),Ru=(t,e,i)=>Mr(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),c_=(t,e,i,o)=>{var B,F,z,G,le,X,oe,j,ve;let r=t.info,{width:s,height:l}=he(i.ui.playerSize),d=(F=(B=r.throughputEstimation$.getValue())==null?void 0:B.toFixed(0))!=null?F:0,a=(G=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?G:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${La} (core: ${r_.VERSION}, stat: ${s_.VERSION}, shared: ${Gd.VERSION})`,f=he(i.state.errorLog$),p=f.length?`
45
+ `+f.map((ce,re)=>{var Ne;let _e=`${re}) Type: ${ce.id}
46
46
  `,we=`Message: ${ce.message} (${ce.thrown})
47
- `,Z=`Trace: ${(Re=ce.thrown)==null?void 0:Re.stack}
47
+ `,Z=`Trace: ${(Ne=ce.thrown)==null?void 0:Ne.stack}
48
48
  `;return _e+we+Z}).join(`
49
- `):void 0,b=i.state.isAudioDisabled?"disabled":he(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),$=t.info.currentAudioStream$.getValue(),S=[];y&&S.push(`Video: ${(le=y==null?void 0:y.codec)!=null?le:""}`+(y!=null&&y.hdr?" (HDR)":"")),$&&S.push(`Audio: ${(X=$==null?void 0:$.codec)!=null?X:""}`+($!=null&&$.language?` (${$.language})`:""));let C=r.currentQuality$.getValue(),I="";if(C){let ce=r.availableQualitiesFps$.getValue()[C];I=ce?`${ce}fps`:""}let R=r.httpConnectionType$.getValue(),E=(j=(oe=r.currentBuffer$.getValue())==null?void 0:oe.end)!=null?j:0,P=Math.max(E-he(i.state.positionExact$),0),O={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:he(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":R?R+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:S.join(", "),Quality:`${u} ${C!=null?C:""} ${I}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:b,Position:`${he(i.state.positionExact$)}s`,Buffer:`${P}s`,State:`${he(i.playerPhase)} ${(ge=r.playbackState$.getValue())!=null?ge:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:f};return Object.entries(O).filter(([ce,re])=>re!==void 0).map(([ce,re])=>`${ce}: ${re}`).join(`
50
- `)},c_=(t,e,i)=>{var D,U,z,G;let o=t.info,{width:r,height:s}=he(i.ui.playerSize),l={version:Va,viewport:`${r}x${s}`,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 p=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),f=o.liveBufferTime$.getValue();p&&(m&&f?l.buffer=p.end-f:l.buffer=Math.max(p.end-he(i.state.positionExact$),0)),l.position=he(i.state.positionExact$);let b=o.throughputEstimation$.getValue();b&&(l.speed=b);let y=o.videoBitrate$.getValue();y&&(l.bitrate=y);let $=o.liveLatency$.getValue();$&&(l.liveLatency=$);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let I=he(i.vsid);typeof I=="string"&&(l.vsid=I);let R=(D=t.info.currentVideoStream$.getValue())==null?void 0:D.codec;R&&(l.videoCodec=R);let E=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;E&&(l.audioCodec=E),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let O=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return O&&(l.audioLanguage=O),l},u_=(t,e)=>Ra(t,e,"mp4"),p_=t=>!t.type,f_=t=>!!t.type,m_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Ru=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 gi=require("@vkontakte/videoplayer-shared/es2018"),h6=require("@vkontakte/videoplayer-core/es2018"),R1="vk_player_",v_="vk_player_prefer_traffic_saving_enabled",g_="vk_player_preferred_volume",h_="vk_player_prefer_volume_mute",Df="vk_player_preferred_quality",Rf="vk_player_preferred_default_quality_settings",Nf="vk_player_preferred_quality_settings_by_video",__="vk_player_preferred_stream_language",b_="vk_player_preferred_rate",$_="vk_player_preferred_autoplay_next",Of="vk_player_preferred_subtitles_language",y_="vk_player_user_video_prefs",x_=`${R1}preview_track_close_tooltip`,w_=t=>t>1?1:t<0?0:t,Bf=t=>gi.safeStorage.set(g_,w_(t).toString(10)),Ou=()=>{let t=gi.safeStorage.get(g_);return(0,gi.isNullable)(t)?void 0:w_(parseFloat(t))},Ff=(t,e)=>gi.safeStorage.set(Df,JSON.stringify({videoId:t,value:e})),Du=()=>gi.safeStorage.remove(Df),Hf=t=>{let e=gi.safeStorage.get(Df);if((0,gi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Du();return}return o},Uf=(t,e)=>{e?gi.safeStorage.set(t,"true"):gi.safeStorage.remove(t)},zf=t=>gi.safeStorage.get(t)==="true",Wf=t=>Uf(h_,t),S_=()=>zf(h_),Yd=t=>Uf(v_,t),Kf=()=>zf(v_),T_=()=>gi.safeStorage.get(__),qf=t=>gi.safeStorage.set(__,t),Qf=()=>gi.safeStorage.get(Of),Gf=t=>{t?gi.safeStorage.set(Of,t):gi.safeStorage.remove(Of)},C_=t=>gi.safeStorage.set(b_,JSON.stringify({rate:t})),I_=()=>{let t=gi.safeStorage.get(b_);if((0,gi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},E_=t=>Uf($_,t),P_=()=>zf($_),N1=()=>{let t=p=>{gi.safeStorage.set(Rf,JSON.stringify(p))},e=()=>{try{let p=gi.safeStorage.get(Rf);return p?JSON.parse(p):null}catch(p){return null}},i=()=>{try{let p=gi.safeStorage.get(Nf);return p?JSON.parse(p):null}catch(p){return null}},o=p=>{gi.safeStorage.set(Nf,JSON.stringify(p))},r=p=>{u(p);let m=p?i():null;if(m&&(m==null?void 0:m.videoId)===p)return{...m,appliesTo:"to-video"};m&&s();let f=e();return f?{...f,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{gi.safeStorage.remove(Nf)},l=()=>{gi.safeStorage.remove(Rf)},d=(p,m="as-default")=>{p.type==="exact_quality"||m==="to-video"?o(p):t(p)},a=p=>{let m=r(p);if(m){switch(m.type){case"traffic_saving":Yd(!0);break;case"exact_quality":Ff(p,m.quality)}s(),l()}},u=p=>{let m=Hf(p);if(m){o({type:"exact_quality",videoId:p,quality:m});return}Kf()&&t({type:"traffic_saving",videoId:p}),Yd(!1),Du()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Qf,savePreferredSubtitlesLanguage:Gf}},{getPreferredQualitySettings:A_,migrateSettingsToLegacyWay:k_,savePreferredQualitySettings:Bu,savePreferredDefaultQualitySettings:_6,removePreferredQualitySettingsByVideo:b6,getPreferredDefaultQualitySettings:Fu}=N1(),O1=3,D1=3,L_=()=>{let t=gi.safeStorage.get(y_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Hu=(t,e)=>{var r,s;let i=L_();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},Yf=(t,e,i)=>{var l,d,a;let o=(l=L_())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=B1(o);gi.safeStorage.set(y_,JSON.stringify(s))};function B1(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(D1),e.reduce((o,[r])=>(o[r]=F1(t[r]),o),{})}function F1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(O1),Object.fromEntries(e)}function M_(){gi.safeStorage.set(x_,JSON.stringify(!0))}function V_(){let t=gi.safeStorage.get(x_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var qv=require("@vkontakte/videoplayer-core/es2018");Bg();var Zs="var(--btn-color, #fff)";var H1=Ee('<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),U1=Ee('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ze(t,e){var p;F(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,Zs),s=(p=e.viewBox)!=null?p:`0 0 ${i()} ${o()}`;var l=U1(),d=T(l);{var a=m=>{var f=H1(),b=de(f),y=T(b);ni(y,()=>e.children),w(b),ui(),_(m,f)},u=m=>{var f=ke(),b=de(f);ni(b,()=>e.children),_(m,f)};V(d,m=>{e.shadow?m(a):m(u,!1)})}w(l),B(()=>{He(l,"aria-label",e.ariaLabel),He(l,"aria-hidden",!e.ariaLabel),He(l,"width",i()),He(l,"height",o()),He(l,"viewBox",s),He(l,"fill",r()),Qe(l,e.style),He(l,"data-testid",e.testId)}),_(t,l),H()}var Hl=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:`Видео грузится слишком медленно,
49
+ `):void 0,b=i.state.isAudioDisabled?"disabled":he(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),$=t.info.currentAudioStream$.getValue(),S=[];y&&S.push(`Video: ${(le=y==null?void 0:y.codec)!=null?le:""}`+(y!=null&&y.hdr?" (HDR)":"")),$&&S.push(`Audio: ${(X=$==null?void 0:$.codec)!=null?X:""}`+($!=null&&$.language?` (${$.language})`:""));let I=r.currentQuality$.getValue(),C="";if(I){let ce=r.availableQualitiesFps$.getValue()[I];C=ce?`${ce}fps`:""}let R=r.httpConnectionType$.getValue(),E=(j=(oe=r.currentBuffer$.getValue())==null?void 0:oe.end)!=null?j:0,k=Math.max(E-he(i.state.positionExact$),0),O={Version:m,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:he(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":R?R+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:S.join(", "),Quality:`${u} ${I!=null?I:""} ${C}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:b,Position:`${he(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${he(i.playerPhase)} ${(ve=r.playbackState$.getValue())!=null?ve:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(O).filter(([ce,re])=>re!==void 0).map(([ce,re])=>`${ce}: ${re}`).join(`
50
+ `)},u_=(t,e,i)=>{var B,F,z,G;let o=t.info,{width:r,height:s}=he(i.ui.playerSize),l={version:La,viewport:`${r}x${s}`,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(),f=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();m&&(f&&p?l.buffer=m.end-p:l.buffer=Math.max(m.end-he(i.state.positionExact$),0)),l.position=he(i.state.positionExact$);let b=o.throughputEstimation$.getValue();b&&(l.speed=b);let y=o.videoBitrate$.getValue();y&&(l.bitrate=y);let $=o.liveLatency$.getValue();$&&(l.liveLatency=$);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(l.currentAudioSegmentLength=I);let C=he(i.vsid);typeof C=="string"&&(l.vsid=C);let R=(B=t.info.currentVideoStream$.getValue())==null?void 0:B.codec;R&&(l.videoCodec=R);let E=(F=t.info.currentAudioStream$.getValue())==null?void 0:F.codec;E&&(l.audioCodec=E),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let O=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return O&&(l.audioLanguage=O),l},p_=(t,e)=>Ma(t,e,"mp4"),f_=t=>!t.type,m_=t=>!!t.type,v_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Vu=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 gi=require("@vkontakte/videoplayer-shared/es2018"),y6=require("@vkontakte/videoplayer-core/es2018"),B1="vk_player_",g_="vk_player_prefer_traffic_saving_enabled",h_="vk_player_preferred_volume",__="vk_player_prefer_volume_mute",Of="vk_player_preferred_quality",Vf="vk_player_preferred_default_quality_settings",Rf="vk_player_preferred_quality_settings_by_video",b_="vk_player_preferred_stream_language",$_="vk_player_preferred_rate",y_="vk_player_preferred_autoplay_next",Nf="vk_player_preferred_subtitles_language",x_="vk_player_user_video_prefs",w_=`${B1}preview_track_close_tooltip`,S_=t=>t>1?1:t<0?0:t,Df=t=>gi.safeStorage.set(h_,S_(t).toString(10)),Nu=()=>{let t=gi.safeStorage.get(h_);return(0,gi.isNullable)(t)?void 0:S_(parseFloat(t))},Bf=(t,e)=>gi.safeStorage.set(Of,JSON.stringify({videoId:t,value:e})),Ou=()=>gi.safeStorage.remove(Of),Ff=t=>{let e=gi.safeStorage.get(Of);if((0,gi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Ou();return}return o},Hf=(t,e)=>{e?gi.safeStorage.set(t,"true"):gi.safeStorage.remove(t)},Uf=t=>gi.safeStorage.get(t)==="true",zf=t=>Hf(__,t),T_=()=>Uf(__),Yd=t=>Hf(g_,t),Wf=()=>Uf(g_),C_=()=>gi.safeStorage.get(b_),Kf=t=>gi.safeStorage.set(b_,t),qf=()=>gi.safeStorage.get(Nf),Qf=t=>{t?gi.safeStorage.set(Nf,t):gi.safeStorage.remove(Nf)},I_=t=>gi.safeStorage.set($_,JSON.stringify({rate:t})),E_=()=>{let t=gi.safeStorage.get($_);if((0,gi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},P_=t=>Hf(y_,t),k_=()=>Uf(y_),F1=()=>{let t=m=>{gi.safeStorage.set(Vf,JSON.stringify(m))},e=()=>{try{let m=gi.safeStorage.get(Vf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=gi.safeStorage.get(Rf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{gi.safeStorage.set(Rf,JSON.stringify(m))},r=m=>{u(m);let f=m?i():null;if(f&&(f==null?void 0:f.videoId)===m)return{...f,appliesTo:"to-video"};f&&s();let p=e();return p?{...p,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{gi.safeStorage.remove(Rf)},l=()=>{gi.safeStorage.remove(Vf)},d=(m,f="as-default")=>{m.type==="exact_quality"||f==="to-video"?o(m):t(m)},a=m=>{let f=r(m);if(f){switch(f.type){case"traffic_saving":Yd(!0);break;case"exact_quality":Bf(m,f.quality)}s(),l()}},u=m=>{let f=Ff(m);if(f){o({type:"exact_quality",videoId:m,quality:f});return}Wf()&&t({type:"traffic_saving",videoId:m}),Yd(!1),Ou()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:qf,savePreferredSubtitlesLanguage:Qf}},{getPreferredQualitySettings:A_,migrateSettingsToLegacyWay:L_,savePreferredQualitySettings:Du,savePreferredDefaultQualitySettings:x6,removePreferredQualitySettingsByVideo:w6,getPreferredDefaultQualitySettings:Bu}=F1(),H1=3,U1=3,M_=()=>{let t=gi.safeStorage.get(x_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Fu=(t,e)=>{var r,s;let i=M_();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},Gf=(t,e,i)=>{var l,d,a;let o=(l=M_())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=z1(o);gi.safeStorage.set(x_,JSON.stringify(s))};function z1(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(U1),e.reduce((o,[r])=>(o[r]=W1(t[r]),o),{})}function W1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(H1),Object.fromEntries(e)}function V_(){gi.safeStorage.set(w_,JSON.stringify(!0))}function R_(){let t=gi.safeStorage.get(w_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var Qv=require("@vkontakte/videoplayer-core/es2018");Fg();var Xs="var(--btn-color, #fff)";var K1=Ee('<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),q1=Ee('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ze(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,Xs),s=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=q1(),d=T(l);{var a=f=>{var p=K1(),b=de(p),y=T(b);oi(y,()=>e.children),w(b),ui(),_(f,p)},u=f=>{var p=Ae(),b=de(p);oi(b,()=>e.children),_(f,p)};V(d,f=>{e.shadow?f(a):f(u,!1)})}w(l),D(()=>{Re(l,"aria-label",e.ariaLabel),Re(l,"aria-hidden",!e.ariaLabel),Re(l,"width",i()),Re(l,"height",o()),Re(l,"viewBox",s),Re(l,"fill",r()),Qe(l,e.style),Re(l,"data-testid",e.testId)}),_(t,l),U()}var Bl=require("@vkontakte/videoplayer-shared/es2018");var Q1={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:"Выйти из режима точной перемотки"},R_=z1;var W1={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:"Выйти из режима точной перемотки"},N_=Q1;var G1={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"},N_=W1;var Ps=new Map;Ps.set(Hl.InterfaceLanguage.EN,N_);Ps.set(Hl.InterfaceLanguage.RU,R_);var O_=new Map,jf=({language:t,pack:e,fallback:i})=>{if(Ps.has(t)){let o=Ps.get(t);Ps.set(t,{...o,...e})}else Ps.set(t,e);O_.set(t,i)},Xf=t=>Ps.has(t),Zf=(t,e,i,o)=>{var l;let r=Ps.get(t),s=r==null?void 0:r[e];if((0,Hl.isNullable)(s)){let d=(l=O_.get(t))!=null?l:o,a=d?Ps.get(d):void 0;s=a==null?void 0:a[e]}return(0,Hl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},Q=(t,e)=>{let{interfaceLanguage$:i}=ve(),o=he(i),r=Mt();return Zf(o,t,e,r.defaultLanguage)};var K1=Ee('<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 jd(t,e){F(e,!1);let i=Q("video360");xo(),Ze(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var s=K1();_(o,s)},$$slots:{default:!0}}),H()}var q6=require("@vkontakte/videoplayer-core/es2018");var Ul;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ul||(Ul={}));var q1=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Q1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,G1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Uu="?",Y1="X-Sentry-Auth",j1=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function X1(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,r;for(let s=0;s<i.length;++s){if(o=q1.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Uu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=G1.exec(i[s]))r={filename:o[2],function:o[1]||Uu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Q1.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Uu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Uu),e.push(r)}return e.length?{value:D_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function D_(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function Z1(t){try{let e=X1(t);if(e)return e}catch(e){}return{value:D_(t),type:t&&t.name,stacktrace:{frames:[]}}}function J1(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var zu=class{constructor(e){if(e&&e.dsn){let i=j1.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Z1(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(Y1,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:J1(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function B_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function ey(){return window}var Wu=class t extends zu{constructor(e,i=ey()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>B_(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>B_(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Na=require("@vkontakte/videoplayer-shared/es2018");var Ku=null,Oa=class{constructor(e,i,o={}){!Ku&&e.dsn&&(this.sentryClient=new Wu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Na.Subscription,this.options=e,this.context=o,Ku=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ku=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:p,blackErrorCategoryList:m}=l,{errorType:f,category:b}=i;if((0,Na.isNonNullable)(b)&&m.includes(b)||(0,Na.isNonNullable)(f)&&p.includes(f))return;if(Math.random()<=d||(0,Na.isNonNullable)(b)&&u.includes(b)||(0,Na.isNonNullable)(f)&&a.includes(f)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{f&&r.captureMessage(f,i.fatal?Ul.fatal:Ul.error),r.report(e)}catch($){console.error($)}}}static getInstance(){return Ku}};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 qu=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()},Qu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),F_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,H_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Xd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Js=()=>!!Xd(),Gu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Yu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},U_=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 Jf=require("@vkontakte/videoplayer-core/es2018"),z_=()=>({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:Jf.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:Jf.clientChecker.device.isApple?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});var zl=require("@vkontakte/videoplayer-shared/es2018"),Da=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,zl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new zl.ValueSubject(!1),isEnabled$:new zl.ValueSubject(!1),type:0};this.info.isEnabled$=new zl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}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(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var e;this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...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 r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ba(t){return t instanceof Da}var Wl=require("@vkontakte/videoplayer-shared/es2018");function tm(t,e){F(e,!1);let i=ve();Nt(()=>{i.getAdmanWrapper().startPostroll()}),xo(),H()}var W_=require("@vkontakte/videoplayer-shared/es2018");var ty=Ee('<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>'),iy=Ee('<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){F(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),s=v(()=>["right","down"].includes(i())),l=v(()=>`chevron-icon--${i()}`),d=v(()=>(()=>{let p="";return n(s)&&(p+="transform: rotate(180deg);"),p.length?p:void 0})()),a=v(()=>o()?Zs:"currentColor"),u=v(()=>n(r)?"7":"16");Ze(t,{width:"12",get height(){return n(u)},get fill(){return n(a)},get testId(){return n(l)},get style(){return n(d)},children:(p,m)=>{var f=ke(),b=de(f);{var y=S=>{var C=ty();_(S,C)},$=S=>{var C=iy();_(S,C)};V(b,S=>{n(r)?S(y):S($,!1)})}_(p,f)},$$slots:{default:!0}}),H()}var oy=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},ny=L('<div class="skip s-1h"> <!></div>'),ry=L("<div><!></div>"),sy={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 im(t,e){F(e,!0),q(t,sy);let[i,o]=Ve(),r=()=>x(u,"$isMobile",i),s=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,W_.noop),u=ve().ui.isMobile,p=v(()=>s()>0&&s()>=l());var m=ry();let f;m.__click=[oy,p,d];var b=T(m);{var y=S=>{var C=ny(),I=T(C),R=k(I);kr(R,{direction:"right"}),w(C),B(E=>pe(I,`${E!=null?E:""} `),[()=>Q("skip_ads_now")]),_(S,C)},$=S=>{var C=ms();B(I=>pe(C,I),[()=>Q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),_(S,C)};V(b,S=>{n(p)?S(y):S($,!1)})}w(m),B(S=>f=se(m,1,"container s-1h",null,f,S),[()=>({"container-mobile":r(),skippable:n(p)})]),_(t,m),H(),o()}rt(["click"]);var ay=L('<button class="go-to-site s-1g"> </button>'),ly={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 om(t,e){F(e,!1),q(t,ly),xo();var i=ay(),o=T(i,!0);w(i),B(r=>pe(o,r),[()=>Q("visit_advertiser")],Tn),_(t,i),H()}var dy=L('<div class="top-gradient-mobile s-m"></div>'),cy=L('<div class="container s-m"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),uy={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 Jd(t,e){F(e,!0),q(t,uy);let[i,o]=Ve(),r=()=>x(U,"$canSkipAd",i),s=()=>x(D,"$adPlaybackState",i),l=()=>x(I,"$isMobile",i),d=()=>x(z,"$adPosition",i),a=()=>x(G,"$secondsToWatchBeforeSkipAd",i),u=()=>x(C,"$isVideoEnded",i),p=g(e,"adsSlotId",3,void 0),m=g(e,"adsParams",3,void 0),f=g(e,"adsAutoplayParam",3,void 0),b=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),$=ve(),S=Mt(),C=$.state.isEnded$,I=$.ui.isMobile,R=S.ads.isMobileGoToSiteButton,E=K(void 0),P=K(void 0),O=!1,D=$.ads.playbackState,U=$.ads.canSkip,z=$.ads.position,G=$.ads.secondsToWatchBeforeSkip,le=v(()=>r()&&s()!=="inactive"),X=v(()=>l()&&s()!=="inactive"&&R);Nt(()=>{let A=$.getAdmanWrapper();if(Wl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Wl.now)(),p()]}),!p()){A.onAdmanLoadingError();return}let We=()=>{var Be;let{width:Ne,height:De}=he($.ui.playerSize),fe=he($.ui.isFullscreen),ee=(Be=f())!=null?Be:he($.ui.isAutoplay),Se=S.ads.paramsOverride;return{width:Ne,height:De,isFullscreen:fe,isAutoplay:ee,adsContainer:n(E),adsVideoElement:n(P),slotId:p(),params:m(),paramsOverride:Se,duration:b(),externalApi:y()}},Ce=async Ne=>{Ne&&await ho();let De=We();await A.initAdman(De),O=!0},Y=new AbortController,ie=()=>{Y.abort()};return window.AdmanHTML?Ce(!0).catch(()=>{A.onAdmanLoadingError()}):A.loadAdman(Y.signal).then(()=>Ce(!1)).catch(()=>{A.onAdmanLoadingError()}),()=>{Wl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Wl.now)(),p()]}),!O&&ie()}});var oe=cy(),j=T(oe);{var ge=A=>{var We=dy();_(A,We)};V(j,A=>{l()&&A(ge)})}var ce=k(j,2);ot(ce,A=>N(P,A),()=>n(P));var re=k(ce,2);{var _e=A=>{im(A,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return $.actions.internal.skipAd}})};V(re,A=>{n(le)&&A(_e)})}var we=k(re,2);{var Z=A=>{tm(A,{})};V(we,A=>{u()&&A(Z)})}var Re=k(we,2);{var ue=A=>{om(A,{})};V(Re,A=>{n(X)&&A(ue)})}w(oe),ot(oe,A=>N(E,A),()=>n(E)),_(t,oe),H(),o()}var tn=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(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var py=Ee('<path fill="#fff"></path>'),fy=Ee("<path></path><!>",1);function ec(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"live-active-icon":"live-icon"),r=v(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),s="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";Ze(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var a=fy(),u=de(a),p=k(u);{var m=f=>{var b=py();He(b,"d",s),_(f,b)};V(p,f=>{i()&&f(m)})}B(()=>He(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"+s}z`)),_(l,a)},$$slots:{default:!0}})}var my=L('<div class="equalizer s-e"><div class="col s-e"></div> <div class="col s-e"></div> <div class="col s-e"></div></div>'),vy=L('<div class="live-icon s-e"><!></div>'),gy=L('<span class="text s-e"> </span>'),hy=L("<div><!> <!></div>"),_y={hash:"s-e",code:".wrapper.s-e{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-e{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-e{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-e .equalizer:where(.s-e){margin-top:-2px}.equalizer.s-e .col:where(.s-e){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-e .equalizer:where(.s-e) .col:where(.s-e){animation-play-state:running}.equalizer.s-e .col:where(.s-e):first-child{animation-name:s-e-thumb-timer-equalizer-col1;left:0}.equalizer.s-e .col:where(.s-e):nth-child(2){animation-name:s-e-thumb-timer-equalizer-col2;left:3px}.equalizer.s-e .col:where(.s-e):nth-child(3){animation-name:s-e-thumb-timer-equalizer-col3;left:6px}.live-icon.s-e{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-e-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-e-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-e-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-e{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function tc(t,e){q(t,_y);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var s=hy();let l;var d=T(s);{var a=f=>{var b=my();_(f,b)};V(d,f=>{i()&&f(a)})}var u=k(d,2);{var p=f=>{var b=vy(),y=T(b);ec(y,{isActive:!0}),w(b),_(f,b)},m=f=>{var b=gy(),y=T(b,!0);w(b),B(()=>pe(y,e.time)),_(f,b)};V(u,f=>{o()?f(p):f(m,!1)})}w(s),B(f=>l=se(s,1,"wrapper s-e",null,l,f),[()=>({live:o(),playing:r()})]),_(t,s)}var Kl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var by=L('<div role="timer" data-testid="thumb-timer"><!></div>'),$y={hash:"s-q",code:".thumb-timer.s-q{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 ic(t,e){F(e,!0),q(t,$y);let[i,o]=Ve(),r=()=>x(p,"$disabled",i),s=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),a=Mt(),u=v(()=>tn(e.duration-e.position)),p=ae(!1);var m=by();let f;var b=T(m);tc(b,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),w(m),Is(m,()=>Kl(s()&&a.features.usePerformanceFix,p,a.disableInvisibleComponentsTimeout)),B(y=>f=se(m,1,"thumb-timer s-q",null,f,y),[()=>({"out-of-flow":r(),hidden:s()})]),_(t,m),H(),o()}var ql=t=>{if(!navigator.clipboard){K_(t);return}navigator.clipboard.writeText(t).catch(()=>K_(t))};function K_(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 eb=require("@vkontakte/videoplayer-core/es2018");var rm=require("@vkontakte/videoplayer-core/es2018");var nm="focus-hidden";var Lr=t=>{t.stopPropagation(),t.preventDefault()},sm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(nm)},xy=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},wy=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Sy=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Ty=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},q_=t=>t.code==="Escape",Cy=t=>t.code==="ArrowLeft",oc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Q_=t=>{Sy(t)?(Lr(t),wy(t.target)):Ty(t)&&(Lr(t),xy(t.target))},ia=t=>!rm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||rm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Ql=async(t,e,i)=>{await ho(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(await ho(),i.set(!1),t.focus())},G_=async(t,e,i)=>{await ho(),t&&!e&&he(i)&&(i.set(!1),t.focus())},nc=async(t,e,i,o=!1)=>{if(await ho(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(nm,!i),s==null||s.focus()}},Y_=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},ju=(t,e)=>{Q_(t),sm(t.target),q_(t)&&(Lr(t),e())},Xu=async(t,e)=>{oc(t,["ArrowRight"])&&(Lr(t),e())},j_=async(t,e,i)=>{if(Q_(t),Cy(t)){Lr(t),e();return}q_(t)&&(Lr(t),i())},Gl=(t,e)=>{oc(t)&&(Lr(t),e())},X_=(t,e,i)=>{if(oc(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))}},Z_=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},J_=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 Ua=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 am=require("@vkontakte/videoplayer-shared/es2018");var Ey=(t,e)=>{Gl(t,()=>e())},Py=L('<li class="item s-1o" role="menuitem" tabindex="0"> </li>'),Ay={hash:"s-1o",code:".item.s-1o{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-1o:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function lm(t,e){F(e,!0),q(t,Ay);let i=g(e,"onClick",3,am.noop),o=g(e,"closeContextMenu",3,am.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Py();s.__click=r,s.__keydown=[Ey,r];var l=T(s,!0);w(s),B(()=>{var d;He(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),He(s,"data-testid",e.id),pe(l,e.label)}),_(t,s),H()}rt(["click","keydown"]);var Ha=(t,e)=>t.weight-e.weight;var Yl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Yl||{});var ky=(t,e)=>{ju(t,e)},Ly=t=>{t.preventDefault()},My=L('<ul role="menu" class="s-11"></ul>'),Vy={hash:"s-11",code:"ul.s-11{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 dm(t,e){F(e,!0),q(t,Vy);let[i,o]=Ve(),r=()=>x(ge,"$playerPhase",i),s=()=>x(le,"$isLive$",i),l=()=>x(ce,"$isPiPEnabled$",i),d=()=>x(G,"$chromecastState$",i),a=()=>x(re,"$pictureInPictureApiIsActive$",i),u=()=>x(j,"$isLooped$",i),p=()=>x(X,"$positionExact$",i),m=()=>x(D,"$additionalContextMenuItems$",i),f=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),S=K(0),C=K(0),I=ve(),{pictureInPicture$:R}=wo(),E=Mt(),P=I.ui.contextMenu.visible$,O=I.ui.debugPanelVisible,D=I.ui.additionalContextMenuItems$,U=I.ui.t,z=I.actions.internal.togglePictureInPicture,G=I.state.chromecastState$,le=I.state.isLive$,X=I.state.positionExact$,oe=I.state.isInteractive,j=I.state.looped$,ge=I.playerPhase,{isEnabled$:ce,isActive$:re}=R,_e=v(()=>r()==="video"),we=v(()=>!!s()&&n(_e)),Z=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Re=v(()=>{var $e;return E.features.copyVideoLink&&(($e=I.callbacks)==null?void 0:$e.onCopyVideoLink)}),ue=v(()=>n(Re)&&!n(Z)&&!oe&&!n(we)),A=v(()=>{var $e;return!!(($e=I.callbacks)!=null&&$e.onCopyEmbedCodeClicked)}),We=v(()=>l()&&d()!==eb.ChromecastState.CONNECTED&&!oe&&n(_e)),Ce=v(()=>!oe&&!n(Z)&&!n(we)),Y=v(()=>E.features.videoRotate&&!oe&&!n(Z)),ie=v(()=>E.showSupport&&!a()),Ne=v(()=>E.features.saveTraceInfoToFile),De=()=>{var $e;P.set(!1),($e=e.returnFocus)==null||$e.call(e)},fe=($e,Je)=>{if(!$()||!y())return;let ze=$().getBoundingClientRect(),nt=y().getBoundingClientRect();N(S,$e-nt.left),N(C,Je-nt.top),n(S)+ze.width>nt.width&&N(S,nt.width-ze.width),n(C)+ze.height>nt.height&&N(C,nt.height-ze.height),N(S,Math.max(n(S),0),!0),N(C,Math.max(n(C),0),!0)};Oe(()=>{(async()=>{if($()&&y()){await ho();let{top:Je,left:ze,bottom:nt,right:Jt}=b(),ri=ze!=null?ze:0,pi=Je!=null?Je:0,hi=$().getBoundingClientRect();(0,Ua.isNullable)(ze)&&!(0,Ua.isNullable)(Jt)&&(ri=Jt-hi.width),(0,Ua.isNullable)(Je)&&!(0,Ua.isNullable)(nt)&&(pi=nt-hi.height),ri=Math.max(ri,0),pi=Math.max(pi,0),fe(ri,pi)}})()});let ee=()=>{I.actions.internal.videoRotate()},Se=()=>{(0,Ua.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Be=()=>{let $e=I.actions.internal.getDebugTextData();if(E.features.saveDebugInfoToFile){let Je=new Blob([...$e],{type:"plain/text"}),ze=window.URL.createObjectURL(Je);Ra(ze,"vk_player_debug_info","txt")}else ql(I.actions.internal.getDebugTextData())},Ke=()=>{let $e=I.actions.internal.getTraceTextData(),Je=new Blob([...$e],{type:"application/json"}),ze=window.URL.createObjectURL(Je);Ra(ze,"vk_player_trace_info","json")},Ye=()=>{O.set(!0)},Te=async()=>{var $e;try{z()}finally{($e=e.returnFocus)==null||$e.call(e)}},Le=()=>{I.actions.internal.setLooped(!u())},Ue=()=>{var $e,Je;if(n(A)){let ze=(Je=($e=I.callbacks)==null?void 0:$e.onCopyEmbedCodeClicked)==null?void 0:Je.call($e);ze&&ql(ze)}},Vt=($e=!1)=>{var Je,ze;if((Je=I.callbacks)!=null&&Je.onCopyVideoLink){let nt=(ze=I.callbacks)==null?void 0:ze.onCopyVideoLink($e,p());nt&&ql(nt)}},et=v(()=>E.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Ot=v(()=>n(Re)?{id:"copy-link",weight:Jr["copy-link"],label:U("menu_copy_video_link"),onClick:()=>Vt()}:void 0),Kt=v(()=>n(ue)?{id:"copy-link-timestamp",weight:Jr["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>Vt(!0)}:void 0),Tt=v(()=>n(A)?{id:"copy-embed-code",weight:Jr["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:Ue}:void 0),Zt=v(()=>n(We)?{id:"pip",weight:Jr.pip,label:a()?U("menu_pip_close"):U("menu_pip"),onClick:Te}:void 0),Dt=v(()=>n(Ce)?{id:"video-loop",weight:Jr["video-loop"],label:u()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Le}:void 0),ye=v(()=>n(Y)?{id:"rotate",weight:Jr.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:ee}:void 0),be=v(()=>n(ie)?{id:"report",weight:Jr.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Se}:void 0),J=v(()=>({id:"save-debug",weight:Jr["save-debug"],label:n(et),onClick:Be})),xe=v(()=>n(Ne)?{id:"save-trace",weight:Jr["save-trace"],label:U("menu_save_debug"),onClick:Ke}:void 0),Pe=v(()=>({id:"debug-info",weight:Jr["debug-info"],label:U("menu_debug_overlay"),ariaLabel:U("aria_label_menu_debug_overlay"),onClick:Ye})),It=v(()=>[n(Ot),n(Kt),n(Tt),n(Zt),n(Dt),n(ye),n(be),n(J),n(xe),n(Pe),...m()].filter($e=>!!$e).sort(Ha));var Me=ke(),st=de(Me);{var vt=$e=>{var Je=My();Je.__contextmenu=[Ly],Je.__keydown=[ky,De],yi(Je,21,()=>n(It),ze=>ze.id,(ze,nt)=>{lm(ze,{get id(){return n(nt).id},get label(){return n(nt).label},get ariaLabel(){return n(nt).ariaLabel},get onClick(){return n(nt).onClick},closeContextMenu:De})}),w(Je),ot(Je,ze=>$(ze),()=>$()),B(()=>{var ze,nt;return Qe(Je,`top: ${(ze=n(C))!=null?ze:""}px; left: ${(nt=n(S))!=null?nt:""}px;`)}),_($e,Je)};V(st,$e=>{f()&&$e(vt)})}_(t,Me),H(),o()}rt(["contextmenu","keydown"]);var Zu=class{constructor(e){this.value=e,this.next=null}};var jl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Zu(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 Ry=L('<div class="container s-1j"><canvas class="s-1j"></canvas></div>'),Ny={hash:"s-1j",code:".container.s-1j{display:inline-block;height:16px;width:120px}canvas.s-1j{margin-top:2px;transform:scaleY(-1)}"};function rc(t,e){F(e,!0),q(t,Ny);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),s=16,l=120,d=60,a=l/d;Nt(()=>{n(o).width=l,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function u(f,b,y,$,S){S===0&&(S=1),f.fillStyle="#fff",f.fillRect(b,y,$,S)}Oe(()=>{let f="";if(n(r)){let b=i()[0];for(let $=1;$<i().length;$++)i()[$]>b&&(b=i()[$]);n(r).clearRect(0,0,l,s);let y=d-1;for(let $=i().length-1;$>=0;$--){let S=y*a,C=b>0?s*(i()[$]/b):0;u(n(r),S,0,a,C),f=C+" "+f,y--}}});var p=Ry(),m=T(p);ot(m,f=>N(o,f),()=>n(o)),w(p),_(t,p),H()}var cm=require("@vkontakte/videoplayer-shared/es2018");var Oy=(t,e)=>{t.stopPropagation(),cm.safeStorage.remove(Kd),e.set(!1)},Dy=L('<div class="s-o"><div class="s-o">Video id</div> <span> </span></div>'),By=L('<div class="s-o"><div class="s-o">VSID</div> <span> </span></div>'),Fy=L('<div class="s-o"><div class="s-o">Provider</div> <span> </span></div>'),Hy=L('<div class="s-o"><div class="s-o">Streams</div> <span> </span></div>'),Uy=L('<div class="s-o"><div class="s-o">Viewport</div> <span> </span></div>'),zy=L('<div class="s-o"><div class="s-o">Video size</div> <span> </span></div>'),Wy=L('<div class="s-o"><div class="s-o">CDN host</div> <span> </span></div>'),Ky=L('<div class="s-o"><div class="s-o">Volume</div> <span> </span></div>'),qy=L('<div class="s-o"><div class="s-o">Position</div> <span> </span></div>'),Qy=L('<div class="s-o"><div class="s-o">Buffer</div> <span> </span></div>'),Gy=L('<div class="s-o"><div class="s-o">Live latency</div> <span> </span></div>'),Yy=L('<div class="s-o"><div class="s-o">Segment</div> <span> </span></div>'),jy=L('<div class="s-o"><div class="s-o">Network</div> <!> <span> </span></div>'),Xy=L('<div class="s-o"><div class="s-o">V bitrate</div> <!> <span> </span></div>'),Zy=L('<div role="region"><button class="close s-o" title="закрыть">[x]</button> <div class="content s-o"><div class="s-o"><div class="s-o">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-o"><div class="s-o">Dropped</div> <span> </span></div> <!> <!> <div class="s-o"><div class="s-o">FPS</div> <!> <span> </span></div></div></div>'),Jy={hash:"s-o",code:".container.s-o{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-o{left:16px;top:16px}button.close.s-o{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-o{padding:5px}.content.s-o>div:where(.s-o)>div:where(.s-o){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function sc(t,e){F(e,!0),q(t,Jy);let[i,o]=Ve(),r=()=>x(d,"$isMobile",i),s=ve(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=K(ai(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),p=K(0),m=K(0),f=K(0),b=new jl(60),y=new jl(60),$=new jl(60),S=K(ai([])),C=K(ai([])),I=K(ai([])),R=Q("aria_label_debug_panel");Nt(()=>{cm.safeStorage.set(Kd,"true"),s.actions.internal.startLogging(),u&&(N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(p,u.getVideoPlaybackQuality().totalVideoFrames,!0));let ye=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),be;return u&&(be=window.setInterval(()=>{if(u){N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let J=u.getVideoPlaybackQuality().totalVideoFrames;N(f,J-n(p)),N(p,J,!0),b.push(n(f)),n(a).speed&&y.push(n(a).speed),n(a).bitrate&&$.push(n(a).bitrate),N(S,b.getValuesFromBottom(),!0),N(C,y.getValuesFromBottom(),!0),N(I,$.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(ye),be&&clearInterval(be)}});var E=Zy();let P;var O=T(E);O.__click=[Oy,l];var D=k(O,2),U=T(D),z=k(T(U),2),G=T(z,!0);w(z),w(U);var le=k(U,2);{var X=ye=>{var be=Dy(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(a).id)),_(ye,be)};V(le,ye=>{n(a).id&&ye(X)})}var oe=k(le,2);{var j=ye=>{var be=By(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(a).vsid)),_(ye,be)};V(oe,ye=>{n(a).vsid&&ye(j)})}var ge=k(oe,2);{var ce=ye=>{var be=Fy(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(a).provider)),_(ye,be)};V(ge,ye=>{n(a).provider&&ye(ce)})}var re=k(ge,2);{var _e=ye=>{var be=Hy(),J=k(T(be),2),xe=T(J);w(J),w(be),B(()=>{var Pe,It;return pe(xe,`Video: ${(Pe=n(a).videoCodec||"")!=null?Pe:""} ${n(a).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"},O_=G1;var Ps=new Map;Ps.set(Bl.InterfaceLanguage.EN,O_);Ps.set(Bl.InterfaceLanguage.RU,N_);var D_=new Map,Yf=({language:t,pack:e,fallback:i})=>{if(Ps.has(t)){let o=Ps.get(t);Ps.set(t,{...o,...e})}else Ps.set(t,e);D_.set(t,i)},jf=t=>Ps.has(t),Xf=(t,e,i,o)=>{var l;let r=Ps.get(t),s=r==null?void 0:r[e];if((0,Bl.isNullable)(s)){let d=(l=D_.get(t))!=null?l:o,a=d?Ps.get(d):void 0;s=a==null?void 0:a[e]}return(0,Bl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},Q=(t,e)=>{let{interfaceLanguage$:i}=me(),o=he(i),r=Mt();return Xf(o,t,e,r.defaultLanguage)};var Y1=Ee('<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 jd(t,e){H(e,!1);let i=Q("video360");wo(),Ze(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var s=Y1();_(o,s)},$$slots:{default:!0}}),U()}var j6=require("@vkontakte/videoplayer-core/es2018");var Fl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Fl||(Fl={}));var j1=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,X1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Z1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hu="?",J1="X-Sentry-Auth",ey=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ty(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,r;for(let s=0;s<i.length;++s){if(o=j1.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Hu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Z1.exec(i[s]))r={filename:o[2],function:o[1]||Hu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=X1.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Hu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Hu),e.push(r)}return e.length?{value:B_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function B_(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function iy(t){try{let e=ty(t);if(e)return e}catch(e){}return{value:B_(t),type:t&&t.name,stacktrace:{frames:[]}}}function oy(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Uu=class{constructor(e){if(e&&e.dsn){let i=ey.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[iy(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(J1,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:oy(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function F_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function ny(){return window}var zu=class t extends Uu{constructor(e,i=ny()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>F_(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>F_(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Va=require("@vkontakte/videoplayer-shared/es2018");var Wu=null,Ra=class{constructor(e,i,o={}){!Wu&&e.dsn&&(this.sentryClient=new zu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Va.Subscription,this.options=e,this.context=o,Wu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Wu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:m,blackErrorCategoryList:f}=l,{errorType:p,category:b}=i;if((0,Va.isNonNullable)(b)&&f.includes(b)||(0,Va.isNonNullable)(p)&&m.includes(p))return;if(Math.random()<=d||(0,Va.isNonNullable)(b)&&u.includes(b)||(0,Va.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{p&&r.captureMessage(p,i.fatal?Fl.fatal:Fl.error),r.report(e)}catch($){console.error($)}}}static getInstance(){return Wu}};var Xr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Xr||{});var Ku=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()},qu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),H_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,U_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Xd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Zs=()=>!!Xd(),Qu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Gu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},z_=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 Zf=require("@vkontakte/videoplayer-core/es2018"),W_=()=>({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:Zf.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:Zf.clientChecker.device.isApple?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});var Hl=require("@vkontakte/videoplayer-shared/es2018"),Na=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Hl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Hl.ValueSubject(!1),isEnabled$:new Hl.ValueSubject(!1),type:0};this.info.isEnabled$=new Hl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}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(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var e;this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...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 r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Oa(t){return t instanceof Na}var Ul=require("@vkontakte/videoplayer-shared/es2018");function em(t,e){H(e,!1);let i=me();Nt(()=>{i.getAdmanWrapper().startPostroll()}),wo(),U()}var K_=require("@vkontakte/videoplayer-shared/es2018");var ry=Ee('<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>'),sy=Ee('<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){H(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),s=v(()=>["right","down"].includes(i())),l=v(()=>`chevron-icon--${i()}`),d=v(()=>(()=>{let m="";return n(s)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),a=v(()=>o()?Xs:"currentColor"),u=v(()=>n(r)?"7":"16");Ze(t,{width:"12",get height(){return n(u)},get fill(){return n(a)},get testId(){return n(l)},get style(){return n(d)},children:(m,f)=>{var p=Ae(),b=de(p);{var y=S=>{var I=ry();_(S,I)},$=S=>{var I=sy();_(S,I)};V(b,S=>{n(r)?S(y):S($,!1)})}_(m,p)},$$slots:{default:!0}}),U()}var ay=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},ly=L('<div class="skip s-1h"> <!></div>'),dy=L("<div><!></div>"),cy={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 tm(t,e){H(e,!0),q(t,cy);let[i,o]=Ve(),r=()=>x(u,"$isMobile",i),s=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,K_.noop),u=me().ui.isMobile,m=v(()=>s()>0&&s()>=l());var f=dy();let p;f.__click=[ay,m,d];var b=T(f);{var y=S=>{var I=ly(),C=T(I),R=A(C);Vr(R,{direction:"right"}),w(I),D(E=>pe(C,`${E!=null?E:""} `),[()=>Q("skip_ads_now")]),_(S,I)},$=S=>{var I=us();D(C=>pe(I,C),[()=>Q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),_(S,I)};V(b,S=>{n(m)?S(y):S($,!1)})}w(f),D(S=>p=se(f,1,"container s-1h",null,p,S),[()=>({"container-mobile":r(),skippable:n(m)})]),_(t,f),U(),o()}rt(["click"]);var uy=L('<button class="go-to-site s-1i"> </button>'),py={hash:"s-1i",code:"button.go-to-site.s-1i{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 im(t,e){H(e,!1),q(t,py),wo();var i=uy(),o=T(i,!0);w(i),D(r=>pe(o,r),[()=>Q("visit_advertiser")],Cn),_(t,i),U()}var fy=L('<div class="top-gradient-mobile s-m"></div>'),my=L('<div class="container s-m"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),vy={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 Jd(t,e){H(e,!0),q(t,vy);let[i,o]=Ve(),r=()=>x(F,"$canSkipAd",i),s=()=>x(B,"$adPlaybackState",i),l=()=>x(C,"$isMobile",i),d=()=>x(z,"$adPosition",i),a=()=>x(G,"$secondsToWatchBeforeSkipAd",i),u=()=>x(I,"$isVideoEnded",i),m=g(e,"adsSlotId",3,void 0),f=g(e,"adsParams",3,void 0),p=g(e,"adsAutoplayParam",3,void 0),b=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),$=me(),S=Mt(),I=$.state.isEnded$,C=$.ui.isMobile,R=S.ads.isMobileGoToSiteButton,E=K(void 0),k=K(void 0),O=!1,B=$.ads.playbackState,F=$.ads.canSkip,z=$.ads.position,G=$.ads.secondsToWatchBeforeSkip,le=v(()=>r()&&s()!=="inactive"),X=v(()=>l()&&s()!=="inactive"&&R);Nt(()=>{let P=$.getAdmanWrapper();if(Ul.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ul.now)(),m()]}),!m()){P.onAdmanLoadingError();return}let We=()=>{var Fe;let{width:Oe,height:Be}=he($.ui.playerSize),fe=he($.ui.isFullscreen),ee=(Fe=p())!=null?Fe:he($.ui.isAutoplay),Se=S.ads.paramsOverride;return{width:Oe,height:Be,isFullscreen:fe,isAutoplay:ee,adsContainer:n(E),adsVideoElement:n(k),slotId:m(),params:f(),paramsOverride:Se,duration:b(),externalApi:y()}},Ce=async Oe=>{Oe&&await ho();let Be=We();await P.initAdman(Be),O=!0},Y=new AbortController,ie=()=>{Y.abort()};return window.AdmanHTML?Ce(!0).catch(()=>{P.onAdmanLoadingError()}):P.loadAdman(Y.signal).then(()=>Ce(!1)).catch(()=>{P.onAdmanLoadingError()}),()=>{Ul.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ul.now)(),m()]}),!O&&ie()}});var oe=my(),j=T(oe);{var ve=P=>{var We=fy();_(P,We)};V(j,P=>{l()&&P(ve)})}var ce=A(j,2);ot(ce,P=>N(k,P),()=>n(k));var re=A(ce,2);{var _e=P=>{tm(P,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return $.actions.internal.skipAd}})};V(re,P=>{n(le)&&P(_e)})}var we=A(re,2);{var Z=P=>{em(P,{})};V(we,P=>{u()&&P(Z)})}var Ne=A(we,2);{var ue=P=>{im(P,{})};V(Ne,P=>{n(X)&&P(ue)})}w(oe),ot(oe,P=>N(E,P),()=>n(E)),_(t,oe),U(),o()}var Jo=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(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var gy=Ee('<path fill="#fff"></path>'),hy=Ee("<path></path><!>",1);function ec(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"live-active-icon":"live-icon"),r=v(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),s="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";Ze(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var a=hy(),u=de(a),m=A(u);{var f=p=>{var b=gy();Re(b,"d",s),_(p,b)};V(m,p=>{i()&&p(f)})}D(()=>Re(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"+s}z`)),_(l,a)},$$slots:{default:!0}})}var _y=L('<div class="equalizer s-d"><div class="col s-d"></div> <div class="col s-d"></div> <div class="col s-d"></div></div>'),by=L('<div class="live-icon s-d"><!></div>'),$y=L('<span class="text s-d"> </span>'),yy=L("<div><!> <!></div>"),xy={hash:"s-d",code:".wrapper.s-d{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-d{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-d{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-d .equalizer:where(.s-d){margin-top:-2px}.equalizer.s-d .col:where(.s-d){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-d .equalizer:where(.s-d) .col:where(.s-d){animation-play-state:running}.equalizer.s-d .col:where(.s-d):first-child{animation-name:s-d-thumb-timer-equalizer-col1;left:0}.equalizer.s-d .col:where(.s-d):nth-child(2){animation-name:s-d-thumb-timer-equalizer-col2;left:3px}.equalizer.s-d .col:where(.s-d):nth-child(3){animation-name:s-d-thumb-timer-equalizer-col3;left:6px}.live-icon.s-d{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-d-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-d-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-d-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-d{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function tc(t,e){q(t,xy);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var s=yy();let l;var d=T(s);{var a=p=>{var b=_y();_(p,b)};V(d,p=>{i()&&p(a)})}var u=A(d,2);{var m=p=>{var b=by(),y=T(b);ec(y,{isActive:!0}),w(b),_(p,b)},f=p=>{var b=$y(),y=T(b,!0);w(b),D(()=>pe(y,e.time)),_(p,b)};V(u,p=>{o()?p(m):p(f,!1)})}w(s),D(p=>l=se(s,1,"wrapper s-d",null,l,p),[()=>({live:o(),playing:r()})]),_(t,s)}var zl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var wy=L('<div role="timer" data-testid="thumb-timer"><!></div>'),Sy={hash:"s-q",code:".thumb-timer.s-q{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 ic(t,e){H(e,!0),q(t,Sy);let[i,o]=Ve(),r=()=>x(m,"$disabled",i),s=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),a=Mt(),u=v(()=>Jo(e.duration-e.position)),m=ae(!1);var f=wy();let p;var b=T(f);tc(b,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),w(f),Is(f,()=>zl(s()&&a.features.usePerformanceFix,m,a.disableInvisibleComponentsTimeout)),D(y=>p=se(f,1,"thumb-timer s-q",null,p,y),[()=>({"out-of-flow":r(),hidden:s()})]),_(t,f),U(),o()}var Wl=t=>{if(!navigator.clipboard){q_(t);return}navigator.clipboard.writeText(t).catch(()=>q_(t))};function q_(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 tb=require("@vkontakte/videoplayer-core/es2018");var nm=require("@vkontakte/videoplayer-core/es2018");var om="focus-hidden";var Rr=t=>{t.stopPropagation(),t.preventDefault()},rm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(om)},Cy=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Iy=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Ey=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Py=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Q_=t=>t.code==="Escape",ky=t=>t.code==="ArrowLeft",oc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},G_=t=>{Ey(t)?(Rr(t),Iy(t.target)):Py(t)&&(Rr(t),Cy(t.target))},ta=t=>!nm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||nm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Kl=async(t,e,i)=>{await ho(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(await ho(),i.set(!1),t.focus())},Y_=async(t,e,i)=>{await ho(),t&&!e&&he(i)&&(i.set(!1),t.focus())},nc=async(t,e,i,o=!1)=>{if(await ho(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(om,!i),s==null||s.focus()}},j_=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Yu=(t,e)=>{G_(t),rm(t.target),Q_(t)&&(Rr(t),e())},ju=async(t,e)=>{oc(t,["ArrowRight"])&&(Rr(t),e())},X_=async(t,e,i)=>{if(G_(t),ky(t)){Rr(t),e();return}Q_(t)&&(Rr(t),i())},ql=(t,e)=>{oc(t)&&(Rr(t),e())},Z_=(t,e,i)=>{if(oc(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))}},J_=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},eb=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 Fa=require("@vkontakte/videoplayer-shared/es2018");var Zr={"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 sm=require("@vkontakte/videoplayer-shared/es2018");var Ly=(t,e)=>{ql(t,()=>e())},My=L('<li class="item s-1q" role="menuitem" tabindex="0"> </li>'),Vy={hash:"s-1q",code:".item.s-1q{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-1q:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function am(t,e){H(e,!0),q(t,Vy);let i=g(e,"onClick",3,sm.noop),o=g(e,"closeContextMenu",3,sm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=My();s.__click=r,s.__keydown=[Ly,r];var l=T(s,!0);w(s),D(()=>{var d;Re(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Re(s,"data-testid",e.id),pe(l,e.label)}),_(t,s),U()}rt(["click","keydown"]);var Ba=(t,e)=>t.weight-e.weight;var Ql=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Ql||{});var Ry=(t,e)=>{Yu(t,e)},Ny=t=>{t.preventDefault()},Oy=L('<ul role="menu" class="s-1e"></ul>'),Dy={hash:"s-1e",code:"ul.s-1e{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 lm(t,e){H(e,!0),q(t,Dy);let[i,o]=Ve(),r=()=>x(ve,"$playerPhase",i),s=()=>x(le,"$isLive$",i),l=()=>x(ce,"$isPiPEnabled$",i),d=()=>x(G,"$chromecastState$",i),a=()=>x(re,"$pictureInPictureApiIsActive$",i),u=()=>x(j,"$isLooped$",i),m=()=>x(X,"$positionExact$",i),f=()=>x(B,"$additionalContextMenuItems$",i),p=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),S=K(0),I=K(0),C=me(),{pictureInPicture$:R}=So(),E=Mt(),k=C.ui.contextMenu.visible$,O=C.ui.debugPanelVisible,B=C.ui.additionalContextMenuItems$,F=C.ui.t,z=C.actions.internal.togglePictureInPicture,G=C.state.chromecastState$,le=C.state.isLive$,X=C.state.positionExact$,oe=C.state.isInteractive,j=C.state.looped$,ve=C.playerPhase,{isEnabled$:ce,isActive$:re}=R,_e=v(()=>r()==="video"),we=v(()=>!!s()&&n(_e)),Z=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=v(()=>{var $e;return E.features.copyVideoLink&&(($e=C.callbacks)==null?void 0:$e.onCopyVideoLink)}),ue=v(()=>n(Ne)&&!n(Z)&&!oe&&!n(we)),P=v(()=>{var $e;return!!(($e=C.callbacks)!=null&&$e.onCopyEmbedCodeClicked)}),We=v(()=>l()&&d()!==tb.ChromecastState.CONNECTED&&!oe&&n(_e)),Ce=v(()=>!oe&&!n(Z)&&!n(we)),Y=v(()=>E.features.videoRotate&&!oe&&!n(Z)),ie=v(()=>E.showSupport&&!a()),Oe=v(()=>E.features.saveTraceInfoToFile),Be=()=>{var $e;k.set(!1),($e=e.returnFocus)==null||$e.call(e)},fe=($e,Je)=>{if(!$()||!y())return;let ze=$().getBoundingClientRect(),nt=y().getBoundingClientRect();N(S,$e-nt.left),N(I,Je-nt.top),n(S)+ze.width>nt.width&&N(S,nt.width-ze.width),n(I)+ze.height>nt.height&&N(I,nt.height-ze.height),N(S,Math.max(n(S),0),!0),N(I,Math.max(n(I),0),!0)};De(()=>{(async()=>{if($()&&y()){await ho();let{top:Je,left:ze,bottom:nt,right:Jt}=b(),ri=ze!=null?ze:0,pi=Je!=null?Je:0,hi=$().getBoundingClientRect();(0,Fa.isNullable)(ze)&&!(0,Fa.isNullable)(Jt)&&(ri=Jt-hi.width),(0,Fa.isNullable)(Je)&&!(0,Fa.isNullable)(nt)&&(pi=nt-hi.height),ri=Math.max(ri,0),pi=Math.max(pi,0),fe(ri,pi)}})()});let ee=()=>{C.actions.internal.videoRotate()},Se=()=>{(0,Fa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),C.actions.internal.reportProblem(),C.actions.internal.pause()},Fe=()=>{let $e=C.actions.internal.getDebugTextData();if(E.features.saveDebugInfoToFile){let Je=new Blob([...$e],{type:"plain/text"}),ze=window.URL.createObjectURL(Je);Ma(ze,"vk_player_debug_info","txt")}else Wl(C.actions.internal.getDebugTextData())},Ke=()=>{let $e=C.actions.internal.getTraceTextData(),Je=new Blob([...$e],{type:"application/json"}),ze=window.URL.createObjectURL(Je);Ma(ze,"vk_player_trace_info","json")},Ye=()=>{O.set(!0)},Te=async()=>{var $e;try{z()}finally{($e=e.returnFocus)==null||$e.call(e)}},Le=()=>{C.actions.internal.setLooped(!u())},Ue=()=>{var $e,Je;if(n(P)){let ze=(Je=($e=C.callbacks)==null?void 0:$e.onCopyEmbedCodeClicked)==null?void 0:Je.call($e);ze&&Wl(ze)}},Vt=($e=!1)=>{var Je,ze;if((Je=C.callbacks)!=null&&Je.onCopyVideoLink){let nt=(ze=C.callbacks)==null?void 0:ze.onCopyVideoLink($e,m());nt&&Wl(nt)}},et=v(()=>E.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Ot=v(()=>n(Ne)?{id:"copy-link",weight:Zr["copy-link"],label:F("menu_copy_video_link"),onClick:()=>Vt()}:void 0),Wt=v(()=>n(ue)?{id:"copy-link-timestamp",weight:Zr["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>Vt(!0)}:void 0),Ct=v(()=>n(P)?{id:"copy-embed-code",weight:Zr["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:Ue}:void 0),Zt=v(()=>n(We)?{id:"pip",weight:Zr.pip,label:a()?F("menu_pip_close"):F("menu_pip"),onClick:Te}:void 0),Dt=v(()=>n(Ce)?{id:"video-loop",weight:Zr["video-loop"],label:u()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Le}:void 0),ye=v(()=>n(Y)?{id:"rotate",weight:Zr.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:ee}:void 0),be=v(()=>n(ie)?{id:"report",weight:Zr.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:Se}:void 0),J=v(()=>({id:"save-debug",weight:Zr["save-debug"],label:n(et),onClick:Fe})),xe=v(()=>n(Oe)?{id:"save-trace",weight:Zr["save-trace"],label:F("menu_save_debug"),onClick:Ke}:void 0),Pe=v(()=>({id:"debug-info",weight:Zr["debug-info"],label:F("menu_debug_overlay"),ariaLabel:F("aria_label_menu_debug_overlay"),onClick:Ye})),It=v(()=>[n(Ot),n(Wt),n(Ct),n(Zt),n(Dt),n(ye),n(be),n(J),n(xe),n(Pe),...f()].filter($e=>!!$e).sort(Ba));var Me=Ae(),st=de(Me);{var mt=$e=>{var Je=Oy();Je.__contextmenu=[Ny],Je.__keydown=[Ry,Be],xi(Je,21,()=>n(It),ze=>ze.id,(ze,nt)=>{am(ze,{get id(){return n(nt).id},get label(){return n(nt).label},get ariaLabel(){return n(nt).ariaLabel},get onClick(){return n(nt).onClick},closeContextMenu:Be})}),w(Je),ot(Je,ze=>$(ze),()=>$()),D(()=>{var ze,nt;return Qe(Je,`top: ${(ze=n(I))!=null?ze:""}px; left: ${(nt=n(S))!=null?nt:""}px;`)}),_($e,Je)};V(st,$e=>{p()&&$e(mt)})}_(t,Me),U(),o()}rt(["contextmenu","keydown"]);var Xu=class{constructor(e){this.value=e,this.next=null}};var Gl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Xu(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 By=L('<div class="container s-1g"><canvas class="s-1g"></canvas></div>'),Fy={hash:"s-1g",code:".container.s-1g{display:inline-block;height:16px;width:120px}canvas.s-1g{margin-top:2px;transform:scaleY(-1)}"};function rc(t,e){H(e,!0),q(t,Fy);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),s=16,l=120,d=60,a=l/d;Nt(()=>{n(o).width=l,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function u(p,b,y,$,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect(b,y,$,S)}De(()=>{let p="";if(n(r)){let b=i()[0];for(let $=1;$<i().length;$++)i()[$]>b&&(b=i()[$]);n(r).clearRect(0,0,l,s);let y=d-1;for(let $=i().length-1;$>=0;$--){let S=y*a,I=b>0?s*(i()[$]/b):0;u(n(r),S,0,a,I),p=I+" "+p,y--}}});var m=By(),f=T(m);ot(f,p=>N(o,p),()=>n(o)),w(m),_(t,m),U()}var dm=require("@vkontakte/videoplayer-shared/es2018");var Hy=(t,e)=>{t.stopPropagation(),dm.safeStorage.remove(Kd),e.set(!1)},Uy=L('<div class="s-n"><div class="s-n">Video id</div> <span> </span></div>'),zy=L('<div class="s-n"><div class="s-n">VSID</div> <span> </span></div>'),Wy=L('<div class="s-n"><div class="s-n">Provider</div> <span> </span></div>'),Ky=L('<div class="s-n"><div class="s-n">Streams</div> <span> </span></div>'),qy=L('<div class="s-n"><div class="s-n">Viewport</div> <span> </span></div>'),Qy=L('<div class="s-n"><div class="s-n">Video size</div> <span> </span></div>'),Gy=L('<div class="s-n"><div class="s-n">CDN host</div> <span> </span></div>'),Yy=L('<div class="s-n"><div class="s-n">Volume</div> <span> </span></div>'),jy=L('<div class="s-n"><div class="s-n">Position</div> <span> </span></div>'),Xy=L('<div class="s-n"><div class="s-n">Buffer</div> <span> </span></div>'),Zy=L('<div class="s-n"><div class="s-n">Live latency</div> <span> </span></div>'),Jy=L('<div class="s-n"><div class="s-n">Segment</div> <span> </span></div>'),e0=L('<div class="s-n"><div class="s-n">Network</div> <!> <span> </span></div>'),t0=L('<div class="s-n"><div class="s-n">V bitrate</div> <!> <span> </span></div>'),i0=L('<div role="region"><button class="close s-n" title="закрыть">[x]</button> <div class="content s-n"><div class="s-n"><div class="s-n">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-n"><div class="s-n">Dropped</div> <span> </span></div> <!> <!> <div class="s-n"><div class="s-n">FPS</div> <!> <span> </span></div></div></div>'),o0={hash:"s-n",code:".container.s-n{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-n{left:16px;top:16px}button.close.s-n{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-n{padding:5px}.content.s-n>div:where(.s-n)>div:where(.s-n){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function sc(t,e){H(e,!0),q(t,o0);let[i,o]=Ve(),r=()=>x(d,"$isMobile",i),s=me(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=K(di(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),m=K(0),f=K(0),p=K(0),b=new Gl(60),y=new Gl(60),$=new Gl(60),S=K(di([])),I=K(di([])),C=K(di([])),R=Q("aria_label_debug_panel");Nt(()=>{dm.safeStorage.set(Kd,"true"),s.actions.internal.startLogging(),u&&(N(f,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let ye=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),be;return u&&(be=window.setInterval(()=>{if(u){N(f,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let J=u.getVideoPlaybackQuality().totalVideoFrames;N(p,J-n(m)),N(m,J,!0),b.push(n(p)),n(a).speed&&y.push(n(a).speed),n(a).bitrate&&$.push(n(a).bitrate),N(S,b.getValuesFromBottom(),!0),N(I,y.getValuesFromBottom(),!0),N(C,$.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(ye),be&&clearInterval(be)}});var E=i0();let k;var O=T(E);O.__click=[Hy,l];var B=A(O,2),F=T(B),z=A(T(F),2),G=T(z,!0);w(z),w(F);var le=A(F,2);{var X=ye=>{var be=Uy(),J=A(T(be),2),xe=T(J,!0);w(J),w(be),D(()=>pe(xe,n(a).id)),_(ye,be)};V(le,ye=>{n(a).id&&ye(X)})}var oe=A(le,2);{var j=ye=>{var be=zy(),J=A(T(be),2),xe=T(J,!0);w(J),w(be),D(()=>pe(xe,n(a).vsid)),_(ye,be)};V(oe,ye=>{n(a).vsid&&ye(j)})}var ve=A(oe,2);{var ce=ye=>{var be=Wy(),J=A(T(be),2),xe=T(J,!0);w(J),w(be),D(()=>pe(xe,n(a).provider)),_(ye,be)};V(ve,ye=>{n(a).provider&&ye(ce)})}var re=A(ve,2);{var _e=ye=>{var be=Ky(),J=A(T(be),2),xe=T(J);w(J),w(be),D(()=>{var Pe,It;return pe(xe,`Video: ${(Pe=n(a).videoCodec||"")!=null?Pe:""} ${n(a).hdr?"(HDR)":""}
57
57
  &
58
- Audio: ${(It=n(a).audioCodec||"")!=null?It:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),_(ye,be)};V(re,ye=>{(n(a).videoCodec||n(a).audioCodec)&&ye(_e)})}var we=k(re,2);{var Z=ye=>{var be=Uy(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(a).viewport)),_(ye,be)};V(we,ye=>{n(a).viewport&&ye(Z)})}var Re=k(we,2);{var ue=ye=>{var be=zy(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(a).videoSize)),_(ye,be)};V(Re,ye=>{n(a).videoSize&&ye(ue)})}var A=k(Re,2);{var We=ye=>{var be=Wy(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(a).cdn)),_(ye,be)};V(A,ye=>{n(a).cdn&&ye(We)})}var Ce=k(A,2);{var Y=ye=>{var be=Ky(),J=k(T(be),2),xe=T(J);w(J),w(be),B(()=>{var Pe;return pe(xe,`${(Pe=n(a).volume)!=null?Pe:""} %`)}),_(ye,be)};V(Ce,ye=>{n(a).volume&&ye(Y)})}var ie=k(Ce,2);{var Ne=ye=>{var be=qy(),J=k(T(be),2),xe=T(J);w(J),w(be),B(Pe=>pe(xe,`${Pe!=null?Pe:""} s`),[()=>n(a).position.toFixed(2)]),_(ye,be)};V(ie,ye=>{n(a).position&&ye(Ne)})}var De=k(ie,2);{var fe=ye=>{var be=Qy(),J=k(T(be),2),xe=T(J);w(J),w(be),B(Pe=>pe(xe,`${Pe!=null?Pe:""} s`),[()=>n(a).buffer.toFixed(2)]),_(ye,be)};V(De,ye=>{n(a).buffer&&ye(fe)})}var ee=k(De,2);{var Se=ye=>{var be=Gy(),J=k(T(be),2),xe=T(J);w(J),w(be),B(Pe=>pe(xe,`${Pe!=null?Pe:""} s`),[()=>n(a).liveLatency.toFixed(2)]),_(ye,be)};V(ee,ye=>{n(a).liveLatency&&ye(Se)})}var Be=k(ee,2);{var Ke=ye=>{var be=Yy(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(Pe=>pe(xe,Pe),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Pe})=>Pe).map(({value:Pe,title:It})=>`${It} ${((Pe!=null?Pe:0)/1e3).toFixed(2)} s`).join(" & ")]),_(ye,be)};V(Be,ye=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&ye(Ke)})}var Ye=k(Be,2),Te=k(T(Ye),2),Le=T(Te);w(Te),w(Ye);var Ue=k(Ye,2);{var Vt=ye=>{var be=jy(),J=k(T(be),2);rc(J,{get values(){return n(C)}});var xe=k(J,2),Pe=T(xe);w(xe),w(be),B(It=>pe(Pe,`${It!=null?It:""} Kbps`),[()=>n(a).speed.toFixed(2)]),_(ye,be)};V(Ue,ye=>{n(a).speed&&ye(Vt)})}var et=k(Ue,2);{var Ot=ye=>{var be=Xy(),J=k(T(be),2);rc(J,{get values(){return n(I)}});var xe=k(J,2),Pe=T(xe);w(xe),w(be),B(It=>pe(Pe,`${It!=null?It:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),_(ye,be)};V(et,ye=>{n(a).bitrate&&ye(Ot)})}var Kt=k(et,2),Tt=k(T(Kt),2);rc(Tt,{get values(){return n(S)}});var Zt=k(Tt,2),Dt=T(Zt,!0);w(Zt),w(Kt),w(D),w(E),B(ye=>{var be,J;P=se(E,1,"container s-o",null,P,ye),He(E,"aria-label",R),pe(G,n(a).version),pe(Le,`${(be=n(m))!=null?be:""} / ${(J=n(p))!=null?J:""} frames`),pe(Dt,n(f))},[()=>({"container-mobile":r()})]),_(t,E),H(),o()}rt(["click"]);var tb=require("@vkontakte/videoplayer-shared/es2018"),e0=(t,e)=>{t.stopPropagation(),e()()},t0=L('<div class="close s-19"></div>'),i0={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 As(t,e){F(e,!0),q(t,i0);let i=g(e,"onClick",3,tb.noop);var o=t0();o.__click=[e0,i],_(t,o),H()}rt(["click"]);var ib=require("@vkontakte/videoplayer-shared/es2018");var _n=t=>`width:${t}px;height:${t}px;`;var o0=Ee('<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 Ln(t,e){F(e,!0);let i=v(()=>_n(e.size));Ze(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 s=o0();_(o,s)},$$slots:{default:!0}}),H()}var n0=L('<div class="timer s-1b"><canvas class="timer-canvas s-1b" width="100" height="100"></canvas> <!></div>'),r0={hash:"s-1b",code:".timer.s-1b{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-1b:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1b{height:50px;position:absolute;width:50px}"};function ac(t,e){F(e,!0),q(t,r0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,ib.noop),r=5e3,s=K(void 0),l,d,a=0,u;Oe(()=>{i()&&Pt(()=>{d=Date.now(),a=requestAnimationFrame(m)})});let p=()=>{a&&(cancelAnimationFrame(a),a=0)},m=()=>{p(),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(),a=requestAnimationFrame(m)):o()())};Nt(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),hn(()=>{p()});var f=n0(),b=T(f);ot(b,$=>N(s,$),()=>n(s));var y=k(b,2);Ln(y,{get size(){return"24"}}),w(f),_(t,f),H()}var s0=(t,e,i)=>{e(!1),i()},a0=L('<div class="overlay s-y"></div> <div class="next-video s-y"><div class="top s-y"><div class="caption s-y"> </div> <!></div> <div class="row s-y"><div class="column s-y"><div class="thumb s-y"><div></div> <!></div></div> <div class="column s-y"><div class="title s-y"> </div></div></div></div>',1),l0={hash:"s-y",code:".overlay.s-y{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-y{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-y{display:flex;justify-content:space-between}.caption.s-y{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-y{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-y{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-y{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-y,.thumb-overlay.s-y{height:100%;width:100%}.thumb-overlay.s-y{position:absolute}.thumb-overlay.withOpacity.s-y{background:var(--black);opacity:.3}.title.s-y{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function um(t,e){F(e,!0),q(t,l0);let[i,o]=Ve(),r=()=>x(d,"$autoplayNextEnabled$",i),s=()=>x(a,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,p=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),f())},$=()=>{e.clickCloseIcon(),b()};Nt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=ke(),C=de(S);{var I=R=>{var E=a0(),P=k(de(E),2),O=T(P),D=T(O),U=T(D,!0);w(D);var z=k(D,2);As(z,{onClick:$}),w(O);var G=k(O,2);G.__click=[s0,u,m];var le=T(G),X=T(le),oe=T(X);let j;var ge=k(oe,2);{var ce=Z=>{let Re=v(()=>s()&&r());ac(Z,{get isRunning(){return n(Re)},onTimerEnded:y})};V(ge,Z=>{r()&&Z(ce)})}w(X),w(le);var re=k(le,2),_e=T(re),we=T(_e,!0);w(_e),w(re),w(G),w(P),B((Z,Re)=>{pe(U,Z),Qe(X,`background-image: url('${e.thumb}')`),j=se(oe,1,"thumb-overlay s-y",null,j,Re),pe(we,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:r()})]),_(R,E)};V(C,R=>{e.isHide||R(I)})}_(t,S),H(),o()}rt(["click"]);var na=require("@vkontakte/videoplayer-core/es2018"),ob=require("@vkontakte/videoplayer-shared/es2018"),Mn=require("@vkontakte/videoplayer-statistics/es2018");var pm=(t,e)=>Math.min(+(t+e).toFixed(2),1),fm=(t,e)=>Math.max(+(t-e).toFixed(2),0),Ju=(t,e,i)=>{let o=pm(e,i);e<1&&t.actions.internal.setVolume(o)},ep=(t,e,i)=>{let o=fm(e,i);e>0&&t.actions.internal.setVolume(o)};var oa=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function tp(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var c0=(t,e)=>{e(t)},u0=L('<div class="keyboard-controls s-10" tabindex="-1" role="region"><!></div>'),p0={hash:"s-10",code:".keyboard-controls.s-10{bottom:0;left:0;position:absolute;right:0;top:0}"};function mm(t,e){var Pe,It;F(e,!0),q(t,p0);let[i,o]=Ve(),r=()=>x(ge,"$disabledControls$",i),s=()=>x(Se,"$isInteractiveTime$",i),l=()=>x(Be,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(G,"$playbackState$",i),a=()=>x(Y,"$isEnded$",i),u=()=>x(We,"$doubleForwardAvailable$",i),p=()=>x(A,"$doubleForwardOn$",i),m=()=>x(ie,"$overlayContainer$",i),f=()=>x(le,"$adPlaybackState",i),b=()=>x(X,"$positionExact$",i),y=()=>x(oe,"$duration$",i),$=()=>x(fe,"$isAudioAvailable$",i),S=()=>x(j,"$volume$",i),C=()=>x(we,"$availablePlaybackRates$",i),I=()=>x(_e,"$currentPlaybackRate$",i),R=()=>x(ce,"$muted$",i),E=()=>x(re,"$currentSubtitle$",i),P=g(e,"nextButtonActive",3,!1),O=g(e,"prevButtonActive",3,!1),D=ve(),U=Mt(),z=D.getLogger().createComponentLog("KeyboardControls component"),G=D.state.playbackState$,le=D.ads.playbackState,X=D.state.positionExact$,oe=D.state.duration$,j=D.state.volume$,ge=D.ui.controls.disabledControls$,ce=D.state.muted$,re=D.state.currentSubtitle$,_e=D.state.currentPlaybackRate$,we=D.state.availablePlaybackRates$,Z=D.ui.contextMenu.openedByHotKey$,Re=D.ui.contextMenu.lastActiveElem$,ue=D.ui.contextMenu.visible$,A=D.ui.doubleForwardOn$,We=D.ui.doubleForwardAvailable$,Ce=D.ui.contextMenu.position$,Y=D.state.isEnded$,ie=D.ui.overlayContainer$,Ne=(Pe=D.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,De=(It=D.callbacks)==null?void 0:It.onAudioDisabledHint,fe=D.state.isAudioAvailable$,ee=D.state.isAudioDisabled,Se=D.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Be}=wo(),Ke=0,Ye=!0,Te=K(void 0),Le=Me=>(Me!==Ye&&(Ye=Me,Ke=0),Ke+=1,(U.controls.seekStepKeyboard+U.controls.seekStepKeyboard*Ke)/1e3),Ue=!0,Vt=({type:Me,repeat:st,disableDoubleForward:vt})=>{let $e=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&Be.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{D.actions.internal.togglePlay();let ze="PLAY";d()===na.PlaybackState.PAUSED?ze="PAUSE":a()&&(ze="REPLAY"),e.showHotKeyHelpers({type:ze})}},Je=Me==="down";if(!u()||vt){Je&&$e(),Ue=!0;return}if(Je)Ue=!1;else if(Ue)return;if(Je){!st&&e.startDoubleForwardActivationTimer();return}p()||$e(),e.stopDoubleForward(),Ue=!0},et=Me=>{let st=J_(m());Ce.set(st),Re.set(Me.target),Z.set(!0),ue.set(!0)},Ot=(Me,st=!1)=>{var Ii,Yt;let vt=Me.target,$e=(Ii=vt==null?void 0:vt.getAttribute("role"))==null?void 0:Ii.includes("menuitem"),Je=vt.classList.contains("btn"),ze=Me.code;if(Je&&ze==="Space")return!1;let nt=t_.has(ze);if($e&&nt)return!1;let Jt=!e_.has(ze);if(Me.ctrlKey&&Jt||Me.altKey&&Jt||Me.metaKey)return!1;let ri=$e&&ze==="Escape";i_.has(ze)||ri||e.hideContextMenu();let pi=d()===na.PlaybackState.PLAYING||d()===na.PlaybackState.PAUSED,hi=e.isAds&&(f()==="paused"||f()==="playing"),to=!hi&&!r().has("TIMELINE"),_o=Me.shiftKey&&["Digit1","Numpad1"].includes(ze);if(!_o&&!(pi||hi))return!1;z({message:`key down, code: ${ze}, isExternal = ${st}`});let di=!1,ut=()=>{di=!0,st||Me.preventDefault()};if(_o)return et(Me),ut(),!0;switch(ze){case"KeyJ":case"ArrowLeft":{if(!to)break;if(Me.ctrlKey||Me.altKey){let St=D.actions.internal.getPrevEpisode();D.actions.internal.seekToPrevEpisode(St),St&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:St.text}),ut()}else{let St=Me.shiftKey?Le(!1):U.controls.seekStepKeyboard/1e3,ii=Math.max(b()-St,0);b()>0&&(D.actions.internal.seekTime(ii,Mn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:St.toString()}),ut())}break}case"KeyL":case"ArrowRight":{if(!to)break;if(Me.ctrlKey||Me.altKey){let St=D.actions.internal.getNextEpisode();D.actions.internal.seekToNextEpisode(St),St&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:St.text}),ut()}else{let St=Me.shiftKey?Le(!0):U.controls.seekStepKeyboard/1e3,ii=Math.min(b()+St,y());Math.round(b())<Math.round(y())&&(D.actions.internal.seekTime(ii,Mn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:St.toString()}),ut())}break}case"ArrowUp":{if(oa({isAudioDisabled:ee,audioDisabledHintCallback:De,isAudioAvailable:$(),audioIsNotExistHintCallback:Ne,isAds:e.isAds})){let St=S(),ii=U.controls.volumeStepKeyboard,jt=St<=1;if(Ju(D,St,ii),jt){let bt=Math.round(pm(St,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bt}})}}ut();break}case"ArrowDown":{if(oa({isAudioDisabled:ee,audioDisabledHintCallback:De,isAudioAvailable:$(),audioIsNotExistHintCallback:Ne,isAds:e.isAds})){let St=S(),ii=U.controls.volumeStepKeyboard,jt=St>=0;if(ep(D,St,ii),jt){let bt=Math.round(fm(St,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bt}})}}ut();break}case"Comma":{if(Me.shiftKey){if(!p()){D.actions.internal.decrementPlaybackRate();let St=C().find(ii=>ii.value===I());e.showHotKeyHelpers({type:"RATE_DOWN",text:St==null?void 0:St.displayValue}),ut()}}else{if(hi||d()!==na.PlaybackState.PAUSED)break;let St=Math.max(b()-U.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(St,Mn.SeekAction.DOUBLE_TAP),ut())}break}case"Period":{if(Me.shiftKey){if(!p()){D.actions.internal.incrementPlaybackRate();let St=C().find(ii=>ii.value===I());e.showHotKeyHelpers({type:"RATE_UP",text:St==null?void 0:St.displayValue}),ut()}}else{if(hi||d()!==na.PlaybackState.PAUSED)break;let St=Math.min(b()+U.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(St,Mn.SeekAction.DOUBLE_TAP),ut())}break}case"KeyK":case"Space":Vt({type:"down",repeat:Me.repeat,disableDoubleForward:"KeyK"===ze}),ut();break;case"KeyM":{oa({isAudioDisabled:ee,audioDisabledHintCallback:De,isAudioAvailable:$(),audioIsNotExistHintCallback:Ne,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),D.actions.internal.toggleMuted()),ut();break}case"KeyF":e.toggleFullscreen(),ut();break;case"KeyC":D.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Yt=E())==null?void 0:Yt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ut();break;case"KeyI":D.actions.internal.togglePictureInPicture(),ut();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.1,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.2,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.3,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.4,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.5,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.6,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.7,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.8,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.9,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(0,Mn.SeekAction.DOUBLE_TAP),ut();break;case"Slash":{Me.shiftKey&&U.features.hotKeyMapModal&&(e.showKeyMap(),ut());break}case"KeyN":Me.shiftKey&&P()&&(D.actions.internal.nextVideoClick(),ut());break;case"KeyP":Me.shiftKey&&O()&&(D.actions.internal.prevVideoClick(),ut());break;case"ShiftLeft":case"ShiftRight":ut();break;case"Tab":case"Escape":case"Enter":break;default:(0,ob.checkNever)(ze);break}return di},Kt=Me=>{let st=Me.code;if(Me.ctrlKey||Me.altKey||Me.metaKey)return;let vt=d()===na.PlaybackState.PLAYING||d()===na.PlaybackState.PAUSED,$e=e.isAds&&(f()==="paused"||f()==="playing");if(vt||$e)switch(st){case"ShiftLeft":case"ShiftRight":Ke=0;break;case"Space":Vt({type:"up"});break}},Tt=Q("aria_label_video_player"),Zt=()=>{var Me;return(Me=n(Te))==null?void 0:Me.focus()},Dt=()=>n(Te)===tp(),ye=Me=>Me.type==="keydown"?Ot(Me,!0):(Me.type==="keyup"&&Kt(Me),!1);var be=u0();be.__keyup=Kt,be.__keydown=[c0,Ot];var J=T(be);ni(J,()=>{var Me;return(Me=e.children)!=null?Me:ht}),w(be),ot(be,Me=>N(Te,Me),()=>n(Te)),B(()=>He(be,"aria-label",Tt)),_(t,be);var xe=H({focus:Zt,isFocused:Dt,handleExternalKeyboardEvent:ye});return o(),xe}rt(["keyup","keydown"]);var f0=L('<div class="container s-p"><div class="dot s-p"></div> <div class="dot s-p"></div> <div class="dot s-p"></div></div>'),m0={hash:"s-p",code:".container.s-p{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-p:first-child{animation-delay:0s}.dot.s-p:nth-child(2){animation-delay:.18s}.dot.s-p:nth-child(3){animation-delay:.36s}@keyframes s-p-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-p{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-p-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-p+.dot:where(.s-p){margin-left:4px}"};function za(t,e){q(t,m0);let i=g(e,"style",3,"");var o=f0();B(()=>Qe(o,i())),_(t,o)}var v0=Ee('<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 vm(t,e){Ze(t,{get fill(){return e.fill},children:(i,o)=>{var r=v0();_(i,r)},$$slots:{default:!0}})}var Wa=require("@vkontakte/videoplayer-shared/es2018"),g0=t=>{t.stopPropagation()},h0=L("<button><!></button>"),_0={hash:"s-1p",code:"button.btn.s-1p{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-1p{width:100%}button.btn--live.s-1p{padding:10px 4px}button.btn-jc-l.s-1p{justify-content:left}button.btn-m.s-1p{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-1p,button.btn-m--play.s-1p{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1p{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1p,button.btn-m--prev.s-1p{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1p{right:calc(100% + 35px)}button.btn-m--next.s-1p{left:calc(100% + 35px)}button.btn.s-1p:disabled{cursor:default;pointer-events:none}button.btn.s-1p:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1p:not(:disabled):hover{opacity:.8}button.pr-0.s-1p{padding-right:0}button.pl-0.s-1p{padding-left:0}"};function Ut(t,e){F(e,!0),q(t,_0);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),s=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),a=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),p=g(e,"ariaExpanded",3,void 0),m=g(e,"tabIndex",3,0),f=g(e,"click",3,Wa.noop),b=g(e,"focus",3,Wa.noop),y=g(e,"blur",3,Wa.noop),$=v(()=>f()===Wa.noop?null:E=>{E.stopPropagation(),f()(E)}),S=v(()=>b()===Wa.noop?null:E=>{E.preventDefault(),b()()}),C=v(()=>y()===Wa.noop?null:E=>{E.preventDefault(),y()()});var I=h0();I.__pointerdown=[g0],I.__click=function(...E){var P;(P=n($))==null||P.apply(this,E)};var R=T(I);ni(R,()=>{var E;return(E=e.children)!=null?E:ht}),w(I),ot(I,E=>a(E),()=>a()),B(()=>{var E,P,O,D,U,z,G,le;se(I,1,`btn ${(E=i())!=null?E:""}`,"s-1p"),Qe(I,o()||null),I.disabled=(P=r())!=null?P:null,He(I,"aria-hidden",(O=l())!=null?O:null),He(I,"aria-label",(D=d())!=null?D:null),He(I,"aria-keyshortcuts",(U=u())!=null?U:null),He(I,"aria-expanded",(z=p())!=null?z:null),He(I,"data-testid",(G=s())!=null?G:null),He(I,"tabindex",m()),He(I,"role",e.role),He(I,"aria-checked",(le=e.areaChecked)!=null?le:null)}),_t("focus",I,function(...E){var P;(P=n(S))==null||P.apply(this,E)}),_t("blur",I,function(...E){var P;(P=n(C))==null||P.apply(this,E)}),_(t,I),H()}rt(["pointerdown","click"]);var b0=L('<div class="modal-header s-1k"><h3 class="modal-title s-1k"> </h3> <!></div>'),$0=L('<div class="modal-overlay s-1k"><div class="modal-container s-1k"><!> <div class="modal-scroll s-1k"><div class="modal-main s-1k"><!></div></div></div></div>'),y0={hash:"s-1k",code:'.modal-overlay.s-1k{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.modal-container.s-1k{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-1k{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-1k{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-1k{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1k::-webkit-scrollbar{width:8px}.modal-scroll.s-1k::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1k::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1k::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1k{margin:-8px -4px 0 0}'};function gm(t,e){F(e,!0),q(t,y0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=Q("hotkey_map_modal_close_btn_text");var s=$0(),l=T(s),d=T(l);{var a=f=>{var b=b0(),y=T(b),$=T(y,!0);w(y);var S=k(y,2);{var C=I=>{Ut(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,E)=>{vm(R,{fill:"currentColor"})},$$slots:{default:!0}})};V(S,I=>{o()&&I(C)})}w(b),B(()=>pe($,e.title)),_(f,b)};V(d,f=>{i()&&f(a)})}var u=k(d,2),p=T(u),m=T(p);ni(m,()=>{var f;return(f=e.children)!=null?f:ht}),w(p),w(u),w(l),w(s),_(t,s),H()}var x0=new Set(["BR"]),nb=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;x0.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var w0=L('<li class="hot-key-map-item s-15"><span class="hot-key-map-item-description s-15"><!></span> <span class="hot-key-map-item-value s-15"> </span></li>'),S0=L('<div class="hot-key-map-group s-15"><h5 class="hot-key-map-group-title s-15"> </h5> <ul class="hot-key-map-group-items s-15"></ul></div>'),T0=L('<div class="hot-key-map s-15"></div>'),C0={hash:"s-15",code:'.hot-key-map.s-15{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-15{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-15:last-child{border-bottom:none}.hot-key-map-group-title.s-15{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-15,.hot-key-map-item.s-15{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-15{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-15{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-15{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-15{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-15,.hot-key-map-item-value.s-15{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function hm(t,e){F(e,!1),q(t,C0);let[i,o]=Ve(),r=()=>x(l,"$data",i),s=ve(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};xo(),gm(t,{get title(){return r().title},onClose:a,children:(u,p)=>{var m=T0();yi(m,5,()=>r().groups,({title:f,items:b})=>f,(f,b)=>{let y=()=>n(b).title,$=()=>n(b).items;var S=S0(),C=T(S),I=T(C,!0);w(C);var R=k(C,2);yi(R,5,$,({description:E,value:P})=>P,(E,P)=>{let O=()=>n(P).description,D=()=>n(P).value;var U=w0(),z=T(U),G=T(z);Fd(G,()=>nb(O())),w(z);var le=k(z,2),X=T(le,!0);w(le),w(U),B(()=>pe(X,D())),_(E,U)}),w(R),w(S),B(()=>pe(I,y())),_(f,S)}),w(m),_(u,m)},$$slots:{default:!0}}),H(),o()}var uv=require("@vkontakte/videoplayer-shared/es2018");var Xa=require("@vkontakte/videoplayer-core/es2018");var dD=require("@vkontakte/videoplayer-shared/es2018");var I0=L('<div class="pillow s-27"><!></div>'),E0={hash:"s-27",code:".pillow.s-27{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,E0);var i=I0(),o=T(i);ni(o,()=>{var r;return(r=e.children)!=null?r:ht}),w(i),_(t,i)}var Xl=require("@vkontakte/videoplayer-shared/es2018");var P0=Ee('<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 bm(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=P0();Xi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=T(o);ni(r,()=>{var s;return(s=e.children)!=null?s:ht}),ui(),w(o),_(t,o)}var A0=Ee('<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 $m(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=A0();Xi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=T(o);ni(r,()=>{var s;return(s=e.children)!=null?s:ht}),ui(),w(o),_(t,o)}var k0=Ee('<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 ym(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=k0();Xi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=T(o);ni(r,()=>{var s;return(s=e.children)!=null?s:ht}),ui(),w(o),_(t,o)}var L0=Ee('<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 lc(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=L0();Xi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=T(o);ni(r,()=>{var s;return(s=e.children)!=null?s:ht}),ui(),w(o),_(t,o)}var M0=Ee('<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 dc(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=M0();Xi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=T(o);ni(r,()=>{var s;return(s=e.children)!=null?s:ht}),ui(),w(o),_(t,o)}var ip=t=>{switch(t){case Xl.VideoQuality.Q_720P:return ym;case Xl.VideoQuality.Q_1080P:return lc;case Xl.VideoQuality.Q_1440P:return dc;case Xl.VideoQuality.Q_2160P:return bm;case Xl.VideoQuality.Q_4320P:return $m}};var V0=Ee('<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 xm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=V0();_(i,r)},$$slots:{default:!0}})}var R0=Ee('<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 wm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=R0();_(i,r)},$$slots:{default:!0}})}var N0=L('<div aria-hidden="true"><!> <!></div>'),O0={hash:"s-1v",code:".icon.s-1v{display:flex;height:24px;position:relative;width:24px}.icon.s-1v .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1v .pillow{right:-13px}.icon.s-1v svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function cc(t,e){F(e,!0),q(t,O0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>ip(o())),s=v(()=>!!n(r)&&[lc,dc].includes(n(r)));var l=ke(),d=de(l);{var a=p=>{xm(p,{testId:"settings-mobile-icon"})},u=p=>{var m=N0();let f;var b=T(m);{var y=C=>{_m(C,{children:(I,R)=>{var E=ke(),P=de(E);Oi(P,()=>n(r),(O,D)=>{D(O,{})}),_(I,E)},$$slots:{default:!0}})};V(b,C=>{n(r)&&C(y)})}var $=k(b,2);let S=v(()=>n(r)?"settings-icon--labeled":"settings-icon");wm($,{get testId(){return n(S)}}),w(m),B(C=>f=se(m,1,"icon s-1v",null,f,C),[()=>({triple:n(s)})]),_(p,m)};V(d,p=>{i()?p(a):p(u,!1)})}_(t,l),H()}var D0=L('<span class="settings-icon-wrapper s-1z"><!></span>'),B0={hash:"s-1z",code:".settings-icon-wrapper.s-1z{position:relative;width:24px}"};function Zl(t,e){F(e,!0),q(t,B0);let[i,o]=Ve(),r=()=>x(u,"$settingsMenuVisible",i),s=()=>x(f,"$isMobile",i),l=()=>x(a,"$currentQuality",i),d=ve(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,p=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,f=d.ui.isMobile,b=d.ui.t,y=K(void 0);Oe(()=>{n(y)&&Pt(()=>{e.ref$.set(n(y))})});let $=b("aria_label_settings");async function S(I){let R=ia(I);r()?m():p(R,ho)}let C=v(()=>r()?"opened":"");Ut(t,{get className(){return n(C)},testId:"btn-settings",click:S,get ariaLabel(){return $},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(I){N(y,I,!0)},children:(I,R)=>{var E=D0(),P=T(E);cc(P,{get isMobile(){return s()},get currentQuality(){return l()}}),w(E),_(I,E)},$$slots:{default:!0}}),H(),o()}var F0=Ee('<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),H0=Ee("<path></path>");function ra(t,e){F(e,!0);let i=v(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=v(()=>_n(e.size));Ze(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,s)=>{var l=ke(),d=de(l);{var a=p=>{var m=F0();ui(),_(p,m)},u=p=>{var m=H0();B(()=>He(m,"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
58
+ Audio: ${(It=n(a).audioCodec||"")!=null?It:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),_(ye,be)};V(re,ye=>{(n(a).videoCodec||n(a).audioCodec)&&ye(_e)})}var we=A(re,2);{var Z=ye=>{var be=qy(),J=A(T(be),2),xe=T(J,!0);w(J),w(be),D(()=>pe(xe,n(a).viewport)),_(ye,be)};V(we,ye=>{n(a).viewport&&ye(Z)})}var Ne=A(we,2);{var ue=ye=>{var be=Qy(),J=A(T(be),2),xe=T(J,!0);w(J),w(be),D(()=>pe(xe,n(a).videoSize)),_(ye,be)};V(Ne,ye=>{n(a).videoSize&&ye(ue)})}var P=A(Ne,2);{var We=ye=>{var be=Gy(),J=A(T(be),2),xe=T(J,!0);w(J),w(be),D(()=>pe(xe,n(a).cdn)),_(ye,be)};V(P,ye=>{n(a).cdn&&ye(We)})}var Ce=A(P,2);{var Y=ye=>{var be=Yy(),J=A(T(be),2),xe=T(J);w(J),w(be),D(()=>{var Pe;return pe(xe,`${(Pe=n(a).volume)!=null?Pe:""} %`)}),_(ye,be)};V(Ce,ye=>{n(a).volume&&ye(Y)})}var ie=A(Ce,2);{var Oe=ye=>{var be=jy(),J=A(T(be),2),xe=T(J);w(J),w(be),D(Pe=>pe(xe,`${Pe!=null?Pe:""} s`),[()=>n(a).position.toFixed(2)]),_(ye,be)};V(ie,ye=>{n(a).position&&ye(Oe)})}var Be=A(ie,2);{var fe=ye=>{var be=Xy(),J=A(T(be),2),xe=T(J);w(J),w(be),D(Pe=>pe(xe,`${Pe!=null?Pe:""} s`),[()=>n(a).buffer.toFixed(2)]),_(ye,be)};V(Be,ye=>{n(a).buffer&&ye(fe)})}var ee=A(Be,2);{var Se=ye=>{var be=Zy(),J=A(T(be),2),xe=T(J);w(J),w(be),D(Pe=>pe(xe,`${Pe!=null?Pe:""} s`),[()=>n(a).liveLatency.toFixed(2)]),_(ye,be)};V(ee,ye=>{n(a).liveLatency&&ye(Se)})}var Fe=A(ee,2);{var Ke=ye=>{var be=Jy(),J=A(T(be),2),xe=T(J,!0);w(J),w(be),D(Pe=>pe(xe,Pe),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Pe})=>Pe).map(({value:Pe,title:It})=>`${It} ${((Pe!=null?Pe:0)/1e3).toFixed(2)} s`).join(" & ")]),_(ye,be)};V(Fe,ye=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&ye(Ke)})}var Ye=A(Fe,2),Te=A(T(Ye),2),Le=T(Te);w(Te),w(Ye);var Ue=A(Ye,2);{var Vt=ye=>{var be=e0(),J=A(T(be),2);rc(J,{get values(){return n(I)}});var xe=A(J,2),Pe=T(xe);w(xe),w(be),D(It=>pe(Pe,`${It!=null?It:""} Kbps`),[()=>n(a).speed.toFixed(2)]),_(ye,be)};V(Ue,ye=>{n(a).speed&&ye(Vt)})}var et=A(Ue,2);{var Ot=ye=>{var be=t0(),J=A(T(be),2);rc(J,{get values(){return n(C)}});var xe=A(J,2),Pe=T(xe);w(xe),w(be),D(It=>pe(Pe,`${It!=null?It:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),_(ye,be)};V(et,ye=>{n(a).bitrate&&ye(Ot)})}var Wt=A(et,2),Ct=A(T(Wt),2);rc(Ct,{get values(){return n(S)}});var Zt=A(Ct,2),Dt=T(Zt,!0);w(Zt),w(Wt),w(B),w(E),D(ye=>{var be,J;k=se(E,1,"container s-n",null,k,ye),Re(E,"aria-label",R),pe(G,n(a).version),pe(Le,`${(be=n(f))!=null?be:""} / ${(J=n(m))!=null?J:""} frames`),pe(Dt,n(p))},[()=>({"container-mobile":r()})]),_(t,E),U(),o()}rt(["click"]);var ib=require("@vkontakte/videoplayer-shared/es2018"),n0=(t,e)=>{t.stopPropagation(),e()()},r0=L('<div class="close s-14"></div>'),s0={hash:"s-14",code:'.close.s-14{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-14:hover{opacity:1}.close.s-14:after,.close.s-14:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-14:before{transform:rotate(45deg)}.close.s-14:after{transform:rotate(-45deg)}'};function ks(t,e){H(e,!0),q(t,s0);let i=g(e,"onClick",3,ib.noop);var o=r0();o.__click=[n0,i],_(t,o),U()}rt(["click"]);var ob=require("@vkontakte/videoplayer-shared/es2018");var vn=t=>`width:${t}px;height:${t}px;`;var a0=Ee('<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 Mn(t,e){H(e,!0);let i=v(()=>vn(e.size));Ze(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 s=a0();_(o,s)},$$slots:{default:!0}}),U()}var l0=L('<div class="timer s-1f"><canvas class="timer-canvas s-1f" width="100" height="100"></canvas> <!></div>'),d0={hash:"s-1f",code:".timer.s-1f{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-1f:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1f{height:50px;position:absolute;width:50px}"};function ac(t,e){H(e,!0),q(t,d0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,ob.noop),r=5e3,s=K(void 0),l,d,a=0,u;De(()=>{i()&&Pt(()=>{d=Date.now(),a=requestAnimationFrame(f)})});let m=()=>{a&&(cancelAnimationFrame(a),a=0)},f=()=>{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(),a=requestAnimationFrame(f)):o()())};Nt(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),mn(()=>{m()});var p=l0(),b=T(p);ot(b,$=>N(s,$),()=>n(s));var y=A(b,2);Mn(y,{get size(){return"24"}}),w(p),_(t,p),U()}var c0=(t,e,i)=>{e(!1),i()},u0=L('<div class="overlay s-17"></div> <div class="next-video s-17"><div class="top s-17"><div class="caption s-17"> </div> <!></div> <div class="row s-17"><div class="column s-17"><div class="thumb s-17"><div></div> <!></div></div> <div class="column s-17"><div class="title s-17"> </div></div></div></div>',1),p0={hash:"s-17",code:".overlay.s-17{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-17{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-17{display:flex;justify-content:space-between}.caption.s-17{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-17{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-17{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-17{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-17,.thumb-overlay.s-17{height:100%;width:100%}.thumb-overlay.s-17{position:absolute}.thumb-overlay.withOpacity.s-17{background:var(--black);opacity:.3}.title.s-17{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function cm(t,e){H(e,!0),q(t,p0);let[i,o]=Ve(),r=()=>x(d,"$autoplayNextEnabled$",i),s=()=>x(a,"$timerNextVideoRunning$",i),l=me(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,f=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),p())},$=()=>{e.clickCloseIcon(),b()};Nt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),p())});var S=Ae(),I=de(S);{var C=R=>{var E=u0(),k=A(de(E),2),O=T(k),B=T(O),F=T(B,!0);w(B);var z=A(B,2);ks(z,{onClick:$}),w(O);var G=A(O,2);G.__click=[c0,u,f];var le=T(G),X=T(le),oe=T(X);let j;var ve=A(oe,2);{var ce=Z=>{let Ne=v(()=>s()&&r());ac(Z,{get isRunning(){return n(Ne)},onTimerEnded:y})};V(ve,Z=>{r()&&Z(ce)})}w(X),w(le);var re=A(le,2),_e=T(re),we=T(_e,!0);w(_e),w(re),w(G),w(k),D((Z,Ne)=>{pe(F,Z),Qe(X,`background-image: url('${e.thumb}')`),j=se(oe,1,"thumb-overlay s-17",null,j,Ne),pe(we,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:r()})]),_(R,E)};V(I,R=>{e.isHide||R(C)})}_(t,S),U(),o()}rt(["click"]);var oa=require("@vkontakte/videoplayer-core/es2018"),nb=require("@vkontakte/videoplayer-shared/es2018"),Vn=require("@vkontakte/videoplayer-statistics/es2018");var um=(t,e)=>Math.min(+(t+e).toFixed(2),1),pm=(t,e)=>Math.max(+(t-e).toFixed(2),0),Zu=(t,e,i)=>{let o=um(e,i);e<1&&t.actions.internal.setVolume(o)},Ju=(t,e,i)=>{let o=pm(e,i);e>0&&t.actions.internal.setVolume(o)};var ia=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function ep(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var m0=(t,e)=>{e(t)},v0=L('<div class="keyboard-controls s-15" tabindex="-1" role="region"><!></div>'),g0={hash:"s-15",code:".keyboard-controls.s-15{bottom:0;left:0;position:absolute;right:0;top:0}"};function fm(t,e){var Pe,It;H(e,!0),q(t,g0);let[i,o]=Ve(),r=()=>x(ve,"$disabledControls$",i),s=()=>x(Se,"$isInteractiveTime$",i),l=()=>x(Fe,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(G,"$playbackState$",i),a=()=>x(Y,"$isEnded$",i),u=()=>x(We,"$doubleForwardAvailable$",i),m=()=>x(P,"$doubleForwardOn$",i),f=()=>x(ie,"$overlayContainer$",i),p=()=>x(le,"$adPlaybackState",i),b=()=>x(X,"$positionExact$",i),y=()=>x(oe,"$duration$",i),$=()=>x(fe,"$isAudioAvailable$",i),S=()=>x(j,"$volume$",i),I=()=>x(we,"$availablePlaybackRates$",i),C=()=>x(_e,"$currentPlaybackRate$",i),R=()=>x(ce,"$muted$",i),E=()=>x(re,"$currentSubtitle$",i),k=g(e,"nextButtonActive",3,!1),O=g(e,"prevButtonActive",3,!1),B=me(),F=Mt(),z=B.getLogger().createComponentLog("KeyboardControls component"),G=B.state.playbackState$,le=B.ads.playbackState,X=B.state.positionExact$,oe=B.state.duration$,j=B.state.volume$,ve=B.ui.controls.disabledControls$,ce=B.state.muted$,re=B.state.currentSubtitle$,_e=B.state.currentPlaybackRate$,we=B.state.availablePlaybackRates$,Z=B.ui.contextMenu.openedByHotKey$,Ne=B.ui.contextMenu.lastActiveElem$,ue=B.ui.contextMenu.visible$,P=B.ui.doubleForwardOn$,We=B.ui.doubleForwardAvailable$,Ce=B.ui.contextMenu.position$,Y=B.state.isEnded$,ie=B.ui.overlayContainer$,Oe=(Pe=B.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,Be=(It=B.callbacks)==null?void 0:It.onAudioDisabledHint,fe=B.state.isAudioAvailable$,ee=B.state.isAudioDisabled,Se=B.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Fe}=So(),Ke=0,Ye=!0,Te=K(void 0),Le=Me=>(Me!==Ye&&(Ye=Me,Ke=0),Ke+=1,(F.controls.seekStepKeyboard+F.controls.seekStepKeyboard*Ke)/1e3),Ue=!0,Vt=({type:Me,repeat:st,disableDoubleForward:mt})=>{let $e=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&Fe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{B.actions.internal.togglePlay();let ze="PLAY";d()===oa.PlaybackState.PAUSED?ze="PAUSE":a()&&(ze="REPLAY"),e.showHotKeyHelpers({type:ze})}},Je=Me==="down";if(!u()||mt){Je&&$e(),Ue=!0;return}if(Je)Ue=!1;else if(Ue)return;if(Je){!st&&e.startDoubleForwardActivationTimer();return}m()||$e(),e.stopDoubleForward(),Ue=!0},et=Me=>{let st=eb(f());Ce.set(st),Ne.set(Me.target),Z.set(!0),ue.set(!0)},Ot=(Me,st=!1)=>{var Ei,jt;let mt=Me.target,$e=(Ei=mt==null?void 0:mt.getAttribute("role"))==null?void 0:Ei.includes("menuitem"),Je=mt.classList.contains("btn"),ze=Me.code;if(Je&&ze==="Space")return!1;let nt=i_.has(ze);if($e&&nt)return!1;let Jt=!t_.has(ze);if(Me.ctrlKey&&Jt||Me.altKey&&Jt||Me.metaKey)return!1;let ri=$e&&ze==="Escape";o_.has(ze)||ri||e.hideContextMenu();let pi=d()===oa.PlaybackState.PLAYING||d()===oa.PlaybackState.PAUSED,hi=e.isAds&&(p()==="paused"||p()==="playing"),eo=!hi&&!r().has("TIMELINE"),_o=Me.shiftKey&&["Digit1","Numpad1"].includes(ze);if(!_o&&!(pi||hi))return!1;z({message:`key down, code: ${ze}, isExternal = ${st}`});let ci=!1,pt=()=>{ci=!0,st||Me.preventDefault()};if(_o)return et(Me),pt(),!0;switch(ze){case"KeyJ":case"ArrowLeft":{if(!eo)break;if(Me.ctrlKey||Me.altKey){let St=B.actions.internal.getPrevEpisode();B.actions.internal.seekToPrevEpisode(St),St&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:St.text}),pt()}else{let St=Me.shiftKey?Le(!1):F.controls.seekStepKeyboard/1e3,ii=Math.max(b()-St,0);b()>0&&(B.actions.internal.seekTime(ii,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:St.toString()}),pt())}break}case"KeyL":case"ArrowRight":{if(!eo)break;if(Me.ctrlKey||Me.altKey){let St=B.actions.internal.getNextEpisode();B.actions.internal.seekToNextEpisode(St),St&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:St.text}),pt()}else{let St=Me.shiftKey?Le(!0):F.controls.seekStepKeyboard/1e3,ii=Math.min(b()+St,y());Math.round(b())<Math.round(y())&&(B.actions.internal.seekTime(ii,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:St.toString()}),pt())}break}case"ArrowUp":{if(ia({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let St=S(),ii=F.controls.volumeStepKeyboard,Xt=St<=1;if(Zu(B,St,ii),Xt){let ht=Math.round(um(St,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ht}})}}pt();break}case"ArrowDown":{if(ia({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let St=S(),ii=F.controls.volumeStepKeyboard,Xt=St>=0;if(Ju(B,St,ii),Xt){let ht=Math.round(pm(St,ii)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ht}})}}pt();break}case"Comma":{if(Me.shiftKey){if(!m()){B.actions.internal.decrementPlaybackRate();let St=I().find(ii=>ii.value===C());e.showHotKeyHelpers({type:"RATE_DOWN",text:St==null?void 0:St.displayValue}),pt()}}else{if(hi||d()!==oa.PlaybackState.PAUSED)break;let St=Math.max(b()-F.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),B.actions.internal.clearDelayedBufferingCheckTimeout(),B.actions.internal.seekTime(St,Vn.SeekAction.DOUBLE_TAP),pt())}break}case"Period":{if(Me.shiftKey){if(!m()){B.actions.internal.incrementPlaybackRate();let St=I().find(ii=>ii.value===C());e.showHotKeyHelpers({type:"RATE_UP",text:St==null?void 0:St.displayValue}),pt()}}else{if(hi||d()!==oa.PlaybackState.PAUSED)break;let St=Math.min(b()+F.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),B.actions.internal.clearDelayedBufferingCheckTimeout(),B.actions.internal.seekTime(St,Vn.SeekAction.DOUBLE_TAP),pt())}break}case"KeyK":case"Space":Vt({type:"down",repeat:Me.repeat,disableDoubleForward:"KeyK"===ze}),pt();break;case"KeyM":{ia({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),B.actions.internal.toggleMuted()),pt();break}case"KeyF":e.toggleFullscreen(),pt();break;case"KeyC":B.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(jt=E())==null?void 0:jt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),pt();break;case"KeyI":B.actions.internal.togglePictureInPicture(),pt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(.1,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(.2,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(.3,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(.4,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(.5,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(.6,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(.7,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(.8,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(.9,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),B.actions.internal.seekToPercent(0,Vn.SeekAction.DOUBLE_TAP),pt();break;case"Slash":{Me.shiftKey&&F.features.hotKeyMapModal&&(e.showKeyMap(),pt());break}case"KeyN":Me.shiftKey&&k()&&(B.actions.internal.nextVideoClick(),pt());break;case"KeyP":Me.shiftKey&&O()&&(B.actions.internal.prevVideoClick(),pt());break;case"ShiftLeft":case"ShiftRight":pt();break;case"Tab":case"Escape":case"Enter":break;default:(0,nb.checkNever)(ze);break}return ci},Wt=Me=>{let st=Me.code;if(Me.ctrlKey||Me.altKey||Me.metaKey)return;let mt=d()===oa.PlaybackState.PLAYING||d()===oa.PlaybackState.PAUSED,$e=e.isAds&&(p()==="paused"||p()==="playing");if(mt||$e)switch(st){case"ShiftLeft":case"ShiftRight":Ke=0;break;case"Space":Vt({type:"up"});break}},Ct=Q("aria_label_video_player"),Zt=()=>{var Me;return(Me=n(Te))==null?void 0:Me.focus()},Dt=()=>n(Te)===ep(),ye=Me=>Me.type==="keydown"?Ot(Me,!0):(Me.type==="keyup"&&Wt(Me),!1);var be=v0();be.__keyup=Wt,be.__keydown=[m0,Ot];var J=T(be);oi(J,()=>{var Me;return(Me=e.children)!=null?Me:vt}),w(be),ot(be,Me=>N(Te,Me),()=>n(Te)),D(()=>Re(be,"aria-label",Ct)),_(t,be);var xe=U({focus:Zt,isFocused:Dt,handleExternalKeyboardEvent:ye});return o(),xe}rt(["keyup","keydown"]);var h0=L('<div class="container s-p"><div class="dot s-p"></div> <div class="dot s-p"></div> <div class="dot s-p"></div></div>'),_0={hash:"s-p",code:".container.s-p{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-p:first-child{animation-delay:0s}.dot.s-p:nth-child(2){animation-delay:.18s}.dot.s-p:nth-child(3){animation-delay:.36s}@keyframes s-p-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-p{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-p-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-p+.dot:where(.s-p){margin-left:4px}"};function Ha(t,e){q(t,_0);let i=g(e,"style",3,"");var o=h0();D(()=>Qe(o,i())),_(t,o)}var b0=Ee('<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 mm(t,e){Ze(t,{get fill(){return e.fill},children:(i,o)=>{var r=b0();_(i,r)},$$slots:{default:!0}})}var Ua=require("@vkontakte/videoplayer-shared/es2018"),$0=t=>{t.stopPropagation()},y0=L("<button><!></button>"),x0={hash:"s-1p",code:"button.btn.s-1p{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-1p{width:100%}button.btn--live.s-1p{padding:10px 4px}button.btn-jc-l.s-1p{justify-content:left}button.btn-m.s-1p{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-1p,button.btn-m--play.s-1p{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1p{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1p,button.btn-m--prev.s-1p{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1p{right:calc(100% + 35px)}button.btn-m--next.s-1p{left:calc(100% + 35px)}button.btn.s-1p:disabled{cursor:default;pointer-events:none}button.btn.s-1p:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1p:not(:disabled):hover{opacity:.8}button.pr-0.s-1p{padding-right:0}button.pl-0.s-1p{padding-left:0}"};function Ut(t,e){H(e,!0),q(t,x0);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),s=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),a=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),m=g(e,"ariaExpanded",3,void 0),f=g(e,"tabIndex",3,0),p=g(e,"click",3,Ua.noop),b=g(e,"focus",3,Ua.noop),y=g(e,"blur",3,Ua.noop),$=v(()=>p()===Ua.noop?null:E=>{E.stopPropagation(),p()(E)}),S=v(()=>b()===Ua.noop?null:E=>{E.preventDefault(),b()()}),I=v(()=>y()===Ua.noop?null:E=>{E.preventDefault(),y()()});var C=y0();C.__pointerdown=[$0],C.__click=function(...E){var k;(k=n($))==null||k.apply(this,E)};var R=T(C);oi(R,()=>{var E;return(E=e.children)!=null?E:vt}),w(C),ot(C,E=>a(E),()=>a()),D(()=>{var E,k,O,B,F,z,G,le;se(C,1,`btn ${(E=i())!=null?E:""}`,"s-1p"),Qe(C,o()||null),C.disabled=(k=r())!=null?k:null,Re(C,"aria-hidden",(O=l())!=null?O:null),Re(C,"aria-label",(B=d())!=null?B:null),Re(C,"aria-keyshortcuts",(F=u())!=null?F:null),Re(C,"aria-expanded",(z=m())!=null?z:null),Re(C,"data-testid",(G=s())!=null?G:null),Re(C,"tabindex",f()),Re(C,"role",e.role),Re(C,"aria-checked",(le=e.areaChecked)!=null?le:null)}),gt("focus",C,function(...E){var k;(k=n(S))==null||k.apply(this,E)}),gt("blur",C,function(...E){var k;(k=n(I))==null||k.apply(this,E)}),_(t,C),U()}rt(["pointerdown","click"]);var w0=L('<div class="modal-header s-1k"><h3 class="modal-title s-1k"> </h3> <!></div>'),S0=L('<div class="modal-overlay s-1k"><div class="modal-container s-1k"><!> <div class="modal-scroll s-1k"><div class="modal-main s-1k"><!></div></div></div></div>'),T0={hash:"s-1k",code:'.modal-overlay.s-1k{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.modal-container.s-1k{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-1k{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-1k{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-1k{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1k::-webkit-scrollbar{width:8px}.modal-scroll.s-1k::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1k::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1k::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1k{margin:-8px -4px 0 0}'};function vm(t,e){H(e,!0),q(t,T0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=Q("hotkey_map_modal_close_btn_text");var s=S0(),l=T(s),d=T(l);{var a=p=>{var b=w0(),y=T(b),$=T(y,!0);w(y);var S=A(y,2);{var I=C=>{Ut(C,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,E)=>{mm(R,{fill:"currentColor"})},$$slots:{default:!0}})};V(S,C=>{o()&&C(I)})}w(b),D(()=>pe($,e.title)),_(p,b)};V(d,p=>{i()&&p(a)})}var u=A(d,2),m=T(u),f=T(m);oi(f,()=>{var p;return(p=e.children)!=null?p:vt}),w(m),w(u),w(l),w(s),_(t,s),U()}var C0=new Set(["BR"]),rb=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;C0.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var I0=L('<li class="hot-key-map-item s-1d"><span class="hot-key-map-item-description s-1d"><!></span> <span class="hot-key-map-item-value s-1d"> </span></li>'),E0=L('<div class="hot-key-map-group s-1d"><h5 class="hot-key-map-group-title s-1d"> </h5> <ul class="hot-key-map-group-items s-1d"></ul></div>'),P0=L('<div class="hot-key-map s-1d"></div>'),k0={hash:"s-1d",code:'.hot-key-map.s-1d{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-1d{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-1d:last-child{border-bottom:none}.hot-key-map-group-title.s-1d{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-1d,.hot-key-map-item.s-1d{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-1d{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-1d{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-1d{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-1d{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-1d,.hot-key-map-item-value.s-1d{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function gm(t,e){H(e,!1),q(t,k0);let[i,o]=Ve(),r=()=>x(l,"$data",i),s=me(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};wo(),vm(t,{get title(){return r().title},onClose:a,children:(u,m)=>{var f=P0();xi(f,5,()=>r().groups,({title:p,items:b})=>p,(p,b)=>{let y=()=>n(b).title,$=()=>n(b).items;var S=E0(),I=T(S),C=T(I,!0);w(I);var R=A(I,2);xi(R,5,$,({description:E,value:k})=>k,(E,k)=>{let O=()=>n(k).description,B=()=>n(k).value;var F=I0(),z=T(F),G=T(z);Fd(G,()=>rb(O())),w(z);var le=A(z,2),X=T(le,!0);w(le),w(F),D(()=>pe(X,B())),_(E,F)}),w(R),w(S),D(()=>pe(C,y())),_(p,S)}),w(f),_(u,f)},$$slots:{default:!0}}),U(),o()}var pv=require("@vkontakte/videoplayer-shared/es2018");var Ya=require("@vkontakte/videoplayer-core/es2018");var sb=require("@vkontakte/videoplayer-shared/es2018");var A0=L('<div class="pillow s-1x"><!></div>'),L0={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 hm(t,e){q(t,L0);var i=A0(),o=T(i);oi(o,()=>{var r;return(r=e.children)!=null?r:vt}),w(i),D(()=>Re(i,"data-testid",e.testId)),_(t,i)}var Yl=require("@vkontakte/videoplayer-shared/es2018");var M0=Ee('<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=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=M0();ji(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=T(o);oi(r,()=>{var s;return(s=e.children)!=null?s:vt}),ui(),w(o),_(t,o)}var V0=Ee('<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 bm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=V0();ji(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=T(o);oi(r,()=>{var s;return(s=e.children)!=null?s:vt}),ui(),w(o),_(t,o)}var R0=Ee('<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 $m(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=R0();ji(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=T(o);oi(r,()=>{var s;return(s=e.children)!=null?s:vt}),ui(),w(o),_(t,o)}var N0=Ee('<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 ym(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=N0();ji(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=T(o);oi(r,()=>{var s;return(s=e.children)!=null?s:vt}),ui(),w(o),_(t,o)}var O0=Ee('<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 xm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=O0();ji(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=T(o);oi(r,()=>{var s;return(s=e.children)!=null?s:vt}),ui(),w(o),_(t,o)}var tp=t=>{switch(t){case Yl.VideoQuality.Q_720P:return $m;case Yl.VideoQuality.Q_1080P:return ym;case Yl.VideoQuality.Q_1440P:return xm;case Yl.VideoQuality.Q_2160P:return _m;case Yl.VideoQuality.Q_4320P:return bm}};var D0=Ee('<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 wm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=D0();_(i,r)},$$slots:{default:!0}})}var B0=Ee('<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 Sm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=B0();_(i,r)},$$slots:{default:!0}})}var F0=L('<div aria-hidden="true"><!> <!></div>'),H0={hash:"s-1s",code:".icon.s-1s{display:flex;height:24px;position:relative;width:24px}.icon.s-1s .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1s .pillow{right:-13px}.icon.s-1s svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function lc(t,e){H(e,!0),q(t,H0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>o()?(0,sb.getVideoQualityLabel)(o()):""),s=v(()=>tp(o())),l=v(()=>n(r).length>2);var d=Ae(),a=de(d);{var u=f=>{wm(f,{testId:"settings-mobile-icon"})},m=f=>{var p=F0();let b;var y=T(p);{var $=C=>{let R=v(()=>`${n(r)}-pill-icon`);hm(C,{get testId(){return n(R)},children:(E,k)=>{var O=Ae(),B=de(O);Vi(B,()=>n(s),(F,z)=>{z(F,{})}),_(E,O)},$$slots:{default:!0}})};V(y,C=>{n(s)&&C($)})}var S=A(y,2);let I=v(()=>n(s)?"settings-icon--labeled":"settings-icon");Sm(S,{get testId(){return n(I)}}),w(p),D(C=>b=se(p,1,"icon s-1s",null,b,C),[()=>({triple:n(l)})]),_(f,p)};V(a,f=>{i()?f(u):f(m,!1)})}_(t,d),U()}var U0=L('<span class="settings-icon-wrapper s-1z"><!></span>'),z0={hash:"s-1z",code:".settings-icon-wrapper.s-1z{position:relative;width:24px}"};function jl(t,e){H(e,!0),q(t,z0);let[i,o]=Ve(),r=()=>x(u,"$settingsMenuVisible",i),s=()=>x(p,"$isMobile",i),l=()=>x(a,"$currentQuality",i),d=me(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,f=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,b=d.ui.t,y=K(void 0);De(()=>{n(y)&&Pt(()=>{e.ref$.set(n(y))})});let $=b("aria_label_settings");async function S(C){let R=ta(C);r()?f():m(R,ho)}let I=v(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"settings-btn",click:S,get ariaLabel(){return $},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(C){N(y,C,!0)},children:(C,R)=>{var E=U0(),k=T(E);lc(k,{get isMobile(){return s()},get currentQuality(){return l()}}),w(E),_(C,E)},$$slots:{default:!0}}),U(),o()}var W0=Ee('<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),K0=Ee("<path></path>");function na(t,e){H(e,!0);let i=v(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=v(()=>vn(e.size));Ze(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,s)=>{var l=Ae(),d=de(l);{var a=m=>{var f=W0();ui(),_(m,f)},u=m=>{var f=K0();D(()=>Re(f,"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
59
59
  ${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":""}
60
- 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`)),_(p,m)};V(d,p=>{e.type==="off"?p(a):p(u,!1)})}_(r,l)},$$slots:{default:!0}}),H()}function Sm(t,e){F(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,s=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ut(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return vs.KeyC},role:"button",children:(l,d)=>{let a=v(()=>i()?void 0:"outline");ra(l,{get size(){return"24"},get type(){return n(a)}})},$$slots:{default:!0}}),H()}var U0=L('<span class="duration s-20" data-testid="video_duration"> </span>'),z0=L('<div><span class="current s-20" data-testid="current_time"> </span> <!></div>'),W0={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 uc(t,e){F(e,!0),q(t,W0);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),s=g(e,"ref",15),l=Mt(),d=ae(!1),a=v(()=>tn(e.duration)),u=v(()=>tn(e.position));var p=z0();let m;var f=T(p),b=T(f,!0);w(f);var y=k(f,2);{var $=S=>{var C=U0(),I=T(C,!0);w(C),B(()=>pe(I,n(a))),_(S,C)};V(y,S=>{r()&&S($)})}w(p),Is(p,()=>Kl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),ot(p,S=>s(S),()=>s()),B(S=>{m=se(p,1,"time s-20",null,m,S),pe(b,n(u))},[()=>({mobile:i()})]),_(t,p),H()}var fc=require("@vkontakte/videoplayer-shared/es2018");var K0=Ee("<path></path>");function sa(t,e){F(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(m,f)=>f?"off":m>.5?"max":m>.2?"mid":m>0?"min":"off",s=v(()=>r(i(),o())),l=v(()=>_n(e.size)),d="M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z",a="M44.92 16.52a1.8 1.8 90 012.56 2.56L42.54 24l4.94 4.92a1.8 1.8 90 11-2.56 2.56L40 26.54l-4.92 4.94a1.8 1.8 90 01-2.56-2.56L37.46 24l-4.94-4.92a1.8 1.8 90 112.56-2.56L40 21.46z",u="M31.5 17.8a1.8 1.8 90 012.54-.14A8.6 8.6 90 0136.8 24c0 2.52-1.06 4.8-2.76 6.34a1.8 1.8 90 11-2.4-2.68c.92-.84 1.56-2.16 1.56-3.66s-.64-2.8-1.58-3.66a1.8 1.8 90 01-.12-2.54",p="M37.62 13.34a1.8 1.8 90 012.54.2 16 16 90 010 20.9 1.8 1.8 90 01-2.74-2.32 12.4 12.4 90 000-16.24 1.8 1.8 90 01.2-2.54";Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(l)},get testId(){var m;return`volume-${(m=n(s))!=null?m:""}-icon`},get shadow(){return e.shadow},children:(m,f)=>{var b=K0();B(()=>He(b,"d",`M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z${n(s)==="off"?a:`${u}${n(s)==="max"?p:""}`}`)),_(m,b)},$$slots:{default:!0}}),H()}var ko=require("@vkontakte/videoplayer-shared/es2018");var op=require("@vkontakte/videoplayer-shared/es2018");var rb=require("@vkontakte/videoplayer-shared/es2018");var q0=L('<div class="overlay"><!></div>');function Tm(t,e){F(e,!0);let[i,o]=Ve(),r=()=>x(l,"$overlayContainer$",i),l=ve().ui.overlayContainer$,d=K(void 0),a=f=>{!f||!n(d)||!f.contains(n(d))||f.removeChild(n(d))},u=f=>{!f||!n(d)||f.contains(n(d))||f.appendChild(n(d))};Oe(()=>{u(r())}),Nt(()=>(u(r()),()=>a(r())));var p=q0(),m=T(p);ni(m,()=>{var f;return(f=e.children)!=null?f:ht}),w(p),ot(p,f=>N(d,f),()=>n(d)),_(t,p),H(),o()}var Q0=L('<div class="tooltip s-1i"><div class="content s-1i"> </div> <div class="tooltip-pointer s-1i"></div></div>'),G0=L("<div><!></div> <!>",1),Y0={hash:"s-1i",code:'.tooltip-wrapper.s-1i{display:flex;flex-direction:column;min-width:0}.full-width.s-1i{width:100%}.tooltip.s-1i{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1i{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1i{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 Ka(t,e){F(e,!0),q(t,Y0);let[i,o]=Ve(),r=()=>x(G,"$overlayContainer$",i),s=()=>x(z,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),a=g(e,"active",15,!1),u=g(e,"translateX",3,0),p=g(e,"translateY",3,0),m=g(e,"isFullWidthWrapper",3,!1),f=g(e,"maxTooltipWidth",3,void 0),b=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,rb.noop),$=5,S=K(void 0),C=K(void 0),I,R=K(0),E=K(0),P=K(0),O=K(0),D=Mt(),U=ve(),z=U.ui.playerSize,G=U.ui.overlayContainer$;Oe(()=>{Pt(()=>{y()(a())})});let le=U.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!r()||!n(C)||!n(S))return;N(E,$);let ee=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Be=Se.width,Ke=n(C).clientWidth,Ye=s().width,Te=(Be-Ke)/2,Le=Se.left+u()-ee.left,Ue=Le+Te,Vt=Se.top+p()-ee.top,et=Ke/2-$,Ot=Ue<8,Kt=Ue+Ke>Ye-8;Ot&&(Ue=8,et=Le+Se.width/2-2.5*$),Kt&&(Ue=Ye-8-Ke,et=Se.left-ee.left+Se.width/2-Ue-$),N(P,Ue,!0),N(O,Vt),N(R,et,!0)},oe=()=>{!r()||!n(C)||!n(S)||N(E,-$)},j=()=>{if(!r()||!n(C)||!n(S))return;N(R,$);let ee=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Be=Se.height,Ke=n(C).clientHeight,Ye=(Be-Ke)/2+Ke,Te=Se.left+u()-ee.left-n(C).clientWidth,Le=2,Ue=Te-$;Ue<8&&(Ue=8);let et=Se.top+p()-ee.top+Ye,Ot=Le-Ye/2,Kt=Le-$;N(P,Ue,!0),N(O,et),N(E,Ot),N(R,Kt)},ge=()=>{!r()||!n(C)||!n(S)||N(R,-$)},ce=()=>{switch(b()){case"top":X();break;case"bottom":oe();break;case"left":j();break;default:ge()}},re=()=>{try{if(!r()||!n(S))return;ce(),a(!0)}catch(ee){le({message:String(ee)})}},_e=()=>{a(!1)},we=()=>{n(C)&&(I||(I=window.setTimeout(re,D.controls.hideTimeoutTooltips)),a()&&re())},Z=()=>{_e(),window.clearTimeout(I),I=void 0},Re=(ee,Se,Be)=>{let Ke="";switch(b()){case"top":Ke=`transform: translate(${ee}px, ${Se}px);`;break;case"bottom":Ke=`transform: translate(${ee}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${ee}px, ${Se}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${ee}px, ${Se}px);`}return Ke+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,Ke+=` opacity: ${Be?1:0}; visibility: ${Be?"visible":"hidden"}`,Ke},ue=(ee,Se)=>{let Be="";switch(b()){case"top":Be=`transform: translate(${ee}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Be=`transform: translate(${ee}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Be=`transform: translate(${ee}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Be=`transform: translate(${ee}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Be},A=v(()=>Re(n(P),n(O),a())),We=v(()=>ue(n(R),n(E)));Nt(ce),hn(()=>window.clearTimeout(I));var Ce=G0(),Y=de(Ce);let ie;Y.__pointermove=we,Y.__pointerdown=Z,Y.__pointerup=function(...ee){var Se;(Se=e.disableMouseupTooltipShow?void 0:we)==null||Se.apply(this,ee)};var Ne=T(Y);ni(Ne,()=>{var ee;return(ee=e.children)!=null?ee:ht}),w(Y),ot(Y,ee=>N(S,ee),()=>n(S));var De=k(Y,2);{var fe=ee=>{Tm(ee,{children:(Se,Be)=>{var Ke=Q0(),Ye=T(Ke),Te=T(Ye,!0);w(Ye);var Le=k(Ye,2);w(Ke),ot(Ke,Ue=>N(C,Ue),()=>n(C)),B(()=>{Qe(Ke,n(A)),pe(Te,d()),Qe(Le,n(We))}),_(Se,Ke)},$$slots:{default:!0}})};V(De,ee=>{d()&&!l()&&ee(fe)})}B(ee=>ie=se(Y,1,"tooltip-wrapper s-1i",null,ie,ee),[()=>({"full-width":m()})]),_t("pointerenter",Y,we),_t("pointerleave",Y,Z),_(t,Ce),H(),o()}rt(["pointermove","pointerdown","pointerup"]);var sb=t=>{t.stopPropagation()},j0=L("<div><!></div>"),X0={hash:"s-18",code:".btn-container.s-18{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-18{min-width:0;width:100%}"};function Ao(t,e){F(e,!0),q(t,X0);let[i,o]=Ve(),r=()=>x(u,"$isGraphOpened$",i),s=()=>x(a,"$isMobile",i),l=ve(),d=wo(),a=l.ui.isMobile,u=d.graphIsOpened$,p=l.ui.t,m=g(e,"className",3,""),f=g(e,"disabled",3,!1),b=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),$=g(e,"width",15,void 0),S=g(e,"isFullWidthTooltip",3,!0),C=g(e,"tooltipContent",3,""),I=g(e,"tooltipVisible",3,!1),R=g(e,"tooltipPlacement",3,"top"),E=g(e,"disabledTooltipContent",19,()=>p("tooltip_button_disabled")),P=g(e,"isAriaHidden",3,!1),O=g(e,"onTooltipVisibilityChange",3,op.noop),D=g(e,"initialTranslateXPx",3,0),U=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,op.noop),G=g(e,"mouseLeave",3,op.noop),le=v(()=>f()?r()?p("tooltip_disabled_when_graph_on"):E():C()),X=K(!1);Oe(()=>{I()||N(X,!1)});var oe=j0();oe.__pointerdown=[sb],oe.__click=[sb];var j=T(oe);{var ge=re=>{Ka(re,{get content(){return n(le)},get translateX(){return D()},get translateY(){return U()},get isFullWidthWrapper(){return S()},get placement(){return R()},get onVisibilityChange(){return O()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(X)},set active(_e){N(X,_e,!0)},children:(_e,we)=>{var Z=ke(),Re=de(Z);ni(Re,()=>{var ue;return(ue=e.children)!=null?ue:ht}),_(_e,Z)},$$slots:{default:!0}})},ce=re=>{var _e=ke(),we=de(_e);ni(we,()=>{var Z;return(Z=e.children)!=null?Z:ht}),_(re,_e)};V(j,re=>{b()&&n(le)&&!s()?re(ge):re(ce,!1)})}w(oe),ot(oe,re=>y(re),()=>y()),B(()=>{var re;se(oe,1,`btn-container ${(re=m())!=null?re:""}`,"s-18"),He(oe,"aria-hidden",P()||null)}),_t("mouseenter",oe,function(...re){var _e;(_e=z())==null||_e.apply(this,re)}),_t("mouseleave",oe,function(...re){var _e;(_e=G())==null||_e.apply(this,re)}),An(oe,"clientWidth",$),_(t,oe),H(),o()}rt(["pointerdown","click"]);var Z0=Ee('<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 pc(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Ze(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var s=Z0(),l=de(s),d=k(l);B(()=>{He(l,"fill",Zs),He(l,"fill-opacity",e.completed?1:.24),He(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(o,s)},$$slots:{default:!0}})}var J0=L("<div><!></div>"),ex={hash:"s-l",code:".interactive-episode-icon.s-l{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-l{opacity:.4;pointer-events:none}"};function Cm(t,e){F(e,!0),q(t,ex);let o=ve().ui.t,r=K(0),s=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ao(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=J0();let u;var p=T(a);let m=v(()=>!!e.videoEpisode.completed);pc(p,{get completed(){return n(m)}}),w(a),B(f=>{u=se(a,1,"interactive-episode-icon s-l",null,u,f),Qe(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),An(a,"clientWidth",f=>N(r,f)),_(l,a)},$$slots:{default:!0}}),H()}var tx=L('<div><div class="video-episode-inner s-k"><div class="video-episode-loaded s-k"></div> <div></div></div></div>'),ix=L('<div class="video-episodes-wrap s-k"></div>'),ox={hash:"s-k",code:".video-episodes-wrap.s-k{height:100%;position:absolute;width:100%}.video-episode.s-k{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-k:first-child{padding-left:0}.video-episode.s-k:last-child{padding-right:0}.video-episode.s-k:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-k,.video-episode-inner.s-k,.video-episode-loaded.s-k{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-k{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-k:first-child .video-episode-inner:where(.s-k),.video-episode.s-k:last-child .video-episode-inner:where(.s-k){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-k{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-k,.video-episode-loaded.s-k{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-k{background-color:var(--slider-filled-bg)}"};function Im(t,e){q(t,ox);let i=g(e,"videoEpisodes",19,()=>[]);var o=ix();yi(o,21,i,r=>r.from,(r,s)=>{var l=tx();let d;var a=T(l),u=T(a),p=k(u,2);let m;w(a),w(l),B((f,b)=>{d=se(l,1,"video-episode s-k",null,d,f),Qe(l,`left: ${n(s).from}%; width: ${n(s).width}%`),Qe(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),m=se(p,1,"video-episode-filled s-k",null,m,b),Qe(p,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),_(r,l)}),w(o),_(t,o)}function nx(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function rx(t,e,i,o,r,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);r()(a,u,n(s).width,t),n(l)&&d()(a)}function sx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function ax(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function lx(t,e,i,o,r,s){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),s()(l)}var dx=L("<div></div>"),cx=L('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),ux=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),px={hash:"s-h",code:'.interactive-icons.s-h{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-h{top:-10px}.slider.s-h{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-h{cursor:default}.slider.s-h: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-h{background:var(--slider-bg);overflow:hidden}.bars.s-h,.loaded.s-h{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-h{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-h{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-h,.slider.square.s-h .filled:where(.s-h),.slider.square.s-h .loaded:where(.s-h),.slider.square.s-h>.bars:where(.s-h){border-radius:unset}.filled.active-live.s-h{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-h{background-color:var(--slider-filled-ads)}.handleWrap.s-h{left:-100%;position:absolute;width:100%}.handle.s-h{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-h{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-h .handle:where(.s-h),.slider-dragging.s-h .handle:where(.s-h),.slider.s-h:hover .handle:where(.s-h){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-h .handle:where(.s-h){transform:scale(1.3)}.slider-vertical.s-h{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-h{cursor:default;opacity:.4}'};function qa(t,e){F(e,!0),q(t,px);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),s=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),a=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),p=g(e,"videoEpisodes",19,()=>[]),m=g(e,"withWheelHandler",3,!1),f=g(e,"isInteractive",3,!1),b=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),$=g(e,"onPointerDown",3,ko.noop),S=g(e,"onHandleMove",3,ko.noop),C=g(e,"onPointerUp",3,ko.noop),I=g(e,"onPointerEnter",3,ko.noop),R=g(e,"onPointerMove",3,ko.noop),E=g(e,"onPointerLeave",3,ko.noop),P=g(e,"onMouseEnter",3,ko.noop),O=g(e,"onMouseLeave",3,ko.noop),D=g(e,"onWheelUp",3,ko.noop),U=g(e,"onWheelDown",3,ko.noop),z=g(e,"onWheelLeft",3,ko.noop),G=g(e,"onWheelRight",3,ko.noop),le=g(e,"onDisabledClick",3,ko.noop),X=g(e,"loadedProgress",3,0),oe=g(e,"filledProgress",3,0),j=g(e,"handleProgress",3,0),ge=g(e,"ariaLabel",3,""),ce=g(e,"ariaValueMin",3,void 0),re=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),we=g(e,"ariaValueText",3,""),Z=g(e,"onContextMenu",3,ko.noop),Re=g(e,"handleAlwaysVisible",3,!1),ue=Mt(),A=K(void 0),We=K(!1),Ce=v(()=>{var xe;return(xe=re())!=null?xe:0}),Y=v(()=>{var xe;return(0,ko.isNonNullable)(p())&&((xe=p()[p().length-1])==null?void 0:xe.time)<n(Ce)}),ie=v(()=>(0,ko.isNonNullable)(p())&&p().length&&n(Y)&&n(Ce)?Ye(X()*100,oe()*100):[]);function Ne(xe){if(xe.preventDefault(),i()&&N(A,i().getBoundingClientRect(),!0),b())return;let Pe=Be(xe.clientX,xe.clientY),It=Ke(xe.clientX);I()(Pe,It,n(A).width)}function De(xe){xe.preventDefault(),!b()&&E()()}function fe(){P()()}function ee(){O()()}function Se(xe){b()||m()&&(xe.preventDefault(),xe.deltaY<0?D()():xe.deltaY>0?U()():xe.deltaX>0?G()():z()())}function Be(xe,Pe){return l()?Math.max(0,Math.min(1,(n(A).height-(Pe-n(A).top))/n(A).height)):Math.min(Math.max(xe-n(A).x,0),n(A).width)/n(A).width}function Ke(xe){return Math.min(Math.max(xe-n(A).x,0),n(A).width)}function Ye(xe,Pe){let It=ue.features.episodesClustering&&!f()?ue.episodeMinWidthPc:0,Me=[],st=p()[0].time/n(Ce)*100,vt=0,$e=0;for(let nt=1;nt<p().length;nt++)vt=p()[nt].time/n(Ce)*100,vt-st>It&&(Me.push({from:st,width:Math.max(0,vt-st),loadedWidth:Math.max(0,Math.min(vt,xe)-st),filledWidth:Math.max(0,Math.min(vt,Pe)-st),interactive:p()[nt-1].interactive,completed:p()[nt-1].completed}),st=p()[nt].time/n(Ce)*100,$e++);let Je={from:st,width:Math.max(0,100-st),loadedWidth:Math.max(0,Math.min(xe,100)-st),filledWidth:Math.max(0,Math.min(Pe,100)-st),interactive:p()[$e].interactive,completed:p()[$e].completed};100-st<It?($e-=1,Me[$e].width+=100-st,Me[$e].loadedWidth+=Math.max(0,Math.min(xe,100)-st),Me[$e].filledWidth+=Math.max(0,Math.min(Pe,100)-st)):Me[$e]=Je;let ze=p()[0].time;if(ze!==0){let nt=ze/n(Ce)*100;Me.unshift({from:0,width:nt,loadedWidth:Math.min(nt,xe),filledWidth:Math.min(nt,Pe)})}return Me}function Te(xe){return Math.max(0,Math.min(100,xe*100))}var Le=ux(),Ue=de(Le);{var Vt=xe=>{var Pe=dx();let It;yi(Pe,21,()=>n(ie),Me=>Me.from,(Me,st)=>{var vt=ke(),$e=de(vt);{var Je=ze=>{Cm(ze,{get videoEpisode(){return n(st)},get disabled(){return b()}})};V($e,ze=>{n(st).interactive&&ze(Je)})}_(Me,vt)}),w(Pe),B(Me=>It=se(Pe,1,"interactive-icons s-h",null,It,Me),[()=>({mobile:a(),hidden:a()&&!n(We)})]),_(xe,Pe)};V(Ue,xe=>{f()&&xe(Vt)})}var et=k(Ue,2);let Ot;et.__pointerdown=[nx,i,A,b,We,Be,$],et.__pointermove=[rx,b,Be,Ke,R,A,We,S],et.__pointerup=[sx,b,We,Be,C],et.__click=[ax,b,le,Be],et.__contextmenu=[lx,Be,b,le,We,Z];var Kt=T(et);{var Tt=xe=>{Im(xe,{get videoEpisodes(){return n(ie)},get disabled(){return b()},get isMobile(){return a()}})},Zt=xe=>{var Pe=cx(),It=T(Pe),Me=k(It,2);let st;w(Pe),B((vt,$e,Je)=>{Qe(It,vt),st=se(Me,1,"filled s-h",null,st,$e),Qe(Me,Je)},[()=>`transform: translateX(${Te(X())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Te(oe())}%);`]),_(xe,Pe)};V(Kt,xe=>{n(ie).length?xe(Tt):xe(Zt,!1)})}var Dt=k(Kt,2);let ye;var be=T(Dt);let J;w(Dt),w(et),ot(et,xe=>i(xe),()=>i()),B((xe,Pe,It,Me)=>{var st,vt;Ot=se(et,1,`slider ${(st=o())!=null?st:""}`,"s-h",Ot,xe),He(et,"aria-label",ge()),He(et,"aria-valuemin",ce()),He(et,"aria-valuemax",re()),He(et,"aria-valuenow",_e()),He(et,"aria-valuetext",we()),He(et,"data-testid",(vt=r())!=null?vt:null),ye=se(Dt,1,"handleWrap s-h",null,ye,Pe),Qe(Dt,It),J=se(be,1,"handle s-h",null,J,Me)},[()=>({disabled:b(),"slider-dragging":n(We),hidden:s(),"handle-always-visible":Re(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Te(j())}%);`,()=>({"active-live":d()})]),_t("pointerenter",et,Ne),_t("pointerleave",et,De),_t("mouseenter",et,fe),_t("mouseleave",et,ee),_t("wheel",et,Se),_(t,Le),H()}rt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Zi=(t,e)=>Ma[t]>=Ma[e],ab=(t,e)=>Ma[t]<Ma[e],ks=(t,e)=>Ma[t]<=Ma[e],lb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var mx=L("<div><!></div>"),vx=L("<div><!> <!></div>"),gx={hash:"s-29",code:".volumeBar-container.s-29{align-items:center;display:flex}.vertical.s-29 .btn,.vertical.s-29 .tooltip-wrapper,.volumeBar-container.vertical.s-29{width:40px}.volumeBar.s-29{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-29{padding:0 8px 0 0;width:0}"};function Em(t,e){var Ke,Ye;F(e,!0),q(t,gx);let[i,o]=Ve(),r=()=>x(R,"$isAudioAvailable$",i),s=()=>x(f,"$muted$",i),l=()=>x(m,"$volume$",i),d=()=>x(S,"$currentGridType$",i),a=()=>x(Ne,"$controlsVisible",i),u=ve(),p=Mt(),m=u.state.volume$,f=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:$}=u.actions.internal,S=u.ui.currentGridType$,C=(Ke=u.callbacks)==null?void 0:Ke.onAudioDoesNotExistHint,I=(Ye=u.callbacks)==null?void 0:Ye.onAudioDisabledHint,R=u.state.isAudioAvailable$,E=u.state.isAudioDisabled,P=u.ui.t,O=K(!1),D,U=v(()=>e.isAds||r()),z=v(()=>!n(U)||s()||l()===0),G=v(()=>ks(d(),"s")),le=v(()=>n(G)?"":n(z)?!r()||E?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),X=v(()=>n(z)?P("tooltip_volume"):P("tooltip_volume_muted")),oe=v(()=>n(z)?0:l()),j=!1,ge=v(()=>e.isAds?!1:E?!I:r()?!1:!C);function ce(Te){y(),b(Te)}function re(){Ju(u,l(),p.controls.volumeStepWheel)}function _e(){ep(u,l(),p.controls.volumeStepWheel)}function we(Te){b(Te)}function Z(Te){b(Te),$()}function Re(){j=!0}function ue(){j=!1,Ce()}function A(){clearTimeout(D),N(O,!0)}function We(){Ce()}function Ce(){D=window.setTimeout(()=>{j||N(O,!1)},p.controls.volumeBarTimeout)}function Y(Te){Te.preventDefault(),Te.deltaY<0?re():Te.deltaY>0&&_e()}let ie=K(!1),Ne=u.ui.controlsVisible;Oe(()=>{a()||N(ie,!1)});var De=vx();let fe;var ee=T(De);Ka(ee,{get content(){return n(le)},translateY:-18,get active(){return n(ie)},set active(Te){N(ie,Te,!0)},children:(Te,Le)=>{let Ue=v(()=>n(G)?"btn-volume-vertical":"btn-volume-horizontal");Ut(Te,{className:"btn-full-opacity",get disabled(){return n(ge)},get testId(){return n(Ue)},get ariaLabel(){return n(X)},get click(){return e.click},get ariaKeyShortCut(){return vs.KeyM},role:"button",children:(Vt,et)=>{sa(Vt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Se=k(ee,2);{var Be=Te=>{var Le=mx();let Ue;var Vt=T(Le);let et=v(()=>n(G)?"volumeBar-slider-vertical":""),Ot=v(()=>n(G)&&!n(O)),Kt=v(()=>n(G)?Re:fc.noop),Tt=v(()=>n(G)?ue:fc.noop),Zt=v(()=>Math.round(n(oe)*100)),Dt=v(()=>`${Math.round(n(oe)*100)}%`),ye=v(()=>n(G)?"volume-slider-vertical":"volume-slider");qa(Vt,{get className(){return n(et)},get isHidden(){return n(Ot)},get isVertical(){return n(G)},withWheelHandler:!0,onWheelUp:re,onWheelDown:_e,onPointerDown:ce,onHandleMove:we,onPointerUp:Z,get onPointerEnter(){return n(Kt)},get onPointerLeave(){return n(Tt)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Zt)},get ariaValueText(){return n(Dt)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(ye)}}),w(Le),B(be=>Ue=se(Le,1,"volumeBar s-29",null,Ue,be),[()=>({"volumeBar-vertical":n(G)})]),_(Te,Le)};V(Se,Te=>{n(U)&&Te(Be)})}w(De),B(Te=>fe=se(De,1,"volumeBar-container s-29",null,fe,Te),[()=>({vertical:n(G)})]),_t("mouseenter",De,function(...Te){var Le;(Le=n(G)?A:fc.noop)==null||Le.apply(this,Te)}),_t("mouseleave",De,function(...Te){var Le;(Le=n(G)?We:fc.noop)==null||Le.apply(this,Te)}),_t("wheel",De,Y),_(t,De),H(),o()}var db=require("@vkontakte/videoplayer-shared/es2018");var hx=Ee('<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>'),_x=Ee('<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 Pm(t,e){let i=g(e,"isFullscreen",8,!1),o=Tn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ze(t,{get testId(){return n(o)},children:(r,s)=>{var l=ke(),d=de(l);{var a=p=>{var m=hx();_(p,m)},u=p=>{var m=_x();_(p,m)};V(d,p=>{i()?p(a):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}function mc(t,e){F(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,db.noop),r=ve(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ut(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let p=ia(u);s.set(p),o()()},get ariaKeyShortCut(){return vs.KeyF},role:"button",children:(u,p)=>{Pm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var bx=Ee('<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 Am(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=bx();Xi(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=T(o);ni(r,()=>{var s;return(s=e.children)!=null?s:ht}),ui(),w(o),_(t,o)}var $x=Ee('<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 km(t,e){let i=kn(e,["$$slots","$$events","$$legacy","children"]);var o=$x();Xi(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=T(o);ni(r,()=>{var s;return(s=e.children)!=null?s:ht}),ui(6),w(o),_(t,o)}var yx={hash:"s-2a",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 Lm(t,e){F(e,!0),q(t,yx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=v(()=>!o()&&!i()?91:i()?l:95),a=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=v(()=>`0 0 ${n(d)} 24`);km(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),H()}function vc(t,e){F(e,!0);let[i,o]=Ve(),r=()=>x(b,"$isMobile",i),s=()=>x(f,"$currentGridType$",i),l=()=>x($,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),a=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),p=Mt(),m=ve(),f=m.ui.currentGridType$,b=m.ui.isMobile,y=m.ui.t,$=m.isCyrillicRelatedInterface$,S=v(()=>p.logoType!=="vk"),C=v(()=>n(S)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),I=v(()=>(r()&&ks(s(),"m")||ks(s(),"l"))&&n(S)),R=()=>{var O,D;e.click(),(O=m.callbacks)!=null&&O.onLogoClicked?(D=m.callbacks)==null||D.onLogoClicked():u()&&window.open(u(),"_blank")},E=v(()=>!a()),P=v(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Ut(t,{className:"btn-full-opacity",get disabled(){return n(E)},click:R,get testId(){return n(P)},get ariaLabel(){return n(C)},get ref(){return d()},set ref(O){d(O)},children:(O,D)=>{var U=ke(),z=de(U);{var G=X=>{Lm(X,{get logo(){return p.logoType},get short(){return n(I)},get isCyrillic(){return l()}})},le=X=>{Am(X,{})};V(z,X=>{n(S)?X(G):X(le,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}var ub=require("@vkontakte/videoplayer-core/es2018");var Mm=require("@vkontakte/videoplayer-core/es2018");var xx=Ee('<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-1a"></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-1a"></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-1a"></path>',1),wx=Ee('<path d="M1 18v3h3c0-1.66-1.34-3-3-3z"></path><path d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"></path><path d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" class="s-1a"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"></path>',1),Sx={hash:"s-1a",code:".animated.s-1a{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-1a{animation-name:s-1a-wave1}.wave2.animated.s-1a{animation-name:s-1a-wave2}.wave3.animated.s-1a{animation-name:s-1a-wave3}@keyframes s-1a-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-1a-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-1a-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function gc(t,e){F(e,!0),q(t,Sx);let i=g(e,"isMobile",3,!1),o=v(()=>e.iconState===Mm.ChromecastState.CONNECTED),r=v(()=>e.iconState===Mm.ChromecastState.CONNECTING),s=v(()=>n(o)?"#2688EB":Zs),l=v(()=>e.size?_n(e.size):void 0);var d=ke(),a=de(d);{var u=m=>{Ze(m,{get fill(){return n(s)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(f,b)=>{var y=xx();ui(2),_(f,y)},$$slots:{default:!0}})},p=m=>{Ze(m,{get style(){return n(l)},testId:"chromecast-icon",children:(f,b)=>{var y=wx(),$=de(y);let S;var C=k($);let I;var R=k(C);let E;var P=k(R,2);let O;B((D,U,z,G)=>{S=se($,0,"wave1 s-1a",null,S,D),I=se(C,0,"wave2 s-1a",null,I,U),E=se(R,0,"wave3 s-1a",null,E,z),O=se(P,0,"s-1a",null,O,G)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:!n(o)})]),_(f,y)},$$slots:{default:!0}})};V(a,m=>{i()?m(u):m(p,!1)})}_(t,d),H()}var pb=require("@vkontakte/videoplayer-shared/es2018");function hc(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,pb.noop),l=ve().ui.t,d=v(()=>e.state===ub.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ut(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{gc(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var fb=require("@vkontakte/videoplayer-shared/es2018");var Tx=Ee('<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 Vm(t){Ze(t,{testId:"episodes-icon",children:(e,i)=>{var o=Tx();ui(2),_(e,o)},$$slots:{default:!0}})}var np=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Cx=L('<span class="text mobile s-23"> </span> <div class="chevron-episodes s-23" data-testid="btn-episodes_icon"><!></div>',1),Ix=L('<span class="text s-23"> </span>'),Ex=L('<span class="text count s-23"> </span>'),Px=L("<!> <!>",1),Ax={hash:"s-23",code:".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 _c(t,e){var j,ge,ce;F(e,!0),q(t,Ax);let[i,o]=Ve(),r=()=>x(y,"$currentGridType$",i),s=()=>x($,"$openedByKeyboard$",i),l=()=>x(S,"$panelOpened$",i),d=()=>x(C,"$isMobile",i),a=g(e,"position",3,0),u=g(e,"duration",3,0),p=g(e,"timeCodes",19,()=>[]),m=ve(),f=(ge=(j=m.callbacks)==null?void 0:j.onEpisodeChanged)!=null?ge:fb.noop,b=!!((ce=m.callbacks)!=null&&ce.onEpisodeClicked),y=m.ui.currentGridType$,$=m.ui.episodes.openedByKeyboard$,S=m.ui.episodes.panelOpened$,C=m.ui.isMobile,I=m.ui.t,R=K(void 0),E=re=>{var we,Z,Re;if(!!((we=m.callbacks)!=null&&we.onEpisodeClicked)){let ue=ia(re);$.set(ue),S.set(!0),(Re=(Z=m.callbacks)==null?void 0:Z.onEpisodeClicked)==null||Re.call(Z,ue)}},P=K(null),O=v(()=>a()/u());Oe(()=>{var _e;let re=np(n(O),u(),p());re?((_e=n(P))==null?void 0:_e.time)!==re.time&&(f(re),N(P,re,!0)):N(P,null)});let D=v(()=>{var re;return((re=n(P))==null?void 0:re.text)||""}),U=v(()=>Zi(r(),"xl")?"FULL":Zi(r(),"m")&&ab(r(),"xl")?"COUNT":"SHORT"),z=v(()=>`${I("tooltip_episodes")}: ${n(D)}`),G=async(re,_e,we)=>{await ho(),(re==null?void 0:re.getAttribute("aria-expanded"))==="false"&&_e&&!we&&Pt(()=>{$.set(!1),re.focus()})};Oe(()=>{G(n(R),s(),l())});var le=ke(),X=de(le);{var oe=re=>{let _e=v(()=>d()?"px-0":""),we=v(()=>!b);Ut(re,{get className(){var Z;return`w-max btn-full-opacity btn-jc-l ${(Z=n(_e))!=null?Z:""}`},testId:"btn-episodes",click:E,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(Z){N(R,Z,!0)},children:(Z,Re)=>{var ue=ke(),A=de(ue);{var We=Y=>{var ie=Cx(),Ne=de(ie),De=T(Ne,!0);w(Ne);var fe=k(Ne,2),ee=T(fe);kr(ee,{direction:"right"}),w(fe),B(()=>pe(De,n(D))),_(Y,ie)},Ce=Y=>{var ie=Px(),Ne=de(ie);Vm(Ne,{});var De=k(Ne,2);{var fe=Se=>{var Be=Ix(),Ke=T(Be,!0);w(Be),B(()=>pe(Ke,n(D))),_(Se,Be)},ee=(Se,Be)=>{{var Ke=Ye=>{var Te=Ex(),Le=T(Te,!0);w(Te),B(()=>pe(Le,p().length)),_(Ye,Te)};V(Se,Ye=>{n(U)==="COUNT"&&Ye(Ke)},Be)}};V(De,Se=>{n(U)==="FULL"?Se(fe):Se(ee,!1)})}_(Y,ie)};V(A,Y=>{d()?Y(We):Y(Ce,!1)})}_(Z,ue)},$$slots:{default:!0}})};V(X,re=>{n(P)&&re(oe)})}_(t,le),H(),o()}var iv=require("@vkontakte/videoplayer-shared/es2018");var fi=require("@vkontakte/videoplayer-core/es2018"),at=require("@vkontakte/videoplayer-shared/es2018"),hs=require("@vkontakte/videoplayer-statistics/es2018");var Ge=require("@vkontakte/videoplayer-shared/es2018"),Ji=require("@vkontakte/videoplayer-shared/es2018"),kx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",rp=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 Ji.Subject,loadStarted$:new Ji.Subject,loadEnded$:new Ji.Subject,loadError$:new Ji.Subject,ready$:new Ji.Subject,slotRequested$:new Ji.Subject,started$:new Ji.Subject,timeRemained$:new Ji.Subject,paused$:new Ji.Subject,resumed$:new Ji.Subject,ended$:new Ji.Subject,empty$:new Ji.Subject,skipped$:new Ji.Subject,clicked$:new Ji.Subject,closed$:new Ji.Subject,error$:new Ji.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 s=()=>{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,Ji.addScript)(kx,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=s,r=window.setTimeout(s,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 s=()=>{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,a=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=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),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 R,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:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:p,externalApi:m}=e;this.externalApi=m;let f,b=this.playerState&&he(this.playerState.vsid);b&&(this.isVsidOriginal?f=b:f=parseInt(b,36));let{isEmbed:y,immediateOrigin:$}=(0,Ge.detectEmbed)(),S=(R=y?$:window.location.href)!=null?R:window.location.href,C={...a,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,...f?{request_id:f}:{},duration:p,...u};C=Object.fromEntries(Object.entries(C).filter(([P,O])=>(0,Ge.isNonNullable)(O)));let I={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let P=new window.AdmanHTML;if(P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.setDebug(!1),(E=this.externalApi)!=null&&E.videoGetAds){let O=await this.safeExternalCall(this.externalApi.videoGetAds,C);O&&(delete I.slot,delete I.params,Object.assign(I,{json:O}))}P.init(I),this.adman=P,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,s;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)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.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,s,l,d,a,u,p,m,f;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),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(p=this.adman)==null||p.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(f=this.adman)==null||f.destroy(),this.videoElement&&(0,Ji.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 mb=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 Rm=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 s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new sp,{startTime:p,endTime:m}=u.parse(a);l.startTime=p,l.endTime=m}else if(a.trim()!==""){let u=new Nm,{texts:p}=u.parse(a);l.texts=[...l.texts,...p]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},sp=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 s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},Nm=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,a=[];for(;d<l.length;){let u=["<",">"].reduce((p,m)=>{let f=l.indexOf(m,d);return p===-1||p>f?f:p},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new sp;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},vb=Rm;var lp=require("@vkontakte/videoplayer-shared/es2018"),Qa,Pi,Om=0,Dm=!1,gb="",hb=(t,e=0,i=0)=>t<e&&t<i,ap=(t,e=0,i=0)=>t>=e&&t<=i,Lx=(t,e=0,i=0)=>t>e&&t>i,_b=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:p})=>ap(t,u,p));let s=t>=Om,l=t<Om;if(Om=t,l&&(Dm=!1),(0,lp.isNonNullable)(Qa)&&ap(t,Qa.startTime,Qa.endTime)&&gb===e.value)return Qa;if(!(0,lp.isNonNullable)(Pi)&&(r!=null&&r.length)&&!Dm){Pi=r.find(({startTime:u,endTime:p})=>ap(t,u,p)||s&&hb(t,u,p)),Qa=void 0,!(0,lp.isNonNullable)(Pi)&&r[r.length-1].endTime<t&&(Dm=!0);return}else{if(ap(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return Qa=Pi,Pi=void 0,gb=e.value,Qa;(s&&Lx(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&hb(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var dp={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"},Mx={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"},bc=t=>{var e,i;return(i=(e=dp[t])!=null?e:dp[Mx[t]])!=null?i:void 0};var bb=require("@vkontakte/videoplayer-shared/es2018"),jB=require("@vkontakte/videoplayer-statistics/es2018"),cp=class{constructor(e,i,o,r=new bb.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 $c=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))($c||{});var gs=t=>t!=null?t:0,Ls=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(gs(i==null?void 0:i.top)-gs(o==null?void 0:o.top)),left:Math.round(gs(i==null?void 0:i.left)-gs(o==null?void 0:o.left)),bottom:Math.round(gs(i==null?void 0:i.bottom)-gs(o==null?void 0:o.top)),right:Math.round(gs(i==null?void 0:i.right)-gs(o==null?void 0:o.left))}},Jl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:gs(e==null?void 0:e.width),height:gs(e==null?void 0:e.height)}};var Vn="off";var ed=t=>!!(Math.round(Math.abs(t)/90)%2);var $b=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:p,previewThumbsData:m,uiConfig:f,coreConfig:b,player:y,disabledControls:$,isInteractive:S,interactiveRanges$:C,isInteractiveTime$:I,replayInteractive:R,stopPlayer:E,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:O,additionalButtons:D,additionalSettingsMenuItems:U,additionalContextMenuItems:z,playPrevVideo:G,playNextVideo:le,onVideoChanged:X,looped:oe=!1,statistics:j,saveRate:ge,internalsExposure:ce,playerView:re,playerId:_e})=>{var dg,cg,ug;let we={...b,configName:[...(dg=b.configName)!=null?dg:[],"ui"],isAudioDisabled:l,live:{...(cg=b.live)!=null?cg:{},isLiveCatchUpMode:!!r}},Z=f,Re=at.TracerFactory.createRootTracer(Z.features.tracer),ue=Re.createComponentTracer("Store"),A=y||new fi.Player(we,Re,{playerId:_e});ce==null||ce.expose({corePlayer:A});let We=new at.Logger,Ce=new rp(We,{loadTimeout:Z.ads.loadTimeout,initTimeout:Z.ads.initTimeout,runtimeTimeout:Z.ads.runtimeTimeout,useAdmanFromNPM:Z.ads.useAdmanFromNPM,volumeMultiplier:Z.ads.volumeMultiplier,isVsidOriginal:Z.ads.isVsidOriginal}),Y=Oa.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,Ne=u==null?void 0:u.annotationsApi,De=u==null?void 0:u.slotsApi,fe=We.createComponentLog("Store"),ee,Se,Be={},Ke=new Ru,Ye=new at.Subscription,Te="",Le=ae(!1),Ue=j&&j.oneStat?li(j.oneStat.vsid$):Ar(void 0),Vt=ae(Js()),et=ae(!1),Ot=()=>F_(document,fi.clientChecker.device.isIOS),Kt=(ug=ie==null?void 0:ie.info.isActive$)!=null?ug:new at.ValueSubject(!1),Tt=ae(0),Zt=ae(!1),Dt=ae(!1),ye=ae([]),be=(0,at.merge)(A.events.fatalError$,A.events.managedError$).subscribe(c=>ye.update(h=>[...h,c])),J=Ar(!1,c=>{let h=A.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),xe=async c=>{var ne;let h=Object.values(at.InterfaceLanguage).includes(c);if(Z.downloadVKLanguages&&(h&&Z.updateBuiltinLanguages||!Xf(c))){let Ie;try{Ie=await(0,at.loadVKLangPack)(c,Zh,Jh)}catch(it){(ne=j==null?void 0:j.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),Y==null||Y.report(it,{errorType:"VKLangPack",fatal:!1})}Ie&&(jf({language:c,pack:Ie,fallback:Z.defaultLanguage}),Pe.set(c),It.update(it=>it+1))}Xf(c)&&Pe.set(c)},Pe=ae(t),It=ae(0),Me=ae(e);xe(t);let st=(c,h)=>{let M=he(Pe);return Zf(M,c,h,Z.defaultLanguage)},vt=ae("thumb");vt.subscribe(c=>{c==="ads"&&A.info.playbackState$.getValue()&&ze()});let $e=(()=>{let c=vi([J,vt],([h,M])=>h?"crashed":M);return{...c,is:h=>he(c)===h}})(),Je=ae(),ze=()=>{Je.set({muted:A.info.muted$.getValue()})},nt=(()=>{let c=ae(new Set($));return{...c,add:h=>{c.update(M=>new Set([...M].concat(h)))},remove:h=>{c.update(M=>{let ne=[...M];return new Set(Array.isArray(h)?ne.filter(Ie=>!h.includes(Ie)):ne.filter(Ie=>Ie!==h))})},includes:h=>{let M=he(c);return Array.isArray(h)?h.every(ne=>M.has(ne)):M.has(h)}}})(),Jt=ae({width:0,height:0}),ri=null,pi=A.info.isBuffering$,hi=Ar(pi.getValue(),c=>{let h=pi.subscribe(M=>{M&&ri===null?ri=window.setTimeout(()=>{c(pi.getValue()),ri=null},Z.loaderDelay):c(M)});return()=>{h.unsubscribe(),ri&&clearTimeout(ri)}});ue.log("create store"),fe({message:"create store"});let to=c=>{let h=c.container,M=()=>{ii=new MutationObserver(Ie=>{let{removedNodes:it}=Ie[0];it.length&&h.append(A.experimental.element$.getValue())}),ii.observe(h,{childList:!0})},ne=A.experimental.element$.getValue();if(ne)h.append(ne),M();else{let Ie=A.experimental.element$.pipe((0,at.filter)(it=>!!it),(0,at.once)()).subscribe(it=>{h.append(it),M()});Ye.add(Ie)}},_o=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),S?to(c):(at.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,at.now)()]}),A.initVideo(c)),ue.log("init video",{isInteractive:S}),c.subtitles&&A.setExternalTextTracks(c.subtitles),ee=c,Te=c.subtitlesForcedLanguage||""},di=new at.Subject,ut=c=>di.next(c),Ii=new at.Subject,Yt=new at.Subject,St=new at.Subject,ii=null,jt={actionRewind$:Ii,actionSeek$:Yt,inPiP$:Kt,inFullscreen$:new at.Observable(c=>Vt.subscribe(h=>c.next(h))),actionSetSubtitle$:St,nextMovie$:di},bt=new at.Subject,je={actionSeek$:Yt,actionSubtitlesSwitched$:bt,playerSize$:new at.Observable(c=>Jt.subscribe(h=>c.next(h))),inPiP$:Kt,inFullscreen$:new at.Observable(c=>Vt.subscribe(h=>c.next(h))),isLoaderVisible$:new at.Observable(c=>hi.subscribe(h=>c.next(h)))};if(j){let{oneStat:c,thinOneStat:h,mediascopePixel:M,statSubscription:ne}=j;c&&(S||ne.add(c.attachTo(A)),ne.add(c.attachToUi(jt)),ne.add(c.attachToAds(Ce.events)),c.authorize(s).catch(Ie=>{fe({message:`onestat auth error ${String(Ie)}`})}),M&&M.attachTo(A)),h&&(ne.add(h.attachTo(A,Ce.events)),ne.add(h.attachToUi(je)),ne.add(h.attachToAds(Ce.events)),h.updateContext({isMobile:he(Le)}),h.authorize(s))}if(Y){let c=new at.Subscription,h=(M,ne)=>c.add(M.subscribe(ne));if(h(A.events.managedError$,M=>{Y.logIError(M)}),h(A.events.fatalError$,M=>{Y.logIError(M,!0)}),j){let{oneStat:M}=j;M&&h(M.experimental.error$,ne=>{Y.logIError(ne)})}Y.sentrySubscription.add(c)}let $i=()=>{if(fi.clientChecker.device.isIOS&&Se)try{H_(Se)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};Ye.add(A.experimental.element$.subscribe(c=>{c&&(Se=c,c.classList.add("player-media"),Ba(ie)&&ie.updateVideoElement(),S&&c.setAttribute("pip","false"),re==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(A.events.ended$.subscribe(()=>{var c;$i(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(A.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(A.events.started$.subscribe(async()=>{var h,M;Ba(ie)&&await(ie==null?void 0:ie.revealPictureInPicture());let c=A.info.muted$.getValue();(h=a==null?void 0:a.onStarted)==null||h.call(a),(M=Be.onStarted)==null||M.call(Be,c)})).add(A.events.willSeek$.subscribe(({from:c,to:h})=>{var M;(M=a==null?void 0:a.onSeek)==null||M.call(a,c,h)})).add(A.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(A.info.position$.subscribe(c=>{var M;let h=A.info.duration$.getValue();isFinite(h)&&h>0&&((M=a==null?void 0:a.onTimeupdate)==null||M.call(a,h,c),Ce.setPosition(c,h))})).add(A.events.fatalError$.subscribe(c=>{var h;(h=a==null?void 0:a.onCrashed)==null||h.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(A.events.fetcherRecoverableError$.subscribe(c=>{var h;(h=a==null?void 0:a.onRecoverableError)==null||h.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(A.events.loadedMetadata$.subscribe(()=>{Zt.set(!0)})).add(A.info.is3DVideo$.subscribe(c=>{Dt.set(c)})).add(A.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&nt.add(Qd),nt.add("PLAY_BUTTON")):nt.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(c=>{var h;(h=a==null?void 0:a.onLiveTime)==null||h.call(a,c)})).add(A.info.isStalled$.subscribe(c=>{var h;(h=a==null?void 0:a.onStalledChanged)==null||h.call(a,c)})).add(A.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=a==null?void 0:a.onLiveEnded)==null?void 0:h.call(a))})).add(Ce.events.loadStarted$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:h.call(c)})).add(Ce.events.loadEnded$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:h.call(c)})).add(Ce.events.loadError$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:h.call(c)})).add(Ce.events.init$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:h.call(c)})).add(Ce.events.ready$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:h.call(c)})).add(Ce.events.started$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onStarted)==null?void 0:M.call(h,c)})).add(Ce.events.timeRemained$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:M.call(h,c)})).add(Ce.events.ended$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onCompleted)==null?void 0:M.call(h,c)})).add(Ce.events.empty$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:h.call(c)})).add(Ce.events.clicked$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onClicked)==null?void 0:M.call(h,c)})).add(Ce.events.closed$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onClosed)==null?void 0:M.call(h,c)})).add(Ce.events.error$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onError)==null?void 0:M.call(h,c)})).add(Ce.events.paused$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:h.call(c)})).add(Ce.events.resumed$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:h.call(c)}));let io=new at.Subscription,on=()=>{var it,At,Ft;let{debugLog:c}=Z,h,M="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:qt}=c;h=c.tag,M=(it=qt==null?void 0:qt[0])!=null?it:M,ne=(Ft=(At=qt==null?void 0:qt[1])!=null?At:qt==null?void 0:qt[0])!=null?Ft:ne}let Ie=h?`: ${h}`:"";io.add(A.events.log$.subscribe(qt=>{console.debug(`%c sdk${Ie} `,`background:${M};`,`sdk component: ${qt.component}`,qt.message)})).add(We.log$.subscribe(qt=>{console.debug(`%c ui${Ie} `,`background:${ne};`,`ui component: ${qt.component}.`,qt.message)}))},$n=()=>{io.unsubscribe()},Et=(c,h)=>{ue.log("start camera manual rotation",{mx:c,my:h}),A.startCameraManualRotation(c,h)},Bt=(c=!1)=>{ue.log("stop camera manual rotation",{immediate:c}),A.stopCameraManualRotation(c)},W=(c,h,M)=>{ue.log("move camera focus px",{xpx:c,ypx:h,dt:M}),A.moveCameraFocusPX(c,h,M)},kt=()=>{A.holdCamera()},si=()=>{A.releaseCamera()},lt=Ar(A.info.position$.getValue(),c=>{let h,M,ne=()=>{let Ie=A.info.playbackState$.getValue(),it=A.info.isLive$.getValue(),At=A.info.duration$.getValue(),Ft=A.info.position$.getValue();if(Ie&&[fi.PlaybackState.PLAYING,fi.PlaybackState.PAUSED].includes(Ie)){let qt=it?Ft-At:A.getExactTime();qt!==M&&c(qt),M=qt}h=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(h)}),Ct=li(A.info.playbackState$),Qt=li(A.info.currentBuffer$),dt=li(A.info.isEnded$),Ai=li(A.info.isLive$),ki=Z.features.playbackRate?li(A.info.canChangePlaybackSpeed$):Ar(!1),nn=li(A.info.liveBufferTime$),Lo=li(A.info.volume$),bo=li(A.info.muted$),Fi=Nu(A.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===fi.PredefinedQualityLimits.TRAFFIC_SAVING)),A.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.TRAFFIC_SAVING),fr=Nu(A.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===fi.PredefinedQualityLimits.HIGH_QUALITY)),A.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.HIGH_QUALITY),oo=li(A.info.autoQualityLimitingAvailable$),$o=li(A.info.availableQualities$),Hi=li(A.info.availableQualitiesFps$),rn=li(A.info.chromecastState$),sn=li(A.info.chromecastDeviceName$),Gn=li(A.info.currentFormat$),mr=li(A.info.throughputEstimation$),Mr=li(A.info.videoBitrate$),bs=li(A.info.intrinsicVideoSize$),ts=li(A.info.duration$),is=li(A.info.isAudioAvailable$),Yn=()=>{ri&&clearTimeout(ri),ri=null},an=vi([ts,Ai],([c,h])=>h?-c:c),Mo=vi([Ct],([c])=>c===fi.PlaybackState.PLAYING),ln=li(A.info.atLiveEdge$),jn=li(A.info.atLiveDurationEdge$),Rn=li(A.info.position$),Vr=vi([Rn,ts],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),Rr=vi([rn],([c])=>c===fi.ChromecastState.CONNECTED),os=li(A.info.availableVideoStreams$),vr=Z.features.audioLanguages?li(A.info.availableAudioStreams$):Ar([]),no=li(A.info.currentVideoStream$),gr=li(A.info.currentAudioStream$),Xn=c=>{c.language&&qf(c.language),A.setVideoStream(c)},yn=(c,h)=>{A.setAudioStream(c),Fo(h)&&(c.language&&qf(c.language),Z.features.userVideoPrefs&&i&&Yf(Z.userSalt,String(i),{audioTrackId:c.id}))},ro=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(ne=>"isDefault"in ne&&ne.isDefault)),Z.features.userVideoPrefs&&i){let ne=Hu(Z.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Ie=c.find(it=>it.id===ne.audioTrackId);h=Ie!=null?Ie:h}}let M=T_();return M&&(h!=null||(h=c.find(({language:ne})=>M===ne))),h!=null||(h=c.at(0)),h},Nr=c=>{ue.log("change audio stream",{id:c});let h=A.info.availableAudioStreams$.getValue().find(M=>M.id===c);h&&yn(h,!0)},Nn=!1;Ye.add(A.info.availableAudioStreams$.subscribe(c=>{if(!Nn&&c.length){let h=ro(c);h&&(A.setAudioStream(h),Nn=!0)}})),vr.subscribe(c=>{var h;(h=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||h.call(a,c.map(({label:M="",id:ne="",language:Ie=""})=>({label:M,language:Ie,id:ne})))}),gr.subscribe(c=>{var h;return c&&((h=a==null?void 0:a.onAudioStreamChanged)==null?void 0:h.call(a,c.id))});let gt=!1;Ye.add(A.info.availableVideoStreams$.subscribe(c=>{if(!gt&&c.length){let h=ro(c);h&&(A.setVideoStream(h),gt=!0)}}));let ei=ae(void 0),Zn=li(A.info.isAutoQualityEnabled$,c=>c&&ei.set(void 0)),hr=li(A.info.currentQuality$,()=>ei.set(void 0)),Or=vi([ei,hr],([c,h])=>c!=null?c:h),xn=vi(Gn,c=>c!==fi.VideoFormat.MPEG),_r=vi([$o,Hi,Zn,Or,xn],([c,h,M,ne,Ie])=>{let it=[];Ie&&it.push({value:"auto",displayValue:st("auto_quality_option"),selected:M});let At=c.filter(Ft=>!(0,at.isInvariantQuality)(Ft));for(let Ft of At){let qt=h[Ft];it.push({value:Ft,displayValue:`${Ft}${qt?mb(qt):""}`,selected:M?!1:Ft===ne})}return it}),Vo=li(A.info.currentPlaybackRate$),dn=vi([Vo,ln,jn],([c,h,M])=>{let ne=M||S?1:Z.controls.playbackRateMin,Ie=h?1:Z.controls.playbackRateMax,it=Z.controls.playbackRateStep,At=[];for(let Ft=ne;Ft<=Ie;Ft+=it)At.push({value:Ft,displayValue:Ft===1?st("playback_rate_1"):st("playback_rate",{multiplier:Ft.toString(10)}),selected:c===Ft});return At}),Ro=()=>({displayValue:st("subtitles_off"),value:Vn,language:""}),Jn=ae(Ro()),Ui=vi([Jn,It],([c],h)=>{c.value===Vn?h(Ro()):h(c)}),No=Z.features.subtitles?li(A.info.availableTextTracks$):Ar([]),er=m_(),Dr=vi([No,Ui],([c,h],M)=>{var it;let ne=[],Ie=c.find(({id:At})=>At===h.value);if(Ie!=null&&Ie.url){let[,At]=(it=er.find(Ie.url))!=null?it:[];if(At){M(At);return}Ke.download(Ie.url).then(Ft=>{if(!Ft||Ke.isDestroyed())return;let qt=new vb,Us=Ie.language;if(Us){let _$=!!Ie.isAuto,b$=qt.parse(Ft,Us);ne.push({lang:Us,subtitles:b$,isAuto:_$,id:Ie.id})}er.add(Ie.url,ne),he(Ui).value===h.value&&M(ne)}).catch(Ft=>{var qt;(qt=j==null?void 0:j.oneStat)==null||qt.logError({errorType:"Subtitles download",fatal:!1}),Y==null||Y.report(Ft,{errorType:"Subtitles download",fatal:!1})})}M(ne)}),so=vi([Vo,Mo,Ui],([c,h,M],ne)=>{let At;if(A.info.isLive$.getValue()&&h&&M.value!==Vn){let qt=()=>{let Us=1e3/(3*c);At=setTimeout(qt,Us),ne(Date.now())};return qt(),()=>clearTimeout(At)}}),On=vi([No,Ui],([c,h])=>{if(!c.length)return[];let M=[];for(let{language:ne,isAuto:Ie,id:it}of c){let At=ne&&bc(ne);ne&&At&&M.push({displayValue:Ie?st("subtitles_auto",{language:At}):At,value:it,selected:(h==null?void 0:h.value)===it,isAuto:Ie,language:ne})}return M.length?(M.unshift({...Ro(),selected:(h==null?void 0:h.value)===Vn}),M):[]}),Oo={available:[],prev:[]},Br=()=>{var h,M;let c=A.experimental.getCurrentTime$.getValue();return(M=(h=c==null?void 0:c())!=null?h:Se==null?void 0:Se.currentTime)!=null?M:0},tr=vi([lt,Ui,Dr,so],([c,h,M,ne])=>{var it;let Ie=A.info.isLive$.getValue();if(Ie&&Oo.prev!==M){let At=M.find(({id:qt})=>qt===h.value),Ft=Oo.prev.find(({id:qt})=>qt===h.value);if(At){let qt={...At,subtitles:[...(it=Ft==null?void 0:Ft.subtitles)!=null?it:[],...At.subtitles]};Oo.available=[qt],Oo.prev=M}}if(h&&h.value!==Vn){let At=Ie?Br():c,Ft=Ie?Oo.available:M;return _b(At,h,Ft,Ie)}}),Dn=vi([tr],([c])=>c!=null&&c.texts?c.texts:[]);Ye.add(Ui.subscribe(c=>{var h,M;if(c.value===Vn)(h=a==null?void 0:a.onSubtitleOff)==null||h.call(a);else{let ne=Object.entries(dp).find(([Ie,it])=>it===c.displayValue);(M=a==null?void 0:a.onSubtitleOn)==null||M.call(a,ne?ne[0]:"",c.value)}}));let Fr=ae(!0),wt=vi([Qt,an,Rn,nn],([c,h,M,ne])=>{var Ft;let Ie=(Ft=c==null?void 0:c.end)!=null?Ft:0;if(!ne)return Ie/h;let At=-M+ne-h;return(Ie-At)/h}),$t=li(A.info.availableSources$),ao=vi([$t],([c])=>Object.keys((c==null?void 0:c[fi.VideoFormat.MPEG])||{}).length>0),Li=()=>{var M,ne,Ie;let c=Object.keys(((ne=(M=A.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ne[fi.VideoFormat.MPEG])||{}),h=(0,at.getHighestQuality)(c)||at.VideoQuality.Q_144P;return(Ie=ee.sources[fi.VideoFormat.MPEG])==null?void 0:Ie[h]},lo=()=>{var h;let c=Li();if(c)ue.log("download video",{url:c}),u_(c,((h=ee==null?void 0:ee.meta)==null?void 0:h.title)||"video");else{let M="There is no URL for download video";ue.log("download video",{message:M}),fe({message:M})}},Do=()=>{fe({message:"toggle muted"});let c=A.info.muted$.getValue();A.info.volume$.getValue()===0&&!c?br(ir(),!1):or(!c,!1)},Bo=()=>{var c;if(Wt.ui.settingsMenu.visible$.set(!1),!he(Wt.ui.settingsSubMenu.visible$)){let h=he(Wt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&h){let ne=Jl(h),Ie={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Ie,name:"settings"})}}ue.log("close settings menu")},co=async(c,h=()=>Promise.resolve())=>{var Ie;Wt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Wt.ui.settingsMenu.visible$.set(!0),await h();let M=he(Wt.ui.settingsMenu.ref$),ne=va();if((Ie=a==null?void 0:a.uiInfo)!=null&&Ie.onSettingsMenu&&M&&ne){let At=Jl(M),Ft=Ls(M,ne);a.uiInfo.onSettingsMenu({visible:!0,size:At,position:Ft,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})},Ci=(c,h=!1)=>{var it;Wt.ui.settingsSubMenu.visible$.set(!1);let M=he(Wt.ui.settingsMenu.ref$),ne=va(),Ie=he(Wt.ui.settingsMenu.visible$);if((it=a==null?void 0:a.uiInfo)!=null&&it.onSettingsMenu&&M&&ne)if(Ie&&!h){let Ft=Jl(M),qt=Ls(M,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:qt,name:"settings"})}else{let Ft=Jl(c),qt={top:0,left:0,bottom:0,right:0},Us=he(Wt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ft,position:qt,name:Us})}ue.log("close settings sub menu")},Hr=(c,h)=>{var ne;Wt.ui.settingsSubMenu.visible$.set(!0),Wt.ui.settingsSubMenu.ref$.set(h),Wt.ui.settingsSubMenu.name$.set(c);let M=va();if((ne=a==null?void 0:a.uiInfo)!=null&&ne.onSettingsMenu&&h&&M){let it=Jl(h),At=Ls(h,M);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:it,position:At})}ue.log("open settings sub menu",{name:c})},ir=()=>{var h;let c=Math.max(Z.volumeMinRestore,(h=Ou())!=null?h:0);return c===0?Z.volumeDefault:c},Fo=c=>{let h=Z.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},br=(c,h)=>{let M=c===0?ir():c,ne=A.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Ie=!l||$e.is("ads");ne&&c>0&&Ie&&(ne=!1,Fo(h)&&Wf(!1)),A.setVolume(c,ne),Ce.setVolume(c),Fo(h)&&Bf(M)},or=(c,h)=>{let M=A.info.volume$.getValue();fe({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ne=$e.is("ads");if(A.setMuted(c,ne),Ce.setVolume(c?0:M),Fo(h)&&(!ne||!c)&&Wf(c),!c&&M===0){let Ie=ir();A.setVolume(Ie),Fo(h)&&Bf(Ie),Ce.setVolume(Ie)}},$r=ae(!1),wn=c=>{var h,M;ue.log("set looped",{isLooped:c}),$r.set(c),A.setLooped(c),(M=(h=a==null?void 0:a.uiInfo)==null?void 0:h.onLoopedChanged)==null||M.call(h,c)};wn(oe);let cn=()=>{var c,h;(h=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},Ur=(c,h=!1)=>{var M;fe({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),Wt.ui.autoplayNextEnabled$.set(c),E_(c),h&&((M=a==null?void 0:a.onSetAutoplayNextEnabled)==null||M.call(a,c))},un=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),Wt.ui.timerNextVideoRunning$.set(c)},ns=(c=!0)=>{var M;let h=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{h=(M=a==null?void 0:a.onPrevVideoClick)==null?void 0:M.call(a)}catch(ne){fe({message:"onPrevVideoClick callback failed to execute"})}X(!0),h&&G()},qe=(c=!0)=>{var M;let h=!0;if(c&&(a!=null&&a.onNextVideoClick))try{h=(M=a==null?void 0:a.onNextVideoClick)==null?void 0:M.call(a)}catch(ne){fe({message:"onNextVideoClick callback failed to execute"})}X(!1),h&&le()},Lt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},_i=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},So=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},To=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Ho=()=>{A.prepare()},uo=()=>{(0,at.assertNonNullable)(Wt);let c=he(Wt.ui.controls.disabledControls$),h=he(Wt.playerPhase),M={playerPhase:h,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(fe({message:"toggle play"}),h==="ads"){M.action="play",ue.log("toggle adman play",M),Ce.togglePlay();return}let ne=()=>{var it;fe({message:"toggle play, call player.play"}),M.action="play",A.play(),(it=a==null?void 0:a.onPlay)==null||it.call(a)},Ie=()=>{var it;fe({message:"toggle play, call player.pause"}),M.action="pause",A.pause(),(it=a==null?void 0:a.onPause)==null||it.call(a)};if(A.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),Ii.next(),Yt.next(hs.SeekAction.REWIND),S){R==null||R();return}A.seekTime(0),ne()}else A.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING?ne():Ie();ue.log("toggle play",M)},Mi=(c,{changeReason:h="default",appliesTo:M="to-video"}={},ne)=>{fe({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),A.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ie}=Z.features;Du(),c!=="auto"?(Ie?(Bu({type:"exact_quality",quality:c,videoId:i},M),A.setPredefinedQualityLimits(fi.PredefinedQualityLimits.UNKNOWN)):Ff(i,c),ei.set(c),A.setQuality(c)):Ie&&h==="default"&&(Wo("auto_quality",M,ne),he(Fi)&&Uo(!1,void 0,ne),he(fr)&&zo(!1,void 0,ne))},Uo=(c,h="as-default",M)=>{fe({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?fi.PredefinedQualityLimits.TRAFFIC_SAVING:fi.PredefinedQualityLimits.UNKNOWN;Z.features.qualityDetailsSubMenuEnabled?(yo(ne,h,M),Yd(!1)):(A.setPredefinedQualityLimits(ne),Fo(M)&&Yd(c))},zo=(c,h="as-default",M)=>{fe({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),yo(c?fi.PredefinedQualityLimits.HIGH_QUALITY:fi.PredefinedQualityLimits.UNKNOWN,h,M)},yo=(c,h,M)=>{c!==fi.PredefinedQualityLimits.UNKNOWN&&(he(oo)&&!he(Zn)&&Mi("auto",{appliesTo:h,changeReason:"limit-changed"},M),Wo(c,h,M)),A.setPredefinedQualityLimits(c)},Wo=(c,h,M)=>{Fo(M)&&(Bu({type:c,videoId:i},h),h==="as-default"&&Bu({type:c,videoId:i},"to-video"))},pn=(c,h=!0)=>{ue.log("set playback rate",{playbackRate:c}),A.setPlaybackRate(c),Z.features.saveRate&&ge&&!A.info.isLive$.getValue()&&h&&C_(c)},yr=()=>{let c=he(dn),h=c.findIndex(({selected:ne})=>ne);if(h===c.length-1)return;let M=c[h+1];pn(M.value)},xr=()=>{let c=he(dn),h=c.findIndex(({selected:ne})=>ne);if(h===0)return;let M=c[h-1];pn(M.value)},wr=(c={...Ro(),selected:!1},h)=>{ue.log("set subtitles",{...c}),c.value!==Vn&&St.next(c.isAuto?c.value+"_auto":c.value),bt.next({enabled:c.value!==Vn,lang:c.language,auto:!!c.isAuto}),Jn.set(c),Fo(h)&&(Gf(c.value===Vn?void 0:c.language),Z.features.userVideoPrefs&&i&&Yf(Z.userSalt,String(i),{subtitleTrackId:c.value===Vn?void 0:c.value}))},rs=c=>{ue.log("toggle subtitles");let h=he(Ui);(h==null?void 0:h.value)===Vn?Xe(c):zt(c)},ss=(c,h)=>{ue.log("change subtitle",{enabled:c}),c?Xe(!0,h):zt(!0)},Xe=(c,h)=>{ue.log("subtitle on");let M=he(On),ne=he(Pe),Ie=Te!=null?Te:ne,it;h&&(it=M.find(At=>At.value===h)),it!=null||(it=M.filter(At=>At.value!==Vn).find(At=>At.language===Ie)),wr(it!=null?it:M[1],c)},zt=c=>{ue.log("subtitle off"),wr(void 0,c)};Ye.add(A.info.availableTextTracks$.subscribe(c=>{var M;function h(){let ne=[];for(let{language:Ie,isAuto:it,id:At}of c){let Ft=Ie&&bc(Ie);Ie&&Ft&&ne.push({id:At,language:Ie,title:it?st("subtitles_auto",{language:Ft}):Ft})}return ne}(M=a==null?void 0:a.onAvailableSubtitlesChanged)==null||M.call(a,h())}));let xi=ae(!0),Ko=c=>{xi.set(c)},po=(c,h,M=!0)=>{var ne;if(fe({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:h,forcePrecise:M}),Yt.next(h),A.info.isLive$.getValue()){let Ie=A.info.duration$.getValue(),it=Math.min(0,Ie+c);A.seekTime(it,M)}else{if(I!=null&&I.getValue())return;A.info.isEnded$.getValue()&&(fe({message:"seek after ended, call callbacks.onPlay"}),(ne=a==null?void 0:a.onPlay)==null||ne.call(a)),A.seekTime(sg(c),M)}},Sr=c=>{fe({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),po(c,hs.SeekAction.EPISODE,!0)},fn=(c,h,M=!1)=>{fe({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:h});let ne=he(an)*c;po(ne,h,M)},Tr=c=>{fe({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),Yt.next(hs.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-c:c)},Os=c=>{var ne,Ie;let h=(ne=c.max)!=null?ne:"none",M=(Ie=c.min)!=null?Ie:"none";fe({message:`set auto quality limitation. Max: ${h}. Min: ${M}`}),ue.log("set auto quality limits",{max:h,min:M}),A.setAutoQualityLimits(c)},Sn=c=>{fe({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),po(c,hs.SeekAction.EPISODE,!0)},Ds=c=>{fe({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),A.setPlaybackRate(c)},nr=ae(!1),as=ae(!1),pt=vi([an],([c])=>!!m&&c>=Z.suitableDurationForUsingRichSeek&&Z.features.useRichSeek&&!S),ci=((m==null?void 0:m.frameWidth)||0)>=((m==null?void 0:m.frameHeight)||0),qo=vi([Tt],([c])=>{let h=ed(c);return ci?!h:h});Ye.add($e.subscribe(c=>{c!=="video"&&nr.set(!1)}));let me=ae(void 0),ft=ae(!1),Xt=c=>{fe({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),ft.set(!0),wi(c)},wi=c=>{me.set(c)},zi,oi,ti=()=>{me.set(void 0),ft.set(!1)},fo=()=>{clearTimeout(oi),clearTimeout(zi),zi=window.setTimeout(()=>{ti()},500),Se==null||Se.removeEventListener("seeked",fo)},Bn=(c,h=!1)=>{fe({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),fn(c,hs.SeekAction.SLIDER,h),he(Wt.ui.isMobile)&&he(Wt.state.currentFormat$)===fi.VideoFormat.HLS?(Se==null||Se.addEventListener("seeked",fo),oi=window.setTimeout(()=>{fo()},300)):ti()},Fn=vi([lt,an,me],([c,h,M],ne)=>{ne((0,at.isNonNullable)(M)?M*h:c)}),Ei=ae(!1),vd=()=>{Ei.set(!0)},ll=()=>{Ei.set(!1)},Bs=vi([Jt],([{width:c}],h)=>{let M=lb(c);h(M)}),da=D.filter(c=>p_(c)),ca=vi([Bs,Le],([c,h])=>h?da.filter(M=>!M.hideOnMobile):da.filter(M=>{var ne;return!((ne=M.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),mn=ae(D.filter(c=>f_(c))),dl=vi([mn,Bs],([c,h])=>c.filter(M=>{var ne;return!((ne=M.hideOnDesktopGridTypes)!=null&&ne.includes(h))})),ua=vi([dl,ca],([c,h])=>[...Z.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...Z.features.additionalButtons?h.map((M,ne)=>{var Ie;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Ie=M.ariaLabel)!=null?Ie:M.tooltip,tooltipText:M.tooltip}}):[]]),zr=ae(U),ls=vi([zr],([c])=>Z.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?{...h,onClick:h.onChangeEnabled}:h):[]),Fs=(c,h)=>{let M=he(mn).map(ne=>ne.id!==c?ne:{...ne,...h});mn.set(M)},pa=c=>{let h=he(mn);if(h.some(M=>M.id===c.id)){fe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),mn.set(h)},cl=c=>{let h=he(mn);if(!h.some(M=>M.id===c)){fe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),mn.set(h)},ul=c=>{Yt.next(hs.SeekAction.LIVE),fe({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),A.setLiveLowLatency(c)},gd=(c,h)=>{let M=he(zr).map(ne=>ne.id!==c?ne:{...ne,...h});zr.set(M)},pl=c=>{let h=he(zr);if(h.some(M=>M.id===c.id)){fe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),zr.set(h)},fl=c=>{let h=he(zr);if(!h.some(M=>M.id===c)){fe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),zr.set(h)},Cr=ae(z),hd=vi([Cr],([c])=>Z.features.additionalContextMenuItems?c:[]),fa=(c,h)=>{let M=he(Cr).map(ne=>ne.id!==c?ne:{...ne,...h});Cr.set(M)},ml=c=>{let h=he(Cr);if(h.some(M=>M.id===c.id)){fe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Cr.set(h)},ct=c=>{let h=he(Cr);if(!h.some(M=>M.id===c)){fe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),Cr.set(h)},mt=vi([Le,J],([c,h],M)=>{M(c&&h)}),Wi=()=>{Yt.next(hs.SeekAction.LIVE),fe({message:"switch to active live"}),ue.log("switch to active live"),A.seekTime(0),A.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING&&Wt.actions.internal.togglePlay()},Qo=()=>{ue.log("skip adman"),Ce.skip()},Ki=(c=!0)=>{var ne;(0,at.assertNonNullable)(Wt),fe({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),vt.set("video"),c&&A.play(),l&&or(!0,!0);let h=(ne=he(Je))==null?void 0:ne.muted,M=!A.info.muted$.getValue();h!==void 0&&!M&&or(h,!0),Je.set(void 0)},bi=()=>{(0,at.assertNonNullable)(Wt),fe({message:"switch from video to ads"}),ue.log("switch from video to ads"),Wt.actions.internal.pause(),$i(),vt.set("ads")},Vi=c=>{(0,at.assertNonNullable)(Wt);let h=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:h}),vt.set(h)},ma=c=>{(0,at.assertNonNullable)(Wt);let h=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:h}),vt.set(h)},vl=c=>{(0,at.assertNonNullable)(Wt);let h=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:h}),vt.set(h)},Np=()=>((0,at.assertNonNullable)(Wt),ue.log("get debug text data"),d_(A,ee,Wt,Re.getTraceId())),Xc=()=>((0,at.assertNonNullable)(Wt),JSON.stringify(Re.getFinishedSpans())),Zc=()=>((0,at.assertNonNullable)(Wt),c_(A,ee,Wt)),va=()=>Se,Op=()=>{fe({message:"toggle chromecast"}),ue.log("toggle chromecast"),A.toggleChromecast()},Hs=c=>{var M;if((0,at.assertNonNullable)(Wt),A.info.isEnded$.getValue())return;let h=!c;if(he(Wt.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${h}`}),ue.log("pause ads",{internalCall:h}),Ce.pause();return}fe({message:`pause video, internalCall: ${h}`}),ue.log("pause video",{internalCall:h}),h&&((M=a==null?void 0:a.onPause)==null||M.call(a)),A.pause()},gl=c=>{var M;(0,at.assertNonNullable)(Wt);let h=!c;if(he(Wt.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${h}`}),ue.log("play ads",{internalCall:h}),Ce.play();return}fe({message:`play video, internalCall: ${h}`}),ue.log("play video",{internalCall:h}),h&&((M=a==null?void 0:a.onPlay)==null||M.call(a)),A.play()},Jc=c=>{(0,at.assertNonNullable)(Wt);let h=!c;if(he(Wt.playerPhase)==="ads"){fe({message:"player cannot be stopped during ads via external method"});return}fe({message:`player will be stopped, internalCall: ${h}`}),E==null||E()},eu=(c,h)=>{(0,at.assertNonNullable)(Wt),fe({message:`first start, show ads: ${c}, internalCall: ${!h}`}),ue.log("first start",{showAds:c,external:h}),c?vt.set("ads"):(vt.set("video"),h?A.play():Wt.actions.internal.togglePlay())},hl=()=>(fe({message:"getting time codes"}),p),tu=()=>{let c=hl();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue();return c.find(M=>M.time>h)},Dp=c=>{let h=c;h||(h=tu());let M=A.info.position$.getValue();ue.log("seek to next episode",{currentTime:M,...h}),h&&(fe({message:"seek to next episode"}),po(h.time,hs.SeekAction.EPISODE,!0))},iu=()=>{let c=hl();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue(),M=c.findIndex(Ie=>Ie.time>h),ne=M===-1?c.length-2:M-2;if(!(ne<0))return c[ne]},Fe=c=>{let h=c;h||(h=iu());let M=A.info.position$.getValue();ue.log("seek to prev episode",{currentTime:M,...h}),h&&(fe({message:"seek to prev episode"}),po(h.time,hs.SeekAction.EPISODE,!0))},mi=()=>(fe({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",{...m}),m),Go=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())),ue.log("toggle picture in picture",{isActive:c,action:h})},ga=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),Tt.update(h=>h+c)},Co=ae([]);C==null||C.subscribe(c=>{let h=[];for(let M=0;M<c.length;M++){let{range:[ne,Ie],subjects:it}=c[M];M===0&&ne!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:ne/1e3,text:"",interactive:!0,completed:Z.features.interactiveTimeOpenUri?!it.length||it.every(At=>At.isRemoved):!it.length}),Ie!==1/0&&h.push({time:Ie/1e3,text:"",interactive:!1,completed:!0})}Co.set(h)});let c$=ae(!1);I==null||I.subscribe(c=>{c&&he(ft)&&ti()});let sg=c=>{if(!S)return c;let h=he(Co),M=he(an),Ie=he(Rn)/M,it=h.find(At=>At.interactive&&!At.completed&&At.time>Ie);return typeof(it==null?void 0:it.time)=="number"?Math.min(c,it.time-.05):c},u$=()=>{Wt.ui.episodes.panelOpened$.set(!1)},p$=()=>{ue.log("destroy store"),clearTimeout(oi),clearTimeout(zi),Ye.unsubscribe(),io.unsubscribe(),A.destroy(),Ce.destroy(),j==null||j.destroy(),Y==null||Y.destroy(),be.unsubscribe(),ii==null||ii.disconnect(),ii=null,Ke.destroy()},f$=vi([ln,$e,ki],([c,h,M])=>f.features.doubleForwardAvailable&&!c&&h==="video"&&M),Bp=ae(!1),ag=2,ou=null,lg=c=>{if(!he(Mo)&&c)return;let h=A.info.currentPlaybackRate$.getValue();c?h!==ag&&(ou=h,pn(ag,!1),Bp.set(!0)):(ou&&pn(ou,!1),Bp.set(!1),ou=null)};$e.subscribe(c=>{c!=="video"&&lg(!1)});let m$=()=>{Hs(!1),nr.set(!0)},v$=()=>{gl(!1),nr.set(!1)},Fp=!1,g$=()=>{as.set(!0),Fp=A.info.playbackState$.getValue()===fi.PlaybackState.PLAYING,Hs(!1)},h$=()=>{as.set(!1),!he(nr)&&Fp&&gl(!1),Fp=!1};A.events.playing$.subscribe(()=>{he(nr)&&Hs(!1)});let Wt={interfaceLanguage$:Pe,isCyrillicRelatedInterface$:Me,initVideo:_o,videoId:i,isClip:o,playerPhase:$e,vsid:Ue,state:{positionExact$:lt,positionWithScrubbing$:Fn,duration$:an,playbackState$:Ct,isPlaying$:Mo,isLoaderVisible:hi,bufferedProgress$:wt,isLive$:Ai,canChangePlaybackSpeed$:ki,isActiveLive$:ln,isOldestAvailableLive$:jn,isRewindableLive$:Vr,isEnded$:dt,muted$:bo,volume$:Lo,trafficSavingEnabled$:Fi,highQualityEnabled$:fr,autoQualityLimitingAvailable$:oo,availableVideoStreams$:os,availableAudioStreams$:vr,videoStream$:no,audioStream$:gr,currentQuality$:Or,isAutoQualityEnabled$:Zn,availableQualities$:_r,currentPlaybackRate$:Vo,availablePlaybackRates$:dn,currentSubtitle$:Ui,availableTextTracks$:No,availableSubtitlesList$:On,currentSubtitleCaptions$:Dn,isAutoSubtitleCaptionVisible$:Fr,chromecastState$:rn,chromecastDeviceName$:sn,chromecastConnected$:Rr,currentFormat$:Gn,throughputEstimation$:mr,videoBitrate$:Mr,videoSize$:bs,errorLog$:ye,crashed$:J,isAudioAvailable$:is,isAudioDisabled:!!l,canDownload:Z.features.download&&!!d,availableSources$:$t,hasMpegSources$:ao,isInteractive:S,showInteractiveGraph:Z.features.interactiveGraph,showSeekToInteractive:Z.features.seekToInteractive,showPlayPrevChapter:Z.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Z.features.interactiveTimeIndicator&&!!he(Co).length,interactiveEpisodes$:Co,isInteractiveTime$:I?li(I):ae(!1),isInteractiveExpectation$:c$,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:O,looped$:$r,loadedMetadata$:Zt,isAutoQualityAvailable$:xn,previewTrackActive:nr,previewTrackDragInProgress:as},ui:{t:st,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:D.length?D.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:nt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Vt,isFullscreenOpenedByKeyboard:et,rotateAlpha:Tt,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:Jt,isMobile:Le,mobileNotReportControlHidden$:mt,icon3DVideoVisible:ae(!1),scrubbingInProgress:ft,volumeChangingInProgress:Ei,is3DVideo:Dt,currentGridType$:Bs,additionalButtonsDeprecated$:ca,additionalDesktopControlPanelRightButtons$:ua,additionalSettingsMenuItems$:ls,additionalContextMenuItems$:hd,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:xi,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$:Bp,doubleForwardAvailable$:f$,previewTrackNotificationVisible:ae(!1),previewTrackActive:nr,previewTrackDragInProgress:as,previewTrackAvailable:pt,isPreviewTrackHorizontallyAligned:qo},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Ne,slotsApi:De},actions:{internal:{preload:Ho,firstStart:c=>eu(c,!1),play:()=>gl(!1),pause:()=>Hs(!1),togglePlay:uo,toggleMuted:Do,openSettingsMenu:co,closeSettingsMenu:Bo,openSettingsSubMenu:Hr,closeSettingsSubMenu:Ci,setVolume:c=>br(c,!1),setMuted:c=>or(c,!1),startVolumeChanging:vd,stopVolumeChanging:ll,setVideoStream:Xn,setAudioStream:c=>yn(c,!1),setQuality:(c,h)=>Mi(c,h,!1),setTrafficSavingEnabled:(c,h)=>Uo(c,h,!1),setHighQualityEnabled:(c,h)=>zo(c,h,!1),setPlaybackRate:pn,incrementPlaybackRate:yr,decrementPlaybackRate:xr,setSubtitle:c=>wr(c,!1),toggleSubtitle:()=>rs(!1),togglePictureInPicture:Go,startScrubbing:Xt,progressScrubbing:wi,completeScrubbing:Bn,toggleChromecast:Op,switchToActiveLive:Wi,switchFromAdsToVideo:Ki,switchFromVideoToAds:bi,skipAd:Qo,setLiveWaitingStart:Vi,setLiveWaitingRecover:ma,setLiveWaitingRecord:vl,getDebugTextData:Np,getTraceTextData:Xc,getDebugPanelData:Zc,getVideoElement:va,seekTime:(c,h,M)=>po(c,h,M),clearDelayedBufferingCheckTimeout:Yn,seekEpisodeStartTime:Sr,seekToPercent:fn,getNextEpisode:tu,seekToNextEpisode:Dp,getPrevEpisode:iu,seekToPrevEpisode:Fe,startLogging:on,stopLogging:$n,startCameraManualRotation:Et,stopCameraManualRotation:Bt,moveCameraFocusPX:W,holdCamera:kt,releaseCamera:si,getVideoEpisodes:hl,getPreviewThumbsData:mi,downloadVideo:lo,addLanguage:jf,setLanguage:xe,nextMovie:ut,videoRotate:ga,correctSeekTimeToInteractive:sg,replayInteractive:R,setLooped:wn,reportProblem:cn,setAutoplayNextEnabled:Ur,setTimerNextVideoRunning:un,prevVideoClick:ns,nextVideoClick:qe,nextVideoAnnouncementShow:Lt,nextVideoAnnouncementClick:_i,nextVideoAnnouncementAuto:So,nextVideoAnnouncementCancel:To,checkFullscreenSupport:Ot,changeDoubleForwardOn:lg,closePreviewTrack:v$,previewTrackOpened:m$,previewTrackDragStarted:g$,previewTrackDragFinished:h$},external:{firstStart:c=>eu(c,!0),play:()=>gl(!0),pause:()=>Hs(!0),stop:()=>Jc(!0),seekTime:c=>Tr(c),seekEpisodeStartTime:c=>Sn(c),setPlaybackRate:c=>Ds(c),setAutoQualityLimits:c=>Os(c),setMuted:c=>or(c,!0),toggleSubtitle:()=>rs(!0),changeSubtitle:ss,setVolume:c=>br(c,!0),returnFocusToEpisodes:u$,updateAdditionalSettingsItem:gd,addAdditionalSettingsItem:pl,removeAdditionalSettingsItem:fl,updateAdditionalContextItem:fa,addAdditionalContextItem:ml,removeAdditionalContextItem:ct,updateAdditionalButton:Fs,addAdditionalButton:pa,removeAdditionalButton:cl,setLiveLowLatency:ul,hideControls:()=>Ko(!1),showControls:()=>Ko(!0),setQuality:c=>Mi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Uo(c,"to-video",!0),setHighQualityEnabled:c=>zo(c,"to-video",!0),changeAudioStream:Nr}},callbacks:a,setUiCallbacks:c=>{Be={...c}},getAdmanWrapper:()=>Ce,getLogger:()=>We,getPlayer:()=>A,destroy:p$};return Wt};function qn(t,e,i,o){var p;let r=(p=e[i])==null?void 0:p.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=Ls(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Vx=["disabledControls$","additionalButtons"],Rx=["interactiveTimeIndicator"],id=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!Vx.includes(r)){let l=o||Rx.includes(r);s.set(qn(t,i,r,l))}}};var up=async(t,e,i)=>{await ho(),e&&i&&(i.focus(),t.set(!1))};var Nx=Ee('<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 Bm(t){Ze(t,{children:(e,i)=>{var o=Nx();_(e,o)},$$slots:{default:!0}})}function Fm(t,e){F(e,!0);let[i,o]=Ve(),r=()=>x(a,"$contextMenuVisible$",i),s=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=ve(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,p=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,f=d.ui.contextMenu.btnRef$,b=K(void 0);Oe(()=>{n(b)&&Pt(()=>{f.set(n(b))})});let y=I=>{let R=ia(I),E=Z_(n(b));m.set(E),u.set(R),a.set(!r())},$=()=>{p.set(!0)},S=()=>{p.set(!1)},C=v(()=>r()?"opened":"");Ut(t,{get className(){return n(C)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:y,focus:$,blur:S,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(I){N(b,I,!0)},children:(I,R)=>{Bm(I,{})},$$slots:{default:!0}}),H(),o()}var Ox=t=>{t.stopPropagation()},Dx=L("<div><!> <div></div> <div></div></div>"),Bx={hash:"s-26",code:'.interactive-episode-icon-animated.s-26{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-26{height:28px;width:28px}.invisible.s-26{opacity:0;visibility:hidden}.fullscreen.s-26:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-26{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-26{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-26{right:16px;top:40px}}@keyframes s-26-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-26{animation:s-26-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-26{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-26{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-26{display:none}'};function yc(t,e){var Y;F(e,!0),q(t,Bx);let[i,o]=Ve(),r=()=>x(S,"$isMobile",i),s=()=>x(E,"$areControlsVisible",i),l=()=>x(O,"$currentGridType$",i),d=()=>x(I,"$isInteractiveTime$",i),a=()=>x($,"$interactiveControlsOpacity$",i),u=()=>x(R,"$showInteractiveTimeIndicatorTooltip$",i),p=()=>x(C,"$isFullscreen",i),m=g(e,"ref",15,void 0),f=K(void 0),b=ve(),y=wo(),{interactiveControlsOpacity$:$}=y,S=b.ui.isMobile,C=b.ui.isFullscreen,I=b.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,E=b.ui.controlsVisible,P=(Y=b.callbacks)==null?void 0:Y.onInteractiveTimeIndicatorClick,O=b.ui.currentGridType$,D=v(()=>!r()&&s()),U=v(()=>ks(l(),"s")),z=v(()=>!d()||!!a()||n(D)),G=K(!1);Oe(()=>{N(G,n(z),!0)});let le=()=>{N(G,!0)},X=()=>{var ie;oe(),(ie=n(f))==null||ie.addEventListener("animationiteration",le,{once:!0})},oe=()=>{var ie;N(G,!1),(ie=n(f))==null||ie.removeEventListener("animationiteration",le)},j=ie=>{R.set(ie)},ge=v(()=>u()&&!n(z));Oe(()=>{u()?X():oe()});let ce=()=>{n(z)||(R.set(!0),P==null||P())};hn(()=>{R.clearTimeout(),oe()});let re=()=>{R.set(!1)},_e=Q("tooltip_interactive_interaction_time_indicator");var we=Dx();let Z;we.__mousemove=[Ox],we.__click=ce;var Re=T(we);Ao(Re,{get tooltipContent(){return _e},get tooltipVisible(){return n(ge)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:j,get ref(){return m()},set ref(ie){m(ie)},children:(ie,Ne)=>{pc(ie,{completed:!0})},$$slots:{default:!0}});var ue=k(Re,2);let A;ot(ue,ie=>m(ie),()=>m());var We=k(ue,2);let Ce;ot(We,ie=>N(f,ie),()=>n(f)),w(we),B((ie,Ne,De)=>{Z=se(we,1,"interactive-episode-icon-animated s-26",null,Z,ie),A=se(ue,1,"ref-block s-26",null,A,Ne),Ce=se(We,1,"pulse s-26",null,Ce,De)},[()=>({mobile:r(),fullscreen:p(),invisible:n(z),"icon-small":n(U)}),()=>({hidden:n(z)}),()=>({paused:n(G)})]),_t("mouseleave",we,re),_(t,we),H(),o()}rt(["mousemove","click"]);function pp(t,e){F(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),s=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);Ao(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 s()},set ref(d){s(d)},children:(d,a)=>{var u=ke();let p=v(()=>e.buttonComponent);var m=de(u);Oi(m,()=>n(p),(f,b)=>{b(f,Es(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),_(d,u)},$$slots:{default:!0}}),H()}var Ms={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Hx=Ee('<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 aa(t,e){F(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=v(()=>`${_n(e.size)}${n(o)}`),s=v(()=>i()?"prev-icon":"next-icon");Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(s)},get shadow(){return e.shadow},children:(l,d)=>{var a=Hx();_(l,a)},$$slots:{default:!0}}),H()}var Ux=L('<div class="icon-background-mobile s-22"><!></div>'),zx={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 Ga(t,e){F(e,!0),q(t,zx);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=ve().ui.t,d=v(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=v(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Ut(t,{get className(){return n(u)},get testId(){var p;return`btn-${(p=e.type)!=null?p:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var f=ke(),b=de(f);{var y=S=>{var C=Ux(),I=T(C);let R=v(()=>e.type==="prev");aa(I,{get size(){return"32"},get reversed(){return n(R)}}),w(C),_(S,C)},$=S=>{let C=v(()=>e.type==="prev");aa(S,{get size(){return"24"},get reversed(){return n(C)}})};V(b,S=>{o()?S(y):S($,!1)})}_(p,f)},$$slots:{default:!0}}),H()}var Wx=Ee('<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 xc(t,e){F(e,!0);let i=v(()=>_n(e.size));Ze(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 s=Wx();_(o,s)},$$slots:{default:!0}}),H()}var yb=require("@vkontakte/videoplayer-shared/es2018");var Kx=L('<div class="icon-background-mobile s-24"></div>'),qx=L("<!> <div><!></div>",1),Qx={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 od(t,e){F(e,!0),q(t,Qx);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),s=g(e,"className",3,""),l=g(e,"click",3,yb.noop),d=Q("tooltip_restart"),a=v(()=>`${o()?"btn-m--play":""} ${s()}`);Ut(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return vs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,p)=>{var m=qx(),f=de(m);{var b=I=>{var R=Kx();_(I,R)};V(f,I=>{o()&&I(b)})}var y=k(f,2);let $;var S=T(y);let C=v(()=>o()?"48":"24");xc(S,{get size(){return n(C)}}),w(y),B(I=>$=se(y,1,"s-24",null,$,I),[()=>({mobile:o()})]),_(u,m)},$$slots:{default:!0}}),H()}var Gx=Ee('<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 Vs(t,e){F(e,!0);let i=v(()=>_n(e.size));Ze(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 s=Gx();_(o,s)},$$slots:{default:!0}}),H()}var xb=require("@vkontakte/videoplayer-shared/es2018");var Yx=L('<div class="icon-background-mobile s-21"><!></div>'),jx={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 nd(t,e){F(e,!0),q(t,jx);let[i,o]=Ve(),r=()=>x(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=wo(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),a=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),p=g(e,"className",3,""),m=g(e,"click",3,xb.noop),b=ve().ui.t,{toggle:y}=s,$=v(()=>y),S=v(()=>r()!==null),C=v(()=>n(S)?r():a()),I=v(()=>n(C)?b("tooltip_pause"):b("tooltip_play")),R=v(()=>n(C)?Vs:Ln),E=v(()=>`${d()?"btn-m--play":""} ${p()}`),P=v(()=>n(S)?n($):m());Ut(t,{get className(){return n(E)},testId:"btn-play",get click(){return n(P)},get disabled(){return u()},get ariaLabel(){return n(I)},get ariaKeyShortCut(){return vs.KeyK},get ref(){return l()},set ref(O){l(O)},children:(O,D)=>{var U=ke();let z=v(()=>n(R));var G=de(U);{var le=oe=>{var j=Yx(),ge=T(j);Oi(ge,()=>n(z),(ce,re)=>{re(ce,{get size(){return"48"}})}),w(j),_(oe,j)},X=oe=>{var j=ke(),ge=de(j);Oi(ge,()=>n(z),(ce,re)=>{re(ce,{get size(){return"24"}})}),_(oe,j)};V(G,oe=>{d()?oe(le):oe(X,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}var Xx=Ee('<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 Hm(t){Ze(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=Xx();_(e,o)},$$slots:{default:!0}})}function wc(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),s=Q("tooltip_interactive_go_back"),l=v(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Hm(d,{})},$$slots:{default:!0}}),H()}var Zx=L('<span class="gutter s-25"><span><!></span></span>'),Jx={hash:"s-25",code:".gutter.s-25{--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-25{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-25{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Sc(t,e){F(e,!0),q(t,Jx);let[i,o]=Ve(),r=()=>x(a,"$autoplayNextEnabled$",i),s=g(e,"ref",15,void 0),l=ve(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,p=()=>{u(!r(),!0)},m=d("aria_label_autoplay"),f="16",b="#000",y=v(()=>r()?"true":"false");Ut(t,{click:p,get ariaLabel(){return m},role:"switch",get areaChecked(){return n(y)},get ref(){return s()},set ref($){s($)},children:($,S)=>{var C=Zx(),I=T(C);let R;var E=T(I);{var P=D=>{Ln(D,{get size(){return f},fill:b})},O=D=>{Vs(D,{get size(){return f},fill:b})};V(E,D=>{r()?D(P):D(O,!1)})}w(I),w(C),B(D=>R=se(I,1,"toggler s-25",null,R,D),[()=>({enabled:r()})]),_($,C)},$$slots:{default:!0}}),H(),o()}var ew=Ee('<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 Um(t){Ze(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=ew();ui(),_(e,o)},$$slots:{default:!0}})}function Tc(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),s=Q("tooltip_interactive_seek"),l=v(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Um(d,{})},$$slots:{default:!0}}),H()}var tw=Ee('<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>'),iw=Ee('<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 zm(t,e){let i=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Ze(t,{get testId(){return n(o)},children:(r,s)=>{var l=iw(),d=k(de(l));{var a=u=>{var p=tw();_(u,p)};V(d,u=>{i()&&u(a)})}_(r,l)},$$slots:{default:!0}})}function Cc(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),s=g(e,"graphIsOpened",3,!1),d=ve().ui.t,a=v(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Ut(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{let f=v(()=>!!s());zm(p,{get isOpened(){return n(f)}})},$$slots:{default:!0}}),H()}var Wm=require("@vkontakte/videoplayer-core/es2018");function Ic(t,e){F(e,!0);let[i,o]=Ve(),r=()=>x(u,"$playbackState$",i),s=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),a=ve(),u=a.state.playbackState$,p=a.actions.internal.switchToActiveLive,m=a.actions.internal.togglePlay,f=v(()=>()=>{if(!l()){p();return}r()===Wm.PlaybackState.PAUSED&&m()}),b=v(()=>s()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),$=v(()=>l()&&r()===Wm.PlaybackState.PLAYING);Ut(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n($)},get ariaLabel(){return d()},get click(){return n(f)},children:(S,C)=>{ec(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var Km=require("@vkontakte/videoplayer-shared/es2018");var ow=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),nw=L('<img class="icon" aria-hidden="true"/>');function Ya(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=ke(),s=de(r);{var l=a=>{var u=ow();_(a,u)},d=a=>{var u=nw();B(()=>He(u,"src",e.icon)),_t("error",u,o),Ea(u),_(a,u)};V(s,a=>{n(i)?a(l):a(d,!1)})}_(t,r)}function qm(t,e){F(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,Km.noop),r=g(e,"ref",15),s=v(()=>o()===Km.noop),l=v(()=>n(s)||i()),d=v(()=>n(s)?"btn-full-opacity":"");Ao(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(a){r(a)},children:(a,u)=>{let p=v(()=>{var m;return(m=e.testId)!=null?m:e.id});Ut(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(p)},children:(m,f)=>{Ya(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var wb=t=>!!t.buttonComponent;var Rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var fp=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(qn(t,i,r,o))};var mp=require("@vkontakte/videoplayer-shared/es2018"),Sb=10,Tb=40,Qm=.2,sw=.5,aw=65,lw=114,dw=4,Cb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?aw:lw),r=K(!1),s=K(0),l=K(0),d=v(()=>n(o)+Sb-Tb-dw),a=v(()=>(0,mp.interpolate)(n(s),[Qm,1],[0,-n(d)])),u=v(()=>(0,mp.interpolate)(n(s),[Qm,1],[0,Tb])),p=v(()=>(0,mp.interpolate)(n(s),[Qm,1],[0,n(o)+Sb]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(p),onPointerDown:$=>{var S;N(l,((S=e())==null?void 0:S.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:$=>{if(!n(r))return;let S=Math.max(Math.min($.clientY-n(l),0),-n(d));N(s,Math.abs(S/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(s,n(s)>=sw?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{N(s,0)}}};var cw=t=>t;function _s(t,{delay:e=0,duration:i=400,easing:o=cw}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var uw=L('<span class="root s-2b"> </span>'),pw={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 Gm(t,e){q(t,pw);var i=uw(),o=T(i,!0);w(i),B(()=>pe(o,e.time)),_(t,i)}var fw=L('<div class="tooltip-wrapper s-j"><div><!></div></div>'),mw={hash:"s-j",code:'.tooltip-wrapper.s-j{display:block;position:relative}.tooltip.s-j{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-j: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-j{opacity:1;visibility:visible}'};function Ym(t,e){q(t,mw);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),s=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),a=K(void 0),u=K(void 0);function p(S){if(!n(u))return 0;let{width:C}=n(u).getBoundingClientRect(),I=C/2;return S<I?I+l():S>e.containerWidth-I?e.containerWidth-I-d():S}let m=v(()=>p(r()));var f=fw(),b=T(f);let y;var $=T(b);ni($,()=>{var S;return(S=e.children)!=null?S:ht}),w(b),ot(b,S=>N(u,S),()=>n(u)),w(f),ot(f,S=>N(a,S),()=>n(a)),B(S=>{Qe(f,`transform: translate(${n(m)}px, ${s()}px);`),y=se(b,1,"tooltip s-j",null,y,S),Qe(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,f)}var Ib=t=>Math.abs(t)/90%4===1;var vw=L('<div class="preview s-i"></div>'),gw=L('<div class="time s-i"> </div>'),hw=L('<div><!> <div class="episode s-i"><!></div> <!></div>'),_w={hash:"s-i",code:".timeline-preview.s-i{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-i{bottom:72px}.preview.s-i{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)}.episode.s-i{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-i,.time.s-i{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-i{color:var(--white)}"};function jm(t,e){F(e,!0),q(t,_w);let[i,o]=Ve(),r=()=>x(y,"$rotateAlpha",i),s=()=>x($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),a=g(e,"isMobile",3,!1),u=g(e,"videoEpisodes",19,()=>[]),p=g(e,"progress",3,0),m=g(e,"duration",3,0),f=g(e,"isInteractive",3,!1),b=ve(),y=b.ui.rotateAlpha,$=b.ui.playerSize,S=K(0),C=K(0),I=K(""),R=K(0),E=K(0),P=K(0),O=K(0),D=v(()=>np(p(),m(),u())),U=v(()=>ed(r())),z=v(()=>Ib(r())),G=v(oe),le=v(()=>(n(z)?1:-1)*(n(S)/2-n(C)/2)),X=v(()=>n(le)*-1);Oe(()=>{(Y=>{N(S,Y.width,!0),N(C,Y.height,!0)})(ge())}),Oe(()=>{(Y=>{N(I,Y.imgSrc,!0),N(R,Y.imgWidth,!0),N(E,Y.imgHeight,!0),N(P,Y.imgOffsetX,!0),N(O,Y.imgOffsetY,!0)})(ce(p()))});function oe(){var De;let Y=a()?l.MOBILE:l.DESKTOP,{isVertical:ie}=j(),Ne=30;return(De=n(D))!=null&&De.text&&(Ne+=16),(ie||n(U))&&(Ne+=18,Ne+=50),Math.min(Math.max(s().height-Ne,0),Y)}function j(){let Y=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,Ne=ie>Y;return{width:Y,height:ie,isHorizontal:!Ne,isVertical:Ne}}function ge(){let{height:Y,isHorizontal:ie,isVertical:Ne,width:De}=j();return ie&&(Y=Y/De*n(G),De=n(G)),Ne&&(De=De/Y*n(G),Y=n(G)),{width:De,height:Y}}function ce(Y){let ie;e.previewThumbsData.isUV?ie=Math.floor(m()*Y/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Y)));let Ne=Math.floor(ie/e.previewThumbsData.countPerImage),De=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),fe=ie%e.previewThumbsData.countPerRow,ee=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ne===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ee=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ee++);let Se=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ne===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Se=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Be=n(S)*Se,Ke=n(C)*ee,Ye=-fe*n(S),Te=-De*n(C);return{imgSrc:e.previewThumbsData.links[Ne],imgWidth:Be,imgHeight:Ke,imgOffsetX:Ye,imgOffsetY:Te}}var re=hw();let _e;var we=T(re);{var Z=Y=>{var ie=vw();B(()=>Qe(ie,`width: ${n(S)}px; height: ${n(C)}px; background-image: url(${n(I)}); background-size: ${n(R)}px ${n(E)}px; background-position: ${n(P)}px ${n(O)}px;
61
- transform: rotate(${r()}deg) ${n(U)?`translate(${n(le)}px, ${n(X)}px)`:""};
62
- `)),_(Y,ie)};V(we,Y=>{n(I)&&Y(Z)})}var Re=k(we,2),ue=T(Re);{var A=Y=>{var ie=ke(),Ne=de(ie);{var De=ee=>{var Se=ms();B(Be=>pe(Se,Be),[()=>Q("tooltip_episode_unfinished")]),_(ee,Se)},fe=ee=>{var Se=ms();B(()=>pe(Se,n(D).text||"")),_(ee,Se)};V(Ne,ee=>{f()&&n(D).completed===!1?ee(De):ee(fe,!1)})}_(Y,ie)};V(ue,Y=>{n(D)&&Y(A)})}w(Re);var We=k(Re,2);{var Ce=Y=>{var ie=gw(),Ne=T(ie,!0);w(ie),B(()=>pe(Ne,d())),_(Y,ie)};V(We,Y=>{f()||Y(Ce)})}w(re),B(Y=>{_e=se(re,1,"timeline-preview s-i",null,_e,Y),Qe(re,`width: ${n(U)?n(C):n(S)}px;`)},[()=>({mobile:a()})]),_(t,re),H(),o()}var bw=L('<span class="time s-g"> </span>'),$w=L("<!> <!>",1),yw={hash:"s-g",code:".time.s-g{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 Xm(t,e){var Pe,It,Me,st,vt;F(e,!0),q(t,yw);let[i,o]=Ve(),r=()=>x(X,"$interactiveEpisodes$",i),s=()=>x(O,"$duration$",i),l=()=>x(P,"$position$",i),d=()=>x(ge,"$isInteractiveExpectation$",i),a=()=>x(j,"$isInteractiveTime$",i),u=()=>x(we,"$previewTrackActive",i),p=()=>x(D,"$isLive$",i),m=()=>x(_e,"$disabledControls$",i),f=()=>x(z,"$isMobile",i),b=()=>x(U,"$isActiveLive$",i),y=()=>x(E,"$bufferedProgress$",i),$=g(e,"showTimeline",3,!1),S=g(e,"withEpisodes",3,!0),C=g(e,"ref",15,void 0),I=ve(),R=Mt(),E=I.state.bufferedProgress$,P=I.state.positionWithScrubbing$,O=I.state.duration$,D=I.state.isLive$,U=I.state.isActiveLive$,z=I.ui.isMobile,G=R.features.episodes&&S()?I.actions.internal.getVideoEpisodes():void 0,le=I.actions.internal.getPreviewThumbsData(),X=I.state.interactiveEpisodes$,oe=I.state.isInteractive,j=I.state.isInteractiveTime$,ge=I.state.isInteractiveExpectation$,ce=I.actions.internal.correctSeekTimeToInteractive,re=(Pe=I.callbacks)==null?void 0:Pe.onDisabledTimelineClick,_e=I.ui.controls.disabledControls$,we=I.ui.previewTrackActive,Z=(Me=(It=I.callbacks)==null?void 0:It.uiInfo)==null?void 0:Me.onTimelineMouseEnter,Re=(vt=(st=I.callbacks)==null?void 0:st.uiInfo)==null?void 0:vt.onTimelineMouseLeave,ue=I.ui.t,A=R.features.interactiveResponsiveUi,We=v(()=>oe?r():G),Ce=v(()=>tn(s())),Y=v(()=>tn(l())),ie=v(()=>l()/s()),Ne=v(()=>d()||a()),De=K(!1),fe=K(""),ee=K(0),Se=K(0),Be=K(0),Ke=v(()=>({containerWidth:n(Se),translateXPx:n(ee),translateYPx:oe&&le?-36:-16,active:n(De)&&$()&&!n(Ne)&&!A&&!u(),pointer:!R.features.timelinePreview||!le||p()})),Ye=ue("aria_timeline"),Te=v(()=>ue("aria_timeline_value",{position:n(Y),duration:n(Ce)}));function Le($e){return!ce||!oe?$e:ce($e*s())/s()}function Ue($e,Je){var ze;(ze=e.onSliderPointerDown)==null||ze.call(e,Je),I.actions.internal.startScrubbing(Le($e))}function Vt($e){a()||I.actions.internal.progressScrubbing(Le($e))}function et($e){var Je;I.actions.internal.completeScrubbing(Le($e)),N(De,!1),(Je=e.onSliderPointerUp)==null||Je.call(e)}function Ot($e,Je,ze){var nt;(nt=e.onSliderPointerEnter)==null||nt.call(e,$e),Zt($e,Je,ze),N(De,!0)}function Kt($e,Je,ze,nt){var Jt;(Jt=e.onSliderMove)==null||Jt.call(e,nt,$e),Zt($e,Je,ze),N(De,!0)}function Tt(){var $e;N(De,!1),($e=e.onSliderLeave)==null||$e.call(e)}function Zt($e,Je,ze){N(Be,Le($e),!0),N(ee,Je,!0),ze&&N(Se,ze,!0),N(fe,Dt($e),!0)}function Dt($e){let Je=tn((p()?1-$e:$e)*s());return p()?`-${Je}`:Je}let ye=v(()=>m().has("TIMELINE"));var be=$w(),J=de(be);Ym(J,Es(()=>n(Ke),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:($e,Je)=>{var ze=ke(),nt=de(ze);{var Jt=pi=>{jm(pi,{get time(){return n(fe)},get isMobile(){return f()},get videoEpisodes(){return n(We)},get previewThumbsData(){return le},get progress(){return n(Be)},get duration(){return s()},get isInteractive(){return oe}})},ri=pi=>{var hi=bw(),to=T(hi,!0);w(hi),B(()=>pe(to,n(fe))),_(pi,hi)};V(nt,pi=>{R.features.timelinePreview&&le&&!p()?pi(Jt):pi(ri,!1)})}_($e,ze)},$$slots:{default:!0}}));var xe=k(J,2);qa(xe,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return f()},get ariaLabel(){return Ye},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(Te)},get loadedProgress(){return y()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(We)},onPointerDown:Ue,onHandleMove:Vt,onPointerMove:Kt,onPointerUp:et,onPointerEnter:Ot,onPointerLeave:Tt,get onMouseEnter(){return Z},get onMouseLeave(){return Re},get onDisabledClick(){return re},get isInteractive(){return oe},get disabled(){return n(ye)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:et,get ref(){return C()},set ref($e){C($e)}}),_(t,be),H(),o()}var xw={hash:"s-f",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 Ec(t,e){F(e,!0),q(t,xw);let[i,o]=Ve(),r=()=>x(a,"$isMobile",i),s=g(e,"position",3,0),l=g(e,"duration",3,0),d=ve(),a=d.ui.isMobile,u=d.ui.t,p=v(()=>tn(l())),m=v(()=>tn(s())),f=v(()=>s()/l()),b=v(()=>u("aria_timeline_value",{position:n(m),duration:n(p)})),y=v(()=>Math.round(n(f)*100));qa(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(f)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var ww=L("<div><!></div>"),Sw=L("<div></div>"),Tw={hash:"s-c",code:".timeline.s-c{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-c{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-c{padding:0}.timeline-stub.s-c{min-width:20px;width:100%}.timeline-stub.mobile.s-c{height:8px}"};function ja(t,e){F(e,!0),q(t,Tw);let[i,o]=Ve(),r=()=>x(S,"$isLive$",i),s=()=>x(R,"$isMobile",i),l=()=>x(E,"$disabled",i),d=()=>x(I,"$adPosition",i),a=()=>x(C,"$adDuration",i),u=g(e,"isAds",3,!1),p=g(e,"isHidden",3,!1),m=g(e,"timelineNotAvailable",3,!1),f=g(e,"needPadding",3,!0),b=g(e,"ref",15,void 0),y=ve(),$=Mt(),S=y.state.isLive$,C=y.ads.duration,I=y.ads.position,R=y.ui.isMobile,E=ae(!1),P=v(()=>!m()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var O=ke(),D=de(O);{var U=G=>{var le=ww();let X;var oe=T(le);{var j=ce=>{Ec(ce,{get position(){return d()},get duration(){return a()}})},ge=ce=>{Xm(ce,{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 b()},set ref(re){b(re)}})};V(oe,ce=>{u()?ce(j):ce(ge,!1)})}w(le),Is(le,()=>Kl(p()&&$.features.usePerformanceFix,E,$.disableInvisibleComponentsTimeout)),B(ce=>X=se(le,1,"timeline s-c",null,X,ce),[()=>({withoutPadding:!f(),mobile:s(),"out-of-flow":l()})]),_(G,le)},z=G=>{var le=Sw();let X;B(oe=>X=se(le,1,"timeline-stub s-c",null,X,oe),[()=>({mobile:s()})]),_(G,le)};V(D,G=>{n(P)?G(U):G(z,!1)})}_(t,O),H(),o()}var Eb=require("@vkontakte/videoplayer-shared/es2018");var Cw=(t,e,i,o,r,s,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),s(l())},Iw=L("<div></div>"),Ew=L('<div><div class="track s-2c"></div></div>'),Pw={hash:"s-2c",code:'.root.s-2c{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2c,.root.vertically-rotated.s-2c{height:var(--preview-track-frame-height-vertical)}.root.s-2c: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-2c{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2c,.track.s-2c{position:absolute}.frame.s-2c{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-2c .frame:where(.s-2c){transform-origin:0 0}.rotate-1.s-2c{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2c{transform:rotate(-180deg)}.rotate-3.s-2c{transform:rotate(-270deg) translateY(-100%)}'};function Jm(t,e){F(e,!0),q(t,Pw);let[i,o]=Ve(),r=()=>x(R,"$rotateAlpha",i),s=()=>x($,"$position$",i),l=()=>x(y,"$duration$",i),d=ve(),{countPerImage:a=0,countPerRow:u=0,countTotal:p=0,links:m=[],frameHeight:f=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:$}=d.state,{startScrubbing:S,progressScrubbing:C,completeScrubbing:I}=d.actions.internal,R=d.ui.rotateAlpha,E=K(void 0),P=K(!1),O=K(0),D=K(0),U=K(0),z=K(0),G=v(()=>f<=b),le=v(()=>ed(r())),X=v(()=>n(G)?!n(le):n(le)),oe=114,j=65,ge=3,ce=v(()=>n(X)?oe:j),re=v(()=>n(G)?oe:j),_e=v(()=>n(G)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=v(()=>p*n(ce)),Z=K(0);Oe(()=>{N(z,Math.ceil(-n(U)/n(ce))-1),N(U,-n(we)*s()/l())});let Re=()=>{I(ue(),!0)},ue=()=>l()*-n(U)/n(we)/l(),A=!1,We=Te=>{if(!n(P))return!1;let Le=Te.clientX-n(O);N(U,n(D)+Le),N(U,Math.max(Math.min(n(U),0),-n(we)),!0),Math.abs(Le)>1&&(A=!0),C(ue())},Ce=Te=>{n(P)&&(N(P,!1),!A&&Te&&N(U,-(Te.offsetX-n(Z)/2)),A=!1,Re())},Y=()=>{n(P)&&Ce()},ie=v(()=>a/u),Ne=(Te,Le)=>{if(Te!==m.length-1)return u;let Ue=0,Vt=Le*u;for(let et=1;et<=u;et++)Te*a+Ue+Vt<p&&Ue++;return Ue},De=v(()=>Math.floor(n(z)/a)),fe=v(()=>(0,Eb.getRangeAroundIndex)(3,n(De),m.length-1)),ee=(Te,Le,Ue)=>{let Vt=a*n(ce);return Te*Vt+Le*n(ce)*u+n(Z)/2-ge/2+Ue*n(ce)},Se=v(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(re)}px`,`--frame-height: ${n(_e)}`].join(";"));var Be=Ew();let Ke;var Ye=T(Be);Ye.__pointerdown=[Cw,P,O,D,U,S,ue],Ye.__pointermove=We,Ye.__pointerup=Ce,yi(Ye,20,()=>n(fe),Te=>Te,(Te,Le)=>{var Ue=ke(),Vt=de(Ue);yi(Vt,16,()=>Array.from({length:n(ie)},(et,Ot)=>Ot),et=>et,(et,Ot)=>{var Kt=ke(),Tt=de(Kt);yi(Tt,16,()=>Array.from({length:Ne(Le,Ot)},(Zt,Dt)=>Dt),Zt=>Zt,(Zt,Dt)=>{var ye=Iw();B((be,J)=>{Qe(ye,be),se(ye,1,J,"s-2c")},[()=>`--row-index: ${Ot}; --column-index: ${Dt}; left: ${ee(Le,Ot,Dt)}px; background-image: url(${m[Le]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),_(Zt,ye)}),_(et,Kt)}),_(Te,Ue)}),w(Ye),w(Be),ot(Be,Te=>N(E,Te),()=>n(E)),B(Te=>{Ke=se(Be,1,"root s-2c",null,Ke,Te),Qe(Be,n(Se)),Qe(Ye,`transform: translateX(${n(U)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(G),"vertically-rotated":n(le)})]),_t("mouseleave",Ye,Y),An(Be,"clientWidth",Te=>N(Z,Te)),_(t,Be),H(),o()}rt(["pointerdown","pointermove","pointerup"]);var Aw=L('<div class="notification s-2d"><span class="description s-2d"> </span></div>'),kw={hash:"s-2d",code:".notification.s-2d{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2d{font-size:14px;line-height:18px}"};function ev(t,e){F(e,!1),q(t,kw);let i=340,{ui:{t:o}}=ve();xo();var r=Aw(),s=T(r),l=T(s,!0);w(s),w(r),B(d=>pe(l,d),[()=>o("preview_track_close_tooltip")],Tn),jr(3,r,()=>_s,()=>({duration:i})),_(t,r),H()}var Pb=require("@vkontakte/videoplayer-shared/es2018"),Lw=L('<div class="preview-track-close tooltip s-28"><!></div>'),Mw=L('<div class="preview-track-control s-28"><!> <div class="preview-track-close s-28"><!></div> <!></div>'),Vw=L('<div class="wrapper-preview-track s-28"><!></div>'),Rw=L('<div class="enriched-timeline s-28"><!> <!> <!></div>'),Nw={hash:"s-28",code:".enriched-timeline.s-28{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-28{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-28{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-28{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-28:hover+.tooltip:where(.s-28){opacity:1}.wrapper-preview-track.s-28{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function tv(t,e){F(e,!0),q(t,Nw);let[i,o]=Ve(),r=()=>x($,"$playerSize",i),s=()=>x(y,"$duration$",i),l=()=>x(S,"$previewTrackActive",i),d=()=>x(f,"$position$",i),a=()=>x(b,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),p=ve(),m=200,{positionWithScrubbing$:f,isRewindableLive$:b,duration$:y}=p.state,{playerSize:$,previewTrackActive:S}=p.ui,{countPerImage:C=0,links:I=[],frequency:R=0}=p.actions.internal.getPreviewThumbsData()||{},E=v(()=>r().width>100),P=K(!V_()),O=()=>{n(P)&&(M_(),N(P,!1))},D=ce=>{let re=Math.floor(s()*ce/R),_e=Math.floor(re/C),we=(0,Pb.getRangeAroundIndex)(3,_e,I.length-1);for(let Z of we){let Re=new Image;Re.src=I[Z]}},U=(ce,re)=>{D(re),!l()&&e.onTimelineMove(ce)};var z=Rw(),G=T(z);{var le=ce=>{var re=Mw(),_e=T(re);let we=v(()=>tn(d()));Gm(_e,{get time(){return n(we)}});var Z=k(_e,2),Re=T(Z);As(Re,{onClick:()=>p.actions.internal.closePreviewTrack()}),w(Z);var ue=k(Z,2);{var A=We=>{var Ce=Lw(),Y=T(Ce);ev(Y,{}),w(Ce),_(We,Ce)};V(ue,We=>{n(P)&&We(A)})}w(re),_t("mouseleave",Z,O),jr(3,re,()=>_s,()=>({duration:m})),_(ce,re)};V(G,ce=>{l()&&ce(le)})}var X=k(G,2);let oe=v(()=>!n(E));ja(X,{get isHidden(){return n(oe)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:U,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:D,get ref(){return u()},set ref(ce){u(ce)}});var j=k(X,2);{var ge=ce=>{var re=Vw(),_e=T(re);Jm(_e,{}),w(re),B(()=>Qe(re,`height: ${e.animatedPreviewTrackHeight}px;`)),_(ce,re)};V(j,ce=>{e.previewTrackAvailable&&ce(ge)})}w(z),B(()=>Qe(z,`transform: translateY(${e.animatedOffsetY}px);`)),_(t,z),H(),o()}var Dw=L('<div><!> <div class="controls s-1e" data-testid="player_controls"><div class="controls-left s-1e"><!> <!> <!></div> <div class="controls-right s-1e"></div></div></div> <!>',1),Bw={hash:"s-1e",code:'.wrapper-bottom.s-1e{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-1e:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1e>:where(.s-1e){pointer-events:auto}.controls.s-1e{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-1e,.controls-right.s-1e{align-content:center;display:flex}.controls-left.s-1e{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1e >:not(:first-child),.controls-right.s-1e >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1e{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1e{transition:none}'};function ov(t,e){var fa,ml;F(e,!0),q(t,Bw);let[i,o]=Ve(),r=()=>x(on,"$disabledControls$",i),s=()=>x(dt,"$adPlaybackState",i),l=()=>x(ri,"$playbackState$",i),d=()=>x(io,"$currentSubtitle$",i),a=()=>x(to,"$isEnded$",i),u=()=>x(nn,"$currentGridType$",i),p=()=>x(_o,"$isLive$",i),m=()=>x(je,"$chromecastState$",i),f=()=>x(Ii,"$isPictureInPictureActive",i),b=()=>x(Yt,"$pictureInPictureType$",i),y=()=>x($i,"$availableSubtitlesList$",i),$=()=>x(Bt,"$contextMenuOpenedByKeyboard$",i),S=()=>x(Et,"$showContextMenuBtn$",i),C=()=>x(ut,"$isRewindableLive$",i),I=()=>x(di,"$isActiveLive$",i),R=()=>x(is,"$graphIsOpened$",i),E=()=>x($n,"$contextMenuVisible$",i),P=()=>x(Ai,"$isFullscreen",i),O=()=>x(bo,"$autoplayNextEnabled",i),D=()=>x(n(Li),"$prevButton",i),U=()=>x(n(lo),"$replayButton",i),z=()=>x(n(Do),"$playButton",i),G=()=>x(n(Bo),"$nextButton",i),le=()=>x(n(co),"$playPrevChapterButton",i),X=()=>x(n(Ci),"$seekToInteractiveButton",i),oe=()=>x(n(Hr),"$interactiveGraphButton",i),j=()=>x(n(ir),"$liveButton",i),ge=()=>x(n(Fo),"$time",i),ce=()=>x(n(br),"$episodes",i),re=()=>x(n(or),"$vkLogo",i),_e=()=>x(n($r),"$volume",i),we=()=>x(n(wn),"$subtitles",i),Z=()=>x(n(cn),"$settings",i),Re=()=>x(n(Ur),"$context",i),ue=()=>x(n(un),"$fullscreen",i),A=()=>x(n(ns),"$chromecast",i),We=()=>x(Lo,"$additionalDesktopControlPanelRightButtons$",i),Ce=()=>x(ki,"$playerSize",i),Y=()=>x(rn,"$isInteractiveTime$",i),ie=()=>x(ci,"$previewTrackActive",i),Ne=()=>x(St,"$settingsMenuVisible",i),De=()=>x(uo,"$settingButtonRef$",i),fe=()=>x(W,"$startedByKeyboard$",i),ee=()=>x(pi,"$isAudioAvailable$",i),Se=()=>x(be,"$fakeIsPlaying$",i),Be=()=>x(ts,"$seekToInteractiveDisabledTooltip$",i),Ke=()=>x(ft,"$isPreviewTrackHorizontallyAligned$",i),Ye=()=>x(me,"$previewTrackAvailable",i),Te=()=>x(qo,"$previewTrackDragInProgress",i),Le=()=>x(Qt,"$adPosition",i),Ue=()=>x(Jt,"$position$",i),Vt=()=>x(Ct,"$adDuration",i),et=()=>x(nt,"$duration$",i),Ot=g(e,"playerControlsWrapperRef",15,void 0),Kt=g(e,"playerControlsRef",15,void 0),Tt=g(e,"isAds",3,!1),Zt=g(e,"logoTargetUrl",3,""),Dt=g(e,"isOneVideoPlaylist",3,!1),ye=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:be}=wo(),J=ve(),xe=wo(),Pe=Mt(),It=J.actions.internal.toggleMuted,Me=J.actions.internal.togglePlay,st=J.actions.internal.pause,vt=J.actions.internal.toggleSubtitle,$e=J.actions.internal.checkFullscreenSupport,Je=(fa=J.callbacks)==null?void 0:fa.onAudioDoesNotExistHint,ze=(ml=J.callbacks)==null?void 0:ml.onAudioDisabledHint,nt=J.state.duration$,Jt=J.state.positionWithScrubbing$,ri=J.state.playbackState$,pi=J.state.isAudioAvailable$,hi=J.state.isAudioDisabled,to=J.state.isEnded$,_o=J.state.isLive$,di=J.state.isActiveLive$,ut=J.state.isRewindableLive$,{isActive$:Ii,type$:Yt}=xe.pictureInPicture$,St=J.ui.settingsMenu.visible$,ii=J.ui.settingsMenu.openedByBtnKeyboard$,jt=J.ui.controls,bt=J.actions.internal.getVideoEpisodes(),je=J.state.chromecastState$,$i=J.state.availableSubtitlesList$,io=J.state.currentSubtitle$,on=jt.disabledControls$,$n=J.ui.contextMenu.visible$,Et=J.ui.contextMenu.showContextMenuBtn$,Bt=J.ui.contextMenu.openedByBtnKeyboard$,W=J.ui.startedByKeyboard$,kt=J.ui.controlBlocks,si=J.ui.previewTrackNotificationVisible,lt=J.ui.t,Ct=J.ads.duration,Qt=J.ads.position,dt=J.ads.playbackState,Ai=J.ui.isFullscreen,ki=J.ui.playerSize,nn=J.ui.currentGridType$,Lo=J.ui.additionalDesktopControlPanelRightButtons$,bo=J.ui.autoplayNextEnabled$,Fi=J.actions.internal.getVideoElement,fr=J.actions.internal.replayInteractive,oo=J.actions.internal.prevVideoClick,$o=J.actions.internal.nextVideoClick,Hi=J.state.isInteractive,rn=J.state.isInteractiveTime$,sn=J.state.showInteractiveGraph,Gn=J.state.showSeekToInteractive,mr=J.state.showPlayPrevChapter,Mr=J.state.showInteractiveTimeIndicator,bs=J.state.playPrevChapterDisabledTooltip,ts=xe.seekToInteractiveDisabledTooltip$,is=xe.graphIsOpened$,Yn=Pe.features.interactiveResponsiveUi,an=v(()=>r().has("EPISODE_BUTTON")),Mo=v(()=>r().has("GRAPH_BUTTON")),ln=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),jn=v(()=>r().has("PLAY_BUTTON")),Rn=v(()=>r().has("REPLAY_BUTTON")),Vr=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Rr=()=>J.actions.internal.toggleChromecast(),os=v(()=>Tt()?s()==="playing":l()===Xa.PlaybackState.PLAYING),vr=v(()=>d().value!=="off"),no=v(()=>a()&&!Tt()||Hi),gr=v(()=>Yn?n(no)&&Zi(u(),"m"):n(no)),Xn=v(()=>!a()||Hi||Tt()),yn=v(()=>Zi(u(),"m")),ro=v(()=>e.showNextPrevButtons&&Zi(u(),"m")&&!Tt()&&e.nextButtonActive),Nr=v(()=>e.showNextPrevButtons&&Zi(u(),"m")&&!Tt()&&e.prevButtonActive),Nn=v(()=>!Tt()&&!!p()),gt=v(()=>m()!==Xa.ChromecastState.NOT_AVAILABLE&&!(f()&&b()===1)&&Zi(u(),"m")&&!Hi),ei=v(()=>e.showAutoplayNext&&!Dt()&&Zi(u(),"s")),Zn=v(()=>y().length>0&&Zi(u(),"m")),hr=v(()=>$()||S()),Or=v(()=>Zi(u(),"s")&&!Tt()),xn=v(()=>!e.logoHidden&&!Tt()),_r=v(()=>Pe.features.fullscreen&&$e()&&(e.logoHidden||Zi(u(),Yn?"xs":"s"))&&!(f()&&b()===1)&&(Hi?ye():!0)),Vo=v(()=>(!p()||Tt())&&!(Pe.features.interactiveHideTime&&Hi)),dn=v(()=>sn&&Zi(u(),"m")),Ro=v(()=>Yn?Gn&&Zi(u(),"s"):Gn),Jn=v(()=>Yn?mr&&Zi(u(),"s"):mr),Ui=v(()=>!Tt()&&!p()&&!!(bt!=null&&bt.length)&&n(yn)&&!n(an)),No=v(()=>!C()||!!I()),er=v(()=>R()?lt("tooltip_interactive_graph_on"):lt("tooltip_interactive_graph_off")),Dr=v(()=>E()?lt("tooltip_context_menu_close"):lt("tooltip_context_menu_open")),so=(ct,mt)=>ct?mt&&mt===Xa.PlaybackState.PAUSED?lt("tooltip_play"):"":lt("tooltip_live"),On=v(()=>so(n(No),l())),Oo=v(()=>Pe.logoType==="vk_video"?lt("tooltip_vk_video_logo"):lt("tooltip_vk_logo")),Br=v(()=>n(vr)?lt("tooltip_subtitles_on"):lt("tooltip_subtitles_off")),tr=v(()=>P()?lt("tooltip_fullscreen_on"):lt("tooltip_fullscreen_off")),Dn=v(()=>m()===Xa.ChromecastState.CONNECTED?lt("tooltip_chromecast_on"):lt("tooltip_chromecast_off")),Fr=v(()=>O()?lt("tooltip_autoplay_on"):lt("tooltip_autoplay_off")),wt=K(0),$t=ai({}),ao=ai({}),Li=v(()=>jt.prevButton),lo=v(()=>jt.replayButton),Do=v(()=>jt.playButton),Bo=v(()=>jt.nextButton),co=v(()=>jt.playPrevChapterButton),Ci=v(()=>jt.seekToInteractiveButton),Hr=v(()=>jt.interactiveGraphButton),ir=v(()=>jt.liveButton),Fo=v(()=>jt.time),br=v(()=>jt.episodes),or=v(()=>jt.vkLogo),$r=v(()=>jt.volume),wn=v(()=>jt.subtitles),cn=v(()=>jt.settings),Ur=v(()=>jt.context),un=v(()=>jt.fullscreen),ns=v(()=>jt.chromecast),qe=v(()=>({prevButton:D()?D().right-D().left:0,replayButton:U()?U().right-U().left:0,playButton:z()?z().right-z().left:0,nextButton:G()?G().right-G().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:X()?X().right-X().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:j()?j().right-j().left:0,time:ge()?ge().right-ge().left:0,episodes:ce()?ce().right-ce().left:0,vkLogo:re()?re().right-re().left:0,volume:_e()?_e().right-_e().left:0,subtitles:we()?we().right-we().left:0,settings:Z()?Z().right-Z().left:0,context:Re()?Re().right-Re().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:A()?A().right-A().left:0,additionalButtons:We().length?We().reduce(ct=>[...ct,40],[]):[]})),Lt=K(0);Oe(()=>{(!n(Lt)||n(Lt)<n(qe).time)&&Pt(()=>N(Lt,n(qe).time,!0))});let _i=K(!1);Oe(()=>{let ct=0;n(Ui)&&(Zi(u(),"xl")?ct=n(qe).time:ct=60);let mt=n(qe).prevButton+n(qe).playButton+n(qe).nextButton+n(qe).seekToInteractiveButton+n(qe).interactiveGraphButton+n(qe).liveButton+n(Lt)+ct;N(_i,n(Vo)&&n(wt)>=mt,!0)});let So=v(()=>n(_i)&&Zi(u(),"m")),To=(0,iv.debounceFn)(id,260),Ho=(0,iv.debounceFn)(fp,260);Oe(()=>{Ce(),Y(),ie(),To(Fi(),jt,$t,e.showControls),Ho(Fi(),kt,ao,e.showControls)}),Oe(()=>{ao.bottom=Ot()});let uo=ae();Oe(()=>{Ne(),De()&&Pt(()=>Ql(De(),Ne(),ii))});let Mi;Oe(()=>{fe(),Pt(()=>up(W,fe(),Mi))});function Uo(){oa({isAudioDisabled:hi,isAudioAvailable:ee(),isAds:Tt(),audioIsNotExistHintCallback:Je,audioDisabledHintCallback:ze})&&It()}let zo=Hi?fr:Me,yo=v(()=>Se()!==null),Wo=v(()=>n(yo)?Se():n(os)),pn=v(()=>n(Wo)?lt("tooltip_pause"):lt("tooltip_play")),yr=lt("tooltip_episodes"),xr=v(()=>{var ct,mt,Wi,Qo;return n(Nr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ms.prevButton,buttonComponent:Ga,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:oo.bind(null,!0)},tooltipEnabled:!((mt=(ct=J.callbacks)==null?void 0:ct.uiInfo)!=null&&mt.onPrevButtonMouseEnter)&&!((Qo=(Wi=J.callbacks)==null?void 0:Wi.uiInfo)!=null&&Qo.onPrevButtonMouseLeave),mouseEnter:()=>{var Ki,bi,Vi;(Vi=(bi=(Ki=J.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:bi.onPrevButtonMouseEnter)==null||Vi.call(bi,qn(Fi(),$t,"prevButton",e.showControls))},mouseLeave:()=>{var Ki,bi,Vi;(Vi=(bi=(Ki=J.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:bi.onPrevButtonMouseLeave)==null||Vi.call(bi,qn(Fi(),$t,"prevButton",e.showControls))},tooltipText:lt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),wr=v(()=>n(gr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ms.replayButton,buttonComponent:od,buttonComponentProps:{disabled:n(Rn),click:zo},tooltipText:lt("tooltip_restart"),disabled:n(Rn)}:void 0),rs=v(()=>n(Xn)?{id:"playButton",type:"desktop-control-panel-left",weight:Ms.playButton,buttonComponent:nd,buttonComponentProps:{disabled:n(jn),isPlaying:n(os),click:Me},tooltipText:n(pn),disabled:n(jn)}:void 0),ss=v(()=>{var ct,mt,Wi,Qo;return n(ro)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ms.nextButton,buttonComponent:Ga,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:$o.bind(null,!0)},tooltipEnabled:!((mt=(ct=J.callbacks)==null?void 0:ct.uiInfo)!=null&&mt.onNextButtonMouseEnter)&&!((Qo=(Wi=J.callbacks)==null?void 0:Wi.uiInfo)!=null&&Qo.onNextButtonMouseLeave),mouseEnter:()=>{var Ki,bi,Vi;(Vi=(bi=(Ki=J.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:bi.onNextButtonMouseEnter)==null||Vi.call(bi,qn(Fi(),$t,"nextButton",e.showControls))},mouseLeave:()=>{var Ki,bi,Vi;(Vi=(bi=(Ki=J.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:bi.onNextButtonMouseLeave)==null||Vi.call(bi,qn(Fi(),$t,"nextButton",e.showControls))},tooltipText:lt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Xe=v(()=>Hi&&n(Jn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ms.playPrevChapterButton,buttonComponent:wc,buttonComponentProps:{disabled:n(Vr),click:e.playPrevChapter},tooltipText:lt("tooltip_interactive_go_back"),disabledTooltipContent:lt(bs),disabled:n(Vr)}:void 0),zt=v(()=>Hi&&n(Ro)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ms.seekToInteractiveButton,buttonComponent:Tc,buttonComponentProps:{disabled:n(ln),click:e.seekToInteractive},tooltipText:lt("tooltip_interactive_seek"),disabled:n(ln),disabledTooltipContent:lt(Be())}:void 0),xi=v(()=>Hi&&n(dn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ms.interactiveGraphButton,buttonComponent:Cc,buttonComponentProps:{disabled:n(Mo),click:is.toggle,graphIsOpened:R()},tooltipText:n(er)}:void 0),Ko=v(()=>n(Nn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ms.liveButton,buttonComponent:Ic,buttonComponentProps:{isLiveActive:n(No),ariaLabel:n(On)},tooltipText:n(On),disabled:n(No)&&l()===Xa.PlaybackState.PLAYING}:void 0),po=v(()=>[n(xr),n(wr),n(rs),n(ss),n(Xe),n(zt),n(xi),n(Ko)].filter(ct=>!!ct).sort(Ha)),Sr=v(()=>n(xn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Rs.vkLogo,buttonComponent:vc,buttonComponentProps:{targetUrl:Zt(),logoClickable:e.logoClickable,click:st},tooltipText:n(Oo),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),fn=v(()=>n(ei)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Rs.autoplayNext,buttonComponent:Sc,tooltipText:n(Fr)}:void 0),Tr=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Rs.volume,buttonComponent:Em,buttonComponentProps:{click:Uo,isAds:Tt()}})),Os=v(()=>n(Zn)?{id:"subtitles",type:"desktop-control-panel-right",weight:Rs.subtitles,buttonComponent:Sm,buttonComponentProps:{isSubtitlesEnabled:n(vr),click:vt},tooltipText:n(Br)}:void 0),Sn=v(()=>n(Or)?{id:"settings",type:"desktop-control-panel-right",weight:Rs.settings,buttonComponent:Zl,buttonComponentProps:{ref$:uo},tooltipText:Ne()?void 0:lt("tooltip_settings_off")}:void 0),Ds=v(()=>Pe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Rs.context,buttonComponent:Fm,buttonComponentProps:{ariaLabel:lt("aria_label_context_menu")},className:n(hr)?"":"out-of-view",tooltipText:n(Dr)}:void 0),nr=v(()=>n(_r)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Rs.fullscreen,buttonComponent:mc,buttonComponentProps:{isFullscreen:P(),click:e.toggleFullscreen},tooltipText:n(tr)}:void 0),as=v(()=>n(gt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Rs.chromecast,buttonComponent:hc,buttonComponentProps:{state:m(),click:Rr},tooltipText:n(Dn)}:void 0),pt=v(()=>[n(Sr),n(fn),n(Tr),n(Os),n(Sn),n(Ds),n(nr),n(as),...We()].filter(ct=>!!ct).sort(Ha)),ci=J.ui.previewTrackActive,qo=J.ui.previewTrackDragInProgress,me=J.ui.previewTrackAvailable,ft=J.ui.isPreviewTrackHorizontallyAligned,Xt=v(()=>Cb({onPreviewTrackOpened:J.actions.internal.previewTrackOpened,getTimelineRef:()=>$t.timeline,isHorizontal:Ke()})),wi=v(()=>n(Xt).progressBarY),zi=v(()=>n(Xt).controlsY),oi=v(()=>n(Xt).onPointerDown),ti=v(()=>n(Xt).onPointerMove),fo=v(()=>n(Xt).onPointerUp),Bn=v(()=>n(Xt).calculatedHeight),Fn=v(()=>n(Xt).closePreviewTrack);Oe(()=>{ie()?si.set(!1):n(Fn)()});let Ei;Nt(()=>()=>Ei&&clearTimeout(Ei));let vd=ct=>{ie()||!Ye()||(n(oi)(ct),Ei=setTimeout(()=>{J.actions.internal.previewTrackDragStarted()},200))},ll=()=>{ie()||n(fo)(),Ei&&clearTimeout(Ei),Te()&&J.actions.internal.previewTrackDragFinished()},Bs=ct=>{n(ti)(ct),!ie()&&Ye()&&!ie()&&si.set(!0)},da=()=>{si.set(!1)};var ca=Dw(),mn=de(ca);let dl;var ua=T(mn);{var zr=ct=>{let mt=v(()=>n(wi)()),Wi=v(()=>n(Bn)());tv(ct,{get animatedOffsetY(){return n(mt)},get animatedPreviewTrackHeight(){return n(Wi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Tt()},onTimelineMove:Bs,onTimelinePointerDown:vd,onTimelinePointerUp:ll,onTimelinePointerLeave:da,get previewTrackAvailable(){return Ye()},get timelineRef(){return $t.timeline},set timelineRef(Qo){$t.timeline=Qo}})};V(ua,ct=>{e.showControls&&ct(zr)})}var ls=k(ua,2),Fs=T(ls),pa=T(Fs);yi(pa,17,()=>n(po),ct=>ct.id,(ct,mt)=>{pp(ct,{get buttonComponent(){return n(mt).buttonComponent},get buttonComponentProps(){return n(mt).buttonComponentProps},get tooltipText(){return n(mt).tooltipText},get disabledTooltipContent(){return n(mt).disabledTooltipContent},get disabled(){return n(mt).disabled},get className(){return n(mt).className},get tooltipEnabled(){return n(mt).tooltipEnabled},get mouseEnter(){return n(mt).mouseEnter},get mouseLeave(){return n(mt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return $t[n(mt).id]},set ref(Wi){$t[n(mt).id]=Wi}})});var cl=k(pa,2);{var ul=ct=>{let mt=v(()=>!e.showControls),Wi=v(()=>Tt()?Le():Ue()),Qo=v(()=>Tt()?Vt():et());uc(ct,{get isHidden(){return n(mt)},isMobile:!1,get showDuration(){return n(So)},get position(){return n(Wi)},get duration(){return n(Qo)},get ref(){return $t.time},set ref(Ki){$t.time=Ki}})};V(cl,ct=>{n(Vo)&&ct(ul)})}var gd=k(cl,2);let pl=v(()=>!n(Ui));Ao(gd,{className:"w-max",get disabled(){return n(pl)},get tooltipContent(){return yr},get tooltipVisible(){return e.showControls},get ref(){return $t.episodes},set ref(ct){$t.episodes=ct},children:(ct,mt)=>{var Wi=ke(),Qo=de(Wi);{var Ki=bi=>{_c(bi,{get position(){return Ue()},get duration(){return et()},get timeCodes(){return bt}})};V(Qo,bi=>{n(Ui)&&bi(Ki)})}_(ct,Wi)},$$slots:{default:!0}}),w(Fs);var fl=k(Fs,2);yi(fl,21,()=>n(pt),ct=>ct.id,(ct,mt)=>{var Wi=ke(),Qo=de(Wi);{var Ki=Vi=>{pp(Vi,{get buttonComponent(){return n(mt).buttonComponent},get buttonComponentProps(){return n(mt).buttonComponentProps},get tooltipText(){return n(mt).tooltipText},get disabledTooltipContent(){return n(mt).disabledTooltipContent},get disabled(){return n(mt).disabled},get className(){return n(mt).className},get tooltipVisible(){return e.showControls},get ref(){return $t[n(mt).id]},set ref(ma){$t[n(mt).id]=ma}})},bi=Vi=>{let ma=v(()=>!!n(mt).disabled);qm(Vi,{get id(){return n(mt).id},get testId(){return n(mt).testId},get icon(){return n(mt).icon},get ariaLabel(){return n(mt).ariaLabel},get tooltipText(){return n(mt).tooltipText},get disabledTooltipContent(){return n(mt).disabledTooltipContent},get disabled(){return n(ma)},get onClick(){return n(mt).onClick},get disableMouseupTooltipShow(){return n(mt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return $t[n(mt).id]},set ref(vl){$t[n(mt).id]=vl}})};V(Qo,Vi=>{wb(n(mt))?Vi(Ki):Vi(bi,!1)})}_(ct,Wi)}),w(fl),w(ls),ot(ls,ct=>Kt(ct),()=>Kt()),w(mn),ot(mn,ct=>Ot(ct),()=>Ot());var Cr=k(mn,2);{var hd=ct=>{yc(ct,{get ref(){return $t.interactiveTimeIndicator},set ref(mt){$t.interactiveTimeIndicator=mt}})};V(Cr,ct=>{Mr&&ct(hd)})}B((ct,mt)=>{dl=se(mn,1,"wrapper-bottom s-1e",null,dl,ct),Qe(ls,mt),ls.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Te()}),()=>`transform: translateY(${n(zi)()}px);`]),An(Fs,"clientWidth",ct=>N(wt,ct)),_(t,ca),H(),o()}var rd=require("@vkontakte/videoplayer-core/es2018");var nv=require("@vkontakte/videoplayer-shared/es2018");var Fw=L('<div class="icon icon-error-stub s-1y"><div class="inner s-1y"></div></div>'),Hw=L('<img class="icon s-1y" aria-hidden="true"/>'),Uw={hash:"s-1y",code:".icon.s-1y{height:24px!important;width:24px!important}.inner.s-1y{background-color:var(--white);height:16px;width:16px}"};function rv(t,e){q(t,Uw);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,nv.noop),r=v(()=>o()===nv.noop),s=v(()=>n(r)||i()),l=K(!1),d=()=>{N(l,!0)},a=v(()=>n(r)?"btn-full-opacity":"");Ut(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,p)=>{var m=ke(),f=de(m);{var b=$=>{var S=Fw();_($,S)},y=$=>{var S=Hw();B(()=>He(S,"src",e.iconUrl)),_t("error",S,d),Ea(S),_($,S)};V(f,$=>{n(l)?$(b):$(y,!1)})}_(u,m)},$$slots:{default:!0}})}var zw=Ee('<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 sv(t){Ze(t,{testId:"muted-icon",children:(e,i)=>{var o=zw();_(e,o)},$$slots:{default:!0}})}var Ab=require("@vkontakte/videoplayer-shared/es2018");function vp(t,e){F(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Ab.noop),r=g(e,"ref",15,void 0),l=ve().ui.t,d=v(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ut(t,{get testId(){return n(a)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,p)=>{var m=ke(),f=de(m);{var b=$=>{sv($,{})},y=$=>{sa($,{get size(){return"24"}})};V(f,$=>{i()?$(b):$(y,!1)})}_(u,m)},$$slots:{default:!0}}),H()}var Ww=Ee('<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>'),Kw=Ee('<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>'),qw=Ee('<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 av(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Ze(t,{get testId(){return n(o)},children:(r,s)=>{var l=qw(),d=k(de(l));{var a=p=>{var m=Ww();_(p,m)},u=p=>{var m=Kw();_(p,m)};V(d,p=>{i()?p(a):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}var kb=require("@vkontakte/videoplayer-shared/es2018");function lv(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,kb.noop),s=Q("menu_pip");Ut(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{av(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var dv=require("@vkontakte/videoplayer-shared/es2018");var Qw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},Gw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},Yw=L("<div><!></div>"),jw=L("<div><!></div>"),Xw=L("<div><!></div>"),Zw=L("<!> <!> <!>",1),Jw=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),eS=L('<div class="wrapper-middle s-1c"><!></div>'),tS=L("<div><!></div> <!> <div><!></div>",1),iS=L('<div aria-hidden="true">·</div> <!>',1),oS=L('<!> <!> <div><div><div class="controls mobile s-1c"><div class="controls-group contain s-1c"><!> <!> <!> <!></div> <div class="controls-group s-1c"><!> <!> <!></div></div> <!></div></div> <!>',1),nS={hash:"s-1c",code:".wrapper-bottom.s-1c{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-1c>:where(.s-1c){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-1c{height:9px;padding:0 4px 4px}.wrapper-middle.s-1c{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-1c,.wrapper-top-right.s-1c{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-1c{right:8px;top:4px}.wrapper-top-left.s-1c{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-1c,.wrapper-middle-left-second.s-1c,.wrapper-middle-right.s-1c{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-1c{left:12px}.wrapper-middle-left-second.s-1c{left:64px}.wrapper-middle-right.s-1c{right:12px}.controls.s-1c{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-1c,.controls-group.s-1c{display:flex}.controls-group.contain.s-1c{min-width:0}.controls-group.s-1c >:not(:first-child){margin-left:8px}.hidden.s-1c{opacity:0;visibility:hidden}.controls-hidden.s-1c{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1c{transition:none}.overlay-mobile.s-1c{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-1c,.wrapper-top-right.fullscreen.s-1c{top:16px}.controls-wrapper.fullscreen.s-1c{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-1c{left:44px;top:12px}.wrapper-top-right.fullscreen.s-1c{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-1c{left:44px}.wrapper-middle-left-second.fullscreen.s-1c{left:96px}.wrapper-middle-right.fullscreen.s-1c{right:44px}.controls-wrapper.fullscreen.s-1c{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function cv(t,e){var un,ns;F(e,!0),q(t,nS);let[i,o]=Ve(),r=()=>x(ki,"$seekToInteractiveDisabledTooltip$",i),s=()=>x(jt,"$disabledControls$",i),l=()=>x(Dt,"$playbackState$",i),d=()=>x(on,"$adPlaybackState",i),a=()=>x(J,"$isEnded$",i),u=()=>x(Et,"$playerSize",i),p=()=>x(vt,"$scrubbingInProgress",i),m=()=>x(St,"$chromecastState$",i),f=()=>x(Je,"$isPictureInPictureActive",i),b=()=>x(ze,"$pictureInPictureType$",i),y=()=>x($e,"$mobileNotReportControlHidden$",i),$=()=>x(ut,"$chromecastHidden",i),S=()=>x(Kt,"$playerPhase",i),C=()=>x(_o,"$pipHidden",i),I=()=>x(je,"$currentGridType$",i),R=()=>x(hi,"$vkLogoHidden",i),E=()=>x(pi,"$volumeHidden",i),P=()=>x(xe,"$isLive$",i),O=()=>x(nt,"$settingsMenuVisible",i),D=()=>x(st,"$isRewindableLive$",i),U=()=>x(Me,"$isActiveLive$",i),z=()=>x(ye,"$isAudioAvailable$",i),G=()=>x(It,"$muted$",i),le=()=>x(Pe,"$volume$",i),X=()=>x(lt,"$isInteractiveTime$",i),oe=()=>x(Ro,"$settingButtonRef$",i),j=()=>x(bt,"$startedByKeyboard$",i),ge=()=>x($n,"$isFullscreen",i),ce=()=>x(Bt,"$additionalButtons$",i),re=()=>x(to,"$autoplayNextToggleHidden",i),_e=()=>x(ii,"$crashed$",i),we=()=>x(di,"$settingsHidden",i),Z=()=>x(nn,"$graphIsOpened$",i),Re=()=>x(io,"$adPosition",i),ue=()=>x($i,"$adDuration",i),A=()=>x(Zt,"$position$",i),We=()=>x(Tt,"$duration$",i),Ce=g(e,"playerControlsWrapperRef",15,void 0),Y=g(e,"playerControlsRef",15,void 0),ie=g(e,"isAds",3,!1),Ne=g(e,"logoTargetUrl",3,""),De=g(e,"isOneVideoPlaylist",3,!1),fe=g(e,"customFullscreenSupported",3,!0),ee=ve(),Se=wo(),Be=Mt(),Ke=ee.actions.internal.toggleMuted,Ye=ee.actions.internal.togglePlay,Te=ee.actions.internal.pause,Le=ee.actions.internal.prevVideoClick,Ue=ee.actions.internal.nextVideoClick,Vt=ee.actions.internal.checkFullscreenSupport,et=(un=ee.callbacks)==null?void 0:un.onAudioDoesNotExistHint,Ot=(ns=ee.callbacks)==null?void 0:ns.onAudioDisabledHint,Kt=ee.playerPhase,Tt=ee.state.duration$,Zt=ee.state.positionWithScrubbing$,Dt=ee.state.playbackState$,ye=ee.state.isAudioAvailable$,be=ee.state.isAudioDisabled,J=ee.state.isEnded$,xe=ee.state.isLive$,Pe=ee.state.volume$,It=ee.state.muted$,Me=ee.state.isActiveLive$,st=ee.state.isRewindableLive$,vt=ee.ui.scrubbingInProgress,$e=ee.ui.mobileNotReportControlHidden$,{isActive$:Je,type$:ze}=Se.pictureInPicture$,nt=ee.ui.settingsMenu.visible$,Jt=ee.ui.settingsMenu.openedByBtnKeyboard$,ri=ee.ui.controls,{volume:pi,vkLogo:hi,autoplayNextToggle:to,pip:_o,settings:di,chromecast:ut}=ee.ui.hiddenControls,Ii=ee.actions.internal.getVideoEpisodes(),Yt=ee.webApi.pictureInPictureApi,St=ee.state.chromecastState$,ii=ee.state.crashed$,jt=ri.disabledControls$,bt=ee.ui.startedByKeyboard$,je=ee.ui.currentGridType$,$i=ee.ads.duration,io=ee.ads.position,on=ee.ads.playbackState,$n=ee.ui.isFullscreen,Et=ee.ui.playerSize,Bt=ee.ui.additionalButtonsDeprecated$,W=ee.actions.internal.getVideoElement,kt=ee.actions.internal.replayInteractive,si=ee.state.isInteractive,lt=ee.state.isInteractiveTime$,Ct=ee.state.showInteractiveGraph,Qt=ee.state.showSeekToInteractive,dt=ee.state.showPlayPrevChapter,Ai=ee.state.showInteractiveTimeIndicator,ki=Se.seekToInteractiveDisabledTooltip$,nn=Se.graphIsOpened$,Lo=ee.ui.controlBlocks,bo=v(()=>Q(ee.state.playPrevChapterDisabledTooltip)),Fi=v(()=>Q(r())),fr=v(()=>s().has("EPISODE_BUTTON")),oo=v(()=>s().has("GRAPH_BUTTON")),$o=v(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Hi=v(()=>s().has("PLAY_BUTTON")),rn=v(()=>s().has("REPLAY_BUTTON")),sn=v(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Gn=v(()=>l()===rd.PlaybackState.PLAYING),mr=v(()=>d()==="paused"),Mr=v(()=>a()&&!ie()&&!si),bs=v(()=>!a()||ie()),ts=v(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),is=v(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),Yn=v(()=>u().width>300),an=v(()=>u().width>400),Mo=v(p),ln=v(()=>m()!==rd.ChromecastState.NOT_AVAILABLE&&!(f()&&b()===1)&&!y()&&!si&&!$()),jn=v(()=>S()==="LiveWaitingStart"),Rn=v(()=>!!Yt&&m()!==rd.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(jn)||!n(jn))&&!n(Mo)&&!si&&!C()),Vr=K(!1);Nt(()=>{let qe=Yt==null?void 0:Yt.info.isActive$.subscribe(Lt=>N(Vr,Lt,!0));return()=>qe==null?void 0:qe.unsubscribe()});let Rr=v(()=>!n(Mo)&&Zi(I(),"s")),os=v(()=>!e.logoHidden&&u().width>350&&!R()),vr=v(()=>Be.features.fullscreen&&Vt()&&!(f()&&b()===1)&&(si?fe():!0)&&!n(Mo)&&!n(Vr)),no=v(()=>!E()&&!n(Mo)),gr=v(()=>(!P()||ie())&&u().width>260&&!n(Mo)&&!(Be.features.interactiveHideTime&&si)),Xn=v(()=>O()||e.showControls),yn=v(()=>!ie()&&!P()&&!!(Ii!=null&&Ii.length)&&n(Yn)&&!n(fr)&&!n(Mo)),ro=v(()=>!D()||!!U()),Nr=v(()=>Ct&&Zi(I(),"m")),Nn=v(()=>!z()||G()||le()===0),gt=ai({}),ei=ai({}),Zn=(0,dv.debounceFn)(id,260),hr=(0,dv.debounceFn)(fp,260);Oe(()=>{u(),X(),Zn(W(),ri,gt,e.showControls),hr(W(),Lo,ei,e.showControls)});let Or=()=>ee.actions.internal.toggleChromecast();async function xn(){Yt!=null&&Yt.isActive()?await(Yt==null?void 0:Yt.exit()):await(Yt==null?void 0:Yt.request())}function _r(){oa({isAudioDisabled:be,audioDisabledHintCallback:Ot,isAudioAvailable:z(),audioIsNotExistHintCallback:et,isAds:ie()})&&Ke()}let Vo=K(""),dn=(qe,Lt)=>{if(!qe){N(Vo,Q("tooltip_live"),!0);return}Lt&&Lt===rd.PlaybackState.PAUSED&&N(Vo,Q("tooltip_play"),!0)};Oe(()=>{dn(n(ro),l())});let Ro=ae();Oe(()=>{oe()&&Ql(oe(),O(),Jt)}),Oe(()=>{up(bt,j(),gt.playButton)});var Jn=oS(),Ui=de(Jn);{var No=qe=>{var Lt=Jw(),_i=de(Lt);let So;var To=k(_i,2);let Ho;ot(To,pt=>ei.topLeft=pt,()=>ei==null?void 0:ei.topLeft);var uo=k(To,2);let Mi;var Uo=T(uo);yi(Uo,1,ce,({iconUrl:pt,ariaLabel:ci,testId:qo,onClick:me,tooltip:ft})=>pt,(pt,ci)=>{let qo=()=>n(ci).iconUrl,me=()=>n(ci).ariaLabel,ft=()=>n(ci).testId,Xt=()=>n(ci).onClick,wi=()=>n(ci).tooltip,zi=v(()=>{var oi;return(oi=me())!=null?oi:wi()});rv(pt,{get iconUrl(){return qo()},get ariaLabel(){return n(zi)},get testId(){return ft()},get onClick(){return Xt()}})});var zo=k(Uo,2);{var yo=pt=>{Sc(pt,{get ref(){return gt.autoplayNextToggle},set ref(ci){gt.autoplayNextToggle=ci}})};V(zo,pt=>{e.showAutoplayNext&&!De()&&!re()&&pt(yo)})}var Wo=k(zo,2);{var pn=pt=>{hc(pt,{isMobile:!0,click:Or,get state(){return m()},get ref(){return gt.chromecast},set ref(ci){gt.chromecast=ci}})};V(Wo,pt=>{n(ln)&&pt(pn)})}var yr=k(Wo,2);{var xr=pt=>{lv(pt,{click:xn,get isPictureInPictureActive(){return f()},get ref(){return gt.pip},set ref(ci){gt.pip=ci}})};V(yr,pt=>{n(Rn)&&pt(xr)})}var wr=k(yr,2);{var rs=pt=>{Zl(pt,{get ref$(){return Ro}})};V(wr,pt=>{_e()&&!we()&&pt(rs)})}var ss=k(wr,2);{var Xe=pt=>{vc(pt,{get click(){return Te},get targetUrl(){return Ne()},get logoClickable(){return e.logoClickable},get ref(){return gt.vkLogo},set ref(ci){gt.vkLogo=ci}})};V(ss,pt=>{n(os)&&pt(Xe)})}w(uo),ot(uo,pt=>ei.topRight=pt,()=>ei==null?void 0:ei.topRight);var zt=k(uo,2);let xi;var Ko=T(zt);{var po=pt=>{let ci=v(()=>Le.bind(null,!0));Ga(pt,{get click(){return n(ci)},type:"prev",isMobile:!0,get ref(){return gt.prevButton},set ref(qo){gt.prevButton=qo}})};V(Ko,pt=>{n(ts)&&pt(po)})}var Sr=k(Ko,2);{var fn=pt=>{nd(pt,{get disabled(){return n(Hi)},get click(){return Ye},isMobile:!0,get isPlaying(){return n(Gn)},get ref(){return gt.playButton},set ref(ci){gt.playButton=ci}})};V(Sr,pt=>{n(bs)&&pt(fn)})}var Tr=k(Sr,2);{var Os=pt=>{od(pt,{get disabled(){return n(rn)},get click(){return Ye},isMobile:!0,get ref(){return gt.replayButton},set ref(ci){gt.replayButton=ci}})};V(Tr,pt=>{n(Mr)&&pt(Os)})}var Sn=k(Tr,2);{var Ds=pt=>{let ci=v(()=>Ue.bind(null,!0));Ga(pt,{get click(){return n(ci)},type:"next",isMobile:!0,get ref(){return gt.nextButton},set ref(qo){gt.nextButton=qo}})};V(Sn,pt=>{n(is)&&pt(Ds)})}w(zt),ot(zt,pt=>ei.middle=pt,()=>ei==null?void 0:ei.middle);var nr=k(zt,2);{var as=pt=>{var ci=Zw(),qo=de(ci);{var me=oi=>{var ti=Yw();let fo;ti.__click=[Qw,sn,e,bo];var Bn=T(ti);let Fn=v(()=>!e.showControls);wc(Bn,{get hidden(){return n(Fn)},get disabled(){return n(sn)},get click(){return e.playPrevChapter},get ref(){return gt.playPrevChapterButton},set ref(Ei){gt.playPrevChapterButton=Ei}}),w(ti),B(Ei=>fo=se(ti,1,"wrapper-middle-left s-1c",null,fo,Ei),[()=>({fullscreen:ge(),hidden:!e.showControls})]),_(oi,ti)};V(qo,oi=>{dt&&oi(me)})}var ft=k(qo,2);{var Xt=oi=>{var ti=jw();let fo;var Bn=T(ti);let Fn=v(()=>!e.showControls&&!Z());Cc(Bn,{get hidden(){return n(Fn)},get disabled(){return n(oo)},get click(){return nn.toggle},get graphIsOpened(){return Z()},get ref(){return gt.interactiveGraphButton},set ref(Ei){gt.interactiveGraphButton=Ei}}),w(ti),B(Ei=>fo=se(ti,1,Hd(dt?"wrapper-middle-left-second":"wrapper-middle-left"),"s-1c",fo,Ei),[()=>({fullscreen:ge(),hidden:!e.showControls&&!Z()})]),_(oi,ti)};V(ft,oi=>{n(Nr)&&oi(Xt)})}var wi=k(ft,2);{var zi=oi=>{var ti=Xw();let fo;ti.__click=[Gw,$o,e,Fi];var Bn=T(ti);let Fn=v(()=>!e.showControls);Tc(Bn,{get hidden(){return n(Fn)},get disabled(){return n($o)},get click(){return e.seekToInteractive},get ref(){return gt.seekToInteractiveButton},set ref(Ei){gt.seekToInteractiveButton=Ei}}),w(ti),B(Ei=>fo=se(ti,1,"wrapper-middle-right s-1c",null,fo,Ei),[()=>({fullscreen:ge(),hidden:!e.showControls})]),_(oi,ti)};V(wi,oi=>{Qt&&oi(zi)})}_(pt,ci)};V(nr,pt=>{si&&!p()&&pt(as)})}B((pt,ci,qo,me)=>{So=se(_i,1,"overlay-mobile s-1c",null,So,pt),Ho=se(To,1,"wrapper-top-left s-1c",null,Ho,ci),Mi=se(uo,1,"wrapper-top-right s-1c",null,Mi,qo),xi=se(zt,1,"wrapper-middle s-1c",null,xi,me)},[()=>({hidden:!n(Xn)}),()=>({hidden:!e.showControls,fullscreen:ge()}),()=>({hidden:!e.showControls&&!y(),fullscreen:ge()}),()=>({hidden:!e.showControls||p()||e.endScreenShown&&e.showNextPrevButtons})]),_(qe,Lt)};V(Ui,qe=>{ie()||qe(No)})}var er=k(Ui,2);{var Dr=qe=>{var Lt=tS(),_i=de(Lt);let So;var To=T(_i);vp(To,{get muted(){return G()},click:_r,get ref(){return gt.volume},set ref(yo){gt.volume=yo}}),w(_i);var Ho=k(_i,2);{var uo=yo=>{var Wo=eS(),pn=T(Wo);let yr=v(()=>!n(mr));nd(pn,{get disabled(){return n(Hi)},get click(){return Ye},isMobile:!0,get isPlaying(){return n(yr)},get ref(){return gt.playButton},set ref(xr){gt.playButton=xr}}),w(Wo),_(yo,Wo)};V(Ho,yo=>{n(mr)&&yo(uo)})}var Mi=k(Ho,2);let Uo;var zo=T(Mi);Ec(zo,{get position(){return Re()},get duration(){return ue()}}),w(Mi),B((yo,Wo)=>{So=se(_i,1,"wrapper-top-right s-1c",null,So,yo),Uo=se(Mi,1,"wrapper-bottom ads-timeline-mobile s-1c",null,Uo,Wo)},[()=>({fullscreen:ge()}),()=>({fullscreen:ge()})]),_(qe,Lt)};V(er,qe=>{ie()&&d()!=="inactive"&&qe(Dr)})}var so=k(er,2);let On;var Oo=T(so);let Br;var tr=T(Oo),Dn=T(tr),Fr=T(Dn);{var wt=qe=>{Ao(qe,{get disabled(){return n(rn)},get ref(){return gt.replayButton},set ref(Lt){gt.replayButton=Lt},children:(Lt,_i)=>{od(Lt,{get disabled(){return n(rn)},get click(){return kt}})},$$slots:{default:!0}})};V(Fr,qe=>{si&&qe(wt)})}var $t=k(Fr,2);{var ao=qe=>{Ao(qe,{get ref(){return gt.liveButton},set ref(Lt){gt.liveButton=Lt},children:(Lt,_i)=>{Ic(Lt,{get isLiveActive(){return n(ro)},isMobile:!0,get ariaLabel(){return n(Vo)}})},$$slots:{default:!0}})};V($t,qe=>{!ie()&&P()&&qe(ao)})}var Li=k($t,2);{var lo=qe=>{let Lt=v(()=>ie()?Re():A()),_i=v(()=>ie()?ue():We()),So=v(()=>!e.showControls);uc(qe,{get showDuration(){return n(an)},get position(){return n(Lt)},get duration(){return n(_i)},isMobile:!0,get isHidden(){return n(So)},get ref(){return gt.time},set ref(To){gt.time=To}})};V(Li,qe=>{n(gr)&&qe(lo)})}var Do=k(Li,2);let Bo=v(()=>!n(yn));Ao(Do,{className:"w-max",get disabled(){return n(Bo)},get ref(){return gt.episodes},set ref(qe){gt.episodes=qe},children:(qe,Lt)=>{var _i=ke(),So=de(_i);{var To=Ho=>{var uo=iS(),Mi=k(de(uo),2);_c(Mi,{get position(){return A()},get duration(){return We()},get timeCodes(){return Ii}}),_(Ho,uo)};V(So,Ho=>{n(yn)&&Ho(To)})}_(qe,_i)},$$slots:{default:!0}}),w(Dn),ot(Dn,qe=>ei.bottomLeft=qe,()=>ei==null?void 0:ei.bottomLeft);var co=k(Dn,2),Ci=T(co);{var Hr=qe=>{Ao(qe,{get ref(){return gt.volume},set ref(Lt){gt.volume=Lt},children:(Lt,_i)=>{vp(Lt,{get muted(){return n(Nn)},click:_r})},$$slots:{default:!0}})};V(Ci,qe=>{n(no)&&qe(Hr)})}var ir=k(Ci,2);{var Fo=qe=>{Ao(qe,{get ref(){return gt.settings},set ref(Lt){gt.settings=Lt},children:(Lt,_i)=>{Zl(Lt,{get ref$(){return Ro}})},$$slots:{default:!0}})};V(ir,qe=>{n(Rr)&&qe(Fo)})}var br=k(ir,2);{var or=qe=>{Ao(qe,{get ref(){return gt.fullscreen},set ref(Lt){gt.fullscreen=Lt},children:(Lt,_i)=>{mc(Lt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ge()}})},$$slots:{default:!0}})};V(br,qe=>{n(vr)&&qe(or)})}w(co),ot(co,qe=>ei.bottomRight=qe,()=>ei==null?void 0:ei.bottomRight),w(tr),ot(tr,qe=>Y(qe),()=>Y());var $r=k(tr,2);let wn=v(()=>!e.showControls);ja($r,{get isHidden(){return n(wn)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return D()},get ref(){return gt.timeline},set ref(qe){gt.timeline=qe}}),w(Oo),ot(Oo,qe=>ei.bottom=qe,()=>ei==null?void 0:ei.bottom),w(so),ot(so,qe=>Ce(qe),()=>Ce());var cn=k(so,2);{var Ur=qe=>{yc(qe,{get ref(){return gt.interactiveTimeIndicator},set ref(Lt){gt.interactiveTimeIndicator=Lt}})};V(cn,qe=>{Ai&&qe(Ur)})}B((qe,Lt)=>{On=se(so,1,"wrapper-bottom mobile s-1c",null,On,qe),Br=se(Oo,1,"controls-wrapper s-1c",null,Br,Lt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ge()})]),_(t,Jn),H(),o()}rt(["click"]);function Pc(t,e){F(e,!0);let[i,o]=Ve(),r=()=>x(C,"$isMobile",i),s=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),a=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),p=g(e,"showAutoplayNext",3,!1),m=g(e,"isOneVideoPlaylist",3,!1),f=g(e,"customFullscreenSupported",3,!0),b=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,uv.noop),$=g(e,"onDisabledSeekToInteractiveClick",3,uv.noop),C=ve().ui.isMobile,I=K(!1);Nt(()=>{let O=setTimeout(()=>N(I,!0),0);return()=>clearTimeout(O)});var R=ke(),E=de(R);{var P=O=>{var D=ke(),U=de(D);{var z=le=>{cv(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return m()},get customFullscreenSupported(){return f()},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(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},G=le=>{ov(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return m()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return f()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})};V(U,le=>{r()?le(z):le(G,!1)})}_(O,D)};V(E,O=>{n(I)&&O(P)})}_(t,R),H(),o()}var rS=Ee('<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 Ac(t,e){F(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${_n(e.size)}${n(i)}`);Ze(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,s)=>{var l=rS();_(r,l)},$$slots:{default:!0}}),H()}var sS=Ee('<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 pv(t,e){F(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=v(()=>`seek-icon-${i()?"backward":"forward"}`);Ze(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:(s,l)=>{var d=sS();_(s,d)},$$slots:{default:!0}}),H()}var aS=L('<span class="hot-key-helpers-text s-z"> </span>'),lS=L('<div data-testid="hotkey-helper-icon" class="s-z"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),dS=L("<div><!></div>"),cS={hash:"s-z",code:'.hot-key-helpers-container.s-z{align-items:center;animation:s-z-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-z{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-z{left:calc(75% - 100px)}.hot-key-helpers-text.s-z{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-z{animation:s-z-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-z-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-z-fadeOut{0%{opacity:1}to{opacity:0}}'};function fv(t,e){F(e,!0),q(t,cS);let[i,o]=Ve(),r=()=>x(e.data,"$data",i),s=ve(),{features:l}=Mt(),d=s.ui.t,a=v(()=>!r()),u=v(()=>{var C;return((C=r())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=r())==null?void 0:C.type)==="FORWARD_SEEK"}),m=v(()=>{var C;return(C=r())==null?void 0:C.type}),f=v(()=>{var C,I;return(C=r())!=null&&C.t?d(r().t.key,{value:r().t.value||""}):(I=r())==null?void 0:I.text});var b=dS();let y;var $=T(b);{var S=C=>{var I=lS(),R=de(I),E=T(R);{var P=Y=>{let ie=v(()=>n(m)==="BACKWARD_SEEK");pv(Y,{get reversed(){return n(ie)},shadow:!0})};V(E,Y=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(m))&&Y(P)})}var O=k(E,2);{var D=Y=>{Vs(Y,{get size(){return"48"},shadow:!0})};V(O,Y=>{n(m)==="PAUSE"&&!l.playbackStatusShow&&Y(D)})}var U=k(O,2);{var z=Y=>{Ln(Y,{get size(){return"48"},shadow:!0})};V(U,Y=>{n(m)==="PLAY"&&!l.playbackStatusShow&&Y(z)})}var G=k(U,2);{var le=Y=>{xc(Y,{get size(){return"48"},shadow:!0})};V(G,Y=>{n(m)==="REPLAY"&&!l.playbackStatusShow&&Y(le)})}var X=k(G,2);{var oe=Y=>{ra(Y,{get size(){return"48"},type:"off",shadow:!0})};V(X,Y=>{n(m)==="SUBTITLES_OFF"&&Y(oe)})}var j=k(X,2);{var ge=Y=>{ra(Y,{get size(){return"48"},shadow:!0})};V(j,Y=>{n(m)==="SUBTITLES_ON"&&Y(ge)})}var ce=k(j,2);{var re=Y=>{let ie=v(()=>n(m)==="RATE_DOWN");Ac(Y,{get size(){return"48"},get reversed(){return n(ie)},testId:"rate-change-icon",shadow:!0})};V(ce,Y=>{["RATE_DOWN","RATE_UP"].includes(n(m))&&Y(re)})}var _e=k(ce,2);{var we=Y=>{let ie=v(()=>n(m)==="EPISODE_PREV");aa(Y,{get size(){return"48"},get reversed(){return n(ie)},shadow:!0})};V(_e,Y=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(m))&&Y(we)})}var Z=k(_e,2);{var Re=Y=>{sa(Y,{get size(){return"48"},volume:0,shadow:!0})};V(Z,Y=>{n(m)==="MUTE"&&Y(Re)})}var ue=k(Z,2);{var A=Y=>{sa(Y,{get size(){return"48"},volume:1,shadow:!0})};V(ue,Y=>{n(m)==="VOLUME"&&Y(A)})}w(R);var We=k(R,2);{var Ce=Y=>{var ie=aS(),Ne=T(ie,!0);w(ie),B(()=>pe(Ne,n(f))),_(Y,ie)};V(We,Y=>{n(f)&&Y(Ce)})}B(()=>He(R,"data-type",n(m))),_(C,I)};V($,C=>{!n(a)&&n(m)&&C(S)})}w(b),B(C=>y=se(b,1,"hot-key-helpers-container s-z",null,y,C),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(p)})]),_(t,b),H(),o()}var uS=(t,e,i,o,r,s)=>{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":s();break}},pS=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},fS=L('<div tabindex="0" role="button"><div class="button-block s-u" aria-hidden="true"><div class="button-row s-u"><div class="button button-up s-u"><!></div> <div class="button button-right s-u"><!></div></div> <div class="button-row s-u"><div class="button button-left s-u"><!></div> <div class="button button-down s-u"><!></div></div></div></div>'),mS={hash:"s-u",code:".immersive-controls.s-u{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-u{left:20px;top:50px}.button-block.s-u{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-u{display:flex;flex-direction:row;position:relative}.button.s-u{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-u svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-u svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-u svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-u svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-u svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-u:hover svg{opacity:1}"};function kc(t,e){F(e,!0),q(t,mS);let i=g(e,"isShifted",3,!1),o=ve(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),p=Q("aria_label_spherical_control");var m=fS();let f;m.__keydown=[uS,r,s,l,a,d],m.__keyup=[pS,r,u];var b=T(m),y=T(b),$=T(y);$.__mousedown=s,$.__mouseup=u;var S=T($);kr(S,{direction:"up",useBtnColor:!0}),w($);var C=k($,2);C.__mousedown=d,C.__mouseup=u;var I=T(C);kr(I,{direction:"up",useBtnColor:!0}),w(C),w(y);var R=k(y,2),E=T(R);E.__mousedown=a,E.__mouseup=u;var P=T(E);kr(P,{direction:"up",useBtnColor:!0}),w(E);var O=k(E,2);O.__mousedown=l,O.__mouseup=u;var D=T(O);kr(D,{direction:"up",useBtnColor:!0}),w(O),w(R),w(b),w(m),B(U=>{f=se(m,1,"immersive-controls s-u",null,f,U),He(m,"aria-label",p)},[()=>({"m-shifted":i()})]),_t("mouseleave",$,u),_t("mouseleave",C,u),_t("mouseleave",E,u),_t("mouseleave",O,u),_(t,m),H()}rt(["keydown","keyup","mousedown","mouseup"]);var Ns=require("@vkontakte/videoplayer-shared/es2018");var Lb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var gp=class{constructor(){this.flickeringTimeout=Lb(1e3);this.subscriptions=new Ns.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ns.ValueSubject([]);this.captionsPrepared$=new Ns.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ns.filter)(()=>this.isEnabled()),(0,Ns.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:s,value:l},d)=>(o&&!d||(s==="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 vS=L('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),gS=L('<span class="caption-line s-b"><span class="caption-segment s-b"></span></span>'),hS=L('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),_S=L('<div><span class="caption s-b"><!></span></div>'),bS=L("<div><!></div>"),$S={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 Ja(t,e){F(e,!0),q(t,$S);let[i,o]=Ve(),r=()=>x(f,"$currentSubtitle$",i),s=()=>x(y,"$isLive$",i),l=()=>x($,"$isFullscreen",i),d=()=>x(S,"$previewTrackActive",i),a=()=>x(b,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),p=ve(),m=Mt(),f=p.state.currentSubtitle$,b=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,$=p.ui.isFullscreen,S=p.ui.previewTrackActive,C=v(()=>!!r().isAuto),I=v(()=>!!s()),R=v(()=>e.playerSize.width*.02),E=v(()=>u()&&!l()||n(R)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:n(R)),P=K(null);Oe(()=>{var X,oe,j;(X=n(P))==null||X.setIsAuto(n(C)),(oe=n(P))==null||oe.setIsLive(n(I)),(j=n(P))==null||j.setCaptions(e.captions)});let O=K(ai([[]]));Nt(()=>{N(P,new gp().subscribe(),!0);let X=n(P).captionsPrepared$.subscribe(oe=>{N(O,oe,!0)});return()=>{var oe;(oe=n(P))==null||oe.destroy(),X.unsubscribe()}}),Nt(()=>{if(n(C)){let X=window.setTimeout(()=>{b.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else b.set(!1)});let D=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var U=bS();let z;var G=T(U);{var le=X=>{var oe=_S();let j;var ge=T(oe),ce=T(ge);{var re=we=>{var Z=vS(),Re=T(Z),ue=T(Re,!0);w(Re),w(Z),B(A=>{var We;Qe(Re,`font-size: ${(We=n(E))!=null?We:""}px`),pe(ue,A)},[()=>Q("subtitles_auto_caption")]),_(we,Z)},_e=(we,Z)=>{{var Re=A=>{var We=ke(),Ce=de(We);yi(Ce,17,()=>n(O),Bd,(Y,ie)=>{var Ne=gS(),De=T(Ne);yi(De,21,()=>n(ie),({value:fe,timeAppeared:ee})=>ee,(fe,ee)=>{let Se=()=>n(ee).value,Be=()=>n(ee).timeAppeared;var Ke=ke(),Ye=de(Ke);{var Te=Le=>{var Ue=ms();B(()=>pe(Ue,Se())),_(Le,Ue)};V(Ye,Le=>{(!Be()||Be()<=e.position)&&Le(Te)})}_(fe,Ke)}),w(De),w(Ne),B(()=>{var fe;return Qe(De,`font-size: ${(fe=n(E))!=null?fe:""}px`)}),_(Y,Ne)}),_(A,We)},ue=A=>{var We=ke(),Ce=de(We);yi(Ce,17,()=>e.captions,({value:Y})=>Y,(Y,ie)=>{let Ne=()=>n(ie).value;var De=hS(),fe=T(De),ee=T(fe,!0);w(fe),w(De),B(()=>{var Se;Qe(fe,`font-size: ${(Se=n(E))!=null?Se:""}px`),pe(ee,Ne())}),_(Y,De)}),_(A,We)};V(we,A=>{var We;n(C)&&((We=n(O))!=null&&We.length)?A(Re):A(ue,!1)},Z)}};V(ce,we=>{n(C)&&a()?we(re):we(_e,!1)})}w(ge),w(oe),B(we=>{var Z;j=se(oe,1,"subtitles-caption s-b",null,j,we),Qe(oe,`--subtitles-caption-margin: ${(Z=n(D))!=null?Z:""}%`)},[()=>({mobile:u()})]),_(X,oe)};V(G,X=>{var oe;(e.captions.length||(oe=n(O))!=null&&oe.length)&&X(le)})}w(U),B(X=>z=se(U,1,"subtitles-container s-b",null,z,X),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(C)&&!n(I)&&!a()})]),_(t,U),H(),o()}var Mb=require("@vkontakte/videoplayer-core/es2018");var yS=L('<div class="text s-t"> </div>'),xS=L('<div><div class="icon_wrapper s-t"><!></div> <!></div>'),wS={hash:"s-t",code:".wrapper.s-t{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-t{background-size:cover}.icon_wrapper.s-t{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-t{margin-top:20px}"};function Lc(t,e){F(e,!0),q(t,wS);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Mt();var r=xS();let s;var l=T(r),d=T(l);gc(d,{get size(){return"48"},get iconState(){return Mb.ChromecastState.CONNECTED}}),w(l);var a=k(l,2);{var u=p=>{var m=yS(),f=T(m);w(m),B(()=>{var b;return pe(f,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),_(p,m)};V(a,p=>{i()&&p(u)})}w(r),B(p=>{s=se(r,1,"wrapper s-t",null,s,p),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})]),_(t,r),H()}var SS=Ee('<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 mv(t){Ze(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=SS();_(e,o)},$$slots:{default:!0}})}var TS=L('<div class="container s-5"><!></div>'),CS={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 el(t){q(t,CS);var e=TS(),i=T(e);mv(i,{}),w(e),_(t,e)}var IS=L('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),ES=L("<div><!></div>"),PS={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 tl(t,e){F(e,!0),q(t,PS);let i=g(e,"iconVisible",3,!0),o=ve(),r=Mt(),s=o.ui.startedByKeyboard$,l=Q("tooltip_play"),d=b=>{var $;let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),s.set(!0),($=e.startVideo)==null||$.call(e))},a=b=>{var y,$;b.stopPropagation(),(y=e.startVideo)==null||y.call(e),($=e.onClick)==null||$.call(e,b)};var u=ES();let p;u.__click=a,u.__contextmenu=function(...b){var y;(y=e.onContextMenu)==null||y.apply(this,b)};var m=T(u);{var f=b=>{var y=IS();y.__keydown=d;var $=k(T(y),2);Ln($,{get size(){return"48"}}),w(y),B(()=>He(y,"aria-label",l)),_(b,y)};V(m,b=>{i()&&b(f)})}return w(u),B(b=>{p=se(u,1,"container s-a",null,p,b),Qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),_(t,u),H({handlePressKey:d,handleClick:a})}rt(["click","contextmenu","keydown"]);var AS=L('<div data-testid="video_title"><span> </span></div>'),kS={hash:"s-12",code:".title.s-12{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;color:var(--white);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}.hidden.s-12{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function vv(t,e){F(e,!0),q(t,kS);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),s=K(void 0);Nt(()=>{var m;requestAnimationFrame(()=>{var f;(f=e.onVisibilityChanged)==null||f.call(e,!0)});function p(f){var b;f.propertyName==="transform"&&((b=e.onVisibilityChanged)==null||b.call(e,!o()))}return(m=n(s))==null||m.addEventListener("transitionend",p),()=>{var f;return(f=n(s))==null?void 0:f.removeEventListener("transitionend",p)}});var l=AS();let d;var a=T(l),u=T(a,!0);w(a),ot(a,p=>r(p),()=>r()),w(l),ot(l,p=>N(s,p),()=>n(s)),B(p=>{d=se(l,1,"title s-12",null,d,p),pe(u,i())},[()=>({hidden:o()})]),_(t,l),H()}var Vb=require("@vkontakte/videoplayer-shared/es2018");var LS=L('<div class="timer__cell cell s-1f"><span class="cell__value s-1f"> </span> <span class="cell__unit s-1f"> </span></div> <span class="timer__points s-1f"> </span>',1),MS=L('<div class="timer__cell cell s-1f"><span class="cell__value s-1f"> </span> <span class="cell__unit s-1f"> </span></div> <span class="timer__points s-1f"> </span>',1),VS=L('<div class="timer__cell cell s-1f"><span class="cell__value s-1f"> </span> <span class="cell__unit s-1f"> </span></div> <span class="timer__points s-1f"> </span>',1),RS=L('<div class="timer__cell cell s-1f"><span class="cell__value s-1f"> </span> <span class="cell__unit s-1f"> </span></div>'),NS=L("<div><!> <!> <!> <!></div>"),OS={hash:"s-1f",code:".timer__container.s-1f{align-items:flex-start;display:flex;justify-content:center}.cell.s-1f{align-items:center;display:flex;flex-direction:column}.cell__value.s-1f{font-size:48px;font-weight:600;line-height:1.2}.small.s-1f .cell__value:where(.s-1f){font-size:24px}.cell__unit.s-1f{font-size:14px;font-weight:400;line-height:1.2}.small.s-1f .cell__unit:where(.s-1f){font-size:12px}.timer__points.s-1f{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1f .timer__points:where(.s-1f){font-size:20px}"};function gv(t,e){F(e,!0),q(t,OS);let i=K(""),o=K(""),r=K(""),s=K(""),l,d=32,a=d/2,u=U=>String(U).padStart(2,"0"),p=U=>Math.max(U.length,1),m=U=>`${(e.isSmallSize?a:d)*p(U)}px`,f=U=>{let z=Math.floor(U/86400);z&&(U-=z*86400,N(i,u(z),!0));let G=Math.floor(U/3600);N(o,u(G),!0);let le=Math.floor(U/60)%60;N(r,u(le),!0);let X=U%60;N(s,u(X),!0)},b=()=>{let U=Math.floor(Date.now()/1e3),z=e.startTime-U;f(z),z>=1?l=requestAnimationFrame(b):e.onTimerOver()};Nt(()=>{l=requestAnimationFrame(b)}),hn(()=>{cancelAnimationFrame(l)});var y=NS();let $;var S=T(y);{var C=U=>{var z=LS(),G=de(z);let le;var X=T(G),oe=T(X,!0);w(X);var j=k(X,2),ge=T(j,!0);w(j),w(G);var ce=k(G,2),re=T(ce,!0);w(ce),B((_e,we,Z)=>{le=Qe(G,"",le,{width:_e}),pe(oe,n(i)),pe(ge,we),pe(re,Z)},[()=>m(n(i)),()=>Q("waiting_live_day_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(S,U=>{n(i)&&U(C)})}var I=k(S,2);{var R=U=>{var z=MS(),G=de(z);let le;var X=T(G),oe=T(X,!0);w(X);var j=k(X,2),ge=T(j,!0);w(j),w(G);var ce=k(G,2),re=T(ce,!0);w(ce),B((_e,we,Z)=>{le=Qe(G,"",le,{width:_e}),pe(oe,n(o)),pe(ge,we),pe(re,Z)},[()=>m(n(o)),()=>Q("waiting_live_hour_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(I,U=>{n(o)&&U(R)})}var E=k(I,2);{var P=U=>{var z=VS(),G=de(z);let le;var X=T(G),oe=T(X,!0);w(X);var j=k(X,2),ge=T(j,!0);w(j),w(G);var ce=k(G,2),re=T(ce,!0);w(ce),B((_e,we,Z)=>{le=Qe(G,"",le,{width:_e}),pe(oe,n(r)),pe(ge,we),pe(re,Z)},[()=>m(n(r)),()=>Q("waiting_live_minute_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(E,U=>{n(r)&&U(P)})}var O=k(E,2);{var D=U=>{var z=RS();let G;var le=T(z),X=T(le,!0);w(le);var oe=k(le,2),j=T(oe,!0);w(oe),w(z),B((ge,ce)=>{G=Qe(z,"",G,{width:ge}),pe(X,n(s)),pe(j,ce)},[()=>m(n(s)),()=>Q("waiting_live_second_value")]),_(U,z)};V(O,U=>{n(s)&&U(D)})}w(y),B(U=>$=se(y,1,"timer__container s-1f",null,$,U),[()=>({small:e.isSmallSize})]),_(t,y),H()}var DS=L('<div class="waiting s-w"><span> </span></div>'),BS=L('<div class="upcoming-timer timer s-w"><span> </span> <!></div>'),FS=L('<div class="waiting-container s-w"><!></div>'),HS={hash:"s-w",code:'.waiting-container.s-w{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-w,.waiting-container.s-w:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-w:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-w{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-w{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-w{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-w{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-w{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-w{font-size:15px}.medium.s-w{font-size:17px}'};function Mc(t,e){F(e,!0),q(t,HS);let i=g(e,"startTime",3,0),o=v(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),s=K(void 0),l=0,d=K(void 0),a=K(void 0),u=v(()=>{var S,C;return((S=n(d))!=null?S:1/0)<=509||((C=n(a))!=null?C:1/0)<=320}),p=v(()=>{var S,C;return!n(u)&&(((S=n(d))!=null?S:1/0)<=699||((C=n(a))!=null?C:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?(0,Vb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(u)?"s":n(p)?"m":"l"},C=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(S,C)})},300):void 0;Oe(()=>{n(a),n(d),n(o),m==null||m()}),hn(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(u)?"s":n(p)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var f=FS();f.__contextmenu=function(...S){var C;(C=e.onContextMenu)==null||C.apply(this,S)},f.__click=function(...S){var C;(C=e.onClick)==null||C.apply(this,S)};var b=T(f);{var y=S=>{var C=DS(),I=T(C);let R;var E=T(I,!0);w(I),w(C),ot(C,P=>N(r,P),()=>n(r)),B((P,O)=>{R=se(I,1,"waiting__title s-w",null,R,P),pe(E,O)},[()=>({medium:n(p),small:n(u)}),()=>Q("waiting_live_upcoming_title")]),_(S,C)},$=S=>{var C=BS(),I=T(C);let R;var E=T(I,!0);w(I);var P=k(I,2);let O=v(()=>n(u)||n(p)),D=v(()=>i()||0);gv(P,{get isSmallSize(){return n(O)},get startTime(){return n(D)},onTimerOver:()=>N(o,!0)}),w(C),ot(C,U=>N(s,U),()=>n(s)),B((U,z)=>{R=se(I,1,"timer__title s-w",null,R,U),pe(E,z)},[()=>({medium:n(p),small:n(u)}),()=>Q("waiting_live_timer_title")]),_(S,C)};V(b,S=>{n(o)?S(y):S($,!1)})}w(f),B(()=>Qe(f,`background-image: url(${e.thumbUrl})`)),An(f,"clientWidth",S=>N(d,S)),An(f,"clientHeight",S=>N(a,S)),_(t,f),H()}rt(["contextmenu","click"]);var US=L('<div class="waiting-container s-s"><div class="waiting-caption s-s"><!> <p class="waiting-title s-s"> </p></div></div>'),zS={hash:"s-s",code:'.waiting-container.s-s{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-s,.waiting-container.s-s:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-s:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-s{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-s{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function il(t,e){F(e,!0),q(t,zS);let i=g(e,"thumbUrl",3,""),o={recover:Q("waiting_live_recover_title"),record:Q("waiting_record_title")},r=v(()=>o[e.kind]||"");var s=US();s.__contextmenu=function(...p){var m;(m=e.onContextMenu)==null||m.apply(this,p)},s.__click=function(...p){var m;(m=e.onClick)==null||m.apply(this,p)};var l=T(s),d=T(l);za(d,{style:"position: static; transform: translate(0, 0)"});var a=k(d,2),u=T(a,!0);w(a),w(l),w(s),B(()=>{Qe(s,`background-image: url('${i()}')`),pe(u,n(r))}),_(t,s),H()}rt(["contextmenu","click"]);var WS=Ee('<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 hv(t){Ze(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=WS();_(e,o)},$$slots:{default:!0}})}var KS=L('<div class="select-icon s-1x"><!></div>'),qS={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Vc(t){q(t,qS);var e=KS(),i=T(e);hv(i,{}),w(e),_(t,e)}var QS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},GS=(t,e)=>{Gl(t,()=>e.item.selectItem(e.item.value))},YS=L("<p> </p>"),jS=L('<p class="sublabel s-1u"> </p>'),XS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),ZS={hash:"s-1u",code:".menu-item-value.s-1u{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1u{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1u,.sublabel.s-1u{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1u{opacity:.5}"};function _v(t,e){F(e,!0),q(t,ZS);let i=g(e,"isMobile",3,!1);var o=XS();let r;o.__click=[QS,e],o.__keydown=[GS,e];var s=T(o);{var l=y=>{Vc(y,{})};V(s,y=>{e.item.selected&&y(l)})}var d=k(s,2);let a;var u=T(d);{var p=y=>{var $=ke(),S=de($);Oi(S,()=>e.item.valueComponent,(C,I)=>{I(C,Es(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),_(y,$)},m=y=>{var $=YS();let S;var C=T($,!0);w($),B(I=>{var R;S=se($,1,"label s-1u",null,S,I),pe(C,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),_(y,$)};V(u,y=>{e.item.valueComponent?y(p):y(m,!1)})}var f=k(u,2);{var b=y=>{var $=jS(),S=T($,!0);w($),B(()=>pe(S,e.item.sublabel)),_(y,$)};V(f,y=>{e.item.sublabel&&y(b)})}w(d),w(o),B((y,$,S)=>{r=se(o,1,"item",null,r,y),He(o,"data-value",e.item.value),He(o,"aria-label",$),He(o,"data-testid",e.item.dataTestid),a=se(d,1,"menu-item-value s-1u",null,a,S),He(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),H()}rt(["click","keydown"]);var JS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function bv(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),s=v(()=>$=>Xu($,n(r)));var l=JS();let d;l.__click=function(...$){var S;(S=n(r))==null||S.apply(this,$)},l.__keydown=function(...$){var S;(S=n(s))==null||S.apply(this,$)};var a=T(l);{var u=$=>{Vc($,{})};V(a,$=>{e.item.selected&&$(u)})}var p=k(a,2);let m;var f=T(p);{var b=$=>{var S=ke();let C=v(()=>e.item.valueComponent);var I=de(S);Oi(I,()=>n(C),(R,E)=>{E(R,Es(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),_($,S)},y=$=>{var S=ms();B(()=>pe(S,e.item.label)),_($,S)};V(f,$=>{e.item.valueComponent?$(b):$(y,!1)})}w(p),w(l),ot(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),B(($,S)=>{var C;d=se(l,1,"item",null,d,$),He(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),He(l,"data-testid",e.item.id),m=se(p,1,"menu-item-value",null,m,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,l),H()}rt(["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 t2=(t,e)=>{j_(t,e.returnFromSubMenu,e.closeSettingsMenu)},i2=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},o2=(t,e)=>{oc(t)&&(Lr(t),e.returnFromSubMenu())},n2=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1l"> </p></li> <!></ul></div>'),r2={hash:"s-1l",code:".sub-menu.s-1l{--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-1l .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1l{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1l{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1l .items:where(.s-1l) .item.header:where(.s-1l){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-1l .title:where(.s-1l){margin-left:8px}.sub-menu.s-1l .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1l .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1l .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1l .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1l .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1l .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1l .item .sublabel{font-size:12px;line-height:14px}.item.s-1l:not(.mobile) p:where(.s-1l),.sub-menu.s-1l .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function yv(t,e){F(e,!0),q(t,r2);let[i,o]=Ve(),r=()=>x(m,"$isFullscreen",i),s=()=>x(f,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),a=g(e,"ariaLabelReturnFromSubMenu",19,()=>Q("aria_label_submenu_back")),u=g(e,"listRef",15);Nt(()=>{let X=e.items.findIndex(oe=>oe.selected);u().children[X+1].focus()});let p=ve(),m=p.ui.isFullscreen,f=p.ui.playerSize,b=K(void 0),y=K(0),$=K(0),S=v(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n($)-d()}px; overflow: auto;`),C=v(()=>Math.max(e.minWidth,n(y)));var I=n2();let R;var E=T(I);let P;E.__keydown=[t2,e];var O=T(E);let D;O.__click=[i2,e],O.__keydown=[o2,e];var U=T(O);kr(U,{direction:"left"});var z=k(U,2),G=T(z,!0);w(z),w(O),ot(O,X=>N(b,X),()=>n(b));var le=k(O,2);yi(le,17,()=>e.items,Bd,(X,oe)=>{var j=ke(),ge=de(j);{var ce=_e=>{_v(_e,{get item(){return n(oe)},get isMobile(){return l()}})},re=(_e,we)=>{{var Z=Re=>{bv(Re,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,Re=>{n(oe).type==="OPEN_SUB_MENU"&&Re(Z)},we)}};V(ge,_e=>{n(oe).type==="SELECT_VALUE"?_e(ce):_e(re,!1)})}_(X,j)}),w(E),ot(E,X=>u(X),()=>u()),w(I),B((X,oe,j)=>{R=se(I,1,"sub-menu menu s-1l",null,R,X),He(I,"data-testid",`sub-menu-${e.id}`),Qe(I,`min-width: ${n(C)}px`),P=se(E,1,"items s-1l",null,P,oe),Qe(E,n(S)),D=se(O,1,"item header back s-1l",null,D,j),He(O,"aria-label",a()),pe(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),An(O,"clientWidth",X=>N(y,X)),An(O,"clientHeight",X=>N($,X)),_(t,I),H(),o()}rt(["keydown","click"]);var Nb=require("@vkontakte/videoplayer-shared/es2018");var s2=(t,e)=>Xu(t,e()),a2=(t,e)=>{t.stopPropagation(),e()()},l2=L('<div class="value s-1n"> </div>'),d2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),c2={hash:"s-1n",code:".value.s-1n{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function xv(t,e){F(e,!0),q(t,c2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Nb.noop),r=g(e,"valueComponent",3,void 0),s=g(e,"ref",15);var l=d2();let d;l.__click=[a2,o],l.__keydown=[s2,o];var a=T(l),u=T(a);{var p=C=>{Ya(C,{get icon(){return e.icon}})},m=C=>{var I=ke();let R=v(()=>e.icon);var E=de(I);Oi(E,()=>n(R),(P,O)=>{O(P,{})}),_(C,I)};V(u,C=>{typeof e.icon=="string"?C(p):C(m,!1)})}w(a);var f=k(a,2),b=T(f,!0);w(f);var y=k(f,2);{var $=C=>{var I=ke();let R=v(r);var E=de(I);Oi(E,()=>n(R),(P,O)=>{O(P,{})}),_(C,I)},S=C=>{var I=l2(),R=T(I,!0);w(I),B(()=>pe(R,e.value)),_(C,I)};V(y,C=>{r()?C($):C(S,!1)})}w(l),ot(l,C=>s(C),()=>s()),B(C=>{d=se(l,1,"item",null,d,C),He(l,"aria-label",e.ariaLabel),He(l,"data-testid",e.id),pe(b,e.label)},[()=>({mobile:i()})]),_(t,l),H()}rt(["click","keydown"]);var wv=require("@vkontakte/videoplayer-shared/es2018");var u2=(t,e)=>{Gl(t,()=>e())},p2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),f2=L('<img class="icon" aria-hidden="true"/>'),m2=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1m"> </div></li>'),v2={hash:"s-1m",code:".label.s-1m{overflow:hidden;text-overflow:ellipsis}"};function Sv(t,e){F(e,!0),q(t,v2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,wv.noop),r=g(e,"closeSettings",3,wv.noop),s=K(!1),l=()=>{N(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),r()()};var a=m2();let u;a.__click=d,a.__keydown=[u2,d];var p=T(a),m=T(p);{var f=S=>{var C=ke(),I=de(C);{var R=P=>{var O=p2();_(P,O)},E=P=>{var O=f2();B(()=>He(O,"src",e.icon)),_t("error",O,l),Ea(O),_(P,O)};V(I,P=>{n(s)?P(R):P(E,!1)})}_(S,C)},b=S=>{var C=ke();let I=v(()=>e.icon);var R=de(C);Oi(R,()=>n(I),(E,P)=>{P(E,{})}),_(S,C)};V(m,S=>{typeof e.icon=="string"?S(f):S(b,!1)})}w(p);var y=k(p,2),$=T(y,!0);w(y),w(a),B(S=>{var C;u=se(a,1,"item",null,u,S),He(a,"aria-label",(C=e.ariaLabel)!=null?C:e.label),He(a,"data-testid",e.id),pe($,e.label)},[()=>({mobile:i()})]),_(t,a),H()}rt(["click","keydown"]);var Ob=require("@vkontakte/videoplayer-shared/es2018");var g2=L('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),h2={hash:"s-1r",code:'.toggle_wrap.s-1r{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1r{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1r: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-1r:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1r{overflow:hidden}'};function Tv(t,e){q(t,h2);let i=g(e,"enabled",3,!1);var o=g2(),r=T(o);let s;ui(2),w(o),B(l=>s=se(r,1,"toggle s-1r",null,s,l),[()=>({on:i()})]),_(t,o)}var _2=(t,e,i)=>{X_(t,e(),o=>i()(o))},b2=(t,e,i)=>{t.stopPropagation(),e()(!i())},$2=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),y2=L('<li role="menuitem" tabindex="0"><!></li>');function Cv(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Ob.noop),r=g(e,"enabled",3,!1),s=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=y2();let a;d.__click=[b2,o,r],d.__keydown=[_2,r,o];var u=T(d);Ka(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(p,m)=>{var f=$2();let b;var y=T(f),$=T(y);{var S=P=>{Ya(P,{get icon(){return e.icon}})},C=P=>{var O=ke();let D=v(()=>e.icon);var U=de(O);Oi(U,()=>n(D),(z,G)=>{G(z,{})}),_(P,O)};V($,P=>{typeof e.icon=="string"?P(S):P(C,!1)})}w(y);var I=k(y,2),R=T(I,!0);w(I);var E=k(I,2);Tv(E,{get enabled(){return r()}}),w(f),B(P=>{b=se(f,1,"switch-wrapper",null,b,P),pe(R,e.label)},[()=>({mobile:i()})]),_(p,f)},$$slots:{default:!0}}),w(d),B(p=>{var m;a=se(d,1,"item switch-item",null,a,p),He(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),He(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),H()}rt(["click","keydown"]);var Nc=require("@vkontakte/videoplayer-shared/es2018");var Db=()=>{let t=K(ai([])),e=v(()=>(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 x2=L('<div class="quality-icon s-1q"><!></div>'),w2=L('<div class="quality-label s-1q"><span> </span> <!></div>'),S2={hash:"s-1q",code:".quality-label.s-1q{position:relative}.quality.s-1q{font-size:13px;line-height:18px}.quality.sub.s-1q{opacity:.7}.quality-icon.s-1q{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1q svg{color:var(--blue-light)}"};function ol(t,e){F(e,!0),q(t,S2);let i=g(e,"isSubCase",3,!1),o=v(()=>ip(e.quality));var r=w2(),s=T(r);let l;var d=T(s,!0);w(s);var a=k(s,2);{var u=p=>{var m=x2();let f=v(()=>n(o));var b=T(m);Oi(b,()=>n(f),(y,$)=>{$(y,{})}),w(m),_(p,m)};V(a,p=>{n(o)&&!e.isMobile&&p(u)})}w(r),B(p=>{l=se(s,1,"s-1q",null,l,p),pe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,r),H()}var Ub=require("@vkontakte/videoplayer-shared/es2018");var Iv=require("@vkontakte/videoplayer-core/es2018");var Bb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Fb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Bb({quality:t,availableQualities:e});return i?t===Iv.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},Hb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Iv.VideoQuality.INVARIANT?i:`${i}${Bb({quality:t,availableQualities:e})}`:"...";var T2=L('<div class="menu-item-value-wrapper s-1t"><!></div>'),C2={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function sd(t,e){F(e,!0),q(t,C2);let[i,o]=Ve(),r=()=>x(a,"$currentQuality$",i),s=()=>x(u,"$availableQualities$",i),l=()=>x(p,"$isMobile$",i),d=ve(),a=d.state.currentQuality$,u=d.state.availableQualities$,p=d.ui.isMobile,m=" · ",f=v(()=>e.prefix+(e.selected&&r()!==Ub.VideoQuality.INVARIANT?m:"")),b=v(()=>Hb({prefix:n(f),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var y=T2(),$=T(y);let S=v(()=>e.selected?r():void 0);ol($,{get quality(){return n(S)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),w(y),_(t,y),H(),o()}var I2=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},E2={br:!0,span:!0},Ev=(t,e={})=>{var d,a,u,p,m,f,b;if(!t)return t;let i={...E2,...e},o=Object.keys(i);if(!o.length)return t;let r=I2(o),s=[],l=0;for(let y of t.matchAll(r)){let $=y[0],S=((d=y.groups)==null?void 0:d.keyhtml)||((a=y.groups)==null?void 0:a.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((p=y.groups)==null?void 0:p.keyi18nself)||"",{index:C}=y;if(!i[S]){s.push(t.slice(l,C)),l=C+$.length;continue}let I=(m=y.groups)!=null&&m.childrenhtml?Ev(y.groups.childrenhtml,i):"",R=(f=y.groups)!=null&&f.childrenhtml?$.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>I||""):$;s.push(t.slice(l,C),R),l=C+$.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Rc(t,e){F(e,!1);let i=g(e,"message",8),o=Ev(i());xo();var r=ke(),s=de(r);{var l=d=>{var a=ke(),u=de(a);Fd(u,()=>o),_(d,a)};V(s,d=>{o&&d(l)})}_(t,r),H()}var P2=L('<p class="quality-applies sublabel s-1s"><!></p>'),A2={hash:"s-1s",code:".quality-applies.s-1s{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Pv(t,e){F(e,!1),q(t,A2),xo();var i=P2(),o=T(i);let r=Tn(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));Rc(o,{get message(){return n(r)}}),w(i),_(t,i),H()}var Wb=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:sd,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"QUALITY"}},Av=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Q("auto_quality_limit"),valueComponent:e?sd:void 0,valueComponentParams:{prefix:Q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Kb=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Pv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),kv=({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?sd:void 0,valueComponentParams:{prefix:Q("high_quality"),selected:i},sublabel:Q("high_quality_description")}),Lv=({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?sd:void 0,valueComponentParams:{prefix:Q("traffic_saving_quality"),selected:i},sublabel:Q("traffic_saving_quality_description")});var hp=(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=bc(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return Q("audio_stream_display_language_label",{language:r,label:o});{let a=hp(t,d);return Q("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=hp(t,d);return Q("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=hp(t,d);return Q("audio_stream_display_language_index",{language:r,index:a})}}let s=hp(t,e);return Q("audio_stream_display_unknown",{index:s})};var k2={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:Av,selected:e&&!o&&!r||!1}),s.push({handler:Lv,selected:o},{handler:kv,selected:r}),{title:Q("submenu_quality"),id:"QUALITY_DETAILS",items:[Kb(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Wb(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Q("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:ol,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Av,selected:((i=Fu())==null?void 0:i.type)==="auto_quality"},{handler:Lv,selected:((o=Fu())==null?void 0:o.type)==="traffic_saving"},{handler:kv,selected:((r=Fu())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:Q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(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_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:Q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:Q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Vn?"sub_off":void 0}))})},qb=({subMenuId:t,context:e})=>t?[k2[t](e)]:[];var L2=Ee('<path d="M.1 6.5c0-2.24 0-3.36.44-4.22A4 4 0 0 1 2.28.54C3.14.1 4.26.1 6.5.1h5c2.24 0 3.36 0 4.22.44a4 4 0 0 1 1.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 0 1-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 0 1-1.74-1.74C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 0 0-.96.96 2 2 0 0 0-.2.92C1.9 4.6 1.9 5.35 1.9 6.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 0 0 .96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 0 0-.19-.92 2.2 2.2 0 0 0-.96-.96 2 2 0 0 0-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Mv(t){Ze(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=L2();_(e,o)},$$slots:{default:!0}})}var M2=Ee('<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 Vv(t){Ze(t,{width:"18",height:"15",children:(e,i)=>{var o=M2();_(e,o)},$$slots:{default:!0}})}var V2=Ee('<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 Rv(t){Ze(t,{testId:"play-speed-icon",children:(e,i)=>{var o=V2();_(e,o)},$$slots:{default:!0}})}var R2=Ee('<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 Nv(t){Ze(t,{testId:"download-icon",children:(e,i)=>{var o=R2();_(e,o)},$$slots:{default:!0}})}var N2=Ee('<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 Ov(t){Ze(t,{testId:"report-icon",children:(e,i)=>{var o=N2();_(e,o)},$$slots:{default:!0}})}var O2=Ee('<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 bp(t){Ze(t,{children:(e,i)=>{var o=O2();_(e,o)},$$slots:{default:!0}})}var D2=Ee('<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 Dv(t){Ze(t,{testId:"info-icon",children:(e,i)=>{var o=D2();_(e,o)},$$slots:{default:!0}})}var B2=L('<div class="menu-item-value-wrapper s-1w"><!></div>'),F2={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function Bv(t,e){F(e,!0),q(t,F2);let[i,o]=Ve(),r=()=>x(u,"$currentQuality$",i),s=()=>x(p,"$availableQualities$",i),l=()=>x(m,"$isAutoQualityEnabled$",i),d=()=>x(f,"$isMobile$",i),a=ve(),u=a.state.currentQuality$,p=a.state.availableQualities$,m=a.state.isAutoQualityEnabled$,f=a.ui.isMobile,b=v(()=>Fb({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var y=B2(),$=T(y);ol($,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),w(y),_(t,y),H(),o()}var U2={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:cc,label:Q("menu_quality"),value:e,valueComponent:Bv,weight:es["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},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:Q("aria_label_submenu_traffic_saving"),icon:Mv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=_p(t,e);return{id:"AUDIO_LANGUAGES",weight:es["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:Vv,label:Q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:es["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:Rv,label:Q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:es["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ra,label:Q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:es.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:Nv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:es.report,type:"CLICK",onClick:t,label:Q("menu_report"),ariaLabel:`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`,icon:Ov,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:es["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:bp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:es["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:bp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:es["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:Dv,isHiddenFor:["desktop"]})},Qb=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>U2[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.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(Ha)};var W2=(t,e)=>{ju(t,e)},K2=L('<div><div> </div> <div class="close s-v"></div></div>'),q2=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),Q2=L("<div><!> <!></div>"),G2={hash:"s-v",code:'.settings-menu-container.mobile.s-v{width:100%}.settings-menu-container.s-v ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-v .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-v .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-v .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-v .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-v .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-v .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-v{line-height:40px}.settings-menu.desktop.s-v{min-width:300px}.settings-menu-container.s-v .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-v .menu.mobile.hidden{display:none}.settings-menu-container.s-v .menu .item:not(.switch-item),.settings-menu-container.s-v .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-v .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-v .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-v .item:not(.switch-item),.settings-menu.s-v .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-v .item.mobile:not(.switch-item),.settings-menu.s-v .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-v .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-v .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-v .item.header.mobile:where(.s-v){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-v .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-v .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-v .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-v .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-v .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-v{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-v:after,.close.s-v:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-v:before{transform:rotate(45deg)}.close.s-v:after{transform:rotate(-45deg)}'};function Oc(t,e){F(e,!0),q(t,G2);let[i,o]=Ve(),r=()=>x(De,"$settingsMenuVisible",i),s=()=>x(fe,"$settingsMenuOpenedByKeyboard",i),l=()=>x(Ue,"$debugPanelVisible",i),d=()=>x(Se,"$isMobile",i),a=()=>x(Le,"$playerSize",i),u=()=>x(Ne,"$hasMpegSources$",i),p=()=>x(Be,"$mobileNotReportControlHidden$",i),m=()=>x(Z,"$autoQualityLimitingAvailable$",i),f=()=>x(Y,"$availableSubtitlesList$",i),b=()=>x(Ke,"$isLiveWithPlaybackSpeed",i),y=()=>x(re,"$availableAudioStreams$",i),$=()=>x(We,"$availablePlaybackRates$",i),S=()=>x(ce,"$currentAudioStream$",i),C=()=>x(A,"$currentPlaybackRate$",i),I=()=>x(Ye,"$trafficSavingEnabled",i),R=()=>x(_e,"$currentQuality$",i),E=()=>x(Re,"$isAutoQualityEnabled$",i),P=()=>x(Ce,"$currentSubtitle$",i),O=()=>x(et,"$additionalSettingsMenuItems$",i),D=()=>x(ue,"$isAutoQualityAvailable$",i),U=()=>x(we,"$availableQualities$",i),z=()=>x(Te,"$highQualityEnabled",i),G=g(e,"ref",15,void 0),le=g(e,"playerControlsHeight",3,0),X=ai({}),oe=ai({}),j=ve(),ge=Mt(),ce=j.state.audioStream$,re=j.state.availableAudioStreams$,_e=j.state.currentQuality$,we=j.state.availableQualities$,Z=j.state.autoQualityLimitingAvailable$,Re=j.state.isAutoQualityEnabled$,ue=j.state.isAutoQualityAvailable$,A=j.state.currentPlaybackRate$,We=j.state.availablePlaybackRates$,Ce=j.state.currentSubtitle$,Y=j.state.availableSubtitlesList$,ie=j.state.canDownload,Ne=j.state.hasMpegSources$,De=j.ui.settingsMenu.visible$,fe=j.ui.settingsMenu.openedByBtnKeyboard$,ee=j.ui.settingsMenu.ref$,Se=j.ui.isMobile,Be=j.ui.mobileNotReportControlHidden$,Ke=j.state.canChangePlaybackSpeed$,Ye=j.state.trafficSavingEnabled$,Te=j.state.highQualityEnabled$,Le=j.ui.playerSize,Ue=j.ui.debugPanelVisible,Vt=j.state.isInteractiveTime$,et=j.ui.additionalSettingsMenuItems$,Ot=j.ui.t,Kt=j.actions.internal.downloadVideo,Tt=j.actions.internal.closeSettingsMenu,Zt=j.actions.internal.openSettingsSubMenu,Dt=j.actions.internal.closeSettingsSubMenu,ye=K(!1),be=K(void 0),J=Db();Oe(()=>{!r()&&J.current&&(Dt(oe[J.current]),J.popAllSubMenus())}),Oe(()=>{r()||N(be,void 0)}),Oe(()=>{!J.current&&n(be)&&Y_(X,n(be))}),Oe(()=>{G()&&ee.set(G())});async function xe(Et){var W;J.pushSubMenu(Et),await ho(),Zt(Et,oe[Et]);let Bt=(W=G())==null?void 0:W.firstElementChild;Bt&&sm(Bt)}function Pe(Et){var Bt;Et==null||Et.stopPropagation(),s()||(Bt=e.returnFocus)==null||Bt.call(e),Tt(),N(ye,!1)}function It(Et,Bt){j.actions.internal.setQuality(Et,{appliesTo:Bt}),Pe()}function Me(Et){j.actions.internal.setAudioStream(Et),Pe()}function st(Et,Bt){j.actions.internal.setTrafficSavingEnabled(Et,Bt),ge.features.qualityDetailsSubMenuEnabled&&Pe()}function vt(Et,Bt){j.actions.internal.setHighQualityEnabled(Et,Bt),Pe()}function $e(Et){j.actions.internal.setPlaybackRate(Et),Pe()}function Je(Et){j.actions.internal.setSubtitle(Et),Pe()}function ze(){Kt()}function nt(){(0,Nc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),j.actions.internal.reportProblem(),j.actions.internal.pause()}function Jt(){ql(j.actions.internal.getDebugTextData())}let ri=()=>{let Et=j.actions.internal.getTraceTextData(),Bt=new Blob([...Et],{type:"application/json"}),W=window.URL.createObjectURL(Bt);Ra(W,"vk_player_trace_info","json")};function pi(){Ue.set(!l())}function hi(){N(ye,!0)}function to(){N(ye,!1)}function _o(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-le()}px; overflow: auto;`}let di=v(()=>ie&&u()&&!p()),ut=v(()=>ge.features.trafficSaving&&!p()&&m()&&!ge.features.qualityDetailsSubMenuEnabled),Ii=v(()=>f().length>0&&!p()),Yt=v(()=>!!b()&&!p()),St=v(()=>ge.features.audioLanguages&&y().length>=2&&!p()),ii=v(()=>!p());Nt(()=>Vt.subscribe(Et=>{Et&&!d()&&!n(ye)&&!s()&&Pe()}));let jt=v(()=>{let Et=[n(ii)&&"QUALITY_SETTINGS",n(St)&&"AUDIO_LANGUAGES",n(Yt)&&"PLAYBACK_RATE",n(Ii)&&"SUBTITLES",n(ut)&&"TRAFFIC_SAVING_SWITCH",n(di)&&"DOWNLOAD",ge.showSupport&&"SHOW_SUPPORT","COPY_DATA",ge.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Bt=>!!Bt);return Qb({items:Et,context:{qualityDetailsSubMenuEnabled:ge.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:C(),selectPlaybackRate:$e,trafficSavingEnabled:I(),toggleTrafficSaving:st,currentQuality:R()||Nc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:ze,onCopyDataClick:Jt,onReportProblemClick:nt,onSaveTraceDataClick:ri,toggleShowDebugInfo:pi},additionalSettingsMenuItems:O()})}),bt=v(()=>qb({subMenuId:J.current,context:{availablePlaybackRates:$(),selectPlaybackRate:$e,trafficSavingEnabled:I(),toggleTrafficSaving:st,currentQuality:R()||Nc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:D()||!1,availableQualities:U(),highQualityEnabled:z(),toggleHighQuality:vt,availableAudioStreams:y(),availableSubtitlesList:f(),closeSettingsMenu:Tt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Me,selectQuality:It,selectSubtitle:Je}}));var je=Q2();let $i;var io=T(je);{var on=Et=>{var Bt=q2();let W;Bt.__keydown=[W2,Tt];var kt=T(Bt);{var si=Qt=>{var dt=K2();let Ai;var ki=T(dt),nn=T(ki,!0);w(ki);var Lo=k(ki,2);Lo.__click=Pe,w(dt),B((bo,Fi)=>{Ai=se(dt,1,"item header s-v",null,Ai,bo),pe(nn,Fi)},[()=>({mobile:d()}),()=>Ot("submenu_settings")]),_(Qt,dt)};V(kt,Qt=>{d()&&Qt(si)})}var lt=k(kt,2);let Ct;yi(lt,21,()=>n(jt),Qt=>Qt.id,(Qt,dt)=>{var Ai=ke(),ki=de(Ai);{var nn=bo=>{xv(bo,{get isMobile(){return d()},get id(){return n(dt).id},get icon(){return n(dt).icon},get label(){return n(dt).label},get ariaLabel(){return n(dt).ariaLabel},get value(){return n(dt).value},get valueComponent(){return n(dt).valueComponent},onClick:()=>{xe(n(dt).children),N(be,n(dt).id,!0)},get ref(){return X[n(dt).id]},set ref(Fi){X[n(dt).id]=Fi}})},Lo=(bo,Fi)=>{{var fr=$o=>{Sv($o,{get isMobile(){return d()},get id(){return n(dt).id},get onClick(){return n(dt).onClick},get icon(){return n(dt).icon},get label(){return n(dt).label},get ariaLabel(){return n(dt).ariaLabel},closeSettings:Pe})},oo=($o,Hi)=>{{var rn=sn=>{Cv(sn,{get isMobile(){return d()},get id(){return n(dt).id},get onClick(){return n(dt).onClick},get icon(){return n(dt).icon},get label(){return n(dt).label},get ariaLabel(){return n(dt).ariaLabel},get enabled(){return n(dt).enabled},get tooltipText(){return n(dt).tooltipText},get maxTooltipWidth(){return n(dt).maxTooltipWidth}})};V($o,sn=>{n(dt).type==="SWITCH"&&sn(rn)},Hi)}};V(bo,$o=>{n(dt).type==="CLICK"?$o(fr):$o(oo,!1)},Fi)}};V(ki,bo=>{n(dt).type==="OPEN_SUB_MENU"?bo(nn):bo(Lo,!1)})}_(Qt,Ai)}),w(lt),ot(lt,Qt=>G(Qt),()=>G()),w(Bt),B((Qt,dt,Ai)=>{W=se(Bt,1,"settings-menu menu s-v",null,W,Qt),Ct=se(lt,1,"items",null,Ct,dt),Qe(lt,Ai)},[()=>({desktop:!d(),mobile:d(),hidden:!!J.current}),()=>({mobile:d()}),_o]),_t("mouseenter",Bt,hi),_t("mouseleave",Bt,to),_(Et,Bt)};V(io,Et=>{r()&&Et(on)})}var $n=k(io,2);yi($n,17,()=>n(bt),Et=>Et.id,(Et,Bt)=>{let W=v(()=>{var kt;return(kt=n(Bt).minWidth)!=null?kt:137});yv(Et,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return J.popSubMenu},get id(){return n(Bt).id},get title(){return n(Bt).title},get closeSettingsMenu(){return Tt},openSubMenuList:xe,get items(){return n(Bt).items},get minWidth(){return n(W)},get refMenuItems(){return X},get listRef(){return oe[n(Bt).id]},set listRef(kt){oe[n(Bt).id]=kt}})}),w(je),B(Et=>$i=se(je,1,"settings-menu-container s-v",null,$i,Et),[()=>({mobile:d(),hidden:!r()})]),_(t,je),H(),o()}rt(["keydown","click"]);var Y2=L('<button class="btn s-1d"> </button>'),j2={hash:"s-1d",code:"button.btn.s-1d{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Fv(t,e){q(t,j2);var i=Y2();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=T(i,!0);w(i),B(()=>pe(o,e.label)),_(t,i)}rt(["click"]);var X2=L('<div class="container s-x"><div class="notification s-x"><div><p class="description s-x"><!></p> <!></div> <!></div></div>'),Z2={hash:"s-x",code:".container.s-x{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-x{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-x{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Dc(t,e){F(e,!0),q(t,Z2);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Mt(),{ui:{t:r}}=ve(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=X2(),d=T(l),a=T(d),u=T(a),p=T(u);Rc(p,{get message(){return s}}),w(u);var m=k(u,2);{var f=y=>{let $=v(()=>r("slow_video_notification_button"));Fv(y,{get label(){return n($)},get onClick(){return e.onSelectAutoQuality}})};V(m,y=>{o||y(f)})}w(a);var b=k(a,2);As(b,{get onClick(){return e.onClose}}),w(d),w(l),jr(3,d,()=>_s,()=>({duration:i})),_(t,l),H()}var Bc=require("@vkontakte/videoplayer-shared/es2018"),nl="annotation",$p=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",nl),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((p=this.store)==null?void 0:p.ui)||{},a=new MutationObserver(m=>m.forEach(()=>{let f=Ls(s,this.shadowRootContainer);o.forEach(b=>{let y=l==null?void 0:l[b],$=y?he(y):null,S=d==null?void 0:d[b];$&&(S==null||S.set((0,Bc.isIntersecting)($,f)))})}));a.observe(s,{childList:!0,subtree:!0}),r.observer=a;let u=new Bc.Subscription;o.forEach(m=>{l&&u.add(l[m].subscribe(f=>{let b=d==null?void 0:d[m];f&&f.isDisplayed?b==null||b.set((0,Bc.isIntersecting)(f,Ls(s,this.shadowRootContainer))):b==null||b.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),r(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,p;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[r,s].forEach(m=>m==null?void 0:m.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(p=d==null?void 0:d.controlsToObserve)==null||p.forEach(m=>{var f,b;(b=(f=this.store)==null?void 0:f.ui.hiddenControls[m])==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 J2=L('<div class="container s-4"><!></div>'),eT={hash:"s-4",code:".container.s-4{align-items:center;animation-fill-mode:forwards;animation-name:s-4-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-4-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 Fc(t,e){F(e,!0),q(t,eT);let i=g(e,"reversed",3,!1);var o=ke(),r=de(o);Ts(r,()=>e.Icon,s=>{var l=J2(),d=T(l);Oi(d,()=>e.Icon,(a,u)=>{u(a,{get size(){return"48"},get reversed(){return i()}})}),w(l),B(()=>Qe(l,`animation-duration: ${e.duration}ms`)),_(s,l)}),_(t,o),H()}var Hv=require("@vkontakte/videoplayer-core/es2018"),tT=L('<div class="container s-14"><!></div>'),iT={hash:"s-14",code:".container.s-14{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function Uv(t,e){F(e,!0),q(t,iT);let[i,o]=Ve(),r=()=>x(a,"$playbackState$",i),s=()=>x(p,"$previewTrackActive",i),l=()=>x(m,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:p,previewTrackDragInProgress:m}}=ve(),{features:{playbackStatusShow:f},playbackStatusAnimationDuration:b}=Mt(),y=0,$=K(null),S=K(!1);Oe(()=>{r()===Hv.PlaybackState.PLAYING?N($,Ln,!0):r()===Hv.PlaybackState.PAUSED?N($,Vs,!0):N($,null)}),Oe(()=>{if(!(!f||s()||l()))return y=window.setTimeout(()=>{y=0,N($,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),Oe(()=>{d()&&!n(S)&&(N(S,!0),N($,null))});var C=ke(),I=de(C);{var R=E=>{var P=tT(),O=T(P);Fc(O,{get duration(){return b},get Icon(){return n($)}}),w(P),_(E,P)};V(I,E=>{n($)&&f&&E(R)})}_(t,C),H(),o()}var oT=L('<div><div data-testid="video-container"></div></div>'),nT={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 rl(t,e){F(e,!0),q(t,nT);let[i,o]=Ve(),r=()=>x(p,"$rotateAlpha",i),s=()=>x(m,"$playerSize",i),l=()=>x(u,"$playerPhase",i),d=()=>x(f,"$isPlaying$",i),a=g(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:p,playerSize:m},state:{isPlaying$:f}}=ve(),{isSmoothVideoRotate:b}=Mt(),y=v(()=>a()&&r()%180?s().height/s().width:1);var $=oT();let S;$.__contextmenu=function(...R){var E;(E=e.onContextMenu)==null||E.apply(this,R)},$.__mousedown=function(...R){var E;(E=e.onMouseDown)==null||E.apply(this,R)},$.__mouseup=function(...R){var E;(E=e.onMouseUp)==null||E.apply(this,R)},$.__click=function(...R){var E;(E=e.onClick)==null||E.apply(this,R)},$.__dblclick=function(...R){var E;(E=e.onDblClick)==null||E.apply(this,R)};var C=T($);let I;ot(C,R=>a(R),()=>a()),w($),B((R,E)=>{S=se($,1,"video-wrapper s-d",null,S,R),I=se(C,1,"video-container s-d",null,I,E),Qe(C,`transform: rotate(${r()}deg) scale(${n(y)})`),He(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),_(t,$),H(),o()}rt(["contextmenu","mousedown","mouseup","click","dblclick"]);var rT=L('<div><span class="text s-16"> </span> <!></div>'),sT={hash:"s-16",code:".root.s-16{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-16,.root.visible.s-16{transform:translateX(-50%)}.root.visible.s-16{opacity:1;visibility:visible}.text.s-16{font-size:13px;font-weight:600;line-height:16px}"};function zv(t,e){F(e,!0),q(t,sT);let{ui:{t:i}}=ve();var o=rT();let r;var s=T(o),l=T(s,!0);w(s);var d=k(s,2);Ac(d,{get size(){return"16"},fill:"currentColor"}),w(o),B((a,u)=>{r=se(o,1,"root s-16",null,r,a),pe(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),_(t,o),H()}var aT=L('<div class="container s-13" role="button" data-testid="preview-track-overlay"><div class="icon s-13"><!></div></div>'),lT={hash:"s-13",code:".container.s-13{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-13,.icon.s-13{align-items:center;display:flex;justify-content:center}.icon.s-13{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-13:hover .icon:where(.s-13){transform:scale(1.15)}"};function Wv(t,e){F(e,!1),q(t,lT);let o=ve().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};xo();var l=aT();l.__click=s;var d=T(l),a=T(d);return Ln(a,{get size(){return"32"}}),w(d),w(l),jr(3,l,()=>_s,()=>({duration:r})),_(t,l),Pf(e,"handleClick",s),H({handleClick:s})}rt(["click"]);var dT=L('<div class="container s-17"><div class="notification s-17"><span class="text s-17"> </span></div></div>'),cT={hash:"s-17",code:".container.s-17{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-17{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-17{font-size:14px;font-weight:500;line-height:18px}"};function Kv(t,e){F(e,!1),q(t,cT);let{ui:{t:i}}=ve();xo();var o=dT(),r=T(o),s=T(r),l=T(s,!0);w(s),w(r),w(o),B(d=>pe(l,d),[()=>i("preview_track_notification_text")],Tn),jr(3,r,()=>_s,()=>({duration:340})),_(t,o),H()}var uT=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},pT=L("<div><!></div>"),fT=L('<div class="spherical-video-icon s-9"><!></div>'),mT=L("<div><!></div>"),vT=L('<div class="settings-menu s-9"><!></div>'),gT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),hT=L("<!> <!> <!>",1),_T=L('<div class="blocked s-9"></div>'),bT=L('<div class="player-wrapper s-9"><!> <div class="overlay-container"></div></div> <!>',1),$T={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 Qv(t,e){F(e,!0),q(t,$T);let[i,o]=Ve(),r=()=>x(ei,"$notificationsToShow$",i),s=()=>x(di,"$playerPhase",i),l=()=>x(io,"$isLoaderVisible",i),d=()=>x(hi,"$adPlaybackState",i),a=()=>x(si,"$crashed",i),u=()=>x(bo,"$isInteractiveTime$",i),p=()=>x(St,"$settingsMenuVisible",i),m=()=>x(Fi,"$isInteractiveExpectation$",i),f=()=>x(Yt,"$controlsVisible",i),b=()=>x(oo,"$touched",i),y=()=>x(vr,"$graphIsOpened$",i),$=()=>x(ut,"$isFullscreen",i),S=()=>x(ts,"$autoplayNextEnabled$",i),C=()=>x(Bt,"$postrollPassed",i),I=()=>x(on,"$isEnded$",i),R=()=>x(Jn,"$cursorInside",i),E=()=>x(Yn,"$isControlsAvailable",i),P=()=>x(Mo,"$doubleForwardOn$",i),O=()=>x(Rr,"$fakeIsPlaying$",i),D=()=>x(_r,"$bottomNoSmooth",i),U=()=>x(sn,"$interactiveTimeIndicator",i),z=()=>x(Ai,"$playerSize",i),G=()=>x(ki,"$is3DVideo",i),le=()=>x(ln,"$doubleForwardAvailable$",i),X=()=>x(je,"$contextMenuVisible$",i),oe=()=>x(pi,"$playbackState$",i),j=()=>x($o,"$hotKeyMapData",i),ge=()=>x(jt,"$scrubbingInProgress",i),ce=()=>x(bt,"$volumeChangingInProgress",i),re=()=>x($n,"$chromecastConnected$",i),_e=()=>x(dn,"$controlsTimeoutActive",i),we=()=>x(ii,"$settingsMenuOpenedByKeyboard",i),Z=()=>x(ss,"$contextMenuOpenedByKeyboard$",i),Re=()=>x(xi,"$contextMenuOpenedByHotKey$",i),ue=()=>x(Xe,"$contextMenuButtonRef$",i),A=()=>x(Ko,"$contextMenuLastActiveElem$",i),We=()=>x(Ii,"$isFullscreenOpenedByKeyboard",i),Ce=()=>x(ri,"$language$",i),Y=()=>x(po,"$previewTrackActive$",i),ie=()=>x(nn,"$icon3DVideoVisible",i),Ne=()=>x(Et,"$chromecastDeviceName$",i),De=()=>x(Qt,"$currentSubtitle$",i),fe=()=>x(dt,"$currentSubtitleCaptions$",i),ee=()=>x(to,"$position$",i),Se=()=>x(_o,"$duration$",i),Be=()=>x(W,"$isLive$",i),Ke=()=>x(kt,"$isPlaying$",i),Ye=()=>x(mr,"$contextMenuPosition$",i),Te=()=>x(jn,"$previewTrackNotificationVisible$",i),Le=()=>x(Hi,"$showHotKeyMap",i),Ue=()=>x($i,"$debugPanelVisible",i),Vt=()=>x(is,"$userActionsDisabled$",i),et=g(e,"videoContainer",15),Ot=g(e,"adsSlotId",3,void 0),Kt=g(e,"adsParams",3,void 0),Tt=g(e,"adsAutoplayParam",3,void 0),Zt=g(e,"duration",3,void 0),Dt=g(e,"logoTargetUrl",3,""),ye=g(e,"showNextPrevButtons",3,!1),be=g(e,"nextButtonActive",3,!1),J=g(e,"prevButtonActive",3,!1),xe=g(e,"endScreenVideoTitle",3,void 0),Pe=g(e,"endScreenVideoThumb",3,void 0),It=g(e,"isOneVideoPlaylist",3,!1),Me=g(e,"shadowRootContainer",3,void 0),st=g(e,"outerContainerRef",3,void 0),vt=g(e,"playerStarted",3,!1),$e=g(e,"fullScreenTarget",3,void 0),Je=g(e,"showMiniTimer",3,!1),ze=g(e,"showEndScreen",3,!0),nt=g(e,"keyboardControls",15),Jt=e.store.getLogger().createComponentLog("Root component"),ri=e.store.interfaceLanguage$,pi=e.store.state.playbackState$,hi=e.store.ads.playbackState,to=e.store.state.positionWithScrubbing$,_o=e.store.state.duration$,di=e.store.playerPhase,ut=e.store.ui.isFullscreen,Ii=e.store.ui.isFullscreenOpenedByKeyboard,Yt=e.store.ui.controlsVisible,St=e.store.ui.settingsMenu.visible$,ii=e.store.ui.settingsMenu.openedByBtnKeyboard$,jt=e.store.ui.scrubbingInProgress,bt=e.store.ui.volumeChangingInProgress,je=e.store.ui.contextMenu.visible$,$i=e.store.ui.debugPanelVisible,io=e.store.state.isLoaderVisible,on=e.store.state.isEnded$,$n=e.store.state.chromecastConnected$,Et=e.store.state.chromecastDeviceName$,Bt=e.store.ads.postrollPassed,W=e.store.state.isLive$,kt=e.store.state.isPlaying$,si=e.store.state.crashed$,lt=e.store.webApi.annotationsApi,Ct=e.store.webApi.pictureInPictureApi,Qt=e.store.state.currentSubtitle$,dt=e.store.state.currentSubtitleCaptions$,Ai=e.store.ui.playerSize,ki=e.store.ui.is3DVideo,nn=e.store.ui.icon3DVideoVisible,Lo=e.store.state.isInteractive,bo=e.store.state.isInteractiveTime$,Fi=e.store.state.isInteractiveExpectation$,fr=e.store.state.hasInteractiveBranches,oo=e.store.ui.touched,$o=e.store.ui.modals.hotKeyMap.data,Hi=e.store.ui.modals.hotKeyMap.show,rn=e.store.ui.overlayContainer$,sn=e.store.ui.controls.interactiveTimeIndicator,Gn=e.store.state.showInteractiveTimeIndicator,mr=e.store.ui.contextMenu.position$,Mr=e.store.actions.internal.setQuality,bs=e.store.actions.internal.closeSettingsMenu,ts=e.store.ui.autoplayNextEnabled$,is=e.store.ui.userActionsDisabled,Yn=e.store.ui.isControlsAvailable,an=e.store.ui.videoTitleInfo,Mo=e.store.ui.doubleForwardOn$,ln=e.store.ui.doubleForwardAvailable$,jn=e.store.ui.previewTrackNotificationVisible,Rn=e.store.actions.internal.getVideoElement,Vr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Rr,notifications$:os,graphIsOpened$:vr}=wo(),no=K(void 0),gr=K(void 0),Xn=K(void 0),yn=K(void 0),ro,Nr,Nn;$o.set(z_());let{closeNotification:gt,notificationsToShow$:ei}=os,Zn=v(()=>!!r().slow_video),hr=()=>gt("slow_video"),Or=v(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),xn=K(void 0),_r=ae(!1),Vo,dn=ae(!1),Ro=ae(),Jn=ae(!1),Ui=K(!1),No=K(!1),er=K(!1),Dr=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),so=v(()=>u()&&!p()&&!(n(Ui)||n(No))&&!(n(er)&&!m())),On=!0,Oo=v(()=>e.uiConfig.features.thumbTimer&&Je()&&s()==="video"&&!f()&&!a()&&!Lo&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Br=v(()=>s()==="video"&&!y()&&$()),tr=K(!1),Dn=v(()=>(ze()||e.showAutoplayNext&&S())&&!!xe()&&!!Pe()&&(e.showAds&&C()||!e.showAds)&&I()&&!a()&&!n(tr)),Fr=v(()=>R()&&!(f()||n(Dn))&&!u()&&E()&&!P()),wt=K(!1),$t=v(()=>O()!==null),{toggle:ao}=Rr,Li=!1,lo=null;Ct==null||Ct.setContext(wd());let Do=()=>{e.autoplay&&!Lo&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ci(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Do});let Bo=()=>{window.clearTimeout(ro),dn.set(!1)},co=()=>{window.clearTimeout(Nr),Ro.set(null)},Ci=me=>{Bo(),dn.set(!0),ro=window.setTimeout(()=>dn.set(!1),me);let ft=me-100;Vo=window.setTimeout(()=>{D()&&_r.set(!1)},ft>0?ft:me)},Hr=(me,ft)=>{co(),Ro.set(ft),Nr=window.setTimeout(()=>Ro.set(null),me)},ir=ki.subscribe(me=>{nn.set(me),me&&(window.clearTimeout(Nn),Nn=window.setTimeout(()=>nn.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Fo=async()=>{var ft,Xt,wi,zi;let me=Js();if(me){let oi=Xd(),ti=$r();me=oi===ti||oi===Me()}if(me){Ci(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ct==null?void 0:Ct.exit())}catch(oi){Jt({message:String(oi)})}}ut.set(me),e.store.getAdmanWrapper().setFullscreen(me),$()?(Xt=(ft=e.store.callbacks)==null?void 0:ft.onFullscreenEnter)==null||Xt.call(ft):(zi=(wi=e.store.callbacks)==null?void 0:wi.onFullscreenExit)==null||zi.call(wi)},br=me=>{let{width:ft,height:Xt}=me.target;Ai.set({width:ft,height:Xt})},or=()=>{let{width:me,height:ft}=n(no).getBoundingClientRect();Ai.set({width:me,height:ft})};Nt(()=>{var ft;return Gu(Fo),e.uiConfig.features.annotationsInside&&(lt==null||lt.init(n(no))),Ba(Ct)&&(Ct==null||Ct.assignPlayerContainer(n(no)),Ct==null||Ct.setExternalEventHandlers({resize:br,leavepictureinpicture:or})),e.interactiveContainer&&((ft=et().parentElement)==null||ft.insertBefore(e.interactiveContainer,et().nextSibling)),()=>{window.clearTimeout(ro),window.clearTimeout(Vo),window.clearTimeout(Nr),window.clearTimeout(Nn),ir(),Ct==null||Ct.dispose().catch(Xt=>{Jt({message:String(Xt)})}),Yu(Fo)}});let $r=()=>{let me=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!st()?n(no):st(),ft=me.getRootNode(),Xt=ft instanceof ShadowRoot?ft.host:ft,wi=$e()instanceof HTMLElement&&$e().contains(Xt);return e.uiConfig.allowChangingFullscreenTarget&&$e()&&wi?$e():me},wn=()=>{je.set(!1)},cn=()=>{bs(),wn()},Ur=async()=>{if(!Vr()){Jt({message:"fullscreen disabled"});return}wn(),Js()?(await Qu(document),Jt({message:"exit fullscreen"})):(Jt({message:"request fullscreen"}),await qu($r()))},un=me=>{y()||(me.preventDefault(),je.set(!0),mr.set({left:me.clientX,top:me.clientY}))};function ns(){Jn.set(!0),Lo||Ci(e.uiConfig.controls.hideTimeoutCursor)}function qe(me){var zi,oi;let{relatedTarget:ft}=me,wi=!!(ft&&((zi=n(Xn))!=null&&zi.contains(ft)))&&((oi=nt())==null?void 0:oi.isFocused());!Lo&&!wi&&(_r.set(!0),Ci(e.uiConfig.controls.hideTimeoutCursor))}function Lt(){Jn.set(!1),N(No,!1),N(Ui,!1),Li=!1,e.store.actions.internal.releaseCamera(),Ci(e.uiConfig.controls.hideTimeout),P()&&zo()}function _i(me){return me?me.offsetTop+_i(me.offsetParent):0}function So(me){return me?me.offsetLeft+So(me.offsetParent):0}function To(me){if(U()&&Gn){let ft=me.currentTarget,Xt=_i(ft),wi=So(ft),zi=me.pageX-wi,oi=me.pageY-Xt,{left:ti,bottom:fo,right:Bn}=U(),Fn=Bn-ti;return zi>=ti-Fn&&oi<=fo+Fn}}function Ho(me){if(n(no)){let ft=_i(me.currentTarget),Xt=z().height,wi=me.pageY-ft;if(To(me)){N(No,!1);return}wi<40?N(No,!0):wi>Xt-40?N(Ui,!0):(N(No,!1),p()||N(Ui,!1))}}function uo(me){Ho(me),!n(so)&&!P()&&Ci(e.uiConfig.controls.hideTimeoutCursor),G()&&Li&&lo&&e.store.actions.internal.moveCameraFocusPX(lo.clientX-me.clientX,lo.clientY-me.clientY,me.timeStamp-lo.timeStamp),lo=me}let Mi=null,Uo=()=>{Mi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Bo()},e.uiConfig.doubleForwardActivationTime)},zo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Mi&&clearTimeout(Mi),Mi=null},yo=me=>{me.preventDefault(),me.button===0&&(Li=!0,e.store.actions.internal.holdCamera(),le()&&Uo()),!Li&&Ci(e.uiConfig.controls.hideTimeoutCursor)},Wo=me=>{me.preventDefault(),me.button===0&&(lo=me,Li=!1,e.store.actions.internal.releaseCamera()),!P()&&Ci(e.uiConfig.controls.hideTimeoutCursor)},pn=me=>{me.preventDefault(),On&&(Jt({message:"double click on video"}),Ur(),Ci(e.uiConfig.controls.hideTimeoutCursor))},yr=me=>{var ft;if(me.preventDefault(),P()){zo();return}if(Mi&&zo(),X()||p()){cn();return}if(!(I()&&!fr)){if(n($t))return ao();if((ft=nt())==null||ft.focus(),!vt()){e.firstStart(),Ci(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||oe()!==qv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ci(e.uiConfig.controls.hideTimeoutCursor)}},xr=me=>{cn(),oo.set(!0),Ci(e.uiConfig.controls.hideTimeout),me&&Hr(e.uiConfig.controls.hideHotKeyHelpers,me)},wr=()=>{var me,ft;cn(),(me=e.store.callbacks)!=null&&me.onOpenHotKeyMap?(ft=e.store.callbacks)==null||ft.onOpenHotKeyMap(j()):Hi.update(Xt=>!Xt)},rs=()=>{oo.set(!0)},ss=e.store.ui.contextMenu.openedByBtnKeyboard$,Xe=e.store.ui.contextMenu.btnRef$,zt=K(void 0),xi=e.store.ui.contextMenu.openedByHotKey$,Ko=e.store.ui.contextMenu.lastActiveElem$,po=e.store.ui.previewTrackActive;Oe(()=>{rn.set(n(xn))}),Oe(()=>{N(er,n(Dr)&&oe()!==qv.PlaybackState.PLAYING,!0),n(Dr)||Pt(()=>N(Dr,!0))}),Oe(()=>{var ft,Xt;let me=(n(er)||I()||p()||ge()||ce()||re()||_e())&&!n(so)&&(s()==="video"||s()==="ads")&&!a()&&E();Yt.set(me),!me&&!_e()&&e.uiConfig.returnFocusOnControlsHide&&((ft=n(Xn))!=null&&ft.contains(tp()))&&((Xt=nt())==null||Xt.focus())}),Oe(()=>{!ge()&&n(wt)&&!u()&&Ci(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>N(wt,ge(),!0))}),Oe(()=>{n(yn),p(),we(),Pt(()=>nc(n(yn),p(),we()))}),Oe(()=>{n(zt),X(),Z(),Re(),Pt(()=>{let me=Z()||Re();nc(n(zt),X(),me)})}),Oe(()=>{let me=ue();me&&(X(),Pt(()=>Ql(me,X(),ss)))}),Oe(()=>{let me=A();me&&(X(),Pt(()=>G_(me,X(),xi)))}),Oe(()=>{var me;!We()&&$()&&(Pt(()=>Ii.set(!1)),(me=nt())==null||me.focus())}),Oe(()=>{y()&&cn()});let Sr=K(void 0),fn=me=>{an.set(qn(Rn(),{title:n(Sr)},"title",me))},Tr=(me,ft)=>{var oi,ti;let Xt=(ti=(oi=e.store.callbacks)==null?void 0:oi.uiInfo)==null?void 0:ti.onUpcomingLiveViewStateChanged;if(!Xt)return;let wi=!!ft,zi={...qn(n(no),{upcomingLiveScreen:ft},"upcomingLiveScreen",wi),...me};Xt(zi)};var Os=bT();_t("blur",Sa,cn);var Sn=de(Os);Sn.__mousemove=uo;var Ds=T(Sn);let nr=v(()=>s()==="ads"),as=v(()=>n($t)?ao:void 0);ot(mm(Ds,{startDoubleForwardActivationTimer:Uo,stopDoubleForward:zo,toggleFullscreen:Ur,hideContextMenu:cn,showHotKeyHelpers:xr,showKeyMap:wr,get isAds(){return n(nr)},get fakePlayButtonHandler(){return n(as)},get nextButtonActive(){return be()},get prevButtonActive(){return J()},children:(me,ft)=>{var Xt=hT(),wi=de(Xt);rl(wi,{get hideCursor(){return n(Fr)},onClick:yr,onContextMenu:un,onMouseDown:yo,onMouseUp:Wo,onDblClick:pn,get videoContainer(){return et()},set videoContainer(ti){et(ti)}});var zi=k(wi,2);Aa(zi,()=>"slot",!1,(ti,fo)=>{Xi(ti,()=>({name:nl}))});var oi=k(zi,2);Ts(oi,Ce,ti=>{var fo=gT(),Bn=de(fo);let Fn=v(()=>s()!=="thumb"||a()||Lo&&e.autoplay);tl(Bn,{get hidden(){return n(Fn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:un,onClick:wn});var Ei=k(Bn,2);{var vd=Fe=>{Wv(Fe,{})};V(Ei,Fe=>{Y()&&Fe(vd)})}var ll=k(Ei,2);Uv(ll,{});var Bs=k(ll,2);zv(Bs,{get isVisible(){return P()}});var da=k(Bs,2);{var ca=Fe=>{let mi=v(()=>{var Go;return(Go=e.live)==null?void 0:Go.startTime});Mc(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(mi)},onUpcomingLiveViewStateChanged:Tr,onContextMenu:un,onClick:wn})};V(da,Fe=>{s()==="LiveWaitingStart"&&Fe(ca)})}var mn=k(da,2);{var dl=Fe=>{il(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:un,onClick:wn})};V(mn,Fe=>{s()==="LiveWaitingRecover"&&Fe(dl)})}var ua=k(mn,2);{var zr=Fe=>{il(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:un,onClick:wn})};V(ua,Fe=>{s()==="LiveWaitingRecord"&&Fe(zr)})}var ls=k(ua,2);{var Fs=Fe=>{var mi=pT();let Go;var ga=T(mi);Jd(ga,{get adsSlotId(){return Ot()},get adsParams(){return Kt()},get adsAutoplayParam(){return Tt()},get duration(){return Zt()},get adsExternalApi(){return e.adsExternalApi}}),w(mi),B(Co=>Go=se(mi,1,"ads-container s-9",null,Go,Co),[()=>({hidden:s()!=="ads"})]),_(Fe,mi)};V(ls,Fe=>{e.showAds&&vt()&&Fe(Fs)})}var pa=k(ls,2);{var cl=Fe=>{let mi=v(()=>!ze()&&e.showAutoplayNext&&S());um(Fe,{get title(){return xe()},get thumb(){return Pe()},get isHide(){return n(mi)},clickCloseIcon:()=>N(tr,!0)})};V(pa,Fe=>{n(Dn)&&xe()&&Pe()&&Fe(cl)})}var ul=k(pa,2);{var gd=Fe=>{let mi=v(()=>!f());vv(Fe,{get title(){return e.title},get isHidden(){return n(mi)},onVisibilityChanged:fn,get ref(){return n(Sr)},set ref(Go){N(Sr,Go,!0)}})};V(ul,Fe=>{n(Br)&&Fe(gd)})}var pl=k(ul,2);{var fl=Fe=>{let mi=v(()=>s()==="video"&&f());kc(Fe,{get isShifted(){return n(mi)}})};V(pl,Fe=>{G()&&Fe(fl)})}var Cr=k(pl,2);{var hd=Fe=>{var mi=fT(),Go=T(mi);jd(Go,{}),w(mi),_(Fe,mi)};V(Cr,Fe=>{ie()&&Fe(hd)})}var fa=k(Cr,2);{var ml=Fe=>{Lc(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(fa,Fe=>{re()&&Fe(ml)})}var ct=k(fa,2);{var mt=Fe=>{Ja(Fe,{get shifted(){return f()},get captions(){return fe()},get position(){return ee()},get playerSize(){return z()}})};V(ct,Fe=>{De().value!=="off"&&Fe(mt)})}var Wi=k(ct,2);{var Qo=Fe=>{var mi=mT();mi.__contextmenu=un,mi.__click=[uT,X,je,p,St,cn];var Go=T(mi);el(Go,{}),w(mi),_(Fe,mi)};V(Wi,Fe=>{a()&&Fe(Qo)})}var Ki=k(Wi,2);{var bi=Fe=>{let mi=v(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Go=v(()=>s()==="ads"),ga=v(()=>e.canRewindLive&&Se()!==0);Pc(Fe,{get bottomHidden(){return n(mi)},get bottomNoSmooth(){return D()},get showControls(){return f()},get isAds(){return n(Go)},get canRewindLive(){return n(ga)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Dt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ye()},get nextButtonActive(){return be()},get prevButtonActive(){return J()},get isOneVideoPlaylist(){return It()},customFullscreenSupported:On,toggleFullscreen:Ur,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(gr)},set playerControlsWrapperRef(Co){N(gr,Co,!0)},get playerControlsRef(){return n(Xn)},set playerControlsRef(Co){N(Xn,Co,!0)}})};V(Ki,Fe=>{vt()&&Fe(bi)})}var Vi=k(Ki,2);{var ma=Fe=>{var mi=vT(),Go=T(mi);let ga=v(()=>{var Co;return(Co=n(Xn))==null?void 0:Co.clientHeight});Oc(Go,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(ga)},returnFocus:()=>{var Co;return(Co=nt())==null?void 0:Co.focus()},get ref(){return n(yn)},set ref(Co){N(yn,Co,!0)}}),w(mi),_(Fe,mi)};V(Vi,Fe=>{!re()&&s()!=="ads"&&Fe(ma)})}var vl=k(Vi,2);let Np=v(()=>!n(Oo));ic(vl,{get isLive(){return Be()},get isHidden(){return n(Np)},get isPlaying(){return Ke()},get position(){return ee()},get duration(){return Se()}});var Xc=k(vl,2);fv(Xc,{get data(){return Ro}});var Zc=k(Xc,2);dm(Zc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=nt())==null?void 0:Fe.focus()},get visible(){return X()},get playerContainerRef(){return n(no)},get position(){return Ye()},get menuElementRef(){return n(zt)},set menuElementRef(Fe){N(zt,Fe,!0)}});var va=k(Zc,2);{var Op=Fe=>{Dc(Fe,{onClose:hr,onSelectAutoQuality:()=>{Mr("auto"),hr()}})};V(va,Fe=>{n(Zn)&&Fe(Op)})}var Hs=k(va,2);{var gl=Fe=>{Kv(Fe,{})};V(Hs,Fe=>{Te()&&Fe(gl)})}var Jc=k(Hs,2);{var eu=Fe=>{za(Fe,{})};V(Jc,Fe=>{n(Or)&&Fe(eu)})}var hl=k(Jc,2);{var tu=Fe=>{hm(Fe,{})};V(hl,Fe=>{Le()&&Fe(tu)})}var Dp=k(hl,2);{var iu=Fe=>{sc(Fe,{})};V(Dp,Fe=>{Ue()&&Fe(iu)})}_(ti,fo)}),_(me,Xt)},$$slots:{default:!0}}),me=>nt(me),()=>nt());var pt=k(Ds,2);ot(pt,me=>N(xn,me),()=>n(xn)),w(Sn),ot(Sn,me=>N(no,me),()=>n(no));var ci=k(Sn,2);{var qo=me=>{var ft=_T();_(me,ft)};V(ci,me=>{Vt()&&me(qo)})}_t("mouseenter",Sn,ns),_t("mouseleave",Sn,Lt),_t("click",Sn,rs,!0),_t("focusin",Sn,qe,!0),_(t,Os),H(),o()}rt(["mousemove","contextmenu","click"]);var la=require("@vkontakte/videoplayer-core/es2018"),e$=require("@vkontakte/videoplayer-shared/es2018");var yT=L('<div></div> <div class="info s-r"><div class="triangles-wrapper s-r"><div></div> <div></div> <div></div></div> <p class="step-caption s-r"> </p></div>',1),xT=L("<div><!></div>"),wT={hash:"s-r",code:".double-click-area.s-r{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-r{left:0}.double-click-area.right.s-r{right:0}.semicircle.s-r{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-r{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-r{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-r{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-r,.triangles-wrapper.s-r{display:flex;justify-content:center}.triangles-wrapper.s-r{margin-bottom:10px;position:relative}.triangle.s-r{animation:s-r-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-r:nth-child(3),.triangle.right.s-r:first-child{animation-delay:0s}.triangle.left.s-r:nth-child(2),.triangle.right.s-r:nth-child(2){animation-delay:.1s}.triangle.left.s-r:first-child,.triangle.right.s-r:nth-child(3){animation-delay:.2s}@keyframes s-r-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-r{border-right:8px solid var(--white)}.triangle.right.s-r{border-left:8px solid var(--white)}.triangle.s-r:not(:last-child){margin-right:5px}.step-caption.s-r{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function yp(t,e){F(e,!0),q(t,wT);let i=g(e,"seekStep",3,0),o=K(!1),r=0,s=0,l=K(ai(i())),d=m=>{m.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(m):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};hn(()=>{window.clearTimeout(r)});var a=xT();a.__click=d;var u=T(a);{var p=m=>{var f=yT(),b=de(f),y=k(b,2),$=T(y),S=T($),C=k(S,2),I=k(C,2);w($);var R=k($,2),E=T(R,!0);w(R),w(y),B(P=>{var O,D,U,z;se(b,1,`semicircle ${(O=e.side)!=null?O:""}`,"s-r"),se(S,1,`triangle ${(D=e.side)!=null?D:""}`,"s-r"),se(C,1,`triangle ${(U=e.side)!=null?U:""}`,"s-r"),se(I,1,`triangle ${(z=e.side)!=null?z:""}`,"s-r"),pe(E,P)},[()=>Q("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),_(m,f)};V(u,m=>{n(o)&&m(p)})}w(a),B(()=>{var m;return se(a,1,`double-click-area ${(m=e.side)!=null?m:""}`,"s-r")}),_(t,a),H()}rt(["click"]);var ST=(t,e,i)=>{e(!1),i()},TT=L('<div class="overlay s-n"></div> <div class="next-video s-n"><div class="top s-n"><div class="caption s-n"> </div> <!></div> <div class="row s-n"><div class="column s-n"><div class="thumb s-n"><div></div> <!></div></div> <div class="column s-n"><div class="title s-n"> </div></div></div></div>',1),CT={hash:"s-n",code:".overlay.s-n{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-n{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-n{display:flex;justify-content:space-between}.caption.s-n{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-n{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-n{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-n{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-n,.thumb-overlay.s-n{height:100%;width:100%}.thumb-overlay.s-n{position:absolute}.thumb-overlay.withOpacity.s-n{background:var(--black);opacity:.3}.title.s-n{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function Gv(t,e){F(e,!0),q(t,CT);let[i,o]=Ve(),r=()=>x(d,"$autoplayNextEnabled$",i),s=()=>x(a,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,p=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),f()},$=()=>{e.clickCloseIcon(),b()};Nt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=ke(),C=de(S);{var I=R=>{var E=TT(),P=k(de(E),2),O=T(P),D=T(O),U=T(D,!0);w(D);var z=k(D,2);As(z,{onClick:$}),w(O);var G=k(O,2);G.__click=[ST,u,m];var le=T(G),X=T(le),oe=T(X);let j;var ge=k(oe,2);{var ce=Z=>{ac(Z,{get isRunning(){return s()},onTimerEnded:y})};V(ge,Z=>{r()&&Z(ce)})}w(X),w(le);var re=k(le,2),_e=T(re),we=T(_e,!0);w(_e),w(re),w(G),w(P),B((Z,Re)=>{pe(U,Z),Qe(X,`background-image: url('${e.thumb}')`),j=se(oe,1,"thumb-overlay s-n",null,j,Re),pe(we,e.title)},[()=>r()?Q("end_screen_next_video"):Q("end_screen_recommended_video"),()=>({withOpacity:r()})]),_(R,E)};V(C,R=>{e.isHide||R(I)})}_(t,S),H(),o()}rt(["click"]);var Yb=require("@vkontakte/videoplayer-core/es2018");var jb=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{Yb.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),hn(()=>{i==null||i(),clearTimeout(o)})};var Xb=require("@vkontakte/videoplayer-core/es2018");var xp=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 Zb=require("@vkontakte/videoplayer-core/es2018"),Jb=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),p=()=>Zb.clientChecker.device.isIOS&&he(l)===Xb.VideoFormat.DASH_LIVE_CMAF,m=()=>{a==null||a(),a=null},f=b=>{if(m(),!p()||!b)return;let y=u();if(!y)return;let $=new xp(y),S=he(d),C=he(s),I=he(r);for(let P of S)C.some(D=>D.value===P.id)&&$.attach(P,I.value===P.id);let R=d.subscribe(P=>{for(let O of P)$.updateSrc(O)}),E=()=>{let P=$.getCurrentShowingId();o(he(s).find(O=>O.value===P))};y.textTracks.addEventListener("change",E),a=()=>{R(),$.detachAll(),y.textTracks.removeEventListener("change",E)}};Nt(()=>i.subscribe(f)),hn(m)};var IT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},ET=L("<!> <!>",1),PT=L("<div><!></div>"),AT=L('<div class="spherical-video-icon s-8"><!></div>'),kT=L("<div><!></div>"),LT=L('<div class="settings-mobile s-8"><!></div>'),MT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),VT=L('<div class="player-wrapper s-8" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),RT={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 Yv(t,e){var Dn,Fr;F(e,!0),q(t,RT);let[i,o]=Ve(),r=()=>x(Me,"$playerPhase",i),s=()=>x(hi,"$isLoaderVisible",i),l=()=>x(xe,"$adPlaybackState",i),d=()=>x(jt,"$crashed",i),a=()=>x(ts,"$notificationsToShow$",i),u=()=>x(J,"$playbackState$",i),p=()=>x(Dt,"$graphIsOpened$",i),m=()=>x(Je,"$interactiveHideMobileControls",i),f=()=>x(to,"$isEnded$",i),b=()=>x(lt,"$isInteractiveExpectation$",i),y=()=>x(vt,"$controlsVisible",i),$=()=>x(dt,"$touched",i),S=()=>x(ki,"$autoplayNextEnabled$",i),C=()=>x(ut,"$postrollPassed",i),I=()=>x(an,"$bottomNoSmooth",i),R=()=>x($i,"$videoSize",i),E=()=>x(Et,"$playerSize",i),P=()=>x(st,"$isFullscreen",i),O=()=>x(Pe,"$position$",i),D=()=>x(It,"$duration$",i),U=()=>x(nn,"$loadedMetadata",i),z=()=>x(ze,"$settingsMenuVisible",i),G=()=>x(Jt,"$scrubbingInProgress",i),le=()=>x(ri,"$volumeChangingInProgress",i),X=()=>x(_o,"$chromecastConnected$",i),oe=()=>x($e,"$isControlsAvailable",i),j=()=>x(si,"$isInteractiveTime$",i),ge=()=>x(St,"$isActiveLive",i),ce=()=>x(nt,"$settingsMenuOpenedByKeyboard",i),re=()=>x(be,"$language$",i),_e=()=>x(Qt,"$disabledControls$",i),we=()=>x(Bt,"$is3DVideo",i),Z=()=>x(W,"$icon3DVideoVisible",i),Re=()=>x(di,"$chromecastDeviceName$",i),ue=()=>x(io,"$currentSubtitle$",i),A=()=>x(on,"$currentSubtitleCaptions$",i),We=()=>x($n,"$realDuration$",i),Ce=()=>x(Ii,"$isLive$",i),Y=()=>x(Yt,"$isPlaying$",i),ie=()=>x(pi,"$debugPanelVisible",i),Ne=g(e,"videoContainer",15),De=g(e,"adsSlotId",3,void 0),fe=g(e,"adsParams",3,void 0),ee=g(e,"adsAutoplayParam",3,void 0),Se=g(e,"duration",3,void 0),Be=g(e,"logoTargetUrl",3,""),Ke=g(e,"showNextPrevButtons",3,!1),Ye=g(e,"nextButtonActive",3,!1),Te=g(e,"prevButtonActive",3,!1),Le=g(e,"endScreenVideoTitle",3,void 0),Ue=g(e,"endScreenVideoThumb",3,void 0),Vt=g(e,"isOneVideoPlaylist",3,!1),et=g(e,"showMiniTimer",3,!1),Ot=g(e,"fullScreenTarget",3,void 0),Kt=g(e,"playerStarted",3,!1),Tt=g(e,"showEndScreen",3,!0),{notifications$:Zt,graphIsOpened$:Dt}=wo(),ye=e.store.getLogger().createComponentLog("Root component"),be=e.store.interfaceLanguage$,J=e.store.state.playbackState$,xe=e.store.ads.playbackState,Pe=e.store.state.positionWithScrubbing$,It=e.store.state.duration$,Me=e.store.playerPhase,st=e.store.ui.isFullscreen,vt=e.store.ui.controlsVisible,$e=e.store.ui.isControlsAvailable,Je=e.store.ui.interactiveHideMobileControls,ze=e.store.ui.settingsMenu.visible$,nt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,ri=e.store.ui.volumeChangingInProgress,pi=e.store.ui.debugPanelVisible,hi=e.store.state.isLoaderVisible,to=e.store.state.isEnded$,_o=e.store.state.chromecastConnected$,di=e.store.state.chromecastDeviceName$,ut=e.store.ads.postrollPassed,Ii=e.store.state.isLive$,Yt=e.store.state.isPlaying$,St=e.store.state.isActiveLive$,ii=e.store.state.isRewindableLive$,jt=e.store.state.crashed$,bt=e.store.webApi.annotationsApi,je=e.store.webApi.pictureInPictureApi,$i=e.store.state.videoSize$,io=e.store.state.currentSubtitle$,on=e.store.state.currentSubtitleCaptions$,$n=e.store.state.duration$,Et=e.store.ui.playerSize,Bt=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,kt=e.store.state.isInteractive,si=e.store.state.isInteractiveTime$,lt=e.store.state.isInteractiveExpectation$,Ct=e.store.state.hasInteractiveBranches,Qt=e.store.ui.controls.disabledControls$,dt=e.store.ui.touched,Ai=e.store.ui.overlayContainer$,ki=e.store.ui.autoplayNextEnabled$,nn=e.store.state.loadedMetadata$,Lo=e.store.actions.internal.closeSettingsMenu,bo=(Dn=e.store.callbacks)==null?void 0:Dn.onDisabledPlayPrevChapterClick,Fi=(Fr=e.store.callbacks)==null?void 0:Fr.onDisabledSeekToInteractiveClick,fr=e.store.actions.internal.setQuality,oo=K(void 0),$o=K(void 0),Hi=K(void 0),rn=K(void 0),sn,Gn,mr=v(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),Mr=K(void 0),{closeNotification:bs,notificationsToShow$:ts}=Zt,is=v(()=>!!a().slow_video),Yn=()=>bs("slow_video"),an=ae(!1),Mo,ln=K(!1),jn=v(()=>u()!==la.PlaybackState.PLAYING),Rn=K(!1),Vr=v(()=>p()||m()||!n(ln)&&(f()&&!!Ct||n(jn)&&b())),Rr=K(!0),os=v(()=>e.uiConfig.features.thumbTimer&&et()&&r()==="video"&&!y()&&!d()&&!kt&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),vr=K(!1),no=v(()=>(Tt()||e.showAutoplayNext&&S())&&!!Le()&&!!Ue()&&(e.showAds&&C()||!e.showAds)&&f()&&!d()&&!n(vr)),gr=K(!1);je==null||je.setContext(wd());let Xn=wt=>{wt&&!kt&&ro(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Xn});let yn=()=>{clearTimeout(sn),N(ln,!1),m()&&Je.set(!1)},ro=wt=>{yn(),N(ln,!0),sn=setTimeout(()=>N(ln,!1),wt);let $t=wt-100;Mo=setTimeout(()=>{I()&&an.set(!1)},$t>0?$t:wt)},Nr=Bt.subscribe(wt=>{W.set(wt),wt&&(clearTimeout(Gn),Gn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Nn=async(wt=Js())=>{var $t,ao,Li,lo,Do,Bo;if(wt&&!la.clientChecker.device.isIOS){let co=Xd(),Ci=xn(),Hr=la.clientChecker.browser.isSamsungBrowser&&co===e.shadowRootContainer;wt=co===Ci||Hr}if(wt){ro(e.uiConfig.controls.hideTimeoutFullscreen);try{await(je==null?void 0:je.exit())}catch(co){ye({message:String(co)})}try{let co=($t=R())!=null&&$t.width&&((ao=R())!=null&&ao.height)?R():E();await U_(co)}catch(co){ye({message:String(co)})}}st.set(wt),e.store.getAdmanWrapper().setFullscreen(wt),P()?(lo=(Li=e.store.callbacks)==null?void 0:Li.onFullscreenEnter)==null||lo.call(Li):(Bo=(Do=e.store.callbacks)==null?void 0:Do.onFullscreenExit)==null||Bo.call(Do)},gt=wt=>{let $t=wt,{width:ao,height:Li}=$t.target;Et.set({width:ao,height:Li})},ei=()=>{let{width:wt,height:$t}=n(oo).getBoundingClientRect();Et.set({width:wt,height:$t})};Nt(()=>{var wt;return Gu(Nn),e.uiConfig.features.annotationsInside&&(bt==null||bt.init(n(oo))),Ba(je)&&(je==null||je.assignPlayerContainer(n(oo)),je==null||je.setExternalEventHandlers({resize:gt,leavepictureinpicture:ei})),N(Rr,!la.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((wt=Ne().parentElement)==null||wt.insertBefore(e.interactiveContainer,Ne().nextSibling)),()=>{clearTimeout(sn),clearTimeout(Mo),clearTimeout(Gn),Nr(),je==null||je.dispose().catch($t=>{ye({message:String($t)})}),Yu(Nn)}});let Zn=K(!0),hr=K(!0),Or=wt=>{let $t=O()+(wt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;$t<0?(N(Zn,!1),$t=0):$t>=D()&&(N(hr,!1),$t=D()),N(Rn,!0),e.seekTime($t)},xn=()=>la.clientChecker.device.isIOS?n(oo):!e.uiConfig.allowChangingFullscreenTarget||!Ot()?e.outerContainerRef:Ot().contains(e.outerContainerRef)?Ot():e.outerContainerRef,_r=async()=>{try{if(Js())await Qu(document),ye({message:"exit fullscreen"});else{if(ye({message:"request fullscreen"}),la.clientChecker.device.isIOS&&!U())return;await qu(xn())}}catch(wt){ye({message:String(wt)})}},Vo=()=>{Lo()},dn=wt=>{if(wt.preventDefault(),z()){Vo();return}if(!Kt()){e.firstStart(),ro(e.uiConfig.controls.hideTimeoutCursor);return}N(Rn,!1),y()?yn():ro(e.uiConfig.controls.hideTimeoutMobile)},Ro=()=>{dt.set(!0)},Jn=()=>{kt||(an.set(!0),ro(e.uiConfig.controls.hideTimeoutCursor))},Ui=wt=>{bo&&(bo(wt),ro(e.uiConfig.controls.hideTimeoutMobile))},No=wt=>{Fi&&(Fi(wt),ro(e.uiConfig.controls.hideTimeoutMobile))};Oe(()=>{Ai.set(n(Mr))}),Oe(()=>{vt.set((n(jn)||z()||G()||le()||X()||!n(no)&&(f()||n(ln)&&!n(Rn)))&&!n(Vr)&&r()==="video"&&!d()&&oe())}),Oe(()=>{!G()&&n(gr)&&!j()&&ro(e.uiConfig.controls.hideTimeoutMobile),N(gr,G(),!0)}),Oe(()=>{N(Zn,O()>0),N(hr,!ge()&&O()<D(),!0)}),Oe(()=>{nc(n(rn),z(),ce(),!0)});let er=Q("aria_label_video_player");jb({fullScreenChangeHandler:Nn,getFullscreenTarget:xn}),Jb({store:e.store,getFullscreenTarget:xn});let Dr=(wt,$t)=>{var Do,Bo;let ao=(Bo=(Do=e.store.callbacks)==null?void 0:Do.uiInfo)==null?void 0:Bo.onUpcomingLiveViewStateChanged;if(!ao)return;let Li=!!$t,lo={...qn(n(oo),{upcomingLiveScreen:$t},"upcomingLiveScreen",Li),...wt};ao(lo)};var so=VT();_t("blur",Sa,Vo);var On=T(so);rl(On,{onClick:dn,get videoContainer(){return Ne()},set videoContainer(wt){Ne(wt)}});var Oo=k(On,2);Aa(Oo,()=>"slot",!1,(wt,$t)=>{Xi(wt,()=>({name:nl}))});var Br=k(Oo,2);Ts(Br,re,wt=>{var $t=MT(),ao=de($t);let Li=v(()=>r()!=="thumb"||d()||kt&&e.autoplay);tl(ao,{get hidden(){return n(Li)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var lo=k(ao,2);{var Do=Xe=>{var zt=ET(),xi=de(zt);{var Ko=fn=>{let Tr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);yp(fn,{side:"left",get seekStep(){return n(Tr)},handleSingleFirstClick:dn,handleSecondClick:()=>Or("backward")})};V(xi,fn=>{n(Zn)&&fn(Ko)})}var po=k(xi,2);{var Sr=fn=>{let Tr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);yp(fn,{side:"right",get seekStep(){return n(Tr)},handleSingleFirstClick:dn,handleSecondClick:()=>Or("forward")})};V(po,fn=>{n(hr)&&fn(Sr)})}_(Xe,zt)};V(lo,Xe=>{e.canRewindLive&&ii&&!_e().has("TIMELINE")&&Xe(Do)})}var Bo=k(lo,2);{var co=Xe=>{let zt=v(()=>{var xi;return(xi=e.live)==null?void 0:xi.startTime});Mc(Xe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(zt)},onUpcomingLiveViewStateChanged:Dr})};V(Bo,Xe=>{r()==="LiveWaitingStart"&&Xe(co)})}var Ci=k(Bo,2);{var Hr=Xe=>{il(Xe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Ci,Xe=>{r()==="LiveWaitingRecover"&&Xe(Hr)})}var ir=k(Ci,2);{var Fo=Xe=>{il(Xe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(ir,Xe=>{r()==="LiveWaitingRecord"&&Xe(Fo)})}var br=k(ir,2);{var or=Xe=>{var zt=PT();let xi;var Ko=T(zt);Jd(Ko,{get adsSlotId(){return De()},get adsParams(){return fe()},get adsAutoplayParam(){return ee()},get duration(){return Se()},get adsExternalApi(){return e.adsExternalApi}}),w(zt),B(po=>xi=se(zt,1,"ads-container s-8",null,xi,po),[()=>({hidden:r()!=="ads"})]),_(Xe,zt)};V(br,Xe=>{e.showAds&&Kt()&&Xe(or)})}var $r=k(br,2);{var wn=Xe=>{let zt=v(()=>!Tt()&&e.showAutoplayNext&&S());Gv(Xe,{get title(){return Le()},get thumb(){return Ue()},get isHide(){return n(zt)},clickCloseIcon:()=>N(vr,!0)})};V($r,Xe=>{n(no)&&Le()&&Ue()&&Xe(wn)})}var cn=k($r,2);{var Ur=Xe=>{kc(Xe,{})};V(cn,Xe=>{we()&&Xe(Ur)})}var un=k(cn,2);{var ns=Xe=>{var zt=AT(),xi=T(zt);jd(xi,{}),w(zt),_(Xe,zt)};V(un,Xe=>{Z()&&Xe(ns)})}var qe=k(un,2);{var Lt=Xe=>{Lc(Xe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Re()}})};V(qe,Xe=>{X()&&Xe(Lt)})}var _i=k(qe,2);{var So=Xe=>{Ja(Xe,{get shifted(){return y()},get captions(){return A()},get position(){return O()},get playerSize(){return E()},isMobile:!0})};V(_i,Xe=>{ue().value!=="off"&&Xe(So)})}var To=k(_i,2);{var Ho=Xe=>{var zt=kT();zt.__click=[IT,z,ze,Vo];var xi=T(zt);el(xi,{}),w(zt),_(Xe,zt)};V(To,Xe=>{d()&&Xe(Ho)})}var uo=k(To,2);{var Mi=Xe=>{let zt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),xi=v(()=>r()==="ads"),Ko=v(()=>e.canRewindLive&&We()!==0);Pc(Xe,{get bottomHidden(){return n(zt)},get showControls(){return y()},get bottomNoSmooth(){return I()},get isAds(){return n(xi)},get canRewindLive(){return n(Ko)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Be()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ke()},get nextButtonActive(){return Ye()},get prevButtonActive(){return Te()},get isOneVideoPlaylist(){return Vt()},get customFullscreenSupported(){return n(Rr)},get endScreenShown(){return n(no)},toggleFullscreen:_r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Ui,onDisabledSeekToInteractiveClick:No,get playerControlsWrapperRef(){return n($o)},set playerControlsWrapperRef(po){N($o,po,!0)},get playerControlsRef(){return n(Hi)},set playerControlsRef(po){N(Hi,po,!0)}})};V(uo,Xe=>{Kt()&&Xe(Mi)})}var Uo=k(uo,2);{var zo=Xe=>{var zt=LT(),xi=T(zt);Oc(xi,{get supportLink(){return e.supportLink},get returnFocus(){return e$.noop},get ref(){return n(rn)},set ref(Ko){N(rn,Ko,!0)}}),w(zt),_(Xe,zt)};V(Uo,Xe=>{z()&&Xe(zo)})}var yo=k(Uo,2);let Wo=v(()=>!n(os));ic(yo,{get isLive(){return Ce()},get isHidden(){return n(Wo)},get isPlaying(){return Y()},get position(){return O()},get duration(){return D()}});var pn=k(yo,2);{var yr=Xe=>{za(Xe,{})};V(pn,Xe=>{n(mr)&&Xe(yr)})}var xr=k(pn,2);{var wr=Xe=>{sc(Xe,{})};V(xr,Xe=>{ie()&&Xe(wr)})}var rs=k(xr,2);{var ss=Xe=>{Dc(Xe,{onClose:Yn,onSelectAutoQuality:()=>{fr("auto"),Yn()}})};V(rs,Xe=>{n(is)&&Xe(ss)})}_(wt,$t)});var tr=k(Br,2);ot(tr,wt=>N(Mr,wt),()=>n(Mr)),w(so),ot(so,wt=>N(oo,wt),()=>n(oo)),B(()=>He(so,"aria-label",er)),_t("click",so,Ro,!0),_t("focusin",so,Jn,!0),_(t,so),H(),o()}rt(["click"]);function wp(t){let e="";return eo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),eo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),eo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),eo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),eo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),eo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),eo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),eo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),eo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),eo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),eo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),eo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),eo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),eo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),eo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),eo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),eo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),eo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),eo(t.font)&&(e+=`--font:${t.font};`),eo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),eo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function eo(t){return typeof t=="string"&&!t.includes(";")}var t$=require("@vkontakte/videoplayer-shared/es2018");var NT=L('<div class="time-container s-7"><!></div>'),OT=L('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),DT={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 jv(t,e){F(e,!0),q(t,DT);let[i,o]=Ve(),r=()=>x(j,"$scrubbingInProgress",i),s=()=>x(X,"$playerSize",i),l=()=>x(O,"$isPlaying$",i),d=()=>x(E,"$duration$",i),a=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(I,"$playerPhase",i),p=()=>x(R,"$crashed$",i),m=()=>x(D,"$currentSubtitle$",i),f=()=>x(U,"$currentSubtitleCaptions$",i),b=()=>x(P,"$positionExact$",i),y=()=>x(G,"$isLive$",i),$=()=>x(le,"$isRewindableLive$",i),S=g(e,"outsideDuration",3,0),C=g(e,"videoContainer",15),{playerPhase:I,state:{crashed$:R,duration$:E,positionExact$:P,isPlaying$:O,currentSubtitle$:D,currentSubtitleCaptions$:U,positionWithScrubbing$:z,isLive$:G,isRewindableLive$:le},ui:{playerSize:X,controls:oe,scrubbingInProgress:j},actions:{internal:{getVideoElement:ge}}}=ve(),ce=8,re=K(!1),_e=ai({}),we=K(!1),Z=v(()=>!r()&&!n(we)),Re=()=>{N(re,!0)},ue=()=>{N(re,!1)},A=(0,t$.debounceFn)(id,260);Oe(()=>{s(),A(ge(),oe,_e,n(re))});let We=v(()=>l()?tn(d()-a()):tn(isFinite(d())?d():S()));var Ce=OT(),Y=T(Ce);rl(Y,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Le){C(Le)}});var ie=k(Y,2);Aa(ie,()=>"slot",!1,(Le,Ue)=>{Xi(Le,()=>({name:nl}))});var Ne=k(ie,2);let De=v(()=>u()!=="thumb"||p());tl(Ne,{get hidden(){return n(De)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var fe=k(Ne,2);{var ee=Le=>{Ja(Le,{shifted:!1,get captions(){return f()},get position(){return b()},get playerSize(){return s()}})};V(fe,Le=>{m().value!=="off"&&n(Z)&&Le(ee)})}var Se=k(fe,2);{var Be=Le=>{var Ue=NT(),Vt=T(Ue);tc(Vt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(We)}}),w(Ue),_(Le,Ue)};V(Se,Le=>{n(Z)&&Le(Be)})}var Ke=k(Se,2);let Ye;var Te=T(Ke);ja(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(Le){_e.timeline=Le}}),w(Ke),w(Ce),B(Le=>Ye=se(Ke,1,"timeline s-7",null,Ye,Le),[()=>({visible:n(re)})]),_t("mouseenter",Ce,Re),_t("mouseleave",Ce,ue),_t("mouseenter",Ke,()=>N(we,!0)),_t("mouseleave",Ke,()=>N(we,!1)),_(t,Ce),H(),o()}var BT=L("<div><!></div>"),FT={hash:"s-0",code:'.vk-vp-root.s-0{--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;--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-0{overflow:visible}.vk-vp-root.s-0 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-0 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-0 p{margin:0}.vk-vp-root.s-0 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-0 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-0 :focus,.vk-vp-root.s-0 :focus-visible{outline:none}.vk-vp-root.s-0 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-0 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-0 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-0 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-0 .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-0 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-0 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function Xv(t,e){F(e,!0),q(t,FT);let[i,o]=Ve(),r=()=>x(Kt,"$isLive$",i),s=()=>x(bt,"$availableSubtitlesList$",i),l=()=>x(je,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),a=g(e,"store",7),u=g(e,"microStoresRoot",7),p=g(e,"videoConfig",7),m=g(e,"uiConfig",7),f=g(e,"title",7),b=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),$=g(e,"interactiveController",7),S=g(e,"subtitles",7),C=g(e,"subtitlesForcedLanguage",7),I=g(e,"live",7),R=g(e,"preload",7),E=g(e,"autoplay",7),P=g(e,"volume",7,void 0),O=g(e,"muted",7,void 0),D=g(e,"fromTime",7),U=g(e,"canRewindLive",7),z=g(e,"showAds",7),G=g(e,"adsSlotId",7,void 0),le=g(e,"adsParams",7,void 0),X=g(e,"adsAutoplayParam",7,void 0),oe=g(e,"duration",7,void 0),j=g(e,"logoClickable",7),ge=g(e,"logoHidden",7),ce=g(e,"isMobile",7),re=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),we=g(e,"prevButtonActive",7,!1),Z=g(e,"endScreenVideoTitle",7,void 0),Re=g(e,"endScreenVideoThumb",7,void 0),ue=g(e,"isOneVideoPlaylist",7,!1),A=g(e,"supportLink",7),We=g(e,"shadowRootContainer",7),Ce=g(e,"outerContainerRef",7),Y=g(e,"fullScreenTarget",7,void 0),ie=g(e,"failoverHosts",7,void 0),Ne=g(e,"showMiniTimer",7,!1),De=g(e,"saveRate",7),fe=g(e,"seekToInteractive",7,sl.noop),ee=g(e,"playPrevChapter",7,sl.noop),Se=g(e,"volumeMultiplier",7),Be=g(e,"showAutoplayNext",7),Ke=g(e,"showEndScreen",7,!0),Ye=g(e,"keyboardControls",15,void 0),{subscribers:Te,stores:Le}=u();Xh(m());let Ue=Mt(),Vt=m().logoLink,et=a().ui.debugPanelVisible,Ot=a().ui.playerSize,Kt=a().state.isLive$,Zt=a().state.isInteractive&&ad.clientChecker.device.isAndroid,Dt=K(void 0),ye=null,be=K(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),l_(a(),Le),Oe(()=>{var W,kt;a().ui.isMobile.set(ce()),(kt=(W=p().callbacks)==null?void 0:W.onDomReady)==null||kt.call(W)});let J=(W=!1)=>{N(be,!0),W?a().actions.external.firstStart(z()):a().actions.internal.firstStart(z())},xe=()=>{if(Ue.features.qualityDetailsSubMenuEnabled){let W=A_(a().videoId);if(W)switch(W.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,W.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,W.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(W.quality);break}}else{k_(a().videoId),Kf()&&a().actions.internal.setTrafficSavingEnabled(!0);let kt=Hf(a().videoId);kt&&a().actions.internal.setQuality(kt)}};function Pe(W){var Qt,dt,Ai;let kt=d()||W;kt&&a().initVideo({container:n(Dt),sources:kt,failoverHosts:ie(),subtitles:S(),subtitlesForcedLanguage:C(),volumeMultiplier:Se()});let si=sl.safeStorage.get(Kd)==="true";et.set(si),D()>0&&a().actions.external.seekTime(D());let lt=ce()?Ue.volumeDefault:(dt=(Qt=P())!=null?Qt:Ou())!=null?dt:Ue.volumeDefault,Ct=(Ai=O())!=null?Ai:S_();if(a().actions.external.setVolume(lt),a().actions.external.setMuted(Ct),a().getAdmanWrapper().setInitialVolume(Ct?0:lt),xe(),Ue.features.saveRate&&De()){let ki=I_();ki&&!r()&&a().actions.internal.setPlaybackRate(ki)}if(Be()){let ki=P_();ki&&a().actions.internal.setAutoplayNextEnabled(ki)}a().ui.isAutoplay.set(E()),E()&&J(),R()&&Ue.features.preload&&a().actions.internal.preload()}let It=W=>{if(window.ResizeObserver){let kt,si;ye=new ResizeObserver((0,sl.throttleFn)(lt=>{let Ct=lt[0];if(Ct.contentBoxSize){let Qt=Array.isArray(Ct.contentBoxSize)?Ct.contentBoxSize[0]:Ct.contentBoxSize;kt=Qt.inlineSize,si=Qt.blockSize}else Ct.contentRect&&(kt=Ct.contentRect.width,si=Ct.contentRect.height);Ot.set({width:kt,height:si})},300)),ye.observe(W)}Ot.set({width:W.clientWidth,height:W.clientHeight})},Me=()=>{document.hidden&&a().actions.external.stop()};Nt(()=>{var si,lt,Ct,Qt;Zt&&document.addEventListener("visibilitychange",Me),Ue.debugLog&&a().actions.internal.startLogging(),It(n(Dt));let W=Te.map(dt=>dt.init({store:a(),microStores:Le,config:p(),interactiveController:$(),uiConfig:m()})),kt=()=>{Zt&&document.removeEventListener("visibilitychange",Me),ye==null||ye.disconnect(),W.forEach(dt=>dt.unsubscribe()),a().destroy()};return((si=I())==null?void 0:si.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),kt):((lt=I())==null?void 0:lt.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),kt):(((Ct=I())==null?void 0:Ct.status)==="finished"||((Qt=I())==null?void 0:Qt.status)==="postlive")&&!(d()&&(0,ad.areValidLiveRecordSources)(d()))?(a().actions.internal.setLiveWaitingRecord(!0),kt):(Pe(),kt)});function st(){n(be)?a().actions.external.play():J(!0)}function vt(){a().actions.external.pause()}function $e(W){a().actions.external.setMuted(W)}function Je(){a().actions.external.toggleSubtitle()}function ze(W,kt){a().actions.external.changeSubtitle(W,kt)}function nt(W){a().actions.external.changeAudioStream(W)}function Jt(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.hideControls()}function ri(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.showControls()}function pi(W){ce()||W>=0&&W<=1&&a().actions.external.setVolume(W)}function hi(W){a().actions.internal.seekTime(W,i$.SeekAction.UNKNOWN)}function to(W){a().actions.external.seekEpisodeStartTime(W)}function _o(){a().actions.external.returnFocusToEpisodes()}function di(W){a().actions.external.setPlaybackRate(W)}function ut(W){a().actions.external.setAutoQualityLimits(W)}function Ii(){a().actions.external.setQuality("auto")}function Yt(W){a().actions.external.setTrafficSavingEnabled(W)}function St(W){a().actions.external.setHighQualityEnabled(W)}let ii=wp(Ue.view),jt=p().playerView==="preview",bt=a().state.availableSubtitlesList$;if(Ue.features.initSubtitles){let W=!1;Oe(()=>{var kt;if(!W&&s().length){W=!0;let si;if(Ue.features.userVideoPrefs&&a().videoId){let Ct=Hu(Ue.userSalt,String(a().videoId));Ct!=null&&Ct.subtitleTrackId&&(si=s().find(Qt=>Qt.value===Ct.subtitleTrackId))}let lt=(kt=C())!=null?kt:Qf();lt&&(si=s().find(Ct=>Ct.language===lt)),a().actions.internal.setSubtitle(si)}})}let je=a().ui.isPreviewTrackHorizontallyAligned;var $i=BT();let io;var on=T($i);{var $n=W=>{Yv(W,{get store(){return a()},get uiConfig(){return Ue},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return E()},get canRewindLive(){return U()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return j()},get logoHidden(){return ge()},get logoTargetUrl(){return Vt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return ue()},get supportLink(){return A()},get shadowRootContainer(){return We()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Ne()},get playerStarted(){return n(be)},get seekToInteractive(){return fe()},get playPrevChapter(){return ee()},firstStart:J,seekTime:hi,get showEndScreen(){return Ke()},get showAutoplayNext(){return Be()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Dt)},set videoContainer(kt){N(Dt,kt,!0)}})},Et=W=>{var kt=ke(),si=de(kt);{var lt=Qt=>{jv(Qt,{get thumbUrl(){return b()},get outsideDuration(){return oe()},get canRewindLive(){return U()},get videoContainer(){return n(Dt)},set videoContainer(dt){N(Dt,dt,!0)}})},Ct=Qt=>{Qv(Qt,{get store(){return a()},get uiConfig(){return Ue},get title(){return f()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return E()},get canRewindLive(){return U()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return j()},get logoHidden(){return ge()},get logoTargetUrl(){return Vt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Re()},get isOneVideoPlaylist(){return ue()},get supportLink(){return A()},get shadowRootContainer(){return We()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Ne()},get playerStarted(){return n(be)},get seekToInteractive(){return fe()},get playPrevChapter(){return ee()},firstStart:J,get showEndScreen(){return Ke()},get showAutoplayNext(){return Be()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Dt)},set videoContainer(dt){N(Dt,dt,!0)},get keyboardControls(){return Ye()},set keyboardControls(dt){Ye(dt)}})};V(si,Qt=>{jt?Qt(lt):Qt(Ct,!1)})}_(W,kt)};V(on,W=>{ce()?W($n):W(Et,!1)})}w($i),B(W=>{io=se($i,1,"vk-vp-root s-0",null,io,W),Qe($i,ii)},[()=>({"root--miui-browser":ad.clientChecker.device.isMobile&&ad.clientChecker.browser.isMiuiBrowser,"visible-outside":jt,"preview-track-horizontally-alinged":l()})]),_(t,$i);var Bt=H({initVideo:Pe,play:st,pause:vt,setMuted:$e,toggleSubtitle:Je,changeSubtitle:ze,changeAudioStream:nt,hideControls:Jt,showControls:ri,setVolume:pi,seekTime:hi,seekEpisodeStartTime:to,returnFocusToEpisodes:_o,setPlaybackRate:di,setAutoQualityLimits:ut,setAutoQuality:Ii,toggleTrafficSaving:Yt,toggleHighQuality:St,get sources(){return d()},set sources(W){d(W)},get store(){return a()},set store(W){a(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return p()},set videoConfig(W){p(W)},get uiConfig(){return m()},set uiConfig(W){m(W)},get title(){return f()},set title(W){f(W)},get thumbUrl(){return b()},set thumbUrl(W){b(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return $()},set interactiveController(W){$(W)},get subtitles(){return S()},set subtitles(W){S(W)},get subtitlesForcedLanguage(){return C()},set subtitlesForcedLanguage(W){C(W)},get live(){return I()},set live(W){I(W)},get preload(){return R()},set preload(W){R(W)},get autoplay(){return E()},set autoplay(W){E(W)},get volume(){return P()},set volume(W){P(W)},get muted(){return O()},set muted(W){O(W)},get fromTime(){return D()},set fromTime(W){D(W)},get canRewindLive(){return U()},set canRewindLive(W){U(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return G()},set adsSlotId(W){G(W)},get adsParams(){return le()},set adsParams(W){le(W)},get adsAutoplayParam(){return X()},set adsAutoplayParam(W){X(W)},get duration(){return oe()},set duration(W){oe(W)},get logoClickable(){return j()},set logoClickable(W){j(W)},get logoHidden(){return ge()},set logoHidden(W){ge(W)},get isMobile(){return ce()},set isMobile(W){ce(W)},get showNextPrevButtons(){return re()},set showNextPrevButtons(W){re(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return we()},set prevButtonActive(W){we(W)},get endScreenVideoTitle(){return Z()},set endScreenVideoTitle(W){Z(W)},get endScreenVideoThumb(){return Re()},set endScreenVideoThumb(W){Re(W)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(W){ue(W)},get supportLink(){return A()},set supportLink(W){A(W)},get shadowRootContainer(){return We()},set shadowRootContainer(W){We(W)},get outerContainerRef(){return Ce()},set outerContainerRef(W){Ce(W)},get fullScreenTarget(){return Y()},set fullScreenTarget(W){Y(W)},get failoverHosts(){return ie()},set failoverHosts(W){ie(W)},get showMiniTimer(){return Ne()},set showMiniTimer(W){Ne(W)},get saveRate(){return De()},set saveRate(W){De(W)},get showAutoplayNext(){return Be()},set showAutoplayNext(W){Be(W)},get seekToInteractive(){return fe()},set seekToInteractive(W){fe(W)},get playPrevChapter(){return ee()},set playPrevChapter(W){ee(W)},get volumeMultiplier(){return Se()},set volumeMultiplier(W){Se(W)},get showEndScreen(){return Ke()},set showEndScreen(W){Ke(W)},get keyboardControls(){return Ye()},set keyboardControls(W){Ye(W)}});return o(),Bt}var HT=Ee('<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 Zv(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Ze(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,s)=>{var l=HT();ui(9),_(r,l)},$$slots:{default:!0}})}var UT=L('<div class="title s-2"> </div>'),zT=L('<div class="playerStub s-2"><!> <!></div>'),WT={hash:"s-2",code:".playerStub.s-2{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-2{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 Jv(t,e){q(t,WT);var i=zT(),o=T(i);{var r=d=>{var a=UT(),u=T(a,!0);w(a),B(()=>pe(u,e.title)),_(d,a)};V(o,d=>{e.title&&d(r)})}var s=k(o,2);{var l=d=>{let a=v(()=>!!e.thumbUrl);Zv(d,{get isWhite(){return n(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}w(i),B(()=>Qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}var KT=L('<div class="playerError s-3"><!></div>'),qT={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 eg(t){q(t,qT);var e=KT(),i=T(e);el(i,{}),w(e),_(t,e)}var Vp=require("@vkontakte/videoplayer-shared/es2018"),Bi=require("@vkontakte/videoplayer-shared/es2018"),jc=require("@vkontakte/videoplayer-core/es2018"),fd=require("@vkontakte/videoplayer-statistics/es2018");var Tp=require("@vkontakte/videoplayer-shared/es2018"),Sp=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,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}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 s,l;let o=he(e.state.currentPlaybackRate$),r=he(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{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()}};var dd=require("@vkontakte/videoplayer-shared/es2018");var QT=Ee('<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),GT=L('<div><div><!></div> <span class="title s-6"> </span></div>'),YT={hash:"s-6",code:".player-pip-dummy.s-6{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-6{position:relative}.dummy-image.s-6 svg{transform:scale(1.07143)}.dummy-image.desktop.s-6{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-6{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function tg(t,e){F(e,!0),q(t,YT);let[i,o]=Ve(),r=()=>x(u,"$interfaceLanguage$",i),s=()=>x(p,"$isMobile$",i),l=ve(),d=Mt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,p=l.ui.isMobile,m=l.ui.t,f=v(()=>r()&&m("pip_dummy_title")),b=wp(d.view);var y=GT();let $;var S=T(y);let C;var I=T(S);Ze(I,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,O)=>{var D=QT();ui(),_(P,D)},$$slots:{default:!0}}),w(S);var R=k(S,2),E=T(R,!0);w(R),w(y),B((P,O)=>{$=se(y,1,"player-pip-dummy s-6",null,$,P),Qe(y,b),C=se(S,1,"dummy-image s-6",null,C,O),pe(E,n(f))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),_(t,y),H(),o()}var jT=Object.defineProperty,XT=(t,e,i)=>e in t?jT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ld=(t,e,i)=>XT(t,typeof e!="symbol"?e+"":e,i),ZT=460,JT=280,Hc=class{constructor({enabled:e=!0}={enabled:!0}){ld(this,"playerDomElement"),ld(this,"playerParentShadowRoot"),ld(this,"playerDummyElement"),ld(this,"svelteContext"),ld(this,"pipWindow"),ld(this,"info",{isActive$:new dd.ValueSubject(!1),isEnabled$:new dd.ValueSubject(!1),type:1}),this.info.isEnabled$=new dd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,dd.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:ZT,height:JT,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
63
- `),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Gr(tg,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Pa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function o$(t){return t instanceof Hc}var Cp=class{static getLatestSupportedVersion(e){let i=new Da(e),o=new Hc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Uc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var n$="Inner error. Unexpectedly root annotation container null reference exception",r$="Annotation with such name already exists",s$="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"),eC="1",tC=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"},tC);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(n$);if(this.annotations.has(e))throw new cd(r$);i.style.zIndex=(o=i.style.zIndex)!=null?o:eC,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(s$);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,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var al=require("@vkontakte/videoplayer-shared/es2018"),bn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,al.assertNonNullable)(e),(0,al.assertNonNullable)(i),(0,al.assertNonNullable)(r),r.interactiveData&&(0,al.assertNonNullable)(o),this.subscription=new al.Subscription,this.subscription}};var zc=class extends bn{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(s=>{this.state$.set(s?!0:null)})),o}};var Wc=class extends bn{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:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:p}=s.ui,m=he(p),f=()=>m&&he(u);return o.add(u.subscribe(b=>{if(!m)return;let y=he(l);he(a)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(a.subscribe(b=>{this.state$.set(!b||f())})),o.add(l.subscribe(b=>{if(b===null)return;let y=he(d);if(f()){this.state$.set(!0);return}y&&this.state$.set(!b)})),o}};var Kc=class extends bn{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(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var a$=require("@vkontakte/videoplayer-shared/es2018"),ig=ae(!1),Ep=null,qc=class extends bn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...ig,set:(i,o=!1)=>{i!==he(ig)&&(this.clearTimeout(),ig.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:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(m=>{he(l)&&m&&this.state$.set(!1)}));let p=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,a$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:f,interactiveTimeIndicator:b})=>{var y,$;if(!(!m||!(b!=null&&b.isDisplayed))){if(!f)return this.state$.set(!1);p.tooltipHelpHintActive&&Ep===null&&(Ep=!0,p.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 Qc=class extends bn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:Pp.noop};this.checkIfShouldHide=i=>ks(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(he(l)))return;let a=he(this.state$),{isEnded$:u,playbackState$:p}=r.state,{disabledControls$:m}=r.ui.controls,f=he(u),b=he(p);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),m.remove(Vf),!f&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),m.add(Vf),!f&&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:a,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(m){d({message:"Cant hide graph"})}})),o}};var og=require("@vkontakte/videoplayer-shared/es2018"),Gc=class extends bn{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$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new og.ValueSubject(!1),isEnabled$:new og.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var kp=require("@vkontakte/videoplayer-shared/es2018");var Ap=require("@vkontakte/videoplayer-shared/es2018"),l$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?iC({maxCount:t}):void 0,e!==0?oC({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},iC=({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}}},oC=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ap.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>Ap.safeStorage.set(e,JSON.stringify(s)),r=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&r(s),d}else return!0}}};var Yc=class extends bn{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:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=l$({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,kp.filterChanged)(),(0,kp.filter)(p=>p)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var d$=()=>[zc,Wc,Kc,qc,Qc,Gc,Yc].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.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var nC=L('<div class="root s-1"><!></div>'),rC={hash:"s-1",code:".root.s-1{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function ng(t,e){F(e,!0),q(t,rC);let i=null,o=K(null);Oe(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=ke(),l=de(s);{var d=a=>{var u=ke(),p=de(u);Ts(p,()=>n(o),m=>{var f=nC(),b=T(f);let y=v(()=>n(o)==="prev");Fc(b,{get duration(){return e.animationDuration},get Icon(){return aa},get reversed(){return n(y)}}),w(f),_(m,f)}),_(a,u)};V(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return _(t,s),H({startVideoChangedAnimation:r})}var sC=Object.defineProperty,aC=(t,e,i)=>e in t?sC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gt=(t,e,i)=>aC(t,typeof e!="symbol"?e+"":e,i),lC={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Bi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,jc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Qn=K(void 0),rg=ai({animationDuration:0,playbackStatusShow:!1}),Mp=class extends HTMLElement{constructor(){super(),Gt(this,"svelteStubComponent"),Gt(this,"svelteRootComponent"),Gt(this,"sveltePersistentLayerComponent"),Gt(this,"svelteErrorComponent"),Gt(this,"store"),Gt(this,"microStoresRoot"),Gt(this,"statistics"),Gt(this,"sentry"),Gt(this,"_shadowRoot"),Gt(this,"playerContainer"),Gt(this,"rootContainer"),Gt(this,"shadowRootContainer"),Gt(this,"playerId"),Gt(this,"uiConfig"),Gt(this,"coreConfig"),Gt(this,"statisticsConfig"),Gt(this,"interactiveController"),Gt(this,"interactiveContainer"),Gt(this,"graphMadePause"),Gt(this,"currentPlayingVideoIndex",0),Gt(this,"needToRepeatPlaylist",!1),Gt(this,"videoConfig"),Gt(this,"pictureInPictureApi"),Gt(this,"mediaSessionApi"),Gt(this,"unsubscribePlayerPhaseSubscription"),Gt(this,"logger"),Gt(this,"log"),Gt(this,"subscription"),Gt(this,"interactiveSubscription"),Gt(this,"annotationsApi"),Gt(this,"slotsApi"),Gt(this,"focusManager"),Gt(this,"prevIsid"),Gt(this,"isInited",!1),Gt(this,"postponedInitParams",null),Gt(this,"internalsExposure",null),Gt(this,"shadowDOMCallbacksDisabled",!1),Gt(this,"fatalError$",new Vp.ValueSubject(null)),Gt(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:p,statVKAppId:m,refreshStatAuthToken:f,autoplay:b,isMobile:y,isTouch:$,refDomain:S,deviceId:C,interactiveData:I}=Uc(this.videoConfig,i),R=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,E=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:O=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new fd.OneStat({movieId:P,albumId:d,place:a,trackCode:p,vkAppId:m,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:y,clip:O,refDomain:S,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||E)&&{projectId:Number(R)}},{refreshAuthToken:f,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(U){console.error(U),this.log({message:U.message})}}),pd.devNull.create("ui"),this.logger=new Bi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Bi.Subscription,this.interactiveSubscription=new Bi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Gr(eg,{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,s=ai({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Gr(Jv,l),this.sveltePersistentLayerComponent=Gr(ng,{target:this.playerContainer,props:rg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;rg.animationDuration=e,rg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,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(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.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.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=Uc(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:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,p,m,f,b;if(!this.videoConfig)return;let{albumId:y,statPlace:$,statAuthToken:S,preload:C,autoplay:I,volume:R,muted:E,fromTime:P,canRewindLive:O,supportLink:D,showAds:U,adsSlotId:z,adsParams:G={},adsAutoplayParam:le,interfaceLanguage:X,isCyrillicRelatedInterface:oe,logoClickable:j,logoHidden:ge,isMobile:ce,isTouch:re,isAudioDisabled:_e,isLiveCatchUpMode:we,fullScreenTarget:Z,failoverHosts:Re,canDownload:ue,callbacks:A,interactiveData:We,showThumbTimer:Ce,additionalButtons:Y=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:Ne=[],repeat:De,loop:fe,saveRate:ee,volumeMultiplier:Se,showEndScreen:Be,showAutoplayNext:Ke,mediascopePixels:Ye}=Uc(this.videoConfig,i),{sources:Te,title:Le,thumbUrl:Ue,unitedVideoId:Vt,isClip:et=!1,duration:Ot,adsParams:Kt={},videoEpisodes:Tt,previewThumbsData:Zt,subtitles:Dt,subtitlesForcedLanguage:ye,live:be,adsExternalApi:J}=e;if(!Te&&!be){let di=new Error("empty sources and live");this.fatalError$.next(di),(r=A.onCrashed)==null||r.call(A,di.message);return}let xe={...G,...Kt},Pe=this.getNextVideoInfo(),It={sources:Te,title:Le,thumbUrl:Ue,subtitles:Dt,subtitlesForcedLanguage:ye,unitedVideoId:Vt,isClip:et,live:be,albumId:y,statPlace:$,autoplay:I,muted:E,volume:R,fromTime:P,canRewindLive:O,showAds:U,adsSlotId:z,adsParams:xe,adsAutoplayParam:le,duration:Ot,logoClickable:j,logoHidden:ge,isTouch:re!=null?re:ce,repeat:De,loop:fe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Me={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(It)}`});let st=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),vt=(st==null?void 0:st.oneStat)||this.createOneStat(e,i),$e=this.createThinOneStat(e,i),Je;Ye&&(Je=new fd.MediascopePixel({pixels:Ye})),(vt||$e)&&(this.statistics=new cp(vt,$e,Je,st==null?void 0:st.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Oa(this.uiConfig.sentry,{version:Va,env:Vu},{movieId:Vt,albumId:y,place:$,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:re!=null?re:ce,clip:et}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...Oa.getInstance()};let nt=!!We,Jt=[],ri="tooltip_interactive_go_back_disabled_first";if(nt&&this.interactiveController){let di=this.interactiveController.state.isInitialChapter$.getValue(),ut=this.interactiveController.getHistoryState();di&&Jt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Jt.push("SEEK_TO_INTERACTIVE_BUTTON"),ut.hasPrevChapter$.getValue()||(Jt.push("PLAY_PREV_CHAPTER_BUTTON"),di||(ut.isGoBackLimited$.getValue()?ri="tooltip_interactive_go_back_disabled_limit":ri="tooltip_interactive_go_back_disabled"))}let pi=()=>{var di;this.isInited=!1,this.prevIsid=void 0;let ut=(o==null?void 0:o.info.isEnded$.getValue())&&((di=this.interactiveController)==null?void 0:di.state.isEndChapter$.getValue());A.onReplayInteractiveVideo&&!ut?A.onReplayInteractiveVideo():this.replayInteractiveVideo()},hi=De&&this.videoConfig.videos.length===1;this.store=$b({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:oe,videoId:Vt,isClip:et,isLiveCatchUpMode:we,isAudioDisabled:_e,statAuthToken:S,callbacks:A,webApi:Me,videoEpisodes:Tt,previewThumbsData:Zt,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Jt,isInteractive:nt,saveRate:ee,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:pi,playPrevChapterDisabledTooltip:ri,hasInteractiveBranches:!!((b=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?Y:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:Ne!=null?Ne:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:di=>{var ut;return(ut=this.sveltePersistentLayerComponent)==null?void 0:ut.startVideoChangedAnimation(di)},looped:this.uiConfig.features.useLoopSetting?fe:hi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:to}=this.microStoresRoot=d$(),_o=()=>{var di,ut,Ii,Yt,St,ii;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(bt=>{var je;return(je=A==null?void 0:A.onCurrentFormatChanged)==null?void 0:je.call(A,bt)})),this.subscription.add(to.interactiveControlsOpacity$.subscribe(bt=>{var je;bt!==null&&((je=this==null?void 0:this.interactiveController)==null||je.setDisabledControls(bt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(bt=>{var je;return(je=A==null?void 0:A.onThroughputEstimationChanged)==null?void 0:je.call(A,bt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(bt=>{var je;return(je=A==null?void 0:A.onTrafficSavingEnabledChanged)==null?void 0:je.call(A,bt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(bt=>{var je;return(je=A==null?void 0:A.onHighQualityEnabledChanged)==null?void 0:je.call(A,bt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(bt=>{var je;return(je=A==null?void 0:A.onAutoQualityEnabledChanged)==null?void 0:je.call(A,!!bt)})),this.subscription.add(new Bi.Observable(bt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(je=>bt.next(je)))}).pipe((0,Bi.skip)(1)).subscribe(bt=>{var je;return(je=A==null?void 0:A.onCurrentPlaybackRateChanged)==null?void 0:je.call(A,bt)})),this.subscription.add(this.store.state.volume$.subscribe(bt=>{var je;return(je=A==null?void 0:A.onVolumeChange)==null?void 0:je.call(A,bt)})),this.subscription.add(this.store.state.muted$.subscribe(bt=>{var je,$i,io,on;if(bt)(je=A==null?void 0:A.onMute)==null||je.call(A);else{let $n=(io=(($i=this.store)==null?void 0:$i.state.volume$)&&he(this.store.state.volume$))!=null?io:0;(on=A==null?void 0:A.onUnmute)==null||on.call(A,$n)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(bt=>{var je;return(je=A==null?void 0:A.onVideoBitrateChanged)==null?void 0:je.call(A,bt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(bt=>{var je;let $i=(je=this.store)==null?void 0:je.ui.controls.disabledControls$;$i&&(bt&&!$i.includes(qd)&&$i.add(qd),bt||$i.remove(qd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async bt=>{var je;if(!jc.clientChecker.browser.isSamsungBrowser||!bt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((je=this.videoConfig)==null?void 0:je.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(bt=>{var je;return(je=A==null?void 0:A.onVSIDChanged)==null?void 0:je.call(A,bt)})),this.initMediaSession(),N(Qn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Le,thumbUrl:Ue,subtitles:Dt,subtitlesForcedLanguage:ye,live:be,preload:C,autoplay:I,muted:E,volume:R,fromTime:P,canRewindLive:O,supportLink:D,showAds:U,adsSlotId:z,adsParams:xe,adsAutoplayParam:le,duration:Ot,logoClickable:j,logoHidden:ge,isMobile:re!=null?re:ce,failoverHosts:Re,fullScreenTarget:Z,saveRate:ee,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ce,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Se,showEndScreen:Be,showAutoplayNext:Ke,adsExternalApi:J},!0);let jt={target:this.playerContainer,props:n(Qn)};this.svelteRootComponent=Gr(Xv,jt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ii=(ut=(di=this.videoConfig)==null?void 0:di.callbacks)==null?void 0:ut.onInited)==null||Ii.call(ut)),(Yt=this.internalsExposure)==null||Yt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ii=(St=this.videoConfig)==null?void 0:St.callbacks)!=null&&ii.onDevNullLog)?pd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):pd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?jc.clientChecker.isInited$.subscribe(di=>{di&&(console.log("UI SDK async start"),_o())}):_o()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Bi.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,s,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 a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?he(a):this.videoConfig.interfaceLanguage,{projectInfo:p,initChapterId:m,historyApi:f,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:p,initChapterId:m,historyApi:f,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(C=>{if(!this.isInited)return;let I=this.store;C?I.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):I.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(C=>{this.store&&this.store.state.isInteractiveExpectation$.set(C)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(C=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...C.config,title:(p==null?void 0:p.title)||C.config.title};let I=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(C.player,I),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:C,actionType:I})=>{var R,E,P,O,D,U;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(C==="action-choice"&&I==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Qd)),C==="action-choice-canceled"){let G=he(this.store.state.isPlaying$)||z;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(U=(O=this.videoConfig)==null?void 0:(D=O.callbacks).onDisabledInteractiveClick)==null||U.call(D)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:C,removeAllOpenURI:I})=>{this.store&&C==="container-fake-removed"&&I&&this.store.ui.controls.disabledControls$.remove(Qd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(I=>{var R,E,P;I.length&&((P=(E=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||P.call(E,I))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var I,R,E;(E=(I=this.videoConfig)==null?void 0:(R=I.callbacks).onInteractiveChapterChanged)==null||E.call(R,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,I,R,E;(C=this.microStoresRoot)==null||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(I=this.videoConfig)==null?void 0:(R=I.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(C=>{this.log({message:C.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,s,l,d,a,u,p,m,f,b,y,$,S,C,I,R,E,P,O,D,U,z,G,le,X,oe,j;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ge=new Error("empty videos");this.fatalError$.next(ge),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,ge.message);return}else this.fatalError$.next(null);if(this.videoConfig=Uc(lC,(0,Bi.cloneDeepWith)(e,ge=>ge instanceof HTMLElement?ge:void 0)),this.playerId=(0,Bi.getPlayerId)(e.playerId),this.uiConfig=jh((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Bi.InternalsExposure("ui",this.playerId))),pd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((p=this.videoConfig)==null?void 0:p.showAds)],numbers:[(0,Vp.now)()]}),(0,Bi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Bi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(S=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.uiConfig.ads.paramsOverride={preview:(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(R=(I=this.uiConfig.isMobile)!=null?I:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(E=this.videoConfig).autoplay&&(E.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(O=this.uiConfig.ads.slot)!=null?O:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((D=this.uiConfig.showLogo)!=null?D:!this.videoConfig.logoHidden),(U=this.videoConfig).canRewindLive&&(U.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(le=this.uiConfig.features.autoplayNext)!=null?le:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(X=this.uiConfig.features.nextPrevButtons)!=null?X:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((oe=this.videoConfig.videos)!=null&&oe[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ge={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Cp.getLatestSupportedVersion(ge):this.pictureInPictureApi=new Da(ge)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Sp:void 0,this.slotsApi=this.uiConfig.features.slots?new $p: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.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),o$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(j=this.slotsApi)==null||j.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Lp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Qn)&&(n(Qn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Qn).nextButtonActive=this.isNextButtonActive(),n(Qn).prevButtonActive=this.isPrevButtonActive(),n(Qn).endScreenVideoTitle=o.nextVideoTitle,n(Qn).endScreenVideoThumb=o.nextVideoThumb,n(Qn).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,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",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(Qn)&&(n(Qn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Qn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Qn).nextButtonActive=this.isNextButtonActive(),n(Qn).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 s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}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(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Bi.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&&Pa(e)}};var md=require("@vkontakte/videoplayer-shared/es2018"),Rp=require("@vkontakte/videoplayer-core/es2018"),dC=()=>{window.customElements.define("vk-video-player",Mp)};
60
+ 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,f)};V(d,m=>{e.type==="off"?m(a):m(u,!1)})}_(r,l)},$$slots:{default:!0}}),U()}function Tm(t,e){H(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=me().ui.t,s=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ut(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return ps.KeyC},role:"button",children:(l,d)=>{let a=v(()=>i()?void 0:"outline");na(l,{get size(){return"24"},get type(){return n(a)}})},$$slots:{default:!0}}),U()}var q0=L('<span class="duration s-24" data-testid="video_duration"> </span>'),Q0=L('<div><span class="current s-24" data-testid="current_time"> </span> <!></div>'),G0={hash:"s-24",code:'.time.s-24{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-24{padding:0 0 0 8px}.current.s-24{position:relative}.duration.s-24{opacity:.7}.duration.s-24:before{content:" / ";white-space:pre}'};function dc(t,e){H(e,!0),q(t,G0);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),s=g(e,"ref",15),l=Mt(),d=ae(!1),a=v(()=>Jo(e.duration)),u=v(()=>Jo(e.position));var m=Q0();let f;var p=T(m),b=T(p,!0);w(p);var y=A(p,2);{var $=S=>{var I=q0(),C=T(I,!0);w(I),D(()=>pe(C,n(a))),_(S,I)};V(y,S=>{r()&&S($)})}w(m),Is(m,()=>zl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),ot(m,S=>s(S),()=>s()),D(S=>{f=se(m,1,"time s-24",null,f,S),pe(b,n(u))},[()=>({mobile:i()})]),_(t,m),U()}var uc=require("@vkontakte/videoplayer-shared/es2018");var Y0=Ee("<path></path>");function ra(t,e){H(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(f,p)=>p?"off":f>.5?"max":f>.2?"mid":f>0?"min":"off",s=v(()=>r(i(),o())),l=v(()=>vn(e.size)),d="M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z",a="M44.92 16.52a1.8 1.8 90 012.56 2.56L42.54 24l4.94 4.92a1.8 1.8 90 11-2.56 2.56L40 26.54l-4.92 4.94a1.8 1.8 90 01-2.56-2.56L37.46 24l-4.94-4.92a1.8 1.8 90 112.56-2.56L40 21.46z",u="M31.5 17.8a1.8 1.8 90 012.54-.14A8.6 8.6 90 0136.8 24c0 2.52-1.06 4.8-2.76 6.34a1.8 1.8 90 11-2.4-2.68c.92-.84 1.56-2.16 1.56-3.66s-.64-2.8-1.58-3.66a1.8 1.8 90 01-.12-2.54",m="M37.62 13.34a1.8 1.8 90 012.54.2 16 16 90 010 20.9 1.8 1.8 90 01-2.74-2.32 12.4 12.4 90 000-16.24 1.8 1.8 90 01.2-2.54";Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(l)},get testId(){var f;return`volume-${(f=n(s))!=null?f:""}-icon`},get shadow(){return e.shadow},children:(f,p)=>{var b=Y0();D(()=>Re(b,"d",`M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z${n(s)==="off"?a:`${u}${n(s)==="max"?m:""}`}`)),_(f,b)},$$slots:{default:!0}}),U()}var Ro=require("@vkontakte/videoplayer-shared/es2018");var ip=require("@vkontakte/videoplayer-shared/es2018");var ab=require("@vkontakte/videoplayer-shared/es2018");var j0=L('<div class="overlay"><!></div>');function Cm(t,e){H(e,!0);let[i,o]=Ve(),r=()=>x(l,"$overlayContainer$",i),l=me().ui.overlayContainer$,d=K(void 0),a=p=>{!p||!n(d)||!p.contains(n(d))||p.removeChild(n(d))},u=p=>{!p||!n(d)||p.contains(n(d))||p.appendChild(n(d))};De(()=>{u(r())}),Nt(()=>(u(r()),()=>a(r())));var m=j0(),f=T(m);oi(f,()=>{var p;return(p=e.children)!=null?p:vt}),w(m),ot(m,p=>N(d,p),()=>n(d)),_(t,m),U(),o()}var X0=L('<div class="tooltip s-1j"><div class="content s-1j"> </div> <div class="tooltip-pointer s-1j"></div></div>'),Z0=L("<div><!></div> <!>",1),J0={hash:"s-1j",code:'.tooltip-wrapper.s-1j{display:flex;flex-direction:column;min-width:0}.full-width.s-1j{width:100%}.tooltip.s-1j{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1j{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1j{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 za(t,e){H(e,!0),q(t,J0);let[i,o]=Ve(),r=()=>x(G,"$overlayContainer$",i),s=()=>x(z,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),a=g(e,"active",15,!1),u=g(e,"translateX",3,0),m=g(e,"translateY",3,0),f=g(e,"isFullWidthWrapper",3,!1),p=g(e,"maxTooltipWidth",3,void 0),b=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,ab.noop),$=5,S=K(void 0),I=K(void 0),C,R=K(0),E=K(0),k=K(0),O=K(0),B=Mt(),F=me(),z=F.ui.playerSize,G=F.ui.overlayContainer$;De(()=>{Pt(()=>{y()(a())})});let le=F.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!r()||!n(I)||!n(S))return;N(E,$);let ee=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Fe=Se.width,Ke=n(I).clientWidth,Ye=s().width,Te=(Fe-Ke)/2,Le=Se.left+u()-ee.left,Ue=Le+Te,Vt=Se.top+m()-ee.top,et=Ke/2-$,Ot=Ue<8,Wt=Ue+Ke>Ye-8;Ot&&(Ue=8,et=Le+Se.width/2-2.5*$),Wt&&(Ue=Ye-8-Ke,et=Se.left-ee.left+Se.width/2-Ue-$),N(k,Ue,!0),N(O,Vt),N(R,et,!0)},oe=()=>{!r()||!n(I)||!n(S)||N(E,-$)},j=()=>{if(!r()||!n(I)||!n(S))return;N(R,$);let ee=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Fe=Se.height,Ke=n(I).clientHeight,Ye=(Fe-Ke)/2+Ke,Te=Se.left+u()-ee.left-n(I).clientWidth,Le=2,Ue=Te-$;Ue<8&&(Ue=8);let et=Se.top+m()-ee.top+Ye,Ot=Le-Ye/2,Wt=Le-$;N(k,Ue,!0),N(O,et),N(E,Ot),N(R,Wt)},ve=()=>{!r()||!n(I)||!n(S)||N(R,-$)},ce=()=>{switch(b()){case"top":X();break;case"bottom":oe();break;case"left":j();break;default:ve()}},re=()=>{try{if(!r()||!n(S))return;ce(),a(!0)}catch(ee){le({message:String(ee)})}},_e=()=>{a(!1)},we=()=>{n(I)&&(C||(C=window.setTimeout(re,B.controls.hideTimeoutTooltips)),a()&&re())},Z=()=>{_e(),window.clearTimeout(C),C=void 0},Ne=(ee,Se,Fe)=>{let Ke="";switch(b()){case"top":Ke=`transform: translate(${ee}px, ${Se}px);`;break;case"bottom":Ke=`transform: translate(${ee}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${ee}px, ${Se}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${ee}px, ${Se}px);`}return Ke+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ke+=` opacity: ${Fe?1:0}; visibility: ${Fe?"visible":"hidden"}`,Ke},ue=(ee,Se)=>{let Fe="";switch(b()){case"top":Fe=`transform: translate(${ee}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Fe=`transform: translate(${ee}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Fe=`transform: translate(${ee}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Fe=`transform: translate(${ee}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Fe},P=v(()=>Ne(n(k),n(O),a())),We=v(()=>ue(n(R),n(E)));Nt(ce),mn(()=>window.clearTimeout(C));var Ce=Z0(),Y=de(Ce);let ie;Y.__pointermove=we,Y.__pointerdown=Z,Y.__pointerup=function(...ee){var Se;(Se=e.disableMouseupTooltipShow?void 0:we)==null||Se.apply(this,ee)};var Oe=T(Y);oi(Oe,()=>{var ee;return(ee=e.children)!=null?ee:vt}),w(Y),ot(Y,ee=>N(S,ee),()=>n(S));var Be=A(Y,2);{var fe=ee=>{Cm(ee,{children:(Se,Fe)=>{var Ke=X0(),Ye=T(Ke),Te=T(Ye,!0);w(Ye);var Le=A(Ye,2);w(Ke),ot(Ke,Ue=>N(I,Ue),()=>n(I)),D(()=>{Qe(Ke,n(P)),pe(Te,d()),Qe(Le,n(We))}),_(Se,Ke)},$$slots:{default:!0}})};V(Be,ee=>{d()&&!l()&&ee(fe)})}D(ee=>ie=se(Y,1,"tooltip-wrapper s-1j",null,ie,ee),[()=>({"full-width":f()})]),gt("pointerenter",Y,we),gt("pointerleave",Y,Z),_(t,Ce),U(),o()}rt(["pointermove","pointerdown","pointerup"]);var lb=t=>{t.stopPropagation()},ex=L("<div><!></div>"),tx={hash:"s-y",code:".btn-container.s-y{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-y{min-width:0;width:100%}"};function Vo(t,e){H(e,!0),q(t,tx);let[i,o]=Ve(),r=()=>x(u,"$isGraphOpened$",i),s=()=>x(a,"$isMobile",i),l=me(),d=So(),a=l.ui.isMobile,u=d.graphIsOpened$,m=l.ui.t,f=g(e,"className",3,""),p=g(e,"disabled",3,!1),b=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),$=g(e,"width",15,void 0),S=g(e,"isFullWidthTooltip",3,!0),I=g(e,"tooltipContent",3,""),C=g(e,"tooltipVisible",3,!1),R=g(e,"tooltipPlacement",3,"top"),E=g(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),k=g(e,"isAriaHidden",3,!1),O=g(e,"onTooltipVisibilityChange",3,ip.noop),B=g(e,"initialTranslateXPx",3,0),F=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,ip.noop),G=g(e,"mouseLeave",3,ip.noop),le=v(()=>p()?r()?m("tooltip_disabled_when_graph_on"):E():I()),X=K(!1);De(()=>{C()||N(X,!1)});var oe=ex();oe.__pointerdown=[lb],oe.__click=[lb];var j=T(oe);{var ve=re=>{za(re,{get content(){return n(le)},get translateX(){return B()},get translateY(){return F()},get isFullWidthWrapper(){return S()},get placement(){return R()},get onVisibilityChange(){return O()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(X)},set active(_e){N(X,_e,!0)},children:(_e,we)=>{var Z=Ae(),Ne=de(Z);oi(Ne,()=>{var ue;return(ue=e.children)!=null?ue:vt}),_(_e,Z)},$$slots:{default:!0}})},ce=re=>{var _e=Ae(),we=de(_e);oi(we,()=>{var Z;return(Z=e.children)!=null?Z:vt}),_(re,_e)};V(j,re=>{b()&&n(le)&&!s()?re(ve):re(ce,!1)})}w(oe),ot(oe,re=>y(re),()=>y()),D(()=>{var re;se(oe,1,`btn-container ${(re=f())!=null?re:""}`,"s-y"),Re(oe,"aria-hidden",k()||null)}),gt("mouseenter",oe,function(...re){var _e;(_e=z())==null||_e.apply(this,re)}),gt("mouseleave",oe,function(...re){var _e;(_e=G())==null||_e.apply(this,re)}),An(oe,"clientWidth",$),_(t,oe),U(),o()}rt(["pointerdown","click"]);var ix=Ee('<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 cc(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Ze(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var s=ix(),l=de(s),d=A(l);D(()=>{Re(l,"fill",Xs),Re(l,"fill-opacity",e.completed?1:.24),Re(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(o,s)},$$slots:{default:!0}})}var ox=L("<div><!></div>"),nx={hash:"s-l",code:".interactive-episode-icon.s-l{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-l{opacity:.4;pointer-events:none}"};function Im(t,e){H(e,!0),q(t,nx);let o=me().ui.t,r=K(0),s=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Vo(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=ox();let u;var m=T(a);let f=v(()=>!!e.videoEpisode.completed);cc(m,{get completed(){return n(f)}}),w(a),D(p=>{u=se(a,1,"interactive-episode-icon s-l",null,u,p),Qe(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),An(a,"clientWidth",p=>N(r,p)),_(l,a)},$$slots:{default:!0}}),U()}var rx=L('<div><div class="video-episode-inner s-k"><div class="video-episode-loaded s-k"></div> <div></div></div></div>'),sx=L('<div class="video-episodes-wrap s-k"></div>'),ax={hash:"s-k",code:".video-episodes-wrap.s-k{height:100%;position:absolute;width:100%}.video-episode.s-k{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-k:first-child{padding-left:0}.video-episode.s-k:last-child{padding-right:0}.video-episode.s-k:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-k,.video-episode-inner.s-k,.video-episode-loaded.s-k{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-k{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-k:first-child .video-episode-inner:where(.s-k),.video-episode.s-k:last-child .video-episode-inner:where(.s-k){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-k{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-k,.video-episode-loaded.s-k{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-k{background-color:var(--slider-filled-bg)}"};function Em(t,e){q(t,ax);let i=g(e,"videoEpisodes",19,()=>[]);var o=sx();xi(o,21,i,r=>r.from,(r,s)=>{var l=rx();let d;var a=T(l),u=T(a),m=A(u,2);let f;w(a),w(l),D((p,b)=>{d=se(l,1,"video-episode s-k",null,d,p),Qe(l,`left: ${n(s).from}%; width: ${n(s).width}%`),Qe(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),f=se(m,1,"video-episode-filled s-k",null,f,b),Qe(m,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),_(r,l)}),w(o),_(t,o)}function lx(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function dx(t,e,i,o,r,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);r()(a,u,n(s).width,t),n(l)&&d()(a)}function cx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s,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,s){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),s()(l)}var fx=L("<div></div>"),mx=L('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),vx=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),gx={hash:"s-h",code:'.interactive-icons.s-h{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-h{top:-10px}.slider.s-h{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-h{cursor:default}.slider.s-h: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-h{background:var(--slider-bg);overflow:hidden}.bars.s-h,.loaded.s-h{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-h{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-h{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-h,.slider.square.s-h .filled:where(.s-h),.slider.square.s-h .loaded:where(.s-h),.slider.square.s-h>.bars:where(.s-h){border-radius:unset}.filled.active-live.s-h{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-h{background-color:var(--slider-filled-ads)}.handleWrap.s-h{left:-100%;position:absolute;width:100%}.handle.s-h{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-h{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-h .handle:where(.s-h),.slider-dragging.s-h .handle:where(.s-h),.slider.s-h:hover .handle:where(.s-h){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-h .handle:where(.s-h){transform:scale(1.3)}.slider-vertical.s-h{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-h{cursor:default;opacity:.4}'};function Wa(t,e){H(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),s=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),a=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),m=g(e,"videoEpisodes",19,()=>[]),f=g(e,"withWheelHandler",3,!1),p=g(e,"isInteractive",3,!1),b=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),$=g(e,"onPointerDown",3,Ro.noop),S=g(e,"onHandleMove",3,Ro.noop),I=g(e,"onPointerUp",3,Ro.noop),C=g(e,"onPointerEnter",3,Ro.noop),R=g(e,"onPointerMove",3,Ro.noop),E=g(e,"onPointerLeave",3,Ro.noop),k=g(e,"onMouseEnter",3,Ro.noop),O=g(e,"onMouseLeave",3,Ro.noop),B=g(e,"onWheelUp",3,Ro.noop),F=g(e,"onWheelDown",3,Ro.noop),z=g(e,"onWheelLeft",3,Ro.noop),G=g(e,"onWheelRight",3,Ro.noop),le=g(e,"onDisabledClick",3,Ro.noop),X=g(e,"loadedProgress",3,0),oe=g(e,"filledProgress",3,0),j=g(e,"handleProgress",3,0),ve=g(e,"ariaLabel",3,""),ce=g(e,"ariaValueMin",3,void 0),re=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),we=g(e,"ariaValueText",3,""),Z=g(e,"onContextMenu",3,Ro.noop),Ne=g(e,"handleAlwaysVisible",3,!1),ue=Mt(),P=K(void 0),We=K(!1),Ce=v(()=>{var xe;return(xe=re())!=null?xe:0}),Y=v(()=>{var xe;return(0,Ro.isNonNullable)(m())&&((xe=m()[m().length-1])==null?void 0:xe.time)<n(Ce)}),ie=v(()=>(0,Ro.isNonNullable)(m())&&m().length&&n(Y)&&n(Ce)?Ye(X()*100,oe()*100):[]);function Oe(xe){if(xe.preventDefault(),i()&&N(P,i().getBoundingClientRect(),!0),b())return;let Pe=Fe(xe.clientX,xe.clientY),It=Ke(xe.clientX);C()(Pe,It,n(P).width)}function Be(xe){xe.preventDefault(),!b()&&E()()}function fe(){k()()}function ee(){O()()}function Se(xe){b()||f()&&(xe.preventDefault(),xe.deltaY<0?B()():xe.deltaY>0?F()():xe.deltaX>0?G()():z()())}function Fe(xe,Pe){return l()?Math.max(0,Math.min(1,(n(P).height-(Pe-n(P).top))/n(P).height)):Math.min(Math.max(xe-n(P).x,0),n(P).width)/n(P).width}function Ke(xe){return Math.min(Math.max(xe-n(P).x,0),n(P).width)}function Ye(xe,Pe){let It=ue.features.episodesClustering&&!p()?ue.episodeMinWidthPc:0,Me=[],st=m()[0].time/n(Ce)*100,mt=0,$e=0;for(let nt=1;nt<m().length;nt++)mt=m()[nt].time/n(Ce)*100,mt-st>It&&(Me.push({from:st,width:Math.max(0,mt-st),loadedWidth:Math.max(0,Math.min(mt,xe)-st),filledWidth:Math.max(0,Math.min(mt,Pe)-st),interactive:m()[nt-1].interactive,completed:m()[nt-1].completed}),st=m()[nt].time/n(Ce)*100,$e++);let Je={from:st,width:Math.max(0,100-st),loadedWidth:Math.max(0,Math.min(xe,100)-st),filledWidth:Math.max(0,Math.min(Pe,100)-st),interactive:m()[$e].interactive,completed:m()[$e].completed};100-st<It?($e-=1,Me[$e].width+=100-st,Me[$e].loadedWidth+=Math.max(0,Math.min(xe,100)-st),Me[$e].filledWidth+=Math.max(0,Math.min(Pe,100)-st)):Me[$e]=Je;let ze=m()[0].time;if(ze!==0){let nt=ze/n(Ce)*100;Me.unshift({from:0,width:nt,loadedWidth:Math.min(nt,xe),filledWidth:Math.min(nt,Pe)})}return Me}function Te(xe){return Math.max(0,Math.min(100,xe*100))}var Le=vx(),Ue=de(Le);{var Vt=xe=>{var Pe=fx();let It;xi(Pe,21,()=>n(ie),Me=>Me.from,(Me,st)=>{var mt=Ae(),$e=de(mt);{var Je=ze=>{Im(ze,{get videoEpisode(){return n(st)},get disabled(){return b()}})};V($e,ze=>{n(st).interactive&&ze(Je)})}_(Me,mt)}),w(Pe),D(Me=>It=se(Pe,1,"interactive-icons s-h",null,It,Me),[()=>({mobile:a(),hidden:a()&&!n(We)})]),_(xe,Pe)};V(Ue,xe=>{p()&&xe(Vt)})}var et=A(Ue,2);let Ot;et.__pointerdown=[lx,i,P,b,We,Fe,$],et.__pointermove=[dx,b,Fe,Ke,R,P,We,S],et.__pointerup=[cx,b,We,Fe,I],et.__click=[ux,b,le,Fe],et.__contextmenu=[px,Fe,b,le,We,Z];var Wt=T(et);{var Ct=xe=>{Em(xe,{get videoEpisodes(){return n(ie)},get disabled(){return b()},get isMobile(){return a()}})},Zt=xe=>{var Pe=mx(),It=T(Pe),Me=A(It,2);let st;w(Pe),D((mt,$e,Je)=>{Qe(It,mt),st=se(Me,1,"filled s-h",null,st,$e),Qe(Me,Je)},[()=>`transform: translateX(${Te(X())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Te(oe())}%);`]),_(xe,Pe)};V(Wt,xe=>{n(ie).length?xe(Ct):xe(Zt,!1)})}var Dt=A(Wt,2);let ye;var be=T(Dt);let J;w(Dt),w(et),ot(et,xe=>i(xe),()=>i()),D((xe,Pe,It,Me)=>{var st,mt;Ot=se(et,1,`slider ${(st=o())!=null?st:""}`,"s-h",Ot,xe),Re(et,"aria-label",ve()),Re(et,"aria-valuemin",ce()),Re(et,"aria-valuemax",re()),Re(et,"aria-valuenow",_e()),Re(et,"aria-valuetext",we()),Re(et,"data-testid",(mt=r())!=null?mt:null),ye=se(Dt,1,"handleWrap s-h",null,ye,Pe),Qe(Dt,It),J=se(be,1,"handle s-h",null,J,Me)},[()=>({disabled:b(),"slider-dragging":n(We),hidden:s(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Te(j())}%);`,()=>({"active-live":d()})]),gt("pointerenter",et,Oe),gt("pointerleave",et,Be),gt("mouseenter",et,fe),gt("mouseleave",et,ee),gt("wheel",et,Se),_(t,Le),U()}rt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Xi=(t,e)=>Aa[t]>=Aa[e],db=(t,e)=>Aa[t]<Aa[e],As=(t,e)=>Aa[t]<=Aa[e],cb=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-29",code:".volumeBar-container.s-29{align-items:center;display:flex}.vertical.s-29 .btn,.vertical.s-29 .tooltip-wrapper,.volumeBar-container.vertical.s-29{width:40px}.volumeBar.s-29{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-29{padding:0 8px 0 0;width:0}"};function Pm(t,e){var Ke,Ye;H(e,!0),q(t,$x);let[i,o]=Ve(),r=()=>x(R,"$isAudioAvailable$",i),s=()=>x(p,"$muted$",i),l=()=>x(f,"$volume$",i),d=()=>x(S,"$currentGridType$",i),a=()=>x(Oe,"$controlsVisible",i),u=me(),m=Mt(),f=u.state.volume$,p=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:$}=u.actions.internal,S=u.ui.currentGridType$,I=(Ke=u.callbacks)==null?void 0:Ke.onAudioDoesNotExistHint,C=(Ye=u.callbacks)==null?void 0:Ye.onAudioDisabledHint,R=u.state.isAudioAvailable$,E=u.state.isAudioDisabled,k=u.ui.t,O=K(!1),B,F=v(()=>e.isAds||r()),z=v(()=>!n(F)||s()||l()===0),G=v(()=>As(d(),"s")),le=v(()=>n(G)?"":n(z)?!r()||E?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),X=v(()=>n(z)?k("tooltip_volume"):k("tooltip_volume_muted")),oe=v(()=>n(z)?0:l()),j=!1,ve=v(()=>e.isAds?!1:E?!C:r()?!1:!I);function ce(Te){y(),b(Te)}function re(){Zu(u,l(),m.controls.volumeStepWheel)}function _e(){Ju(u,l(),m.controls.volumeStepWheel)}function we(Te){b(Te)}function Z(Te){b(Te),$()}function Ne(){j=!0}function ue(){j=!1,Ce()}function P(){clearTimeout(B),N(O,!0)}function We(){Ce()}function Ce(){B=window.setTimeout(()=>{j||N(O,!1)},m.controls.volumeBarTimeout)}function Y(Te){Te.preventDefault(),Te.deltaY<0?re():Te.deltaY>0&&_e()}let ie=K(!1),Oe=u.ui.controlsVisible;De(()=>{a()||N(ie,!1)});var Be=bx();let fe;var ee=T(Be);za(ee,{get content(){return n(le)},translateY:-18,get active(){return n(ie)},set active(Te){N(ie,Te,!0)},children:(Te,Le)=>{let Ue=v(()=>n(G)?"btn-volume-vertical":"btn-volume-horizontal");Ut(Te,{className:"btn-full-opacity",get disabled(){return n(ve)},get testId(){return n(Ue)},get ariaLabel(){return n(X)},get click(){return e.click},get ariaKeyShortCut(){return ps.KeyM},role:"button",children:(Vt,et)=>{ra(Vt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Se=A(ee,2);{var Fe=Te=>{var Le=_x();let Ue;var Vt=T(Le);let et=v(()=>n(G)?"volumeBar-slider-vertical":""),Ot=v(()=>n(G)&&!n(O)),Wt=v(()=>n(G)?Ne:uc.noop),Ct=v(()=>n(G)?ue:uc.noop),Zt=v(()=>Math.round(n(oe)*100)),Dt=v(()=>`${Math.round(n(oe)*100)}%`),ye=v(()=>n(G)?"volume-slider-vertical":"volume-slider");Wa(Vt,{get className(){return n(et)},get isHidden(){return n(Ot)},get isVertical(){return n(G)},withWheelHandler:!0,onWheelUp:re,onWheelDown:_e,onPointerDown:ce,onHandleMove:we,onPointerUp:Z,get onPointerEnter(){return n(Wt)},get onPointerLeave(){return n(Ct)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Zt)},get ariaValueText(){return n(Dt)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(ye)}}),w(Le),D(be=>Ue=se(Le,1,"volumeBar s-29",null,Ue,be),[()=>({"volumeBar-vertical":n(G)})]),_(Te,Le)};V(Se,Te=>{n(F)&&Te(Fe)})}w(Be),D(Te=>fe=se(Be,1,"volumeBar-container s-29",null,fe,Te),[()=>({vertical:n(G)})]),gt("mouseenter",Be,function(...Te){var Le;(Le=n(G)?P:uc.noop)==null||Le.apply(this,Te)}),gt("mouseleave",Be,function(...Te){var Le;(Le=n(G)?We:uc.noop)==null||Le.apply(this,Te)}),gt("wheel",Be,Y),_(t,Be),U(),o()}var ub=require("@vkontakte/videoplayer-shared/es2018");var yx=Ee('<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=Ee('<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 km(t,e){let i=g(e,"isFullscreen",8,!1),o=Cn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ze(t,{get testId(){return n(o)},children:(r,s)=>{var l=Ae(),d=de(l);{var a=m=>{var f=yx();_(m,f)},u=m=>{var f=xx();_(m,f)};V(d,m=>{i()?m(a):m(u,!1)})}_(r,l)},$$slots:{default:!0}})}function pc(t,e){H(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,ub.noop),r=me(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ut(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=ta(u);s.set(m),o()()},get ariaKeyShortCut(){return ps.KeyF},role:"button",children:(u,m)=>{km(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var wx=Ee('<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 Am(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=wx();ji(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=T(o);oi(r,()=>{var s;return(s=e.children)!=null?s:vt}),ui(),w(o),_(t,o)}var Sx=Ee('<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 Lm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Sx();ji(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=T(o);oi(r,()=>{var s;return(s=e.children)!=null?s:vt}),ui(6),w(o),_(t,o)}var Tx={hash:"s-2a",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 Mm(t,e){H(e,!0),q(t,Tx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=v(()=>!o()&&!i()?91:i()?l:95),a=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=v(()=>`0 0 ${n(d)} 24`);Lm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),U()}function fc(t,e){H(e,!0);let[i,o]=Ve(),r=()=>x(b,"$isMobile",i),s=()=>x(p,"$currentGridType$",i),l=()=>x($,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),a=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),m=Mt(),f=me(),p=f.ui.currentGridType$,b=f.ui.isMobile,y=f.ui.t,$=f.isCyrillicRelatedInterface$,S=v(()=>m.logoType!=="vk"),I=v(()=>n(S)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),C=v(()=>(r()&&As(s(),"m")||As(s(),"l"))&&n(S)),R=()=>{var O,B;e.click(),(O=f.callbacks)!=null&&O.onLogoClicked?(B=f.callbacks)==null||B.onLogoClicked():u()&&window.open(u(),"_blank")},E=v(()=>!a()),k=v(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Ut(t,{className:"btn-full-opacity",get disabled(){return n(E)},click:R,get testId(){return n(k)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(O){d(O)},children:(O,B)=>{var F=Ae(),z=de(F);{var G=X=>{Mm(X,{get logo(){return m.logoType},get short(){return n(C)},get isCyrillic(){return l()}})},le=X=>{Am(X,{})};V(z,X=>{n(S)?X(G):X(le,!1)})}_(O,F)},$$slots:{default:!0}}),U(),o()}var fb=require("@vkontakte/videoplayer-core/es2018");var Vm=require("@vkontakte/videoplayer-core/es2018");var Cx=Ee('<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-z"></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-z"></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-z"></path>',1),Ix=Ee('<path d="M1 18v3h3c0-1.66-1.34-3-3-3z"></path><path d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"></path><path d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" class="s-z"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"></path>',1),Ex={hash:"s-z",code:".animated.s-z{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-z{animation-name:s-z-wave1}.wave2.animated.s-z{animation-name:s-z-wave2}.wave3.animated.s-z{animation-name:s-z-wave3}@keyframes s-z-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-z-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-z-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function mc(t,e){H(e,!0),q(t,Ex);let i=g(e,"isMobile",3,!1),o=v(()=>e.iconState===Vm.ChromecastState.CONNECTED),r=v(()=>e.iconState===Vm.ChromecastState.CONNECTING),s=v(()=>n(o)?"#2688EB":Xs),l=v(()=>e.size?vn(e.size):void 0);var d=Ae(),a=de(d);{var u=f=>{Ze(f,{get fill(){return n(s)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(p,b)=>{var y=Cx();ui(2),_(p,y)},$$slots:{default:!0}})},m=f=>{Ze(f,{get style(){return n(l)},testId:"chromecast-icon",children:(p,b)=>{var y=Ix(),$=de(y);let S;var I=A($);let C;var R=A(I);let E;var k=A(R,2);let O;D((B,F,z,G)=>{S=se($,0,"wave1 s-z",null,S,B),C=se(I,0,"wave2 s-z",null,C,F),E=se(R,0,"wave3 s-z",null,E,z),O=se(k,0,"s-z",null,O,G)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:!n(o)})]),_(p,y)},$$slots:{default:!0}})};V(a,f=>{i()?f(u):f(m,!1)})}_(t,d),U()}var mb=require("@vkontakte/videoplayer-shared/es2018");function vc(t,e){H(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,mb.noop),l=me().ui.t,d=v(()=>e.state===fb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ut(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{mc(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var vb=require("@vkontakte/videoplayer-shared/es2018");var Px=Ee('<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 Rm(t){Ze(t,{testId:"episodes-icon",children:(e,i)=>{var o=Px();ui(2),_(e,o)},$$slots:{default:!0}})}var op=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var kx=L('<span class="text mobile s-22"> </span> <div class="chevron-episodes s-22" data-testid="btn-episodes_icon"><!></div>',1),Ax=L('<span class="text s-22"> </span>'),Lx=L('<span class="text count s-22"> </span>'),Mx=L("<!> <!>",1),Vx={hash:"s-22",code:".text.s-22{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-22{overflow:visible}.text.mobile.s-22{padding:0 3px 0 4px}.chevron-episodes.s-22{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function gc(t,e){var j,ve,ce;H(e,!0),q(t,Vx);let[i,o]=Ve(),r=()=>x(y,"$currentGridType$",i),s=()=>x($,"$openedByKeyboard$",i),l=()=>x(S,"$panelOpened$",i),d=()=>x(I,"$isMobile",i),a=g(e,"position",3,0),u=g(e,"duration",3,0),m=g(e,"timeCodes",19,()=>[]),f=me(),p=(ve=(j=f.callbacks)==null?void 0:j.onEpisodeChanged)!=null?ve:vb.noop,b=!!((ce=f.callbacks)!=null&&ce.onEpisodeClicked),y=f.ui.currentGridType$,$=f.ui.episodes.openedByKeyboard$,S=f.ui.episodes.panelOpened$,I=f.ui.isMobile,C=f.ui.t,R=K(void 0),E=re=>{var we,Z,Ne;if(!!((we=f.callbacks)!=null&&we.onEpisodeClicked)){let ue=ta(re);$.set(ue),S.set(!0),(Ne=(Z=f.callbacks)==null?void 0:Z.onEpisodeClicked)==null||Ne.call(Z,ue)}},k=K(null),O=v(()=>a()/u());De(()=>{var _e;let re=op(n(O),u(),m());re?((_e=n(k))==null?void 0:_e.time)!==re.time&&(p(re),N(k,re,!0)):N(k,null)});let B=v(()=>{var re;return((re=n(k))==null?void 0:re.text)||""}),F=v(()=>Xi(r(),"xl")?"FULL":Xi(r(),"m")&&db(r(),"xl")?"COUNT":"SHORT"),z=v(()=>`${C("tooltip_episodes")}: ${n(B)}`),G=async(re,_e,we)=>{await ho(),(re==null?void 0:re.getAttribute("aria-expanded"))==="false"&&_e&&!we&&Pt(()=>{$.set(!1),re.focus()})};De(()=>{G(n(R),s(),l())});var le=Ae(),X=de(le);{var oe=re=>{let _e=v(()=>d()?"px-0":""),we=v(()=>!b);Ut(re,{get className(){var Z;return`w-max btn-full-opacity btn-jc-l ${(Z=n(_e))!=null?Z:""}`},testId:"btn-episodes",click:E,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(Z){N(R,Z,!0)},children:(Z,Ne)=>{var ue=Ae(),P=de(ue);{var We=Y=>{var ie=kx(),Oe=de(ie),Be=T(Oe,!0);w(Oe);var fe=A(Oe,2),ee=T(fe);Vr(ee,{direction:"right"}),w(fe),D(()=>pe(Be,n(B))),_(Y,ie)},Ce=Y=>{var ie=Mx(),Oe=de(ie);Rm(Oe,{});var Be=A(Oe,2);{var fe=Se=>{var Fe=Ax(),Ke=T(Fe,!0);w(Fe),D(()=>pe(Ke,n(B))),_(Se,Fe)},ee=(Se,Fe)=>{{var Ke=Ye=>{var Te=Lx(),Le=T(Te,!0);w(Te),D(()=>pe(Le,m().length)),_(Ye,Te)};V(Se,Ye=>{n(F)==="COUNT"&&Ye(Ke)},Fe)}};V(Be,Se=>{n(F)==="FULL"?Se(fe):Se(ee,!1)})}_(Y,ie)};V(P,Y=>{d()?Y(We):Y(Ce,!1)})}_(Z,ue)},$$slots:{default:!0}})};V(X,re=>{n(k)&&re(oe)})}_(t,le),U(),o()}var ov=require("@vkontakte/videoplayer-shared/es2018");var vi=require("@vkontakte/videoplayer-core/es2018"),lt=require("@vkontakte/videoplayer-shared/es2018"),ms=require("@vkontakte/videoplayer-statistics/es2018");var Ge=require("@vkontakte/videoplayer-shared/es2018"),Zi=require("@vkontakte/videoplayer-shared/es2018"),Rx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",np=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 Zi.Subject,loadStarted$:new Zi.Subject,loadEnded$:new Zi.Subject,loadError$:new Zi.Subject,ready$:new Zi.Subject,slotRequested$:new Zi.Subject,started$:new Zi.Subject,timeRemained$:new Zi.Subject,paused$:new Zi.Subject,resumed$:new Zi.Subject,ended$:new Zi.Subject,empty$:new Zi.Subject,skipped$:new Zi.Subject,clicked$:new Zi.Subject,closed$:new Zi.Subject,error$:new Zi.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 s=()=>{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,Zi.addScript)(Rx,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=s,r=window.setTimeout(s,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 s=()=>{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,a=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=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),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 R,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:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:m,externalApi:f}=e;this.externalApi=f;let p,b=this.playerState&&he(this.playerState.vsid);b&&(this.isVsidOriginal?p=b:p=parseInt(b,36));let{isEmbed:y,immediateOrigin:$}=(0,Ge.detectEmbed)(),S=(R=y?$:window.location.href)!=null?R:window.location.href,I={...a,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,...p?{request_id:p}:{},duration:m,...u};I=Object.fromEntries(Object.entries(I).filter(([k,O])=>(0,Ge.isNonNullable)(O)));let C={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:I,browser:{mobile:!1}};try{let k=new window.AdmanHTML;if(k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.setDebug(!1),(E=this.externalApi)!=null&&E.videoGetAds){let O=await this.safeExternalCall(this.externalApi.videoGetAds,I);O&&(delete C.slot,delete C.params,Object.assign(C,{json:O}))}k.init(C),this.adman=k,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch(k){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,s;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)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.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,s,l,d,a,u,m,f,p;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),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(f=this.adman)==null||f.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,Zi.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 gb=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 Nm=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 s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new rp,{startTime:m,endTime:f}=u.parse(a);l.startTime=m,l.endTime=f}else if(a.trim()!==""){let u=new Om,{texts:m}=u.parse(a);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},rp=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 s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},Om=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,a=[];for(;d<l.length;){let u=["<",">"].reduce((m,f)=>{let p=l.indexOf(f,d);return m===-1||m>p?p:m},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new rp;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},hb=Nm;var ap=require("@vkontakte/videoplayer-shared/es2018"),Ka,ki,Dm=0,Bm=!1,_b="",bb=(t,e=0,i=0)=>t<e&&t<i,sp=(t,e=0,i=0)=>t>=e&&t<=i,Nx=(t,e=0,i=0)=>t>e&&t>i,$b=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:m})=>sp(t,u,m));let s=t>=Dm,l=t<Dm;if(Dm=t,l&&(Bm=!1),(0,ap.isNonNullable)(Ka)&&sp(t,Ka.startTime,Ka.endTime)&&_b===e.value)return Ka;if(!(0,ap.isNonNullable)(ki)&&(r!=null&&r.length)&&!Bm){ki=r.find(({startTime:u,endTime:m})=>sp(t,u,m)||s&&bb(t,u,m)),Ka=void 0,!(0,ap.isNonNullable)(ki)&&r[r.length-1].endTime<t&&(Bm=!0);return}else{if(sp(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))return Ka=ki,ki=void 0,_b=e.value,Ka;(s&&Nx(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime)||l&&bb(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))&&(ki=void 0)}};var lp={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"},Ox={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"},hc=t=>{var e,i;return(i=(e=lp[t])!=null?e:lp[Ox[t]])!=null?i:void 0};var yb=require("@vkontakte/videoplayer-shared/es2018"),XB=require("@vkontakte/videoplayer-statistics/es2018"),dp=class{constructor(e,i,o,r=new yb.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 _c=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(_c||{});var fs=t=>t!=null?t:0,Ls=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(fs(i==null?void 0:i.top)-fs(o==null?void 0:o.top)),left:Math.round(fs(i==null?void 0:i.left)-fs(o==null?void 0:o.left)),bottom:Math.round(fs(i==null?void 0:i.bottom)-fs(o==null?void 0:o.top)),right:Math.round(fs(i==null?void 0:i.right)-fs(o==null?void 0:o.left))}},Xl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:fs(e==null?void 0:e.width),height:fs(e==null?void 0:e.height)}};var Rn="off";var Zl=t=>!!(Math.round(Math.abs(t)/90)%2);var xb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:m,previewThumbsData:f,uiConfig:p,coreConfig:b,player:y,disabledControls:$,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:C,replayInteractive:R,stopPlayer:E,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:O,additionalButtons:B,additionalSettingsMenuItems:F,additionalContextMenuItems:z,playPrevVideo:G,playNextVideo:le,onVideoChanged:X,looped:oe=!1,statistics:j,saveRate:ve,internalsExposure:ce,playerView:re,playerId:_e})=>{var cg,ug,pg;let we={...b,configName:[...(cg=b.configName)!=null?cg:[],"ui"],isAudioDisabled:l,live:{...(ug=b.live)!=null?ug:{},isLiveCatchUpMode:!!r}},Z=p,Ne=lt.TracerFactory.createRootTracer(Z.features.tracer),ue=Ne.createComponentTracer("Store"),P=y||new vi.Player(we,Ne,{playerId:_e});ce==null||ce.expose({corePlayer:P});let We=new lt.Logger,Ce=new np(We,{loadTimeout:Z.ads.loadTimeout,initTimeout:Z.ads.initTimeout,runtimeTimeout:Z.ads.runtimeTimeout,useAdmanFromNPM:Z.ads.useAdmanFromNPM,volumeMultiplier:Z.ads.volumeMultiplier,isVsidOriginal:Z.ads.isVsidOriginal}),Y=Ra.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,Oe=u==null?void 0:u.annotationsApi,Be=u==null?void 0:u.slotsApi,fe=We.createComponentLog("Store"),ee,Se,Fe={},Ke=new Vu,Ye=new lt.Subscription,Te="",Le=ae(!1),Ue=j&&j.oneStat?ni(j.oneStat.vsid$):Mr(void 0),Vt=ae(Zs()),et=ae(!1),Ot=()=>H_(document,vi.clientChecker.device.isIOS),Wt=(pg=ie==null?void 0:ie.info.isActive$)!=null?pg:new lt.ValueSubject(!1),Ct=ae(0),Zt=ae(!1),Dt=ae(!1),ye=ae([]),be=(0,lt.merge)(P.events.fatalError$,P.events.managedError$).subscribe(c=>ye.update(h=>[...h,c])),J=Mr(!1,c=>{let h=P.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),xe=async c=>{var ne;let h=Object.values(lt.InterfaceLanguage).includes(c);if(Z.downloadVKLanguages&&(h&&Z.updateBuiltinLanguages||!jf(c))){let Ie;try{Ie=await(0,lt.loadVKLangPack)(c,Jh,e_)}catch(it){(ne=j==null?void 0:j.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),Y==null||Y.report(it,{errorType:"VKLangPack",fatal:!1})}Ie&&(Yf({language:c,pack:Ie,fallback:Z.defaultLanguage}),Pe.set(c),It.update(it=>it+1))}jf(c)&&Pe.set(c)},Pe=ae(t),It=ae(0),Me=ae(e);xe(t);let st=(c,h)=>{let M=he(Pe);return Xf(M,c,h,Z.defaultLanguage)},mt=ae("thumb");mt.subscribe(c=>{c==="ads"&&P.info.playbackState$.getValue()&&ze()});let $e=(()=>{let c=mi([J,mt],([h,M])=>h?"crashed":M);return{...c,is:h=>he(c)===h}})(),Je=ae(),ze=()=>{Je.set({muted:P.info.muted$.getValue()})},nt=(()=>{let c=ae(new Set($));return{...c,add:h=>{c.update(M=>new Set([...M].concat(h)))},remove:h=>{c.update(M=>{let ne=[...M];return new Set(Array.isArray(h)?ne.filter(Ie=>!h.includes(Ie)):ne.filter(Ie=>Ie!==h))})},includes:h=>{let M=he(c);return Array.isArray(h)?h.every(ne=>M.has(ne)):M.has(h)}}})(),Jt=ae({width:0,height:0}),ri=null,pi=P.info.isBuffering$,hi=Mr(pi.getValue(),c=>{let h=pi.subscribe(M=>{M&&ri===null?ri=window.setTimeout(()=>{c(pi.getValue()),ri=null},Z.loaderDelay):c(M)});return()=>{h.unsubscribe(),ri&&clearTimeout(ri)}});ue.log("create store"),fe({message:"create store"});let eo=c=>{let h=c.container,M=()=>{ii=new MutationObserver(Ie=>{let{removedNodes:it}=Ie[0];it.length&&h.append(P.experimental.element$.getValue())}),ii.observe(h,{childList:!0})},ne=P.experimental.element$.getValue();if(ne)h.append(ne),M();else{let Ie=P.experimental.element$.pipe((0,lt.filter)(it=>!!it),(0,lt.once)()).subscribe(it=>{h.append(it),M()});Ye.add(Ie)}},_o=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),S?eo(c):(lt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,lt.now)()]}),P.initVideo(c)),ue.log("init video",{isInteractive:S}),c.subtitles&&P.setExternalTextTracks(c.subtitles),ee=c,Te=c.subtitlesForcedLanguage||""},ci=new lt.Subject,pt=c=>ci.next(c),Ei=new lt.Subject,jt=new lt.Subject,St=new lt.Subject,ii=null,Xt={actionRewind$:Ei,actionSeek$:jt,inPiP$:Wt,inFullscreen$:new lt.Observable(c=>Vt.subscribe(h=>c.next(h))),actionSetSubtitle$:St,nextMovie$:ci},ht=new lt.Subject,je={actionSeek$:jt,actionSubtitlesSwitched$:ht,playerSize$:new lt.Observable(c=>Jt.subscribe(h=>c.next(h))),inPiP$:Wt,inFullscreen$:new lt.Observable(c=>Vt.subscribe(h=>c.next(h))),isLoaderVisible$:new lt.Observable(c=>hi.subscribe(h=>c.next(h)))};if(j){let{oneStat:c,thinOneStat:h,mediascopePixel:M,statSubscription:ne}=j;c&&(S||ne.add(c.attachTo(P)),ne.add(c.attachToUi(Xt)),ne.add(c.attachToAds(Ce.events)),c.authorize(s).catch(Ie=>{fe({message:`onestat auth error ${String(Ie)}`})}),M&&M.attachTo(P)),h&&(ne.add(h.attachTo(P,Ce.events)),ne.add(h.attachToUi(je)),ne.add(h.attachToAds(Ce.events)),h.updateContext({isMobile:he(Le)}),h.authorize(s))}if(Y){let c=new lt.Subscription,h=(M,ne)=>c.add(M.subscribe(ne));if(h(P.events.managedError$,M=>{Y.logIError(M)}),h(P.events.fatalError$,M=>{Y.logIError(M,!0)}),j){let{oneStat:M}=j;M&&h(M.experimental.error$,ne=>{Y.logIError(ne)})}Y.sentrySubscription.add(c)}let yi=()=>{if(vi.clientChecker.device.isIOS&&Se)try{U_(Se)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};Ye.add(P.experimental.element$.subscribe(c=>{c&&(Se=c,c.classList.add("player-media"),Oa(ie)&&ie.updateVideoElement(),S&&c.setAttribute("pip","false"),re==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(P.events.ended$.subscribe(()=>{var c;yi(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(P.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(P.events.started$.subscribe(async()=>{var h,M;Oa(ie)&&await(ie==null?void 0:ie.revealPictureInPicture());let c=P.info.muted$.getValue();(h=a==null?void 0:a.onStarted)==null||h.call(a),(M=Fe.onStarted)==null||M.call(Fe,c)})).add(P.events.willSeek$.subscribe(({from:c,to:h})=>{var M;(M=a==null?void 0:a.onSeek)==null||M.call(a,c,h)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(P.info.position$.subscribe(c=>{var M;let h=P.info.duration$.getValue();isFinite(h)&&h>0&&((M=a==null?void 0:a.onTimeupdate)==null||M.call(a,h,c),Ce.setPosition(c,h))})).add(P.events.fatalError$.subscribe(c=>{var h;(h=a==null?void 0:a.onCrashed)==null||h.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(P.events.fetcherRecoverableError$.subscribe(c=>{var h;(h=a==null?void 0:a.onRecoverableError)==null||h.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(P.events.loadedMetadata$.subscribe(()=>{Zt.set(!0)})).add(P.info.is3DVideo$.subscribe(c=>{Dt.set(c)})).add(P.info.isEnded$.subscribe(c=>{S&&(c?(C!=null&&C.getValue()&&nt.add(Qd),nt.add("PLAY_BUTTON")):nt.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(c=>{var h;(h=a==null?void 0:a.onLiveTime)==null||h.call(a,c)})).add(P.info.isStalled$.subscribe(c=>{var h;(h=a==null?void 0:a.onStalledChanged)==null||h.call(a,c)})).add(P.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=a==null?void 0:a.onLiveEnded)==null?void 0:h.call(a))})).add(Ce.events.loadStarted$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:h.call(c)})).add(Ce.events.loadEnded$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:h.call(c)})).add(Ce.events.loadError$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:h.call(c)})).add(Ce.events.init$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:h.call(c)})).add(Ce.events.ready$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:h.call(c)})).add(Ce.events.started$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onStarted)==null?void 0:M.call(h,c)})).add(Ce.events.timeRemained$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:M.call(h,c)})).add(Ce.events.ended$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onCompleted)==null?void 0:M.call(h,c)})).add(Ce.events.empty$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:h.call(c)})).add(Ce.events.clicked$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onClicked)==null?void 0:M.call(h,c)})).add(Ce.events.closed$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onClosed)==null?void 0:M.call(h,c)})).add(Ce.events.error$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onError)==null?void 0:M.call(h,c)})).add(Ce.events.paused$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:h.call(c)})).add(Ce.events.resumed$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:h.call(c)}));let to=new lt.Subscription,en=()=>{var it,kt,Ft;let{debugLog:c}=Z,h,M="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:qt}=c;h=c.tag,M=(it=qt==null?void 0:qt[0])!=null?it:M,ne=(Ft=(kt=qt==null?void 0:qt[1])!=null?kt:qt==null?void 0:qt[0])!=null?Ft:ne}let Ie=h?`: ${h}`:"";to.add(P.events.log$.subscribe(qt=>{console.debug(`%c sdk${Ie} `,`background:${M};`,`sdk component: ${qt.component}`,qt.message)})).add(We.log$.subscribe(qt=>{console.debug(`%c ui${Ie} `,`background:${ne};`,`ui component: ${qt.component}.`,qt.message)}))},hn=()=>{to.unsubscribe()},Et=(c,h)=>{ue.log("start camera manual rotation",{mx:c,my:h}),P.startCameraManualRotation(c,h)},Bt=(c=!1)=>{ue.log("stop camera manual rotation",{immediate:c}),P.stopCameraManualRotation(c)},W=(c,h,M)=>{ue.log("move camera focus px",{xpx:c,ypx:h,dt:M}),P.moveCameraFocusPX(c,h,M)},At=()=>{P.holdCamera()},si=()=>{P.releaseCamera()},dt=Mr(P.info.position$.getValue(),c=>{let h,M,ne=()=>{let Ie=P.info.playbackState$.getValue(),it=P.info.isLive$.getValue(),kt=P.info.duration$.getValue(),Ft=P.info.position$.getValue();if(Ie&&[vi.PlaybackState.PLAYING,vi.PlaybackState.PAUSED].includes(Ie)){let qt=it?Ft-kt:P.getExactTime();qt!==M&&c(qt),M=qt}h=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(h)}),Tt=ni(P.info.playbackState$),Yt=ni(P.info.isBuffering$),ct=mi([Tt,Yt],([c,h])=>h?"buffering":c),Oi=ni(P.info.currentBuffer$),Di=ni(P.info.isEnded$),No=ni(P.info.isLive$),To=Z.features.playbackRate?ni(P.info.canChangePlaybackSpeed$):Mr(!1),bo=ni(P.info.liveBufferTime$),qi=ni(P.info.volume$),Nr=ni(P.info.muted$),io=Ru(P.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===vi.PredefinedQualityLimits.TRAFFIC_SAVING)),P.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.TRAFFIC_SAVING),oo=Ru(P.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===vi.PredefinedQualityLimits.HIGH_QUALITY)),P.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.HIGH_QUALITY),Ci=ni(P.info.autoQualityLimitingAvailable$),_n=ni(P.info.availableQualities$),tn=ni(P.info.availableQualitiesFps$),bn=ni(P.info.chromecastState$),_r=ni(P.info.chromecastDeviceName$),br=ni(P.info.currentFormat$),gs=ni(P.info.throughputEstimation$),hs=ni(P.info.videoBitrate$),es=ni(P.info.intrinsicVideoSize$),Nn=ni(P.info.duration$),Or=ni(P.info.isAudioAvailable$),$n=()=>{ri&&clearTimeout(ri),ri=null},$o=mi([Nn,No],([c,h])=>h?-c:c),On=mi([Tt],([c])=>c===vi.PlaybackState.PLAYING),Dn=ni(P.info.atLiveEdge$),$r=ni(P.info.atLiveDurationEdge$),Zn=ni(P.info.position$),ts=mi([Zn,Nn],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),Dr=mi([bn],([c])=>c===vi.ChromecastState.CONNECTED),no=ni(P.info.availableVideoStreams$),yr=Z.features.audioLanguages?ni(P.info.availableAudioStreams$):Mr([]),Jn=ni(P.info.currentVideoStream$),yn=ni(P.info.currentAudioStream$),yo=c=>{c.language&&Kf(c.language),P.setVideoStream(c)},xr=(c,h)=>{P.setAudioStream(c),sn(h)&&(c.language&&Kf(c.language),Z.features.userVideoPrefs&&i&&Gf(Z.userSalt,String(i),{audioTrackId:c.id}))},Bn=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(ne=>"isDefault"in ne&&ne.isDefault)),Z.features.userVideoPrefs&&i){let ne=Fu(Z.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Ie=c.find(it=>it.id===ne.audioTrackId);h=Ie!=null?Ie:h}}let M=C_();return M&&(h!=null||(h=c.find(({language:ne})=>M===ne))),h!=null||(h=c.at(0)),h},_t=c=>{ue.log("change audio stream",{id:c});let h=P.info.availableAudioStreams$.getValue().find(M=>M.id===c);h&&xr(h,!0)},ai=!1;Ye.add(P.info.availableAudioStreams$.subscribe(c=>{if(!ai&&c.length){let h=Bn(c);h&&(P.setAudioStream(h),ai=!0)}})),yr.subscribe(c=>{var h;(h=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||h.call(a,c.map(({label:M="",id:ne="",language:Ie=""})=>({label:M,language:Ie,id:ne})))}),yn.subscribe(c=>{var h;return c&&((h=a==null?void 0:a.onAudioStreamChanged)==null?void 0:h.call(a,c.id))});let wr=!1;Ye.add(P.info.availableVideoStreams$.subscribe(c=>{if(!wr&&c.length){let h=Bn(c);h&&(P.setVideoStream(h),wr=!0)}}));let xn=ae(void 0),Sr=ni(P.info.isAutoQualityEnabled$,c=>c&&xn.set(void 0)),Fn=ni(P.info.currentQuality$,()=>xn.set(void 0)),er=mi([xn,Fn],([c,h])=>c!=null?c:h),on=mi(br,c=>c!==vi.VideoFormat.MPEG),Hn=mi([_n,tn,Sr,er,on],([c,h,M,ne,Ie])=>{let it=[];Ie&&it.push({value:"auto",displayValue:st("auto_quality_option"),selected:M});let kt=c.filter(Ft=>!(0,lt.isInvariantQuality)(Ft));for(let Ft of kt){let qt=h[Ft];it.push({value:Ft,displayValue:`${Ft}${qt?gb(qt):""}`,selected:M?!1:Ft===ne})}return it}),nn=ni(P.info.currentPlaybackRate$),Un=mi([nn,Dn,$r],([c,h,M])=>{let ne=M||S?1:Z.controls.playbackRateMin,Ie=h?1:Z.controls.playbackRateMax,it=Z.controls.playbackRateStep,kt=[];for(let Ft=ne;Ft<=Ie;Ft+=it)kt.push({value:Ft,displayValue:Ft===1?st("playback_rate_1"):st("playback_rate",{multiplier:Ft.toString(10)}),selected:c===Ft});return kt}),Co=()=>({displayValue:st("subtitles_off"),value:Rn,language:""}),rn=ae(Co()),xo=mi([rn,It],([c],h)=>{c.value===Rn?h(Co()):h(c)}),tr=Z.features.subtitles?ni(P.info.availableTextTracks$):Mr([]),Qi=v_(),ir=mi([tr,xo],([c,h],M)=>{var it;let ne=[],Ie=c.find(({id:kt})=>kt===h.value);if(Ie!=null&&Ie.url){let[,kt]=(it=Qi.find(Ie.url))!=null?it:[];if(kt){M(kt);return}Ke.download(Ie.url).then(Ft=>{if(!Ft||Ke.isDestroyed())return;let qt=new hb,Hs=Ie.language;if(Hs){let x$=!!Ie.isAuto,w$=qt.parse(Ft,Hs);ne.push({lang:Hs,subtitles:w$,isAuto:x$,id:Ie.id})}Qi.add(Ie.url,ne),he(xo).value===h.value&&M(ne)}).catch(Ft=>{var qt;(qt=j==null?void 0:j.oneStat)==null||qt.logError({errorType:"Subtitles download",fatal:!1}),Y==null||Y.report(Ft,{errorType:"Subtitles download",fatal:!1})})}M(ne)}),or=mi([nn,On,xo],([c,h,M],ne)=>{let kt;if(P.info.isLive$.getValue()&&h&&M.value!==Rn){let qt=()=>{let Hs=1e3/(3*c);kt=setTimeout(qt,Hs),ne(Date.now())};return qt(),()=>clearTimeout(kt)}}),Tr=mi([tr,xo],([c,h])=>{if(!c.length)return[];let M=[];for(let{language:ne,isAuto:Ie,id:it}of c){let kt=ne&&hc(ne);ne&&kt&&M.push({displayValue:Ie?st("subtitles_auto",{language:kt}):kt,value:it,selected:(h==null?void 0:h.value)===it,isAuto:Ie,language:ne})}return M.length?(M.unshift({...Co(),selected:(h==null?void 0:h.value)===Rn}),M):[]}),Oo={available:[],prev:[]},zn=()=>{var h,M;let c=P.experimental.getCurrentTime$.getValue();return(M=(h=c==null?void 0:c())!=null?h:Se==null?void 0:Se.currentTime)!=null?M:0},Br=mi([dt,xo,ir,or],([c,h,M,ne])=>{var it;let Ie=P.info.isLive$.getValue();if(Ie&&Oo.prev!==M){let kt=M.find(({id:qt})=>qt===h.value),Ft=Oo.prev.find(({id:qt})=>qt===h.value);if(kt){let qt={...kt,subtitles:[...(it=Ft==null?void 0:Ft.subtitles)!=null?it:[],...kt.subtitles]};Oo.available=[qt],Oo.prev=M}}if(h&&h.value!==Rn){let kt=Ie?zn():c,Ft=Ie?Oo.available:M;return $b(kt,h,Ft,Ie)}}),yt=mi([Br],([c])=>c!=null&&c.texts?c.texts:[]);Ye.add(xo.subscribe(c=>{var h,M;if(c.value===Rn)(h=a==null?void 0:a.onSubtitleOff)==null||h.call(a);else{let ne=Object.entries(lp).find(([Ie,it])=>it===c.displayValue);(M=a==null?void 0:a.onSubtitleOn)==null||M.call(a,ne?ne[0]:"",c.value)}}));let xt=ae(!0),ro=mi([Oi,$o,Zn,bo],([c,h,M,ne])=>{var Ft;let Ie=(Ft=c==null?void 0:c.end)!=null?Ft:0;if(!ne)return Ie/h;let kt=-M+ne-h;return(Ie-kt)/h}),Pi=ni(P.info.availableSources$),so=mi([Pi],([c])=>Object.keys((c==null?void 0:c[vi.VideoFormat.MPEG])||{}).length>0),Do=()=>{var M,ne,Ie;let c=Object.keys(((ne=(M=P.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ne[vi.VideoFormat.MPEG])||{}),h=(0,lt.getHighestQuality)(c)||lt.VideoQuality.Q_144P;return(Ie=ee.sources[vi.VideoFormat.MPEG])==null?void 0:Ie[h]},Bo=()=>{var h;let c=Do();if(c)ue.log("download video",{url:c}),p_(c,((h=ee==null?void 0:ee.meta)==null?void 0:h.title)||"video");else{let M="There is no URL for download video";ue.log("download video",{message:M}),fe({message:M})}},ao=()=>{fe({message:"toggle muted"});let c=P.info.muted$.getValue();P.info.volume$.getValue()===0&&!c?nr(Cr(),!1):Io(!c,!1)},Ii=()=>{var c;if(zt.ui.settingsMenu.visible$.set(!1),!he(zt.ui.settingsSubMenu.visible$)){let h=he(zt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&h){let ne=Xl(h),Ie={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Ie,name:"settings"})}}ue.log("close settings menu")},Fr=async(c,h=()=>Promise.resolve())=>{var Ie;zt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),zt.ui.settingsMenu.visible$.set(!0),await h();let M=he(zt.ui.settingsMenu.ref$),ne=fa();if((Ie=a==null?void 0:a.uiInfo)!=null&&Ie.onSettingsMenu&&M&&ne){let kt=Xl(M),Ft=Ls(M,ne);a.uiInfo.onSettingsMenu({visible:!0,size:kt,position:Ft,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})},Hr=(c,h=!1)=>{var it;zt.ui.settingsSubMenu.visible$.set(!1);let M=he(zt.ui.settingsMenu.ref$),ne=fa(),Ie=he(zt.ui.settingsMenu.visible$);if((it=a==null?void 0:a.uiInfo)!=null&&it.onSettingsMenu&&M&&ne)if(Ie&&!h){let Ft=Xl(M),qt=Ls(M,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:qt,name:"settings"})}else{let Ft=Xl(c),qt={top:0,left:0,bottom:0,right:0},Hs=he(zt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ft,position:qt,name:Hs})}ue.log("close settings sub menu")},is=(c,h)=>{var ne;zt.ui.settingsSubMenu.visible$.set(!0),zt.ui.settingsSubMenu.ref$.set(h),zt.ui.settingsSubMenu.name$.set(c);let M=fa();if((ne=a==null?void 0:a.uiInfo)!=null&&ne.onSettingsMenu&&h&&M){let it=Xl(h),kt=Ls(h,M);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:it,position:kt})}ue.log("open settings sub menu",{name:c})},Cr=()=>{var h;let c=Math.max(Z.volumeMinRestore,(h=Nu())!=null?h:0);return c===0?Z.volumeDefault:c},sn=c=>{let h=Z.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},nr=(c,h)=>{let M=c===0?Cr():c,ne=P.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Ie=!l||$e.is("ads");ne&&c>0&&Ie&&(ne=!1,sn(h)&&zf(!1)),P.setVolume(c,ne),Ce.setVolume(c),sn(h)&&Df(M)},Io=(c,h)=>{let M=P.info.volume$.getValue();fe({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ne=$e.is("ads");if(P.setMuted(c,ne),Ce.setVolume(c?0:M),sn(h)&&(!ne||!c)&&zf(c),!c&&M===0){let Ie=Cr();P.setVolume(Ie),sn(h)&&Df(Ie),Ce.setVolume(Ie)}},Fo=ae(!1),Ir=c=>{var h,M;ue.log("set looped",{isLooped:c}),Fo.set(c),P.setLooped(c),(M=(h=a==null?void 0:a.uiInfo)==null?void 0:h.onLoopedChanged)==null||M.call(h,c)};Ir(oe);let an=()=>{var c,h;(h=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},os=(c,h=!1)=>{var M;fe({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),zt.ui.autoplayNextEnabled$.set(c),P_(c),h&&((M=a==null?void 0:a.onSetAutoplayNextEnabled)==null||M.call(a,c))},qe=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),zt.ui.timerNextVideoRunning$.set(c)},Lt=(c=!0)=>{var M;let h=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{h=(M=a==null?void 0:a.onPrevVideoClick)==null?void 0:M.call(a)}catch(ne){fe({message:"onPrevVideoClick callback failed to execute"})}X(!0),h&&G()},_i=(c=!0)=>{var M;let h=!0;if(c&&(a!=null&&a.onNextVideoClick))try{h=(M=a==null?void 0:a.onNextVideoClick)==null?void 0:M.call(a)}catch(ne){fe({message:"onNextVideoClick callback failed to execute"})}X(!1),h&&le()},Eo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Po=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Ho=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},lo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Gi=()=>{P.prepare()},wn=()=>{(0,lt.assertNonNullable)(zt);let c=he(zt.ui.controls.disabledControls$),h=he(zt.playerPhase),M={playerPhase:h,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(fe({message:"toggle play"}),h==="ads"){M.action="play",ue.log("toggle adman play",M),Ce.togglePlay();return}let ne=()=>{var it;fe({message:"toggle play, call player.play"}),M.action="play",P.play(),(it=a==null?void 0:a.onPlay)==null||it.call(a)},Ie=()=>{var it;fe({message:"toggle play, call player.pause"}),M.action="pause",P.pause(),(it=a==null?void 0:a.onPause)==null||it.call(a)};if(P.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),Ei.next(),jt.next(ms.SeekAction.REWIND),S){R==null||R();return}P.seekTime(0),ne()}else P.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING?ne():Ie();ue.log("toggle play",M)},Uo=(c,{changeReason:h="default",appliesTo:M="to-video"}={},ne)=>{fe({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),P.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ie}=Z.features;Ou(),c!=="auto"?(Ie?(Du({type:"exact_quality",quality:c,videoId:i},M),P.setPredefinedQualityLimits(vi.PredefinedQualityLimits.UNKNOWN)):Bf(i,c),xn.set(c),P.setQuality(c)):Ie&&h==="default"&&(sr("auto_quality",M,ne),he(io)&&co(!1,void 0,ne),he(oo)&&ko(!1,void 0,ne))},co=(c,h="as-default",M)=>{fe({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?vi.PredefinedQualityLimits.TRAFFIC_SAVING:vi.PredefinedQualityLimits.UNKNOWN;Z.features.qualityDetailsSubMenuEnabled?(rr(ne,h,M),Yd(!1)):(P.setPredefinedQualityLimits(ne),sn(M)&&Yd(c))},ko=(c,h="as-default",M)=>{fe({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),rr(c?vi.PredefinedQualityLimits.HIGH_QUALITY:vi.PredefinedQualityLimits.UNKNOWN,h,M)},rr=(c,h,M)=>{c!==vi.PredefinedQualityLimits.UNKNOWN&&(he(Ci)&&!he(Sr)&&Uo("auto",{appliesTo:h,changeReason:"limit-changed"},M),sr(c,h,M)),P.setPredefinedQualityLimits(c)},sr=(c,h,M)=>{sn(M)&&(Du({type:c,videoId:i},h),h==="as-default"&&Du({type:c,videoId:i},"to-video"))},ln=(c,h=!0)=>{ue.log("set playback rate",{playbackRate:c}),P.setPlaybackRate(c),Z.features.saveRate&&ve&&!P.info.isLive$.getValue()&&h&&I_(c)},ns=()=>{let c=he(Un),h=c.findIndex(({selected:ne})=>ne);if(h===c.length-1)return;let M=c[h+1];ln(M.value)},_s=()=>{let c=he(Un),h=c.findIndex(({selected:ne})=>ne);if(h===0)return;let M=c[h-1];ln(M.value)},Er=(c={...Co(),selected:!1},h)=>{ue.log("set subtitles",{...c}),c.value!==Rn&&St.next(c.isAuto?c.value+"_auto":c.value),ht.next({enabled:c.value!==Rn,lang:c.language,auto:!!c.isAuto}),rn.set(c),sn(h)&&(Qf(c.value===Rn?void 0:c.language),Z.features.userVideoPrefs&&i&&Gf(Z.userSalt,String(i),{subtitleTrackId:c.value===Rn?void 0:c.value}))},Xe=c=>{ue.log("toggle subtitles");let h=he(xo);(h==null?void 0:h.value)===Rn?wi(c):zo(c)},Kt=(c,h)=>{ue.log("change subtitle",{enabled:c}),c?wi(!0,h):zo(!0)},wi=(c,h)=>{ue.log("subtitle on");let M=he(Tr),ne=he(Pe),Ie=Te!=null?Te:ne,it;h&&(it=M.find(kt=>kt.value===h)),it!=null||(it=M.filter(kt=>kt.value!==Rn).find(kt=>kt.language===Ie)),Er(it!=null?it:M[1],c)},zo=c=>{ue.log("subtitle off"),Er(void 0,c)};Ye.add(P.info.availableTextTracks$.subscribe(c=>{var M;function h(){let ne=[];for(let{language:Ie,isAuto:it,id:kt}of c){let Ft=Ie&&hc(Ie);Ie&&Ft&&ne.push({id:kt,language:Ie,title:it?st("subtitles_auto",{language:Ft}):Ft})}return ne}(M=a==null?void 0:a.onAvailableSubtitlesChanged)==null||M.call(a,h())}));let dn=ae(!0),ar=c=>{dn.set(c)},uo=(c,h,M=!0)=>{var ne;if(fe({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:h,forcePrecise:M}),jt.next(h),P.info.isLive$.getValue()){let Ie=P.info.duration$.getValue(),it=Math.min(0,Ie+c);P.seekTime(it,M)}else{if(C!=null&&C.getValue())return;P.info.isEnded$.getValue()&&(fe({message:"seek after ended, call callbacks.onPlay"}),(ne=a==null?void 0:a.onPlay)==null||ne.call(a)),P.seekTime(ag(c),M)}},Pr=c=>{fe({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),uo(c,ms.SeekAction.EPISODE,!0)},bs=(c,h,M=!1)=>{fe({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:h});let ne=he($o)*c;uo(ne,h,M)},Sn=c=>{fe({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),jt.next(ms.SeekAction.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-c:c)},Os=c=>{var ne,Ie;let h=(ne=c.max)!=null?ne:"none",M=(Ie=c.min)!=null?Ie:"none";fe({message:`set auto quality limitation. Max: ${h}. Min: ${M}`}),ue.log("set auto quality limits",{max:h,min:M}),P.setAutoQualityLimits(c)},la=c=>{fe({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),uo(c,ms.SeekAction.EPISODE,!0)},da=c=>{fe({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),P.setPlaybackRate(c)},at=ae(!1),ei=ae(!1),Wo=mi([$o],([c])=>!!f&&c>=Z.suitableDurationForUsingRichSeek&&Z.features.useRichSeek&&!S),ge=((f==null?void 0:f.frameWidth)||0)>=((f==null?void 0:f.frameHeight)||0),wt=mi([Ct],([c])=>{let h=Zl(c);return ge?!h:h});Ye.add($e.subscribe(c=>{c!=="video"&&at.set(!1)}));let Qt=ae(void 0),bi=ae(!1),po=c=>{fe({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),bi.set(!0),li(c)},li=c=>{Qt.set(c)},ti,fo,cn=()=>{Qt.set(void 0),bi.set(!1)},un=()=>{clearTimeout(fo),clearTimeout(ti),ti=window.setTimeout(()=>{cn()},500),Se==null||Se.removeEventListener("seeked",un)},Bi=(c,h=!1)=>{fe({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),bs(c,ms.SeekAction.SLIDER,h),he(zt.ui.isMobile)&&he(zt.state.currentFormat$)===vi.VideoFormat.HLS?(Se==null||Se.addEventListener("seeked",un),fo=window.setTimeout(()=>{un()},300)):cn()},fd=mi([dt,$o,Qt],([c,h,M],ne)=>{ne((0,lt.isNonNullable)(M)?M*h:c)}),Ds=ae(!1),sl=()=>{Ds.set(!0)},al=()=>{Ds.set(!1)},Bs=mi([Jt],([{width:c}],h)=>{let M=cb(c);h(M)}),Ur=B.filter(c=>f_(c)),ca=mi([Bs,Le],([c,h])=>h?Ur.filter(M=>!M.hideOnMobile):Ur.filter(M=>{var ne;return!((ne=M.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),lr=ae(B.filter(c=>m_(c))),md=mi([lr,Bs],([c,h])=>c.filter(M=>{var ne;return!((ne=M.hideOnDesktopGridTypes)!=null&&ne.includes(h))})),rs=mi([md,ca],([c,h])=>[...Z.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...Z.features.additionalButtons?h.map((M,ne)=>{var Ie;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Ie=M.ariaLabel)!=null?Ie:M.tooltip,tooltipText:M.tooltip}}):[]]),Wn=ae(F),ua=mi([Wn],([c])=>Z.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?{...h,onClick:h.onChangeEnabled}:h):[]),ll=(c,h)=>{let M=he(lr).map(ne=>ne.id!==c?ne:{...ne,...h});lr.set(M)},dl=c=>{let h=he(lr);if(h.some(M=>M.id===c.id)){fe({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=he(lr);if(!h.some(M=>M.id===c)){fe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),lr.set(h)},cl=c=>{jt.next(ms.SeekAction.LIVE),fe({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),P.setLiveLowLatency(c)},ul=(c,h)=>{let M=he(Wn).map(ne=>ne.id!==c?ne:{...ne,...h});Wn.set(M)},pl=c=>{let h=he(Wn);if(h.some(M=>M.id===c.id)){fe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Wn.set(h)},gd=c=>{let h=he(Wn);if(!h.some(M=>M.id===c)){fe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),Wn.set(h)},dr=ae(z),fl=mi([dr],([c])=>Z.features.additionalContextMenuItems?c:[]),ut=(c,h)=>{let M=he(dr).map(ne=>ne.id!==c?ne:{...ne,...h});dr.set(M)},ft=c=>{let h=he(dr);if(h.some(M=>M.id===c.id)){fe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),dr.set(h)},Fi=c=>{let h=he(dr);if(!h.some(M=>M.id===c)){fe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),dr.set(h)},Ko=mi([Le,J],([c,h],M)=>{M(c&&h)}),Hi=()=>{jt.next(ms.SeekAction.LIVE),fe({message:"switch to active live"}),ue.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING&&zt.actions.internal.togglePlay()},$i=()=>{ue.log("skip adman"),Ce.skip()},Ai=(c=!0)=>{var ne;(0,lt.assertNonNullable)(zt),fe({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),mt.set("video"),c&&P.play(),l&&Io(!0,!0);let h=(ne=he(Je))==null?void 0:ne.muted,M=!P.info.muted$.getValue();h!==void 0&&!M&&Io(h,!0),Je.set(void 0)},pa=()=>{(0,lt.assertNonNullable)(zt),fe({message:"switch from video to ads"}),ue.log("switch from video to ads"),zt.actions.internal.pause(),yi(),mt.set("ads")},ml=c=>{(0,lt.assertNonNullable)(zt);let h=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:h}),mt.set(h)},Rp=c=>{(0,lt.assertNonNullable)(zt);let h=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:h}),mt.set(h)},Yc=c=>{(0,lt.assertNonNullable)(zt);let h=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:h}),mt.set(h)},jc=()=>((0,lt.assertNonNullable)(zt),ue.log("get debug text data"),c_(P,ee,zt,Ne.getTraceId())),Xc=()=>((0,lt.assertNonNullable)(zt),JSON.stringify(Ne.getFinishedSpans())),Np=()=>((0,lt.assertNonNullable)(zt),u_(P,ee,zt)),fa=()=>Se,Op=()=>{fe({message:"toggle chromecast"}),ue.log("toggle chromecast"),P.toggleChromecast()},Fs=c=>{var M;if((0,lt.assertNonNullable)(zt),P.info.isEnded$.getValue())return;let h=!c;if(he(zt.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${h}`}),ue.log("pause ads",{internalCall:h}),Ce.pause();return}fe({message:`pause video, internalCall: ${h}`}),ue.log("pause video",{internalCall:h}),h&&((M=a==null?void 0:a.onPause)==null||M.call(a)),P.pause()},vl=c=>{var M;(0,lt.assertNonNullable)(zt);let h=!c;if(he(zt.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${h}`}),ue.log("play ads",{internalCall:h}),Ce.play();return}fe({message:`play video, internalCall: ${h}`}),ue.log("play video",{internalCall:h}),h&&((M=a==null?void 0:a.onPlay)==null||M.call(a)),P.play()},Zc=c=>{(0,lt.assertNonNullable)(zt);let h=!c;if(he(zt.playerPhase)==="ads"){fe({message:"player cannot be stopped during ads via external method"});return}fe({message:`player will be stopped, internalCall: ${h}`}),E==null||E()},Jc=(c,h)=>{(0,lt.assertNonNullable)(zt),fe({message:`first start, show ads: ${c}, internalCall: ${!h}`}),ue.log("first start",{showAds:c,external:h}),c?mt.set("ads"):(mt.set("video"),h?P.play():zt.actions.internal.togglePlay())},hd=()=>(fe({message:"getting time codes"}),m),eu=()=>{let c=hd();if(!c||[0,1].includes(c.length))return;let h=P.info.position$.getValue();return c.find(M=>M.time>h)},He=c=>{let h=c;h||(h=eu());let M=P.info.position$.getValue();ue.log("seek to next episode",{currentTime:M,...h}),h&&(fe({message:"seek to next episode"}),uo(h.time,ms.SeekAction.EPISODE,!0))},fi=()=>{let c=hd();if(!c||[0,1].includes(c.length))return;let h=P.info.position$.getValue(),M=c.findIndex(Ie=>Ie.time>h),ne=M===-1?c.length-2:M-2;if(!(ne<0))return c[ne]},qo=c=>{let h=c;h||(h=fi());let M=P.info.position$.getValue();ue.log("seek to prev episode",{currentTime:M,...h}),h&&(fe({message:"seek to prev episode"}),uo(h.time,ms.SeekAction.EPISODE,!0))},ma=()=>(fe({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",{...f}),f),Tn=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())),ue.log("toggle picture in picture",{isActive:c,action:h})},f$=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),Ct.update(h=>h+c)},tu=ae([]);I==null||I.subscribe(c=>{let h=[];for(let M=0;M<c.length;M++){let{range:[ne,Ie],subjects:it}=c[M];M===0&&ne!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:ne/1e3,text:"",interactive:!0,completed:Z.features.interactiveTimeOpenUri?!it.length||it.every(kt=>kt.isRemoved):!it.length}),Ie!==1/0&&h.push({time:Ie/1e3,text:"",interactive:!1,completed:!0})}tu.set(h)});let m$=ae(!1);C==null||C.subscribe(c=>{c&&he(bi)&&cn()});let ag=c=>{if(!S)return c;let h=he(tu),M=he($o),Ie=he(Zn)/M,it=h.find(kt=>kt.interactive&&!kt.completed&&kt.time>Ie);return typeof(it==null?void 0:it.time)=="number"?Math.min(c,it.time-.05):c},v$=()=>{zt.ui.episodes.panelOpened$.set(!1)},g$=()=>{ue.log("destroy store"),clearTimeout(fo),clearTimeout(ti),Ye.unsubscribe(),to.unsubscribe(),P.destroy(),Ce.destroy(),j==null||j.destroy(),Y==null||Y.destroy(),be.unsubscribe(),ii==null||ii.disconnect(),ii=null,Ke.destroy()},h$=mi([Dn,$e,To],([c,h,M])=>p.features.doubleForwardAvailable&&!c&&h==="video"&&M),Dp=ae(!1),lg=2,iu=null,dg=c=>{if(!he(On)&&c)return;let h=P.info.currentPlaybackRate$.getValue();c?h!==lg&&(iu=h,ln(lg,!1),Dp.set(!0)):(iu&&ln(iu,!1),Dp.set(!1),iu=null)};$e.subscribe(c=>{c!=="video"&&dg(!1)});let _$=()=>{Fs(!1),at.set(!0)},b$=()=>{vl(!1),at.set(!1)},Bp=!1,$$=()=>{ei.set(!0),Bp=P.info.playbackState$.getValue()===vi.PlaybackState.PLAYING,Fs(!1)},y$=()=>{ei.set(!1),!he(at)&&Bp&&vl(!1),Bp=!1};P.events.playing$.subscribe(()=>{he(at)&&Fs(!1)});let zt={interfaceLanguage$:Pe,isCyrillicRelatedInterface$:Me,initVideo:_o,videoId:i,isClip:o,playerPhase:$e,vsid:Ue,state:{positionExact$:dt,positionWithScrubbing$:fd,duration$:$o,playbackState$:Tt,playbackStateRealistic$:ct,isPlaying$:On,isLoaderVisible:hi,bufferedProgress$:ro,isLive$:No,canChangePlaybackSpeed$:To,isActiveLive$:Dn,isOldestAvailableLive$:$r,isRewindableLive$:ts,isEnded$:Di,muted$:Nr,volume$:qi,trafficSavingEnabled$:io,highQualityEnabled$:oo,autoQualityLimitingAvailable$:Ci,availableVideoStreams$:no,availableAudioStreams$:yr,videoStream$:Jn,audioStream$:yn,currentQuality$:er,isAutoQualityEnabled$:Sr,availableQualities$:Hn,currentPlaybackRate$:nn,availablePlaybackRates$:Un,currentSubtitle$:xo,availableTextTracks$:tr,availableSubtitlesList$:Tr,currentSubtitleCaptions$:yt,isAutoSubtitleCaptionVisible$:xt,chromecastState$:bn,chromecastDeviceName$:_r,chromecastConnected$:Dr,currentFormat$:br,throughputEstimation$:gs,videoBitrate$:hs,videoSize$:es,errorLog$:ye,crashed$:J,isAudioAvailable$:Or,isAudioDisabled:!!l,canDownload:Z.features.download&&!!d,availableSources$:Pi,hasMpegSources$:so,isInteractive:S,showInteractiveGraph:Z.features.interactiveGraph,showSeekToInteractive:Z.features.seekToInteractive,showPlayPrevChapter:Z.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Z.features.interactiveTimeIndicator&&!!he(tu).length,interactiveEpisodes$:tu,isInteractiveTime$:C?ni(C):ae(!1),isInteractiveExpectation$:m$,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:O,looped$:Fo,loadedMetadata$:Zt,isAutoQualityAvailable$:on,previewTrackActive:at,previewTrackDragInProgress:ei},ui:{t:st,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:B.length?B.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:nt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Vt,isFullscreenOpenedByKeyboard:et,rotateAlpha:Ct,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:Jt,isMobile:Le,mobileNotReportControlHidden$:Ko,icon3DVideoVisible:ae(!1),scrubbingInProgress:bi,volumeChangingInProgress:Ds,is3DVideo:Dt,currentGridType$:Bs,additionalButtonsDeprecated$:ca,additionalDesktopControlPanelRightButtons$:rs,additionalSettingsMenuItems$:ua,additionalContextMenuItems$:fl,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:dn,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$:Dp,doubleForwardAvailable$:h$,previewTrackNotificationVisible:ae(!1),previewTrackActive:at,previewTrackDragInProgress:ei,previewTrackAvailable:Wo,isPreviewTrackHorizontallyAligned:wt},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Oe,slotsApi:Be},actions:{internal:{preload:Gi,firstStart:c=>Jc(c,!1),play:()=>vl(!1),pause:()=>Fs(!1),togglePlay:wn,toggleMuted:ao,openSettingsMenu:Fr,closeSettingsMenu:Ii,openSettingsSubMenu:is,closeSettingsSubMenu:Hr,setVolume:c=>nr(c,!1),setMuted:c=>Io(c,!1),startVolumeChanging:sl,stopVolumeChanging:al,setVideoStream:yo,setAudioStream:c=>xr(c,!1),setQuality:(c,h)=>Uo(c,h,!1),setTrafficSavingEnabled:(c,h)=>co(c,h,!1),setHighQualityEnabled:(c,h)=>ko(c,h,!1),setPlaybackRate:ln,incrementPlaybackRate:ns,decrementPlaybackRate:_s,setSubtitle:c=>Er(c,!1),toggleSubtitle:()=>Xe(!1),togglePictureInPicture:Tn,startScrubbing:po,progressScrubbing:li,completeScrubbing:Bi,toggleChromecast:Op,switchToActiveLive:Hi,switchFromAdsToVideo:Ai,switchFromVideoToAds:pa,skipAd:$i,setLiveWaitingStart:ml,setLiveWaitingRecover:Rp,setLiveWaitingRecord:Yc,getDebugTextData:jc,getTraceTextData:Xc,getDebugPanelData:Np,getVideoElement:fa,seekTime:(c,h,M)=>uo(c,h,M),clearDelayedBufferingCheckTimeout:$n,seekEpisodeStartTime:Pr,seekToPercent:bs,getNextEpisode:eu,seekToNextEpisode:He,getPrevEpisode:fi,seekToPrevEpisode:qo,startLogging:en,stopLogging:hn,startCameraManualRotation:Et,stopCameraManualRotation:Bt,moveCameraFocusPX:W,holdCamera:At,releaseCamera:si,getVideoEpisodes:hd,getPreviewThumbsData:ma,downloadVideo:Bo,addLanguage:Yf,setLanguage:xe,nextMovie:pt,videoRotate:f$,correctSeekTimeToInteractive:ag,replayInteractive:R,setLooped:Ir,reportProblem:an,setAutoplayNextEnabled:os,setTimerNextVideoRunning:qe,prevVideoClick:Lt,nextVideoClick:_i,nextVideoAnnouncementShow:Eo,nextVideoAnnouncementClick:Po,nextVideoAnnouncementAuto:Ho,nextVideoAnnouncementCancel:lo,checkFullscreenSupport:Ot,changeDoubleForwardOn:dg,closePreviewTrack:b$,previewTrackOpened:_$,previewTrackDragStarted:$$,previewTrackDragFinished:y$},external:{firstStart:c=>Jc(c,!0),play:()=>vl(!0),pause:()=>Fs(!0),stop:()=>Zc(!0),seekTime:c=>Sn(c),seekEpisodeStartTime:c=>la(c),setPlaybackRate:c=>da(c),setAutoQualityLimits:c=>Os(c),setMuted:c=>Io(c,!0),toggleSubtitle:()=>Xe(!0),changeSubtitle:Kt,setVolume:c=>nr(c,!0),returnFocusToEpisodes:v$,updateAdditionalSettingsItem:ul,addAdditionalSettingsItem:pl,removeAdditionalSettingsItem:gd,updateAdditionalContextItem:ut,addAdditionalContextItem:ft,removeAdditionalContextItem:Fi,updateAdditionalButton:ll,addAdditionalButton:dl,removeAdditionalButton:vd,setLiveLowLatency:cl,hideControls:()=>ar(!1),showControls:()=>ar(!0),setQuality:c=>Uo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>co(c,"to-video",!0),setHighQualityEnabled:c=>ko(c,"to-video",!0),changeAudioStream:_t}},callbacks:a,setUiCallbacks:c=>{Fe={...c}},getAdmanWrapper:()=>Ce,getLogger:()=>We,getPlayer:()=>P,destroy:g$};return zt};function jn(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=Ls(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var Dx=["disabledControls$","additionalButtons"],Bx=["interactiveTimeIndicator"],ed=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!Dx.includes(r)){let l=o||Bx.includes(r);s.set(jn(t,i,r,l))}}};var cp=async(t,e,i)=>{await ho(),e&&i&&(i.focus(),t.set(!1))};var Fx=Ee('<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 Fm(t){Ze(t,{children:(e,i)=>{var o=Fx();_(e,o)},$$slots:{default:!0}})}function Hm(t,e){H(e,!0);let[i,o]=Ve(),r=()=>x(a,"$contextMenuVisible$",i),s=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=me(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,f=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,b=K(void 0);De(()=>{n(b)&&Pt(()=>{p.set(n(b))})});let y=C=>{let R=ta(C),E=J_(n(b));f.set(E),u.set(R),a.set(!r())},$=()=>{m.set(!0)},S=()=>{m.set(!1)},I=v(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:y,focus:$,blur:S,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(C){N(b,C,!0)},children:(C,R)=>{Fm(C,{})},$$slots:{default:!0}}),U(),o()}var Hx=t=>{t.stopPropagation()},Ux=L("<div><!> <div></div> <div></div></div>"),zx={hash:"s-26",code:'.interactive-episode-icon-animated.s-26{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-26{height:28px;width:28px}.invisible.s-26{opacity:0;visibility:hidden}.fullscreen.s-26:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-26{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-26{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-26{right:16px;top:40px}}@keyframes s-26-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-26{animation:s-26-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-26{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-26{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-26{display:none}'};function bc(t,e){var Y;H(e,!0),q(t,zx);let[i,o]=Ve(),r=()=>x(S,"$isMobile",i),s=()=>x(E,"$areControlsVisible",i),l=()=>x(O,"$currentGridType$",i),d=()=>x(C,"$isInteractiveTime$",i),a=()=>x($,"$interactiveControlsOpacity$",i),u=()=>x(R,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>x(I,"$isFullscreen",i),f=g(e,"ref",15,void 0),p=K(void 0),b=me(),y=So(),{interactiveControlsOpacity$:$}=y,S=b.ui.isMobile,I=b.ui.isFullscreen,C=b.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,E=b.ui.controlsVisible,k=(Y=b.callbacks)==null?void 0:Y.onInteractiveTimeIndicatorClick,O=b.ui.currentGridType$,B=v(()=>!r()&&s()),F=v(()=>As(l(),"s")),z=v(()=>!d()||!!a()||n(B)),G=K(!1);De(()=>{N(G,n(z),!0)});let le=()=>{N(G,!0)},X=()=>{var ie;oe(),(ie=n(p))==null||ie.addEventListener("animationiteration",le,{once:!0})},oe=()=>{var ie;N(G,!1),(ie=n(p))==null||ie.removeEventListener("animationiteration",le)},j=ie=>{R.set(ie)},ve=v(()=>u()&&!n(z));De(()=>{u()?X():oe()});let ce=()=>{n(z)||(R.set(!0),k==null||k())};mn(()=>{R.clearTimeout(),oe()});let re=()=>{R.set(!1)},_e=Q("tooltip_interactive_interaction_time_indicator");var we=Ux();let Z;we.__mousemove=[Hx],we.__click=ce;var Ne=T(we);Vo(Ne,{get tooltipContent(){return _e},get tooltipVisible(){return n(ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:j,get ref(){return f()},set ref(ie){f(ie)},children:(ie,Oe)=>{cc(ie,{completed:!0})},$$slots:{default:!0}});var ue=A(Ne,2);let P;ot(ue,ie=>f(ie),()=>f());var We=A(ue,2);let Ce;ot(We,ie=>N(p,ie),()=>n(p)),w(we),D((ie,Oe,Be)=>{Z=se(we,1,"interactive-episode-icon-animated s-26",null,Z,ie),P=se(ue,1,"ref-block s-26",null,P,Oe),Ce=se(We,1,"pulse s-26",null,Ce,Be)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(F)}),()=>({hidden:n(z)}),()=>({paused:n(G)})]),gt("mouseleave",we,re),_(t,we),U(),o()}rt(["mousemove","click"]);function up(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),s=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 s()},set ref(d){s(d)},children:(d,a)=>{var u=Ae();let m=v(()=>e.buttonComponent);var f=de(u);Vi(f,()=>n(m),(p,b)=>{b(p,Es(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),_(d,u)},$$slots:{default:!0}}),U()}var Ms={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Kx=Ee('<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 sa(t,e){H(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=v(()=>`${vn(e.size)}${n(o)}`),s=v(()=>i()?"prev-icon":"next-icon");Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(s)},get shadow(){return e.shadow},children:(l,d)=>{var a=Kx();_(l,a)},$$slots:{default:!0}}),U()}var qx=L('<div class="icon-background-mobile s-20"><!></div>'),Qx={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 qa(t,e){H(e,!0),q(t,Qx);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=me().ui.t,d=v(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=v(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Ut(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(a)},get ref(){return i()},set ref(m){i(m)},children:(m,f)=>{var p=Ae(),b=de(p);{var y=S=>{var I=qx(),C=T(I);let R=v(()=>e.type==="prev");sa(C,{get size(){return"32"},get reversed(){return n(R)}}),w(I),_(S,I)},$=S=>{let I=v(()=>e.type==="prev");sa(S,{get size(){return"24"},get reversed(){return n(I)}})};V(b,S=>{o()?S(y):S($,!1)})}_(m,p)},$$slots:{default:!0}}),U()}var Gx=Ee('<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 $c(t,e){H(e,!0);let i=v(()=>vn(e.size));Ze(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 s=Gx();_(o,s)},$$slots:{default:!0}}),U()}var wb=require("@vkontakte/videoplayer-shared/es2018");var Yx=L('<div class="icon-background-mobile s-23"></div>'),jx=L("<!> <div><!></div>",1),Xx={hash:"s-23",code:".mobile.s-23{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-23{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 td(t,e){H(e,!0),q(t,Xx);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),s=g(e,"className",3,""),l=g(e,"click",3,wb.noop),d=Q("tooltip_restart"),a=v(()=>`${o()?"btn-m--play":""} ${s()}`);Ut(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ps.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var f=jx(),p=de(f);{var b=C=>{var R=Yx();_(C,R)};V(p,C=>{o()&&C(b)})}var y=A(p,2);let $;var S=T(y);let I=v(()=>o()?"48":"24");$c(S,{get size(){return n(I)}}),w(y),D(C=>$=se(y,1,"s-23",null,$,C),[()=>({mobile:o()})]),_(u,f)},$$slots:{default:!0}}),U()}var Zx=Ee('<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 Vs(t,e){H(e,!0);let i=v(()=>vn(e.size));Ze(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 s=Zx();_(o,s)},$$slots:{default:!0}}),U()}var Sb=require("@vkontakte/videoplayer-shared/es2018");var Jx=L('<div class="icon-background-mobile s-21"><!></div>'),ew={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 id(t,e){H(e,!0),q(t,ew);let[i,o]=Ve(),r=()=>x(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=So(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),a=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),m=g(e,"className",3,""),f=g(e,"click",3,Sb.noop),b=me().ui.t,{toggle:y}=s,$=v(()=>y),S=v(()=>r()!==null),I=v(()=>n(S)?r():a()),C=v(()=>n(I)?b("tooltip_pause"):b("tooltip_play")),R=v(()=>n(I)?Vs:Mn),E=v(()=>`${d()?"btn-m--play":""} ${m()}`),k=v(()=>n(S)?n($):f());Ut(t,{get className(){return n(E)},testId:"play-btn",get click(){return n(k)},get disabled(){return u()},get ariaLabel(){return n(C)},get ariaKeyShortCut(){return ps.KeyK},get ref(){return l()},set ref(O){l(O)},children:(O,B)=>{var F=Ae();let z=v(()=>n(R));var G=de(F);{var le=oe=>{var j=Jx(),ve=T(j);Vi(ve,()=>n(z),(ce,re)=>{re(ce,{get size(){return"48"}})}),w(j),_(oe,j)},X=oe=>{var j=Ae(),ve=de(j);Vi(ve,()=>n(z),(ce,re)=>{re(ce,{get size(){return"24"}})}),_(oe,j)};V(G,oe=>{d()?oe(le):oe(X,!1)})}_(O,F)},$$slots:{default:!0}}),U(),o()}var tw=Ee('<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 Um(t){Ze(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=tw();_(e,o)},$$slots:{default:!0}})}function yc(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),s=Q("tooltip_interactive_go_back"),l=v(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Um(d,{})},$$slots:{default:!0}}),U()}var iw=L('<span class="gutter s-25"><span><!></span></span>'),ow={hash:"s-25",code:".gutter.s-25{--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-25{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-25{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function xc(t,e){H(e,!0),q(t,ow);let[i,o]=Ve(),r=()=>x(a,"$autoplayNextEnabled$",i),s=g(e,"ref",15,void 0),l=me(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},f=d("aria_label_autoplay"),p="16",b="#000",y=v(()=>r()?"true":"false");Ut(t,{click:m,get ariaLabel(){return f},role:"switch",get areaChecked(){return n(y)},get ref(){return s()},set ref($){s($)},children:($,S)=>{var I=iw(),C=T(I);let R;var E=T(C);{var k=B=>{Mn(B,{get size(){return p},fill:b})},O=B=>{Vs(B,{get size(){return p},fill:b})};V(E,B=>{r()?B(k):B(O,!1)})}w(C),w(I),D(B=>R=se(C,1,"toggler s-25",null,R,B),[()=>({enabled:r()})]),_($,I)},$$slots:{default:!0}}),U(),o()}var nw=Ee('<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 zm(t){Ze(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=nw();ui(),_(e,o)},$$slots:{default:!0}})}function wc(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),s=Q("tooltip_interactive_seek"),l=v(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{zm(d,{})},$$slots:{default:!0}}),U()}var rw=Ee('<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>'),sw=Ee('<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 Wm(t,e){let i=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Ze(t,{get testId(){return n(o)},children:(r,s)=>{var l=sw(),d=A(de(l));{var a=u=>{var m=rw();_(u,m)};V(d,u=>{i()&&u(a)})}_(r,l)},$$slots:{default:!0}})}function Sc(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),s=g(e,"graphIsOpened",3,!1),d=me().ui.t,a=v(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Ut(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,f)=>{let p=v(()=>!!s());Wm(m,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),U()}var Km=require("@vkontakte/videoplayer-core/es2018");function Tc(t,e){H(e,!0);let[i,o]=Ve(),r=()=>x(u,"$playbackState$",i),s=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),a=me(),u=a.state.playbackState$,m=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p=v(()=>()=>{if(!l()){m();return}r()===Km.PlaybackState.PAUSED&&f()}),b=v(()=>s()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),$=v(()=>l()&&r()===Km.PlaybackState.PLAYING);Ut(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n($)},get ariaLabel(){return d()},get click(){return n(p)},children:(S,I)=>{ec(S,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}var qm=require("@vkontakte/videoplayer-shared/es2018");var aw=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),lw=L('<img class="icon" aria-hidden="true"/>');function Qa(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=Ae(),s=de(r);{var l=a=>{var u=aw();_(a,u)},d=a=>{var u=lw();D(()=>Re(u,"src",e.icon)),gt("error",u,o),Ca(u),_(a,u)};V(s,a=>{n(i)?a(l):a(d,!1)})}_(t,r)}function Qm(t,e){H(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,qm.noop),r=g(e,"ref",15),s=v(()=>o()===qm.noop),l=v(()=>n(s)||i()),d=v(()=>n(s)?"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(a){r(a)},children:(a,u)=>{let m=v(()=>{var f;return(f=e.testId)!=null?f:e.id});Ut(a,{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:(f,p)=>{Qa(f,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var Tb=t=>!!t.buttonComponent;var Rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var pp=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(jn(t,i,r,o))};var fp=require("@vkontakte/videoplayer-shared/es2018"),Cb=10,Ib=40,Gm=.2,cw=.5,uw=65,pw=114,fw=4,Eb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?uw:pw),r=K(!1),s=K(0),l=K(0),d=v(()=>n(o)+Cb-Ib-fw),a=v(()=>(0,fp.interpolate)(n(s),[Gm,1],[0,-n(d)])),u=v(()=>(0,fp.interpolate)(n(s),[Gm,1],[0,Ib])),m=v(()=>(0,fp.interpolate)(n(s),[Gm,1],[0,n(o)+Cb]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:$=>{var S;N(l,((S=e())==null?void 0:S.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:$=>{if(!n(r))return;let S=Math.max(Math.min($.clientY-n(l),0),-n(d));N(s,Math.abs(S/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(s,n(s)>=cw?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{N(s,0)}}};var mw=t=>t;function vs(t,{delay:e=0,duration:i=400,easing:o=mw}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var vw=L('<span class="root s-2b"> </span>'),gw={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 Ym(t,e){q(t,gw);var i=vw(),o=T(i,!0);w(i),D(()=>pe(o,e.time)),_(t,i)}var hw=L('<div class="tooltip-wrapper s-i"><div><!></div></div>'),_w={hash:"s-i",code:'.tooltip-wrapper.s-i{display:block;position:relative}.tooltip.s-i{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-i: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-i{opacity:1;visibility:visible}'};function jm(t,e){q(t,_w);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),s=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),a=K(void 0),u=K(void 0);function m(S){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),C=I/2;return S<C?C+l():S>e.containerWidth-C?e.containerWidth-C-d():S}let f=v(()=>m(r()));var p=hw(),b=T(p);let y;var $=T(b);oi($,()=>{var S;return(S=e.children)!=null?S:vt}),w(b),ot(b,S=>N(u,S),()=>n(u)),w(p),ot(p,S=>N(a,S),()=>n(a)),D(S=>{Qe(p,`transform: translate(${n(f)}px, ${s()}px);`),y=se(b,1,"tooltip s-i",null,y,S),Qe(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,p)}var Pb=t=>Math.abs(t)/90%4===1;var bw=L('<div class="preview s-j"></div>'),$w=L('<div class="time s-j"> </div>'),yw=L('<div><!> <div class="episode s-j"><!></div> <!></div>'),xw={hash:"s-j",code:".timeline-preview.s-j{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-j{bottom:72px}.preview.s-j{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)}.episode.s-j{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-j,.time.s-j{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-j{color:var(--white)}"};function Xm(t,e){H(e,!0),q(t,xw);let[i,o]=Ve(),r=()=>x(y,"$rotateAlpha",i),s=()=>x($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),a=g(e,"isMobile",3,!1),u=g(e,"videoEpisodes",19,()=>[]),m=g(e,"progress",3,0),f=g(e,"duration",3,0),p=g(e,"isInteractive",3,!1),b=me(),y=b.ui.rotateAlpha,$=b.ui.playerSize,S=K(0),I=K(0),C=K(""),R=K(0),E=K(0),k=K(0),O=K(0),B=v(()=>op(m(),f(),u())),F=v(()=>Zl(r())),z=v(()=>Pb(r())),G=v(oe),le=v(()=>(n(z)?1:-1)*(n(S)/2-n(I)/2)),X=v(()=>n(le)*-1);De(()=>{(Y=>{N(S,Y.width,!0),N(I,Y.height,!0)})(ve())}),De(()=>{(Y=>{N(C,Y.imgSrc,!0),N(R,Y.imgWidth,!0),N(E,Y.imgHeight,!0),N(k,Y.imgOffsetX,!0),N(O,Y.imgOffsetY,!0)})(ce(m()))});function oe(){var Be;let Y=a()?l.MOBILE:l.DESKTOP,{isVertical:ie}=j(),Oe=30;return(Be=n(B))!=null&&Be.text&&(Oe+=16),(ie||n(F))&&(Oe+=18,Oe+=50),Math.min(Math.max(s().height-Oe,0),Y)}function j(){let Y=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,Oe=ie>Y;return{width:Y,height:ie,isHorizontal:!Oe,isVertical:Oe}}function ve(){let{height:Y,isHorizontal:ie,isVertical:Oe,width:Be}=j();return ie&&(Y=Y/Be*n(G),Be=n(G)),Oe&&(Be=Be/Y*n(G),Y=n(G)),{width:Be,height:Y}}function ce(Y){let ie;e.previewThumbsData.isUV?ie=Math.floor(f()*Y/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Y)));let Oe=Math.floor(ie/e.previewThumbsData.countPerImage),Be=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),fe=ie%e.previewThumbsData.countPerRow,ee=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ee=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ee++);let Se=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Se=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Fe=n(S)*Se,Ke=n(I)*ee,Ye=-fe*n(S),Te=-Be*n(I);return{imgSrc:e.previewThumbsData.links[Oe],imgWidth:Fe,imgHeight:Ke,imgOffsetX:Ye,imgOffsetY:Te}}var re=yw();let _e;var we=T(re);{var Z=Y=>{var ie=bw();D(()=>Qe(ie,`width: ${n(S)}px; height: ${n(I)}px; background-image: url(${n(C)}); background-size: ${n(R)}px ${n(E)}px; background-position: ${n(k)}px ${n(O)}px;
61
+ transform: rotate(${r()}deg) ${n(F)?`translate(${n(le)}px, ${n(X)}px)`:""};
62
+ `)),_(Y,ie)};V(we,Y=>{n(C)&&Y(Z)})}var Ne=A(we,2),ue=T(Ne);{var P=Y=>{var ie=Ae(),Oe=de(ie);{var Be=ee=>{var Se=us();D(Fe=>pe(Se,Fe),[()=>Q("tooltip_episode_unfinished")]),_(ee,Se)},fe=ee=>{var Se=us();D(()=>pe(Se,n(B).text||"")),_(ee,Se)};V(Oe,ee=>{p()&&n(B).completed===!1?ee(Be):ee(fe,!1)})}_(Y,ie)};V(ue,Y=>{n(B)&&Y(P)})}w(Ne);var We=A(Ne,2);{var Ce=Y=>{var ie=$w(),Oe=T(ie,!0);w(ie),D(()=>pe(Oe,d())),_(Y,ie)};V(We,Y=>{p()||Y(Ce)})}w(re),D(Y=>{_e=se(re,1,"timeline-preview s-j",null,_e,Y),Qe(re,`width: ${n(F)?n(I):n(S)}px;`)},[()=>({mobile:a()})]),_(t,re),U(),o()}var ww=L('<span class="time s-f"> </span>'),Sw=L("<!> <!>",1),Tw={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 Zm(t,e){var Pe,It,Me,st,mt;H(e,!0),q(t,Tw);let[i,o]=Ve(),r=()=>x(X,"$interactiveEpisodes$",i),s=()=>x(O,"$duration$",i),l=()=>x(k,"$position$",i),d=()=>x(ve,"$isInteractiveExpectation$",i),a=()=>x(j,"$isInteractiveTime$",i),u=()=>x(we,"$previewTrackActive",i),m=()=>x(B,"$isLive$",i),f=()=>x(_e,"$disabledControls$",i),p=()=>x(z,"$isMobile",i),b=()=>x(F,"$isActiveLive$",i),y=()=>x(E,"$bufferedProgress$",i),$=g(e,"showTimeline",3,!1),S=g(e,"withEpisodes",3,!0),I=g(e,"ref",15,void 0),C=me(),R=Mt(),E=C.state.bufferedProgress$,k=C.state.positionWithScrubbing$,O=C.state.duration$,B=C.state.isLive$,F=C.state.isActiveLive$,z=C.ui.isMobile,G=R.features.episodes&&S()?C.actions.internal.getVideoEpisodes():void 0,le=C.actions.internal.getPreviewThumbsData(),X=C.state.interactiveEpisodes$,oe=C.state.isInteractive,j=C.state.isInteractiveTime$,ve=C.state.isInteractiveExpectation$,ce=C.actions.internal.correctSeekTimeToInteractive,re=(Pe=C.callbacks)==null?void 0:Pe.onDisabledTimelineClick,_e=C.ui.controls.disabledControls$,we=C.ui.previewTrackActive,Z=(Me=(It=C.callbacks)==null?void 0:It.uiInfo)==null?void 0:Me.onTimelineMouseEnter,Ne=(mt=(st=C.callbacks)==null?void 0:st.uiInfo)==null?void 0:mt.onTimelineMouseLeave,ue=C.ui.t,P=R.features.interactiveResponsiveUi,We=v(()=>oe?r():G),Ce=v(()=>Jo(s())),Y=v(()=>Jo(l())),ie=v(()=>l()/s()),Oe=v(()=>d()||a()),Be=K(!1),fe=K(""),ee=K(0),Se=K(0),Fe=K(0),Ke=v(()=>({containerWidth:n(Se),translateXPx:n(ee),translateYPx:oe&&le?-36:-16,active:n(Be)&&$()&&!n(Oe)&&!P&&!u(),pointer:!R.features.timelinePreview||!le||m()})),Ye=ue("aria_timeline"),Te=v(()=>ue("aria_timeline_value",{position:n(Y),duration:n(Ce)}));function Le($e){return!ce||!oe?$e:ce($e*s())/s()}function Ue($e,Je){var ze;(ze=e.onSliderPointerDown)==null||ze.call(e,Je),C.actions.internal.startScrubbing(Le($e))}function Vt($e){a()||C.actions.internal.progressScrubbing(Le($e))}function et($e){var Je;C.actions.internal.completeScrubbing(Le($e)),N(Be,!1),(Je=e.onSliderPointerUp)==null||Je.call(e)}function Ot($e,Je,ze){var nt;(nt=e.onSliderPointerEnter)==null||nt.call(e,$e),Zt($e,Je,ze),N(Be,!0)}function Wt($e,Je,ze,nt){var Jt;(Jt=e.onSliderMove)==null||Jt.call(e,nt,$e),Zt($e,Je,ze),N(Be,!0)}function Ct(){var $e;N(Be,!1),($e=e.onSliderLeave)==null||$e.call(e)}function Zt($e,Je,ze){N(Fe,Le($e),!0),N(ee,Je,!0),ze&&N(Se,ze,!0),N(fe,Dt($e),!0)}function Dt($e){let Je=Jo((m()?1-$e:$e)*s());return m()?`-${Je}`:Je}let ye=v(()=>f().has("TIMELINE"));var be=Sw(),J=de(be);jm(J,Es(()=>n(Ke),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:($e,Je)=>{var ze=Ae(),nt=de(ze);{var Jt=pi=>{Xm(pi,{get time(){return n(fe)},get isMobile(){return p()},get videoEpisodes(){return n(We)},get previewThumbsData(){return le},get progress(){return n(Fe)},get duration(){return s()},get isInteractive(){return oe}})},ri=pi=>{var hi=ww(),eo=T(hi,!0);w(hi),D(()=>pe(eo,n(fe))),_(pi,hi)};V(nt,pi=>{R.features.timelinePreview&&le&&!m()?pi(Jt):pi(ri,!1)})}_($e,ze)},$$slots:{default:!0}}));var xe=A(J,2);Wa(xe,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return p()},get ariaLabel(){return Ye},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(Te)},get loadedProgress(){return y()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(We)},onPointerDown:Ue,onHandleMove:Vt,onPointerMove:Wt,onPointerUp:et,onPointerEnter:Ot,onPointerLeave:Ct,get onMouseEnter(){return Z},get onMouseLeave(){return Ne},get onDisabledClick(){return re},get isInteractive(){return oe},get disabled(){return n(ye)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:et,get ref(){return I()},set ref($e){I($e)}}),_(t,be),U(),o()}var Cw={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 Cc(t,e){H(e,!0),q(t,Cw);let[i,o]=Ve(),r=()=>x(a,"$isMobile",i),s=g(e,"position",3,0),l=g(e,"duration",3,0),d=me(),a=d.ui.isMobile,u=d.ui.t,m=v(()=>Jo(l())),f=v(()=>Jo(s())),p=v(()=>s()/l()),b=v(()=>u("aria_timeline_value",{position:n(f),duration:n(m)})),y=v(()=>Math.round(n(p)*100));Wa(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(p)},hideHandel:!0,get squareBorders(){return r()}}),U(),o()}var Iw=L("<div><!></div>"),Ew=L("<div></div>"),Pw={hash:"s-b",code:".timeline.s-b{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-b{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-b{padding:0}.timeline-stub.s-b{min-width:20px;width:100%}.timeline-stub.mobile.s-b{height:8px}"};function Ga(t,e){H(e,!0),q(t,Pw);let[i,o]=Ve(),r=()=>x(S,"$isLive$",i),s=()=>x(R,"$isMobile",i),l=()=>x(E,"$disabled",i),d=()=>x(C,"$adPosition",i),a=()=>x(I,"$adDuration",i),u=g(e,"isAds",3,!1),m=g(e,"isHidden",3,!1),f=g(e,"timelineNotAvailable",3,!1),p=g(e,"needPadding",3,!0),b=g(e,"ref",15,void 0),y=me(),$=Mt(),S=y.state.isLive$,I=y.ads.duration,C=y.ads.position,R=y.ui.isMobile,E=ae(!1),k=v(()=>!f()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var O=Ae(),B=de(O);{var F=G=>{var le=Iw();let X;var oe=T(le);{var j=ce=>{Cc(ce,{get position(){return d()},get duration(){return a()}})},ve=ce=>{Zm(ce,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(k)},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(re){b(re)}})};V(oe,ce=>{u()?ce(j):ce(ve,!1)})}w(le),Is(le,()=>zl(m()&&$.features.usePerformanceFix,E,$.disableInvisibleComponentsTimeout)),D(ce=>X=se(le,1,"timeline s-b",null,X,ce),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),_(G,le)},z=G=>{var le=Ew();let X;D(oe=>X=se(le,1,"timeline-stub s-b",null,X,oe),[()=>({mobile:s()})]),_(G,le)};V(B,G=>{n(k)?G(F):G(z,!1)})}_(t,O),U(),o()}var kb=require("@vkontakte/videoplayer-shared/es2018");var kw=(t,e,i,o,r,s,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),s(l())},Aw=L("<div></div>"),Lw=L('<div><div class="track s-2d"></div></div>'),Mw={hash:"s-2d",code:'.root.s-2d{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2d,.root.vertically-rotated.s-2d{height:var(--preview-track-frame-height-vertical)}.root.s-2d: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-2d{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2d,.track.s-2d{position:absolute}.frame.s-2d{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-2d .frame:where(.s-2d){transform-origin:0 0}.rotate-1.s-2d{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2d{transform:rotate(-180deg)}.rotate-3.s-2d{transform:rotate(-270deg) translateY(-100%)}'};function ev(t,e){H(e,!0),q(t,Mw);let[i,o]=Ve(),r=()=>x(R,"$rotateAlpha",i),s=()=>x($,"$position$",i),l=()=>x(y,"$duration$",i),d=me(),{countPerImage:a=0,countPerRow:u=0,countTotal:m=0,links:f=[],frameHeight:p=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:$}=d.state,{startScrubbing:S,progressScrubbing:I,completeScrubbing:C}=d.actions.internal,R=d.ui.rotateAlpha,E=K(void 0),k=K(!1),O=K(0),B=K(0),F=K(0),z=K(0),G=v(()=>p<=b),le=v(()=>Zl(r())),X=v(()=>n(G)?!n(le):n(le)),oe=114,j=65,ve=3,ce=v(()=>n(X)?oe:j),re=v(()=>n(G)?oe:j),_e=v(()=>n(G)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=v(()=>m*n(ce)),Z=K(0);De(()=>{N(z,Math.ceil(-n(F)/n(ce))-1),N(F,-n(we)*s()/l())});let Ne=()=>{C(ue(),!0)},ue=()=>l()*-n(F)/n(we)/l(),P=!1,We=Te=>{if(!n(k))return!1;let Le=Te.clientX-n(O);N(F,n(B)+Le),N(F,Math.max(Math.min(n(F),0),-n(we)),!0),Math.abs(Le)>1&&(P=!0),I(ue())},Ce=Te=>{n(k)&&(N(k,!1),!P&&Te&&N(F,-(Te.offsetX-n(Z)/2)),P=!1,Ne())},Y=()=>{n(k)&&Ce()},ie=v(()=>a/u),Oe=(Te,Le)=>{if(Te!==f.length-1)return u;let Ue=0,Vt=Le*u;for(let et=1;et<=u;et++)Te*a+Ue+Vt<m&&Ue++;return Ue},Be=v(()=>Math.floor(n(z)/a)),fe=v(()=>(0,kb.getRangeAroundIndex)(3,n(Be),f.length-1)),ee=(Te,Le,Ue)=>{let Vt=a*n(ce);return Te*Vt+Le*n(ce)*u+n(Z)/2-ve/2+Ue*n(ce)},Se=v(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(re)}px`,`--frame-height: ${n(_e)}`].join(";"));var Fe=Lw();let Ke;var Ye=T(Fe);Ye.__pointerdown=[kw,k,O,B,F,S,ue],Ye.__pointermove=We,Ye.__pointerup=Ce,xi(Ye,20,()=>n(fe),Te=>Te,(Te,Le)=>{var Ue=Ae(),Vt=de(Ue);xi(Vt,16,()=>Array.from({length:n(ie)},(et,Ot)=>Ot),et=>et,(et,Ot)=>{var Wt=Ae(),Ct=de(Wt);xi(Ct,16,()=>Array.from({length:Oe(Le,Ot)},(Zt,Dt)=>Dt),Zt=>Zt,(Zt,Dt)=>{var ye=Aw();D((be,J)=>{Qe(ye,be),se(ye,1,J,"s-2d")},[()=>`--row-index: ${Ot}; --column-index: ${Dt}; left: ${ee(Le,Ot,Dt)}px; background-image: url(${f[Le]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),_(Zt,ye)}),_(et,Wt)}),_(Te,Ue)}),w(Ye),w(Fe),ot(Fe,Te=>N(E,Te),()=>n(E)),D(Te=>{Ke=se(Fe,1,"root s-2d",null,Ke,Te),Qe(Fe,n(Se)),Qe(Ye,`transform: translateX(${n(F)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(G),"vertically-rotated":n(le)})]),gt("mouseleave",Ye,Y),An(Fe,"clientWidth",Te=>N(Z,Te)),_(t,Fe),U(),o()}rt(["pointerdown","pointermove","pointerup"]);var Vw=L('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),Rw={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 tv(t,e){H(e,!1),q(t,Rw);let i=340,{ui:{t:o}}=me();wo();var r=Vw(),s=T(r),l=T(s,!0);w(s),w(r),D(d=>pe(l,d),[()=>o("preview_track_close_tooltip")],Cn),Yr(3,r,()=>vs,()=>({duration:i})),_(t,r),U()}var Ab=require("@vkontakte/videoplayer-shared/es2018"),Nw=L('<div class="preview-track-close tooltip s-28"><!></div>'),Ow=L('<div class="preview-track-control s-28"><!> <div class="preview-track-close s-28"><!></div> <!></div>'),Dw=L('<div class="wrapper-preview-track s-28"><!></div>'),Bw=L('<div class="enriched-timeline s-28"><!> <!> <!></div>'),Fw={hash:"s-28",code:".enriched-timeline.s-28{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-28{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-28{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-28{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-28:hover+.tooltip:where(.s-28){opacity:1}.wrapper-preview-track.s-28{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function iv(t,e){H(e,!0),q(t,Fw);let[i,o]=Ve(),r=()=>x($,"$playerSize",i),s=()=>x(y,"$duration$",i),l=()=>x(S,"$previewTrackActive",i),d=()=>x(p,"$position$",i),a=()=>x(b,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),m=me(),f=200,{positionWithScrubbing$:p,isRewindableLive$:b,duration$:y}=m.state,{playerSize:$,previewTrackActive:S}=m.ui,{countPerImage:I=0,links:C=[],frequency:R=0}=m.actions.internal.getPreviewThumbsData()||{},E=v(()=>r().width>100),k=K(!R_()),O=()=>{n(k)&&(V_(),N(k,!1))},B=ce=>{let re=Math.floor(s()*ce/R),_e=Math.floor(re/I),we=(0,Ab.getRangeAroundIndex)(3,_e,C.length-1);for(let Z of we){let Ne=new Image;Ne.src=C[Z]}},F=(ce,re)=>{B(re),!l()&&e.onTimelineMove(ce)};var z=Bw(),G=T(z);{var le=ce=>{var re=Ow(),_e=T(re);let we=v(()=>Jo(d()));Ym(_e,{get time(){return n(we)}});var Z=A(_e,2),Ne=T(Z);ks(Ne,{onClick:()=>m.actions.internal.closePreviewTrack()}),w(Z);var ue=A(Z,2);{var P=We=>{var Ce=Nw(),Y=T(Ce);tv(Y,{}),w(Ce),_(We,Ce)};V(ue,We=>{n(k)&&We(P)})}w(re),gt("mouseleave",Z,O),Yr(3,re,()=>vs,()=>({duration:f})),_(ce,re)};V(G,ce=>{l()&&ce(le)})}var X=A(G,2);let oe=v(()=>!n(E));Ga(X,{get isHidden(){return n(oe)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:F,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:B,get ref(){return u()},set ref(ce){u(ce)}});var j=A(X,2);{var ve=ce=>{var re=Dw(),_e=T(re);ev(_e,{}),w(re),D(()=>Qe(re,`height: ${e.animatedPreviewTrackHeight}px;`)),_(ce,re)};V(j,ce=>{e.previewTrackAvailable&&ce(ve)})}w(z),D(()=>Qe(z,`transform: translateY(${e.animatedOffsetY}px);`)),_(t,z),U(),o()}var Uw=L('<div><!> <div class="controls s-10" data-testid="player_controls"><div class="controls-left s-10"><!> <!> <!></div> <div class="controls-right s-10"></div></div></div> <!>',1),zw={hash:"s-10",code:'.wrapper-bottom.s-10{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-10:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-10>:where(.s-10){pointer-events:auto}.controls.s-10{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-10,.controls-right.s-10{align-content:center;display:flex}.controls-left.s-10{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-10 >:not(:first-child),.controls-right.s-10 >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-10{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-10{transition:none}'};function nv(t,e){var dr,fl;H(e,!0),q(t,zw);let[i,o]=Ve(),r=()=>x(en,"$disabledControls$",i),s=()=>x(ct,"$adPlaybackState",i),l=()=>x(ri,"$playbackState$",i),d=()=>x(to,"$currentSubtitle$",i),a=()=>x(eo,"$isEnded$",i),u=()=>x(No,"$currentGridType$",i),m=()=>x(_o,"$isLive$",i),f=()=>x(je,"$chromecastState$",i),p=()=>x(Ei,"$isPictureInPictureActive",i),b=()=>x(jt,"$pictureInPictureType$",i),y=()=>x(yi,"$availableSubtitlesList$",i),$=()=>x(Bt,"$contextMenuOpenedByKeyboard$",i),S=()=>x(Et,"$showContextMenuBtn$",i),I=()=>x(pt,"$isRewindableLive$",i),C=()=>x(ci,"$isActiveLive$",i),R=()=>x(es,"$graphIsOpened$",i),E=()=>x(hn,"$contextMenuVisible$",i),k=()=>x(Oi,"$isFullscreen",i),O=()=>x(bo,"$autoplayNextEnabled",i),B=()=>x(n(Pi),"$prevButton",i),F=()=>x(n(so),"$replayButton",i),z=()=>x(n(Do),"$playButton",i),G=()=>x(n(Bo),"$nextButton",i),le=()=>x(n(ao),"$playPrevChapterButton",i),X=()=>x(n(Ii),"$seekToInteractiveButton",i),oe=()=>x(n(Fr),"$interactiveGraphButton",i),j=()=>x(n(Hr),"$liveButton",i),ve=()=>x(n(is),"$time",i),ce=()=>x(n(Cr),"$episodes",i),re=()=>x(n(sn),"$vkLogo",i),_e=()=>x(n(nr),"$volume",i),we=()=>x(n(Io),"$subtitles",i),Z=()=>x(n(Fo),"$settings",i),Ne=()=>x(n(Ir),"$context",i),ue=()=>x(n(an),"$fullscreen",i),P=()=>x(n(os),"$chromecast",i),We=()=>x(To,"$additionalDesktopControlPanelRightButtons$",i),Ce=()=>x(Di,"$playerSize",i),Y=()=>x(_n,"$isInteractiveTime$",i),ie=()=>x(ei,"$previewTrackActive",i),Oe=()=>x(St,"$settingsMenuVisible",i),Be=()=>x(lo,"$settingButtonRef$",i),fe=()=>x(W,"$startedByKeyboard$",i),ee=()=>x(pi,"$isAudioAvailable$",i),Se=()=>x(be,"$fakeIsPlaying$",i),Fe=()=>x(hs,"$seekToInteractiveDisabledTooltip$",i),Ke=()=>x(wt,"$isPreviewTrackHorizontallyAligned$",i),Ye=()=>x(ge,"$previewTrackAvailable",i),Te=()=>x(Wo,"$previewTrackDragInProgress",i),Le=()=>x(Yt,"$adPosition",i),Ue=()=>x(Jt,"$position$",i),Vt=()=>x(Tt,"$adDuration",i),et=()=>x(nt,"$duration$",i),Ot=g(e,"playerControlsWrapperRef",15,void 0),Wt=g(e,"playerControlsRef",15,void 0),Ct=g(e,"isAds",3,!1),Zt=g(e,"logoTargetUrl",3,""),Dt=g(e,"isOneVideoPlaylist",3,!1),ye=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:be}=So(),J=me(),xe=So(),Pe=Mt(),It=J.actions.internal.toggleMuted,Me=J.actions.internal.togglePlay,st=J.actions.internal.pause,mt=J.actions.internal.toggleSubtitle,$e=J.actions.internal.checkFullscreenSupport,Je=(dr=J.callbacks)==null?void 0:dr.onAudioDoesNotExistHint,ze=(fl=J.callbacks)==null?void 0:fl.onAudioDisabledHint,nt=J.state.duration$,Jt=J.state.positionWithScrubbing$,ri=J.state.playbackState$,pi=J.state.isAudioAvailable$,hi=J.state.isAudioDisabled,eo=J.state.isEnded$,_o=J.state.isLive$,ci=J.state.isActiveLive$,pt=J.state.isRewindableLive$,{isActive$:Ei,type$:jt}=xe.pictureInPicture$,St=J.ui.settingsMenu.visible$,ii=J.ui.settingsMenu.openedByBtnKeyboard$,Xt=J.ui.controls,ht=J.actions.internal.getVideoEpisodes(),je=J.state.chromecastState$,yi=J.state.availableSubtitlesList$,to=J.state.currentSubtitle$,en=Xt.disabledControls$,hn=J.ui.contextMenu.visible$,Et=J.ui.contextMenu.showContextMenuBtn$,Bt=J.ui.contextMenu.openedByBtnKeyboard$,W=J.ui.startedByKeyboard$,At=J.ui.controlBlocks,si=J.ui.previewTrackNotificationVisible,dt=J.ui.t,Tt=J.ads.duration,Yt=J.ads.position,ct=J.ads.playbackState,Oi=J.ui.isFullscreen,Di=J.ui.playerSize,No=J.ui.currentGridType$,To=J.ui.additionalDesktopControlPanelRightButtons$,bo=J.ui.autoplayNextEnabled$,qi=J.actions.internal.getVideoElement,Nr=J.actions.internal.replayInteractive,io=J.actions.internal.prevVideoClick,oo=J.actions.internal.nextVideoClick,Ci=J.state.isInteractive,_n=J.state.isInteractiveTime$,tn=J.state.showInteractiveGraph,bn=J.state.showSeekToInteractive,_r=J.state.showPlayPrevChapter,br=J.state.showInteractiveTimeIndicator,gs=J.state.playPrevChapterDisabledTooltip,hs=xe.seekToInteractiveDisabledTooltip$,es=xe.graphIsOpened$,Nn=Pe.features.interactiveResponsiveUi,Or=v(()=>r().has("EPISODE_BUTTON")),$n=v(()=>r().has("GRAPH_BUTTON")),$o=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),On=v(()=>r().has("PLAY_BUTTON")),Dn=v(()=>r().has("REPLAY_BUTTON")),$r=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Zn=()=>J.actions.internal.toggleChromecast(),ts=v(()=>Ct()?s()==="playing":l()===Ya.PlaybackState.PLAYING),Dr=v(()=>d().value!=="off"),no=v(()=>a()&&!Ct()||Ci),yr=v(()=>Nn?n(no)&&Xi(u(),"m"):n(no)),Jn=v(()=>!a()||Ci||Ct()),yn=v(()=>Xi(u(),"m")),yo=v(()=>e.showNextPrevButtons&&Xi(u(),"m")&&!Ct()&&e.nextButtonActive),xr=v(()=>e.showNextPrevButtons&&Xi(u(),"m")&&!Ct()&&e.prevButtonActive),Bn=v(()=>!Ct()&&!!m()),_t=v(()=>f()!==Ya.ChromecastState.NOT_AVAILABLE&&!(p()&&b()===1)&&Xi(u(),"m")&&!Ci),ai=v(()=>e.showAutoplayNext&&!Dt()&&Xi(u(),"s")),wr=v(()=>y().length>0&&Xi(u(),"m")),xn=v(()=>$()||S()),Sr=v(()=>Xi(u(),"s")&&!Ct()),Fn=v(()=>!e.logoHidden&&!Ct()),er=v(()=>Pe.features.fullscreen&&$e()&&(e.logoHidden||Xi(u(),Nn?"xs":"s"))&&!(p()&&b()===1)&&(Ci?ye():!0)),on=v(()=>(!m()||Ct())&&!(Pe.features.interactiveHideTime&&Ci)),Hn=v(()=>tn&&Xi(u(),"m")),nn=v(()=>Nn?bn&&Xi(u(),"s"):bn),Un=v(()=>Nn?_r&&Xi(u(),"s"):_r),Co=v(()=>!Ct()&&!m()&&!!(ht!=null&&ht.length)&&n(yn)&&!n(Or)),rn=v(()=>!I()||!!C()),xo=v(()=>R()?dt("tooltip_interactive_graph_on"):dt("tooltip_interactive_graph_off")),tr=v(()=>E()?dt("tooltip_context_menu_close"):dt("tooltip_context_menu_open")),Qi=(ut,ft)=>ut?ft&&ft===Ya.PlaybackState.PAUSED?dt("tooltip_play"):"":dt("tooltip_live"),ir=v(()=>Qi(n(rn),l())),or=v(()=>Pe.logoType==="vk_video"?dt("tooltip_vk_video_logo"):dt("tooltip_vk_logo")),Tr=v(()=>n(Dr)?dt("tooltip_subtitles_on"):dt("tooltip_subtitles_off")),Oo=v(()=>k()?dt("tooltip_fullscreen_on"):dt("tooltip_fullscreen_off")),zn=v(()=>f()===Ya.ChromecastState.CONNECTED?dt("tooltip_chromecast_on"):dt("tooltip_chromecast_off")),Br=v(()=>O()?dt("tooltip_autoplay_on"):dt("tooltip_autoplay_off")),yt=K(0),xt=di({}),ro=di({}),Pi=v(()=>Xt.prevButton),so=v(()=>Xt.replayButton),Do=v(()=>Xt.playButton),Bo=v(()=>Xt.nextButton),ao=v(()=>Xt.playPrevChapterButton),Ii=v(()=>Xt.seekToInteractiveButton),Fr=v(()=>Xt.interactiveGraphButton),Hr=v(()=>Xt.liveButton),is=v(()=>Xt.time),Cr=v(()=>Xt.episodes),sn=v(()=>Xt.vkLogo),nr=v(()=>Xt.volume),Io=v(()=>Xt.subtitles),Fo=v(()=>Xt.settings),Ir=v(()=>Xt.context),an=v(()=>Xt.fullscreen),os=v(()=>Xt.chromecast),qe=v(()=>({prevButton:B()?B().right-B().left:0,replayButton:F()?F().right-F().left:0,playButton:z()?z().right-z().left:0,nextButton:G()?G().right-G().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:X()?X().right-X().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:j()?j().right-j().left:0,time:ve()?ve().right-ve().left:0,episodes:ce()?ce().right-ce().left:0,vkLogo:re()?re().right-re().left:0,volume:_e()?_e().right-_e().left:0,subtitles:we()?we().right-we().left:0,settings:Z()?Z().right-Z().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:P()?P().right-P().left:0,additionalButtons:We().length?We().reduce(ut=>[...ut,40],[]):[]})),Lt=K(0);De(()=>{(!n(Lt)||n(Lt)<n(qe).time)&&Pt(()=>N(Lt,n(qe).time,!0))});let _i=K(!1);De(()=>{let ut=0;n(Co)&&(Xi(u(),"xl")?ut=n(qe).time:ut=60);let ft=n(qe).prevButton+n(qe).playButton+n(qe).nextButton+n(qe).seekToInteractiveButton+n(qe).interactiveGraphButton+n(qe).liveButton+n(Lt)+ut;N(_i,n(on)&&n(yt)>=ft,!0)});let Eo=v(()=>n(_i)&&Xi(u(),"m")),Po=(0,ov.debounceFn)(ed,260),Ho=(0,ov.debounceFn)(pp,260);De(()=>{Ce(),Y(),ie(),Po(qi(),Xt,xt,e.showControls),Ho(qi(),At,ro,e.showControls)}),De(()=>{ro.bottom=Ot()});let lo=ae();De(()=>{Oe(),Be()&&Pt(()=>Kl(Be(),Oe(),ii))});let Gi;De(()=>{fe(),Pt(()=>cp(W,fe(),Gi))});function wn(){ia({isAudioDisabled:hi,isAudioAvailable:ee(),isAds:Ct(),audioIsNotExistHintCallback:Je,audioDisabledHintCallback:ze})&&It()}let Uo=Ci?Nr:Me,co=v(()=>Se()!==null),ko=v(()=>n(co)?Se():n(ts)),rr=v(()=>n(ko)?dt("tooltip_pause"):dt("tooltip_play")),sr=dt("tooltip_episodes"),ln=v(()=>{var ut,ft,Fi,Ko;return n(xr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ms.prevButton,buttonComponent:qa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:io.bind(null,!0)},tooltipEnabled:!((ft=(ut=J.callbacks)==null?void 0:ut.uiInfo)!=null&&ft.onPrevButtonMouseEnter)&&!((Ko=(Fi=J.callbacks)==null?void 0:Fi.uiInfo)!=null&&Ko.onPrevButtonMouseLeave),mouseEnter:()=>{var Hi,$i,Ai;(Ai=($i=(Hi=J.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:$i.onPrevButtonMouseEnter)==null||Ai.call($i,jn(qi(),xt,"prevButton",e.showControls))},mouseLeave:()=>{var Hi,$i,Ai;(Ai=($i=(Hi=J.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:$i.onPrevButtonMouseLeave)==null||Ai.call($i,jn(qi(),xt,"prevButton",e.showControls))},tooltipText:dt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),ns=v(()=>n(yr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ms.replayButton,buttonComponent:td,buttonComponentProps:{disabled:n(Dn),click:Uo},tooltipText:dt("tooltip_restart"),disabled:n(Dn)}:void 0),_s=v(()=>n(Jn)?{id:"playButton",type:"desktop-control-panel-left",weight:Ms.playButton,buttonComponent:id,buttonComponentProps:{disabled:n(On),isPlaying:n(ts),click:Me},tooltipText:n(rr),disabled:n(On)}:void 0),Er=v(()=>{var ut,ft,Fi,Ko;return n(yo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ms.nextButton,buttonComponent:qa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:oo.bind(null,!0)},tooltipEnabled:!((ft=(ut=J.callbacks)==null?void 0:ut.uiInfo)!=null&&ft.onNextButtonMouseEnter)&&!((Ko=(Fi=J.callbacks)==null?void 0:Fi.uiInfo)!=null&&Ko.onNextButtonMouseLeave),mouseEnter:()=>{var Hi,$i,Ai;(Ai=($i=(Hi=J.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:$i.onNextButtonMouseEnter)==null||Ai.call($i,jn(qi(),xt,"nextButton",e.showControls))},mouseLeave:()=>{var Hi,$i,Ai;(Ai=($i=(Hi=J.callbacks)==null?void 0:Hi.uiInfo)==null?void 0:$i.onNextButtonMouseLeave)==null||Ai.call($i,jn(qi(),xt,"nextButton",e.showControls))},tooltipText:dt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Xe=v(()=>Ci&&n(Un)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ms.playPrevChapterButton,buttonComponent:yc,buttonComponentProps:{disabled:n($r),click:e.playPrevChapter},tooltipText:dt("tooltip_interactive_go_back"),disabledTooltipContent:dt(gs),disabled:n($r)}:void 0),Kt=v(()=>Ci&&n(nn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ms.seekToInteractiveButton,buttonComponent:wc,buttonComponentProps:{disabled:n($o),click:e.seekToInteractive},tooltipText:dt("tooltip_interactive_seek"),disabled:n($o),disabledTooltipContent:dt(Fe())}:void 0),wi=v(()=>Ci&&n(Hn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ms.interactiveGraphButton,buttonComponent:Sc,buttonComponentProps:{disabled:n($n),click:es.toggle,graphIsOpened:R()},tooltipText:n(xo)}:void 0),zo=v(()=>n(Bn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ms.liveButton,buttonComponent:Tc,buttonComponentProps:{isLiveActive:n(rn),ariaLabel:n(ir)},tooltipText:n(ir),disabled:n(rn)&&l()===Ya.PlaybackState.PLAYING}:void 0),dn=v(()=>[n(ln),n(ns),n(_s),n(Er),n(Xe),n(Kt),n(wi),n(zo)].filter(ut=>!!ut).sort(Ba)),ar=v(()=>n(Fn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Rs.vkLogo,buttonComponent:fc,buttonComponentProps:{targetUrl:Zt(),logoClickable:e.logoClickable,click:st},tooltipText:n(or),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),uo=v(()=>n(ai)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Rs.autoplayNext,buttonComponent:xc,tooltipText:n(Br)}:void 0),Pr=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Rs.volume,buttonComponent:Pm,buttonComponentProps:{click:wn,isAds:Ct()}})),bs=v(()=>n(wr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Rs.subtitles,buttonComponent:Tm,buttonComponentProps:{isSubtitlesEnabled:n(Dr),click:mt},tooltipText:n(Tr)}:void 0),Sn=v(()=>n(Sr)?{id:"settings",type:"desktop-control-panel-right",weight:Rs.settings,buttonComponent:jl,buttonComponentProps:{ref$:lo},tooltipText:Oe()?void 0:dt("tooltip_settings_off")}:void 0),Os=v(()=>Pe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Rs.context,buttonComponent:Hm,buttonComponentProps:{ariaLabel:dt("aria_label_context_menu")},className:n(xn)?"":"out-of-view",tooltipText:n(tr)}:void 0),la=v(()=>n(er)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Rs.fullscreen,buttonComponent:pc,buttonComponentProps:{isFullscreen:k(),click:e.toggleFullscreen},tooltipText:n(Oo)}:void 0),da=v(()=>n(_t)?{id:"chromecast",type:"desktop-control-panel-right",weight:Rs.chromecast,buttonComponent:vc,buttonComponentProps:{state:f(),click:Zn},tooltipText:n(zn)}:void 0),at=v(()=>[n(ar),n(uo),n(Pr),n(bs),n(Sn),n(Os),n(la),n(da),...We()].filter(ut=>!!ut).sort(Ba)),ei=J.ui.previewTrackActive,Wo=J.ui.previewTrackDragInProgress,ge=J.ui.previewTrackAvailable,wt=J.ui.isPreviewTrackHorizontallyAligned,Qt=v(()=>Eb({onPreviewTrackOpened:J.actions.internal.previewTrackOpened,getTimelineRef:()=>xt.timeline,isHorizontal:Ke()})),bi=v(()=>n(Qt).progressBarY),po=v(()=>n(Qt).controlsY),li=v(()=>n(Qt).onPointerDown),ti=v(()=>n(Qt).onPointerMove),fo=v(()=>n(Qt).onPointerUp),cn=v(()=>n(Qt).calculatedHeight),un=v(()=>n(Qt).closePreviewTrack);De(()=>{ie()?si.set(!1):n(un)()});let Bi;Nt(()=>()=>Bi&&clearTimeout(Bi));let fd=ut=>{ie()||!Ye()||(n(li)(ut),Bi=setTimeout(()=>{J.actions.internal.previewTrackDragStarted()},200))},Ds=()=>{ie()||n(fo)(),Bi&&clearTimeout(Bi),Te()&&J.actions.internal.previewTrackDragFinished()},sl=ut=>{n(ti)(ut),!ie()&&Ye()&&!ie()&&si.set(!0)},al=()=>{si.set(!1)};var Bs=Uw(),Ur=de(Bs);let ca;var lr=T(Ur);{var md=ut=>{let ft=v(()=>n(bi)()),Fi=v(()=>n(cn)());iv(ut,{get animatedOffsetY(){return n(ft)},get animatedPreviewTrackHeight(){return n(Fi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:sl,onTimelinePointerDown:fd,onTimelinePointerUp:Ds,onTimelinePointerLeave:al,get previewTrackAvailable(){return Ye()},get timelineRef(){return xt.timeline},set timelineRef(Ko){xt.timeline=Ko}})};V(lr,ut=>{e.showControls&&ut(md)})}var rs=A(lr,2),Wn=T(rs),ua=T(Wn);xi(ua,17,()=>n(dn),ut=>ut.id,(ut,ft)=>{up(ut,{get buttonComponent(){return n(ft).buttonComponent},get buttonComponentProps(){return n(ft).buttonComponentProps},get tooltipText(){return n(ft).tooltipText},get disabledTooltipContent(){return n(ft).disabledTooltipContent},get disabled(){return n(ft).disabled},get className(){return n(ft).className},get tooltipEnabled(){return n(ft).tooltipEnabled},get mouseEnter(){return n(ft).mouseEnter},get mouseLeave(){return n(ft).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return xt[n(ft).id]},set ref(Fi){xt[n(ft).id]=Fi}})});var ll=A(ua,2);{var dl=ut=>{let ft=v(()=>!e.showControls),Fi=v(()=>Ct()?Le():Ue()),Ko=v(()=>Ct()?Vt():et());dc(ut,{get isHidden(){return n(ft)},isMobile:!1,get showDuration(){return n(Eo)},get position(){return n(Fi)},get duration(){return n(Ko)},get ref(){return xt.time},set ref(Hi){xt.time=Hi}})};V(ll,ut=>{n(on)&&ut(dl)})}var vd=A(ll,2);let cl=v(()=>!n(Co));Vo(vd,{className:"w-max",get disabled(){return n(cl)},get tooltipContent(){return sr},get tooltipVisible(){return e.showControls},get ref(){return xt.episodes},set ref(ut){xt.episodes=ut},children:(ut,ft)=>{var Fi=Ae(),Ko=de(Fi);{var Hi=$i=>{gc($i,{get position(){return Ue()},get duration(){return et()},get timeCodes(){return ht}})};V(Ko,$i=>{n(Co)&&$i(Hi)})}_(ut,Fi)},$$slots:{default:!0}}),w(Wn);var ul=A(Wn,2);xi(ul,21,()=>n(at),ut=>ut.id,(ut,ft)=>{var Fi=Ae(),Ko=de(Fi);{var Hi=Ai=>{up(Ai,{get buttonComponent(){return n(ft).buttonComponent},get buttonComponentProps(){return n(ft).buttonComponentProps},get tooltipText(){return n(ft).tooltipText},get disabledTooltipContent(){return n(ft).disabledTooltipContent},get disabled(){return n(ft).disabled},get className(){return n(ft).className},get tooltipVisible(){return e.showControls},get ref(){return xt[n(ft).id]},set ref(pa){xt[n(ft).id]=pa}})},$i=Ai=>{let pa=v(()=>!!n(ft).disabled);Qm(Ai,{get id(){return n(ft).id},get testId(){return n(ft).testId},get icon(){return n(ft).icon},get ariaLabel(){return n(ft).ariaLabel},get tooltipText(){return n(ft).tooltipText},get disabledTooltipContent(){return n(ft).disabledTooltipContent},get disabled(){return n(pa)},get onClick(){return n(ft).onClick},get disableMouseupTooltipShow(){return n(ft).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return xt[n(ft).id]},set ref(ml){xt[n(ft).id]=ml}})};V(Ko,Ai=>{Tb(n(ft))?Ai(Hi):Ai($i,!1)})}_(ut,Fi)}),w(ul),w(rs),ot(rs,ut=>Wt(ut),()=>Wt()),w(Ur),ot(Ur,ut=>Ot(ut),()=>Ot());var pl=A(Ur,2);{var gd=ut=>{bc(ut,{get ref(){return xt.interactiveTimeIndicator},set ref(ft){xt.interactiveTimeIndicator=ft}})};V(pl,ut=>{br&&ut(gd)})}D((ut,ft)=>{ca=se(Ur,1,"wrapper-bottom s-10",null,ca,ut),Qe(rs,ft),rs.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Te()}),()=>`transform: translateY(${n(po)()}px);`]),An(Wn,"clientWidth",ut=>N(yt,ut)),_(t,Bs),U(),o()}var od=require("@vkontakte/videoplayer-core/es2018");var rv=require("@vkontakte/videoplayer-shared/es2018");var Ww=L('<div class="icon icon-error-stub s-27"><div class="inner s-27"></div></div>'),Kw=L('<img class="icon s-27" aria-hidden="true"/>'),qw={hash:"s-27",code:".icon.s-27{height:24px!important;width:24px!important}.inner.s-27{background-color:var(--white);height:16px;width:16px}"};function sv(t,e){q(t,qw);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,rv.noop),r=v(()=>o()===rv.noop),s=v(()=>n(r)||i()),l=K(!1),d=()=>{N(l,!0)},a=v(()=>n(r)?"btn-full-opacity":"");Ut(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,m)=>{var f=Ae(),p=de(f);{var b=$=>{var S=Ww();_($,S)},y=$=>{var S=Kw();D(()=>Re(S,"src",e.iconUrl)),gt("error",S,d),Ca(S),_($,S)};V(p,$=>{n(l)?$(b):$(y,!1)})}_(u,f)},$$slots:{default:!0}})}var Qw=Ee('<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 av(t){Ze(t,{testId:"muted-icon",children:(e,i)=>{var o=Qw();_(e,o)},$$slots:{default:!0}})}var Lb=require("@vkontakte/videoplayer-shared/es2018");function mp(t,e){H(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Lb.noop),r=g(e,"ref",15,void 0),l=me().ui.t,d=v(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ut(t,{get testId(){return n(a)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var f=Ae(),p=de(f);{var b=$=>{av($,{})},y=$=>{ra($,{get size(){return"24"}})};V(p,$=>{i()?$(b):$(y,!1)})}_(u,f)},$$slots:{default:!0}}),U()}var Gw=Ee('<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>'),Yw=Ee('<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>'),jw=Ee('<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 lv(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Ze(t,{get testId(){return n(o)},children:(r,s)=>{var l=jw(),d=A(de(l));{var a=m=>{var f=Gw();_(m,f)},u=m=>{var f=Yw();_(m,f)};V(d,m=>{i()?m(a):m(u,!1)})}_(r,l)},$$slots:{default:!0}})}var Mb=require("@vkontakte/videoplayer-shared/es2018");function dv(t,e){H(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,Mb.noop),s=Q("menu_pip");Ut(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{lv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}var cv=require("@vkontakte/videoplayer-shared/es2018");var Xw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},Zw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},Jw=L("<div><!></div>"),eS=L("<div><!></div>"),tS=L("<div><!></div>"),iS=L("<!> <!> <!>",1),oS=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),nS=L('<div class="wrapper-middle s-11"><!></div>'),rS=L("<div><!></div> <!> <div><!></div>",1),sS=L('<div aria-hidden="true">·</div> <!>',1),aS=L('<!> <!> <div><div><div class="controls mobile s-11" data-testid="bottom-controls"><div class="controls-group contain s-11"><!> <!> <!> <!></div> <div class="controls-group s-11"><!> <!> <!></div></div> <!></div></div> <!>',1),lS={hash:"s-11",code:".wrapper-bottom.s-11{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-11>:where(.s-11){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-11{height:9px;padding:0 4px 4px}.wrapper-middle.s-11{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-11,.wrapper-top-right.s-11{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-11{right:8px;top:4px}.wrapper-top-left.s-11{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-11,.wrapper-middle-left-second.s-11,.wrapper-middle-right.s-11{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-11{left:12px}.wrapper-middle-left-second.s-11{left:64px}.wrapper-middle-right.s-11{right:12px}.controls.s-11{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-11,.controls-group.s-11{display:flex}.controls-group.contain.s-11{min-width:0}.controls-group.s-11 >:not(:first-child){margin-left:8px}.hidden.s-11{opacity:0;visibility:hidden}.controls-hidden.s-11{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-11{transition:none}.overlay-mobile.s-11{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-11,.wrapper-top-right.fullscreen.s-11{top:16px}.controls-wrapper.fullscreen.s-11{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-11{left:44px;top:12px}.wrapper-top-right.fullscreen.s-11{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-11{left:44px}.wrapper-middle-left-second.fullscreen.s-11{left:96px}.wrapper-middle-right.fullscreen.s-11{right:44px}.controls-wrapper.fullscreen.s-11{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function uv(t,e){var an,os;H(e,!0),q(t,lS);let[i,o]=Ve(),r=()=>x(Di,"$seekToInteractiveDisabledTooltip$",i),s=()=>x(Xt,"$disabledControls$",i),l=()=>x(Dt,"$playbackState$",i),d=()=>x(en,"$adPlaybackState",i),a=()=>x(J,"$isEnded$",i),u=()=>x(Et,"$playerSize",i),m=()=>x(mt,"$scrubbingInProgress",i),f=()=>x(St,"$chromecastState$",i),p=()=>x(Je,"$isPictureInPictureActive",i),b=()=>x(ze,"$pictureInPictureType$",i),y=()=>x($e,"$mobileNotReportControlHidden$",i),$=()=>x(pt,"$chromecastHidden",i),S=()=>x(Wt,"$playerPhase",i),I=()=>x(_o,"$pipHidden",i),C=()=>x(je,"$currentGridType$",i),R=()=>x(hi,"$vkLogoHidden",i),E=()=>x(pi,"$volumeHidden",i),k=()=>x(xe,"$isLive$",i),O=()=>x(nt,"$settingsMenuVisible",i),B=()=>x(st,"$isRewindableLive$",i),F=()=>x(Me,"$isActiveLive$",i),z=()=>x(ye,"$isAudioAvailable$",i),G=()=>x(It,"$muted$",i),le=()=>x(Pe,"$volume$",i),X=()=>x(dt,"$isInteractiveTime$",i),oe=()=>x(nn,"$settingButtonRef$",i),j=()=>x(ht,"$startedByKeyboard$",i),ve=()=>x(hn,"$isFullscreen",i),ce=()=>x(Bt,"$additionalButtons$",i),re=()=>x(eo,"$autoplayNextToggleHidden",i),_e=()=>x(ii,"$crashed$",i),we=()=>x(ci,"$settingsHidden",i),Z=()=>x(No,"$graphIsOpened$",i),Ne=()=>x(to,"$adPosition",i),ue=()=>x(yi,"$adDuration",i),P=()=>x(Zt,"$position$",i),We=()=>x(Ct,"$duration$",i),Ce=g(e,"playerControlsWrapperRef",15,void 0),Y=g(e,"playerControlsRef",15,void 0),ie=g(e,"isAds",3,!1),Oe=g(e,"logoTargetUrl",3,""),Be=g(e,"isOneVideoPlaylist",3,!1),fe=g(e,"customFullscreenSupported",3,!0),ee=me(),Se=So(),Fe=Mt(),Ke=ee.actions.internal.toggleMuted,Ye=ee.actions.internal.togglePlay,Te=ee.actions.internal.pause,Le=ee.actions.internal.prevVideoClick,Ue=ee.actions.internal.nextVideoClick,Vt=ee.actions.internal.checkFullscreenSupport,et=(an=ee.callbacks)==null?void 0:an.onAudioDoesNotExistHint,Ot=(os=ee.callbacks)==null?void 0:os.onAudioDisabledHint,Wt=ee.playerPhase,Ct=ee.state.duration$,Zt=ee.state.positionWithScrubbing$,Dt=ee.state.playbackState$,ye=ee.state.isAudioAvailable$,be=ee.state.isAudioDisabled,J=ee.state.isEnded$,xe=ee.state.isLive$,Pe=ee.state.volume$,It=ee.state.muted$,Me=ee.state.isActiveLive$,st=ee.state.isRewindableLive$,mt=ee.ui.scrubbingInProgress,$e=ee.ui.mobileNotReportControlHidden$,{isActive$:Je,type$:ze}=Se.pictureInPicture$,nt=ee.ui.settingsMenu.visible$,Jt=ee.ui.settingsMenu.openedByBtnKeyboard$,ri=ee.ui.controls,{volume:pi,vkLogo:hi,autoplayNextToggle:eo,pip:_o,settings:ci,chromecast:pt}=ee.ui.hiddenControls,Ei=ee.actions.internal.getVideoEpisodes(),jt=ee.webApi.pictureInPictureApi,St=ee.state.chromecastState$,ii=ee.state.crashed$,Xt=ri.disabledControls$,ht=ee.ui.startedByKeyboard$,je=ee.ui.currentGridType$,yi=ee.ads.duration,to=ee.ads.position,en=ee.ads.playbackState,hn=ee.ui.isFullscreen,Et=ee.ui.playerSize,Bt=ee.ui.additionalButtonsDeprecated$,W=ee.actions.internal.getVideoElement,At=ee.actions.internal.replayInteractive,si=ee.state.isInteractive,dt=ee.state.isInteractiveTime$,Tt=ee.state.showInteractiveGraph,Yt=ee.state.showSeekToInteractive,ct=ee.state.showPlayPrevChapter,Oi=ee.state.showInteractiveTimeIndicator,Di=Se.seekToInteractiveDisabledTooltip$,No=Se.graphIsOpened$,To=ee.ui.controlBlocks,bo=v(()=>Q(ee.state.playPrevChapterDisabledTooltip)),qi=v(()=>Q(r())),Nr=v(()=>s().has("EPISODE_BUTTON")),io=v(()=>s().has("GRAPH_BUTTON")),oo=v(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Ci=v(()=>s().has("PLAY_BUTTON")),_n=v(()=>s().has("REPLAY_BUTTON")),tn=v(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),bn=v(()=>l()===od.PlaybackState.PLAYING),_r=v(()=>d()==="paused"),br=v(()=>a()&&!ie()&&!si),gs=v(()=>!a()||ie()),hs=v(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),es=v(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),Nn=v(()=>u().width>300),Or=v(()=>u().width>400),$n=v(m),$o=v(()=>f()!==od.ChromecastState.NOT_AVAILABLE&&!(p()&&b()===1)&&!y()&&!si&&!$()),On=v(()=>S()==="LiveWaitingStart"),Dn=v(()=>!!jt&&f()!==od.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(On)||!n(On))&&!n($n)&&!si&&!I()),$r=K(!1);Nt(()=>{let qe=jt==null?void 0:jt.info.isActive$.subscribe(Lt=>N($r,Lt,!0));return()=>qe==null?void 0:qe.unsubscribe()});let Zn=v(()=>!n($n)&&Xi(C(),"s")),ts=v(()=>!e.logoHidden&&u().width>350&&!R()),Dr=v(()=>Fe.features.fullscreen&&Vt()&&!(p()&&b()===1)&&(si?fe():!0)&&!n($n)&&!n($r)),no=v(()=>!E()&&!n($n)),yr=v(()=>(!k()||ie())&&u().width>260&&!n($n)&&!(Fe.features.interactiveHideTime&&si)),Jn=v(()=>O()||e.showControls),yn=v(()=>!ie()&&!k()&&!!(Ei!=null&&Ei.length)&&n(Nn)&&!n(Nr)&&!n($n)),yo=v(()=>!B()||!!F()),xr=v(()=>Tt&&Xi(C(),"m")),Bn=v(()=>!z()||G()||le()===0),_t=di({}),ai=di({}),wr=(0,cv.debounceFn)(ed,260),xn=(0,cv.debounceFn)(pp,260);De(()=>{u(),X(),wr(W(),ri,_t,e.showControls),xn(W(),To,ai,e.showControls)});let Sr=()=>ee.actions.internal.toggleChromecast();async function Fn(){jt!=null&&jt.isActive()?await(jt==null?void 0:jt.exit()):await(jt==null?void 0:jt.request())}function er(){ia({isAudioDisabled:be,audioDisabledHintCallback:Ot,isAudioAvailable:z(),audioIsNotExistHintCallback:et,isAds:ie()})&&Ke()}let on=K(""),Hn=(qe,Lt)=>{if(!qe){N(on,Q("tooltip_live"),!0);return}Lt&&Lt===od.PlaybackState.PAUSED&&N(on,Q("tooltip_play"),!0)};De(()=>{Hn(n(yo),l())});let nn=ae();De(()=>{oe()&&Kl(oe(),O(),Jt)}),De(()=>{cp(ht,j(),_t.playButton)});var Un=aS(),Co=de(Un);{var rn=qe=>{var Lt=oS(),_i=de(Lt);let Eo;var Po=A(_i,2);let Ho;ot(Po,at=>ai.topLeft=at,()=>ai==null?void 0:ai.topLeft);var lo=A(Po,2);let Gi;var wn=T(lo);xi(wn,1,ce,({iconUrl:at,ariaLabel:ei,testId:Wo,onClick:ge,tooltip:wt})=>at,(at,ei)=>{let Wo=()=>n(ei).iconUrl,ge=()=>n(ei).ariaLabel,wt=()=>n(ei).testId,Qt=()=>n(ei).onClick,bi=()=>n(ei).tooltip,po=v(()=>{var li;return(li=ge())!=null?li:bi()});sv(at,{get iconUrl(){return Wo()},get ariaLabel(){return n(po)},get testId(){return wt()},get onClick(){return Qt()}})});var Uo=A(wn,2);{var co=at=>{xc(at,{get ref(){return _t.autoplayNextToggle},set ref(ei){_t.autoplayNextToggle=ei}})};V(Uo,at=>{e.showAutoplayNext&&!Be()&&!re()&&at(co)})}var ko=A(Uo,2);{var rr=at=>{vc(at,{isMobile:!0,click:Sr,get state(){return f()},get ref(){return _t.chromecast},set ref(ei){_t.chromecast=ei}})};V(ko,at=>{n($o)&&at(rr)})}var sr=A(ko,2);{var ln=at=>{dv(at,{click:Fn,get isPictureInPictureActive(){return p()},get ref(){return _t.pip},set ref(ei){_t.pip=ei}})};V(sr,at=>{n(Dn)&&at(ln)})}var ns=A(sr,2);{var _s=at=>{jl(at,{get ref$(){return nn}})};V(ns,at=>{_e()&&!we()&&at(_s)})}var Er=A(ns,2);{var Xe=at=>{fc(at,{get click(){return Te},get targetUrl(){return Oe()},get logoClickable(){return e.logoClickable},get ref(){return _t.vkLogo},set ref(ei){_t.vkLogo=ei}})};V(Er,at=>{n(ts)&&at(Xe)})}w(lo),ot(lo,at=>ai.topRight=at,()=>ai==null?void 0:ai.topRight);var Kt=A(lo,2);let wi;var zo=T(Kt);{var dn=at=>{let ei=v(()=>Le.bind(null,!0));qa(at,{get click(){return n(ei)},type:"prev",isMobile:!0,get ref(){return _t.prevButton},set ref(Wo){_t.prevButton=Wo}})};V(zo,at=>{n(hs)&&at(dn)})}var ar=A(zo,2);{var uo=at=>{id(at,{get disabled(){return n(Ci)},get click(){return Ye},isMobile:!0,get isPlaying(){return n(bn)},get ref(){return _t.playButton},set ref(ei){_t.playButton=ei}})};V(ar,at=>{n(gs)&&at(uo)})}var Pr=A(ar,2);{var bs=at=>{td(at,{get disabled(){return n(_n)},get click(){return Ye},isMobile:!0,get ref(){return _t.replayButton},set ref(ei){_t.replayButton=ei}})};V(Pr,at=>{n(br)&&at(bs)})}var Sn=A(Pr,2);{var Os=at=>{let ei=v(()=>Ue.bind(null,!0));qa(at,{get click(){return n(ei)},type:"next",isMobile:!0,get ref(){return _t.nextButton},set ref(Wo){_t.nextButton=Wo}})};V(Sn,at=>{n(es)&&at(Os)})}w(Kt),ot(Kt,at=>ai.middle=at,()=>ai==null?void 0:ai.middle);var la=A(Kt,2);{var da=at=>{var ei=iS(),Wo=de(ei);{var ge=li=>{var ti=Jw();let fo;ti.__click=[Xw,tn,e,bo];var cn=T(ti);let un=v(()=>!e.showControls);yc(cn,{get hidden(){return n(un)},get disabled(){return n(tn)},get click(){return e.playPrevChapter},get ref(){return _t.playPrevChapterButton},set ref(Bi){_t.playPrevChapterButton=Bi}}),w(ti),D(Bi=>fo=se(ti,1,"wrapper-middle-left s-11",null,fo,Bi),[()=>({fullscreen:ve(),hidden:!e.showControls})]),_(li,ti)};V(Wo,li=>{ct&&li(ge)})}var wt=A(Wo,2);{var Qt=li=>{var ti=eS();let fo;var cn=T(ti);let un=v(()=>!e.showControls&&!Z());Sc(cn,{get hidden(){return n(un)},get disabled(){return n(io)},get click(){return No.toggle},get graphIsOpened(){return Z()},get ref(){return _t.interactiveGraphButton},set ref(Bi){_t.interactiveGraphButton=Bi}}),w(ti),D(Bi=>fo=se(ti,1,Hd(ct?"wrapper-middle-left-second":"wrapper-middle-left"),"s-11",fo,Bi),[()=>({fullscreen:ve(),hidden:!e.showControls&&!Z()})]),_(li,ti)};V(wt,li=>{n(xr)&&li(Qt)})}var bi=A(wt,2);{var po=li=>{var ti=tS();let fo;ti.__click=[Zw,oo,e,qi];var cn=T(ti);let un=v(()=>!e.showControls);wc(cn,{get hidden(){return n(un)},get disabled(){return n(oo)},get click(){return e.seekToInteractive},get ref(){return _t.seekToInteractiveButton},set ref(Bi){_t.seekToInteractiveButton=Bi}}),w(ti),D(Bi=>fo=se(ti,1,"wrapper-middle-right s-11",null,fo,Bi),[()=>({fullscreen:ve(),hidden:!e.showControls})]),_(li,ti)};V(bi,li=>{Yt&&li(po)})}_(at,ei)};V(la,at=>{si&&!m()&&at(da)})}D((at,ei,Wo,ge)=>{Eo=se(_i,1,"overlay-mobile s-11",null,Eo,at),Ho=se(Po,1,"wrapper-top-left s-11",null,Ho,ei),Gi=se(lo,1,"wrapper-top-right s-11",null,Gi,Wo),wi=se(Kt,1,"wrapper-middle s-11",null,wi,ge)},[()=>({hidden:!n(Jn)}),()=>({hidden:!e.showControls,fullscreen:ve()}),()=>({hidden:!e.showControls&&!y(),fullscreen:ve()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),_(qe,Lt)};V(Co,qe=>{ie()||qe(rn)})}var xo=A(Co,2);{var tr=qe=>{var Lt=rS(),_i=de(Lt);let Eo;var Po=T(_i);mp(Po,{get muted(){return G()},click:er,get ref(){return _t.volume},set ref(co){_t.volume=co}}),w(_i);var Ho=A(_i,2);{var lo=co=>{var ko=nS(),rr=T(ko);let sr=v(()=>!n(_r));id(rr,{get disabled(){return n(Ci)},get click(){return Ye},isMobile:!0,get isPlaying(){return n(sr)},get ref(){return _t.playButton},set ref(ln){_t.playButton=ln}}),w(ko),_(co,ko)};V(Ho,co=>{n(_r)&&co(lo)})}var Gi=A(Ho,2);let wn;var Uo=T(Gi);Cc(Uo,{get position(){return Ne()},get duration(){return ue()}}),w(Gi),D((co,ko)=>{Eo=se(_i,1,"wrapper-top-right s-11",null,Eo,co),wn=se(Gi,1,"wrapper-bottom ads-timeline-mobile s-11",null,wn,ko)},[()=>({fullscreen:ve()}),()=>({fullscreen:ve()})]),_(qe,Lt)};V(xo,qe=>{ie()&&d()!=="inactive"&&qe(tr)})}var Qi=A(xo,2);let ir;var or=T(Qi);let Tr;var Oo=T(or),zn=T(Oo),Br=T(zn);{var yt=qe=>{Vo(qe,{get disabled(){return n(_n)},get ref(){return _t.replayButton},set ref(Lt){_t.replayButton=Lt},children:(Lt,_i)=>{td(Lt,{get disabled(){return n(_n)},get click(){return At}})},$$slots:{default:!0}})};V(Br,qe=>{si&&qe(yt)})}var xt=A(Br,2);{var ro=qe=>{Vo(qe,{get ref(){return _t.liveButton},set ref(Lt){_t.liveButton=Lt},children:(Lt,_i)=>{Tc(Lt,{get isLiveActive(){return n(yo)},isMobile:!0,get ariaLabel(){return n(on)}})},$$slots:{default:!0}})};V(xt,qe=>{!ie()&&k()&&qe(ro)})}var Pi=A(xt,2);{var so=qe=>{let Lt=v(()=>ie()?Ne():P()),_i=v(()=>ie()?ue():We()),Eo=v(()=>!e.showControls);dc(qe,{get showDuration(){return n(Or)},get position(){return n(Lt)},get duration(){return n(_i)},isMobile:!0,get isHidden(){return n(Eo)},get ref(){return _t.time},set ref(Po){_t.time=Po}})};V(Pi,qe=>{n(yr)&&qe(so)})}var Do=A(Pi,2);let Bo=v(()=>!n(yn));Vo(Do,{className:"w-max",get disabled(){return n(Bo)},get ref(){return _t.episodes},set ref(qe){_t.episodes=qe},children:(qe,Lt)=>{var _i=Ae(),Eo=de(_i);{var Po=Ho=>{var lo=sS(),Gi=A(de(lo),2);gc(Gi,{get position(){return P()},get duration(){return We()},get timeCodes(){return Ei}}),_(Ho,lo)};V(Eo,Ho=>{n(yn)&&Ho(Po)})}_(qe,_i)},$$slots:{default:!0}}),w(zn),ot(zn,qe=>ai.bottomLeft=qe,()=>ai==null?void 0:ai.bottomLeft);var ao=A(zn,2),Ii=T(ao);{var Fr=qe=>{Vo(qe,{get ref(){return _t.volume},set ref(Lt){_t.volume=Lt},children:(Lt,_i)=>{mp(Lt,{get muted(){return n(Bn)},click:er})},$$slots:{default:!0}})};V(Ii,qe=>{n(no)&&qe(Fr)})}var Hr=A(Ii,2);{var is=qe=>{Vo(qe,{get ref(){return _t.settings},set ref(Lt){_t.settings=Lt},children:(Lt,_i)=>{jl(Lt,{get ref$(){return nn}})},$$slots:{default:!0}})};V(Hr,qe=>{n(Zn)&&qe(is)})}var Cr=A(Hr,2);{var sn=qe=>{Vo(qe,{get ref(){return _t.fullscreen},set ref(Lt){_t.fullscreen=Lt},children:(Lt,_i)=>{pc(Lt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ve()}})},$$slots:{default:!0}})};V(Cr,qe=>{n(Dr)&&qe(sn)})}w(ao),ot(ao,qe=>ai.bottomRight=qe,()=>ai==null?void 0:ai.bottomRight),w(Oo),ot(Oo,qe=>Y(qe),()=>Y());var nr=A(Oo,2);let Io=v(()=>!e.showControls);Ga(nr,{get isHidden(){return n(Io)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return B()},get ref(){return _t.timeline},set ref(qe){_t.timeline=qe}}),w(or),ot(or,qe=>ai.bottom=qe,()=>ai==null?void 0:ai.bottom),w(Qi),ot(Qi,qe=>Ce(qe),()=>Ce());var Fo=A(Qi,2);{var Ir=qe=>{bc(qe,{get ref(){return _t.interactiveTimeIndicator},set ref(Lt){_t.interactiveTimeIndicator=Lt}})};V(Fo,qe=>{Oi&&qe(Ir)})}D((qe,Lt)=>{ir=se(Qi,1,"wrapper-bottom mobile s-11",null,ir,qe),Tr=se(or,1,"controls-wrapper s-11",null,Tr,Lt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ve()})]),_(t,Un),U(),o()}rt(["click"]);function Ic(t,e){H(e,!0);let[i,o]=Ve(),r=()=>x(I,"$isMobile",i),s=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),a=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),m=g(e,"showAutoplayNext",3,!1),f=g(e,"isOneVideoPlaylist",3,!1),p=g(e,"customFullscreenSupported",3,!0),b=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,pv.noop),$=g(e,"onDisabledSeekToInteractiveClick",3,pv.noop),I=me().ui.isMobile,C=K(!1);Nt(()=>{let O=setTimeout(()=>N(C,!0),0);return()=>clearTimeout(O)});var R=Ae(),E=de(R);{var k=O=>{var B=Ae(),F=de(B);{var z=le=>{uv(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return f()},get customFullscreenSupported(){return p()},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(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},G=le=>{nv(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return f()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})};V(F,le=>{r()?le(z):le(G,!1)})}_(O,B)};V(E,O=>{n(C)&&O(k)})}_(t,R),U(),o()}var dS=Ee('<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 Ec(t,e){H(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${vn(e.size)}${n(i)}`);Ze(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,s)=>{var l=dS();_(r,l)},$$slots:{default:!0}}),U()}var cS=Ee('<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 fv(t,e){H(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=v(()=>`seek-icon-${i()?"backward":"forward"}`);Ze(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:(s,l)=>{var d=cS();_(s,d)},$$slots:{default:!0}}),U()}var uS=L('<span class="hot-key-helpers-text s-16"> </span>'),pS=L('<div data-testid="hotkey-helper-icon" class="s-16"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),fS=L("<div><!></div>"),mS={hash:"s-16",code:'.hot-key-helpers-container.s-16{align-items:center;animation:s-16-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-16{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-16{left:calc(75% - 100px)}.hot-key-helpers-text.s-16{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-16{animation:s-16-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-16-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-16-fadeOut{0%{opacity:1}to{opacity:0}}'};function mv(t,e){H(e,!0),q(t,mS);let[i,o]=Ve(),r=()=>x(e.data,"$data",i),s=me(),{features:l}=Mt(),d=s.ui.t,a=v(()=>!r()),u=v(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=v(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),f=v(()=>{var I;return(I=r())==null?void 0:I.type}),p=v(()=>{var I,C;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(C=r())==null?void 0:C.text});var b=fS();let y;var $=T(b);{var S=I=>{var C=pS(),R=de(C),E=T(R);{var k=Y=>{let ie=v(()=>n(f)==="BACKWARD_SEEK");fv(Y,{get reversed(){return n(ie)},shadow:!0})};V(E,Y=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(f))&&Y(k)})}var O=A(E,2);{var B=Y=>{Vs(Y,{get size(){return"48"},shadow:!0})};V(O,Y=>{n(f)==="PAUSE"&&!l.playbackStatusShow&&Y(B)})}var F=A(O,2);{var z=Y=>{Mn(Y,{get size(){return"48"},shadow:!0})};V(F,Y=>{n(f)==="PLAY"&&!l.playbackStatusShow&&Y(z)})}var G=A(F,2);{var le=Y=>{$c(Y,{get size(){return"48"},shadow:!0})};V(G,Y=>{n(f)==="REPLAY"&&!l.playbackStatusShow&&Y(le)})}var X=A(G,2);{var oe=Y=>{na(Y,{get size(){return"48"},type:"off",shadow:!0})};V(X,Y=>{n(f)==="SUBTITLES_OFF"&&Y(oe)})}var j=A(X,2);{var ve=Y=>{na(Y,{get size(){return"48"},shadow:!0})};V(j,Y=>{n(f)==="SUBTITLES_ON"&&Y(ve)})}var ce=A(j,2);{var re=Y=>{let ie=v(()=>n(f)==="RATE_DOWN");Ec(Y,{get size(){return"48"},get reversed(){return n(ie)},testId:"rate-change-icon",shadow:!0})};V(ce,Y=>{["RATE_DOWN","RATE_UP"].includes(n(f))&&Y(re)})}var _e=A(ce,2);{var we=Y=>{let ie=v(()=>n(f)==="EPISODE_PREV");sa(Y,{get size(){return"48"},get reversed(){return n(ie)},shadow:!0})};V(_e,Y=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(f))&&Y(we)})}var Z=A(_e,2);{var Ne=Y=>{ra(Y,{get size(){return"48"},volume:0,shadow:!0})};V(Z,Y=>{n(f)==="MUTE"&&Y(Ne)})}var ue=A(Z,2);{var P=Y=>{ra(Y,{get size(){return"48"},volume:1,shadow:!0})};V(ue,Y=>{n(f)==="VOLUME"&&Y(P)})}w(R);var We=A(R,2);{var Ce=Y=>{var ie=uS(),Oe=T(ie,!0);w(ie),D(()=>pe(Oe,n(p))),_(Y,ie)};V(We,Y=>{n(p)&&Y(Ce)})}D(()=>Re(R,"data-type",n(f))),_(I,C)};V($,I=>{!n(a)&&n(f)&&I(S)})}w(b),D(I=>y=se(b,1,"hot-key-helpers-container s-16",null,y,I),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),_(t,b),U(),o()}var vS=(t,e,i,o,r,s)=>{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":s();break}},gS=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},hS=L('<div tabindex="0" role="button"><div class="button-block s-s" aria-hidden="true"><div class="button-row s-s"><div class="button button-up s-s"><!></div> <div class="button button-right s-s"><!></div></div> <div class="button-row s-s"><div class="button button-left s-s"><!></div> <div class="button button-down s-s"><!></div></div></div></div>'),_S={hash:"s-s",code:".immersive-controls.s-s{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-s{left:20px;top:50px}.button-block.s-s{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-s{display:flex;flex-direction:row;position:relative}.button.s-s{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-s svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-s svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-s svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-s svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-s svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-s:hover svg{opacity:1}"};function Pc(t,e){H(e,!0),q(t,_S);let i=g(e,"isShifted",3,!1),o=me(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=Q("aria_label_spherical_control");var f=hS();let p;f.__keydown=[vS,r,s,l,a,d],f.__keyup=[gS,r,u];var b=T(f),y=T(b),$=T(y);$.__mousedown=s,$.__mouseup=u;var S=T($);Vr(S,{direction:"up",useBtnColor:!0}),w($);var I=A($,2);I.__mousedown=d,I.__mouseup=u;var C=T(I);Vr(C,{direction:"up",useBtnColor:!0}),w(I),w(y);var R=A(y,2),E=T(R);E.__mousedown=a,E.__mouseup=u;var k=T(E);Vr(k,{direction:"up",useBtnColor:!0}),w(E);var O=A(E,2);O.__mousedown=l,O.__mouseup=u;var B=T(O);Vr(B,{direction:"up",useBtnColor:!0}),w(O),w(R),w(b),w(f),D(F=>{p=se(f,1,"immersive-controls s-s",null,p,F),Re(f,"aria-label",m)},[()=>({"m-shifted":i()})]),gt("mouseleave",$,u),gt("mouseleave",I,u),gt("mouseleave",E,u),gt("mouseleave",O,u),_(t,f),U()}rt(["keydown","keyup","mousedown","mouseup"]);var Ns=require("@vkontakte/videoplayer-shared/es2018");var Vb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var vp=class{constructor(){this.flickeringTimeout=Vb(1e3);this.subscriptions=new Ns.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ns.ValueSubject([]);this.captionsPrepared$=new Ns.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ns.filter)(()=>this.isEnabled()),(0,Ns.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:s,value:l},d)=>(o&&!d||(s==="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 bS=L('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),$S=L('<span class="caption-line s-c"><span class="caption-segment s-c"></span></span>'),yS=L('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),xS=L('<div><span class="caption s-c"><!></span></div>'),wS=L("<div><!></div>"),SS={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 Xa(t,e){H(e,!0),q(t,SS);let[i,o]=Ve(),r=()=>x(p,"$currentSubtitle$",i),s=()=>x(y,"$isLive$",i),l=()=>x($,"$isFullscreen",i),d=()=>x(S,"$previewTrackActive",i),a=()=>x(b,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),m=me(),f=Mt(),p=m.state.currentSubtitle$,b=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,$=m.ui.isFullscreen,S=m.ui.previewTrackActive,I=v(()=>!!r().isAuto),C=v(()=>!!s()),R=v(()=>e.playerSize.width*.02),E=v(()=>u()&&!l()||n(R)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:n(R)),k=K(null);De(()=>{var X,oe,j;(X=n(k))==null||X.setIsAuto(n(I)),(oe=n(k))==null||oe.setIsLive(n(C)),(j=n(k))==null||j.setCaptions(e.captions)});let O=K(di([[]]));Nt(()=>{N(k,new vp().subscribe(),!0);let X=n(k).captionsPrepared$.subscribe(oe=>{N(O,oe,!0)});return()=>{var oe;(oe=n(k))==null||oe.destroy(),X.unsubscribe()}}),Nt(()=>{if(n(I)){let X=window.setTimeout(()=>{b.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else b.set(!1)});let B=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var F=wS();let z;var G=T(F);{var le=X=>{var oe=xS();let j;var ve=T(oe),ce=T(ve);{var re=we=>{var Z=bS(),Ne=T(Z),ue=T(Ne,!0);w(Ne),w(Z),D(P=>{var We;Qe(Ne,`font-size: ${(We=n(E))!=null?We:""}px`),pe(ue,P)},[()=>Q("subtitles_auto_caption")]),_(we,Z)},_e=(we,Z)=>{{var Ne=P=>{var We=Ae(),Ce=de(We);xi(Ce,17,()=>n(O),Bd,(Y,ie)=>{var Oe=$S(),Be=T(Oe);xi(Be,21,()=>n(ie),({value:fe,timeAppeared:ee})=>ee,(fe,ee)=>{let Se=()=>n(ee).value,Fe=()=>n(ee).timeAppeared;var Ke=Ae(),Ye=de(Ke);{var Te=Le=>{var Ue=us();D(()=>pe(Ue,Se())),_(Le,Ue)};V(Ye,Le=>{(!Fe()||Fe()<=e.position)&&Le(Te)})}_(fe,Ke)}),w(Be),w(Oe),D(()=>{var fe;return Qe(Be,`font-size: ${(fe=n(E))!=null?fe:""}px`)}),_(Y,Oe)}),_(P,We)},ue=P=>{var We=Ae(),Ce=de(We);xi(Ce,17,()=>e.captions,({value:Y})=>Y,(Y,ie)=>{let Oe=()=>n(ie).value;var Be=yS(),fe=T(Be),ee=T(fe,!0);w(fe),w(Be),D(()=>{var Se;Qe(fe,`font-size: ${(Se=n(E))!=null?Se:""}px`),pe(ee,Oe())}),_(Y,Be)}),_(P,We)};V(we,P=>{var We;n(I)&&((We=n(O))!=null&&We.length)?P(Ne):P(ue,!1)},Z)}};V(ce,we=>{n(I)&&a()?we(re):we(_e,!1)})}w(ve),w(oe),D(we=>{var Z;j=se(oe,1,"subtitles-caption s-c",null,j,we),Qe(oe,`--subtitles-caption-margin: ${(Z=n(B))!=null?Z:""}%`)},[()=>({mobile:u()})]),_(X,oe)};V(G,X=>{var oe;(e.captions.length||(oe=n(O))!=null&&oe.length)&&X(le)})}w(F),D(X=>z=se(F,1,"subtitles-container s-c",null,z,X),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(C)&&!a()})]),_(t,F),U(),o()}var Rb=require("@vkontakte/videoplayer-core/es2018");var TS=L('<div class="text s-t"> </div>'),CS=L('<div><div class="icon_wrapper s-t"><!></div> <!></div>'),IS={hash:"s-t",code:".wrapper.s-t{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-t{background-size:cover}.icon_wrapper.s-t{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-t{margin-top:20px}"};function kc(t,e){H(e,!0),q(t,IS);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Mt();var r=CS();let s;var l=T(r),d=T(l);mc(d,{get size(){return"48"},get iconState(){return Rb.ChromecastState.CONNECTED}}),w(l);var a=A(l,2);{var u=m=>{var f=TS(),p=T(f);w(f),D(()=>{var b;return pe(p,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),_(m,f)};V(a,m=>{i()&&m(u)})}w(r),D(m=>{s=se(r,1,"wrapper s-t",null,s,m),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})]),_(t,r),U()}var ES=Ee('<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 vv(t){Ze(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=ES();_(e,o)},$$slots:{default:!0}})}var PS=L('<div class="container s-5"><!></div>'),kS={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 Za(t){q(t,kS);var e=PS(),i=T(e);vv(i,{}),w(e),_(t,e)}var AS=L('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),LS=L('<div data-testid="unstarted-thumb"><!></div>'),MS={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 Ja(t,e){H(e,!0),q(t,MS);let i=g(e,"iconVisible",3,!0),o=me(),r=Mt(),s=o.ui.startedByKeyboard$,l=Q("tooltip_play"),d=b=>{var $;let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),s.set(!0),($=e.startVideo)==null||$.call(e))},a=b=>{var y,$;b.stopPropagation(),(y=e.startVideo)==null||y.call(e),($=e.onClick)==null||$.call(e,b)};var u=LS();let m;u.__click=a,u.__contextmenu=function(...b){var y;(y=e.onContextMenu)==null||y.apply(this,b)};var f=T(u);{var p=b=>{var y=AS();y.__keydown=d;var $=A(T(y),2);Mn($,{get size(){return"48"}}),w(y),D(()=>Re(y,"aria-label",l)),_(b,y)};V(f,b=>{i()&&b(p)})}return w(u),D(b=>{m=se(u,1,"container s-a",null,m,b),Qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),_(t,u),U({handlePressKey:d,handleClick:a})}rt(["click","contextmenu","keydown"]);var VS=L('<div data-testid="video_title"><span> </span></div>'),RS={hash:"s-1b",code:".title.s-1b{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;color:var(--white);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}.hidden.s-1b{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function gv(t,e){H(e,!0),q(t,RS);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),s=K(void 0);Nt(()=>{var f;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function m(p){var b;p.propertyName==="transform"&&((b=e.onVisibilityChanged)==null||b.call(e,!o()))}return(f=n(s))==null||f.addEventListener("transitionend",m),()=>{var p;return(p=n(s))==null?void 0:p.removeEventListener("transitionend",m)}});var l=VS();let d;var a=T(l),u=T(a,!0);w(a),ot(a,m=>r(m),()=>r()),w(l),ot(l,m=>N(s,m),()=>n(s)),D(m=>{d=se(l,1,"title s-1b",null,d,m),pe(u,i())},[()=>({hidden:o()})]),_(t,l),U()}var Nb=require("@vkontakte/videoplayer-shared/es2018");var NS=L('<div class="timer__cell cell s-13"><span class="cell__value s-13"> </span> <span class="cell__unit s-13"> </span></div> <span class="timer__points s-13"> </span>',1),OS=L('<div class="timer__cell cell s-13"><span class="cell__value s-13"> </span> <span class="cell__unit s-13"> </span></div> <span class="timer__points s-13"> </span>',1),DS=L('<div class="timer__cell cell s-13"><span class="cell__value s-13"> </span> <span class="cell__unit s-13"> </span></div> <span class="timer__points s-13"> </span>',1),BS=L('<div class="timer__cell cell s-13"><span class="cell__value s-13"> </span> <span class="cell__unit s-13"> </span></div>'),FS=L("<div><!> <!> <!> <!></div>"),HS={hash:"s-13",code:".timer__container.s-13{align-items:flex-start;display:flex;justify-content:center}.cell.s-13{align-items:center;display:flex;flex-direction:column}.cell__value.s-13{font-size:48px;font-weight:600;line-height:1.2}.small.s-13 .cell__value:where(.s-13){font-size:24px}.cell__unit.s-13{font-size:14px;font-weight:400;line-height:1.2}.small.s-13 .cell__unit:where(.s-13){font-size:12px}.timer__points.s-13{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-13 .timer__points:where(.s-13){font-size:20px}"};function hv(t,e){H(e,!0),q(t,HS);let i=K(""),o=K(""),r=K(""),s=K(""),l,d=32,a=d/2,u=F=>String(F).padStart(2,"0"),m=F=>Math.max(F.length,1),f=F=>`${(e.isSmallSize?a:d)*m(F)}px`,p=F=>{let z=Math.floor(F/86400);z&&(F-=z*86400,N(i,u(z),!0));let G=Math.floor(F/3600);N(o,u(G),!0);let le=Math.floor(F/60)%60;N(r,u(le),!0);let X=F%60;N(s,u(X),!0)},b=()=>{let F=Math.floor(Date.now()/1e3),z=e.startTime-F;p(z),z>=1?l=requestAnimationFrame(b):e.onTimerOver()};Nt(()=>{l=requestAnimationFrame(b)}),mn(()=>{cancelAnimationFrame(l)});var y=FS();let $;var S=T(y);{var I=F=>{var z=NS(),G=de(z);let le;var X=T(G),oe=T(X,!0);w(X);var j=A(X,2),ve=T(j,!0);w(j),w(G);var ce=A(G,2),re=T(ce,!0);w(ce),D((_e,we,Z)=>{le=Qe(G,"",le,{width:_e}),pe(oe,n(i)),pe(ve,we),pe(re,Z)},[()=>f(n(i)),()=>Q("waiting_live_day_value"),()=>Q("waiting_live_colon")]),_(F,z)};V(S,F=>{n(i)&&F(I)})}var C=A(S,2);{var R=F=>{var z=OS(),G=de(z);let le;var X=T(G),oe=T(X,!0);w(X);var j=A(X,2),ve=T(j,!0);w(j),w(G);var ce=A(G,2),re=T(ce,!0);w(ce),D((_e,we,Z)=>{le=Qe(G,"",le,{width:_e}),pe(oe,n(o)),pe(ve,we),pe(re,Z)},[()=>f(n(o)),()=>Q("waiting_live_hour_value"),()=>Q("waiting_live_colon")]),_(F,z)};V(C,F=>{n(o)&&F(R)})}var E=A(C,2);{var k=F=>{var z=DS(),G=de(z);let le;var X=T(G),oe=T(X,!0);w(X);var j=A(X,2),ve=T(j,!0);w(j),w(G);var ce=A(G,2),re=T(ce,!0);w(ce),D((_e,we,Z)=>{le=Qe(G,"",le,{width:_e}),pe(oe,n(r)),pe(ve,we),pe(re,Z)},[()=>f(n(r)),()=>Q("waiting_live_minute_value"),()=>Q("waiting_live_colon")]),_(F,z)};V(E,F=>{n(r)&&F(k)})}var O=A(E,2);{var B=F=>{var z=BS();let G;var le=T(z),X=T(le,!0);w(le);var oe=A(le,2),j=T(oe,!0);w(oe),w(z),D((ve,ce)=>{G=Qe(z,"",G,{width:ve}),pe(X,n(s)),pe(j,ce)},[()=>f(n(s)),()=>Q("waiting_live_second_value")]),_(F,z)};V(O,F=>{n(s)&&F(B)})}w(y),D(F=>$=se(y,1,"timer__container s-13",null,$,F),[()=>({small:e.isSmallSize})]),_(t,y),U()}var US=L('<div class="waiting s-x"><span> </span></div>'),zS=L('<div class="upcoming-timer timer s-x"><span> </span> <!></div>'),WS=L('<div class="waiting-container s-x"><!></div>'),KS={hash:"s-x",code:'.waiting-container.s-x{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-x,.waiting-container.s-x:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-x:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-x{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-x{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-x{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-x{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-x{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-x{font-size:15px}.medium.s-x{font-size:17px}'};function Ac(t,e){H(e,!0),q(t,KS);let i=g(e,"startTime",3,0),o=v(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),s=K(void 0),l=0,d=K(void 0),a=K(void 0),u=v(()=>{var S,I;return((S=n(d))!=null?S:1/0)<=509||((I=n(a))!=null?I:1/0)<=320}),m=v(()=>{var S,I;return!n(u)&&(((S=n(d))!=null?S:1/0)<=699||((I=n(a))!=null?I:1/0)<=599)}),f=e.onUpcomingLiveViewStateChanged?(0,Nb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(S,I)})},300):void 0;De(()=>{n(a),n(d),n(o),f==null||f()}),mn(()=>{if(cancelAnimationFrame(l),f==null||f.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var p=WS();p.__contextmenu=function(...S){var I;(I=e.onContextMenu)==null||I.apply(this,S)},p.__click=function(...S){var I;(I=e.onClick)==null||I.apply(this,S)};var b=T(p);{var y=S=>{var I=US(),C=T(I);let R;var E=T(C,!0);w(C),w(I),ot(I,k=>N(r,k),()=>n(r)),D((k,O)=>{R=se(C,1,"waiting__title s-x",null,R,k),pe(E,O)},[()=>({medium:n(m),small:n(u)}),()=>Q("waiting_live_upcoming_title")]),_(S,I)},$=S=>{var I=zS(),C=T(I);let R;var E=T(C,!0);w(C);var k=A(C,2);let O=v(()=>n(u)||n(m)),B=v(()=>i()||0);hv(k,{get isSmallSize(){return n(O)},get startTime(){return n(B)},onTimerOver:()=>N(o,!0)}),w(I),ot(I,F=>N(s,F),()=>n(s)),D((F,z)=>{R=se(C,1,"timer__title s-x",null,R,F),pe(E,z)},[()=>({medium:n(m),small:n(u)}),()=>Q("waiting_live_timer_title")]),_(S,I)};V(b,S=>{n(o)?S(y):S($,!1)})}w(p),D(()=>Qe(p,`background-image: url(${e.thumbUrl})`)),An(p,"clientWidth",S=>N(d,S)),An(p,"clientHeight",S=>N(a,S)),_(t,p),U()}rt(["contextmenu","click"]);var qS=L('<div class="waiting-container s-w"><div class="waiting-caption s-w"><!> <p class="waiting-title s-w"> </p></div></div>'),QS={hash:"s-w",code:'.waiting-container.s-w{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-w,.waiting-container.s-w:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-w:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-w{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-w{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function el(t,e){H(e,!0),q(t,QS);let i=g(e,"thumbUrl",3,""),o={recover:Q("waiting_live_recover_title"),record:Q("waiting_record_title")},r=v(()=>o[e.kind]||"");var s=qS();s.__contextmenu=function(...m){var f;(f=e.onContextMenu)==null||f.apply(this,m)},s.__click=function(...m){var f;(f=e.onClick)==null||f.apply(this,m)};var l=T(s),d=T(l);Ha(d,{style:"position: static; transform: translate(0, 0)"});var a=A(d,2),u=T(a,!0);w(a),w(l),w(s),D(()=>{Qe(s,`background-image: url('${i()}')`),pe(u,n(r))}),_(t,s),U()}rt(["contextmenu","click"]);var GS=Ee('<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 _v(t){Ze(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=GS();_(e,o)},$$slots:{default:!0}})}var YS=L('<div class="select-icon s-1y"><!></div>'),jS={hash:"s-1y",code:".select-icon.s-1y{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Lc(t){q(t,jS);var e=YS(),i=T(e);_v(i,{}),w(e),_(t,e)}var XS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},ZS=(t,e)=>{ql(t,()=>e.item.selectItem(e.item.value))},JS=L("<p> </p>"),e2=L('<p class="sublabel s-1w"> </p>'),t2=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),i2={hash:"s-1w",code:".menu-item-value.s-1w{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1w{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1w,.sublabel.s-1w{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1w{opacity:.5}"};function bv(t,e){H(e,!0),q(t,i2);let i=g(e,"isMobile",3,!1);var o=t2();let r;o.__click=[XS,e],o.__keydown=[ZS,e];var s=T(o);{var l=y=>{Lc(y,{})};V(s,y=>{e.item.selected&&y(l)})}var d=A(s,2);let a;var u=T(d);{var m=y=>{var $=Ae(),S=de($);Vi(S,()=>e.item.valueComponent,(I,C)=>{C(I,Es(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),_(y,$)},f=y=>{var $=JS();let S;var I=T($,!0);w($),D(C=>{var R;S=se($,1,"label s-1w",null,S,C),pe(I,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),_(y,$)};V(u,y=>{e.item.valueComponent?y(m):y(f,!1)})}var p=A(u,2);{var b=y=>{var $=e2(),S=T($,!0);w($),D(()=>pe(S,e.item.sublabel)),_(y,$)};V(p,y=>{e.item.sublabel&&y(b)})}w(d),w(o),D((y,$,S)=>{r=se(o,1,"item",null,r,y),Re(o,"data-value",e.item.value),Re(o,"aria-label",$),Re(o,"data-testid",e.item.dataTestid),a=se(d,1,"menu-item-value s-1w",null,a,S),Re(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),U()}rt(["click","keydown"]);var o2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function $v(t,e){H(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),s=v(()=>$=>ju($,n(r)));var l=o2();let d;l.__click=function(...$){var S;(S=n(r))==null||S.apply(this,$)},l.__keydown=function(...$){var S;(S=n(s))==null||S.apply(this,$)};var a=T(l);{var u=$=>{Lc($,{})};V(a,$=>{e.item.selected&&$(u)})}var m=A(a,2);let f;var p=T(m);{var b=$=>{var S=Ae();let I=v(()=>e.item.valueComponent);var C=de(S);Vi(C,()=>n(I),(R,E)=>{E(R,Es(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),_($,S)},y=$=>{var S=us();D(()=>pe(S,e.item.label)),_($,S)};V(p,$=>{e.item.valueComponent?$(b):$(y,!1)})}w(m),w(l),ot(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),D(($,S)=>{var I;d=se(l,1,"item",null,d,$),Re(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Re(l,"data-testid",e.item.id),f=se(m,1,"menu-item-value",null,f,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,l),U()}rt(["click","keydown"]);var Jr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var r2=(t,e)=>{X_(t,e.returnFromSubMenu,e.closeSettingsMenu)},s2=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},a2=(t,e)=>{oc(t)&&(Rr(t),e.returnFromSubMenu())},l2=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1l"> </p></li> <!></ul></div>'),d2={hash:"s-1l",code:".sub-menu.s-1l{--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-1l .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1l{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1l{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1l .items:where(.s-1l) .item.header:where(.s-1l){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-1l .title:where(.s-1l){margin-left:8px}.sub-menu.s-1l .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1l .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1l .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1l .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1l .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1l .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1l .item .sublabel{font-size:12px;line-height:14px}.item.s-1l:not(.mobile) p:where(.s-1l),.sub-menu.s-1l .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function xv(t,e){H(e,!0),q(t,d2);let[i,o]=Ve(),r=()=>x(f,"$isFullscreen",i),s=()=>x(p,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),a=g(e,"ariaLabelReturnFromSubMenu",19,()=>Q("aria_label_submenu_back")),u=g(e,"listRef",15);Nt(()=>{let X=e.items.findIndex(oe=>oe.selected);u().children[X+1].focus()});let m=me(),f=m.ui.isFullscreen,p=m.ui.playerSize,b=K(void 0),y=K(0),$=K(0),S=v(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n($)-d()}px; overflow: auto;`),I=v(()=>Math.max(e.minWidth,n(y)));var C=l2();let R;var E=T(C);let k;E.__keydown=[r2,e];var O=T(E);let B;O.__click=[s2,e],O.__keydown=[a2,e];var F=T(O);Vr(F,{direction:"left"});var z=A(F,2),G=T(z,!0);w(z),w(O),ot(O,X=>N(b,X),()=>n(b));var le=A(O,2);xi(le,17,()=>e.items,Bd,(X,oe)=>{var j=Ae(),ve=de(j);{var ce=_e=>{bv(_e,{get item(){return n(oe)},get isMobile(){return l()}})},re=(_e,we)=>{{var Z=Ne=>{$v(Ne,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,Ne=>{n(oe).type==="OPEN_SUB_MENU"&&Ne(Z)},we)}};V(ve,_e=>{n(oe).type==="SELECT_VALUE"?_e(ce):_e(re,!1)})}_(X,j)}),w(E),ot(E,X=>u(X),()=>u()),w(C),D((X,oe,j)=>{R=se(C,1,"sub-menu menu s-1l",null,R,X),Re(C,"data-testid",`${e.id}-sub-menu`),Qe(C,`min-width: ${n(I)}px`),k=se(E,1,"items s-1l",null,k,oe),Qe(E,n(S)),B=se(O,1,"item header back s-1l",null,B,j),Re(O,"aria-label",a()),pe(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),An(O,"clientWidth",X=>N(y,X)),An(O,"clientHeight",X=>N($,X)),_(t,C),U(),o()}rt(["keydown","click"]);var Db=require("@vkontakte/videoplayer-shared/es2018");var c2=(t,e)=>ju(t,e()),u2=(t,e)=>{t.stopPropagation(),e()()},p2=L('<div class="value s-1n"> </div>'),f2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),m2={hash:"s-1n",code:".value.s-1n{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function wv(t,e){H(e,!0),q(t,m2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Db.noop),r=g(e,"valueComponent",3,void 0),s=g(e,"ref",15);var l=f2();let d;l.__click=[u2,o],l.__keydown=[c2,o];var a=T(l),u=T(a);{var m=I=>{Qa(I,{get icon(){return e.icon}})},f=I=>{var C=Ae();let R=v(()=>e.icon);var E=de(C);Vi(E,()=>n(R),(k,O)=>{O(k,{})}),_(I,C)};V(u,I=>{typeof e.icon=="string"?I(m):I(f,!1)})}w(a);var p=A(a,2),b=T(p,!0);w(p);var y=A(p,2);{var $=I=>{var C=Ae();let R=v(r);var E=de(C);Vi(E,()=>n(R),(k,O)=>{O(k,{})}),_(I,C)},S=I=>{var C=p2(),R=T(C,!0);w(C),D(()=>pe(R,e.value)),_(I,C)};V(y,I=>{r()?I($):I(S,!1)})}w(l),ot(l,I=>s(I),()=>s()),D(I=>{d=se(l,1,"item",null,d,I),Re(l,"aria-label",e.ariaLabel),Re(l,"data-testid",e.id),pe(b,e.label)},[()=>({mobile:i()})]),_(t,l),U()}rt(["click","keydown"]);var Sv=require("@vkontakte/videoplayer-shared/es2018");var v2=(t,e)=>{ql(t,()=>e())},g2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),h2=L('<img class="icon" aria-hidden="true"/>'),_2=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1m"> </div></li>'),b2={hash:"s-1m",code:".label.s-1m{overflow:hidden;text-overflow:ellipsis}"};function Tv(t,e){H(e,!0),q(t,b2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Sv.noop),r=g(e,"closeSettings",3,Sv.noop),s=K(!1),l=()=>{N(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),r()()};var a=_2();let u;a.__click=d,a.__keydown=[v2,d];var m=T(a),f=T(m);{var p=S=>{var I=Ae(),C=de(I);{var R=k=>{var O=g2();_(k,O)},E=k=>{var O=h2();D(()=>Re(O,"src",e.icon)),gt("error",O,l),Ca(O),_(k,O)};V(C,k=>{n(s)?k(R):k(E,!1)})}_(S,I)},b=S=>{var I=Ae();let C=v(()=>e.icon);var R=de(I);Vi(R,()=>n(C),(E,k)=>{k(E,{})}),_(S,I)};V(f,S=>{typeof e.icon=="string"?S(p):S(b,!1)})}w(m);var y=A(m,2),$=T(y,!0);w(y),w(a),D(S=>{var I;u=se(a,1,"item",null,u,S),Re(a,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Re(a,"data-testid",e.id),pe($,e.label)},[()=>({mobile:i()})]),_(t,a),U()}rt(["click","keydown"]);var Bb=require("@vkontakte/videoplayer-shared/es2018");var $2=L('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),y2={hash:"s-1r",code:'.toggle_wrap.s-1r{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1r{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1r: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-1r:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1r{overflow:hidden}'};function Cv(t,e){q(t,y2);let i=g(e,"enabled",3,!1);var o=$2(),r=T(o);let s;ui(2),w(o),D(l=>s=se(r,1,"toggle s-1r",null,s,l),[()=>({on:i()})]),_(t,o)}var x2=(t,e,i)=>{Z_(t,e(),o=>i()(o))},w2=(t,e,i)=>{t.stopPropagation(),e()(!i())},S2=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),T2=L('<li role="menuitem" tabindex="0"><!></li>');function Iv(t,e){H(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Bb.noop),r=g(e,"enabled",3,!1),s=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=T2();let a;d.__click=[w2,o,r],d.__keydown=[x2,r,o];var u=T(d);za(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,f)=>{var p=S2();let b;var y=T(p),$=T(y);{var S=k=>{Qa(k,{get icon(){return e.icon}})},I=k=>{var O=Ae();let B=v(()=>e.icon);var F=de(O);Vi(F,()=>n(B),(z,G)=>{G(z,{})}),_(k,O)};V($,k=>{typeof e.icon=="string"?k(S):k(I,!1)})}w(y);var C=A(y,2),R=T(C,!0);w(C);var E=A(C,2);Cv(E,{get enabled(){return r()}}),w(p),D(k=>{b=se(p,1,"switch-wrapper",null,b,k),pe(R,e.label)},[()=>({mobile:i()})]),_(m,p)},$$slots:{default:!0}}),w(d),D(m=>{var f;a=se(d,1,"item switch-item",null,a,m),Re(d,"aria-label",(f=e.ariaLabel)!=null?f:e.label),Re(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),U()}rt(["click","keydown"]);var Vc=require("@vkontakte/videoplayer-shared/es2018");var Fb=()=>{let t=K(di([])),e=v(()=>(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 Hb=require("@vkontakte/videoplayer-shared/es2018");var C2=L('<div class="quality-icon s-1o"><!></div>'),I2=L('<div class="quality-label s-1o"><span> </span> <!></div>'),E2={hash:"s-1o",code:".quality-label.s-1o{position:relative}.quality.s-1o{font-size:13px;line-height:18px}.quality.sub.s-1o{opacity:.7}.quality-icon.s-1o{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1o svg{color:var(--blue-light)}"};function tl(t,e){H(e,!0),q(t,E2);let i=g(e,"isSubCase",3,!1),o=v(()=>e.quality?(0,Hb.getVideoQualityLabel)(e.quality):""),r=v(()=>tp(e.quality));var s=I2(),l=T(s);let d;var a=T(l,!0);w(l);var u=A(l,2);{var m=f=>{var p=C2();let b=v(()=>n(r));var y=T(p);Vi(y,()=>n(b),($,S)=>{S($,{})}),w(p),D(()=>Re(p,"data-testid",`${n(o)}-icon`)),_(f,p)};V(u,f=>{n(r)&&!e.isMobile&&f(m)})}w(s),D(f=>{d=se(l,1,"s-1o",null,d,f),pe(a,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,s),U()}var Kb=require("@vkontakte/videoplayer-shared/es2018");var Ev=require("@vkontakte/videoplayer-core/es2018");var Ub=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},zb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Ub({quality:t,availableQualities:e});return i?t===Ev.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},Wb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Ev.VideoQuality.INVARIANT?i:`${i}${Ub({quality:t,availableQualities:e})}`:"...";var P2=L('<div class="menu-item-value-wrapper s-1t"><!></div>'),k2={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function nd(t,e){H(e,!0),q(t,k2);let[i,o]=Ve(),r=()=>x(a,"$currentQuality$",i),s=()=>x(u,"$availableQualities$",i),l=()=>x(m,"$isMobile$",i),d=me(),a=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,f=" · ",p=v(()=>e.prefix+(e.selected&&r()!==Kb.VideoQuality.INVARIANT?f:"")),b=v(()=>Wb({prefix:n(p),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var y=P2(),$=T(y);let S=v(()=>e.selected?r():void 0);tl($,{get quality(){return n(S)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),w(y),_(t,y),U(),o()}var A2=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},L2={br:!0,span:!0},Pv=(t,e={})=>{var d,a,u,m,f,p,b;if(!t)return t;let i={...L2,...e},o=Object.keys(i);if(!o.length)return t;let r=A2(o),s=[],l=0;for(let y of t.matchAll(r)){let $=y[0],S=((d=y.groups)==null?void 0:d.keyhtml)||((a=y.groups)==null?void 0:a.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:I}=y;if(!i[S]){s.push(t.slice(l,I)),l=I+$.length;continue}let C=(f=y.groups)!=null&&f.childrenhtml?Pv(y.groups.childrenhtml,i):"",R=(p=y.groups)!=null&&p.childrenhtml?$.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>C||""):$;s.push(t.slice(l,I),R),l=I+$.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Mc(t,e){H(e,!1);let i=g(e,"message",8),o=Pv(i());wo();var r=Ae(),s=de(r);{var l=d=>{var a=Ae(),u=de(a);Fd(u,()=>o),_(d,a)};V(s,d=>{o&&d(l)})}_(t,r),U()}var M2=L('<p class="quality-applies sublabel s-1v"><!></p>'),V2={hash:"s-1v",code:".quality-applies.s-1v{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function kv(t,e){H(e,!1),q(t,V2),wo();var i=M2(),o=T(i);let r=Cn(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));Mc(o,{get message(){return n(r)}}),w(i),_(t,i),U()}var Qb=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",selected:o,valueComponent:nd,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"quality-other-settings"}},Av=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:Q("auto_quality_limit"),valueComponent:e?nd:void 0,valueComponentParams:{prefix:Q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Gb=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:kv,bottomBordered:!0,children:"quality-appliance"}),Lv=({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?nd:void 0,valueComponentParams:{prefix:Q("high_quality"),selected:i},sublabel:Q("high_quality_description")}),Mv=({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?nd:void 0,valueComponentParams:{prefix:Q("traffic_saving_quality"),selected:i},sublabel:Q("traffic_saving_quality_description")});var gp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),hp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=hc(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return Q("audio_stream_display_language_label",{language:r,label:o});{let a=gp(t,d);return Q("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=gp(t,d);return Q("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=gp(t,d);return Q("audio_stream_display_language_index",{language:r,index:a})}}let s=gp(t,e);return Q("audio_stream_display_unknown",{index:s})};var R2={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:Av,selected:e&&!o&&!r||!1}),s.push({handler:Mv,selected:o},{handler:Lv,selected:r}),{title:Q("submenu_quality"),id:"quality-settings",items:[Gb(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Qb(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:tl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"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:Av,selected:((i=Bu())==null?void 0:i.type)==="auto_quality"},{handler:Mv,selected:((o=Bu())==null?void 0:o.type)==="traffic_saving"},{handler:Lv,selected:((r=Bu())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-languages":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-languages",title:Q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:hp(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===Rn?"sub_off":void 0}))})},Yb=({subMenuId:t,context:e})=>t?[R2[t](e)]:[];var N2=Ee('<path d="M.1 6.5c0-2.24 0-3.36.44-4.22A4 4 0 0 1 2.28.54C3.14.1 4.26.1 6.5.1h5c2.24 0 3.36 0 4.22.44a4 4 0 0 1 1.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 0 1-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 0 1-1.74-1.74C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 0 0-.96.96 2 2 0 0 0-.2.92C1.9 4.6 1.9 5.35 1.9 6.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 0 0 .96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 0 0-.19-.92 2.2 2.2 0 0 0-.96-.96 2 2 0 0 0-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Vv(t){Ze(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=N2();_(e,o)},$$slots:{default:!0}})}var O2=Ee('<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 Rv(t){Ze(t,{width:"18",height:"15",children:(e,i)=>{var o=O2();_(e,o)},$$slots:{default:!0}})}var D2=Ee('<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 Nv(t){Ze(t,{testId:"play-speed-icon",children:(e,i)=>{var o=D2();_(e,o)},$$slots:{default:!0}})}var B2=Ee('<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 Ov(t){Ze(t,{testId:"download-icon",children:(e,i)=>{var o=B2();_(e,o)},$$slots:{default:!0}})}var F2=Ee('<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 Dv(t){Ze(t,{testId:"report-icon",children:(e,i)=>{var o=F2();_(e,o)},$$slots:{default:!0}})}var H2=Ee('<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 _p(t){Ze(t,{children:(e,i)=>{var o=H2();_(e,o)},$$slots:{default:!0}})}var U2=Ee('<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 Bv(t){Ze(t,{testId:"info-icon",children:(e,i)=>{var o=U2();_(e,o)},$$slots:{default:!0}})}var z2=L('<div class="menu-item-value-wrapper s-1u"><!></div>'),W2={hash:"s-1u",code:".menu-item-value-wrapper.s-1u{line-height:normal}"};function Fv(t,e){H(e,!0),q(t,W2);let[i,o]=Ve(),r=()=>x(u,"$currentQuality$",i),s=()=>x(m,"$availableQualities$",i),l=()=>x(f,"$isAutoQualityEnabled$",i),d=()=>x(p,"$isMobile$",i),a=me(),u=a.state.currentQuality$,m=a.state.availableQualities$,f=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,b=v(()=>zb({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var y=z2(),$=T(y);tl($,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),w(y),_(t,y),U(),o()}var q2={"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:lc,label:Q("menu_quality"),value:e,valueComponent:Fv,weight:Jr["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:Jr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Q("aria_label_submenu_traffic_saving"),icon:Vv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-languages-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=hp(t,e);return{id:"audio-languages-settings",weight:Jr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:Rv,label:Q("menu_audio_languages"),value:i,children:"audio-languages"}},"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:Jr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:Nv,label:Q("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:Jr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:na,label:Q("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:Jr.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:Ov}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:Jr.report,type:"CLICK",onClick:t,label:Q("menu_report"),ariaLabel:`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`,icon:Dv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:Jr["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:_p,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:Jr["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:_p,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:Jr["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:Bv,isHiddenFor:["desktop"]})},jb=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>q2[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.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(Ba)};var G2=(t,e)=>{Yu(t,e)},Y2=L('<div><div> </div> <div class="close s-u"></div></div>'),j2=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),X2=L("<div><!> <!></div>"),Z2={hash:"s-u",code:'.settings-menu-container.mobile.s-u{width:100%}.settings-menu-container.s-u ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-u .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-u .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-u .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-u .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-u .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-u .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-u{line-height:40px}.settings-menu.desktop.s-u{min-width:300px}.settings-menu-container.s-u .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-u .menu.mobile.hidden{display:none}.settings-menu-container.s-u .menu .item:not(.switch-item),.settings-menu-container.s-u .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-u .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-u .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-u .item:not(.switch-item),.settings-menu.s-u .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-u .item.mobile:not(.switch-item),.settings-menu.s-u .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-u .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-u .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-u .item.header.mobile:where(.s-u){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-u .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-u .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-u .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-u .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-u .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-u{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-u:after,.close.s-u:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-u:before{transform:rotate(45deg)}.close.s-u:after{transform:rotate(-45deg)}'};function Rc(t,e){H(e,!0),q(t,Z2);let[i,o]=Ve(),r=()=>x(Be,"$settingsMenuVisible",i),s=()=>x(fe,"$settingsMenuOpenedByKeyboard",i),l=()=>x(Ue,"$debugPanelVisible",i),d=()=>x(Se,"$isMobile",i),a=()=>x(Le,"$playerSize",i),u=()=>x(Oe,"$hasMpegSources$",i),m=()=>x(Fe,"$mobileNotReportControlHidden$",i),f=()=>x(Z,"$autoQualityLimitingAvailable$",i),p=()=>x(Y,"$availableSubtitlesList$",i),b=()=>x(Ke,"$isLiveWithPlaybackSpeed",i),y=()=>x(re,"$availableAudioStreams$",i),$=()=>x(We,"$availablePlaybackRates$",i),S=()=>x(ce,"$currentAudioStream$",i),I=()=>x(P,"$currentPlaybackRate$",i),C=()=>x(Ye,"$trafficSavingEnabled",i),R=()=>x(_e,"$currentQuality$",i),E=()=>x(Ne,"$isAutoQualityEnabled$",i),k=()=>x(Ce,"$currentSubtitle$",i),O=()=>x(et,"$additionalSettingsMenuItems$",i),B=()=>x(ue,"$isAutoQualityAvailable$",i),F=()=>x(we,"$availableQualities$",i),z=()=>x(Te,"$highQualityEnabled",i),G=g(e,"ref",15,void 0),le=g(e,"playerControlsHeight",3,0),X=di({}),oe=di({}),j=me(),ve=Mt(),ce=j.state.audioStream$,re=j.state.availableAudioStreams$,_e=j.state.currentQuality$,we=j.state.availableQualities$,Z=j.state.autoQualityLimitingAvailable$,Ne=j.state.isAutoQualityEnabled$,ue=j.state.isAutoQualityAvailable$,P=j.state.currentPlaybackRate$,We=j.state.availablePlaybackRates$,Ce=j.state.currentSubtitle$,Y=j.state.availableSubtitlesList$,ie=j.state.canDownload,Oe=j.state.hasMpegSources$,Be=j.ui.settingsMenu.visible$,fe=j.ui.settingsMenu.openedByBtnKeyboard$,ee=j.ui.settingsMenu.ref$,Se=j.ui.isMobile,Fe=j.ui.mobileNotReportControlHidden$,Ke=j.state.canChangePlaybackSpeed$,Ye=j.state.trafficSavingEnabled$,Te=j.state.highQualityEnabled$,Le=j.ui.playerSize,Ue=j.ui.debugPanelVisible,Vt=j.state.isInteractiveTime$,et=j.ui.additionalSettingsMenuItems$,Ot=j.ui.t,Wt=j.actions.internal.downloadVideo,Ct=j.actions.internal.closeSettingsMenu,Zt=j.actions.internal.openSettingsSubMenu,Dt=j.actions.internal.closeSettingsSubMenu,ye=K(!1),be=K(void 0),J=Fb();De(()=>{!r()&&J.current&&(Dt(oe[J.current]),J.popAllSubMenus())}),De(()=>{r()||N(be,void 0)}),De(()=>{!J.current&&n(be)&&j_(X,n(be))}),De(()=>{G()&&ee.set(G())});async function xe(Et){var W;J.pushSubMenu(Et),await ho(),Zt(Et,oe[Et]);let Bt=(W=G())==null?void 0:W.firstElementChild;Bt&&rm(Bt)}function Pe(Et){var Bt;Et==null||Et.stopPropagation(),s()||(Bt=e.returnFocus)==null||Bt.call(e),Ct(),N(ye,!1)}function It(Et,Bt){j.actions.internal.setQuality(Et,{appliesTo:Bt}),Pe()}function Me(Et){j.actions.internal.setAudioStream(Et),Pe()}function st(Et,Bt){j.actions.internal.setTrafficSavingEnabled(Et,Bt),ve.features.qualityDetailsSubMenuEnabled&&Pe()}function mt(Et,Bt){j.actions.internal.setHighQualityEnabled(Et,Bt),Pe()}function $e(Et){j.actions.internal.setPlaybackRate(Et),Pe()}function Je(Et){j.actions.internal.setSubtitle(Et),Pe()}function ze(){Wt()}function nt(){(0,Vc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),j.actions.internal.reportProblem(),j.actions.internal.pause()}function Jt(){Wl(j.actions.internal.getDebugTextData())}let ri=()=>{let Et=j.actions.internal.getTraceTextData(),Bt=new Blob([...Et],{type:"application/json"}),W=window.URL.createObjectURL(Bt);Ma(W,"vk_player_trace_info","json")};function pi(){Ue.set(!l())}function hi(){N(ye,!0)}function eo(){N(ye,!1)}function _o(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-le()}px; overflow: auto;`}let ci=v(()=>ie&&u()&&!m()),pt=v(()=>ve.features.trafficSaving&&!m()&&f()&&!ve.features.qualityDetailsSubMenuEnabled),Ei=v(()=>p().length>0&&!m()),jt=v(()=>!!b()&&!m()),St=v(()=>ve.features.audioLanguages&&y().length>=2&&!m()),ii=v(()=>!m());Nt(()=>Vt.subscribe(Et=>{Et&&!d()&&!n(ye)&&!s()&&Pe()}));let Xt=v(()=>{let Et=[n(ii)&&"quality-settings",n(St)&&"audio-languages-settings",n(jt)&&"playback-rate-settings",n(Ei)&&"subtitles-settings",n(pt)&&"traffic-saving-switch",n(ci)&&"download",ve.showSupport&&"show-support","copy-data",ve.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Bt=>!!Bt);return jb({items:Et,context:{qualityDetailsSubMenuEnabled:ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:$e,trafficSavingEnabled:C(),toggleTrafficSaving:st,currentQuality:R()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:ze,onCopyDataClick:Jt,onReportProblemClick:nt,onSaveTraceDataClick:ri,toggleShowDebugInfo:pi},additionalSettingsMenuItems:O()})}),ht=v(()=>Yb({subMenuId:J.current,context:{availablePlaybackRates:$(),selectPlaybackRate:$e,trafficSavingEnabled:C(),toggleTrafficSaving:st,currentQuality:R()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:B()||!1,availableQualities:F(),highQualityEnabled:z(),toggleHighQuality:mt,availableAudioStreams:y(),availableSubtitlesList:p(),closeSettingsMenu:Ct,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Me,selectQuality:It,selectSubtitle:Je}}));var je=X2();let yi;var to=T(je);{var en=Et=>{var Bt=j2();let W;Bt.__keydown=[G2,Ct];var At=T(Bt);{var si=Yt=>{var ct=Y2();let Oi;var Di=T(ct),No=T(Di,!0);w(Di);var To=A(Di,2);To.__click=Pe,w(ct),D((bo,qi)=>{Oi=se(ct,1,"item header s-u",null,Oi,bo),pe(No,qi)},[()=>({mobile:d()}),()=>Ot("submenu_settings")]),_(Yt,ct)};V(At,Yt=>{d()&&Yt(si)})}var dt=A(At,2);let Tt;xi(dt,21,()=>n(Xt),Yt=>Yt.id,(Yt,ct)=>{var Oi=Ae(),Di=de(Oi);{var No=bo=>{wv(bo,{get isMobile(){return d()},get id(){return n(ct).id},get icon(){return n(ct).icon},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:()=>{xe(n(ct).children),N(be,n(ct).id,!0)},get ref(){return X[n(ct).id]},set ref(qi){X[n(ct).id]=qi}})},To=(bo,qi)=>{{var Nr=oo=>{let Ci=v(()=>`${n(ct).id}-menu-item`);Tv(oo,{get isMobile(){return d()},get id(){return n(Ci)},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:Pe})},io=(oo,Ci)=>{{var _n=tn=>{let bn=v(()=>`${n(ct).id}-menu-item`);Iv(tn,{get isMobile(){return d()},get id(){return n(bn)},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}})};V(oo,tn=>{n(ct).type==="SWITCH"&&tn(_n)},Ci)}};V(bo,oo=>{n(ct).type==="CLICK"?oo(Nr):oo(io,!1)},qi)}};V(Di,bo=>{n(ct).type==="OPEN_SUB_MENU"?bo(No):bo(To,!1)})}_(Yt,Oi)}),w(dt),ot(dt,Yt=>G(Yt),()=>G()),w(Bt),D((Yt,ct,Oi)=>{W=se(Bt,1,"settings-menu menu s-u",null,W,Yt),Tt=se(dt,1,"items",null,Tt,ct),Qe(dt,Oi)},[()=>({desktop:!d(),mobile:d(),hidden:!!J.current}),()=>({mobile:d()}),_o]),gt("mouseenter",Bt,hi),gt("mouseleave",Bt,eo),_(Et,Bt)};V(to,Et=>{r()&&Et(en)})}var hn=A(to,2);xi(hn,17,()=>n(ht),Et=>Et.id,(Et,Bt)=>{let W=v(()=>{var At;return(At=n(Bt).minWidth)!=null?At:137});xv(Et,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return J.popSubMenu},get id(){return n(Bt).id},get title(){return n(Bt).title},get closeSettingsMenu(){return Ct},openSubMenuList:xe,get items(){return n(Bt).items},get minWidth(){return n(W)},get refMenuItems(){return X},get listRef(){return oe[n(Bt).id]},set listRef(At){oe[n(Bt).id]=At}})}),w(je),D(Et=>yi=se(je,1,"settings-menu-container s-u",null,yi,Et),[()=>({mobile:d(),hidden:!r()})]),_(t,je),U(),o()}rt(["keydown","click"]);var J2=L('<button class="btn s-12"> </button>'),eT={hash:"s-12",code:"button.btn.s-12{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Hv(t,e){q(t,eT);var i=J2();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=T(i,!0);w(i),D(()=>pe(o,e.label)),_(t,i)}rt(["click"]);var tT=L('<div class="container s-v"><div class="notification s-v"><div><p class="description s-v"><!></p> <!></div> <!></div></div>'),iT={hash:"s-v",code:".container.s-v{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-v{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-v{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Nc(t,e){H(e,!0),q(t,iT);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Mt(),{ui:{t:r}}=me(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=tT(),d=T(l),a=T(d),u=T(a),m=T(u);Mc(m,{get message(){return s}}),w(u);var f=A(u,2);{var p=y=>{let $=v(()=>r("slow_video_notification_button"));Hv(y,{get label(){return n($)},get onClick(){return e.onSelectAutoQuality}})};V(f,y=>{o||y(p)})}w(a);var b=A(a,2);ks(b,{get onClick(){return e.onClose}}),w(d),w(l),Yr(3,d,()=>vs,()=>({duration:i})),_(t,l),U()}var Oc=require("@vkontakte/videoplayer-shared/es2018"),il="annotation",bp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",il),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var m;let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((m=this.store)==null?void 0:m.ui)||{},a=new MutationObserver(f=>f.forEach(()=>{let p=Ls(s,this.shadowRootContainer);o.forEach(b=>{let y=l==null?void 0:l[b],$=y?he(y):null,S=d==null?void 0:d[b];$&&(S==null||S.set((0,Oc.isIntersecting)($,p)))})}));a.observe(s,{childList:!0,subtree:!0}),r.observer=a;let u=new Oc.Subscription;o.forEach(f=>{l&&u.add(l[f].subscribe(p=>{let b=d==null?void 0:d[f];p&&p.isDisplayed?b==null||b.set((0,Oc.isIntersecting)(p,Ls(s,this.shadowRootContainer))):b==null||b.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),r(s)}});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:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[r,s].forEach(f=>f==null?void 0:f.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(f=>{var p,b;(b=(p=this.store)==null?void 0:p.ui.hiddenControls[f])==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 oT=L('<div class="container s-4"><!></div>'),nT={hash:"s-4",code:".container.s-4{align-items:center;animation-fill-mode:forwards;animation-name:s-4-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-4-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 Dc(t,e){H(e,!0),q(t,nT);let i=g(e,"reversed",3,!1);var o=Ae(),r=de(o);Ts(r,()=>e.Icon,s=>{var l=oT(),d=T(l);Vi(d,()=>e.Icon,(a,u)=>{u(a,{get size(){return"48"},get reversed(){return i()}})}),w(l),D(()=>Qe(l,`animation-duration: ${e.duration}ms`)),_(s,l)}),_(t,o),U()}var Uv=require("@vkontakte/videoplayer-core/es2018"),rT=L('<div class="container s-18"><!></div>'),sT={hash:"s-18",code:".container.s-18{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function zv(t,e){H(e,!0),q(t,sT);let[i,o]=Ve(),r=()=>x(a,"$playbackState$",i),s=()=>x(m,"$previewTrackActive",i),l=()=>x(f,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:f}}=me(),{features:{playbackStatusShow:p},playbackStatusAnimationDuration:b}=Mt(),y=0,$=K(null),S=K(!1);De(()=>{r()===Uv.PlaybackState.PLAYING?N($,Mn,!0):r()===Uv.PlaybackState.PAUSED?N($,Vs,!0):N($,null)}),De(()=>{if(!(!p||s()||l()))return y=window.setTimeout(()=>{y=0,N($,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),De(()=>{d()&&!n(S)&&(N(S,!0),N($,null))});var I=Ae(),C=de(I);{var R=E=>{var k=rT(),O=T(k);Dc(O,{get duration(){return b},get Icon(){return n($)}}),w(k),_(E,k)};V(C,E=>{n($)&&p&&E(R)})}_(t,I),U(),o()}var aT=L('<div><div data-testid="video-container"></div></div>'),lT={hash:"s-e",code:".video-container.s-e,.video-wrapper.s-e{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-e{background:var(--black)}.video-container.s-e,.video-wrapper.s-e{z-index:var(--video-container-z-index)}.video-container.s-e{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-e{transition:none}.nocursor.s-e{cursor:none}"};function ol(t,e){H(e,!0),q(t,lT);let[i,o]=Ve(),r=()=>x(m,"$rotateAlpha",i),s=()=>x(f,"$playerSize",i),l=()=>x(u,"$playerPhase",i),d=()=>x(p,"$isPlaying$",i),a=g(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:m,playerSize:f},state:{isPlaying$:p}}=me(),{isSmoothVideoRotate:b}=Mt(),y=v(()=>a()&&r()%180?s().height/s().width:1);var $=aT();let S;$.__contextmenu=function(...R){var E;(E=e.onContextMenu)==null||E.apply(this,R)},$.__mousedown=function(...R){var E;(E=e.onMouseDown)==null||E.apply(this,R)},$.__mouseup=function(...R){var E;(E=e.onMouseUp)==null||E.apply(this,R)},$.__click=function(...R){var E;(E=e.onClick)==null||E.apply(this,R)},$.__dblclick=function(...R){var E;(E=e.onDblClick)==null||E.apply(this,R)};var I=T($);let C;ot(I,R=>a(R),()=>a()),w($),D((R,E)=>{S=se($,1,"video-wrapper s-e",null,S,R),C=se(I,1,"video-container s-e",null,C,E),Qe(I,`transform: rotate(${r()}deg) scale(${n(y)})`),Re(I,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),_(t,$),U(),o()}rt(["contextmenu","mousedown","mouseup","click","dblclick"]);var dT=L('<div><span class="text s-19"> </span> <!></div>'),cT={hash:"s-19",code:".root.s-19{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-19,.root.visible.s-19{transform:translateX(-50%)}.root.visible.s-19{opacity:1;visibility:visible}.text.s-19{font-size:13px;font-weight:600;line-height:16px}"};function Wv(t,e){H(e,!0),q(t,cT);let{ui:{t:i}}=me();var o=dT();let r;var s=T(o),l=T(s,!0);w(s);var d=A(s,2);Ec(d,{get size(){return"16"},fill:"currentColor"}),w(o),D((a,u)=>{r=se(o,1,"root s-19",null,r,a),pe(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),_(t,o),U()}var uT=L('<div class="container s-1a" role="button" data-testid="preview-track-overlay"><div class="icon s-1a"><!></div></div>'),pT={hash:"s-1a",code:".container.s-1a{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-1a,.icon.s-1a{align-items:center;display:flex;justify-content:center}.icon.s-1a{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-1a:hover .icon:where(.s-1a){transform:scale(1.15)}"};function Kv(t,e){H(e,!1),q(t,pT);let o=me().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};wo();var l=uT();l.__click=s;var d=T(l),a=T(d);return Mn(a,{get size(){return"32"}}),w(d),w(l),Yr(3,l,()=>vs,()=>({duration:r})),_(t,l),Ef(e,"handleClick",s),U({handleClick:s})}rt(["click"]);var fT=L('<div class="container s-1c"><div class="notification s-1c"><span class="text s-1c"> </span></div></div>'),mT={hash:"s-1c",code:".container.s-1c{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-1c{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-1c{font-size:14px;font-weight:500;line-height:18px}"};function qv(t,e){H(e,!1),q(t,mT);let{ui:{t:i}}=me();wo();var o=fT(),r=T(o),s=T(r),l=T(s,!0);w(s),w(r),w(o),D(d=>pe(l,d),[()=>i("preview_track_notification_text")],Cn),Yr(3,r,()=>vs,()=>({duration:340})),_(t,o),U()}var vT=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},gT=L("<div><!></div>"),hT=L('<div class="spherical-video-icon s-7"><!></div>'),_T=L("<div><!></div>"),bT=L('<div class="settings-menu s-7"><!></div>'),$T=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),yT=L("<!> <!> <!>",1),xT=L('<div class="blocked s-7"></div>'),wT=L('<div class="player-wrapper s-7"><!> <div class="overlay-container"></div></div> <!>',1),ST={hash:"s-7",code:".blocked.s-7,.player-wrapper.s-7{height:100%;position:absolute;width:100%}.blocked.s-7{z-index:var(--overlay-container-z-index)}.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%}.spherical-video-icon.s-7{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-7{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-7{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function Gv(t,e){H(e,!0),q(t,ST);let[i,o]=Ve(),r=()=>x(ai,"$notificationsToShow$",i),s=()=>x(ci,"$playerPhase",i),l=()=>x(to,"$isLoaderVisible",i),d=()=>x(hi,"$adPlaybackState",i),a=()=>x(si,"$crashed",i),u=()=>x(bo,"$isInteractiveTime$",i),m=()=>x(St,"$settingsMenuVisible",i),f=()=>x(qi,"$isInteractiveExpectation$",i),p=()=>x(jt,"$controlsVisible",i),b=()=>x(io,"$touched",i),y=()=>x(Dr,"$graphIsOpened$",i),$=()=>x(pt,"$isFullscreen",i),S=()=>x(hs,"$autoplayNextEnabled$",i),I=()=>x(Bt,"$postrollPassed",i),C=()=>x(en,"$isEnded$",i),R=()=>x(Un,"$cursorInside",i),E=()=>x(Nn,"$isControlsAvailable",i),k=()=>x($n,"$doubleForwardOn$",i),O=()=>x(Zn,"$fakeIsPlaying$",i),B=()=>x(er,"$bottomNoSmooth",i),F=()=>x(tn,"$interactiveTimeIndicator",i),z=()=>x(Oi,"$playerSize",i),G=()=>x(Di,"$is3DVideo",i),le=()=>x($o,"$doubleForwardAvailable$",i),X=()=>x(je,"$contextMenuVisible$",i),oe=()=>x(pi,"$playbackState$",i),j=()=>x(oo,"$hotKeyMapData",i),ve=()=>x(Xt,"$scrubbingInProgress",i),ce=()=>x(ht,"$volumeChangingInProgress",i),re=()=>x(hn,"$chromecastConnected$",i),_e=()=>x(Hn,"$controlsTimeoutActive",i),we=()=>x(ii,"$settingsMenuOpenedByKeyboard",i),Z=()=>x(Er,"$contextMenuOpenedByKeyboard$",i),Ne=()=>x(wi,"$contextMenuOpenedByHotKey$",i),ue=()=>x(Xe,"$contextMenuButtonRef$",i),P=()=>x(zo,"$contextMenuLastActiveElem$",i),We=()=>x(Ei,"$isFullscreenOpenedByKeyboard",i),Ce=()=>x(ri,"$language$",i),Y=()=>x(dn,"$previewTrackActive$",i),ie=()=>x(No,"$icon3DVideoVisible",i),Oe=()=>x(Et,"$chromecastDeviceName$",i),Be=()=>x(Yt,"$currentSubtitle$",i),fe=()=>x(ct,"$currentSubtitleCaptions$",i),ee=()=>x(eo,"$position$",i),Se=()=>x(_o,"$duration$",i),Fe=()=>x(W,"$isLive$",i),Ke=()=>x(At,"$isPlaying$",i),Ye=()=>x(_r,"$contextMenuPosition$",i),Te=()=>x(On,"$previewTrackNotificationVisible$",i),Le=()=>x(Ci,"$showHotKeyMap",i),Ue=()=>x(yi,"$debugPanelVisible",i),Vt=()=>x(es,"$userActionsDisabled$",i),et=g(e,"videoContainer",15),Ot=g(e,"adsSlotId",3,void 0),Wt=g(e,"adsParams",3,void 0),Ct=g(e,"adsAutoplayParam",3,void 0),Zt=g(e,"duration",3,void 0),Dt=g(e,"logoTargetUrl",3,""),ye=g(e,"showNextPrevButtons",3,!1),be=g(e,"nextButtonActive",3,!1),J=g(e,"prevButtonActive",3,!1),xe=g(e,"endScreenVideoTitle",3,void 0),Pe=g(e,"endScreenVideoThumb",3,void 0),It=g(e,"isOneVideoPlaylist",3,!1),Me=g(e,"shadowRootContainer",3,void 0),st=g(e,"outerContainerRef",3,void 0),mt=g(e,"playerStarted",3,!1),$e=g(e,"fullScreenTarget",3,void 0),Je=g(e,"showMiniTimer",3,!1),ze=g(e,"showEndScreen",3,!0),nt=g(e,"keyboardControls",15),Jt=e.store.getLogger().createComponentLog("Root component"),ri=e.store.interfaceLanguage$,pi=e.store.state.playbackState$,hi=e.store.ads.playbackState,eo=e.store.state.positionWithScrubbing$,_o=e.store.state.duration$,ci=e.store.playerPhase,pt=e.store.ui.isFullscreen,Ei=e.store.ui.isFullscreenOpenedByKeyboard,jt=e.store.ui.controlsVisible,St=e.store.ui.settingsMenu.visible$,ii=e.store.ui.settingsMenu.openedByBtnKeyboard$,Xt=e.store.ui.scrubbingInProgress,ht=e.store.ui.volumeChangingInProgress,je=e.store.ui.contextMenu.visible$,yi=e.store.ui.debugPanelVisible,to=e.store.state.isLoaderVisible,en=e.store.state.isEnded$,hn=e.store.state.chromecastConnected$,Et=e.store.state.chromecastDeviceName$,Bt=e.store.ads.postrollPassed,W=e.store.state.isLive$,At=e.store.state.isPlaying$,si=e.store.state.crashed$,dt=e.store.webApi.annotationsApi,Tt=e.store.webApi.pictureInPictureApi,Yt=e.store.state.currentSubtitle$,ct=e.store.state.currentSubtitleCaptions$,Oi=e.store.ui.playerSize,Di=e.store.ui.is3DVideo,No=e.store.ui.icon3DVideoVisible,To=e.store.state.isInteractive,bo=e.store.state.isInteractiveTime$,qi=e.store.state.isInteractiveExpectation$,Nr=e.store.state.hasInteractiveBranches,io=e.store.ui.touched,oo=e.store.ui.modals.hotKeyMap.data,Ci=e.store.ui.modals.hotKeyMap.show,_n=e.store.ui.overlayContainer$,tn=e.store.ui.controls.interactiveTimeIndicator,bn=e.store.state.showInteractiveTimeIndicator,_r=e.store.ui.contextMenu.position$,br=e.store.actions.internal.setQuality,gs=e.store.actions.internal.closeSettingsMenu,hs=e.store.ui.autoplayNextEnabled$,es=e.store.ui.userActionsDisabled,Nn=e.store.ui.isControlsAvailable,Or=e.store.ui.videoTitleInfo,$n=e.store.ui.doubleForwardOn$,$o=e.store.ui.doubleForwardAvailable$,On=e.store.ui.previewTrackNotificationVisible,Dn=e.store.actions.internal.getVideoElement,$r=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Zn,notifications$:ts,graphIsOpened$:Dr}=So(),no=K(void 0),yr=K(void 0),Jn=K(void 0),yn=K(void 0),yo,xr,Bn;oo.set(W_());let{closeNotification:_t,notificationsToShow$:ai}=ts,wr=v(()=>!!r().slow_video),xn=()=>_t("slow_video"),Sr=v(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Fn=K(void 0),er=ae(!1),on,Hn=ae(!1),nn=ae(),Un=ae(!1),Co=K(!1),rn=K(!1),xo=K(!1),tr=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Qi=v(()=>u()&&!m()&&!(n(Co)||n(rn))&&!(n(xo)&&!f())),ir=!0,or=v(()=>e.uiConfig.features.thumbTimer&&Je()&&s()==="video"&&!p()&&!a()&&!To&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Tr=v(()=>s()==="video"&&!y()&&$()),Oo=K(!1),zn=v(()=>(ze()||e.showAutoplayNext&&S())&&!!xe()&&!!Pe()&&(e.showAds&&I()||!e.showAds)&&C()&&!a()&&!n(Oo)),Br=v(()=>R()&&!(p()||n(zn))&&!u()&&E()&&!k()),yt=K(!1),xt=v(()=>O()!==null),{toggle:ro}=Zn,Pi=!1,so=null;Tt==null||Tt.setContext(wd());let Do=()=>{e.autoplay&&!To&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ii(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Do});let Bo=()=>{window.clearTimeout(yo),Hn.set(!1)},ao=()=>{window.clearTimeout(xr),nn.set(null)},Ii=ge=>{Bo(),Hn.set(!0),yo=window.setTimeout(()=>Hn.set(!1),ge);let wt=ge-100;on=window.setTimeout(()=>{B()&&er.set(!1)},wt>0?wt:ge)},Fr=(ge,wt)=>{ao(),nn.set(wt),xr=window.setTimeout(()=>nn.set(null),ge)},Hr=Di.subscribe(ge=>{No.set(ge),ge&&(window.clearTimeout(Bn),Bn=window.setTimeout(()=>No.set(!1),e.uiConfig.controls.hide360IconTimeout))}),is=async()=>{var wt,Qt,bi,po;let ge=Zs();if(ge){let li=Xd(),ti=nr();ge=li===ti||li===Me()}if(ge){Ii(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Tt==null?void 0:Tt.exit())}catch(li){Jt({message:String(li)})}}pt.set(ge),e.store.getAdmanWrapper().setFullscreen(ge),$()?(Qt=(wt=e.store.callbacks)==null?void 0:wt.onFullscreenEnter)==null||Qt.call(wt):(po=(bi=e.store.callbacks)==null?void 0:bi.onFullscreenExit)==null||po.call(bi)},Cr=ge=>{let{width:wt,height:Qt}=ge.target;Oi.set({width:wt,height:Qt})},sn=()=>{let{width:ge,height:wt}=n(no).getBoundingClientRect();Oi.set({width:ge,height:wt})};Nt(()=>{var wt;return Qu(is),e.uiConfig.features.annotationsInside&&(dt==null||dt.init(n(no))),Oa(Tt)&&(Tt==null||Tt.assignPlayerContainer(n(no)),Tt==null||Tt.setExternalEventHandlers({resize:Cr,leavepictureinpicture:sn})),e.interactiveContainer&&((wt=et().parentElement)==null||wt.insertBefore(e.interactiveContainer,et().nextSibling)),()=>{window.clearTimeout(yo),window.clearTimeout(on),window.clearTimeout(xr),window.clearTimeout(Bn),Hr(),Tt==null||Tt.dispose().catch(Qt=>{Jt({message:String(Qt)})}),Gu(is)}});let nr=()=>{let ge=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!st()?n(no):st(),wt=ge.getRootNode(),Qt=wt instanceof ShadowRoot?wt.host:wt,bi=$e()instanceof HTMLElement&&$e().contains(Qt);return e.uiConfig.allowChangingFullscreenTarget&&$e()&&bi?$e():ge},Io=()=>{je.set(!1)},Fo=()=>{gs(),Io()},Ir=async()=>{if(!$r()){Jt({message:"fullscreen disabled"});return}Io(),Zs()?(await qu(document),Jt({message:"exit fullscreen"})):(Jt({message:"request fullscreen"}),await Ku(nr()))},an=ge=>{y()||(ge.preventDefault(),je.set(!0),_r.set({left:ge.clientX,top:ge.clientY}))};function os(){Un.set(!0),To||Ii(e.uiConfig.controls.hideTimeoutCursor)}function qe(ge){var po,li;let{relatedTarget:wt}=ge,bi=!!(wt&&((po=n(Jn))!=null&&po.contains(wt)))&&((li=nt())==null?void 0:li.isFocused());!To&&!bi&&(er.set(!0),Ii(e.uiConfig.controls.hideTimeoutCursor))}function Lt(){Un.set(!1),N(rn,!1),N(Co,!1),Pi=!1,e.store.actions.internal.releaseCamera(),Ii(e.uiConfig.controls.hideTimeout),k()&&Uo()}function _i(ge){return ge?ge.offsetTop+_i(ge.offsetParent):0}function Eo(ge){return ge?ge.offsetLeft+Eo(ge.offsetParent):0}function Po(ge){if(F()&&bn){let wt=ge.currentTarget,Qt=_i(wt),bi=Eo(wt),po=ge.pageX-bi,li=ge.pageY-Qt,{left:ti,bottom:fo,right:cn}=F(),un=cn-ti;return po>=ti-un&&li<=fo+un}}function Ho(ge){if(n(no)){let wt=_i(ge.currentTarget),Qt=z().height,bi=ge.pageY-wt;if(Po(ge)){N(rn,!1);return}bi<40?N(rn,!0):bi>Qt-40?N(Co,!0):(N(rn,!1),m()||N(Co,!1))}}function lo(ge){Ho(ge),!n(Qi)&&!k()&&Ii(e.uiConfig.controls.hideTimeoutCursor),G()&&Pi&&so&&e.store.actions.internal.moveCameraFocusPX(so.clientX-ge.clientX,so.clientY-ge.clientY,ge.timeStamp-so.timeStamp),so=ge}let Gi=null,wn=()=>{Gi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Bo()},e.uiConfig.doubleForwardActivationTime)},Uo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Gi&&clearTimeout(Gi),Gi=null},co=ge=>{ge.preventDefault(),ge.button===0&&(Pi=!0,e.store.actions.internal.holdCamera(),le()&&wn()),!Pi&&Ii(e.uiConfig.controls.hideTimeoutCursor)},ko=ge=>{ge.preventDefault(),ge.button===0&&(so=ge,Pi=!1,e.store.actions.internal.releaseCamera()),!k()&&Ii(e.uiConfig.controls.hideTimeoutCursor)},rr=ge=>{ge.preventDefault(),ir&&(Jt({message:"double click on video"}),Ir(),Ii(e.uiConfig.controls.hideTimeoutCursor))},sr=ge=>{var wt;if(ge.preventDefault(),k()){Uo();return}if(Gi&&Uo(),X()||m()){Fo();return}if(!(C()&&!Nr)){if(n(xt))return ro();if((wt=nt())==null||wt.focus(),!mt()){e.firstStart(),Ii(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||oe()!==Qv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ii(e.uiConfig.controls.hideTimeoutCursor)}},ln=ge=>{Fo(),io.set(!0),Ii(e.uiConfig.controls.hideTimeout),ge&&Fr(e.uiConfig.controls.hideHotKeyHelpers,ge)},ns=()=>{var ge,wt;Fo(),(ge=e.store.callbacks)!=null&&ge.onOpenHotKeyMap?(wt=e.store.callbacks)==null||wt.onOpenHotKeyMap(j()):Ci.update(Qt=>!Qt)},_s=()=>{io.set(!0)},Er=e.store.ui.contextMenu.openedByBtnKeyboard$,Xe=e.store.ui.contextMenu.btnRef$,Kt=K(void 0),wi=e.store.ui.contextMenu.openedByHotKey$,zo=e.store.ui.contextMenu.lastActiveElem$,dn=e.store.ui.previewTrackActive;De(()=>{_n.set(n(Fn))}),De(()=>{N(xo,n(tr)&&oe()!==Qv.PlaybackState.PLAYING,!0),n(tr)||Pt(()=>N(tr,!0))}),De(()=>{var wt,Qt;let ge=(n(xo)||C()||m()||ve()||ce()||re()||_e())&&!n(Qi)&&(s()==="video"||s()==="ads")&&!a()&&E();jt.set(ge),!ge&&!_e()&&e.uiConfig.returnFocusOnControlsHide&&((wt=n(Jn))!=null&&wt.contains(ep()))&&((Qt=nt())==null||Qt.focus())}),De(()=>{!ve()&&n(yt)&&!u()&&Ii(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>N(yt,ve(),!0))}),De(()=>{n(yn),m(),we(),Pt(()=>nc(n(yn),m(),we()))}),De(()=>{n(Kt),X(),Z(),Ne(),Pt(()=>{let ge=Z()||Ne();nc(n(Kt),X(),ge)})}),De(()=>{let ge=ue();ge&&(X(),Pt(()=>Kl(ge,X(),Er)))}),De(()=>{let ge=P();ge&&(X(),Pt(()=>Y_(ge,X(),wi)))}),De(()=>{var ge;!We()&&$()&&(Pt(()=>Ei.set(!1)),(ge=nt())==null||ge.focus())}),De(()=>{y()&&Fo()});let ar=K(void 0),uo=ge=>{Or.set(jn(Dn(),{title:n(ar)},"title",ge))},Pr=(ge,wt)=>{var li,ti;let Qt=(ti=(li=e.store.callbacks)==null?void 0:li.uiInfo)==null?void 0:ti.onUpcomingLiveViewStateChanged;if(!Qt)return;let bi=!!wt,po={...jn(n(no),{upcomingLiveScreen:wt},"upcomingLiveScreen",bi),...ge};Qt(po)};var bs=wT();gt("blur",xa,Fo);var Sn=de(bs);Sn.__mousemove=lo;var Os=T(Sn);let la=v(()=>s()==="ads"),da=v(()=>n(xt)?ro:void 0);ot(fm(Os,{startDoubleForwardActivationTimer:wn,stopDoubleForward:Uo,toggleFullscreen:Ir,hideContextMenu:Fo,showHotKeyHelpers:ln,showKeyMap:ns,get isAds(){return n(la)},get fakePlayButtonHandler(){return n(da)},get nextButtonActive(){return be()},get prevButtonActive(){return J()},children:(ge,wt)=>{var Qt=yT(),bi=de(Qt);ol(bi,{get hideCursor(){return n(Br)},onClick:sr,onContextMenu:an,onMouseDown:co,onMouseUp:ko,onDblClick:rr,get videoContainer(){return et()},set videoContainer(ti){et(ti)}});var po=A(bi,2);Ea(po,()=>"slot",!1,(ti,fo)=>{ji(ti,()=>({name:il}))});var li=A(po,2);Ts(li,Ce,ti=>{var fo=$T(),cn=de(fo);let un=v(()=>s()!=="thumb"||a()||To&&e.autoplay);Ja(cn,{get hidden(){return n(un)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:an,onClick:Io});var Bi=A(cn,2);{var fd=He=>{Kv(He,{})};V(Bi,He=>{Y()&&He(fd)})}var Ds=A(Bi,2);zv(Ds,{});var sl=A(Ds,2);Wv(sl,{get isVisible(){return k()}});var al=A(sl,2);{var Bs=He=>{let fi=v(()=>{var qo;return(qo=e.live)==null?void 0:qo.startTime});Ac(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(fi)},onUpcomingLiveViewStateChanged:Pr,onContextMenu:an,onClick:Io})};V(al,He=>{s()==="LiveWaitingStart"&&He(Bs)})}var Ur=A(al,2);{var ca=He=>{el(He,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:an,onClick:Io})};V(Ur,He=>{s()==="LiveWaitingRecover"&&He(ca)})}var lr=A(Ur,2);{var md=He=>{el(He,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:an,onClick:Io})};V(lr,He=>{s()==="LiveWaitingRecord"&&He(md)})}var rs=A(lr,2);{var Wn=He=>{var fi=gT();let qo;var ma=T(fi);Jd(ma,{get adsSlotId(){return Ot()},get adsParams(){return Wt()},get adsAutoplayParam(){return Ct()},get duration(){return Zt()},get adsExternalApi(){return e.adsExternalApi}}),w(fi),D(Tn=>qo=se(fi,1,"ads-container s-7",null,qo,Tn),[()=>({hidden:s()!=="ads"})]),_(He,fi)};V(rs,He=>{e.showAds&&mt()&&He(Wn)})}var ua=A(rs,2);{var ll=He=>{let fi=v(()=>!ze()&&e.showAutoplayNext&&S());cm(He,{get title(){return xe()},get thumb(){return Pe()},get isHide(){return n(fi)},clickCloseIcon:()=>N(Oo,!0)})};V(ua,He=>{n(zn)&&xe()&&Pe()&&He(ll)})}var dl=A(ua,2);{var vd=He=>{let fi=v(()=>!p());gv(He,{get title(){return e.title},get isHidden(){return n(fi)},onVisibilityChanged:uo,get ref(){return n(ar)},set ref(qo){N(ar,qo,!0)}})};V(dl,He=>{n(Tr)&&He(vd)})}var cl=A(dl,2);{var ul=He=>{let fi=v(()=>s()==="video"&&p());Pc(He,{get isShifted(){return n(fi)}})};V(cl,He=>{G()&&He(ul)})}var pl=A(cl,2);{var gd=He=>{var fi=hT(),qo=T(fi);jd(qo,{}),w(fi),_(He,fi)};V(pl,He=>{ie()&&He(gd)})}var dr=A(pl,2);{var fl=He=>{kc(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Oe()}})};V(dr,He=>{re()&&He(fl)})}var ut=A(dr,2);{var ft=He=>{Xa(He,{get shifted(){return p()},get captions(){return fe()},get position(){return ee()},get playerSize(){return z()}})};V(ut,He=>{Be().value!=="off"&&He(ft)})}var Fi=A(ut,2);{var Ko=He=>{var fi=_T();fi.__contextmenu=an,fi.__click=[vT,X,je,m,St,Fo];var qo=T(fi);Za(qo,{}),w(fi),_(He,fi)};V(Fi,He=>{a()&&He(Ko)})}var Hi=A(Fi,2);{var $i=He=>{let fi=v(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),qo=v(()=>s()==="ads"),ma=v(()=>e.canRewindLive&&Se()!==0);Ic(He,{get bottomHidden(){return n(fi)},get bottomNoSmooth(){return B()},get showControls(){return p()},get isAds(){return n(qo)},get canRewindLive(){return n(ma)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Dt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ye()},get nextButtonActive(){return be()},get prevButtonActive(){return J()},get isOneVideoPlaylist(){return It()},customFullscreenSupported:ir,toggleFullscreen:Ir,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(yr)},set playerControlsWrapperRef(Tn){N(yr,Tn,!0)},get playerControlsRef(){return n(Jn)},set playerControlsRef(Tn){N(Jn,Tn,!0)}})};V(Hi,He=>{mt()&&He($i)})}var Ai=A(Hi,2);{var pa=He=>{var fi=bT(),qo=T(fi);let ma=v(()=>{var Tn;return(Tn=n(Jn))==null?void 0:Tn.clientHeight});Rc(qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(ma)},returnFocus:()=>{var Tn;return(Tn=nt())==null?void 0:Tn.focus()},get ref(){return n(yn)},set ref(Tn){N(yn,Tn,!0)}}),w(fi),_(He,fi)};V(Ai,He=>{!re()&&s()!=="ads"&&He(pa)})}var ml=A(Ai,2);let Rp=v(()=>!n(or));ic(ml,{get isLive(){return Fe()},get isHidden(){return n(Rp)},get isPlaying(){return Ke()},get position(){return ee()},get duration(){return Se()}});var Yc=A(ml,2);mv(Yc,{get data(){return nn}});var jc=A(Yc,2);lm(jc,{get supportLink(){return e.supportLink},returnFocus:()=>{var He;return(He=nt())==null?void 0:He.focus()},get visible(){return X()},get playerContainerRef(){return n(no)},get position(){return Ye()},get menuElementRef(){return n(Kt)},set menuElementRef(He){N(Kt,He,!0)}});var Xc=A(jc,2);{var Np=He=>{Nc(He,{onClose:xn,onSelectAutoQuality:()=>{br("auto"),xn()}})};V(Xc,He=>{n(wr)&&He(Np)})}var fa=A(Xc,2);{var Op=He=>{qv(He,{})};V(fa,He=>{Te()&&He(Op)})}var Fs=A(fa,2);{var vl=He=>{Ha(He,{})};V(Fs,He=>{n(Sr)&&He(vl)})}var Zc=A(Fs,2);{var Jc=He=>{gm(He,{})};V(Zc,He=>{Le()&&He(Jc)})}var hd=A(Zc,2);{var eu=He=>{sc(He,{})};V(hd,He=>{Ue()&&He(eu)})}_(ti,fo)}),_(ge,Qt)},$$slots:{default:!0}}),ge=>nt(ge),()=>nt());var at=A(Os,2);ot(at,ge=>N(Fn,ge),()=>n(Fn)),w(Sn),ot(Sn,ge=>N(no,ge),()=>n(no));var ei=A(Sn,2);{var Wo=ge=>{var wt=xT();_(ge,wt)};V(ei,ge=>{Vt()&&ge(Wo)})}gt("mouseenter",Sn,os),gt("mouseleave",Sn,Lt),gt("click",Sn,_s,!0),gt("focusin",Sn,qe,!0),_(t,bs),U(),o()}rt(["mousemove","contextmenu","click"]);var aa=require("@vkontakte/videoplayer-core/es2018"),o$=require("@vkontakte/videoplayer-shared/es2018");var TT=L('<div></div> <div class="info s-r"><div class="triangles-wrapper s-r"><div></div> <div></div> <div></div></div> <p class="step-caption s-r"> </p></div>',1),CT=L("<div><!></div>"),IT={hash:"s-r",code:".double-click-area.s-r{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-r{left:0}.double-click-area.right.s-r{right:0}.semicircle.s-r{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-r{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-r{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-r{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-r,.triangles-wrapper.s-r{display:flex;justify-content:center}.triangles-wrapper.s-r{margin-bottom:10px;position:relative}.triangle.s-r{animation:s-r-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-r:nth-child(3),.triangle.right.s-r:first-child{animation-delay:0s}.triangle.left.s-r:nth-child(2),.triangle.right.s-r:nth-child(2){animation-delay:.1s}.triangle.left.s-r:first-child,.triangle.right.s-r:nth-child(3){animation-delay:.2s}@keyframes s-r-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-r{border-right:8px solid var(--white)}.triangle.right.s-r{border-left:8px solid var(--white)}.triangle.s-r:not(:last-child){margin-right:5px}.step-caption.s-r{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function $p(t,e){H(e,!0),q(t,IT);let i=g(e,"seekStep",3,0),o=K(!1),r=0,s=0,l=K(di(i())),d=f=>{f.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(f):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};mn(()=>{window.clearTimeout(r)});var a=CT();a.__click=d;var u=T(a);{var m=f=>{var p=TT(),b=de(p),y=A(b,2),$=T(y),S=T($),I=A(S,2),C=A(I,2);w($);var R=A($,2),E=T(R,!0);w(R),w(y),D(k=>{var O,B,F,z;se(b,1,`semicircle ${(O=e.side)!=null?O:""}`,"s-r"),se(S,1,`triangle ${(B=e.side)!=null?B:""}`,"s-r"),se(I,1,`triangle ${(F=e.side)!=null?F:""}`,"s-r"),se(C,1,`triangle ${(z=e.side)!=null?z:""}`,"s-r"),pe(E,k)},[()=>Q("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),_(f,p)};V(u,f=>{n(o)&&f(m)})}w(a),D(()=>{var f;return se(a,1,`double-click-area ${(f=e.side)!=null?f:""}`,"s-r")}),_(t,a),U()}rt(["click"]);var ET=(t,e,i)=>{e(!1),i()},PT=L('<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),kT={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 Yv(t,e){H(e,!0),q(t,kT);let[i,o]=Ve(),r=()=>x(d,"$autoplayNextEnabled$",i),s=()=>x(a,"$timerNextVideoRunning$",i),l=me(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,f=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),p()},$=()=>{e.clickCloseIcon(),b()};Nt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),p())});var S=Ae(),I=de(S);{var C=R=>{var E=PT(),k=A(de(E),2),O=T(k),B=T(O),F=T(B,!0);w(B);var z=A(B,2);ks(z,{onClick:$}),w(O);var G=A(O,2);G.__click=[ET,u,f];var le=T(G),X=T(le),oe=T(X);let j;var ve=A(oe,2);{var ce=Z=>{ac(Z,{get isRunning(){return s()},onTimerEnded:y})};V(ve,Z=>{r()&&Z(ce)})}w(X),w(le);var re=A(le,2),_e=T(re),we=T(_e,!0);w(_e),w(re),w(G),w(k),D((Z,Ne)=>{pe(F,Z),Qe(X,`background-image: url('${e.thumb}')`),j=se(oe,1,"thumb-overlay s-o",null,j,Ne),pe(we,e.title)},[()=>r()?Q("end_screen_next_video"):Q("end_screen_recommended_video"),()=>({withOpacity:r()})]),_(R,E)};V(I,R=>{e.isHide||R(C)})}_(t,S),U(),o()}rt(["click"]);var Zb=require("@vkontakte/videoplayer-core/es2018");var Jb=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{Zb.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),mn(()=>{i==null||i(),clearTimeout(o)})};var e$=require("@vkontakte/videoplayer-core/es2018");var yp=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 t$=require("@vkontakte/videoplayer-core/es2018"),i$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),m=()=>t$.clientChecker.device.isIOS&&he(l)===e$.VideoFormat.DASH_LIVE_CMAF,f=()=>{a==null||a(),a=null},p=b=>{if(f(),!m()||!b)return;let y=u();if(!y)return;let $=new yp(y),S=he(d),I=he(s),C=he(r);for(let k of S)I.some(B=>B.value===k.id)&&$.attach(k,C.value===k.id);let R=d.subscribe(k=>{for(let O of k)$.updateSrc(O)}),E=()=>{let k=$.getCurrentShowingId();o(he(s).find(O=>O.value===k))};y.textTracks.addEventListener("change",E),a=()=>{R(),$.detachAll(),y.textTracks.removeEventListener("change",E)}};Nt(()=>i.subscribe(p)),mn(f)};var AT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},LT=L("<!> <!>",1),MT=L("<div><!></div>"),VT=L('<div class="spherical-video-icon s-9"><!></div>'),RT=L("<div><!></div>"),NT=L('<div class="settings-mobile s-9"><!></div>'),OT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),DT=L('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),BT={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 jv(t,e){var zn,Br;H(e,!0),q(t,BT);let[i,o]=Ve(),r=()=>x(Me,"$playerPhase",i),s=()=>x(hi,"$isLoaderVisible",i),l=()=>x(xe,"$adPlaybackState",i),d=()=>x(Xt,"$crashed",i),a=()=>x(hs,"$notificationsToShow$",i),u=()=>x(J,"$playbackState$",i),m=()=>x(Dt,"$graphIsOpened$",i),f=()=>x(Je,"$interactiveHideMobileControls",i),p=()=>x(eo,"$isEnded$",i),b=()=>x(dt,"$isInteractiveExpectation$",i),y=()=>x(mt,"$controlsVisible",i),$=()=>x(ct,"$touched",i),S=()=>x(Di,"$autoplayNextEnabled$",i),I=()=>x(pt,"$postrollPassed",i),C=()=>x(Or,"$bottomNoSmooth",i),R=()=>x(yi,"$videoSize",i),E=()=>x(Et,"$playerSize",i),k=()=>x(st,"$isFullscreen",i),O=()=>x(Pe,"$position$",i),B=()=>x(It,"$duration$",i),F=()=>x(No,"$loadedMetadata",i),z=()=>x(ze,"$settingsMenuVisible",i),G=()=>x(Jt,"$scrubbingInProgress",i),le=()=>x(ri,"$volumeChangingInProgress",i),X=()=>x(_o,"$chromecastConnected$",i),oe=()=>x($e,"$isControlsAvailable",i),j=()=>x(si,"$isInteractiveTime$",i),ve=()=>x(St,"$isActiveLive",i),ce=()=>x(nt,"$settingsMenuOpenedByKeyboard",i),re=()=>x(be,"$language$",i),_e=()=>x(Yt,"$disabledControls$",i),we=()=>x(Bt,"$is3DVideo",i),Z=()=>x(W,"$icon3DVideoVisible",i),Ne=()=>x(ci,"$chromecastDeviceName$",i),ue=()=>x(to,"$currentSubtitle$",i),P=()=>x(en,"$currentSubtitleCaptions$",i),We=()=>x(hn,"$realDuration$",i),Ce=()=>x(Ei,"$isLive$",i),Y=()=>x(jt,"$isPlaying$",i),ie=()=>x(pi,"$debugPanelVisible",i),Oe=g(e,"videoContainer",15),Be=g(e,"adsSlotId",3,void 0),fe=g(e,"adsParams",3,void 0),ee=g(e,"adsAutoplayParam",3,void 0),Se=g(e,"duration",3,void 0),Fe=g(e,"logoTargetUrl",3,""),Ke=g(e,"showNextPrevButtons",3,!1),Ye=g(e,"nextButtonActive",3,!1),Te=g(e,"prevButtonActive",3,!1),Le=g(e,"endScreenVideoTitle",3,void 0),Ue=g(e,"endScreenVideoThumb",3,void 0),Vt=g(e,"isOneVideoPlaylist",3,!1),et=g(e,"showMiniTimer",3,!1),Ot=g(e,"fullScreenTarget",3,void 0),Wt=g(e,"playerStarted",3,!1),Ct=g(e,"showEndScreen",3,!0),{notifications$:Zt,graphIsOpened$:Dt}=So(),ye=e.store.getLogger().createComponentLog("Root component"),be=e.store.interfaceLanguage$,J=e.store.state.playbackState$,xe=e.store.ads.playbackState,Pe=e.store.state.positionWithScrubbing$,It=e.store.state.duration$,Me=e.store.playerPhase,st=e.store.ui.isFullscreen,mt=e.store.ui.controlsVisible,$e=e.store.ui.isControlsAvailable,Je=e.store.ui.interactiveHideMobileControls,ze=e.store.ui.settingsMenu.visible$,nt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,ri=e.store.ui.volumeChangingInProgress,pi=e.store.ui.debugPanelVisible,hi=e.store.state.isLoaderVisible,eo=e.store.state.isEnded$,_o=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,pt=e.store.ads.postrollPassed,Ei=e.store.state.isLive$,jt=e.store.state.isPlaying$,St=e.store.state.isActiveLive$,ii=e.store.state.isRewindableLive$,Xt=e.store.state.crashed$,ht=e.store.webApi.annotationsApi,je=e.store.webApi.pictureInPictureApi,yi=e.store.state.videoSize$,to=e.store.state.currentSubtitle$,en=e.store.state.currentSubtitleCaptions$,hn=e.store.state.duration$,Et=e.store.ui.playerSize,Bt=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,At=e.store.state.isInteractive,si=e.store.state.isInteractiveTime$,dt=e.store.state.isInteractiveExpectation$,Tt=e.store.state.hasInteractiveBranches,Yt=e.store.ui.controls.disabledControls$,ct=e.store.ui.touched,Oi=e.store.ui.overlayContainer$,Di=e.store.ui.autoplayNextEnabled$,No=e.store.state.loadedMetadata$,To=e.store.actions.internal.closeSettingsMenu,bo=(zn=e.store.callbacks)==null?void 0:zn.onDisabledPlayPrevChapterClick,qi=(Br=e.store.callbacks)==null?void 0:Br.onDisabledSeekToInteractiveClick,Nr=e.store.actions.internal.setQuality,io=K(void 0),oo=K(void 0),Ci=K(void 0),_n=K(void 0),tn,bn,_r=v(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),br=K(void 0),{closeNotification:gs,notificationsToShow$:hs}=Zt,es=v(()=>!!a().slow_video),Nn=()=>gs("slow_video"),Or=ae(!1),$n,$o=K(!1),On=v(()=>u()!==aa.PlaybackState.PLAYING),Dn=K(!1),$r=v(()=>m()||f()||!n($o)&&(p()&&!!Tt||n(On)&&b())),Zn=K(!0),ts=v(()=>e.uiConfig.features.thumbTimer&&et()&&r()==="video"&&!y()&&!d()&&!At&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Dr=K(!1),no=v(()=>(Ct()||e.showAutoplayNext&&S())&&!!Le()&&!!Ue()&&(e.showAds&&I()||!e.showAds)&&p()&&!d()&&!n(Dr)),yr=K(!1);je==null||je.setContext(wd());let Jn=yt=>{yt&&!At&&yo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Jn});let yn=()=>{clearTimeout(tn),N($o,!1),f()&&Je.set(!1)},yo=yt=>{yn(),N($o,!0),tn=setTimeout(()=>N($o,!1),yt);let xt=yt-100;$n=setTimeout(()=>{C()&&Or.set(!1)},xt>0?xt:yt)},xr=Bt.subscribe(yt=>{W.set(yt),yt&&(clearTimeout(bn),bn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Bn=async(yt=Zs())=>{var xt,ro,Pi,so,Do,Bo;if(yt&&!aa.clientChecker.device.isIOS){let ao=Xd(),Ii=Fn(),Fr=aa.clientChecker.browser.isSamsungBrowser&&ao===e.shadowRootContainer;yt=ao===Ii||Fr}if(yt){yo(e.uiConfig.controls.hideTimeoutFullscreen);try{await(je==null?void 0:je.exit())}catch(ao){ye({message:String(ao)})}try{let ao=(xt=R())!=null&&xt.width&&((ro=R())!=null&&ro.height)?R():E();await z_(ao)}catch(ao){ye({message:String(ao)})}}st.set(yt),e.store.getAdmanWrapper().setFullscreen(yt),k()?(so=(Pi=e.store.callbacks)==null?void 0:Pi.onFullscreenEnter)==null||so.call(Pi):(Bo=(Do=e.store.callbacks)==null?void 0:Do.onFullscreenExit)==null||Bo.call(Do)},_t=yt=>{let xt=yt,{width:ro,height:Pi}=xt.target;Et.set({width:ro,height:Pi})},ai=()=>{let{width:yt,height:xt}=n(io).getBoundingClientRect();Et.set({width:yt,height:xt})};Nt(()=>{var yt;return Qu(Bn),e.uiConfig.features.annotationsInside&&(ht==null||ht.init(n(io))),Oa(je)&&(je==null||je.assignPlayerContainer(n(io)),je==null||je.setExternalEventHandlers({resize:_t,leavepictureinpicture:ai})),N(Zn,!aa.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((yt=Oe().parentElement)==null||yt.insertBefore(e.interactiveContainer,Oe().nextSibling)),()=>{clearTimeout(tn),clearTimeout($n),clearTimeout(bn),xr(),je==null||je.dispose().catch(xt=>{ye({message:String(xt)})}),Gu(Bn)}});let wr=K(!0),xn=K(!0),Sr=yt=>{let xt=O()+(yt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;xt<0?(N(wr,!1),xt=0):xt>=B()&&(N(xn,!1),xt=B()),N(Dn,!0),e.seekTime(xt)},Fn=()=>aa.clientChecker.device.isIOS?n(io):!e.uiConfig.allowChangingFullscreenTarget||!Ot()?e.outerContainerRef:Ot().contains(e.outerContainerRef)?Ot():e.outerContainerRef,er=async()=>{try{if(Zs())await qu(document),ye({message:"exit fullscreen"});else{if(ye({message:"request fullscreen"}),aa.clientChecker.device.isIOS&&!F())return;await Ku(Fn())}}catch(yt){ye({message:String(yt)})}},on=()=>{To()},Hn=yt=>{if(yt.preventDefault(),z()){on();return}if(!Wt()){e.firstStart(),yo(e.uiConfig.controls.hideTimeoutCursor);return}N(Dn,!1),y()?yn():yo(e.uiConfig.controls.hideTimeoutMobile)},nn=()=>{ct.set(!0)},Un=()=>{At||(Or.set(!0),yo(e.uiConfig.controls.hideTimeoutCursor))},Co=yt=>{bo&&(bo(yt),yo(e.uiConfig.controls.hideTimeoutMobile))},rn=yt=>{qi&&(qi(yt),yo(e.uiConfig.controls.hideTimeoutMobile))};De(()=>{Oi.set(n(br))}),De(()=>{mt.set((n(On)||z()||G()||le()||X()||!n(no)&&(p()||n($o)&&!n(Dn)))&&!n($r)&&r()==="video"&&!d()&&oe())}),De(()=>{!G()&&n(yr)&&!j()&&yo(e.uiConfig.controls.hideTimeoutMobile),N(yr,G(),!0)}),De(()=>{N(wr,O()>0),N(xn,!ve()&&O()<B(),!0)}),De(()=>{nc(n(_n),z(),ce(),!0)});let xo=Q("aria_label_video_player");Jb({fullScreenChangeHandler:Bn,getFullscreenTarget:Fn}),i$({store:e.store,getFullscreenTarget:Fn});let tr=(yt,xt)=>{var Do,Bo;let ro=(Bo=(Do=e.store.callbacks)==null?void 0:Do.uiInfo)==null?void 0:Bo.onUpcomingLiveViewStateChanged;if(!ro)return;let Pi=!!xt,so={...jn(n(io),{upcomingLiveScreen:xt},"upcomingLiveScreen",Pi),...yt};ro(so)};var Qi=DT();gt("blur",xa,on);var ir=T(Qi);ol(ir,{onClick:Hn,get videoContainer(){return Oe()},set videoContainer(yt){Oe(yt)}});var or=A(ir,2);Ea(or,()=>"slot",!1,(yt,xt)=>{ji(yt,()=>({name:il}))});var Tr=A(or,2);Ts(Tr,re,yt=>{var xt=OT(),ro=de(xt);let Pi=v(()=>r()!=="thumb"||d()||At&&e.autoplay);Ja(ro,{get hidden(){return n(Pi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var so=A(ro,2);{var Do=Xe=>{var Kt=LT(),wi=de(Kt);{var zo=uo=>{let Pr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$p(uo,{side:"left",get seekStep(){return n(Pr)},handleSingleFirstClick:Hn,handleSecondClick:()=>Sr("backward")})};V(wi,uo=>{n(wr)&&uo(zo)})}var dn=A(wi,2);{var ar=uo=>{let Pr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);$p(uo,{side:"right",get seekStep(){return n(Pr)},handleSingleFirstClick:Hn,handleSecondClick:()=>Sr("forward")})};V(dn,uo=>{n(xn)&&uo(ar)})}_(Xe,Kt)};V(so,Xe=>{e.canRewindLive&&ii&&!_e().has("TIMELINE")&&Xe(Do)})}var Bo=A(so,2);{var ao=Xe=>{let Kt=v(()=>{var wi;return(wi=e.live)==null?void 0:wi.startTime});Ac(Xe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Kt)},onUpcomingLiveViewStateChanged:tr})};V(Bo,Xe=>{r()==="LiveWaitingStart"&&Xe(ao)})}var Ii=A(Bo,2);{var Fr=Xe=>{el(Xe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Ii,Xe=>{r()==="LiveWaitingRecover"&&Xe(Fr)})}var Hr=A(Ii,2);{var is=Xe=>{el(Xe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Hr,Xe=>{r()==="LiveWaitingRecord"&&Xe(is)})}var Cr=A(Hr,2);{var sn=Xe=>{var Kt=MT();let wi;var zo=T(Kt);Jd(zo,{get adsSlotId(){return Be()},get adsParams(){return fe()},get adsAutoplayParam(){return ee()},get duration(){return Se()},get adsExternalApi(){return e.adsExternalApi}}),w(Kt),D(dn=>wi=se(Kt,1,"ads-container s-9",null,wi,dn),[()=>({hidden:r()!=="ads"})]),_(Xe,Kt)};V(Cr,Xe=>{e.showAds&&Wt()&&Xe(sn)})}var nr=A(Cr,2);{var Io=Xe=>{let Kt=v(()=>!Ct()&&e.showAutoplayNext&&S());Yv(Xe,{get title(){return Le()},get thumb(){return Ue()},get isHide(){return n(Kt)},clickCloseIcon:()=>N(Dr,!0)})};V(nr,Xe=>{n(no)&&Le()&&Ue()&&Xe(Io)})}var Fo=A(nr,2);{var Ir=Xe=>{Pc(Xe,{})};V(Fo,Xe=>{we()&&Xe(Ir)})}var an=A(Fo,2);{var os=Xe=>{var Kt=VT(),wi=T(Kt);jd(wi,{}),w(Kt),_(Xe,Kt)};V(an,Xe=>{Z()&&Xe(os)})}var qe=A(an,2);{var Lt=Xe=>{kc(Xe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(qe,Xe=>{X()&&Xe(Lt)})}var _i=A(qe,2);{var Eo=Xe=>{Xa(Xe,{get shifted(){return y()},get captions(){return P()},get position(){return O()},get playerSize(){return E()},isMobile:!0})};V(_i,Xe=>{ue().value!=="off"&&Xe(Eo)})}var Po=A(_i,2);{var Ho=Xe=>{var Kt=RT();Kt.__click=[AT,z,ze,on];var wi=T(Kt);Za(wi,{}),w(Kt),_(Xe,Kt)};V(Po,Xe=>{d()&&Xe(Ho)})}var lo=A(Po,2);{var Gi=Xe=>{let Kt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),wi=v(()=>r()==="ads"),zo=v(()=>e.canRewindLive&&We()!==0);Ic(Xe,{get bottomHidden(){return n(Kt)},get showControls(){return y()},get bottomNoSmooth(){return C()},get isAds(){return n(wi)},get canRewindLive(){return n(zo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Fe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ke()},get nextButtonActive(){return Ye()},get prevButtonActive(){return Te()},get isOneVideoPlaylist(){return Vt()},get customFullscreenSupported(){return n(Zn)},get endScreenShown(){return n(no)},toggleFullscreen:er,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Co,onDisabledSeekToInteractiveClick:rn,get playerControlsWrapperRef(){return n(oo)},set playerControlsWrapperRef(dn){N(oo,dn,!0)},get playerControlsRef(){return n(Ci)},set playerControlsRef(dn){N(Ci,dn,!0)}})};V(lo,Xe=>{Wt()&&Xe(Gi)})}var wn=A(lo,2);{var Uo=Xe=>{var Kt=NT(),wi=T(Kt);Rc(wi,{get supportLink(){return e.supportLink},get returnFocus(){return o$.noop},get ref(){return n(_n)},set ref(zo){N(_n,zo,!0)}}),w(Kt),_(Xe,Kt)};V(wn,Xe=>{z()&&Xe(Uo)})}var co=A(wn,2);let ko=v(()=>!n(ts));ic(co,{get isLive(){return Ce()},get isHidden(){return n(ko)},get isPlaying(){return Y()},get position(){return O()},get duration(){return B()}});var rr=A(co,2);{var sr=Xe=>{Ha(Xe,{})};V(rr,Xe=>{n(_r)&&Xe(sr)})}var ln=A(rr,2);{var ns=Xe=>{sc(Xe,{})};V(ln,Xe=>{ie()&&Xe(ns)})}var _s=A(ln,2);{var Er=Xe=>{Nc(Xe,{onClose:Nn,onSelectAutoQuality:()=>{Nr("auto"),Nn()}})};V(_s,Xe=>{n(es)&&Xe(Er)})}_(yt,xt)});var Oo=A(Tr,2);ot(Oo,yt=>N(br,yt),()=>n(br)),w(Qi),ot(Qi,yt=>N(io,yt),()=>n(io)),D(()=>Re(Qi,"aria-label",xo)),gt("click",Qi,nn,!0),gt("focusin",Qi,Un,!0),_(t,Qi),U(),o()}rt(["click"]);function xp(t){let e="";return Ji(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Ji(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Ji(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Ji(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Ji(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Ji(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Ji(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Ji(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Ji(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Ji(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Ji(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Ji(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Ji(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Ji(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Ji(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Ji(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Ji(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Ji(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Ji(t.font)&&(e+=`--font:${t.font};`),Ji(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Ji(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Ji(t){return typeof t=="string"&&!t.includes(";")}var n$=require("@vkontakte/videoplayer-shared/es2018");var FT=L('<div class="time-container s-8"><!></div>'),HT=L('<div class="player-wrapper s-8" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),UT={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%}.timeline.s-8{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-8{opacity:1}.time-container.s-8{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function Xv(t,e){H(e,!0),q(t,UT);let[i,o]=Ve(),r=()=>x(j,"$scrubbingInProgress",i),s=()=>x(X,"$playerSize",i),l=()=>x(O,"$isPlaying$",i),d=()=>x(E,"$duration$",i),a=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(C,"$playerPhase",i),m=()=>x(R,"$crashed$",i),f=()=>x(B,"$currentSubtitle$",i),p=()=>x(F,"$currentSubtitleCaptions$",i),b=()=>x(k,"$positionExact$",i),y=()=>x(G,"$isLive$",i),$=()=>x(le,"$isRewindableLive$",i),S=g(e,"outsideDuration",3,0),I=g(e,"videoContainer",15),{playerPhase:C,state:{crashed$:R,duration$:E,positionExact$:k,isPlaying$:O,currentSubtitle$:B,currentSubtitleCaptions$:F,positionWithScrubbing$:z,isLive$:G,isRewindableLive$:le},ui:{playerSize:X,controls:oe,scrubbingInProgress:j},actions:{internal:{getVideoElement:ve}}}=me(),ce=8,re=K(!1),_e=di({}),we=K(!1),Z=v(()=>!r()&&!n(we)),Ne=()=>{N(re,!0)},ue=()=>{N(re,!1)},P=(0,n$.debounceFn)(ed,260);De(()=>{s(),P(ve(),oe,_e,n(re))});let We=v(()=>l()?Jo(d()-a()):Jo(isFinite(d())?d():S()));var Ce=HT(),Y=T(Ce);ol(Y,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Le){I(Le)}});var ie=A(Y,2);Ea(ie,()=>"slot",!1,(Le,Ue)=>{ji(Le,()=>({name:il}))});var Oe=A(ie,2);let Be=v(()=>u()!=="thumb"||m());Ja(Oe,{get hidden(){return n(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var fe=A(Oe,2);{var ee=Le=>{Xa(Le,{shifted:!1,get captions(){return p()},get position(){return b()},get playerSize(){return s()}})};V(fe,Le=>{f().value!=="off"&&n(Z)&&Le(ee)})}var Se=A(fe,2);{var Fe=Le=>{var Ue=FT(),Vt=T(Ue);tc(Vt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(We)}}),w(Ue),_(Le,Ue)};V(Se,Le=>{n(Z)&&Le(Fe)})}var Ke=A(Se,2);let Ye;var Te=T(Ke);Ga(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(Le){_e.timeline=Le}}),w(Ke),w(Ce),D(Le=>Ye=se(Ke,1,"timeline s-8",null,Ye,Le),[()=>({visible:n(re)})]),gt("mouseenter",Ce,Ne),gt("mouseleave",Ce,ue),gt("mouseenter",Ke,()=>N(we,!0)),gt("mouseleave",Ke,()=>N(we,!1)),_(t,Ce),U(),o()}var zT=L("<div><!></div>"),WT={hash:"s-1",code:'.vk-vp-root.s-1{--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;--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-1{overflow:visible}.vk-vp-root.s-1 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-1 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-1 p{margin:0}.vk-vp-root.s-1 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-1 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-1 :focus,.vk-vp-root.s-1 :focus-visible{outline:none}.vk-vp-root.s-1 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-1 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-1 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-1 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-1 .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-1 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-1 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function Zv(t,e){H(e,!0),q(t,WT);let[i,o]=Ve(),r=()=>x(Wt,"$isLive$",i),s=()=>x(ht,"$availableSubtitlesList$",i),l=()=>x(je,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),a=g(e,"store",7),u=g(e,"microStoresRoot",7),m=g(e,"videoConfig",7),f=g(e,"uiConfig",7),p=g(e,"title",7),b=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),$=g(e,"interactiveController",7),S=g(e,"subtitles",7),I=g(e,"subtitlesForcedLanguage",7),C=g(e,"live",7),R=g(e,"preload",7),E=g(e,"autoplay",7),k=g(e,"volume",7,void 0),O=g(e,"muted",7,void 0),B=g(e,"fromTime",7),F=g(e,"canRewindLive",7),z=g(e,"showAds",7),G=g(e,"adsSlotId",7,void 0),le=g(e,"adsParams",7,void 0),X=g(e,"adsAutoplayParam",7,void 0),oe=g(e,"duration",7,void 0),j=g(e,"logoClickable",7),ve=g(e,"logoHidden",7),ce=g(e,"isMobile",7),re=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),we=g(e,"prevButtonActive",7,!1),Z=g(e,"endScreenVideoTitle",7,void 0),Ne=g(e,"endScreenVideoThumb",7,void 0),ue=g(e,"isOneVideoPlaylist",7,!1),P=g(e,"supportLink",7),We=g(e,"shadowRootContainer",7),Ce=g(e,"outerContainerRef",7),Y=g(e,"fullScreenTarget",7,void 0),ie=g(e,"failoverHosts",7,void 0),Oe=g(e,"showMiniTimer",7,!1),Be=g(e,"saveRate",7),fe=g(e,"seekToInteractive",7,nl.noop),ee=g(e,"playPrevChapter",7,nl.noop),Se=g(e,"volumeMultiplier",7),Fe=g(e,"showAutoplayNext",7),Ke=g(e,"showEndScreen",7,!0),Ye=g(e,"keyboardControls",15,void 0),{subscribers:Te,stores:Le}=u();Zh(f());let Ue=Mt(),Vt=f().logoLink,et=a().ui.debugPanelVisible,Ot=a().ui.playerSize,Wt=a().state.isLive$,Zt=a().state.isInteractive&&rd.clientChecker.device.isAndroid,Dt=K(void 0),ye=null,be=K(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),d_(a(),Le),De(()=>{var W,At;a().ui.isMobile.set(ce()),(At=(W=m().callbacks)==null?void 0:W.onDomReady)==null||At.call(W)});let J=(W=!1)=>{N(be,!0),W?a().actions.external.firstStart(z()):a().actions.internal.firstStart(z())},xe=()=>{if(Ue.features.qualityDetailsSubMenuEnabled){let W=A_(a().videoId);if(W)switch(W.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,W.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,W.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(W.quality);break}}else{L_(a().videoId),Wf()&&a().actions.internal.setTrafficSavingEnabled(!0);let At=Ff(a().videoId);At&&a().actions.internal.setQuality(At)}};function Pe(W){var Yt,ct,Oi;let At=d()||W;At&&a().initVideo({container:n(Dt),sources:At,failoverHosts:ie(),subtitles:S(),subtitlesForcedLanguage:I(),volumeMultiplier:Se()});let si=nl.safeStorage.get(Kd)==="true";et.set(si),B()>0&&a().actions.external.seekTime(B());let dt=ce()?Ue.volumeDefault:(ct=(Yt=k())!=null?Yt:Nu())!=null?ct:Ue.volumeDefault,Tt=(Oi=O())!=null?Oi:T_();if(a().actions.external.setVolume(dt),a().actions.external.setMuted(Tt),a().getAdmanWrapper().setInitialVolume(Tt?0:dt),xe(),Ue.features.saveRate&&Be()){let Di=E_();Di&&!r()&&a().actions.internal.setPlaybackRate(Di)}if(Fe()){let Di=k_();Di&&a().actions.internal.setAutoplayNextEnabled(Di)}a().ui.isAutoplay.set(E()),E()&&J(),R()&&Ue.features.preload&&a().actions.internal.preload()}let It=W=>{if(window.ResizeObserver){let At,si;ye=new ResizeObserver((0,nl.throttleFn)(dt=>{let Tt=dt[0];if(Tt.contentBoxSize){let Yt=Array.isArray(Tt.contentBoxSize)?Tt.contentBoxSize[0]:Tt.contentBoxSize;At=Yt.inlineSize,si=Yt.blockSize}else Tt.contentRect&&(At=Tt.contentRect.width,si=Tt.contentRect.height);Ot.set({width:At,height:si})},300)),ye.observe(W)}Ot.set({width:W.clientWidth,height:W.clientHeight})},Me=()=>{document.hidden&&a().actions.external.stop()};Nt(()=>{var si,dt,Tt,Yt;Zt&&document.addEventListener("visibilitychange",Me),Ue.debugLog&&a().actions.internal.startLogging(),It(n(Dt));let W=Te.map(ct=>ct.init({store:a(),microStores:Le,config:m(),interactiveController:$(),uiConfig:f()})),At=()=>{Zt&&document.removeEventListener("visibilitychange",Me),ye==null||ye.disconnect(),W.forEach(ct=>ct.unsubscribe()),a().destroy()};return((si=C())==null?void 0:si.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),At):((dt=C())==null?void 0:dt.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),At):(((Tt=C())==null?void 0:Tt.status)==="finished"||((Yt=C())==null?void 0:Yt.status)==="postlive")&&!(d()&&(0,rd.areValidLiveRecordSources)(d()))?(a().actions.internal.setLiveWaitingRecord(!0),At):(Pe(),At)});function st(){n(be)?a().actions.external.play():J(!0)}function mt(){a().actions.external.pause()}function $e(W){a().actions.external.setMuted(W)}function Je(){a().actions.external.toggleSubtitle()}function ze(W,At){a().actions.external.changeSubtitle(W,At)}function nt(W){a().actions.external.changeAudioStream(W)}function Jt(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.hideControls()}function ri(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.showControls()}function pi(W){ce()||W>=0&&W<=1&&a().actions.external.setVolume(W)}function hi(W){a().actions.internal.seekTime(W,r$.SeekAction.UNKNOWN)}function eo(W){a().actions.external.seekEpisodeStartTime(W)}function _o(){a().actions.external.returnFocusToEpisodes()}function ci(W){a().actions.external.setPlaybackRate(W)}function pt(W){a().actions.external.setAutoQualityLimits(W)}function Ei(){a().actions.external.setQuality("auto")}function jt(W){a().actions.external.setTrafficSavingEnabled(W)}function St(W){a().actions.external.setHighQualityEnabled(W)}let ii=xp(Ue.view),Xt=m().playerView==="preview",ht=a().state.availableSubtitlesList$;if(Ue.features.initSubtitles){let W=!1;De(()=>{var At;if(!W&&s().length){W=!0;let si;if(Ue.features.userVideoPrefs&&a().videoId){let Tt=Fu(Ue.userSalt,String(a().videoId));Tt!=null&&Tt.subtitleTrackId&&(si=s().find(Yt=>Yt.value===Tt.subtitleTrackId))}let dt=(At=I())!=null?At:qf();dt&&(si=s().find(Tt=>Tt.language===dt)),a().actions.internal.setSubtitle(si)}})}let je=a().ui.isPreviewTrackHorizontallyAligned;var yi=zT();let to;var en=T(yi);{var hn=W=>{jv(W,{get store(){return a()},get uiConfig(){return Ue},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return E()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return j()},get logoHidden(){return ve()},get logoTargetUrl(){return Vt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return P()},get shadowRootContainer(){return We()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Oe()},get playerStarted(){return n(be)},get seekToInteractive(){return fe()},get playPrevChapter(){return ee()},firstStart:J,seekTime:hi,get showEndScreen(){return Ke()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Dt)},set videoContainer(At){N(Dt,At,!0)}})},Et=W=>{var At=Ae(),si=de(At);{var dt=Yt=>{Xv(Yt,{get thumbUrl(){return b()},get outsideDuration(){return oe()},get canRewindLive(){return F()},get videoContainer(){return n(Dt)},set videoContainer(ct){N(Dt,ct,!0)}})},Tt=Yt=>{Gv(Yt,{get store(){return a()},get uiConfig(){return Ue},get title(){return p()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return E()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return j()},get logoHidden(){return ve()},get logoTargetUrl(){return Vt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return P()},get shadowRootContainer(){return We()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Oe()},get playerStarted(){return n(be)},get seekToInteractive(){return fe()},get playPrevChapter(){return ee()},firstStart:J,get showEndScreen(){return Ke()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Dt)},set videoContainer(ct){N(Dt,ct,!0)},get keyboardControls(){return Ye()},set keyboardControls(ct){Ye(ct)}})};V(si,Yt=>{Xt?Yt(dt):Yt(Tt,!1)})}_(W,At)};V(en,W=>{ce()?W(hn):W(Et,!1)})}w(yi),D(W=>{to=se(yi,1,"vk-vp-root s-1",null,to,W),Qe(yi,ii)},[()=>({"root--miui-browser":rd.clientChecker.device.isMobile&&rd.clientChecker.browser.isMiuiBrowser,"visible-outside":Xt,"preview-track-horizontally-alinged":l()})]),_(t,yi);var Bt=U({initVideo:Pe,play:st,pause:mt,setMuted:$e,toggleSubtitle:Je,changeSubtitle:ze,changeAudioStream:nt,hideControls:Jt,showControls:ri,setVolume:pi,seekTime:hi,seekEpisodeStartTime:eo,returnFocusToEpisodes:_o,setPlaybackRate:ci,setAutoQualityLimits:pt,setAutoQuality:Ei,toggleTrafficSaving:jt,toggleHighQuality:St,get sources(){return d()},set sources(W){d(W)},get store(){return a()},set store(W){a(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return m()},set videoConfig(W){m(W)},get uiConfig(){return f()},set uiConfig(W){f(W)},get title(){return p()},set title(W){p(W)},get thumbUrl(){return b()},set thumbUrl(W){b(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return $()},set interactiveController(W){$(W)},get subtitles(){return S()},set subtitles(W){S(W)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(W){I(W)},get live(){return C()},set live(W){C(W)},get preload(){return R()},set preload(W){R(W)},get autoplay(){return E()},set autoplay(W){E(W)},get volume(){return k()},set volume(W){k(W)},get muted(){return O()},set muted(W){O(W)},get fromTime(){return B()},set fromTime(W){B(W)},get canRewindLive(){return F()},set canRewindLive(W){F(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return G()},set adsSlotId(W){G(W)},get adsParams(){return le()},set adsParams(W){le(W)},get adsAutoplayParam(){return X()},set adsAutoplayParam(W){X(W)},get duration(){return oe()},set duration(W){oe(W)},get logoClickable(){return j()},set logoClickable(W){j(W)},get logoHidden(){return ve()},set logoHidden(W){ve(W)},get isMobile(){return ce()},set isMobile(W){ce(W)},get showNextPrevButtons(){return re()},set showNextPrevButtons(W){re(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return we()},set prevButtonActive(W){we(W)},get endScreenVideoTitle(){return Z()},set endScreenVideoTitle(W){Z(W)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(W){Ne(W)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(W){ue(W)},get supportLink(){return P()},set supportLink(W){P(W)},get shadowRootContainer(){return We()},set shadowRootContainer(W){We(W)},get outerContainerRef(){return Ce()},set outerContainerRef(W){Ce(W)},get fullScreenTarget(){return Y()},set fullScreenTarget(W){Y(W)},get failoverHosts(){return ie()},set failoverHosts(W){ie(W)},get showMiniTimer(){return Oe()},set showMiniTimer(W){Oe(W)},get saveRate(){return Be()},set saveRate(W){Be(W)},get showAutoplayNext(){return Fe()},set showAutoplayNext(W){Fe(W)},get seekToInteractive(){return fe()},set seekToInteractive(W){fe(W)},get playPrevChapter(){return ee()},set playPrevChapter(W){ee(W)},get volumeMultiplier(){return Se()},set volumeMultiplier(W){Se(W)},get showEndScreen(){return Ke()},set showEndScreen(W){Ke(W)},get keyboardControls(){return Ye()},set keyboardControls(W){Ye(W)}});return o(),Bt}var KT=Ee('<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 Jv(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Ze(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,s)=>{var l=KT();ui(9),_(r,l)},$$slots:{default:!0}})}var qT=L('<div class="title s-3"> </div>'),QT=L('<div class="playerStub s-3"><!> <!></div>'),GT={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 eg(t,e){q(t,GT);var i=QT(),o=T(i);{var r=d=>{var a=qT(),u=T(a,!0);w(a),D(()=>pe(u,e.title)),_(d,a)};V(o,d=>{e.title&&d(r)})}var s=A(o,2);{var l=d=>{let a=v(()=>!!e.thumbUrl);Jv(d,{get isWhite(){return n(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}w(i),D(()=>Qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}var YT=L('<div class="playerError s-2"><!></div>'),jT={hash:"s-2",code:".playerError.s-2{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 tg(t){q(t,jT);var e=YT(),i=T(e);Za(i,{}),w(e),_(t,e)}var Mp=require("@vkontakte/videoplayer-shared/es2018"),Ni=require("@vkontakte/videoplayer-shared/es2018"),Gc=require("@vkontakte/videoplayer-core/es2018"),ud=require("@vkontakte/videoplayer-statistics/es2018");var Sp=require("@vkontakte/videoplayer-shared/es2018"),wp=class{constructor(){this.subscription=new Sp.Subscription,this.logger=new Sp.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,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}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 s,l;let o=he(e.state.currentPlaybackRate$),r=he(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{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()}};var ad=require("@vkontakte/videoplayer-shared/es2018");var XT=Ee('<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),ZT=L('<div><div><!></div> <span class="title s-6"> </span></div>'),JT={hash:"s-6",code:".player-pip-dummy.s-6{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-6{position:relative}.dummy-image.s-6 svg{transform:scale(1.07143)}.dummy-image.desktop.s-6{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-6{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function ig(t,e){H(e,!0),q(t,JT);let[i,o]=Ve(),r=()=>x(u,"$interfaceLanguage$",i),s=()=>x(m,"$isMobile$",i),l=me(),d=Mt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,f=l.ui.t,p=v(()=>r()&&f("pip_dummy_title")),b=xp(d.view);var y=ZT();let $;var S=T(y);let I;var C=T(S);Ze(C,{width:"57",height:"56",testId:"pip-dummy-icon",children:(k,O)=>{var B=XT();ui(),_(k,B)},$$slots:{default:!0}}),w(S);var R=A(S,2),E=T(R,!0);w(R),w(y),D((k,O)=>{$=se(y,1,"player-pip-dummy s-6",null,$,k),Qe(y,b),I=se(S,1,"dummy-image s-6",null,I,O),pe(E,n(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),_(t,y),U(),o()}var eC=Object.defineProperty,tC=(t,e,i)=>e in t?eC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,sd=(t,e,i)=>tC(t,typeof e!="symbol"?e+"":e,i),iC=460,oC=280,Bc=class{constructor({enabled:e=!0}={enabled:!0}){sd(this,"playerDomElement"),sd(this,"playerParentShadowRoot"),sd(this,"playerDummyElement"),sd(this,"svelteContext"),sd(this,"pipWindow"),sd(this,"info",{isActive$:new ad.ValueSubject(!1),isEnabled$:new ad.ValueSubject(!1),type:1}),this.info.isEnabled$=new ad.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,ad.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:iC,height:oC,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
63
+ `),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Qr(ig,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ia(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function s$(t){return t instanceof Bc}var Tp=class{static getLatestSupportedVersion(e){let i=new Na(e),o=new Bc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Fc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var a$="Inner error. Unexpectedly root annotation container null reference exception",l$="Annotation with such name already exists",d$="Annotation with such name does not exist";var ld=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var dd=require("@vkontakte/videoplayer-shared/es2018"),nC="1",rC=100,Cp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new dd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,dd.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"},rC);this.subscriptions.add((0,dd.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 ld(a$);if(this.annotations.has(e))throw new ld(l$);i.style.zIndex=(o=i.style.zIndex)!=null?o:nC,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 ld(d$);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,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var rl=require("@vkontakte/videoplayer-shared/es2018"),gn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,rl.assertNonNullable)(e),(0,rl.assertNonNullable)(i),(0,rl.assertNonNullable)(r),r.interactiveData&&(0,rl.assertNonNullable)(o),this.subscription=new rl.Subscription,this.subscription}};var Hc=class extends gn{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(s=>{this.state$.set(s?!0:null)})),o}};var Uc=class extends gn{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:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:m}=s.ui,f=he(m),p=()=>f&&he(u);return o.add(u.subscribe(b=>{if(!f)return;let y=he(l);he(a)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(a.subscribe(b=>{this.state$.set(!b||p())})),o.add(l.subscribe(b=>{if(b===null)return;let y=he(d);if(p()){this.state$.set(!0);return}y&&this.state$.set(!b)})),o}};var zc=class extends gn{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(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var c$=require("@vkontakte/videoplayer-shared/es2018"),og=ae(!1),Ip=null,Wc=class extends gn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...og,set:(i,o=!1)=>{i!==he(og)&&(this.clearTimeout(),og.set(i),!i&&Ip&&(Ip=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(f=>{he(l)&&f&&this.state$.set(!1)}));let m=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,c$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:f,isInteractiveTime$:p,interactiveTimeIndicator:b})=>{var y,$;if(!(!f||!(b!=null&&b.isDisplayed))){if(!p)return this.state$.set(!1);m.tooltipHelpHintActive&&Ip===null&&(Ip=!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 Ep=require("@vkontakte/videoplayer-shared/es2018");var Kc=class extends gn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:Ep.noop};this.checkIfShouldHide=i=>As(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(he(l)))return;let a=he(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:f}=r.ui.controls,p=he(u),b=he(m);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),f.remove(Mf),!p&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),f.add(Mf),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}},o.add((0,Ep.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(f){d({message:"Cant hide graph"})}})),o}};var ng=require("@vkontakte/videoplayer-shared/es2018"),qc=class extends gn{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$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new ng.ValueSubject(!1),isEnabled$:new ng.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var kp=require("@vkontakte/videoplayer-shared/es2018");var Pp=require("@vkontakte/videoplayer-shared/es2018"),u$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?sC({maxCount:t}):void 0,e!==0?aC({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},sC=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Pp.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}}},aC=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Pp.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>Pp.safeStorage.set(e,JSON.stringify(s)),r=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&r(s),d}else return!0}}};var Qc=class extends gn{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:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=u$({maxShowCount:s,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")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var p$=()=>[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 cd=require("@vkontakte/videoplayer-shared/es2018");var Ap=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var lC=L('<div class="root s-0"><!></div>'),dC={hash:"s-0",code:".root.s-0{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function rg(t,e){H(e,!0),q(t,dC);let i=null,o=K(null);De(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=Ae(),l=de(s);{var d=a=>{var u=Ae(),m=de(u);Ts(m,()=>n(o),f=>{var p=lC(),b=T(p);let y=v(()=>n(o)==="prev");Dc(b,{get duration(){return e.animationDuration},get Icon(){return sa},get reversed(){return n(y)}}),w(p),_(f,p)}),_(a,u)};V(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return _(t,s),U({startVideoChangedAnimation:r})}var cC=Object.defineProperty,uC=(t,e,i)=>e in t?cC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gt=(t,e,i)=>uC(t,typeof e!="symbol"?e+"":e,i),pC={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ni.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Xn=K(void 0),sg=di({animationDuration:0,playbackStatusShow:!1}),Lp=class extends HTMLElement{constructor(){super(),Gt(this,"svelteStubComponent"),Gt(this,"svelteRootComponent"),Gt(this,"sveltePersistentLayerComponent"),Gt(this,"svelteErrorComponent"),Gt(this,"store"),Gt(this,"microStoresRoot"),Gt(this,"statistics"),Gt(this,"sentry"),Gt(this,"_shadowRoot"),Gt(this,"playerContainer"),Gt(this,"rootContainer"),Gt(this,"stateContainer"),Gt(this,"shadowRootContainer"),Gt(this,"playerId"),Gt(this,"uiConfig"),Gt(this,"coreConfig"),Gt(this,"statisticsConfig"),Gt(this,"interactiveController"),Gt(this,"interactiveContainer"),Gt(this,"graphMadePause"),Gt(this,"currentPlayingVideoIndex",0),Gt(this,"needToRepeatPlaylist",!1),Gt(this,"videoConfig"),Gt(this,"pictureInPictureApi"),Gt(this,"mediaSessionApi"),Gt(this,"unsubscribePlayerPhaseSubscription"),Gt(this,"logger"),Gt(this,"log"),Gt(this,"subscription"),Gt(this,"interactiveSubscription"),Gt(this,"annotationsApi"),Gt(this,"slotsApi"),Gt(this,"focusManager"),Gt(this,"prevIsid"),Gt(this,"isInited",!1),Gt(this,"postponedInitParams",null),Gt(this,"internalsExposure",null),Gt(this,"shadowDOMCallbacksDisabled",!1),Gt(this,"fatalError$",new Mp.ValueSubject(null)),Gt(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:m,statVKAppId:f,refreshStatAuthToken:p,autoplay:b,isMobile:y,isTouch:$,refDomain:S,deviceId:I,interactiveData:C}=Fc(this.videoConfig,i),R=(o=C==null?void 0:C.projectInfo)==null?void 0:o.pid,E=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:O=!1}=e;if(this.uiConfig.features.statistics&&k)try{return new ud.OneStat({movieId:k,albumId:d,place:a,trackCode:m,vkAppId:f,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:y,clip:O,refDomain:S,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||E)&&{projectId:Number(R)}},{refreshAuthToken:p,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(F){console.error(F),this.log({message:F.message})}}),cd.devNull.create("ui"),this.logger=new Ni.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ni.Subscription,this.interactiveSubscription=new Ni.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Qr(tg,{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,s=di({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Qr(eg,l),this.sveltePersistentLayerComponent=Qr(rg,{target:this.playerContainer,props:sg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;sg.animationDuration=e,sg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,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(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),cd.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:s}=Fc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new ud.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,m,f,p,b;if(!this.videoConfig)return;let{albumId:y,statPlace:$,statAuthToken:S,preload:I,autoplay:C,volume:R,muted:E,fromTime:k,canRewindLive:O,supportLink:B,showAds:F,adsSlotId:z,adsParams:G={},adsAutoplayParam:le,interfaceLanguage:X,isCyrillicRelatedInterface:oe,logoClickable:j,logoHidden:ve,isMobile:ce,isTouch:re,isAudioDisabled:_e,isLiveCatchUpMode:we,fullScreenTarget:Z,failoverHosts:Ne,canDownload:ue,callbacks:P,interactiveData:We,showThumbTimer:Ce,additionalButtons:Y=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:Oe=[],repeat:Be,loop:fe,saveRate:ee,volumeMultiplier:Se,showEndScreen:Fe,showAutoplayNext:Ke,mediascopePixels:Ye}=Fc(this.videoConfig,i),{sources:Te,title:Le,thumbUrl:Ue,unitedVideoId:Vt,isClip:et=!1,duration:Ot,adsParams:Wt={},videoEpisodes:Ct,previewThumbsData:Zt,subtitles:Dt,subtitlesForcedLanguage:ye,live:be,adsExternalApi:J}=e;if(!Te&&!be){let ci=new Error("empty sources and live");this.fatalError$.next(ci),(r=P.onCrashed)==null||r.call(P,ci.message);return}let xe={...G,...Wt},Pe=this.getNextVideoInfo(),It={sources:Te,title:Le,thumbUrl:Ue,subtitles:Dt,subtitlesForcedLanguage:ye,unitedVideoId:Vt,isClip:et,live:be,albumId:y,statPlace:$,autoplay:C,muted:E,volume:R,fromTime:k,canRewindLive:O,showAds:F,adsSlotId:z,adsParams:xe,adsAutoplayParam:le,duration:Ot,logoClickable:j,logoHidden:ve,isTouch:re!=null?re:ce,repeat:Be,loop:fe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Me={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(It)}`});let st=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),mt=(st==null?void 0:st.oneStat)||this.createOneStat(e,i),$e=this.createThinOneStat(e,i),Je;Ye&&(Je=new ud.MediascopePixel({pixels:Ye})),(mt||$e)&&(this.statistics=new dp(mt,$e,Je,st==null?void 0:st.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ra(this.uiConfig.sentry,{version:La,env:Mu},{movieId:Vt,albumId:y,place:$,autoplay:(l=C&&!this.interactiveController)!=null?l:!1,mobile:re!=null?re:ce,clip:et}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...Ra.getInstance()};let nt=!!We,Jt=[],ri="tooltip_interactive_go_back_disabled_first";if(nt&&this.interactiveController){let ci=this.interactiveController.state.isInitialChapter$.getValue(),pt=this.interactiveController.getHistoryState();ci&&Jt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Jt.push("SEEK_TO_INTERACTIVE_BUTTON"),pt.hasPrevChapter$.getValue()||(Jt.push("PLAY_PREV_CHAPTER_BUTTON"),ci||(pt.isGoBackLimited$.getValue()?ri="tooltip_interactive_go_back_disabled_limit":ri="tooltip_interactive_go_back_disabled"))}let pi=()=>{var ci;this.isInited=!1,this.prevIsid=void 0;let pt=(o==null?void 0:o.info.isEnded$.getValue())&&((ci=this.interactiveController)==null?void 0:ci.state.isEndChapter$.getValue());P.onReplayInteractiveVideo&&!pt?P.onReplayInteractiveVideo():this.replayInteractiveVideo()},hi=Be&&this.videoConfig.videos.length===1;this.store=xb({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:oe,videoId:Vt,isClip:et,isLiveCatchUpMode:we,isAudioDisabled:_e,statAuthToken:S,callbacks:P,webApi:Me,videoEpisodes:Ct,previewThumbsData:Zt,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Jt,isInteractive:nt,saveRate:ee,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:pi,playPrevChapterDisabledTooltip:ri,hasInteractiveBranches:!!((b=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?Y:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:Oe!=null?Oe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ci=>{var pt;return(pt=this.sveltePersistentLayerComponent)==null?void 0:pt.startVideoChangedAnimation(ci)},looped:this.uiConfig.features.useLoopSetting?fe:hi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:eo}=this.microStoresRoot=p$(),_o=()=>{var ci,pt,Ei,jt,St,ii;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(ht=>{var je;return(je=P==null?void 0:P.onCurrentFormatChanged)==null?void 0:je.call(P,ht)})),this.subscription.add(eo.interactiveControlsOpacity$.subscribe(ht=>{var je;ht!==null&&((je=this==null?void 0:this.interactiveController)==null||je.setDisabledControls(ht))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ht=>{var je;return(je=P==null?void 0:P.onThroughputEstimationChanged)==null?void 0:je.call(P,ht)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ht=>{var je;return(je=P==null?void 0:P.onTrafficSavingEnabledChanged)==null?void 0:je.call(P,ht)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(ht=>{var je;return(je=P==null?void 0:P.onHighQualityEnabledChanged)==null?void 0:je.call(P,ht)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(ht=>{var je;return(je=P==null?void 0:P.onAutoQualityEnabledChanged)==null?void 0:je.call(P,!!ht)})),this.subscription.add(new Ni.Observable(ht=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(je=>ht.next(je)))}).pipe((0,Ni.skip)(1)).subscribe(ht=>{var je;return(je=P==null?void 0:P.onCurrentPlaybackRateChanged)==null?void 0:je.call(P,ht)})),this.subscription.add(this.store.state.volume$.subscribe(ht=>{var je;return(je=P==null?void 0:P.onVolumeChange)==null?void 0:je.call(P,ht)})),this.subscription.add(this.store.state.muted$.subscribe(ht=>{var je,yi,to,en;if(ht)(je=P==null?void 0:P.onMute)==null||je.call(P);else{let hn=(to=((yi=this.store)==null?void 0:yi.state.volume$)&&he(this.store.state.volume$))!=null?to:0;(en=P==null?void 0:P.onUnmute)==null||en.call(P,hn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(ht=>{var je;return(je=P==null?void 0:P.onVideoBitrateChanged)==null?void 0:je.call(P,ht)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ht=>{var je;let yi=(je=this.store)==null?void 0:je.ui.controls.disabledControls$;yi&&(ht&&!yi.includes(qd)&&yi.add(qd),ht||yi.remove(qd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async ht=>{var je;if(!Gc.clientChecker.browser.isSamsungBrowser||!ht||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((je=this.videoConfig)==null?void 0:je.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(ht=>{var je;return(je=P==null?void 0:P.onVSIDChanged)==null?void 0:je.call(P,ht)})),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:Le,thumbUrl:Ue,subtitles:Dt,subtitlesForcedLanguage:ye,live:be,preload:I,autoplay:C,muted:E,volume:R,fromTime:k,canRewindLive:O,supportLink:B,showAds:F,adsSlotId:z,adsParams:xe,adsAutoplayParam:le,duration:Ot,logoClickable:j,logoHidden:ve,isMobile:re!=null?re:ce,failoverHosts:Ne,fullScreenTarget:Z,saveRate:ee,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ce,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Se,showEndScreen:Fe,showAutoplayNext:Ke,adsExternalApi:J},!0);let Xt={target:this.playerContainer,props:n(Xn)};this.svelteRootComponent=Qr(Zv,Xt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ei=(pt=(ci=this.videoConfig)==null?void 0:ci.callbacks)==null?void 0:pt.onInited)==null||Ei.call(pt)),(jt=this.internalsExposure)==null||jt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ii=(St=this.videoConfig)==null?void 0:St.callbacks)!=null&&ii.onDevNullLog)?cd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):cd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Gc.clientChecker.isInited$.subscribe(ci=>{ci&&(console.log("UI SDK async start"),_o())}):_o()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.playbackStateRealistic$.subscribe(d=>{d?this.stateContainer.setAttribute("data-playback-state",d):this.stateContainer.removeAttribute("data-playback-state")})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Ni.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,s,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 a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?he(a):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:f,historyApi:p,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:f,historyApi:p,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 C=this.store;I?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let S=!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 C=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,C),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:C})=>{var R,E,k,O,B,F;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Qd)),I==="action-choice-canceled"){let G=he(this.store.state.isPlaying$)||z;if(((k=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?k:(E=this.videoConfig)!=null&&E.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(O=this.videoConfig)==null?void 0:(B=O.callbacks).onDisabledInteractiveClick)==null||F.call(B)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:C})=>{this.store&&I==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Qd)})),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(C=>{var R,E,k;C.length&&((k=(E=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||k.call(E,C))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var C,R,E;(E=(C=this.videoConfig)==null?void 0:(R=C.callbacks).onInteractiveChapterChanged)==null||E.call(R,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,C,R,E;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(C=this.videoConfig)==null?void 0:(R=C.callbacks).onInteractiveTimeIndicatorClick)==null||E.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,s,l,d,a,u,m,f,p,b,y,$,S,I,C,R,E,k,O,B,F,z,G,le,X,oe,j;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ve=new Error("empty videos");this.fatalError$.next(ve),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,ve.message);return}else this.fatalError$.next(null);if(this.videoConfig=Fc(pC,(0,Ni.cloneDeepWith)(e,ve=>ve instanceof HTMLElement?ve:void 0)),this.playerId=(0,Ni.getPlayerId)(e.playerId),this.uiConfig=Xh((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Ni.InternalsExposure("ui",this.playerId))),cd.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,Mp.now)()]}),(0,Ni.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(f=this.uiConfig.features.mediaSession)!=null?f:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Ni.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(S=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.uiConfig.ads.paramsOverride={preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(R=(C=this.uiConfig.isMobile)!=null?C:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(E=this.videoConfig).autoplay&&(E.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(O=this.uiConfig.ads.slot)!=null?O:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((B=this.uiConfig.showLogo)!=null?B:!this.videoConfig.logoHidden),(F=this.videoConfig).canRewindLive&&(F.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(le=this.uiConfig.features.autoplayNext)!=null?le:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(X=this.uiConfig.features.nextPrevButtons)!=null?X:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((oe=this.videoConfig.videos)!=null&&oe[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ve={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Tp.getLatestSupportedVersion(ve):this.pictureInPictureApi=new Na(ve)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new wp:void 0,this.slotsApi=this.uiConfig.features.slots?new bp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Cp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),s$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(j=this.slotsApi)==null||j.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Ap(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();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,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",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 s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}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(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Ni.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&&Ia(e)}};var pd=require("@vkontakte/videoplayer-shared/es2018"),Vp=require("@vkontakte/videoplayer-core/es2018"),fC=()=>{window.customElements.define("vk-video-player",Lp)};