@vkontakte/videoplayer 1.1.76-beta.2 → 1.1.76-dev.44b02f36.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.esm.js CHANGED
@@ -1,63 +1,408 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.76-beta.2
3
- * Sat, 01 Nov 2025 09:12:28 GMT
2
+ * @vkontakte/videoplayer v1.1.76-dev.44b02f36.0
3
+ * Mon, 10 Nov 2025 14:16:30 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-76/doc/
5
5
  */
6
- var Gb=Object.defineProperty;var Bv=t=>{throw TypeError(t)};var Yb=(t,e,i)=>e in t?Gb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var or=(t,e,i)=>Yb(t,typeof e!="symbol"?e+"":e,i),bp=(t,e,i)=>e.has(t)||Bv("Cannot "+i);var Ri=(t,e,i)=>(bp(t,e,"read from private field"),i?i.call(t):e.get(t)),Us=(t,e,i)=>e.has(t)?Bv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ll=(t,e,i,o)=>(bp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Fv=(t,e,i)=>(bp(t,e,"access private method"),i);var zs="[",Ws="[!",ma="]",ss={};var Gi=Symbol(),On=Symbol("filename"),Hv=Symbol("hmr"),Uv="http://www.w3.org/1999/xhtml",Bc="http://www.w3.org/2000/svg";var $p="@attach";var Fc=!0;var Wv,Kv,zv=(Kv=(Wv=globalThis.process)==null?void 0:Wv.env)==null?void 0:Kv.NODE_ENV,Ae=zv&&!zv.toLowerCase().startsWith("prod");var nr=Array.isArray,qv=Array.prototype.indexOf,Jl=Array.from,yp=Object.keys,uo=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,Hc=Object.getOwnPropertyDescriptors,xp=Object.prototype,Qv=Array.prototype,va=Object.getPrototypeOf,wp=Object.isExtensible;function Ks(t){return typeof t=="function"}var vt=()=>{};function Gv(t){return t()}function qs(t){for(var e=0;e<t.length;e++)t[e]()}var Ko=Symbol("$state"),dl=Symbol("legacy props"),Yv=Symbol(""),Uc=Symbol("proxy path"),zc=1,cl=3,rr=8;function Wc(t){return t===this.v}function ul(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function jv(t,e){return t!==e}function pl(t){return!ul(t,this.v)}function Xv(){if(Ae){let t=new Error(`derived_references_self
6
+ var l_=Object.defineProperty;var eg=t=>{throw TypeError(t)};var d_=(t,e,i)=>e in t?l_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Xn=(t,e,i)=>d_(t,typeof e!="symbol"?e+"":e,i),vp=(t,e,i)=>e.has(t)||eg("Cannot "+i);var Oi=(t,e,i)=>(vp(t,e,"read from private field"),i?i.call(t):e.get(t)),Ds=(t,e,i)=>e.has(t)?eg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),tl=(t,e,i,o)=>(vp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),tg=(t,e,i)=>(vp(t,e,"access private method"),i);var Bs="[",Hs="[!",da="]",es={};var eo=Symbol(),Mn=Symbol("filename"),ig=Symbol("hmr"),og="http://www.w3.org/1999/xhtml",Mc="http://www.w3.org/2000/svg";var mp="@attach";var Lc=!0;var rg,sg,ng=(sg=(rg=globalThis.process)==null?void 0:rg.env)==null?void 0:sg.NODE_ENV,Ve=ng&&!ng.toLowerCase().startsWith("prod");var Jn=Array.isArray,ag=Array.prototype.indexOf,Ql=Array.from,gp=Object.keys,so=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,Vc=Object.getOwnPropertyDescriptors,hp=Object.prototype,lg=Array.prototype,ca=Object.getPrototypeOf,_p=Object.isExtensible;function Fs(t){return typeof t=="function"}var ue=()=>{};function dg(t){return t()}function Us(t){for(var e=0;e<t.length;e++)t[e]()}var Ho=Symbol("$state"),il=Symbol("legacy props"),cg=Symbol(""),Rc=Symbol("proxy path"),Nc=1,ol=3,er=8;function Oc(t){return t===this.v}function nl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ug(t,e){return t!==e}function rl(t){return!nl(t,this.v)}function pg(){if(Ve){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
8
- https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function Zv(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 fg(t){if(Ve){let e=new Error(`effect_in_teardown
9
9
  \`${t}\` cannot be used inside an effect cleanup function
10
- https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Jv(){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 eg(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 vg(){if(Ve){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function mg(t){if(Ve){let e=new Error(`effect_orphan
11
11
  \`${t}\` can only be used inside an effect (e.g. during component initialisation)
12
- https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function tg(){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 gg(){if(Ve){let t=new Error(`effect_update_depth_exceeded
13
13
  Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
14
- https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ig(){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 hg(){if(Ve){let t=new Error(`hydration_failed
15
15
  Failed to hydrate the application
16
- https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function og(){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 ng(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 _g(){if(Ve){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function bg(t){if(Ve){let e=new Error(`props_invalid_value
17
17
  Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
18
- https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function rg(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 $g(t){if(Ve){let e=new Error(`props_rest_readonly
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
- https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function sg(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 yg(t){if(Ve){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function ag(){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 lg(){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 as=!1,ls=!1;function cg(){as=!0}var ed=null;function bs(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 xg(){if(Ve){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wg(){if(Ve){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Sg(){if(Ve){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var ts=!1,is=!1;function Cg(){ts=!0}var Gl=null;function hs(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),r=[`
24
- `];for(let a=0;a<o.length;a++){let l=o[a];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;uo(e,"stack",{value:r.join(`
25
- `)}),uo(e,"name",{value:`${t}Error`})}return e}function zr(t,e){return t.label=e,Kc(t.v,e),t}function Kc(t,e){var i;return(i=t==null?void 0:t[Uc])==null||i.call(t,e),t}function fl(t){if(Ae){let e=new Error(`lifecycle_outside_component
24
+ `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;so(e,"stack",{value:r.join(`
25
+ `)}),so(e,"name",{value:`${t}Error`})}return e}function Ur(t,e){return t.label=e,Dc(t.v,e),t}function Dc(t,e){var i;return(i=t==null?void 0:t[Rc])==null||i.call(t,e),t}function sl(t){if(Ve){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Bt=null;function td(t){Bt=t}var sr=null;function id(t){sr=t}function ml(t){return Cp("getContext").get(t)}function vl(t,e){return Cp("setContext").set(t,e),e}function od(){return Cp("getAllContexts")}function F(t,e=!1,i){var o=Bt={p:Bt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};as&&!e&&(Bt.l={s:null,u:null,r1:[],r2:Ir(!1)}),So(()=>{o.d=!0}),Ae&&(Bt.function=i,sr=i)}function H(t){var l,d;let e=Bt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=bt,o=Mt;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];po(a.effect),Wi(a.reaction),To(a.fn)}}finally{po(i),Wi(o)}}Bt=e.p,Ae&&(sr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ds(){return!as||Bt!==null&&Bt.l===null}function Cp(t){var e;return Bt===null&&fl(t),(e=Bt.c)!=null?e:Bt.c=new Map(Xb(Bt)||void 0)}function Xb(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Zb=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function si(t){if(typeof t!="object"||t===null||Ko in t)return t;let e=va(t);if(e!==xp&&e!==Qv)return t;var i=new Map,o=nr(t),r=K(0),a=Ae&&ls?bs("CreatedAt"):null,l=Mt,d=p=>{var m=Mt;Wi(l);var f=p();return Wi(m),f};o&&i.set("length",K(t.length,a));var s="";function u(p){s=p,zr(r,`${s} version`);for(let[m,f]of i)zr(f,ga(s,m))}return new Proxy(t,{defineProperty(p,m,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&ag();var b=i.get(m);return b===void 0?b=d(()=>{var y=K(f.value,a);return i.set(m,y),Ae&&typeof m=="string"&&zr(y,ga(s,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(Gi,a));i.set(m,$),Ip(r),Ae&&zr($,ga(s,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,Gi),Ip(r)}return!0},get(p,m,f){var S;if(m===Ko)return t;if(Ae&&m===Uc)return u;var b=i.get(m),y=m in p;if(b===void 0&&(!y||(S=Wo(p,m))!=null&&S.writable)&&(b=d(()=>{var C=si(y?p[m]:Gi),I=K(C,a);return Ae&&zr(I,ga(s,m)),I}),i.set(m,b)),b!==void 0){var $=n(b);return $===Gi?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&&$!==Gi)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return f},has(p,m){var $;if(m===Ko)return!0;var f=i.get(m),b=f!==void 0&&f.v!==Gi||Reflect.has(p,m);if(f!==void 0||bt!==null&&(!b||($=Wo(p,m))!=null&&$.writable)){f===void 0&&(f=d(()=>{var S=b?si(p[m]):Gi,C=K(S,a);return Ae&&zr(C,ga(s,m)),C}),i.set(m,f));var y=n(f);if(y===Gi)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,Gi):S in p&&(C=d(()=>K(Gi,a)),i.set(S+"",C),Ae&&zr(C,ga(s,S)))}if(y===void 0)(!$||(O=Wo(p,m))!=null&&O.writable)&&(y=d(()=>K(void 0,a)),N(y,si(f)),i.set(m,y),Ae&&zr(y,ga(s,m)));else{$=y.v!==Gi;var I=d(()=>si(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)}Ip(r)}return!0},ownKeys(p){n(r);var m=Reflect.ownKeys(p).filter(y=>{var $=i.get(y);return $===void 0||$.v!==Gi});for(var[f,b]of i)b.v!==Gi&&!(f in p)&&m.push(f);return m},setPrototypeOf(){lg()}})}function ga(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:Zb.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Ip(t,e=1){N(t,t.v+e)}function gl(t){try{if(t!==null&&typeof t=="object"&&Ko in t)return t[Ko]}catch(e){}return t}function Ep(t,e){return Object.is(gl(t),gl(e))}function Wr(t){var e=2050,i=Mt!==null&&(Mt.f&2)!==0?Mt:null;bt===null||i!==null&&(i.f&256)!==0?e|=256:bt.f|=1048576;let o={ctx:Bt,deps:null,effects:null,equals:Wc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:bt};return Ae&&ls&&(o.created=bs("CreatedAt")),o}function v(t){let e=Wr(t);return Gc(e),e}function xn(t){let e=Wr(t);return e.equals=pl,e}function qc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ki(e[i])}}var Pp=[];function Jb(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Lp(t){var e,i=bt;if(po(Jb(t)),Ae){let o=ha;Ap(new Set);try{Pp.includes(t)&&Xv(),Pp.push(t),qc(t),e=Qc(t)}finally{po(i),Ap(o),Pp.pop()}}else try{qc(t),e=Qc(t)}finally{po(i)}return e}function Mp(t){var e=Lp(t);if(t.equals(e)||(t.v=e,t.wv=nd()),!$s){var i=(ys||(t.f&256)!==0)&&t.deps!==null?4096:1024;wn(t,i)}}var ha=new Set,hl=new Map;function Ap(t){ha=t}function Ir(t,e){var i={f:0,v:t,reactions:null,equals:Wc,rv:0,wv:0};return Ae&&ls&&(i.created=e!=null?e:bs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=Ir(t,e);return Gc(i),i}function cs(t,e=!1,i=!0){var r,a;let o=Ir(t);return e||(o.equals=pl),as&&i&&Bt!==null&&Bt.l!==null&&((a=(r=Bt.l).s)!=null?a:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Mt!==null&&(!dr||(Mt.f&262144)!==0)&&ds()&&(Mt.f&262162)!==0&&!((r=Qo)!=null&&r[1].includes(t)&&Qo[0]===Mt)&&dg();let o=i?si(e):e;return Ae&&Kc(o,t.label),_l(t,o)}function _l(t,e){if(!t.equals(e)){var i=t.v;if($s?hl.set(t,e):hl.set(t,i),t.v=e,Ae&&ls&&(t.updated=bs("UpdatedAt"),bt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Lp(t),wn(t,(t.f&256)===0?1024:4096)),t.wv=nd(),pg(t,2048),ds()&&bt!==null&&(bt.f&1024)!==0&&(bt.f&96)===0&&(lr===null?fg([t]):lr.push(t)),Ae&&ha.size>0){let o=Array.from(ha);for(let r of o)(r.f&1024)!==0&&wn(r,4096),ba(r)&&bl(r);ha.clear()}}return e}function pg(t,e){var i=t.reactions;if(i!==null)for(var o=ds(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===bt)){if(Ae&&(d&262144)!==0){ha.add(l);continue}wn(l,e),(d&1280)!==0&&((d&2)!==0?pg(l,4096):sd(l))}}}var $l="font-weight: bold",yl="font-weight: normal";function mg(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 Ut=null;function jl(t){Ut=t}var tr=null;function Yl(t){tr=t}function al(t){return yp("getContext").get(t)}function ll(t,e){return yp("setContext").set(t,e),e}function Zl(){return yp("getAllContexts")}function H(t,e=!1,i){var o=Ut={p:Ut,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ts&&!e&&(Ut.l={s:null,u:null,r1:[],r2:br(!1)}),To(()=>{o.d=!0}),Ve&&(Ut.function=i,tr=i)}function F(t){var l,d;let e=Ut;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=$t,o=Rt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];ao(s.effect),Wi(s.reaction),Eo(s.fn)}}finally{ao(i),Wi(o)}}Ut=e.p,Ve&&(tr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function os(){return!ts||Ut!==null&&Ut.l===null}function yp(t){var e;return Ut===null&&sl(t),(e=Ut.c)!=null?e:Ut.c=new Map(u_(Ut)||void 0)}function u_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var p_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function si(t){if(typeof t!="object"||t===null||Ho in t)return t;let e=ca(t);if(e!==hp&&e!==lg)return t;var i=new Map,o=Jn(t),r=Q(0),s=Ve&&is?hs("CreatedAt"):null,l=Rt,d=f=>{var v=Rt;Wi(l);var p=f();return Wi(v),p};o&&i.set("length",Q(t.length,s));var a="";function u(f){a=f,Ur(r,`${a} version`);for(let[v,p]of i)Ur(p,ua(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&xg();var y=i.get(v);return y===void 0?y=d(()=>{var w=Q(p.value,s);return i.set(v,w),Ve&&typeof v=="string"&&Ur(w,ua(a,v)),w}):O(y,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let x=d(()=>Q(eo,s));i.set(v,x),xp(r),Ve&&Ur(x,ua(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&O(y,w)}O(p,eo),xp(r)}return!0},get(f,v,p){var C;if(v===Ho)return t;if(Ve&&v===Rc)return u;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(C=Bo(f,v))!=null&&C.writable)&&(y=d(()=>{var T=si(w?f[v]:eo),E=Q(T,s);return Ve&&Ur(E,ua(a,v)),E}),i.set(v,y)),y!==void 0){var x=n(y);return x===eo?void 0:x}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var y=i.get(v);y&&(p.value=n(y))}else if(p===void 0){var w=i.get(v),x=w==null?void 0:w.v;if(w!==void 0&&x!==eo)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return p},has(f,v){var x;if(v===Ho)return!0;var p=i.get(v),y=p!==void 0&&p.v!==eo||Reflect.has(f,v);if(p!==void 0||$t!==null&&(!y||(x=Bo(f,v))!=null&&x.writable)){p===void 0&&(p=d(()=>{var C=y?si(f[v]):eo,T=Q(C,s);return Ve&&Ur(T,ua(a,v)),T}),i.set(v,p));var w=n(p);if(w===eo)return!1}return y},set(f,v,p,y){var L;var w=i.get(v),x=v in f;if(o&&v==="length")for(var C=p;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?O(T,eo):C in f&&(T=d(()=>Q(eo,s)),i.set(C+"",T),Ve&&Ur(T,ua(a,C)))}if(w===void 0)(!x||(L=Bo(f,v))!=null&&L.writable)&&(w=d(()=>Q(void 0,s)),O(w,si(p)),i.set(v,w),Ve&&Ur(w,ua(a,v)));else{x=w.v!==eo;var E=d(()=>si(p));O(w,E)}var N=Reflect.getOwnPropertyDescriptor(f,v);if(N!=null&&N.set&&N.set.call(y,p),!x){if(o&&typeof v=="string"){var A=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=A.v&&O(A,I+1)}xp(r)}return!0},ownKeys(f){n(r);var v=Reflect.ownKeys(f).filter(w=>{var x=i.get(w);return x===void 0||x.v!==eo});for(var[p,y]of i)y.v!==eo&&!(p in f)&&v.push(p);return v},setPrototypeOf(){wg()}})}function ua(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:p_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function xp(t,e=1){O(t,t.v+e)}function dl(t){try{if(t!==null&&typeof t=="object"&&Ho in t)return t[Ho]}catch(e){}return t}function wp(t,e){return Object.is(dl(t),dl(e))}function zr(t){var e=2050,i=Rt!==null&&(Rt.f&2)!==0?Rt:null;$t===null||i!==null&&(i.f&256)!==0?e|=256:$t.f|=1048576;let o={ctx:Ut,deps:null,effects:null,equals:Oc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:$t};return Ve&&is&&(o.created=hs("CreatedAt")),o}function m(t){let e=zr(t);return Fc(e),e}function bn(t){let e=zr(t);return e.equals=rl,e}function Bc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ki(e[i])}}var Sp=[];function f_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Ep(t){var e,i=$t;if(ao(f_(t)),Ve){let o=pa;Cp(new Set);try{Sp.includes(t)&&pg(),Sp.push(t),Bc(t),e=Hc(t)}finally{ao(i),Cp(o),Sp.pop()}}else try{Bc(t),e=Hc(t)}finally{ao(i)}return e}function Ip(t){var e=Ep(t);if(t.equals(e)||(t.v=e,t.wv=Xl()),!_s){var i=(bs||(t.f&256)!==0)&&t.deps!==null?4096:1024;$n(t,i)}}var pa=new Set,cl=new Map;function Cp(t){pa=t}function br(t,e){var i={f:0,v:t,reactions:null,equals:Oc,rv:0,wv:0};return Ve&&is&&(i.created=e!=null?e:hs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Q(t,e){let i=br(t,e);return Fc(i),i}function ns(t,e=!1,i=!0){var r,s;let o=br(t);return e||(o.equals=rl),ts&&i&&Ut!==null&&Ut.l!==null&&((s=(r=Ut.l).s)!=null?s:r.s=[]).push(o),o}function O(t,e,i=!1){var r;Rt!==null&&(!nr||(Rt.f&262144)!==0)&&os()&&(Rt.f&262162)!==0&&!((r=Uo)!=null&&r[1].includes(t)&&Uo[0]===Rt)&&Sg();let o=i?si(e):e;return Ve&&Dc(o,t.label),ul(t,o)}function ul(t,e){if(!t.equals(e)){var i=t.v;if(_s?cl.set(t,e):cl.set(t,i),t.v=e,Ve&&is&&(t.updated=hs("UpdatedAt"),$t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Ep(t),$n(t,(t.f&256)===0?1024:4096)),t.wv=Xl(),Eg(t,2048),os()&&$t!==null&&($t.f&1024)!==0&&($t.f&96)===0&&(or===null?Ig([t]):or.push(t)),Ve&&pa.size>0){let o=Array.from(pa);for(let r of o)(r.f&1024)!==0&&$n(r,4096),va(r)&&pl(r);pa.clear()}}return e}function Eg(t,e){var i=t.reactions;if(i!==null)for(var o=os(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===$t)){if(Ve&&(d&262144)!==0){pa.add(l);continue}$n(l,e),(d&1280)!==0&&((d&2)!==0?Eg(l,4096):ed(l))}}}var fl="font-weight: bold",vl="font-weight: normal";function kg(t,e,i){Ve?console.warn(`%c[svelte] hydration_attribute_changed
28
28
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
29
- https://svelte.dev/e/hydration_attribute_changed`,$l,yl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function vg(t){Ae?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,fl,vl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Ag(t){Ve?console.warn(`%c[svelte] hydration_html_changed
30
30
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
31
- https://svelte.dev/e/hydration_html_changed`,$l,yl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Qs(t){Ae?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,fl,vl):console.warn("https://svelte.dev/e/hydration_html_changed")}function zs(t){Ve?console.warn(`%c[svelte] hydration_mismatch
32
32
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
33
- https://svelte.dev/e/hydration_mismatch`,$l,yl):console.warn("https://svelte.dev/e/hydration_mismatch")}function gg(){Ae?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,fl,vl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Pg(){Ve?console.warn(`%c[svelte] lifecycle_double_unmount
34
34
  %cTried to unmount a component that was not mounted
35
- https://svelte.dev/e/lifecycle_double_unmount`,$l,yl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function hg(){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",$l,yl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Yc(t){Ae?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,fl,vl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Mg(){Ve?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",fl,vl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Uc(t){Ve?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
36
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,$l,yl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var et=!1;function fo(t){et=t}var $t;function xi(t){if(t===null)throw Qs(),ss;return $t=t}function qi(){return xi(Go($t))}function w(t){if(et){if(Go($t)!==null)throw Qs(),ss;$t=t}}function ui(t=1){if(et){for(var e=t,i=$t;e--;)i=Go(i);$t=i}}function $a(){for(var t=0,e=$t;;){if(e.nodeType===rr){var i=e.data;if(i===ma){if(t===0)return e;t-=1}else(i===zs||i===Ws)&&(t+=1)}var o=Go(e);e.remove(),e=o}}function jc(t){if(!t||t.nodeType!==rr)throw Qs(),ss;return t.data}function _g(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(a,l){let d=i.call(this,a,l);if(d===-1){for(let s=l!=null?l:0;s<this.length;s+=1)if(gl(this[s])===a){Yc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,l){let d=o.call(this,a,l!=null?l:this.length-1);if(d===-1){for(let s=0;s<=(l!=null?l:this.length-1);s+=1)if(gl(this[s])===a){Yc("array.lastIndexOf(...)");break}}return d},t.includes=function(a,l){let d=r.call(this,a,l);if(!d){for(let s=0;s<this.length;s+=1)if(gl(this[s])===a){Yc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var ya,bg,ad,$g,yg;function Xc(){if(ya===void 0){ya=window,bg=document,ad=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;$g=Wo(e,"firstChild").get,yg=Wo(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),Ae&&(t.__svelte_meta=null,_g())}}function Sn(t=""){return document.createTextNode(t)}function wi(t){return $g.call(t)}function Go(t){return yg.call(t)}function T(t,e){if(!et)return wi(t);var i=wi($t);if(i===null)i=$t.appendChild(Sn());else if(e&&i.nodeType!==cl){var o=Sn();return i==null||i.before(o),xi(o),o}return xi(i),i}function de(t,e){var r,a;if(!et){var i=wi(t);return i.nodeType===8&&i.data===""?Go(i):i}if(e&&((r=$t)==null?void 0:r.nodeType)!==cl){var o=Sn();return(a=$t)==null||a.before(o),xi(o),o}return $t}function k(t,e=1,i=!1){let o=et?$t:t;for(var r;e--;)r=o,o=Go(o);if(!et)return o;if(i&&(o==null?void 0:o.nodeType)!==cl){var a=Sn();return o===null?r==null||r.after(a):o.before(a),xi(a),a}return xi(o),o}function ld(t){t.textContent=""}function Np(t){bt===null&&Mt===null&&eg(t),Mt!==null&&(Mt.f&256)!==0&&bt===null&&Jv(),$s&&Zv(t)}function e$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function xa(t,e,i,o=!0){var s;var r=bt;if(Ae)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:Bt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Ae&&(a.component_function=sr),i)try{bl(a),a.f|=32768}catch(u){throw Ki(a),u}else e!==null&&sd(a);var l=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!l&&o&&(r!==null&&e$(a,r),Mt!==null&&(Mt.f&2)!==0)){var d=Mt;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function So(t){let e=xa(8,null,!1);return wn(e,1024),e.teardown=t,e}function Re(t){var r;Np("$effect");var e=bt!==null&&(bt.f&32)!==0&&Bt!==null&&!Bt.m;if(Ae&&uo(t,"name",{value:"$effect"}),e){var i=Bt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:bt,reaction:Mt})}else{var o=To(t);return o}}function ud(t){return Np("$effect.pre"),Ae&&uo(t,"name",{value:"$effect.pre"}),Yo(t)}function eu(t){let e=xa(64,t,!0);return()=>{Ki(e)}}function wg(t){let e=xa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Hn(e,()=>{Ki(e),o(void 0)}):(Ki(e),o(void 0))})}function To(t){return xa(4,t,!1)}function Yo(t){return xa(8,t,!0)}function B(t,e=[],i=Wr){if(Ae)return Yo(()=>{var r=bt,a=()=>t(...l.map(n));uo(r.fn,"name",{value:"{expression}"}),uo(a,"name",{value:"{expression}"});let l=e.map(i);Qi(a)});let o=e.map(i);return Qi(()=>t(...o.map(n)))}function Qi(t,e=0){return xa(24|e,t,!0)}function Ni(t,e=!0){return xa(40,t,!0,e)}function Op(t){var e=t.teardown;if(e!==null){let i=$s,o=Mt;Vp(!0),Wi(null);try{e.call(null)}finally{Vp(i),Wi(o)}}}function Dp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Ki(i,e),i=o}}function Sg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ki(e),e=i}}function Ki(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Bp(t.nodes_start,t.nodes_end),i=!0),Dp(t,e&&!i),pd(t,0),wn(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();Op(t);var r=t.parent;r!==null&&r.first!==null&&Fp(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 Bp(t,e){for(;t!==null;){var i=t===e?null:Go(t);t.remove(),t=i}}function Fp(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Hn(t,e){var i=[];tu(t,i,!0),Hp(i,()=>{Ki(t),e&&e()})}function Hp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function tu(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var r=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;tu(o,e,a?i:!1),o=r}}}function ws(t){Tg(t,!0)}function Tg(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;Tg(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var fd=[],Up=[];function Cg(){var t=fd;fd=[],qs(t)}function t$(){var t=Up;Up=[],qs(t)}function Tn(t){fd.length===0&&queueMicrotask(Cg),fd.push(t)}function Ig(){fd.length>0&&Cg(),Up.length>0&&t$()}function Pg(t){var e=bt;if(Ae&&t instanceof Error&&i$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else md(t,e)}function md(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Eg=new WeakSet;function i$(t,e){var l,d;if(Eg.has(t))return;Eg.add(t);let i=Wo(t,"message");if(!(i&&!i.configurable)){for(var o=ad?" ":" ",r=`
38
- ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,a=e.ctx;a!==null;)r+=`
39
- ${o}in ${(d=a.function)==null?void 0:d[On].split("/").pop()}`,a=a.p;uo(t,"message",{value:t.message+`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,fl,vl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var it=!1;function lo(t){it=t}var yt;function Si(t){if(t===null)throw zs(),es;return yt=t}function qi(){return Si(zo(yt))}function g(t){if(it){if(zo(yt)!==null)throw zs(),es;yt=t}}function Ee(t=1){if(it){for(var e=t,i=yt;e--;)i=zo(i);yt=i}}function ma(){for(var t=0,e=yt;;){if(e.nodeType===er){var i=e.data;if(i===da){if(t===0)return e;t-=1}else(i===Bs||i===Hs)&&(t+=1)}var o=zo(e);e.remove(),e=o}}function zc(t){if(!t||t.nodeType!==er)throw zs(),es;return t.data}function Lg(){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(dl(this[a])===s){Uc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(dl(this[a])===s){Uc("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(dl(this[a])===s){Uc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var ga,Vg,td,Rg,Ng;function Wc(){if(ga===void 0){ga=window,Vg=document,td=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Rg=Bo(e,"firstChild").get,Ng=Bo(e,"nextSibling").get,_p(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),_p(i)&&(i.__t=void 0),Ve&&(t.__svelte_meta=null,Lg())}}function yn(t=""){return document.createTextNode(t)}function Ti(t){return Rg.call(t)}function zo(t){return Ng.call(t)}function _(t,e){if(!it)return Ti(t);var i=Ti(yt);if(i===null)i=yt.appendChild(yn());else if(e&&i.nodeType!==ol){var o=yn();return i==null||i.before(o),Si(o),o}return Si(i),i}function fe(t,e){var r,s;if(!it){var i=Ti(t);return i.nodeType===8&&i.data===""?zo(i):i}if(e&&((r=yt)==null?void 0:r.nodeType)!==ol){var o=yn();return(s=yt)==null||s.before(o),Si(o),o}return yt}function P(t,e=1,i=!1){let o=it?yt:t;for(var r;e--;)r=o,o=zo(o);if(!it)return o;if(i&&(o==null?void 0:o.nodeType)!==ol){var s=yn();return o===null?r==null||r.after(s):o.before(s),Si(s),s}return Si(o),o}function id(t){t.textContent=""}function Pp(t){$t===null&&Rt===null&&mg(t),Rt!==null&&(Rt.f&256)!==0&&$t===null&&vg(),_s&&fg(t)}function v_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ha(t,e,i,o=!0){var a;var r=$t;if(Ve)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Ut,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Ve&&(s.component_function=tr),i)try{pl(s),s.f|=32768}catch(u){throw Ki(s),u}else e!==null&&ed(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&&v_(s,r),Rt!==null&&(Rt.f&2)!==0)){var d=Rt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function To(t){let e=ha(8,null,!1);return $n(e,1024),e.teardown=t,e}function ze(t){var r;Pp("$effect");var e=$t!==null&&($t.f&32)!==0&&Ut!==null&&!Ut.m;if(Ve&&so(t,"name",{value:"$effect"}),e){var i=Ut;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:$t,reaction:Rt})}else{var o=Eo(t);return o}}function rd(t){return Pp("$effect.pre"),Ve&&so(t,"name",{value:"$effect.pre"}),Wo(t)}function Qc(t){let e=ha(64,t,!0);return()=>{Ki(e)}}function Dg(t){let e=ha(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Nn(e,()=>{Ki(e),o(void 0)}):(Ki(e),o(void 0))})}function Eo(t){return ha(4,t,!1)}function Wo(t){return ha(8,t,!0)}function D(t,e=[],i=zr){if(Ve)return Wo(()=>{var r=$t,s=()=>t(...l.map(n));so(r.fn,"name",{value:"{expression}"}),so(s,"name",{value:"{expression}"});let l=e.map(i);Qi(s)});let o=e.map(i);return Qi(()=>t(...o.map(n)))}function Qi(t,e=0){return ha(24|e,t,!0)}function Di(t,e=!0){return ha(40,t,!0,e)}function Mp(t){var e=t.teardown;if(e!==null){let i=_s,o=Rt;kp(!0),Wi(null);try{e.call(null)}finally{kp(i),Wi(o)}}}function Lp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Ki(i,e),i=o}}function Bg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ki(e),e=i}}function Ki(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Vp(t.nodes_start,t.nodes_end),i=!0),Lp(t,e&&!i),sd(t,0),$n(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Mp(t);var r=t.parent;r!==null&&r.first!==null&&Rp(t),Ve&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Vp(t,e){for(;t!==null;){var i=t===e?null:zo(t);t.remove(),t=i}}function Rp(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 Nn(t,e){var i=[];Gc(t,i,!0),Np(i,()=>{Ki(t),e&&e()})}function Np(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function Gc(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Gc(o,e,s?i:!1),o=r}}}function ys(t){Hg(t,!0)}function Hg(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;Hg(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var ad=[],Op=[];function Fg(){var t=ad;ad=[],Us(t)}function m_(){var t=Op;Op=[],Us(t)}function xn(t){ad.length===0&&queueMicrotask(Fg),ad.push(t)}function Ug(){ad.length>0&&Fg(),Op.length>0&&m_()}function Wg(t){var e=$t;if(Ve&&t instanceof Error&&g_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else ld(t,e)}function ld(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var zg=new WeakSet;function g_(t,e){var l,d;if(zg.has(t))return;zg.add(t);let i=Bo(t,"message");if(!(i&&!i.configurable)){for(var o=td?" ":" ",r=`
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[Mn].split("/").pop()}`,s=s.p;so(t,"message",{value:t.message+`
40
40
  ${r}
41
- `}),t.stack&&uo(t,"stack",{value:t.stack.split(`
42
- `).filter(s=>!s.includes("svelte/src/internal")).join(`
43
- `)})}}var wa=!1,xl=null,Sa=!1,$s=!1;function Vp(t){$s=t}var vd=[],gd=[],Mt=null,dr=!1;function Wi(t){Mt=t}var bt=null;function po(t){bt=t}var Qo=null;function Gc(t){Mt!==null&&Mt.f&2097152&&(Qo===null?Qo=[Mt,[t]]:Qo[1].push(t))}var Cn=null,cr=0,lr=null;function fg(t){lr=t}var Lg=1,ou=0,ys=!1,nu=null;function nd(){return++Lg}function ba(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,a,l=(e&512)!==0,d=o&&bt!==null&&!ys,s=i.length;if(l||d){var u=t,p=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((m=a==null?void 0:a.reactions)!=null&&m.includes(u)))&&((f=a.reactions)!=null?f:a.reactions=[]).push(u);l&&(u.f^=512),d&&p!==null&&(p.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],ba(a)&&Mp(a),a.wv>t.wv)return!0}(!o||bt!==null&&!ys)&&wn(t,1024)}return!1}function Mg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Qo!=null&&Qo[1].includes(t)&&Qo[0]===Mt||((a.f&2)!==0?Mg(a,e,!1):e===a&&(i?wn(a,2048):(a.f&1024)!==0&&wn(a,4096),sd(a)))}}function Qc(t){var b,y;var e=Cn,i=cr,o=lr,r=Mt,a=ys,l=Qo,d=Bt,s=dr,u=t.f;Cn=null,cr=0,lr=null,ys=(u&256)!==0&&(dr||!Sa||Mt===null),Mt=(u&96)===0?t:null,Qo=null,td(t.ctx),dr=!1,ou++,t.f|=2097152;try{var p=(0,t.fn)(),m=t.deps;if(Cn!==null){var f;if(pd(t,cr),m!==null&&cr>0)for(m.length=cr+Cn.length,f=0;f<Cn.length;f++)m[cr+f]=Cn[f];else t.deps=m=Cn;if(!ys||(u&2)!==0&&t.reactions!==null)for(f=cr;f<m.length;f++)((y=(b=m[f]).reactions)!=null?y:b.reactions=[]).push(t)}else m!==null&&cr<m.length&&(pd(t,cr),m.length=cr);if(ds()&&lr!==null&&!dr&&m!==null&&(t.f&6146)===0)for(f=0;f<lr.length;f++)Mg(lr[f],t);return r!==null&&r!==t&&(ou++,lr!==null&&(o===null?o=lr:o.push(...lr))),p}catch($){Pg($)}finally{Cn=e,cr=i,lr=o,Mt=r,ys=a,Qo=l,td(d),dr=s,t.f^=2097152}}function o$(t,e){let i=e.reactions;if(i!==null){var o=qv.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&&(Cn===null||!Cn.includes(e))&&(wn(e,4096),(e.f&768)===0&&(e.f^=512),qc(e),pd(e,0))}function pd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)o$(t,i[o])}function bl(t){var e=t.f;if((e&16384)===0){wn(t,1024);var i=bt,o=Sa;if(bt=t,Sa=!0,Ae){var r=sr;id(t.component_function)}try{(e&16)!==0?Sg(t):Dp(t),Op(t);var a=Qc(t);if(t.teardown=typeof a=="function"?a:null,t.wv=Lg,Ae&&ls&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=nd(),l.set_during_effect=!1);Ae&&gd.push(t)}finally{Sa=o,bt=i,Ae&&id(r)}}}function Ag(){console.error("Last ten effects were: ",gd.slice(-10).map(t=>t.fn)),gd=[]}function n$(){try{tg()}catch(t){if(Ae&&uo(t,"stack",{value:""}),xl!==null)if(Ae)try{md(t,xl)}catch(e){throw Ag(),e}else md(t,xl);else throw Ae&&Ag(),t}}function Wp(){var t=Sa;try{var e=0;for(Sa=!0;vd.length>0;){e++>1e3&&n$();var i=vd,o=i.length;vd=[];for(var r=0;r<o;r++){var a=s$(i[r]);r$(a)}hl.clear()}}finally{wa=!1,Sa=t,xl=null,Ae&&(gd=[])}}function r$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ba(o)&&(bl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Fp(o):o.fn=null))}}function sd(t){wa||(wa=!0,queueMicrotask(Wp));for(var e=xl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}vd.push(e)}function s$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:ba(i)&&bl(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 wl(t){var e;for(t&&(wa=!0,Wp(),wa=!0,e=t());;){if(Ig(),vd.length===0)return wa=!1,xl=null,Ae&&(gd=[]),e;wa=!0,Wp()}}async function mo(){await Promise.resolve(),wl()}function n(t){var e=t.f,i=(e&2)!==0;if(nu!==null&&nu.add(t),Mt!==null&&!dr){if(!(Qo!=null&&Qo[1].includes(t))||Qo[0]!==Mt){var o=Mt.deps;t.rv<ou&&(t.rv=ou,Cn===null&&o!==null&&o[cr]===t?cr++:Cn===null?Cn=[t]:(!ys||!Cn.includes(t))&&Cn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,ba(r)&&Mp(r)),Ae&&ls&&!dr&&ed!==null&&Mt!==null&&ed.reaction===Mt)if(t.trace)t.trace();else{var l=bs("TracedAt");if(l){var d=ed.entries.get(t);d===void 0&&(d={traces:[]},ed.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return $s&&hl.has(t)?hl.get(t):t.v}function It(t){var e=dr;try{return dr=!0,t()}finally{dr=e}}var a$=-7169;function wn(t,e){t.f=t.f&a$|e}function su(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ko in t)ru(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ko in i&&ru(i)}}}function ru(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{ru(t[o],e)}catch(r){}let i=va(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Hc(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function Kp(t,e){if(e){let i=document.body;t.autofocus=!0,Tn(()=>{document.activeElement===i&&t.focus()})}}function hd(t){var e=Mt,i=bt;Wi(null),po(null);try{return t()}finally{Wi(e),po(i)}}var qp=new Set,au=new Set;function Ta(t){if(!et)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Qp(t,e,i,o={}){function r(a){if(o.capture||Sl.call(e,a),!a.cancelBubble)return hd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Tn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function gt(t,e,i,o,r){var a={capture:o,passive:r},l=Qp(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&So(()=>{e.removeEventListener(t,l,a)})}function nt(t){for(var e=0;e<t.length;e++)qp.add(t[e]);for(var i of au)i(t)}function Sl(t){var I;var e=this,i=e.ownerDocument,o=t.type,r=((I=t.composedPath)==null?void 0:I.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){uo(t,"currentTarget",{configurable:!0,get(){return a||i}});var p=Mt,m=bt;Wi(null),po(null);try{for(var f,b=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var $=a["__"+o];if($!=null&&(!a.disabled||t.target===a))if(nr($)){var[S,...C]=$;S.apply(a,[t,...C])}else $.call(a,t)}catch(R){f?b.push(R):f=R}if(t.cancelBubble||y===e||y===null)break;a=y}if(f){for(let R of b)queueMicrotask(()=>{throw R});throw f}}finally{t.__root=e,delete t.currentTarget,Wi(p),po(m)}}}var d$;function Vg(){d$=void 0}function Tl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Co(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,a=!t.startsWith("<!>");return()=>{if(et)return Co($t,null),$t;r===void 0&&(r=Tl(a?t:"<!>"+t),i||(r=wi(r)));var l=o||ad?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=wi(l),s=l.lastChild;Co(d,s)}else Co(l,l);return l}}function p$(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(et)return Co($t,null),$t;if(!l){var d=Tl(a),s=wi(d);if(r)for(l=document.createDocumentFragment();wi(s);)l.appendChild(wi(s));else l=wi(s)}var u=l.cloneNode(!0);if(r){var p=wi(u),m=u.lastChild;Co(p,m)}else Co(u,u);return u}}function Ie(t,e){return p$(t,e,"svg")}function us(t=""){if(!et){var e=Sn(t+"");return Co(e,e),e}var i=$t;return i.nodeType!==cl&&(i.before(i=Sn()),xi(i)),Co(i,i),i}function Le(){if(et)return Co($t,null),$t;var t=document.createDocumentFragment(),e=document.createComment(""),i=Sn();return t.append(e,i),Co(e,i),t}function _(t,e){if(et){bt.nodes_end=$t,qi();return}t!==null&&t.before(e)}var f$=/\r/g;function Ng(t){t=t.replace(f$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Og(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var m$=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Dg(t){return m$.includes(t)}var v$=["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 Bg(t){var e;return t=t.toLowerCase(),(e=g$[t])!=null?e:t}var iA=[...v$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var h$=["touchstart","touchmove"];function Fg(t){return h$.includes(t)}var _$=["$state","$state.raw","$derived","$derived.by"],oA=[..._$,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var b$=["textarea","script","style","title"];function Hg(t){return b$.includes(t)}function lu(t){return t==null?void 0:t.replace(/\//g,"/​")}var _d=!0;function du(t){_d=t}function fe(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 Ug(t,e)}function Yp(t,e){var l;Xc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=et,r=$t;try{for(var a=wi(i);a&&(a.nodeType!==rr||a.data!==zs);)a=Go(a);if(!a)throw ss;fo(!0),xi(a),qi();let d=Ug(t,{...e,anchor:a});if($t===null||$t.nodeType!==rr||$t.data!==ma)throw Qs(),ss;return fo(!1),d}catch(d){if(d===ss)return e.recover===!1&&ig(),Xc(),ld(i),fo(!1),Qr(t,e);throw d}finally{fo(o),xi(r),Vg()}}var Cl=new Map;function Ug(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){Xc();var d=new Set,s=m=>{for(var f=0;f<m.length;f++){var b=m[f];if(!d.has(b)){d.add(b);var y=Fg(b);e.addEventListener(b,Sl,{passive:y});var $=Cl.get(b);$===void 0?(document.addEventListener(b,Sl,{passive:y}),Cl.set(b,1)):Cl.set(b,$+1)}}};s(Jl(qp)),au.add(s);var u=void 0,p=wg(()=>{var m=i!=null?i:e.appendChild(Sn());return Ni(()=>{if(a){F({});var f=Bt;f.c=a}r&&(o.$$events=r),et&&Co(m,null),_d=l,u=t(m,o)||{},_d=!0,et&&(bt.nodes_end=$t),a&&H()}),()=>{var y;for(var f of d){e.removeEventListener(f,Sl);var b=Cl.get(f);--b===0?(document.removeEventListener(f,Sl),Cl.delete(f)):Cl.set(f,b)}au.delete(s),m!==i&&((y=m.parentNode)==null||y.removeChild(m))}});return Gp.set(u,p),u}var Gp=new WeakMap;function Ca(t,e){let i=Gp.get(t);return i?(Gp.delete(t),i(e)):(Ae&&gg(),Promise.resolve())}function Jt(t,e,...i){var o=t,r=vt,a;Qi(()=>{r!==(r=e())&&(a&&(Ki(a),a=null),Ae&&r==null&&og(),a=Ni(()=>r(o,...i)))},65536),et&&(o=$t)}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;sg(e)},set:o=>{i=o}})}};w$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var w$;function Vt(t){Bt===null&&fl("onMount"),as&&Bt.l!==null?x$(Bt).m.push(t):Re(()=>{let e=It(t);if(typeof e=="function")return e})}function fn(t){Bt===null&&fl("onDestroy"),Vt(()=>()=>It(t))}function x$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var zg=new Map;function Wg(t,e){var i=zg.get(t);i||(i=new Set,zg.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){et&&i===0&&qi();var r=t,a=null,l=null,d=Gi,s=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(et&&o!==-1){if(i===0){let S=jc(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=$a(),xi(r),fo(!1),y=!0,o=-1)}d?(a?ws(a):b&&(a=Ni(()=>b(r))),l&&Hn(l,()=>{l=null})):(l?ws(l):b&&(l=Ni(()=>b(r,[i+1,o]))),a&&Hn(a,()=>{a=null})),y&&fo(!0)};Qi(()=>{u=!1,e(p),u||m(null,null)},s),et&&(r=$t)}function Ss(t,e,i){et&&qi();var o=t,r=Gi,a,l=ds()?jv:ul;Qi(()=>{l(r,r=e())&&(a&&Hn(a),a=Ni(()=>i(o)))}),et&&(o=$t)}var Ys=null;function Zp(t){Ys=t}function bd(t,e){return e}function C$(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)tu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;ld(s),s.append(i),o.clear(),Gs(t,e[0].prev,e[a-1].next)}Hp(r,()=>{for(var u=0;u<a;u++){var p=e[u];d||(o.delete(p.k),Gs(t,p.prev,p.next)),Ki(p.e,!d)}})}function bi(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=et?xi(wi(u)):u.appendChild(Sn())}et&&qi();var p=null,m=!1,f=xn(()=>{var b=i();return nr(b)?b:b==null?[]:Jl(b)});Qi(()=>{var b=n(f),y=b.length;if(m&&y===0)return;m=y===0;let $=!1;if(et){var S=jc(l)===Ws;S!==(y===0)&&(l=$a(),xi(l),fo(!1),$=!0)}if(et){for(var C=null,I,R=0;R<y;R++){if($t.nodeType===rr&&$t.data===ma){l=$t,$=!0,fo(!1);break}var E=b[R],P=o(E,R);I=Qg($t,d,C,null,E,P,R,r,e,i),d.items.set(P,I),C=I}y>0&&xi($a())}et||I$(b,d,l,r,e,o,i),a!==null&&(y===0?p?ws(p):p=Ni(()=>a(l)):p!==null&&Hn(p,()=>{p=null})),$&&fo(!0),n(f)}),et&&(l=$t)}function I$(t,e,i,o,r,a,l){var Y,ge,ce,ne;var d=(r&8)!==0,s=(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=a(I,P),E=p.get(R),E!==void 0&&((Y=E.a)==null||Y.measure(),($!=null?$:$=new Set).add(E));for(P=0;P<u;P+=1){if(I=t[P],R=a(I,P),E=p.get(R),E===void 0){var O=f?f.e.nodes_start:i;y=Qg(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(s&&E$(E,I,P,r),(E.e.f&8192)!==0&&(ws(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)Kg(S[U],D,i);for(U=0;U<C.length;U+=1)b.delete(C[U]);Gs(e,z.prev,G.next),Gs(e,y,z),Gs(e,G,D),f=D,y=G,P-=1,S=[],C=[]}else b.delete(E),Kg(E,f,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=[],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?[]:Jl(b);f!==null;)(f.e.f&8192)===0&&le.push(f),f=f.next;var j=le.length;if(j>0){var ie=(r&4)!==0&&u===0?i:null;if(d){for(P=0;P<j;P+=1)(ce=le[P].a)==null||ce.measure();for(P=0;P<j;P+=1)(ne=le[P].a)==null||ne.fix()}C$(e,le,ie,p)}}d&&Tn(()=>{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 E$(t,e,i,o){(o&1)!==0&&_l(t.v,e),(o&2)!==0?_l(t.i,i):t.i=i}function Qg(t,e,i,o,r,a,l,d,s,u){var p=Ys,m=(s&1)!==0,f=(s&16)===0,b=m?f?cs(r,!1,!1):Ir(r):r,y=(s&2)===0?l:Ir(l);Ae&&m&&(b.trace=()=>{var S=typeof y=="number"?l:y.v;u()[S]});var $={i:y,v:b,k:a,a:null,e:null,prev:i,next:o};Ys=$;try{return $.e=Ni(()=>d(t,b,y,u),et),$.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=p}}function Kg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=Go(a);r.before(a),a=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 P$(t,e,i){var a,l;if(!e||e===Ng(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=sr)!=null&&l[On]&&(o=`in ${sr[On]}`),vg(lu(o))}function $d(t,e,i=!1,o=!1,r=!1){var a=t,l="";B(()=>{var b;var d=bt;if(l===(l=(b=e())!=null?b:"")){et&&qi();return}if(d.nodes_start!==null&&(Bp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(et){for(var s=$t.data,u=qi(),p=u;u!==null&&(u.nodeType!==rr||u.data!=="");)p=u,u=Go(u);if(u===null)throw Qs(),ss;Ae&&!r&&P$(u.parentNode,s,l),Co($t,p),a=xi(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var f=Tl(m);if((i||o)&&(f=wi(f)),Co(wi(f),f.lastChild),i||o)for(;wi(f);)a.before(wi(f));else a.before(f)}})}function Oi(t,e,i){et&&qi();var o=t,r,a;Qi(()=>{r!==(r=e())&&(a&&(Hn(a),a=null),r&&(a=Ni(()=>i(o,r))))},65536),et&&(o=$t)}function Ia(t,e,i,o,r,a){var y;let l=et;et&&qi();var d=Ae&&a&&((y=Bt)==null?void 0:y.function[On]),s,u,p=null;et&&$t.nodeType===zc&&(p=$t,qi());var m=et?$t:t,f,b=Ys;Qi(()=>{let $=e()||null;var S=r?r():i||$==="svg"?Bc:null;if($!==s){var C=Ys;Zp(b),f&&($===null?Hn(f,()=>{f=null,u=null}):$===u?ws(f):(Ki(f),du(!1))),$&&$!==u&&(f=Ni(()=>{if(p=et?p:S?document.createElementNS(S,$):document.createElement($),Ae&&a&&(p.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Co(p,p),o){et&&Hg($)&&p.append(document.createComment(""));var I=et?wi(p):p.appendChild(Sn());et&&(I===null?fo(!1):xi(I)),o(p,I)}bt.nodes_end=p,m.before(p)})),s=$,s&&(u=s),du(!0),Zp(C)}},65536),l&&(fo(!0),xi(m))}var ef;function Gg(t){return ef=t.target,new Jp(t)}var Ts,Er,Jp=class{constructor(e){Us(this,Ts);Us(this,Er);var a,l;var i=new Map,o=(d,s)=>{var u=cs(s,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,s){var u;return n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===dl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var p;return N((p=i.get(s))!=null?p:o(s,u),u),Reflect.set(d,s,u)}});ll(this,Er,(e.hydrate?Yp:Qr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&wl(),ll(this,Ts,r.$$events);for(let d of Object.keys(Ri(this,Er)))d==="$set"||d==="$destroy"||d==="$on"||uo(this,d,{get(){return Ri(this,Er)[d]},set(s){Ri(this,Er)[d]=s},enumerable:!0});Ri(this,Er).$set=d=>{Object.assign(r,d)},Ri(this,Er).$destroy=()=>{Ca(Ri(this,Er))}}$set(e){Ri(this,Er).$set(e)}$on(e,i){Ri(this,Ts)[e]=Ri(this,Ts)[e]||[];let o=(...r)=>i.call(this,...r);return Ri(this,Ts)[e].push(o),()=>{Ri(this,Ts)[e]=Ri(this,Ts)[e].filter(r=>r!==o)}}$destroy(){Ri(this,Er).$destroy()}};Ts=new WeakMap,Er=new WeakMap;function q(t,e){Tn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=ef)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ae&&Wg(e.hash,d)}})}function Cs(t,e){var i=void 0,o;Qi(()=>{i!==(i=e())&&(o&&(Ki(o),o=null),i&&(o=Ni(()=>{To(()=>i(t))})))})}function Yg(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=Yg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function jg(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Yg(t))&&(o&&(o+=" "),o+=e);return o}function yd(t){return typeof t=="object"?jg(t):t!=null?t:""}var Xg=[...`
44
- \r\f \v\uFEFF`];function Jg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(l===0||Xg.includes(o[l-1]))&&(d===o.length||Xg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Zg(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function tf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function eh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(tf)),r&&s.push(...Object.keys(r).map(tf));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):a?a===f&&(a=!1):f==="/"&&t[m+1]==="*"?d=!0:f==='"'||f==="'"?a=f:f==="("?l++:f===")"&&l--,!d&&a===!1&&l===0){if(f===":"&&p===-1)p=m;else if(f===";"||m===$-1){if(p!==-1){var b=tf(t.substring(u,p).trim());if(!s.includes(b)){f!==";"&&m++;var y=t.substring(u,m).trim();i+=" "+y+";"}}u=m+1,p=-1}}}}return o&&(i+=Zg(o)),r&&(i+=Zg(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function re(t,e,i,o,r,a){var l=t.__className;if(et||l!==i||l===void 0){var d=Jg(i,o,a);(!et||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function of(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function qe(t,e,i,o){var r=t.__style;if(et||r!==e){var a=eh(e,o);(!et||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(of(t,i==null?void 0:i[0],o[0]),of(t,i==null?void 0:i[1],o[1],"important")):of(t,i,o));return o}function xd(t,e,i){if(t.multiple){if(e==null)return;if(!nr(e))return hg();for(var o of t.options)o.selected=e.includes(th(o));return}for(o of t.options){var r=th(o);if(Ep(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function nf(t){var e=new MutationObserver(()=>{xd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),So(()=>{e.disconnect()})}function th(t){return"__value"in t?t.__value:t.value}var Il=Symbol("class"),El=Symbol("style"),nh=Symbol("is custom element"),rh=Symbol("is html");function sh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ze(t,e,i,o){var r=lh(t);if(et&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||O$(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Yv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&dh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ah(t,e,i,o,r=!1){var E;var a=lh(t),l=a[nh],d=!a[rh];let s=et&&l;s&&fo(!1);var u=e||{},p=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=yd(i.class):(o||i[Il])&&(i.class=null),i[El]&&((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";re(t,b,O,o,e==null?void 0:e[Il],i[Il]),u[P]=O,u[Il]=i[Il];continue}if(P==="style"){qe(t,O,e==null?void 0:e[El],i[El]),u[P]=O,u[El]=i[El];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=Dg(z);if(Og(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,nt([z]);else{let G=function(le){u[P].call(this,le)};var R=G;u[U]=Qp(z,t,G,D)}else S&&(t[`__${z}`]=void 0)}else if(P==="style")ze(t,P,O);else if(P==="autofocus")Kp(t,!!O);else if(!l&&(P==="__value"||P==="value"&&O!=null))t.value=t.__value=O;else if(P==="selected"&&p)sh(t,O);else{var C=P;d||(C=Bg(C));var I=C==="defaultValue"||C==="defaultChecked";if(O==null&&!l&&!I)if(a[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"&&ze(t,C,O,r)}}}return s&&fo(!0),u}function Yi(t,e,i=[],o,r=!1,a=Wr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",p=!1;if(Qi(()=>{var f=e(...l.map(n)),b=ah(t,d,f,o,r);p&&u&&"value"in f&&xd(t,f.value,!1);for(let $ of Object.getOwnPropertySymbols(s))f[$]||Ki(s[$]);for(let $ of Object.getOwnPropertySymbols(f)){var y=f[$];$.description===$p&&(!d||y!==d[$])&&(s[$]&&Ki(s[$]),s[$]=Ni(()=>Cs(t,()=>y))),b[$]=y}d=b}),u){var m=t;To(()=>{xd(m,d.value),nf(m)})}p=!0}function lh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[nh]:t.nodeName.includes("-"),[rh]:t.namespaceURI===Uv}}var ih=new Map;function dh(t){var e=ih.get(t.nodeName);if(e)return e;ih.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=Hc(o);for(var a in i)i[a].set&&e.push(a);o=va(o)}return e}function O$(t,e,i){var o;Ae&&(e==="srcset"&&D$(t,i)||rf((o=t.getAttribute(e))!=null?o:"",i)||mg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function rf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function oh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function D$(t,e){var i=oh(t.srcset),o=oh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(rf(i[l][0],r)||rf(r,i[l][0])))}var B$=Fc?()=>performance.now():()=>Date.now(),Gr={tick:t=>(Fc?requestAnimationFrame:vt)(t),now:()=>B$(),tasks:new Set};function ch(){let t=Gr.now();Gr.tasks.forEach(e=>{e.c(t)||(Gr.tasks.delete(e),e.f())}),Gr.tasks.size!==0&&Gr.tick(ch)}function uh(t){let e;return Gr.tasks.size===0&&Gr.tick(ch),{promise:new Promise(i=>{Gr.tasks.add(e={c:t,f:i})}),abort(){Gr.tasks.delete(e)}}}function cu(t,e){hd(()=>{t.dispatchEvent(new CustomEvent(e))})}function z$(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 ph(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=z$(r.trim());e[l]=a.trim()}return e}var W$=t=>t;function Yr(t,e,i,o){var R;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,p=e.inert,m=e.style.overflow,f,b;function y(){var O;var E=Mt,P=bt;Wi(null),po(null);try{return u!=null?u:u=i()(e,(O=o==null?void 0:o())!=null?O:{},{direction:s})}finally{Wi(E),po(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}a||f==null||f.abort(),cu(e,"introstart"),f=sf(e,y(),b,1,()=>{cu(e,"introend"),f==null||f.abort(),f=u=void 0,e.style.overflow=m})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,cu(e,"outrostart"),b=sf(e,y(),f,0,()=>{cu(e,"outroend"),E==null||E()})},stop:()=>{f==null||f.abort(),b==null||b.abort()}},S=bt;if(((R=S.transitions)!=null?R:S.transitions=[]).push($),r&&_d){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&&To(()=>{It(()=>$.in())})}}function sf(t,e,i,o,r){var a=o===1;if(Ks(e)){var l,d=!1;return Tn(()=>{if(!d){var S=e({direction:a?"in":"out"});l=sf(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:s=0,css:u,tick:p,easing:m=W$}=e;var f=[];if(a&&i===void 0&&(p&&p(0,1),u)){var b=ph(u(0,1));f.push(b,b)}var y=()=>1-o,$=t.animate(f,{duration:s,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=ph(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&&uh(()=>{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=vt)},deactivate:()=>{r=vt},reset:()=>{o===0&&(p==null||p(1,0))},t:()=>y()}}function af(t,e,i){var o=Wo(t,e);o&&o.set&&(t[e]=i,So(()=>{t[e]=null}))}var js,Pl,wd,pu,fh,fu=class fu{constructor(e){Us(this,pu);Us(this,js,new WeakMap);Us(this,Pl);Us(this,wd);ll(this,wd,e)}observe(e,i){var o=Ri(this,js).get(e)||new Set;return o.add(i),Ri(this,js).set(e,o),Fv(this,pu,fh).call(this).observe(e,Ri(this,wd)),()=>{var r=Ri(this,js).get(e);r.delete(i),r.size===0&&(Ri(this,js).delete(e),Ri(this,Pl).unobserve(e))}}};js=new WeakMap,Pl=new WeakMap,wd=new WeakMap,pu=new WeakSet,fh=function(){var e;return(e=Ri(this,Pl))!=null?e:ll(this,Pl,new ResizeObserver(i=>{for(var o of i){fu.entries.set(o.target,o);for(var r of Ri(this,js).get(o.target)||[])r(o)}}))},or(fu,"entries",new WeakMap);var lf=fu;var K$=new lf({box:"border-box"});function In(t,e,i){var o=K$.observe(t,()=>i(t[e]));To(()=>(It(()=>i(t[e])),o))}function mh(t,e){return t===e||(t==null?void 0:t[Ko])===e}function it(t={},e,i,o){return To(()=>{var r,a;return Yo(()=>{r=a,a=(o==null?void 0:o())||[],It(()=>{t!==i(...a)&&(e(t,...a),r&&mh(i(...r),t)&&e(null,...r))})}),()=>{Tn(()=>{a&&mh(i(...a),t)&&e(null,...a)})}}),t}function bo(t=!1){let e=Bt,i=e.l.u;if(!i)return;let o=()=>su(e.s);if(t){let r=0,a={},l=Wr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&ud(()=>{vh(e,o),qs(i.b)}),Re(()=>{let r=It(()=>i.m.map(Gv));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Re(()=>{vh(e,o),qs(i.a)})}function vh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Sd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),vt;let o=It(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Al=[];function Pr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=vt){let i=null,o=new Set;function r(d){if(ul(t,d)&&(t=d,i)){let s=!Al.length;for(let u of o)u[1](),Al.push(u,t);if(s){for(let u=0;u<Al.length;u+=2)Al[u][0](Al[u+1]);Al.length=0}}}function a(d){r(d(t))}function l(d,s=vt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||vt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,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 a=e.length<2;return Pr(i,(l,d)=>{let s=!1,u=[],p=0,m=vt,f=()=>{if(p)return;m();let y=e(o?u[0]:u,l,d);a?l(y):m=typeof y=="function"?y:vt},b=r.map((y,$)=>Sd(y,S=>{u[$]=S,p&=~(1<<$),s&&f()},()=>{p|=1<<$}));return s=!0,f(),function(){qs(b),m(),s=!1}})}function he(t){let e;return Sd(t,i=>e=i)(),e}var mu=!1,df=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:cs(void 0),unsubscribe:vt};if(o.store!==t&&!(df in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=vt;else{var r=!0;o.unsubscribe=Sd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&df in i?he(t):n(o.source)}function Ve(){let t={};function e(){So(()=>{for(var i in t)t[i].unsubscribe();uo(t,df,{enumerable:!1,value:!0})})}return[t,e]}function cf(t){var e=mu;try{return mu=!1,[t(),mu]}finally{mu=e}}var Z$={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ae&&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 En(t,e,i){return new Proxy(Ae?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Z$)}var J$={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 a=Wo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ks(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Wo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Ko||e===dl)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 Is(...t){return new Proxy({props:t},J$)}function gh(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,a=!as||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=cf(()=>t[e]):u=t[e];var p=Ko in t||dl in t,m=l&&((U=(D=Wo(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=It(o):f=o),f);u===void 0&&o!==void 0&&(m&&a&&ng(e),u=$(),m&&m(u));var S;if(a)S=()=>{var z=t[e];return z===void 0?$():(b=!0,y=!1,z)};else{var C=(r?Wr:xn)(()=>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&&a)return S;if(m){var I=t.$$legacy;return function(z,G){return arguments.length>0?((!a||!G||I||s)&&m(G?S():z),z):S()}}var R=!1,E=!1,P=cs(u),O=Wr(()=>{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=pl),function(z,G){if(nu!==null&&(R=E,S(),n(P)),arguments.length>0){let le=G?n(O):a&&l?si(z):z;if(!O.equals(le)){if(R=!0,N(P,le),y&&f!==void 0&&(f=le),gh(O))return z;It(()=>n(O))}return z}return gh(O)?O.v:n(O)}}var e1;typeof HTMLElement=="function"&&(e1=class extends HTMLElement{constructor(e,i,o){super();or(this,"$$ctor");or(this,"$$s");or(this,"$$c");or(this,"$$cn",!1);or(this,"$$d",{});or(this,"$$r",!1);or(this,"$$p_d",{});or(this,"$$l",{});or(this,"$$l_u",new Map);or(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),_(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=t1(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=uf(l,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Gg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=eu(()=>{Yo(()=>{var a;this.$$r=!0;for(let l of yp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=uf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let a in this.$$l)for(let l of this.$$l[a]){let d=this.$$c.$on(a,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=uf(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 yp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function uf(t,e,i,o){var a;let r=(a=i[t])==null?void 0:a.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function t1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var hh="5";var _h,bh,$h;typeof window!="undefined"&&(($h=(bh=(_h=window.__svelte)!=null?_h:window.__svelte={}).v)!=null?$h:bh.v=new Set).add(hh);import{areValidLiveRecordSources as vC,clientChecker as yv}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as Eb,safeStorage as gC,throttleFn as hC}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as _C}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as i1,fillWithDefault as o1,VideoQuality as yh}from"@vkontakte/videoplayer-shared/es2018";var n1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:i1.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:yh.Q_480P,highQualityLimit:yh.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=>o1(t,n1),wh=t=>vl("ui-config",t),kt=()=>ml("ui-config");var Td="vk_player_debug_panel_opened";var Sh="videoplayer",Th="videoplayer";var ps={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ch=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ih=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Eh=new Set(["ShiftRight","ShiftLeft"]);var Ph=["TIMELINE"],Cd=[...Ph,"GRAPH_BUTTON"],pf=[...Ph,"PLAY_BUTTON"],Id=[...Cd,"PLAY_BUTTON"];var fs=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(fs||{}),Pa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ah,VERSION as r1}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as s1}from"@vkontakte/videoplayer-core/es2018";import{VERSION as a1}from"@vkontakte/videoplayer-statistics/es2018";var vu="prod",kl="1.1.76-beta.2";var Aa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var kh=Symbol("storeContext"),Lh=Symbol("microStoresContext"),Mh=(t,e)=>{vl(kh,t),vl(Lh,e),vu==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=ml(kh);return Ah(t,"Store context is empty!"),t},$o=()=>{let t=ml(Lh);return Ah(t,"MicroStores context is empty!"),t},ai=(t,e)=>hu(t,t.getValue(),e),hu=(t,e,i)=>Pr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),Vh=(t,e,i,o)=>{var D,U,z,G,le,j,ie,Y,ge;let r=t.info,{width:a,height:l}=he(i.ui.playerSize),d=(U=(D=r.throughputEstimation$.getValue())==null?void 0:D.toFixed(0))!=null?U:0,s=(G=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?G:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${kl} (core: ${s1}, stat: ${a1}, shared: ${r1})`,m=he(i.state.errorLog$),f=m.length?`
45
- `+m.map((ce,ne)=>{var Ne;let _e=`${ne}) Type: ${ce.id}
46
- `,we=`Message: ${ce.message} (${ce.thrown})
47
- `,Z=`Trace: ${(Ne=ce.thrown)==null?void 0:Ne.stack}
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: ${(j=$==null?void 0:$.codec)!=null?j:""}`+($!=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=(Y=(ie=r.currentBuffer$.getValue())==null?void 0:ie.end)!=null?Y: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 @ ${s}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":`${a}x${l}`,URL:window.location.href,Errors:f};return Object.entries(O).filter(([ce,ne])=>ne!==void 0).map(([ce,ne])=>`${ce}: ${ne}`).join(`
50
- `)},Rh=(t,e,i)=>{var D,U,z,G;let o=t.info,{width:r,height:a}=he(i.ui.playerSize),l={version:kl,viewport:`${r}x${a}`,volume:Math.round(he(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let 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},Nh=(t,e)=>Aa(t,e,"mp4"),Oh=t=>!t.type,Dh=t=>!!t.type,Bh=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},gu=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}};import{isNullable as gf,safeStorage as Ti}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var l1="vk_player_",Fh="vk_player_prefer_traffic_saving_enabled",Hh="vk_player_preferred_volume",Uh="vk_player_prefer_volume_mute",hf="vk_player_preferred_quality",ff="vk_player_preferred_default_quality_settings",mf="vk_player_preferred_quality_settings_by_video",zh="vk_player_preferred_stream_language",Wh="vk_player_preferred_rate",Kh="vk_player_preferred_autoplay_next",vf="vk_player_preferred_subtitles_language",qh="vk_player_user_video_prefs",Qh=`${l1}preview_track_close_tooltip`,Gh=t=>t>1?1:t<0?0:t,_f=t=>Ti.set(Hh,Gh(t).toString(10)),_u=()=>{let t=Ti.get(Hh);return gf(t)?void 0:Gh(parseFloat(t))},bf=(t,e)=>Ti.set(hf,JSON.stringify({videoId:t,value:e})),bu=()=>Ti.remove(hf),$f=t=>{let e=Ti.get(hf);if(gf(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){bu();return}return o},yf=(t,e)=>{e?Ti.set(t,"true"):Ti.remove(t)},xf=t=>Ti.get(t)==="true",wf=t=>yf(Uh,t),Yh=()=>xf(Uh),Ed=t=>yf(Fh,t),Sf=()=>xf(Fh),jh=()=>Ti.get(zh),Tf=t=>Ti.set(zh,t),Cf=()=>Ti.get(vf),If=t=>{t?Ti.set(vf,t):Ti.remove(vf)},Xh=t=>Ti.set(Wh,JSON.stringify({rate:t})),Zh=()=>{let t=Ti.get(Wh);if(gf(t))return;let{rate:e}=JSON.parse(t);return e},Jh=t=>yf(Kh,t),e_=()=>xf(Kh),d1=()=>{let t=p=>{Ti.set(ff,JSON.stringify(p))},e=()=>{try{let p=Ti.get(ff);return p?JSON.parse(p):null}catch(p){return null}},i=()=>{try{let p=Ti.get(mf);return p?JSON.parse(p):null}catch(p){return null}},o=p=>{Ti.set(mf,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&&a();let f=e();return f?{...f,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{Ti.remove(mf)},l=()=>{Ti.remove(ff)},d=(p,m="as-default")=>{p.type==="exact_quality"||m==="to-video"?o(p):t(p)},s=p=>{let m=r(p);if(m){switch(m.type){case"traffic_saving":Ed(!0);break;case"exact_quality":bf(p,m.quality)}a(),l()}},u=p=>{let m=$f(p);if(m){o({type:"exact_quality",videoId:p,quality:m});return}Sf()&&t({type:"traffic_saving",videoId:p}),Ed(!1),bu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Cf,savePreferredSubtitlesLanguage:If}},{getPreferredQualitySettings:t_,migrateSettingsToLegacyWay:i_,savePreferredQualitySettings:$u,savePreferredDefaultQualitySettings:I8,removePreferredQualitySettingsByVideo:E8,getPreferredDefaultQualitySettings:yu}=d1(),c1=3,u1=3,o_=()=>{let t=Ti.get(qh);if(t)try{return JSON.parse(t)}catch(e){return null}return null},xu=(t,e)=>{var r,a;let i=o_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},Ef=(t,e,i)=>{var l,d,s;let o=(l=o_())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=p1(o);Ti.set(qh,JSON.stringify(a))};function p1(t){let e=Object.entries(t).reduce((o,[r,a])=>{let l=0;return Object.values(a).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(u1),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(c1),Object.fromEntries(e)}function n_(){Ti.set(Qh,JSON.stringify(!0))}function r_(){let t=Ti.get(Qh);try{return t?JSON.parse(t):!1}catch(e){return!1}}import{PlaybackState as Tb}from"@vkontakte/videoplayer-core/es2018";cg();var Xs="var(--btn-color, #fff)";var m1=Ie('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Xe(t,e){var s;F(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,Xs),a=(s=e.viewBox)!=null?s:`0 0 ${i()} ${o()}`;var l=m1(),d=T(l);Jt(d,()=>e.children),w(l),B(()=>{ze(l,"aria-label",e.ariaLabel),ze(l,"aria-hidden",!e.ariaLabel),ze(l,"width",i()),ze(l,"height",o()),ze(l,"viewBox",a),ze(l,"fill",r()),qe(l,e.style),ze(l,"data-testid",e.testId)}),_(t,l),H()}var v1=Ie('<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);function Pd(t,e){F(e,!0);let i=g(e,"width",19,()=>"48"),o=g(e,"height",19,()=>"48");Xe(t,{get width(){return i()},get height(){return o()},get ariaLabel(){return e.ariaLabel},get testId(){return e.testId},children:(r,a)=>{var l=v1(),d=de(l),s=T(d);Jt(s,()=>e.children),w(d),ui(),_(r,l)},$$slots:{default:!0}}),H()}import{isNullable as l_,InterfaceLanguage as d_}from"@vkontakte/videoplayer-shared/es2018";var g1={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
- качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
52
- попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},s_=g1;var h1={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
- 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"},a_=h1;var Es=new Map;Es.set(d_.EN,a_);Es.set(d_.RU,s_);var c_=new Map,Pf=({language:t,pack:e,fallback:i})=>{if(Es.has(t)){let o=Es.get(t);Es.set(t,{...o,...e})}else Es.set(t,e);c_.set(t,i)},Af=t=>Es.has(t),kf=(t,e,i,o)=>{var l;let r=Es.get(t),a=r==null?void 0:r[e];if(l_(a)){let d=(l=c_.get(t))!=null?l:o,s=d?Es.get(d):void 0;a=s==null?void 0:s[e]}return l_(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=i[s])!=null?u:""}):a},Q=(t,e)=>{let{interfaceLanguage$:i}=ve(),o=he(i),r=kt();return kf(o,t,e,r.defaultLanguage)};var _1=Ie('<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 Ad(t,e){F(e,!1);let i=Q("video360");bo(),Pd(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",children:(o,r)=>{var a=_1();_(o,a)},$$slots:{default:!0}}),H()}import"@vkontakte/videoplayer-core/es2018";var Ll;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ll||(Ll={}));var b1=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,y1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wu="?",x1="X-Sentry-Auth",w1=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function S1(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,r;for(let a=0;a<i.length;++a){if(o=b1.exec(i[a]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||wu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=y1.exec(i[a]))r={filename:o[2],function:o[1]||wu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=$1.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||wu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=wu),e.push(r)}return e.length?{value:u_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function u_(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function T1(t){try{let e=S1(t);if(e)return e}catch(e){}return{value:u_(t),type:t&&t.name,stacktrace:{frames:[]}}}function C1(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Su=class{constructor(e){if(e&&e.dsn){let i=w1.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),a=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/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:[T1(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(x1,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:C1(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function p_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function I1(){return window}var Tu=class t extends Su{constructor(e,i=I1()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:s=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=a,this.blacklistUrls=l,this.ignoreErrors=d,this.release=s}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=>p_(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=>p_(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],a=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Cu,Subscription as E1}from"@vkontakte/videoplayer-shared/es2018";var Iu=null,ka=class{constructor(e,i,o={}){!Iu&&e.dsn&&(this.sentryClient=new Tu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new E1,this.options=e,this.context=o,Iu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Iu=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:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:p,blackErrorCategoryList:m}=l,{errorType:f,category:b}=i;if(Cu(b)&&m.includes(b)||Cu(f)&&p.includes(f))return;if(Math.random()<=d||Cu(b)&&u.includes(b)||Cu(f)&&s.includes(f)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras({...a,...o});try{f&&r.captureMessage(f,i.fatal?Ll.fatal:Ll.error),r.report(e)}catch($){console.error($)}}}static getInstance(){return Iu}};var ms=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ms||{});var Eu=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()},Pu=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,m_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},kd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Zs=()=>!!kd(),Au=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ku=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},v_=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))};import{clientChecker as g_}from"@vkontakte/videoplayer-core/es2018";var h_=()=>({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:g_.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:g_.device.isApple?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as P1,ValueSubject as Lf}from"@vkontakte/videoplayer-shared/es2018";var La=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:P1(this.onResize.bind(this),300)};this.info={isActive$:new Lf(!1),isEnabled$:new Lf(!1),type:0};this.info.isEnabled$=new Lf(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,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).enterpictureinpicture)==null||a.call(r,e))}onLeavePictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).leavepictureinpicture)==null||a.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 Ma(t){return t instanceof La}import{devNull as __,now as b_}from"@vkontakte/videoplayer-shared/es2018";function Vf(t,e){F(e,!1);let i=ve();Vt(()=>{i.getAdmanWrapper().startPostroll()}),bo(),H()}import{noop as L1}from"@vkontakte/videoplayer-shared/es2018";var A1=Ie('<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>'),k1=Ie('<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 Ar(t,e){F(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),l=v(()=>`chevron-icon--${i()}`),d=v(()=>(()=>{let p="";return n(a)&&(p+="transform: rotate(180deg);"),p.length?p:void 0})()),s=v(()=>o()?Xs:"currentColor"),u=v(()=>n(r)?"7":"16");Xe(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(p,m)=>{var f=Le(),b=de(f);{var y=S=>{var C=A1();_(S,C)},$=S=>{var C=k1();_(S,C)};V(b,S=>{n(r)?S(y):S($,!1)})}_(p,f)},$$slots:{default:!0}}),H()}var M1=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},V1=L('<div class="skip s-1h"> <!></div>'),R1=L("<div><!></div>"),N1={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 Rf(t,e){F(e,!0),q(t,N1);let[i,o]=Ve(),r=()=>x(u,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,L1),u=ve().ui.isMobile,p=v(()=>a()>0&&a()>=l());var m=R1();let f;m.__click=[M1,p,d];var b=T(m);{var y=S=>{var C=V1(),I=T(C),R=k(I);Ar(R,{direction:"right"}),w(C),B(E=>fe(I,`${E!=null?E:""} `),[()=>Q("skip_ads_now")]),_(S,C)},$=S=>{var C=us();B(I=>fe(C,I),[()=>Q("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),_(S,C)};V(b,S=>{n(p)?S(y):S($,!1)})}w(m),B(S=>f=re(m,1,"container s-1h",null,f,S),[()=>({"container-mobile":r(),skippable:n(p)})]),_(t,m),H(),o()}nt(["click"]);var O1=L('<button class="go-to-site s-1g"> </button>'),D1={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 Nf(t,e){F(e,!1),q(t,D1),bo();var i=O1(),o=T(i,!0);w(i),B(r=>fe(o,r),[()=>Q("visit_advertiser")],xn),_(t,i),H()}var B1=L('<div class="top-gradient-mobile s-r"></div>'),F1=L('<div class="container s-r"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),H1={hash:"s-r",code:".container.s-r{height:100%;width:100%}.top-gradient-mobile.s-r{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 Md(t,e){F(e,!0),q(t,H1);let[i,o]=Ve(),r=()=>x(U,"$canSkipAd",i),a=()=>x(D,"$adPlaybackState",i),l=()=>x(I,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>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=kt(),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()&&a()!=="inactive"),j=v(()=>l()&&a()!=="inactive"&&R);Vt(()=>{let A=$.getAdmanWrapper();if(__.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[b_(),p()]}),!p()){A.onAdmanLoadingError();return}let We=()=>{var Be;let{width:Oe,height:De}=he($.ui.playerSize),J=he($.ui.isFullscreen),X=(Be=f())!=null?Be:he($.ui.isAutoplay),Se=S.ads.paramsOverride;return{width:Oe,height:De,isFullscreen:J,isAutoplay:X,adsContainer:n(E),adsVideoElement:n(P),slotId:p(),params:m(),paramsOverride:Se,duration:b(),externalApi:y()}},Ce=async Oe=>{Oe&&await mo();let De=We();await A.initAdman(De),O=!0},pe=new AbortController,se=()=>{pe.abort()};return window.AdmanHTML?Ce(!0).catch(()=>{A.onAdmanLoadingError()}):A.loadAdman(pe.signal).then(()=>Ce(!1)).catch(()=>{A.onAdmanLoadingError()}),()=>{__.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[b_(),p()]}),!O&&se()}});var ie=F1(),Y=T(ie);{var ge=A=>{var We=B1();_(A,We)};V(Y,A=>{l()&&A(ge)})}var ce=k(Y,2);it(ce,A=>N(P,A),()=>n(P));var ne=k(ce,2);{var _e=A=>{Rf(A,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return $.actions.internal.skipAd}})};V(ne,A=>{n(le)&&A(_e)})}var we=k(ne,2);{var Z=A=>{Vf(A,{})};V(we,A=>{u()&&A(Z)})}var Ne=k(we,2);{var ue=A=>{Nf(A,{})};V(Ne,A=>{n(j)&&A(ue)})}w(ie),it(ie,A=>N(E,A),()=>n(E)),_(t,ie),H(),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(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var U1=Ie('<path fill="#fff"></path>'),z1=Ie("<path></path><!>",1);function Vd(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),a="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Xe(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=z1(),u=de(s),p=k(u);{var m=f=>{var b=U1();ze(b,"d",a),_(f,b)};V(p,f=>{i()&&f(m)})}B(()=>ze(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),_(l,s)},$$slots:{default:!0}})}var W1=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>'),K1=L('<div class="live-icon s-e"><!></div>'),q1=L('<span class="text s-e"> </span>'),Q1=L("<div><!> <!></div>"),G1={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 Rd(t,e){q(t,G1);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=Q1();let l;var d=T(a);{var s=f=>{var b=W1();_(f,b)};V(d,f=>{i()&&f(s)})}var u=k(d,2);{var p=f=>{var b=K1(),y=T(b);Vd(y,{isActive:!0}),w(b),_(f,b)},m=f=>{var b=q1(),y=T(b,!0);w(b),B(()=>fe(y,e.time)),_(f,b)};V(u,f=>{o()?f(p):f(m,!1)})}w(a),B(f=>l=re(a,1,"wrapper s-e",null,l,f),[()=>({live:o(),playing:r()})]),_(t,a)}var Ml=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Y1=L('<div role="timer" data-testid="thumb-timer"><!></div>'),j1={hash:"s-k",code:".thumb-timer.s-k{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function Nd(t,e){F(e,!0),q(t,j1);let[i,o]=Ve(),r=()=>x(p,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=kt(),u=v(()=>jo(e.duration-e.position)),p=ae(!1);var m=Y1();let f;var b=T(m);Rd(b,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),w(m),Cs(m,()=>Ml(a()&&s.features.usePerformanceFix,p,s.disableInvisibleComponentsTimeout)),B(y=>f=re(m,1,"thumb-timer s-k",null,f,y),[()=>({"out-of-flow":r(),hidden:a()})]),_(t,m),H(),o()}var Vl=t=>{if(!navigator.clipboard){$_(t);return}navigator.clipboard.writeText(t).catch(()=>$_(t))};function $_(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)}}}import{ChromecastState as ay}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as y_}from"@vkontakte/videoplayer-core/es2018";var Of="focus-hidden";var kr=t=>{t.stopPropagation(),t.preventDefault()},Df=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Of)},Z1=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},J1=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"},ty=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},x_=t=>t.code==="Escape",iy=t=>t.code==="ArrowLeft",Od=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},w_=t=>{ey(t)?(kr(t),J1(t.target)):ty(t)&&(kr(t),Z1(t.target))},ta=t=>!y_.device.isAndroid&&(t==null?void 0:t.detail)===0||y_.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Rl=async(t,e,i)=>{await mo(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(await mo(),i.set(!1),t.focus())},S_=async(t,e,i)=>{await mo(),t&&!e&&he(i)&&(i.set(!1),t.focus())},Dd=async(t,e,i,o=!1)=>{if(await mo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(Of,!i),a==null||a.focus()}},T_=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Lu=(t,e)=>{w_(t),Df(t.target),x_(t)&&(kr(t),e())},Mu=async(t,e)=>{Od(t,["ArrowRight"])&&(kr(t),e())},C_=async(t,e,i)=>{if(w_(t),iy(t)){kr(t),e();return}x_(t)&&(kr(t),i())},Nl=(t,e)=>{Od(t)&&(kr(t),e())},I_=(t,e,i)=>{if(Od(t))kr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),kr(t);return}o==="ArrowRight"&&!e&&(i(!0),kr(t))}},E_=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},P_=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}};import{isNullable as Vu,isValidURL as ly}from"@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};import{noop as A_}from"@vkontakte/videoplayer-shared/es2018";var ny=(t,e)=>{Nl(t,()=>e())},ry=L('<li class="item s-1p" role="menuitem" tabindex="0"> </li>'),sy={hash:"s-1p",code:".item.s-1p{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-1p:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function Bf(t,e){F(e,!0),q(t,sy);let i=g(e,"onClick",3,A_),o=g(e,"closeContextMenu",3,A_),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=ry();a.__click=r,a.__keydown=[ny,r];var l=T(a,!0);w(a),B(()=>{var d;ze(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),ze(a,"data-testid",e.id),fe(l,e.label)}),_(t,a),H()}nt(["click","keydown"]);var Ra=(t,e)=>t.weight-e.weight;var Bd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Bd||{});var dy=(t,e)=>{Lu(t,e)},cy=t=>{t.preventDefault()},uy=L('<ul role="menu" class="s-w"></ul>'),py={hash:"s-w",code:"ul.s-w{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 Ff(t,e){F(e,!0),q(t,py);let[i,o]=Ve(),r=()=>x(ge,"$playerPhase",i),a=()=>x(le,"$isLive$",i),l=()=>x(ce,"$isPiPEnabled$",i),d=()=>x(G,"$chromecastState$",i),s=()=>x(ne,"$pictureInPictureApiIsActive$",i),u=()=>x(Y,"$isLooped$",i),p=()=>x(j,"$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}=$o(),E=kt(),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$,j=I.state.positionExact$,ie=I.state.isInteractive,Y=I.state.looped$,ge=I.playerPhase,{isEnabled$:ce,isActive$:ne}=R,_e=v(()=>r()==="video"),we=v(()=>!!a()&&n(_e)),Z=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=v(()=>{var $e;return E.features.copyVideoLink&&(($e=I.callbacks)==null?void 0:$e.onCopyVideoLink)}),ue=v(()=>n(Ne)&&!n(Z)&&!ie&&!n(we)),A=v(()=>{var $e;return!!(($e=I.callbacks)!=null&&$e.onCopyEmbedCodeClicked)}),We=v(()=>l()&&d()!==ay.CONNECTED&&!ie&&n(_e)),Ce=v(()=>!ie&&!n(Z)&&!n(we)),pe=v(()=>E.features.videoRotate&&!ie&&!n(Z)),se=v(()=>E.showSupport&&!s()),Oe=v(()=>E.features.saveTraceInfoToFile),De=()=>{var $e;P.set(!1),($e=e.returnFocus)==null||$e.call(e)},J=($e,Ze)=>{if(!$()||!y())return;let Ue=$().getBoundingClientRect(),ot=y().getBoundingClientRect();N(S,$e-ot.left),N(C,Ze-ot.top),n(S)+Ue.width>ot.width&&N(S,ot.width-Ue.width),n(C)+Ue.height>ot.height&&N(C,ot.height-Ue.height),N(S,Math.max(n(S),0),!0),N(C,Math.max(n(C),0),!0)};Re(()=>{(async()=>{if($()&&y()){await mo();let{top:Ze,left:Ue,bottom:ot,right:Xt}=b(),ni=Ue!=null?Ue:0,pi=Ze!=null?Ze:0,vi=$().getBoundingClientRect();Vu(Ue)&&!Vu(Xt)&&(ni=Xt-vi.width),Vu(Ze)&&!Vu(ot)&&(pi=ot-vi.height),ni=Math.max(ni,0),pi=Math.max(pi,0),J(ni,pi)}})()});let X=()=>{I.actions.internal.videoRotate()},Se=()=>{ly(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 Ze=new Blob([...$e],{type:"plain/text"}),Ue=window.URL.createObjectURL(Ze);Aa(Ue,"vk_player_debug_info","txt")}else Vl(I.actions.internal.getDebugTextData())},Ke=()=>{let $e=I.actions.internal.getTraceTextData(),Ze=new Blob([...$e],{type:"application/json"}),Ue=window.URL.createObjectURL(Ze);Aa(Ue,"vk_player_trace_info","json")},Qe=()=>{O.set(!0)},Te=async()=>{var $e;try{z()}finally{($e=e.returnFocus)==null||$e.call(e)}},ke=()=>{I.actions.internal.setLooped(!u())},He=()=>{var $e,Ze;if(n(A)){let Ue=(Ze=($e=I.callbacks)==null?void 0:$e.onCopyEmbedCodeClicked)==null?void 0:Ze.call($e);Ue&&Vl(Ue)}},Lt=($e=!1)=>{var Ze,Ue;if((Ze=I.callbacks)!=null&&Ze.onCopyVideoLink){let ot=(Ue=I.callbacks)==null?void 0:Ue.onCopyVideoLink($e,p());ot&&Vl(ot)}},Je=v(()=>E.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Rt=v(()=>n(Ne)?{id:"copy-link",weight:jr["copy-link"],label:U("menu_copy_video_link"),onClick:()=>Lt()}:void 0),zt=v(()=>n(ue)?{id:"copy-link-timestamp",weight:jr["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>Lt(!0)}:void 0),wt=v(()=>n(A)?{id:"copy-embed-code",weight:jr["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:He}:void 0),jt=v(()=>n(We)?{id:"pip",weight:jr.pip,label:s()?U("menu_pip_close"):U("menu_pip"),onClick:Te}:void 0),Nt=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:ke}:void 0),ye=v(()=>n(pe)?{id:"rotate",weight:jr.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:X}:void 0),be=v(()=>n(se)?{id:"report",weight:jr.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Se}:void 0),ee=v(()=>({id:"save-debug",weight:jr["save-debug"],label:n(Je),onClick:Be})),xe=v(()=>n(Oe)?{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:Qe})),Tt=v(()=>[n(Rt),n(zt),n(wt),n(jt),n(Nt),n(ye),n(be),n(ee),n(xe),n(Pe),...m()].filter($e=>!!$e).sort(Ra));var Me=Le(),rt=de(Me);{var ft=$e=>{var Ze=uy();Ze.__contextmenu=[cy],Ze.__keydown=[dy,De],bi(Ze,21,()=>n(Tt),Ue=>Ue.id,(Ue,ot)=>{Bf(Ue,{get id(){return n(ot).id},get label(){return n(ot).label},get ariaLabel(){return n(ot).ariaLabel},get onClick(){return n(ot).onClick},closeContextMenu:De})}),w(Ze),it(Ze,Ue=>$(Ue),()=>$()),B(()=>{var Ue,ot;return qe(Ze,`top: ${(Ue=n(C))!=null?Ue:""}px; left: ${(ot=n(S))!=null?ot:""}px;`)}),_($e,Ze)};V(rt,$e=>{f()&&$e(ft)})}_(t,Me),H(),o()}nt(["contextmenu","keydown"]);var Ru=class{constructor(e){this.value=e,this.next=null}};var Ol=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Ru(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 fy=L('<div class="container s-1f"><canvas class="s-1f"></canvas></div>'),my={hash:"s-1f",code:".container.s-1f{display:inline-block;height:16px;width:120px}canvas.s-1f{margin-top:2px;transform:scaleY(-1)}"};function Fd(t,e){F(e,!0),q(t,my);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Vt(()=>{n(o).width=l,n(o).height=a,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)}Re(()=>{let f="";if(n(r)){let b=i()[0];for(let $=1;$<i().length;$++)i()[$]>b&&(b=i()[$]);n(r).clearRect(0,0,l,a);let y=d-1;for(let $=i().length-1;$>=0;$--){let S=y*s,C=b>0?a*(i()[$]/b):0;u(n(r),S,0,s,C),f=C+" "+f,y--}}});var p=fy(),m=T(p);it(m,f=>N(o,f),()=>n(o)),w(p),_(t,p),H()}import{safeStorage as k_}from"@vkontakte/videoplayer-shared/es2018";var vy=(t,e)=>{t.stopPropagation(),k_.remove(Td),e.set(!1)},gy=L('<div class="s-v"><div class="s-v">Video id</div> <span> </span></div>'),hy=L('<div class="s-v"><div class="s-v">VSID</div> <span> </span></div>'),_y=L('<div class="s-v"><div class="s-v">Provider</div> <span> </span></div>'),by=L('<div class="s-v"><div class="s-v">Streams</div> <span> </span></div>'),$y=L('<div class="s-v"><div class="s-v">Viewport</div> <span> </span></div>'),yy=L('<div class="s-v"><div class="s-v">Video size</div> <span> </span></div>'),xy=L('<div class="s-v"><div class="s-v">CDN host</div> <span> </span></div>'),wy=L('<div class="s-v"><div class="s-v">Volume</div> <span> </span></div>'),Sy=L('<div class="s-v"><div class="s-v">Position</div> <span> </span></div>'),Ty=L('<div class="s-v"><div class="s-v">Buffer</div> <span> </span></div>'),Cy=L('<div class="s-v"><div class="s-v">Live latency</div> <span> </span></div>'),Iy=L('<div class="s-v"><div class="s-v">Segment</div> <span> </span></div>'),Ey=L('<div class="s-v"><div class="s-v">Network</div> <!> <span> </span></div>'),Py=L('<div class="s-v"><div class="s-v">V bitrate</div> <!> <span> </span></div>'),Ay=L('<div role="region"><button class="close s-v" title="закрыть">[x]</button> <div class="content s-v"><div class="s-v"><div class="s-v">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-v"><div class="s-v">Dropped</div> <span> </span></div> <!> <!> <div class="s-v"><div class="s-v">FPS</div> <!> <span> </span></div></div></div>'),ky={hash:"s-v",code:".container.s-v{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-v{left:16px;top:16px}button.close.s-v{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-v{padding:5px}.content.s-v>div:where(.s-v)>div:where(.s-v){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function Hd(t,e){F(e,!0),q(t,ky);let[i,o]=Ve(),r=()=>x(d,"$isMobile",i),a=ve(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(si(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),p=K(0),m=K(0),f=K(0),b=new Ol(60),y=new Ol(60),$=new Ol(60),S=K(si([])),C=K(si([])),I=K(si([])),R=Q("aria_label_debug_panel");Vt(()=>{k_.set(Td,"true"),a.actions.internal.startLogging(),u&&(N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(p,u.getVideoPlaybackQuality().totalVideoFrames,!0));let ye=window.setInterval(()=>{N(s,a.actions.internal.getDebugPanelData(),!0)},500),be;return u&&(be=window.setInterval(()=>{if(u){N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ee=u.getVideoPlaybackQuality().totalVideoFrames;N(f,ee-n(p)),N(p,ee,!0),b.push(n(f)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&$.push(n(s).bitrate),N(S,b.getValuesFromBottom(),!0),N(C,y.getValuesFromBottom(),!0),N(I,$.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(ye),be&&clearInterval(be)}});var E=Ay();let P;var O=T(E);O.__click=[vy,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 j=ye=>{var be=gy(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).id)),_(ye,be)};V(le,ye=>{n(s).id&&ye(j)})}var ie=k(le,2);{var Y=ye=>{var be=hy(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).vsid)),_(ye,be)};V(ie,ye=>{n(s).vsid&&ye(Y)})}var ge=k(ie,2);{var ce=ye=>{var be=_y(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).provider)),_(ye,be)};V(ge,ye=>{n(s).provider&&ye(ce)})}var ne=k(ge,2);{var _e=ye=>{var be=by(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(()=>{var Pe,Tt;return fe(xe,`Video: ${(Pe=n(s).videoCodec||"")!=null?Pe:""} ${n(s).hdr?"(HDR)":""}
41
+ `}),t.stack&&so(t,"stack",{value:t.stack.split(`
42
+ `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
+ `)})}}var _a=!1,ml=null,ba=!1,_s=!1;function kp(t){_s=t}var dd=[],cd=[],Rt=null,nr=!1;function Wi(t){Rt=t}var $t=null;function ao(t){$t=t}var Uo=null;function Fc(t){Rt!==null&&Rt.f&2097152&&(Uo===null?Uo=[Rt,[t]]:Uo[1].push(t))}var wn=null,rr=0,or=null;function Ig(t){or=t}var Qg=1,Yc=0,bs=!1,Zc=null;function Xl(){return++Qg}function va(t){var v,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,s,l=(e&512)!==0,d=o&&$t!==null&&!bs,a=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],va(s)&&Ip(s),s.wv>t.wv)return!0}(!o||$t!==null&&!bs)&&$n(t,1024)}return!1}function Gg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Uo!=null&&Uo[1].includes(t)&&Uo[0]===Rt||((s.f&2)!==0?Gg(s,e,!1):e===s&&(i?$n(s,2048):(s.f&1024)!==0&&$n(s,4096),ed(s)))}}function Hc(t){var y,w;var e=wn,i=rr,o=or,r=Rt,s=bs,l=Uo,d=Ut,a=nr,u=t.f;wn=null,rr=0,or=null,bs=(u&256)!==0&&(nr||!ba||Rt===null),Rt=(u&96)===0?t:null,Uo=null,jl(t.ctx),nr=!1,Yc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(wn!==null){var p;if(sd(t,rr),v!==null&&rr>0)for(v.length=rr+wn.length,p=0;p<wn.length;p++)v[rr+p]=wn[p];else t.deps=v=wn;if(!bs||(u&2)!==0&&t.reactions!==null)for(p=rr;p<v.length;p++)((w=(y=v[p]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&rr<v.length&&(sd(t,rr),v.length=rr);if(os()&&or!==null&&!nr&&v!==null&&(t.f&6146)===0)for(p=0;p<or.length;p++)Gg(or[p],t);return r!==null&&r!==t&&(Yc++,or!==null&&(o===null?o=or:o.push(...or))),f}catch(x){Wg(x)}finally{wn=e,rr=i,or=o,Rt=r,bs=s,Uo=l,jl(d),nr=a,t.f^=2097152}}function h_(t,e){let i=e.reactions;if(i!==null){var o=ag.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&&(wn===null||!wn.includes(e))&&($n(e,4096),(e.f&768)===0&&(e.f^=512),Bc(e),sd(e,0))}function sd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)h_(t,i[o])}function pl(t){var e=t.f;if((e&16384)===0){$n(t,1024);var i=$t,o=ba;if($t=t,ba=!0,Ve){var r=tr;Yl(t.component_function)}try{(e&16)!==0?Bg(t):Lp(t),Mp(t);var s=Hc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Qg,Ve&&is&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Xl(),l.set_during_effect=!1);Ve&&cd.push(t)}finally{ba=o,$t=i,Ve&&Yl(r)}}}function Kg(){console.error("Last ten effects were: ",cd.slice(-10).map(t=>t.fn)),cd=[]}function __(){try{gg()}catch(t){if(Ve&&so(t,"stack",{value:""}),ml!==null)if(Ve)try{ld(t,ml)}catch(e){throw Kg(),e}else ld(t,ml);else throw Ve&&Kg(),t}}function Bp(){var t=ba;try{var e=0;for(ba=!0;dd.length>0;){e++>1e3&&__();var i=dd,o=i.length;dd=[];for(var r=0;r<o;r++){var s=$_(i[r]);b_(s)}cl.clear()}}finally{_a=!1,ba=t,ml=null,Ve&&(cd=[])}}function b_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&va(o)&&(pl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Rp(o):o.fn=null))}}function ed(t){_a||(_a=!0,queueMicrotask(Bp));for(var e=ml=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}dd.push(e)}function $_(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:va(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 gl(t){var e;for(t&&(_a=!0,Bp(),_a=!0,e=t());;){if(Ug(),dd.length===0)return _a=!1,ml=null,Ve&&(cd=[]),e;_a=!0,Bp()}}async function co(){await Promise.resolve(),gl()}function n(t){var e=t.f,i=(e&2)!==0;if(Zc!==null&&Zc.add(t),Rt!==null&&!nr){if(!(Uo!=null&&Uo[1].includes(t))||Uo[0]!==Rt){var o=Rt.deps;t.rv<Yc&&(t.rv=Yc,wn===null&&o!==null&&o[rr]===t?rr++:wn===null?wn=[t]:(!bs||!wn.includes(t))&&wn.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,va(r)&&Ip(r)),Ve&&is&&!nr&&Gl!==null&&Rt!==null&&Gl.reaction===Rt)if(t.trace)t.trace();else{var l=hs("TracedAt");if(l){var d=Gl.entries.get(t);d===void 0&&(d={traces:[]},Gl.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 _s&&cl.has(t)?cl.get(t):t.v}function Et(t){var e=nr;try{return nr=!0,t()}finally{nr=e}}var y_=-7169;function $n(t,e){t.f=t.f&y_|e}function Jc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ho in t)Xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ho in i&&Xc(i)}}}function Xc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Xc(t[o],e)}catch(r){}let i=ca(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Vc(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function Hp(t,e){if(e){let i=document.body;t.autofocus=!0,xn(()=>{document.activeElement===i&&t.focus()})}}function ud(t){var e=Rt,i=$t;Wi(null),ao(null);try{return t()}finally{Wi(e),ao(i)}}var Fp=new Set,eu=new Set;function $a(t){if(!it)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 Up(t,e,i,o={}){function r(s){if(o.capture||hl.call(e,s),!s.cancelBubble)return ud(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?xn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function bt(t,e,i,o,r){var s={capture:o,passive:r},l=Up(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&To(()=>{e.removeEventListener(t,l,s)})}function lt(t){for(var e=0;e<t.length;e++)Fp.add(t[e]);for(var i of eu)i(t)}function hl(t){var E;var e=this,i=e.ownerDocument,o=t.type,r=((E=t.composedPath)==null?void 0:E.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){so(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Rt,v=$t;Wi(null),ao(null);try{for(var p,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+o];if(x!=null&&(!s.disabled||t.target===s))if(Jn(x)){var[C,...T]=x;C.apply(s,[t,...T])}else x.call(s,t)}catch(N){p?y.push(N):p=N}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let N of y)queueMicrotask(()=>{throw N});throw p}}finally{t.__root=e,delete t.currentTarget,Wi(f),ao(v)}}}var w_;function jg(){w_=void 0}function _l(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Io(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(it)return Io(yt,null),yt;r===void 0&&(r=_l(s?t:"<!>"+t),i||(r=Ti(r)));var l=o||td?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ti(l),a=l.lastChild;Io(d,a)}else Io(l,l);return l}}function T_(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(it)return Io(yt,null),yt;if(!l){var d=_l(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 f=Ti(u),v=u.lastChild;Io(f,v)}else Io(u,u);return u}}function Ie(t,e){return T_(t,e,"svg")}function rs(t=""){if(!it){var e=yn(t+"");return Io(e,e),e}var i=yt;return i.nodeType!==ol&&(i.before(i=yn()),Si(i)),Io(i,i),i}function Be(){if(it)return Io(yt,null),yt;var t=document.createDocumentFragment(),e=document.createComment(""),i=yn();return t.append(e,i),Io(e,i),t}function $(t,e){if(it){$t.nodes_end=yt,qi();return}t!==null&&t.before(e)}var E_=/\r/g;function Zg(t){t=t.replace(E_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Xg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var I_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Jg(t){return I_.includes(t)}var k_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var A_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function eh(t){var e;return t=t.toLowerCase(),(e=A_[t])!=null?e:t}var yC=[...k_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var P_=["touchstart","touchmove"];function th(t){return P_.includes(t)}var M_=["$state","$state.raw","$derived","$derived.by"],xC=[...M_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var L_=["textarea","script","style","title"];function ih(t){return L_.includes(t)}function tu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var pd=!0;function iu(t){pd=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function qr(t,e){return oh(t,e)}function Wp(t,e){var l;Wc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=it,r=yt;try{for(var s=Ti(i);s&&(s.nodeType!==er||s.data!==Bs);)s=zo(s);if(!s)throw es;lo(!0),Si(s),qi();let d=oh(t,{...e,anchor:s});if(yt===null||yt.nodeType!==er||yt.data!==da)throw zs(),es;return lo(!1),d}catch(d){if(d===es)return e.recover===!1&&hg(),Wc(),id(i),lo(!1),qr(t,e);throw d}finally{lo(o),Si(r),jg()}}var bl=new Map;function oh(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){Wc();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!d.has(y)){d.add(y);var w=th(y);e.addEventListener(y,hl,{passive:w});var x=bl.get(y);x===void 0?(document.addEventListener(y,hl,{passive:w}),bl.set(y,1)):bl.set(y,x+1)}}};a(Ql(Fp)),eu.add(a);var u=void 0,f=Dg(()=>{var v=i!=null?i:e.appendChild(yn());return Di(()=>{if(s){H({});var p=Ut;p.c=s}r&&(o.$$events=r),it&&Io(v,null),pd=l,u=t(v,o)||{},pd=!0,it&&($t.nodes_end=yt),s&&F()}),()=>{var w;for(var p of d){e.removeEventListener(p,hl);var y=bl.get(p);--y===0?(document.removeEventListener(p,hl),bl.delete(p)):bl.set(p,y)}eu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return zp.set(u,f),u}var zp=new WeakMap;function ya(t,e){let i=zp.get(t);return i?(zp.delete(t),i(e)):(Ve&&Pg(),Promise.resolve())}function $e(t,e,...i){var o=t,r=ue,s;Qi(()=>{r!==(r=e())&&(s&&(Ki(s),s=null),Ve&&r==null&&_g(),s=Di(()=>r(o,...i)))},65536),it&&(o=yt)}if(Ve){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;yg(e)},set:o=>{i=o}})}};O_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var O_;function Nt(t){Ut===null&&sl("onMount"),ts&&Ut.l!==null?N_(Ut).m.push(t):ze(()=>{let e=Et(t);if(typeof e=="function")return e})}function on(t){Ut===null&&sl("onDestroy"),Nt(()=>()=>Et(t))}function N_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var nh=new Map;function rh(t,e){var i=nh.get(t);i||(i=new Set,nh.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){it&&i===0&&qi();var r=t,s=null,l=null,d=eo,a=i>0?65536:0,u=!1;let f=(p,y=!0)=>{u=!0,v(y,p)},v=(p,y)=>{if(d===(d=p))return;let w=!1;if(it&&o!==-1){if(i===0){let C=zc(r);C===Bs?o=0:C===Hs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(r=ma(),Si(r),lo(!1),w=!0,o=-1)}d?(s?ys(s):y&&(s=Di(()=>y(r))),l&&Nn(l,()=>{l=null})):(l?ys(l):y&&(l=Di(()=>y(r,[i+1,o]))),s&&Nn(s,()=>{s=null})),w&&lo(!0)};Qi(()=>{u=!1,e(f),u||v(null,null)},a),it&&(r=yt)}function xs(t,e,i){it&&qi();var o=t,r=eo,s,l=os()?ug:nl;Qi(()=>{l(r,r=e())&&(s&&Nn(s),s=Di(()=>i(o)))}),it&&(o=yt)}var Ks=null;function Qp(t){Ks=t}function fd(t,e){return e}function H_(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)Gc(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;id(a),a.append(i),o.clear(),Ws(t,e[0].prev,e[s-1].next)}Np(r,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Ws(t,f.prev,f.next)),Ki(f.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=it?Si(Ti(u)):u.appendChild(yn())}it&&qi();var f=null,v=!1,p=bn(()=>{var y=i();return Jn(y)?y:y==null?[]:Ql(y)});Qi(()=>{var y=n(p),w=y.length;if(v&&w===0)return;v=w===0;let x=!1;if(it){var C=zc(l)===Hs;C!==(w===0)&&(l=ma(),Si(l),lo(!1),x=!0)}if(it){for(var T=null,E,N=0;N<w;N++){if(yt.nodeType===er&&yt.data===da){l=yt,x=!0,lo(!1);break}var A=y[N],I=o(A,N);E=lh(yt,d,T,null,A,I,N,r,e,i),d.items.set(I,E),T=E}w>0&&Si(ma())}it||F_(y,d,l,r,e,o,i),s!==null&&(w===0?f?ys(f):f=Di(()=>s(l)):f!==null&&Nn(f,()=>{f=null})),x&&lo(!0),n(p)}),it&&(l=yt)}function F_(t,e,i,o,r,s,l){var X,me,re,de;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,f=e.items,v=e.first,p=v,y,w=null,x,C=[],T=[],E,N,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],N=s(E,I),A=f.get(N),A!==void 0&&((X=A.a)==null||X.measure(),(x!=null?x:x=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],N=s(E,I),A=f.get(N),A===void 0){var L=p?p.e.nodes_start:i;w=lh(L,e,w,w===null?e.first:w.next,E,N,I,o,r,l),f.set(N,w),C=[],T=[],p=w.next;continue}if(a&&U_(A,E,I,r),(A.e.f&8192)!==0&&(ys(A.e),d&&((me=A.a)==null||me.unfix(),(x!=null?x:x=new Set).delete(A))),A!==p){if(y!==void 0&&y.has(A)){if(C.length<T.length){var Y=T[0],B;w=Y.prev;var U=C[0],Z=C[C.length-1];for(B=0;B<C.length;B+=1)sh(C[B],Y,i);for(B=0;B<T.length;B+=1)y.delete(T[B]);Ws(e,U.prev,Z.next),Ws(e,w,U),Ws(e,Z,Y),p=Y,w=Z,I-=1,C=[],T=[]}else y.delete(A),sh(A,p,i),Ws(e,A.prev,A.next),Ws(e,A,w===null?e.first:w.next),Ws(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==N;)(p.e.f&8192)===0&&(y!=null?y:y=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||y!==void 0){for(var le=y===void 0?[]:Ql(y);p!==null;)(p.e.f&8192)===0&&le.push(p),p=p.next;var K=le.length;if(K>0){var ce=(r&4)!==0&&u===0?i:null;if(d){for(I=0;I<K;I+=1)(re=le[I].a)==null||re.measure();for(I=0;I<K;I+=1)(de=le[I].a)==null||de.fix()}H_(e,le,ce,f)}}d&&xn(()=>{var Me;if(x!==void 0)for(A of x)(Me=A.a)==null||Me.apply()}),$t.first=e.first&&e.first.e,$t.last=w&&w.e}function U_(t,e,i,o){(o&1)!==0&&ul(t.v,e),(o&2)!==0?ul(t.i,i):t.i=i}function lh(t,e,i,o,r,s,l,d,a,u){var f=Ks,v=(a&1)!==0,p=(a&16)===0,y=v?p?ns(r,!1,!1):br(r):r,w=(a&2)===0?l:br(l);Ve&&v&&(y.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var x={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Ks=x;try{return x.e=Di(()=>d(t,y,w,u),it),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{Ks=f}}function sh(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=zo(s);r.before(s),s=l}}function Ws(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 z_(t,e,i){var s,l;if(!e||e===Zg(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=tr)!=null&&l[Mn]&&(o=`in ${tr[Mn]}`),Ag(tu(o))}function vd(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var y;var d=$t;if(l===(l=(y=e())!=null?y:"")){it&&qi();return}if(d.nodes_start!==null&&(Vp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(it){for(var a=yt.data,u=qi(),f=u;u!==null&&(u.nodeType!==er||u.data!=="");)f=u,u=zo(u);if(u===null)throw zs(),es;Ve&&!r&&z_(u.parentNode,a,l),Io(yt,f),s=Si(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=_l(v);if((i||o)&&(p=Ti(p)),Io(Ti(p),p.lastChild),i||o)for(;Ti(p);)s.before(Ti(p));else s.before(p)}})}function Mi(t,e,i){it&&qi();var o=t,r,s;Qi(()=>{r!==(r=e())&&(s&&(Nn(s),s=null),r&&(s=Di(()=>i(o,r))))},65536),it&&(o=yt)}function xa(t,e,i,o,r,s){var w;let l=it;it&&qi();var d=Ve&&s&&((w=Ut)==null?void 0:w.function[Mn]),a,u,f=null;it&&yt.nodeType===Nc&&(f=yt,qi());var v=it?yt:t,p,y=Ks;Qi(()=>{let x=e()||null;var C=r?r():i||x==="svg"?Mc:null;if(x!==a){var T=Ks;Qp(y),p&&(x===null?Nn(p,()=>{p=null,u=null}):x===u?ys(p):(Ki(p),iu(!1))),x&&x!==u&&(p=Di(()=>{if(f=it?f:C?document.createElementNS(C,x):document.createElement(x),Ve&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Io(f,f),o){it&&ih(x)&&f.append(document.createComment(""));var E=it?Ti(f):f.appendChild(yn());it&&(E===null?lo(!1):Si(E)),o(f,E)}$t.nodes_end=f,v.before(f)})),a=x,a&&(u=a),iu(!0),Qp(T)}},65536),l&&(lo(!0),Si(v))}var jp;function dh(t){return jp=t.target,new Gp(t)}var ws,$r,Gp=class{constructor(e){Ds(this,ws);Ds(this,$r);var s,l;var i=new Map,o=(d,a)=>{var u=ns(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===il?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return O((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});tl(this,$r,(e.hydrate?Wp: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)&&gl(),tl(this,ws,r.$$events);for(let d of Object.keys(Oi(this,$r)))d==="$set"||d==="$destroy"||d==="$on"||so(this,d,{get(){return Oi(this,$r)[d]},set(a){Oi(this,$r)[d]=a},enumerable:!0});Oi(this,$r).$set=d=>{Object.assign(r,d)},Oi(this,$r).$destroy=()=>{ya(Oi(this,$r))}}$set(e){Oi(this,$r).$set(e)}$on(e,i){Oi(this,ws)[e]=Oi(this,ws)[e]||[];let o=(...r)=>i.call(this,...r);return Oi(this,ws)[e].push(o),()=>{Oi(this,ws)[e]=Oi(this,ws)[e].filter(r=>r!==o)}}$destroy(){Oi(this,$r).$destroy()}};ws=new WeakMap,$r=new WeakMap;function z(t,e){xn(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=jp)==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),Ve&&rh(e.hash,d)}})}function Ss(t,e){var i=void 0,o;Qi(()=>{i!==(i=e())&&(o&&(Ki(o),o=null),i&&(o=Di(()=>{Eo(()=>i(t))})))})}function ch(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=ch(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function uh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=ch(t))&&(o&&(o+=" "),o+=e);return o}function md(t){return typeof t=="object"?uh(t):t!=null?t:""}var ph=[...`
44
+ \r\f\xA0\v\uFEFF`];function vh(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||ph.includes(o[l-1]))&&(d===o.length||ph.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function fh(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 Yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function mh(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(Yp)),r&&a.push(...Object.keys(r).map(Yp));var u=0,f=-1;let x=t.length;for(var v=0;v<x;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===x-1){if(f!==-1){var y=Yp(t.substring(u,f).trim());if(!a.includes(y)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=fh(o)),r&&(i+=fh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ne(t,e,i,o,r,s){var l=t.__className;if(it||l!==i||l===void 0){var d=vh(i,o,s);(!it||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 Zp(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 Xe(t,e,i,o){var r=t.__style;if(it||r!==e){var s=mh(e,o);(!it||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Zp(t,i==null?void 0:i[0],o[0]),Zp(t,i==null?void 0:i[1],o[1],"important")):Zp(t,i,o));return o}function gd(t,e,i){if(t.multiple){if(e==null)return;if(!Jn(e))return Mg();for(var o of t.options)o.selected=e.includes(gh(o));return}for(o of t.options){var r=gh(o);if(wp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Xp(t){var e=new MutationObserver(()=>{gd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),To(()=>{e.disconnect()})}function gh(t){return"__value"in t?t.__value:t.value}var $l=Symbol("class"),yl=Symbol("style"),bh=Symbol("is custom element"),$h=Symbol("is html");function yh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function We(t,e,i,o){var r=wh(t);if(it&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Z_(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[cg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Sh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function xh(t,e,i,o,r=!1){var A;var s=wh(t),l=s[bh],d=!s[$h];let a=it&&l;a&&lo(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=md(i.class):(o||i[$l])&&(i.class=null),i[yl]&&((A=i.style)!=null||(i.style=null));var p=Sh(t);for(let I in i){let L=i[I];if(f&&I==="value"&&L==null){t.value=t.__value="",u[I]=L;continue}if(I==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";ne(t,y,L,o,e==null?void 0:e[$l],i[$l]),u[I]=L,u[$l]=i[$l];continue}if(I==="style"){Xe(t,L,e==null?void 0:e[yl],i[yl]),u[I]=L,u[yl]=i[yl];continue}var w=u[I];if(!(L===w&&!(L===void 0&&t.hasAttribute(I)))){u[I]=L;var x=I[0]+I[1];if(x!=="$$")if(x==="on"){let Y={},B="$$"+I,U=I.slice(2);var C=Jg(U);if(Xg(U)&&(U=U.slice(0,-7),Y.capture=!0),!C&&w){if(L!=null)continue;t.removeEventListener(U,u[B],Y),u[B]=null}if(L!=null)if(C)t[`__${U}`]=L,lt([U]);else{let Z=function(le){u[I].call(this,le)};var N=Z;u[B]=Up(U,t,Z,Y)}else C&&(t[`__${U}`]=void 0)}else if(I==="style")We(t,I,L);else if(I==="autofocus")Hp(t,!!L);else if(!l&&(I==="__value"||I==="value"&&L!=null))t.value=t.__value=L;else if(I==="selected"&&f)yh(t,L);else{var T=I;d||(T=eh(T));var E=T==="defaultValue"||T==="defaultChecked";if(L==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let Y=t,B=e===void 0;if(T==="value"){let U=Y.defaultValue;Y.removeAttribute(T),Y.defaultValue=U,Y.value=Y.__value=B?U:null}else{let U=Y.defaultChecked;Y.removeAttribute(T),Y.defaultChecked=U,Y.checked=B?U:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof L!="string")?t[T]=L:typeof L!="function"&&We(t,T,L,r)}}}return a&&lo(!0),u}function Pe(t,e,i=[],o,r=!1,s=zr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Qi(()=>{var p=e(...l.map(n)),y=xh(t,d,p,o,r);f&&u&&"value"in p&&gd(t,p.value,!1);for(let x of Object.getOwnPropertySymbols(a))p[x]||Ki(a[x]);for(let x of Object.getOwnPropertySymbols(p)){var w=p[x];x.description===mp&&(!d||w!==d[x])&&(a[x]&&Ki(a[x]),a[x]=Di(()=>Ss(t,()=>w))),y[x]=w}d=y}),u){var v=t;Eo(()=>{gd(v,d.value),Xp(v)})}f=!0}function wh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[bh]:t.nodeName.includes("-"),[$h]:t.namespaceURI===og}}var hh=new Map;function Sh(t){var e=hh.get(t.nodeName);if(e)return e;hh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=Vc(o);for(var s in i)i[s].set&&e.push(s);o=ca(o)}return e}function Z_(t,e,i){var o;Ve&&(e==="srcset"&&X_(t,i)||Jp((o=t.getAttribute(e))!=null?o:"",i)||kg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Jp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function _h(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function X_(t,e){var i=_h(t.srcset),o=_h(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(Jp(i[l][0],r)||Jp(r,i[l][0])))}var J_=Lc?()=>performance.now():()=>Date.now(),Qr={tick:t=>(Lc?requestAnimationFrame:ue)(t),now:()=>J_(),tasks:new Set};function Ch(){let t=Qr.now();Qr.tasks.forEach(e=>{e.c(t)||(Qr.tasks.delete(e),e.f())}),Qr.tasks.size!==0&&Qr.tick(Ch)}function Th(t){let e;return Qr.tasks.size===0&&Qr.tick(Ch),{promise:new Promise(i=>{Qr.tasks.add(e={c:t,f:i})}),abort(){Qr.tasks.delete(e)}}}function ou(t,e){ud(()=>{t.dispatchEvent(new CustomEvent(e))})}function ob(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 Eh(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=ob(r.trim());e[l]=s.trim()}return e}var nb=t=>t;function Gr(t,e,i,o){var N;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,p,y;function w(){var L;var A=Rt,I=$t;Wi(null),ao(null);try{return u!=null?u:u=i()(e,(L=o==null?void 0:o())!=null?L:{},{direction:a})}finally{Wi(A),ao(I)}}var x={is_global:d,in(){var A;if(e.inert=f,!r){y==null||y.abort(),(A=y==null?void 0:y.reset)==null||A.call(y);return}s||p==null||p.abort(),ou(e,"introstart"),p=ef(e,w(),y,1,()=>{ou(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(A){if(!s){A==null||A(),u=void 0;return}e.inert=!0,ou(e,"outrostart"),y=ef(e,w(),p,0,()=>{ou(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),y==null||y.abort()}},C=$t;if(((N=C.transitions)!=null?N:C.transitions=[]).push(x),r&&pd){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&Eo(()=>{Et(()=>x.in())})}}function ef(t,e,i,o,r){var s=o===1;if(Fs(e)){var l,d=!1;return xn(()=>{if(!d){var C=e({direction:s?"in":"out"});l=ef(t,C,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:ue,deactivate:ue,reset:ue,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=nb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var y=Eh(u(0,1));p.push(y,y)}var w=()=>1-o,x=t.animate(p,{duration:a,fill:"forwards"});return x.onfinish=()=>{var U;x.cancel();var C=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),N=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),L=0;L<=I;L+=1){var Y=C+T*v(L/I),B=Eh(u(Y,1-Y));N.push(B),A||(A=B.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var Z=x.currentTime;return C+T*v(Z/E)},f&&Th(()=>{if(x.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}x=t.animate(N,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=ue)},deactivate:()=>{r=ue},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}function tf(t,e,i){var o=Bo(t,e);o&&o.set&&(t[e]=i,To(()=>{t[e]=null}))}var qs,xl,hd,ru,Ih,su=class su{constructor(e){Ds(this,ru);Ds(this,qs,new WeakMap);Ds(this,xl);Ds(this,hd);tl(this,hd,e)}observe(e,i){var o=Oi(this,qs).get(e)||new Set;return o.add(i),Oi(this,qs).set(e,o),tg(this,ru,Ih).call(this).observe(e,Oi(this,hd)),()=>{var r=Oi(this,qs).get(e);r.delete(i),r.size===0&&(Oi(this,qs).delete(e),Oi(this,xl).unobserve(e))}}};qs=new WeakMap,xl=new WeakMap,hd=new WeakMap,ru=new WeakSet,Ih=function(){var e;return(e=Oi(this,xl))!=null?e:tl(this,xl,new ResizeObserver(i=>{for(var o of i){su.entries.set(o.target,o);for(var r of Oi(this,qs).get(o.target)||[])r(o)}}))},Xn(su,"entries",new WeakMap);var of=su;var rb=new of({box:"border-box"});function Sn(t,e,i){var o=rb.observe(t,()=>i(t[e]));Eo(()=>(Et(()=>i(t[e])),o))}function kh(t,e){return t===e||(t==null?void 0:t[Ho])===e}function rt(t={},e,i,o){return Eo(()=>{var r,s;return Wo(()=>{r=s,s=(o==null?void 0:o())||[],Et(()=>{t!==i(...s)&&(e(t,...s),r&&kh(i(...r),t)&&e(null,...r))})}),()=>{xn(()=>{s&&kh(i(...s),t)&&e(null,...s)})}}),t}function Ko(t=!1){let e=Ut,i=e.l.u;if(!i)return;let o=()=>Jc(e.s);if(t){let r=0,s={},l=zr(()=>{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&&rd(()=>{Ah(e,o),Us(i.b)}),ze(()=>{let r=Et(()=>i.m.map(dg));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&ze(()=>{Ah(e,o),Us(i.a)})}function Ah(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function _d(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ue;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var wl=[];function yr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ue){let i=null,o=new Set;function r(d){if(nl(t,d)&&(t=d,i)){let a=!wl.length;for(let u of o)u[1](),wl.push(u,t);if(a){for(let u=0;u<wl.length;u+=2)wl[u][0](wl[u+1]);wl.length=0}}}function s(d){r(d(t))}function l(d,a=ue){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||ue),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function hi(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 yr(i,(l,d)=>{let a=!1,u=[],f=0,v=ue,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ue},y=r.map((w,x)=>_d(w,C=>{u[x]=C,f&=~(1<<x),a&&p()},()=>{f|=1<<x}));return a=!0,p(),function(){Us(y),v(),a=!1}})}function _e(t){let e;return _d(t,i=>e=i)(),e}var au=!1,nf=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:ns(void 0),unsubscribe:ue};if(o.store!==t&&!(nf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ue;else{var r=!0;o.unsubscribe=_d(t,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return t&&nf in i?_e(t):n(o.source)}function Ne(){let t={};function e(){To(()=>{for(var i in t)t[i].unsubscribe();so(t,nf,{enumerable:!1,value:!0})})}return[t,e]}function rf(t){var e=au;try{return au=!1,[t(),au]}finally{au=e}}var pb={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ve&&$g(`${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 Re(t,e,i){return new Proxy(Ve?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},pb)}var fb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Fs(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];Fs(r)&&(r=r());let s=Bo(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(Fs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Bo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Ho||e===il)return!1;for(let i of t.props)if(Fs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Fs(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 Cs(...t){return new Proxy({props:t},fb)}function Ph(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var Y,B;var r=(i&1)!==0,s=!ts||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=rf(()=>t[e]):u=t[e];var f=Ho in t||il in t,v=l&&((B=(Y=Bo(t,e))==null?void 0:Y.set)!=null?B:f&&e in t&&(U=>t[e]=U))||void 0,p=o,y=!0,w=!1,x=()=>(w=!0,y&&(y=!1,d?p=Et(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&bg(e),u=x(),v&&v(u));var C;if(s)C=()=>{var U=t[e];return U===void 0?x():(y=!0,w=!1,U)};else{var T=(r?zr:bn)(()=>t[e]);T.f|=131072,C=()=>{var U=n(T);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(U,Z){return arguments.length>0?((!s||!Z||E||a)&&v(Z?C():U),U):C()}}var N=!1,A=!1,I=ns(u),L=zr(()=>{var U=C(),Z=n(I);return N?(N=!1,A=!0,Z):(A=!1,I.v=U)});return l&&n(L),r||(L.equals=rl),function(U,Z){if(Zc!==null&&(N=A,C(),n(I)),arguments.length>0){let le=Z?n(L):s&&l?si(U):U;if(!L.equals(le)){if(N=!0,O(I,le),w&&p!==void 0&&(p=le),Ph(L))return U;Et(()=>n(L))}return U}return Ph(L)?L.v:n(L)}}var vb;typeof HTMLElement=="function"&&(vb=class extends HTMLElement{constructor(e,i,o){super();Xn(this,"$$ctor");Xn(this,"$$s");Xn(this,"$$c");Xn(this,"$$cn",!1);Xn(this,"$$d",{});Xn(this,"$$r",!1);Xn(this,"$$p_d",{});Xn(this,"$$l",{});Xn(this,"$$l_u",new Map);Xn(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=mb(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]=sf(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=dh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Qc(()=>{Wo(()=>{var s;this.$$r=!0;for(let l of gp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=sf(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]=sf(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 gp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function sf(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 mb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Mh="5";var Lh,Vh,Rh;typeof window!="undefined"&&((Rh=(Vh=(Lh=window.__svelte)!=null?Lh:window.__svelte={}).v)!=null?Rh:Vh.v=new Set).add(Mh);import{areValidLiveRecordSources as Vw,clientChecker as Rm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as z0,safeStorage as Rw,throttleFn as Nw}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ow}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as gb,fillWithDefault as hb,VideoQuality as Nh}from"@vkontakte/videoplayer-shared/es2018";var _b={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:gb.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:Nh.Q_480P,highQualityLimit:Nh.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},Oh=t=>hb(t,_b),Dh=t=>ll("ui-config",t),Lt=()=>al("ui-config");var bd="vk_player_debug_panel_opened";var Bh="videoplayer",Hh="videoplayer";var ss={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Fh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Uh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),zh=new Set(["ShiftRight","ShiftLeft"]);var Wh=["TIMELINE"],$d=[...Wh,"GRAPH_BUTTON"],af=[...Wh,"PLAY_BUTTON"],yd=[...$d,"PLAY_BUTTON"];var as=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(as||{}),Sa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Kh,VERSION as bb}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as $b}from"@vkontakte/videoplayer-core/es2018";import{VERSION as yb}from"@vkontakte/videoplayer-statistics/es2018";var lu="prod",Sl="1.1.76-dev.44b02f36.0";var Ca=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var qh=Symbol("storeContext"),Qh=Symbol("microStoresContext"),Gh=(t,e)=>{ll(qh,t),ll(Qh,e),lu==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=al(qh);return Kh(t,"Store context is empty!"),t},_o=()=>{let t=al(Qh);return Kh(t,"MicroStores context is empty!"),t},ai=(t,e)=>cu(t,t.getValue(),e),cu=(t,e,i)=>yr(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),jh=(t,e,i,o)=>{var Y,B,U,Z,le,K,ce,X,me;let r=t.info,{width:s,height:l}=_e(i.ui.playerSize),d=(B=(Y=r.throughputEstimation$.getValue())==null?void 0:Y.toFixed(0))!=null?B:0,a=(Z=(U=r.rttEstimation$.getValue())==null?void 0:U.toFixed(0))!=null?Z:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Sl} (core: ${$b}, stat: ${yb}, shared: ${bb})`,v=_e(i.state.errorLog$),p=v.length?`
45
+ `+v.map((re,de)=>{var Oe;let Me=`${de}) Type: ${re.id}
46
+ `,xe=`Message: ${re.message} (${re.thrown})
47
+ `,ee=`Trace: ${(Oe=re.thrown)==null?void 0:Oe.stack}
48
+ `;return Me+xe+ee}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":_e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(le=w==null?void 0:w.codec)!=null?le:""}`+(w!=null&&w.hdr?" (HDR)":"")),x&&C.push(`Audio: ${(K=x==null?void 0:x.codec)!=null?K:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=r.currentQuality$.getValue(),E="";if(T){let re=r.availableQualitiesFps$.getValue()[T];E=re?`${re}fps`:""}let N=r.httpConnectionType$.getValue(),A=(X=(ce=r.currentBuffer$.getValue())==null?void 0:ce.end)!=null?X:0,I=Math.max(A-_e(i.state.positionExact$),0),L={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:_e(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":N?N+(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:C.join(", "),Quality:`${u} ${T!=null?T:""} ${E}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:y,Position:`${_e(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${_e(i.playerPhase)} ${(me=r.playbackState$.getValue())!=null?me:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(L).filter(([re,de])=>de!==void 0).map(([re,de])=>`${re}: ${de}`).join(`
50
+ `)},Yh=(t,e,i)=>{var Y,B,U,Z;let o=t.info,{width:r,height:s}=_e(i.ui.playerSize),l={version:Sl,viewport:`${r}x${s}`,volume:Math.round(_e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(v&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-_e(i.state.positionExact$),0)),l.position=_e(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=_e(i.vsid);typeof E=="string"&&(l.vsid=E);let N=(Y=t.info.currentVideoStream$.getValue())==null?void 0:Y.codec;N&&(l.videoCodec=N);let A=(B=t.info.currentAudioStream$.getValue())==null?void 0:B.codec;A&&(l.audioCodec=A),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let L=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return L&&(l.audioLanguage=L),l},Zh=(t,e)=>Ca(t,e,"mp4"),Xh=t=>!t.type,Jh=t=>!!t.type,e1=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},du=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as uf,safeStorage as ki}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var xb="vk_player_",t1="vk_player_prefer_traffic_saving_enabled",i1="vk_player_preferred_volume",o1="vk_player_prefer_volume_mute",pf="vk_player_preferred_quality",lf="vk_player_preferred_default_quality_settings",df="vk_player_preferred_quality_settings_by_video",n1="vk_player_preferred_stream_language",r1="vk_player_preferred_rate",s1="vk_player_preferred_autoplay_next",cf="vk_player_preferred_subtitles_language",a1="vk_player_user_video_prefs",l1=`${xb}preview_track_close_tooltip`,d1=t=>t>1?1:t<0?0:t,ff=t=>ki.set(i1,d1(t).toString(10)),uu=()=>{let t=ki.get(i1);return uf(t)?void 0:d1(parseFloat(t))},vf=(t,e)=>ki.set(pf,JSON.stringify({videoId:t,value:e})),pu=()=>ki.remove(pf),mf=t=>{let e=ki.get(pf);if(uf(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){pu();return}return o},gf=(t,e)=>{e?ki.set(t,"true"):ki.remove(t)},hf=t=>ki.get(t)==="true",_f=t=>gf(o1,t),c1=()=>hf(o1),xd=t=>gf(t1,t),bf=()=>hf(t1),u1=()=>ki.get(n1),$f=t=>ki.set(n1,t),yf=()=>ki.get(cf),xf=t=>{t?ki.set(cf,t):ki.remove(cf)},p1=t=>ki.set(r1,JSON.stringify({rate:t})),f1=()=>{let t=ki.get(r1);if(uf(t))return;let{rate:e}=JSON.parse(t);return e},v1=t=>gf(s1,t),m1=()=>hf(s1),wb=()=>{let t=f=>{ki.set(lf,JSON.stringify(f))},e=()=>{try{let f=ki.get(lf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=ki.get(df);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{ki.set(df,JSON.stringify(f))},r=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&s();let p=e();return p?{...p,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{ki.remove(df)},l=()=>{ki.remove(lf)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=r(f);if(v){switch(v.type){case"traffic_saving":xd(!0);break;case"exact_quality":vf(f,v.quality)}s(),l()}},u=f=>{let v=mf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}bf()&&t({type:"traffic_saving",videoId:f}),xd(!1),pu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:yf,savePreferredSubtitlesLanguage:xf}},{getPreferredQualitySettings:g1,migrateSettingsToLegacyWay:h1,savePreferredQualitySettings:fu,savePreferredDefaultQualitySettings:qL,removePreferredQualitySettingsByVideo:QL,getPreferredDefaultQualitySettings:vu}=wb(),Sb=3,Cb=3,_1=()=>{let t=ki.get(a1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},mu=(t,e)=>{var r,s;let i=_1();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},wf=(t,e,i)=>{var l,d,a;let o=(l=_1())!=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=Tb(o);ki.set(a1,JSON.stringify(s))};function Tb(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(Cb),e.reduce((o,[r])=>(o[r]=Eb(t[r]),o),{})}function Eb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Sb),Object.fromEntries(e)}function b1(){ki.set(l1,JSON.stringify(!0))}function $1(){let t=ki.get(l1);try{return t?JSON.parse(t):!1}catch(e){return!1}}import{PlaybackState as H0}from"@vkontakte/videoplayer-core/es2018";var Ib=Ie('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function wd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ib();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}import{isNullable as w1,InterfaceLanguage as S1}from"@vkontakte/videoplayer-shared/es2018";var kb={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
+ \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x",preview_track_notification_text:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043B\u044F \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438",preview_track_close_tooltip:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438"},y1=kb;var Ab={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
+ so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
+ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},x1=Ab;var Ts=new Map;Ts.set(S1.EN,x1);Ts.set(S1.RU,y1);var C1=new Map,Sf=({language:t,pack:e,fallback:i})=>{if(Ts.has(t)){let o=Ts.get(t);Ts.set(t,{...o,...e})}else Ts.set(t,e);C1.set(t,i)},Cf=t=>Ts.has(t),Tf=(t,e,i,o)=>{var l;let r=Ts.get(t),s=r==null?void 0:r[e];if(w1(s)){let d=(l=C1.get(t))!=null?l:o,a=d?Ts.get(d):void 0;s=a==null?void 0:a[e]}return w1(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},j=(t,e)=>{let{interfaceLanguage$:i}=be(),o=_e(i),r=Lt();return Tf(o,t,e,r.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Cl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Cl||(Cl={}));var Pb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Lb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gu="?",Vb="X-Sentry-Auth",Rb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Nb(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=Pb.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||gu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Lb.exec(i[s]))r={filename:o[2],function:o[1]||gu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Mb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||gu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=gu),e.push(r)}return e.length?{value:T1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function T1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function Ob(t){try{let e=Nb(t);if(e)return e}catch(e){}return{value:T1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Db(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var hu=class{constructor(e){if(e&&e.dsn){let i=Rb.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:[Ob(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(Vb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Db(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function E1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Bb(){return window}var _u=class t extends hu{constructor(e,i=Bb()){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=>E1(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=>E1(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let 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}};import{isNonNullable as bu,Subscription as Hb}from"@vkontakte/videoplayer-shared/es2018";var $u=null,Ta=class{constructor(e,i,o={}){!$u&&e.dsn&&(this.sentryClient=new _u({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Hb,this.options=e,this.context=o,$u=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),$u=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:y}=i;if(bu(y)&&v.includes(y)||bu(p)&&f.includes(p))return;if(Math.random()<=d||bu(y)&&u.includes(y)||bu(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?Cl.fatal:Cl.error),r.report(e)}catch(x){console.error(x)}}}static getInstance(){return $u}};var ls=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ls||{});var yu=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()},xu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),I1=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,k1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Sd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Qs=()=>!!Sd(),wu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Su=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},A1=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))};import{clientChecker as P1}from"@vkontakte/videoplayer-core/es2018";var M1=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")},{description:j("hotkey_map_item_next_video_description"),value:j("hotkey_map_item_next_video_value")},{description:j("hotkey_map_item_prev_video_description"),value:j("hotkey_map_item_prev_video_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:P1.device.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:P1.device.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as Fb,ValueSubject as Ef}from"@vkontakte/videoplayer-shared/es2018";var Ea=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:Fb(this.onResize.bind(this),300)};this.info={isActive$:new Ef(!1),isEnabled$:new Ef(!1),type:0};this.info.isEnabled$=new Ef(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(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...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 Ia(t){return t instanceof Ea}import{devNull as L1,now as V1}from"@vkontakte/videoplayer-shared/es2018";Cg();function kf(t,e){H(e,!1);let i=be();Nt(()=>{i.getAdmanWrapper().startPostroll()}),Ko(),F()}import{noop as Ub}from"@vkontakte/videoplayer-shared/es2018";var zb=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},Wb=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),Kb=M("<div><!></div>"),qb={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function Af(t,e){H(e,!0),z(t,qb);let[i,o]=Ne(),r=()=>S(u,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,Ub),u=be().ui.isMobile,f=m(()=>s()>0&&s()>=l());var v=Kb();let p;v.__click=[zb,f,d];var y=_(v);{var w=C=>{var T=Wb(),E=_(T);Ee(),g(T),D(N=>ve(E,`${N!=null?N:""} `),[()=>j("skip_ads_now")]),$(C,T)},x=C=>{var T=rs();D(E=>ve(T,E),[()=>j("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(C,T)};R(y,C=>{n(f)?C(w):C(x,!1)})}g(v),D(C=>p=ne(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":r(),skippable:n(f)})]),$(t,v),F(),o()}lt(["click"]);var Qb=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),Gb={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Pf(t,e){H(e,!1),z(t,Gb),Ko();var i=Qb(),o=_(i,!0);g(i),D(r=>ve(o,r),[()=>j("visit_advertiser")],bn),$(t,i),F()}var jb=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),Yb=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Zb={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
+ 360deg,
58
+ rgba(0, 0, 0, 0) 0%,
59
+ rgba(0, 0, 0, 0.05) 12%,
60
+ rgba(0, 0, 0, 0.15) 25%,
61
+ rgba(0, 0, 0, 0.3) 45%,
62
+ rgba(0, 0, 0, 0.4) 57%,
63
+ rgba(0, 0, 0, 0.5) 77%,
64
+ rgba(0, 0, 0, 0.55) 88%,
65
+ rgba(0, 0, 0, 0.65) 100%
66
+ );}`};function Td(t,e){H(e,!0),z(t,Zb);let[i,o]=Ne(),r=()=>S(B,"$canSkipAd",i),s=()=>S(Y,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(U,"$adPosition",i),a=()=>S(Z,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=h(e,"adsSlotId",3,void 0),v=h(e,"adsParams",3,void 0),p=h(e,"adsAutoplayParam",3,void 0),y=h(e,"duration",3,0),w=h(e,"adsExternalApi",3,void 0),x=be(),C=Lt(),T=x.state.isEnded$,E=x.ui.isMobile,N=C.ads.isMobileGoToSiteButton,A=Q(void 0),I=Q(void 0),L=!1,Y=x.ads.playbackState,B=x.ads.canSkip,U=x.ads.position,Z=x.ads.secondsToWatchBeforeSkip,le=m(()=>r()&&s()!=="inactive"),K=m(()=>l()&&s()!=="inactive"&&N);Nt(()=>{let k=x.getAdmanWrapper();if(L1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[V1(),f()]}),!f()){k.onAdmanLoadingError();return}let qe=()=>{var Se;let{width:He,height:Ge}=_e(x.ui.playerSize),he=_e(x.ui.isFullscreen),te=(Se=p())!=null?Se:_e(x.ui.isAutoplay),we=C.ads.paramsOverride;return{width:He,height:Ge,isFullscreen:he,isAutoplay:te,adsContainer:n(A),adsVideoElement:n(I),slotId:f(),params:v(),paramsOverride:we,duration:y(),externalApi:w()}},Le=async He=>{He&&await co();let Ge=qe();await k.initAdman(Ge),L=!0},q=new AbortController,ie=()=>{q.abort()};return window.AdmanHTML?Le(!0).catch(()=>{k.onAdmanLoadingError()}):k.loadAdman(q.signal).then(()=>Le(!1)).catch(()=>{k.onAdmanLoadingError()}),()=>{L1.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[V1(),f()]}),!L&&ie()}});var ce=Yb(),X=_(ce);{var me=k=>{var qe=jb();$(k,qe)};R(X,k=>{l()&&k(me)})}var re=P(X,2);rt(re,k=>O(I,k),()=>n(I));var de=P(re,2);{var Me=k=>{Af(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return x.actions.internal.skipAd}})};R(de,k=>{n(le)&&k(Me)})}var xe=P(de,2);{var ee=k=>{kf(k,{})};R(xe,k=>{u()&&k(ee)})}var Oe=P(xe,2);{var pe=k=>{Pf(k,{})};R(Oe,k=>{n(K)&&k(pe)})}g(ce),rt(ce,k=>O(A,k),()=>n(A)),$(t,ce),F(),o()}var qo=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 Xb=Ie('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function Mf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}var Jb=Ie('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function Lf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Jb();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}function Ed(t,e){let i=h(e,"isActive",3,!1);var o=Be(),r=fe(o);{var s=d=>{Lf(d,{})},l=d=>{Mf(d,{})};R(r,d=>{i()?d(s):d(l,!1)})}$(t,o)}var e$=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),t$=M('<div class="live-icon svelte-1s15d2i"><!></div>'),i$=M('<span class="text svelte-1s15d2i"> </span>'),o$=M("<div><!> <!></div>"),n$={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
+ opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
+ animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
+ animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
70
+ animation-name: svelte-1s15d2i-thumb-timer-equalizer-col2;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(3) {left:6px;
71
+ animation-name: svelte-1s15d2i-thumb-timer-equalizer-col3;}.live-icon.svelte-1s15d2i {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}
72
+
73
+ @keyframes svelte-1s15d2i-thumb-timer-equalizer-col1 {
74
+ 0% {
75
+ transform: scaleY(0.1);
76
+ }
77
+
78
+ 25% {
79
+ transform: scaleY(0.8);
80
+ }
81
+
82
+ 50% {
83
+ transform: scaleY(0.4);
84
+ }
85
+
86
+ 75% {
87
+ transform: scaleY(0.6);
88
+ }
89
+
90
+ 100% {
91
+ transform: scaleY(0.1);
92
+ }
93
+ }
94
+
95
+ @keyframes svelte-1s15d2i-thumb-timer-equalizer-col2 {
96
+ 0% {
97
+ transform: scaleY(1);
98
+ }
99
+
100
+ 25% {
101
+ transform: scaleY(0.3);
102
+ }
103
+
104
+ 50% {
105
+ transform: scaleY(0.9);
106
+ }
107
+
108
+ 75% {
109
+ transform: scaleY(0.6);
110
+ }
111
+
112
+ 100% {
113
+ transform: scaleY(1);
114
+ }
115
+ }
116
+
117
+ @keyframes svelte-1s15d2i-thumb-timer-equalizer-col3 {
118
+ 0% {
119
+ transform: scaleY(0.6);
120
+ }
121
+
122
+ 25% {
123
+ transform: scaleY(0.9);
124
+ }
125
+
126
+ 50% {
127
+ transform: scaleY(0.1);
128
+ }
129
+
130
+ 75% {
131
+ transform: scaleY(0.9);
132
+ }
133
+
134
+ 100% {
135
+ transform: scaleY(0.6);
136
+ }
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Id(t,e){z(t,n$);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var s=o$();let l;var d=_(s);{var a=p=>{var y=e$();$(p,y)};R(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var y=t$(),w=_(y);Ed(w,{isActive:!0}),g(y),$(p,y)},v=p=>{var y=i$(),w=_(y,!0);g(y),D(()=>ve(w,e.time)),$(p,y)};R(u,p=>{o()?p(f):p(v,!1)})}g(s),D(p=>l=ne(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:r()})]),$(t,s)}var Tl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var r$=M('<div role="timer" data-testid="thumb-timer"><!></div>'),s$={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}`};function kd(t,e){H(e,!0),z(t,s$);let[i,o]=Ne(),r=()=>S(f,"$disabled",i),s=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),a=Lt(),u=m(()=>qo(e.duration-e.position)),f=ae(!1);var v=r$();let p;var y=_(v);Id(y,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),g(v),Ss(v,()=>Tl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=ne(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":r(),hidden:s()})]),$(t,v),F(),o()}var El=t=>{if(!navigator.clipboard){R1(t);return}navigator.clipboard.writeText(t).catch(()=>R1(t))};function R1(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)}}}import{ChromecastState as h$}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as N1}from"@vkontakte/videoplayer-core/es2018";var Vf="focus-hidden";var xr=t=>{t.stopPropagation(),t.preventDefault()},Rf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Vf)},l$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},d$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},c$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},u$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},O1=t=>t.code==="Escape",p$=t=>t.code==="ArrowLeft",Ad=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},D1=t=>{c$(t)?(xr(t),d$(t.target)):u$(t)&&(xr(t),l$(t.target))},Ys=t=>!N1.device.isAndroid&&(t==null?void 0:t.detail)===0||N1.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Il=async(t,e,i)=>{await co(),t&&!t.classList.contains("opened")&&!e&&_e(i)&&(await co(),i.set(!1),t.focus())},B1=async(t,e,i)=>{await co(),t&&!e&&_e(i)&&(i.set(!1),t.focus())},Pd=async(t,e,i,o=!1)=>{if(await co(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Vf,!i),s==null||s.focus()}},H1=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Cu=(t,e)=>{D1(t),Rf(t.target),O1(t)&&(xr(t),e())},Tu=async(t,e)=>{Ad(t,["ArrowRight"])&&(xr(t),e())},F1=async(t,e,i)=>{if(D1(t),p$(t)){xr(t),e();return}O1(t)&&(xr(t),i())},kl=(t,e)=>{Ad(t)&&(xr(t),e())},U1=(t,e,i)=>{if(Ad(t))xr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),xr(t);return}o==="ArrowRight"&&!e&&(i(!0),xr(t))}},z1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},W1=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}};import{isNullable as Eu,isValidURL as _$}from"@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};import{noop as K1}from"@vkontakte/videoplayer-shared/es2018";var v$=(t,e)=>{kl(t,()=>e())},m$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),g$={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function Nf(t,e){H(e,!0),z(t,g$);let i=h(e,"onClick",3,K1),o=h(e,"closeContextMenu",3,K1),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=m$();s.__click=r,s.__keydown=[v$,r];var l=_(s,!0);g(s),D(()=>{var d;We(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),We(s,"data-testid",e.id),ve(l,e.label)}),$(t,s),F()}lt(["click","keydown"]);var Aa=(t,e)=>t.weight-e.weight;var Md=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Md||{});var b$=(t,e)=>{Cu(t,e)},$$=t=>{t.preventDefault()},y$=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),x$={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function Of(t,e){H(e,!0),z(t,x$);let[i,o]=Ne(),r=()=>S(me,"$playerPhase",i),s=()=>S(le,"$isLive$",i),l=()=>S(re,"$isPiPEnabled$",i),d=()=>S(Z,"$chromecastState$",i),a=()=>S(de,"$pictureInPictureApiIsActive$",i),u=()=>S(X,"$isLooped$",i),f=()=>S(K,"$positionExact$",i),v=()=>S(Y,"$additionalContextMenuItems$",i),p=h(e,"visible",3,!1),y=h(e,"position",19,()=>({top:0,left:0})),w=h(e,"playerContainerRef",3,void 0),x=h(e,"menuElementRef",15,void 0),C=Q(0),T=Q(0),E=be(),{pictureInPicture$:N}=_o(),A=Lt(),I=E.ui.contextMenu.visible$,L=E.ui.debugPanelVisible,Y=E.ui.additionalContextMenuItems$,B=E.ui.t,U=E.actions.internal.togglePictureInPicture,Z=E.state.chromecastState$,le=E.state.isLive$,K=E.state.positionExact$,ce=E.state.isInteractive,X=E.state.looped$,me=E.playerPhase,{isEnabled$:re,isActive$:de}=N,Me=m(()=>r()==="video"),xe=m(()=>!!s()&&n(Me)),ee=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Oe=m(()=>{var ge;return A.features.copyVideoLink&&((ge=E.callbacks)==null?void 0:ge.onCopyVideoLink)}),pe=m(()=>n(Oe)&&!n(ee)&&!ce&&!n(xe)),k=m(()=>{var ge;return!!((ge=E.callbacks)!=null&&ge.onCopyEmbedCodeClicked)}),qe=m(()=>l()&&d()!==h$.CONNECTED&&!ce&&n(Me)),Le=m(()=>!ce&&!n(ee)&&!n(xe)),q=m(()=>A.features.videoRotate&&!ce&&!n(ee)),ie=m(()=>A.showSupport&&!a()),He=m(()=>A.features.saveTraceInfoToFile),Ge=()=>{var ge;I.set(!1),(ge=e.returnFocus)==null||ge.call(e)},he=(ge,st)=>{if(!x()||!w())return;let nt=x().getBoundingClientRect(),at=w().getBoundingClientRect();O(C,ge-at.left),O(T,st-at.top),n(C)+nt.width>at.width&&O(C,at.width-nt.width),n(T)+nt.height>at.height&&O(T,at.height-nt.height),O(C,Math.max(n(C),0),!0),O(T,Math.max(n(T),0),!0)};ze(()=>{(async()=>{if(x()&&w()){await co();let{top:st,left:nt,bottom:at,right:ei}=y(),jt=nt!=null?nt:0,ui=st!=null?st:0,wi=x().getBoundingClientRect();Eu(nt)&&!Eu(ei)&&(jt=ei-wi.width),Eu(st)&&!Eu(at)&&(ui=at-wi.height),jt=Math.max(jt,0),ui=Math.max(ui,0),he(jt,ui)}})()});let te=()=>{E.actions.internal.videoRotate()},we=()=>{_$(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},Se=()=>{let ge=E.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let st=new Blob([...ge],{type:"plain/text"}),nt=window.URL.createObjectURL(st);Ca(nt,"vk_player_debug_info","txt")}else El(E.actions.internal.getDebugTextData())},De=()=>{let ge=E.actions.internal.getTraceTextData(),st=new Blob([...ge],{type:"application/json"}),nt=window.URL.createObjectURL(st);Ca(nt,"vk_player_trace_info","json")},je=()=>{L.set(!0)},Qe=async()=>{var ge;try{U()}finally{(ge=e.returnFocus)==null||ge.call(e)}},Fe=()=>{E.actions.internal.setLooped(!u())},Ze=()=>{var ge,st;if(n(k)){let nt=(st=(ge=E.callbacks)==null?void 0:ge.onCopyEmbedCodeClicked)==null?void 0:st.call(ge);nt&&El(nt)}},Ot=(ge=!1)=>{var st,nt;if((st=E.callbacks)!=null&&st.onCopyVideoLink){let at=(nt=E.callbacks)==null?void 0:nt.onCopyVideoLink(ge,f());at&&El(at)}},tt=m(()=>A.features.saveDebugInfoToFile?B("menu_save_debug"):B("menu_copy_debug")),Bt=m(()=>n(Oe)?{id:"copy-link",weight:jr["copy-link"],label:B("menu_copy_video_link"),onClick:()=>Ot()}:void 0),qt=m(()=>n(pe)?{id:"copy-link-timestamp",weight:jr["copy-link-timestamp"],label:B("menu_copy_video_link_with_timestamp"),onClick:()=>Ot(!0)}:void 0),wt=m(()=>n(k)?{id:"copy-embed-code",weight:jr["copy-embed-code"],label:B("menu_copy_embed_code"),onClick:Ze}:void 0),Xt=m(()=>n(qe)?{id:"pip",weight:jr.pip,label:a()?B("menu_pip_close"):B("menu_pip"),onClick:Qe}:void 0),Pt=m(()=>n(Le)?{id:"video-loop",weight:jr["video-loop"],label:u()?B("menu_video_loop_off"):B("menu_video_loop_on"),ariaLabel:B("aria_label_menu_loop"),onClick:Fe}:void 0),Te=m(()=>n(q)?{id:"rotate",weight:jr.rotate,label:B("menu_video_rotate"),ariaLabel:B("aria_label_menu_rotate"),onClick:te}:void 0),Ae=m(()=>n(ie)?{id:"report",weight:jr.report,label:B("menu_report"),ariaLabel:`${B("menu_report")}. ${B("aria_label_new_tab_alert")}`,onClick:we}:void 0),J=m(()=>({id:"save-debug",weight:jr["save-debug"],label:n(tt),onClick:Se})),Ce=m(()=>n(He)?{id:"save-trace",weight:jr["save-trace"],label:B("menu_save_debug"),onClick:De}:void 0),se=m(()=>({id:"debug-info",weight:jr["debug-info"],label:B("menu_debug_overlay"),ariaLabel:B("aria_label_menu_debug_overlay"),onClick:je})),ht=m(()=>[n(Bt),n(qt),n(wt),n(Xt),n(Pt),n(Te),n(Ae),n(J),n(Ce),n(se),...v()].filter(ge=>!!ge).sort(Aa));var St=Be(),dt=fe(St);{var xt=ge=>{var st=y$();st.__contextmenu=[$$],st.__keydown=[b$,Ge],xi(st,21,()=>n(ht),nt=>nt.id,(nt,at)=>{Nf(nt,{get id(){return n(at).id},get label(){return n(at).label},get ariaLabel(){return n(at).ariaLabel},get onClick(){return n(at).onClick},closeContextMenu:Ge})}),g(st),rt(st,nt=>x(nt),()=>x()),D(()=>{var nt,at;return Xe(st,`top: ${(nt=n(T))!=null?nt:""}px; left: ${(at=n(C))!=null?at:""}px;`)}),$(ge,st)};R(dt,ge=>{p()&&ge(xt)})}$(t,St),F(),o()}lt(["contextmenu","keydown"]);var Iu=class{constructor(e){this.value=e,this.next=null}};var Al=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Iu(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 w$=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),S$={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Ld(t,e){H(e,!0),z(t,S$);let i=h(e,"values",19,()=>[]),o=Q(void 0),r=Q(null),s=16,l=120,d=60,a=l/d;Nt(()=>{n(o).width=l,n(o).height=s,O(r,n(o).getContext("2d"),!0)});function u(p,y,w,x,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(y,w,x,C)}ze(()=>{let p="";if(n(r)){let y=i()[0];for(let x=1;x<i().length;x++)i()[x]>y&&(y=i()[x]);n(r).clearRect(0,0,l,s);let w=d-1;for(let x=i().length-1;x>=0;x--){let C=w*a,T=y>0?s*(i()[x]/y):0;u(n(r),C,0,a,T),p=T+" "+p,w--}}});var f=w$(),v=_(f);rt(v,p=>O(o,p),()=>n(o)),g(f),$(t,f),F()}import{safeStorage as q1}from"@vkontakte/videoplayer-shared/es2018";var C$=(t,e)=>{t.stopPropagation(),q1.remove(bd),e.set(!1)},T$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),E$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),I$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),k$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),A$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),P$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),M$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),L$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),V$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),R$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),N$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),O$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),D$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),B$=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),H$=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),F$={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Vd(t,e){H(e,!0),z(t,F$);let[i,o]=Ne(),r=()=>S(d,"$isMobile",i),s=be(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Q(si(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Q(0),v=Q(0),p=Q(0),y=new Al(60),w=new Al(60),x=new Al(60),C=Q(si([])),T=Q(si([])),E=Q(si([])),N=j("aria_label_debug_panel");Nt(()=>{q1.set(bd,"true"),s.actions.internal.startLogging(),u&&(O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Te=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),Ae;return u&&(Ae=window.setInterval(()=>{if(u){O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let J=u.getVideoPlaybackQuality().totalVideoFrames;O(p,J-n(f)),O(f,J,!0),y.push(n(p)),n(a).speed&&w.push(n(a).speed),n(a).bitrate&&x.push(n(a).bitrate),O(C,y.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,x.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Te),Ae&&clearInterval(Ae)}});var A=H$();let I;var L=_(A);L.__click=[C$,l];var Y=P(L,2),B=_(Y),U=P(_(B),2),Z=_(U,!0);g(U),g(B);var le=P(B,2);{var K=Te=>{var Ae=T$(),J=P(_(Ae),2),Ce=_(J,!0);g(J),g(Ae),D(()=>ve(Ce,n(a).id)),$(Te,Ae)};R(le,Te=>{n(a).id&&Te(K)})}var ce=P(le,2);{var X=Te=>{var Ae=E$(),J=P(_(Ae),2),Ce=_(J,!0);g(J),g(Ae),D(()=>ve(Ce,n(a).vsid)),$(Te,Ae)};R(ce,Te=>{n(a).vsid&&Te(X)})}var me=P(ce,2);{var re=Te=>{var Ae=I$(),J=P(_(Ae),2),Ce=_(J,!0);g(J),g(Ae),D(()=>ve(Ce,n(a).provider)),$(Te,Ae)};R(me,Te=>{n(a).provider&&Te(re)})}var de=P(me,2);{var Me=Te=>{var Ae=k$(),J=P(_(Ae),2),Ce=_(J);g(J),g(Ae),D(()=>{var se,ht;return ve(Ce,`Video: ${(se=n(a).videoCodec||"")!=null?se:""} ${n(a).hdr?"(HDR)":""}
57
139
  &
58
- Audio: ${(Tt=n(s).audioCodec||"")!=null?Tt:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),_(ye,be)};V(ne,ye=>{(n(s).videoCodec||n(s).audioCodec)&&ye(_e)})}var we=k(ne,2);{var Z=ye=>{var be=$y(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).viewport)),_(ye,be)};V(we,ye=>{n(s).viewport&&ye(Z)})}var Ne=k(we,2);{var ue=ye=>{var be=yy(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).videoSize)),_(ye,be)};V(Ne,ye=>{n(s).videoSize&&ye(ue)})}var A=k(Ne,2);{var We=ye=>{var be=xy(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).cdn)),_(ye,be)};V(A,ye=>{n(s).cdn&&ye(We)})}var Ce=k(A,2);{var pe=ye=>{var be=wy(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(()=>{var Pe;return fe(xe,`${(Pe=n(s).volume)!=null?Pe:""} %`)}),_(ye,be)};V(Ce,ye=>{n(s).volume&&ye(pe)})}var se=k(Ce,2);{var Oe=ye=>{var be=Sy(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(Pe=>fe(xe,`${Pe!=null?Pe:""} s`),[()=>n(s).position.toFixed(2)]),_(ye,be)};V(se,ye=>{n(s).position&&ye(Oe)})}var De=k(se,2);{var J=ye=>{var be=Ty(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(Pe=>fe(xe,`${Pe!=null?Pe:""} s`),[()=>n(s).buffer.toFixed(2)]),_(ye,be)};V(De,ye=>{n(s).buffer&&ye(J)})}var X=k(De,2);{var Se=ye=>{var be=Cy(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(Pe=>fe(xe,`${Pe!=null?Pe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),_(ye,be)};V(X,ye=>{n(s).liveLatency&&ye(Se)})}var Be=k(X,2);{var Ke=ye=>{var be=Iy(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(Pe=>fe(xe,Pe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Pe})=>Pe).map(({value:Pe,title:Tt})=>`${Tt} ${((Pe!=null?Pe:0)/1e3).toFixed(2)} s`).join(" & ")]),_(ye,be)};V(Be,ye=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&ye(Ke)})}var Qe=k(Be,2),Te=k(T(Qe),2),ke=T(Te);w(Te),w(Qe);var He=k(Qe,2);{var Lt=ye=>{var be=Ey(),ee=k(T(be),2);Fd(ee,{get values(){return n(C)}});var xe=k(ee,2),Pe=T(xe);w(xe),w(be),B(Tt=>fe(Pe,`${Tt!=null?Tt:""} Kbps`),[()=>n(s).speed.toFixed(2)]),_(ye,be)};V(He,ye=>{n(s).speed&&ye(Lt)})}var Je=k(He,2);{var Rt=ye=>{var be=Py(),ee=k(T(be),2);Fd(ee,{get values(){return n(I)}});var xe=k(ee,2),Pe=T(xe);w(xe),w(be),B(Tt=>fe(Pe,`${Tt!=null?Tt:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),_(ye,be)};V(Je,ye=>{n(s).bitrate&&ye(Rt)})}var zt=k(Je,2),wt=k(T(zt),2);Fd(wt,{get values(){return n(S)}});var jt=k(wt,2),Nt=T(jt,!0);w(jt),w(zt),w(D),w(E),B(ye=>{var be,ee;P=re(E,1,"container s-v",null,P,ye),ze(E,"aria-label",R),fe(G,n(s).version),fe(ke,`${(be=n(m))!=null?be:""} / ${(ee=n(p))!=null?ee:""} frames`),fe(Nt,n(f))},[()=>({"container-mobile":r()})]),_(t,E),H(),o()}nt(["click"]);import{noop as Ly}from"@vkontakte/videoplayer-shared/es2018";var My=(t,e)=>{t.stopPropagation(),e()()},Vy=L('<div class="close s-1c"></div>'),Ry={hash:"s-1c",code:'.close.s-1c{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1c:hover{opacity:1}.close.s-1c:after,.close.s-1c:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1c:before{transform:rotate(45deg)}.close.s-1c:after{transform:rotate(-45deg)}'};function Ps(t,e){F(e,!0),q(t,Ry);let i=g(e,"onClick",3,Ly);var o=Vy();o.__click=[My,i],_(t,o),H()}nt(["click"]);import{noop as Oy}from"@vkontakte/videoplayer-shared/es2018";var mn=t=>`width:${t}px;height:${t}px;`;var Ny=Ie('<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 Pn(t,e){F(e,!0);let i=v(()=>mn(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",children:(o,r)=>{var a=Ny();_(o,a)},$$slots:{default:!0}}),H()}var Dy=L('<div class="timer s-1e"><canvas class="timer-canvas s-1e" width="100" height="100"></canvas> <!></div>'),By={hash:"s-1e",code:".timer.s-1e{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-1e:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1e{height:50px;position:absolute;width:50px}"};function Ud(t,e){F(e,!0),q(t,By);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,Oy),r=5e3,a=K(void 0),l,d,s=0,u;Re(()=>{i()&&It(()=>{d=Date.now(),s=requestAnimationFrame(m)})});let p=()=>{s&&(cancelAnimationFrame(s),s=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(),s=requestAnimationFrame(m)):o()())};Vt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),fn(()=>{p()});var f=Dy(),b=T(f);it(b,$=>N(a,$),()=>n(a));var y=k(b,2);Pn(y,{get size(){return"24"}}),w(f),_(t,f),H()}var Fy=(t,e,i)=>{e(!1),i()},Hy=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),Uy={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 Hf(t,e){F(e,!0),q(t,Uy);let[i,o]=Ve(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=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()};Vt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=R=>{var E=Hy(),P=k(de(E),2),O=T(P),D=T(O),U=T(D,!0);w(D);var z=k(D,2);Ps(z,{onClick:$}),w(O);var G=k(O,2);G.__click=[Fy,u,m];var le=T(G),j=T(le),ie=T(j);let Y;var ge=k(ie,2);{var ce=Z=>{let Ne=v(()=>a()&&r());Ud(Z,{get isRunning(){return n(Ne)},onTimerEnded:y})};V(ge,Z=>{r()&&Z(ce)})}w(j),w(le);var ne=k(le,2),_e=T(ne),we=T(_e,!0);w(_e),w(ne),w(G),w(P),B((Z,Ne)=>{fe(U,Z),qe(j,`background-image: url('${e.thumb}')`),Y=re(ie,1,"thumb-overlay s-y",null,Y,Ne),fe(we,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:r()})]),_(R,E)};V(C,R=>{e.isHide||R(I)})}_(t,S),H(),o()}nt(["click"]);import{PlaybackState as Na}from"@vkontakte/videoplayer-core/es2018";import{checkNever as Wy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Un}from"@vkontakte/videoplayer-statistics/es2018";var Uf=(t,e)=>Math.min(+(t+e).toFixed(2),1),zf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Nu=(t,e,i)=>{let o=Uf(e,i);e<1&&t.actions.internal.setVolume(o)},Ou=(t,e,i)=>{let o=zf(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 Du(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var Ky=(t,e)=>{e(t)},qy=L('<div class="keyboard-controls s-14" tabindex="-1" role="region"><!></div>'),Qy={hash:"s-14",code:".keyboard-controls.s-14{bottom:0;left:0;position:absolute;right:0;top:0}"};function Wf(t,e){var Pe,Tt;F(e,!0),q(t,Qy);let[i,o]=Ve(),r=()=>x(ge,"$disabledControls$",i),a=()=>x(Se,"$isInteractiveTime$",i),l=()=>x(Be,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(G,"$playbackState$",i),s=()=>x(pe,"$isEnded$",i),u=()=>x(We,"$doubleForwardAvailable$",i),p=()=>x(A,"$doubleForwardOn$",i),m=()=>x(se,"$overlayContainer$",i),f=()=>x(le,"$adPlaybackState",i),b=()=>x(j,"$positionExact$",i),y=()=>x(ie,"$duration$",i),$=()=>x(J,"$isAudioAvailable$",i),S=()=>x(Y,"$volume$",i),C=()=>x(we,"$availablePlaybackRates$",i),I=()=>x(_e,"$currentPlaybackRate$",i),R=()=>x(ce,"$muted$",i),E=()=>x(ne,"$currentSubtitle$",i),P=g(e,"nextButtonActive",3,!1),O=g(e,"prevButtonActive",3,!1),D=ve(),U=kt(),z=D.getLogger().createComponentLog("KeyboardControls component"),G=D.state.playbackState$,le=D.ads.playbackState,j=D.state.positionExact$,ie=D.state.duration$,Y=D.state.volume$,ge=D.ui.controls.disabledControls$,ce=D.state.muted$,ne=D.state.currentSubtitle$,_e=D.state.currentPlaybackRate$,we=D.state.availablePlaybackRates$,Z=D.ui.contextMenu.openedByHotKey$,Ne=D.ui.contextMenu.lastActiveElem$,ue=D.ui.contextMenu.visible$,A=D.ui.doubleForwardOn$,We=D.ui.doubleForwardAvailable$,Ce=D.ui.contextMenu.position$,pe=D.state.isEnded$,se=D.ui.overlayContainer$,Oe=(Pe=D.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,De=(Tt=D.callbacks)==null?void 0:Tt.onAudioDisabledHint,J=D.state.isAudioAvailable$,X=D.state.isAudioDisabled,Se=D.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Be}=$o(),Ke=0,Qe=!0,Te=K(void 0),ke=Me=>(Me!==Qe&&(Qe=Me,Ke=0),Ke+=1,(U.controls.seekStepKeyboard+U.controls.seekStepKeyboard*Ke)/1e3),He=!0,Lt=({type:Me,repeat:rt,disableDoubleForward:ft})=>{let $e=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&Be.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{D.actions.internal.togglePlay();let Ue="PLAY";d()===Na.PAUSED?Ue="PAUSE":s()&&(Ue="REPLAY"),e.showHotKeyHelpers({type:Ue})}},Ze=Me==="down";if(!u()||ft){Ze&&$e(),He=!0;return}if(Ze)He=!1;else if(He)return;if(Ze){!rt&&e.startDoubleForwardActivationTimer();return}p()||$e(),e.stopDoubleForward(),He=!0},Je=Me=>{let rt=P_(m());Ce.set(rt),Ne.set(Me.target),Z.set(!0),ue.set(!0)},Rt=(Me,rt=!1)=>{var Ci,Qt;let ft=Me.target,$e=(Ci=ft==null?void 0:ft.getAttribute("role"))==null?void 0:Ci.includes("menuitem"),Ze=ft.classList.contains("btn"),Ue=Me.code;if(Ze&&Ue==="Space")return!1;let ot=Ih.has(Ue);if($e&&ot)return!1;let Xt=!Ch.has(Ue);if(Me.ctrlKey&&Xt||Me.altKey&&Xt||Me.metaKey)return!1;let ni=$e&&Ue==="Escape";Eh.has(Ue)||ni||e.hideContextMenu();let pi=d()===Na.PLAYING||d()===Na.PAUSED,vi=e.isAds&&(f()==="paused"||f()==="playing"),Zi=!vi&&!r().has("TIMELINE"),vo=Me.shiftKey&&["Digit1","Numpad1"].includes(Ue);if(!vo&&!(pi||vi))return!1;z({message:`key down, code: ${Ue}, isExternal = ${rt}`});let li=!1,dt=()=>{li=!0,rt||Me.preventDefault()};if(vo)return Je(Me),dt(),!0;switch(Ue){case"KeyJ":case"ArrowLeft":{if(!Zi)break;if(Me.ctrlKey||Me.altKey){let xt=D.actions.internal.getPrevEpisode();D.actions.internal.seekToPrevEpisode(xt),xt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:xt.text}),dt()}else{let xt=Me.shiftKey?ke(!1):U.controls.seekStepKeyboard/1e3,ei=Math.max(b()-xt,0);b()>0&&(D.actions.internal.seekTime(ei,Un.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:xt.toString()}),dt())}break}case"KeyL":case"ArrowRight":{if(!Zi)break;if(Me.ctrlKey||Me.altKey){let xt=D.actions.internal.getNextEpisode();D.actions.internal.seekToNextEpisode(xt),xt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:xt.text}),dt()}else{let xt=Me.shiftKey?ke(!0):U.controls.seekStepKeyboard/1e3,ei=Math.min(b()+xt,y());Math.round(b())<Math.round(y())&&(D.actions.internal.seekTime(ei,Un.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:xt.toString()}),dt())}break}case"ArrowUp":{if(ia({isAudioDisabled:X,audioDisabledHintCallback:De,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let xt=S(),ei=U.controls.volumeStepKeyboard,Gt=xt<=1;if(Nu(D,xt,ei),Gt){let ht=Math.round(Uf(xt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ht}})}}dt();break}case"ArrowDown":{if(ia({isAudioDisabled:X,audioDisabledHintCallback:De,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let xt=S(),ei=U.controls.volumeStepKeyboard,Gt=xt>=0;if(Ou(D,xt,ei),Gt){let ht=Math.round(zf(xt,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ht}})}}dt();break}case"Comma":{if(Me.shiftKey){if(!p()){D.actions.internal.decrementPlaybackRate();let xt=C().find(ei=>ei.value===I());e.showHotKeyHelpers({type:"RATE_DOWN",text:xt==null?void 0:xt.displayValue}),dt()}}else{if(vi||d()!==Na.PAUSED)break;let xt=Math.max(b()-U.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(xt,Un.DOUBLE_TAP),dt())}break}case"Period":{if(Me.shiftKey){if(!p()){D.actions.internal.incrementPlaybackRate();let xt=C().find(ei=>ei.value===I());e.showHotKeyHelpers({type:"RATE_UP",text:xt==null?void 0:xt.displayValue}),dt()}}else{if(vi||d()!==Na.PAUSED)break;let xt=Math.min(b()+U.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(xt,Un.DOUBLE_TAP),dt())}break}case"KeyK":case"Space":Lt({type:"down",repeat:Me.repeat,disableDoubleForward:"KeyK"===Ue}),dt();break;case"KeyM":{ia({isAudioDisabled:X,audioDisabledHintCallback:De,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),D.actions.internal.toggleMuted()),dt();break}case"KeyF":e.toggleFullscreen(),dt();break;case"KeyC":D.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Qt=E())==null?void 0:Qt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),dt();break;case"KeyI":D.actions.internal.togglePictureInPicture(),dt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.1,Un.DOUBLE_TAP),dt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.2,Un.DOUBLE_TAP),dt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.3,Un.DOUBLE_TAP),dt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.4,Un.DOUBLE_TAP),dt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.5,Un.DOUBLE_TAP),dt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.6,Un.DOUBLE_TAP),dt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.7,Un.DOUBLE_TAP),dt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.8,Un.DOUBLE_TAP),dt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.9,Un.DOUBLE_TAP),dt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(0,Un.DOUBLE_TAP),dt();break;case"Slash":{Me.shiftKey&&U.features.hotKeyMapModal&&(e.showKeyMap(),dt());break}case"KeyN":Me.shiftKey&&P()&&(D.actions.internal.nextVideoClick(),dt());break;case"KeyP":Me.shiftKey&&O()&&(D.actions.internal.prevVideoClick(),dt());break;case"ShiftLeft":case"ShiftRight":dt();break;case"Tab":case"Escape":case"Enter":break;default:Wy(Ue);break}return li},zt=Me=>{let rt=Me.code;if(Me.ctrlKey||Me.altKey||Me.metaKey)return;let ft=d()===Na.PLAYING||d()===Na.PAUSED,$e=e.isAds&&(f()==="paused"||f()==="playing");if(ft||$e)switch(rt){case"ShiftLeft":case"ShiftRight":Ke=0;break;case"Space":Lt({type:"up"});break}},wt=Q("aria_label_video_player"),jt=()=>{var Me;return(Me=n(Te))==null?void 0:Me.focus()},Nt=()=>n(Te)===Du(),ye=Me=>Me.type==="keydown"?Rt(Me,!0):(Me.type==="keyup"&&zt(Me),!1);var be=qy();be.__keyup=zt,be.__keydown=[Ky,Rt];var ee=T(be);Jt(ee,()=>{var Me;return(Me=e.children)!=null?Me:vt}),w(be),it(be,Me=>N(Te,Me),()=>n(Te)),B(()=>ze(be,"aria-label",wt)),_(t,be);var xe=H({focus:jt,isFocused:Nt,handleExternalKeyboardEvent:ye});return o(),xe}nt(["keyup","keydown"]);var Gy=L('<div class="container s-l"><div class="dot s-l"></div> <div class="dot s-l"></div> <div class="dot s-l"></div></div>'),Yy={hash:"s-l",code:".container.s-l{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-l:first-child{animation-delay:0s}.dot.s-l:nth-child(2){animation-delay:.18s}.dot.s-l:nth-child(3){animation-delay:.36s}@keyframes s-l-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-l{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-l-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-l+.dot:where(.s-l){margin-left:4px}"};function Oa(t,e){q(t,Yy);let i=g(e,"style",3,"");var o=Gy();B(()=>qe(o,i())),_(t,o)}var jy=Ie('<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 Kf(t,e){Xe(t,{get fill(){return e.fill},children:(i,o)=>{var r=jy();_(i,r)},$$slots:{default:!0}})}import{noop as Dl}from"@vkontakte/videoplayer-shared/es2018";var Xy=t=>{t.stopPropagation()},Zy=L("<button><!></button>"),Jy={hash:"s-1l",code:"button.btn.s-1l{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-1l{width:100%}button.btn--live.s-1l{padding:10px 4px}button.btn-jc-l.s-1l{justify-content:left}button.btn-m.s-1l{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-1l,button.btn-m--play.s-1l{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1l{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1l,button.btn-m--prev.s-1l{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1l{right:calc(100% + 35px)}button.btn-m--next.s-1l{left:calc(100% + 35px)}button.btn.s-1l:disabled{cursor:default;pointer-events:none}button.btn.s-1l:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1l:not(:disabled):hover{opacity:.8}button.pr-0.s-1l{padding-right:0}button.pl-0.s-1l{padding-left:0}"};function Ft(t,e){F(e,!0),q(t,Jy);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),a=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),s=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),p=g(e,"ariaExpanded",3,void 0),m=g(e,"tabIndex",3,0),f=g(e,"click",3,Dl),b=g(e,"focus",3,Dl),y=g(e,"blur",3,Dl),$=v(()=>f()===Dl?null:E=>{E.stopPropagation(),f()(E)}),S=v(()=>b()===Dl?null:E=>{E.preventDefault(),b()()}),C=v(()=>y()===Dl?null:E=>{E.preventDefault(),y()()});var I=Zy();I.__pointerdown=[Xy],I.__click=function(...E){var P;(P=n($))==null||P.apply(this,E)};var R=T(I);Jt(R,()=>{var E;return(E=e.children)!=null?E:vt}),w(I),it(I,E=>s(E),()=>s()),B(()=>{var E,P,O,D,U,z,G,le;re(I,1,`btn ${(E=i())!=null?E:""}`,"s-1l"),qe(I,o()||null),I.disabled=(P=r())!=null?P:null,ze(I,"aria-hidden",(O=l())!=null?O:null),ze(I,"aria-label",(D=d())!=null?D:null),ze(I,"aria-keyshortcuts",(U=u())!=null?U:null),ze(I,"aria-expanded",(z=p())!=null?z:null),ze(I,"data-testid",(G=a())!=null?G:null),ze(I,"tabindex",m()),ze(I,"role",e.role),ze(I,"aria-checked",(le=e.areaChecked)!=null?le:null)}),gt("focus",I,function(...E){var P;(P=n(S))==null||P.apply(this,E)}),gt("blur",I,function(...E){var P;(P=n(C))==null||P.apply(this,E)}),_(t,I),H()}nt(["pointerdown","click"]);var e0=L('<div class="modal-header s-1j"><h3 class="modal-title s-1j"> </h3> <!></div>'),t0=L('<div class="modal-overlay s-1j"><div class="modal-container s-1j"><!> <div class="modal-scroll s-1j"><div class="modal-main s-1j"><!></div></div></div></div>'),i0={hash:"s-1j",code:'.modal-overlay.s-1j{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.modal-container.s-1j{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-1j{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-1j{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-1j{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1j::-webkit-scrollbar{width:8px}.modal-scroll.s-1j::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1j::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1j::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1j{margin:-8px -4px 0 0}'};function qf(t,e){F(e,!0),q(t,i0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=Q("hotkey_map_modal_close_btn_text");var a=t0(),l=T(a),d=T(l);{var s=f=>{var b=e0(),y=T(b),$=T(y,!0);w(y);var S=k(y,2);{var C=I=>{Ft(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,E)=>{Kf(R,{fill:"currentColor"})},$$slots:{default:!0}})};V(S,I=>{o()&&I(C)})}w(b),B(()=>fe($,e.title)),_(f,b)};V(d,f=>{i()&&f(s)})}var u=k(d,2),p=T(u),m=T(p);Jt(m,()=>{var f;return(f=e.children)!=null?f:vt}),w(p),w(u),w(l),w(a),_(t,a),H()}var o0=new Set(["BR"]),L_=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;o0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var n0=L('<li class="hot-key-map-item s-10"><span class="hot-key-map-item-description s-10"><!></span> <span class="hot-key-map-item-value s-10"> </span></li>'),r0=L('<div class="hot-key-map-group s-10"><h5 class="hot-key-map-group-title s-10"> </h5> <ul class="hot-key-map-group-items s-10"></ul></div>'),s0=L('<div class="hot-key-map s-10"></div>'),a0={hash:"s-10",code:'.hot-key-map.s-10{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-10{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-10:last-child{border-bottom:none}.hot-key-map-group-title.s-10{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-10,.hot-key-map-item.s-10{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-10{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-10{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-10{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-10{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-10,.hot-key-map-item-value.s-10{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Qf(t,e){F(e,!1),q(t,a0);let[i,o]=Ve(),r=()=>x(l,"$data",i),a=ve(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};bo(),qf(t,{get title(){return r().title},onClose:s,children:(u,p)=>{var m=s0();bi(m,5,()=>r().groups,({title:f,items:b})=>f,(f,b)=>{let y=()=>n(b).title,$=()=>n(b).items;var S=r0(),C=T(S),I=T(C,!0);w(C);var R=k(C,2);bi(R,5,$,({description:E,value:P})=>P,(E,P)=>{let O=()=>n(P).description,D=()=>n(P).value;var U=n0(),z=T(U),G=T(z);$d(G,()=>L_(O())),w(z);var le=k(z,2),j=T(le,!0);w(le),w(U),B(()=>fe(j,D())),_(E,U)}),w(R),w(S),B(()=>fe(I,y())),_(f,S)}),w(m),_(u,m)},$$slots:{default:!0}}),H(),o()}import{noop as sb}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as eb,PlaybackState as Mm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var l0=L('<div class="pillow s-27"><!></div>'),d0={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 Gf(t,e){q(t,d0);var i=l0(),o=T(i);Jt(o,()=>{var r;return(r=e.children)!=null?r:vt}),w(i),_(t,i)}import{VideoQuality as Kd}from"@vkontakte/videoplayer-shared/es2018";var c0=Ie('<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 Yf(t,e){let i=En(e,["$$slots","$$events","$$legacy","children"]);var o=c0();Yi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=T(o);Jt(r,()=>{var a;return(a=e.children)!=null?a:vt}),ui(),w(o),_(t,o)}var u0=Ie('<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 jf(t,e){let i=En(e,["$$slots","$$events","$$legacy","children"]);var o=u0();Yi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=T(o);Jt(r,()=>{var a;return(a=e.children)!=null?a:vt}),ui(),w(o),_(t,o)}var p0=Ie('<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 Xf(t,e){let i=En(e,["$$slots","$$events","$$legacy","children"]);var o=p0();Yi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=T(o);Jt(r,()=>{var a;return(a=e.children)!=null?a:vt}),ui(),w(o),_(t,o)}var f0=Ie('<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 zd(t,e){let i=En(e,["$$slots","$$events","$$legacy","children"]);var o=f0();Yi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=T(o);Jt(r,()=>{var a;return(a=e.children)!=null?a:vt}),ui(),w(o),_(t,o)}var m0=Ie('<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 Wd(t,e){let i=En(e,["$$slots","$$events","$$legacy","children"]);var o=m0();Yi(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=T(o);Jt(r,()=>{var a;return(a=e.children)!=null?a:vt}),ui(),w(o),_(t,o)}var Bu=t=>{switch(t){case Kd.Q_720P:return Xf;case Kd.Q_1080P:return zd;case Kd.Q_1440P:return Wd;case Kd.Q_2160P:return Yf;case Kd.Q_4320P:return jf}};var v0=Ie('<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 Zf(t,e){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=v0();_(i,r)},$$slots:{default:!0}})}var g0=Ie('<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 Jf(t,e){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=g0();_(i,r)},$$slots:{default:!0}})}var h0=L('<div aria-hidden="true"><!> <!></div>'),_0={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 qd(t,e){F(e,!0),q(t,_0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>Bu(o())),a=v(()=>!!n(r)&&[zd,Wd].includes(n(r)));var l=Le(),d=de(l);{var s=p=>{Zf(p,{testId:"settings-mobile-icon"})},u=p=>{var m=h0();let f;var b=T(m);{var y=C=>{Gf(C,{children:(I,R)=>{var E=Le(),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");Jf($,{get testId(){return n(S)}}),w(m),B(C=>f=re(m,1,"icon s-1v",null,f,C),[()=>({triple:n(a)})]),_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(t,l),H()}var b0=L('<span class="settings-icon-wrapper s-20"><!></span>'),$0={hash:"s-20",code:".settings-icon-wrapper.s-20{position:relative;width:24px}"};function Bl(t,e){F(e,!0),q(t,$0);let[i,o]=Ve(),r=()=>x(u,"$settingsMenuVisible",i),a=()=>x(f,"$isMobile",i),l=()=>x(s,"$currentQuality",i),d=ve(),s=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);Re(()=>{n(y)&&It(()=>{e.ref$.set(n(y))})});let $=b("aria_label_settings");async function S(I){let R=ta(I);r()?m():p(R,mo)}let C=v(()=>r()?"opened":"");Ft(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=b0(),P=T(E);qd(P,{get isMobile(){return a()},get currentQuality(){return l()}}),w(E),_(I,E)},$$slots:{default:!0}}),H(),o()}var y0=Ie('<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),x0=Ie("<path></path>");function oa(t,e){F(e,!0);let i=v(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=v(()=>mn(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},children:(r,a)=>{var l=Le(),d=de(l);{var s=p=>{var m=y0();ui(),_(p,m)},u=p=>{var m=x0();B(()=>ze(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
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(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}}),H()}function em(t,e){F(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,a=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ft(t,{testId:"btn-Subtitles",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return ps.KeyC},role:"button",children:(l,d)=>{let s=v(()=>i()?void 0:"outline");oa(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var w0=L('<span class="duration s-23" data-testid="video_duration"> </span>'),S0=L('<div><span class="current s-23" data-testid="current_time"> </span> <!></div>'),T0={hash:"s-23",code:'.time.s-23{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-23{padding:0 0 0 8px}.current.s-23{position:relative}.duration.s-23{opacity:.7}.duration.s-23:before{content:" / ";white-space:pre}'};function Qd(t,e){F(e,!0),q(t,T0);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),a=g(e,"ref",15),l=kt(),d=ae(!1),s=v(()=>jo(e.duration)),u=v(()=>jo(e.position));var p=S0();let m;var f=T(p),b=T(f,!0);w(f);var y=k(f,2);{var $=S=>{var C=w0(),I=T(C,!0);w(C),B(()=>fe(I,n(s))),_(S,C)};V(y,S=>{r()&&S($)})}w(p),Cs(p,()=>Ml(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),it(p,S=>a(S),()=>a()),B(S=>{m=re(p,1,"time s-23",null,m,S),fe(b,n(u))},[()=>({mobile:i()})]),_(t,p),H()}import{noop as Fu}from"@vkontakte/videoplayer-shared/es2018";var C0=Ie("<path></path>");function na(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",a=v(()=>r(i(),o())),l=v(()=>mn(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",s="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";Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(l)},get testId(){var m;return`volume-${(m=n(a))!=null?m:""}-icon`},children:(m,f)=>{var b=C0();B(()=>ze(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(a)==="off"?s:`${u}${n(a)==="max"?p:""}`}`)),_(m,b)},$$slots:{default:!0}}),H()}import{isNonNullable as V_,noop as zn}from"@vkontakte/videoplayer-shared/es2018";import{noop as im}from"@vkontakte/videoplayer-shared/es2018";import{noop as E0}from"@vkontakte/videoplayer-shared/es2018";var I0=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),s=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))};Re(()=>{u(r())}),Vt(()=>(u(r()),()=>s(r())));var p=I0(),m=T(p);Jt(m,()=>{var f;return(f=e.children)!=null?f:vt}),w(p),it(p,f=>N(d,f),()=>n(d)),_(t,p),H(),o()}var P0=L('<div class="tooltip s-1k"><div class="content s-1k"> </div> <div class="tooltip-pointer s-1k"></div></div>'),A0=L("<div><!></div> <!>",1),k0={hash:"s-1k",code:'.tooltip-wrapper.s-1k{display:flex;flex-direction:column;min-width:0}.full-width.s-1k{width:100%}.tooltip.s-1k{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1k{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1k{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 Da(t,e){F(e,!0),q(t,k0);let[i,o]=Ve(),r=()=>x(G,"$overlayContainer$",i),a=()=>x(z,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),s=g(e,"active",15,!1),u=g(e,"translateX",3,0),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,E0),$=5,S=K(void 0),C=K(void 0),I,R=K(0),E=K(0),P=K(0),O=K(0),D=kt(),U=ve(),z=U.ui.playerSize,G=U.ui.overlayContainer$;Re(()=>{It(()=>{y()(s())})});let le=U.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!r()||!n(C)||!n(S))return;N(E,$);let X=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Be=Se.width,Ke=n(C).clientWidth,Qe=a().width,Te=(Be-Ke)/2,ke=Se.left+u()-X.left,He=ke+Te,Lt=Se.top+p()-X.top,Je=Ke/2-$,Rt=He<8,zt=He+Ke>Qe-8;Rt&&(He=8,Je=ke+Se.width/2-2.5*$),zt&&(He=Qe-8-Ke,Je=Se.left-X.left+Se.width/2-He-$),N(P,He,!0),N(O,Lt),N(R,Je,!0)},ie=()=>{!r()||!n(C)||!n(S)||N(E,-$)},Y=()=>{if(!r()||!n(C)||!n(S))return;N(R,$);let X=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Be=Se.height,Ke=n(C).clientHeight,Qe=(Be-Ke)/2+Ke,Te=Se.left+u()-X.left-n(C).clientWidth,ke=2,He=Te-$;He<8&&(He=8);let Je=Se.top+p()-X.top+Qe,Rt=ke-Qe/2,zt=ke-$;N(P,He,!0),N(O,Je),N(E,Rt),N(R,zt)},ge=()=>{!r()||!n(C)||!n(S)||N(R,-$)},ce=()=>{switch(b()){case"top":j();break;case"bottom":ie();break;case"left":Y();break;default:ge()}},ne=()=>{try{if(!r()||!n(S))return;ce(),s(!0)}catch(X){le({message:String(X)})}},_e=()=>{s(!1)},we=()=>{n(C)&&(I||(I=window.setTimeout(ne,D.controls.hideTimeoutTooltips)),s()&&ne())},Z=()=>{_e(),window.clearTimeout(I),I=void 0},Ne=(X,Se,Be)=>{let Ke="";switch(b()){case"top":Ke=`transform: translate(${X}px, ${Se}px);`;break;case"bottom":Ke=`transform: translate(${X}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${X}px, ${Se}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${X}px, ${Se}px);`}return Ke+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,Ke+=` opacity: ${Be?1:0}; visibility: ${Be?"visible":"hidden"}`,Ke},ue=(X,Se)=>{let Be="";switch(b()){case"top":Be=`transform: translate(${X}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Be=`transform: translate(${X}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Be=`transform: translate(${X}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Be=`transform: translate(${X}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Be},A=v(()=>Ne(n(P),n(O),s())),We=v(()=>ue(n(R),n(E)));Vt(ce),fn(()=>window.clearTimeout(I));var Ce=A0(),pe=de(Ce);let se;pe.__pointermove=we,pe.__pointerdown=Z,pe.__pointerup=function(...X){var Se;(Se=e.disableMouseupTooltipShow?void 0:we)==null||Se.apply(this,X)};var Oe=T(pe);Jt(Oe,()=>{var X;return(X=e.children)!=null?X:vt}),w(pe),it(pe,X=>N(S,X),()=>n(S));var De=k(pe,2);{var J=X=>{tm(X,{children:(Se,Be)=>{var Ke=P0(),Qe=T(Ke),Te=T(Qe,!0);w(Qe);var ke=k(Qe,2);w(Ke),it(Ke,He=>N(C,He),()=>n(C)),B(()=>{qe(Ke,n(A)),fe(Te,d()),qe(ke,n(We))}),_(Se,Ke)},$$slots:{default:!0}})};V(De,X=>{d()&&!l()&&X(J)})}B(X=>se=re(pe,1,"tooltip-wrapper s-1k",null,se,X),[()=>({"full-width":m()})]),gt("pointerenter",pe,we),gt("pointerleave",pe,Z),_(t,Ce),H(),o()}nt(["pointermove","pointerdown","pointerup"]);var M_=t=>{t.stopPropagation()},L0=L("<div><!></div>"),M0={hash:"s-1i",code:".btn-container.s-1i{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-1i{min-width:0;width:100%}"};function Io(t,e){F(e,!0),q(t,M0);let[i,o]=Ve(),r=()=>x(u,"$isGraphOpened$",i),a=()=>x(s,"$isMobile",i),l=ve(),d=$o(),s=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,im),D=g(e,"initialTranslateXPx",3,0),U=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,im),G=g(e,"mouseLeave",3,im),le=v(()=>f()?r()?p("tooltip_disabled_when_graph_on"):E():C()),j=K(!1);Re(()=>{I()||N(j,!1)});var ie=L0();ie.__pointerdown=[M_],ie.__click=[M_];var Y=T(ie);{var ge=ne=>{Da(ne,{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(j)},set active(_e){N(j,_e,!0)},children:(_e,we)=>{var Z=Le(),Ne=de(Z);Jt(Ne,()=>{var ue;return(ue=e.children)!=null?ue:vt}),_(_e,Z)},$$slots:{default:!0}})},ce=ne=>{var _e=Le(),we=de(_e);Jt(we,()=>{var Z;return(Z=e.children)!=null?Z:vt}),_(ne,_e)};V(Y,ne=>{b()&&n(le)&&!a()?ne(ge):ne(ce,!1)})}w(ie),it(ie,ne=>y(ne),()=>y()),B(()=>{var ne;re(ie,1,`btn-container ${(ne=m())!=null?ne:""}`,"s-1i"),ze(ie,"aria-hidden",P()||null)}),gt("mouseenter",ie,function(...ne){var _e;(_e=z())==null||_e.apply(this,ne)}),gt("mouseleave",ie,function(...ne){var _e;(_e=G())==null||_e.apply(this,ne)}),In(ie,"clientWidth",$),_(t,ie),H(),o()}nt(["pointerdown","click"]);var V0=Ie('<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 Gd(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Xe(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=V0(),l=de(a),d=k(l);B(()=>{ze(l,"fill",Xs),ze(l,"fill-opacity",e.completed?1:.24),ze(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(o,a)},$$slots:{default:!0}})}var R0=L("<div><!></div>"),N0={hash:"s-16",code:".interactive-episode-icon.s-16{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-16{opacity:.4;pointer-events:none}"};function om(t,e){F(e,!0),q(t,N0);let o=ve().ui.t,r=K(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Io(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=R0();let u;var p=T(s);let m=v(()=>!!e.videoEpisode.completed);Gd(p,{get completed(){return n(m)}}),w(s),B(f=>{u=re(s,1,"interactive-episode-icon s-16",null,u,f),qe(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),In(s,"clientWidth",f=>N(r,f)),_(l,s)},$$slots:{default:!0}}),H()}var O0=L('<div><div class="video-episode-inner s-17"><div class="video-episode-loaded s-17"></div> <div></div></div></div>'),D0=L('<div class="video-episodes-wrap s-17"></div>'),B0={hash:"s-17",code:".video-episodes-wrap.s-17{height:100%;position:absolute;width:100%}.video-episode.s-17{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-17:first-child{padding-left:0}.video-episode.s-17:last-child{padding-right:0}.video-episode.s-17:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-17,.video-episode-inner.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-17{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-17:first-child .video-episode-inner:where(.s-17),.video-episode.s-17:last-child .video-episode-inner:where(.s-17){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-17{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-17{background-color:var(--slider-filled-bg)}"};function nm(t,e){q(t,B0);let i=g(e,"videoEpisodes",19,()=>[]);var o=D0();bi(o,21,i,r=>r.from,(r,a)=>{var l=O0();let d;var s=T(l),u=T(s),p=k(u,2);let m;w(s),w(l),B((f,b)=>{d=re(l,1,"video-episode s-17",null,d,f),qe(l,`left: ${n(a).from}%; width: ${n(a).width}%`),qe(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),m=re(p,1,"video-episode-filled s-17",null,m,b),qe(p,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),_(r,l)}),w(o),_(t,o)}function F0(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function H0(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function U0(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function z0(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function W0(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),a()(l)}var K0=L("<div></div>"),q0=L('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Q0=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),G0={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 Ba(t,e){F(e,!0),q(t,G0);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),a=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),s=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),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,zn),S=g(e,"onHandleMove",3,zn),C=g(e,"onPointerUp",3,zn),I=g(e,"onPointerEnter",3,zn),R=g(e,"onPointerMove",3,zn),E=g(e,"onPointerLeave",3,zn),P=g(e,"onMouseEnter",3,zn),O=g(e,"onMouseLeave",3,zn),D=g(e,"onWheelUp",3,zn),U=g(e,"onWheelDown",3,zn),z=g(e,"onWheelLeft",3,zn),G=g(e,"onWheelRight",3,zn),le=g(e,"onDisabledClick",3,zn),j=g(e,"loadedProgress",3,0),ie=g(e,"filledProgress",3,0),Y=g(e,"handleProgress",3,0),ge=g(e,"ariaLabel",3,""),ce=g(e,"ariaValueMin",3,void 0),ne=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),we=g(e,"ariaValueText",3,""),Z=g(e,"onContextMenu",3,zn),Ne=g(e,"handleAlwaysVisible",3,!1),ue=kt(),A=K(void 0),We=K(!1),Ce=v(()=>{var xe;return(xe=ne())!=null?xe:0}),pe=v(()=>{var xe;return V_(p())&&((xe=p()[p().length-1])==null?void 0:xe.time)<n(Ce)}),se=v(()=>V_(p())&&p().length&&n(pe)&&n(Ce)?Qe(j()*100,ie()*100):[]);function Oe(xe){if(xe.preventDefault(),i()&&N(A,i().getBoundingClientRect(),!0),b())return;let Pe=Be(xe.clientX,xe.clientY),Tt=Ke(xe.clientX);I()(Pe,Tt,n(A).width)}function De(xe){xe.preventDefault(),!b()&&E()()}function J(){P()()}function X(){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 Qe(xe,Pe){let Tt=ue.features.episodesClustering&&!f()?ue.episodeMinWidthPc:0,Me=[],rt=p()[0].time/n(Ce)*100,ft=0,$e=0;for(let ot=1;ot<p().length;ot++)ft=p()[ot].time/n(Ce)*100,ft-rt>Tt&&(Me.push({from:rt,width:Math.max(0,ft-rt),loadedWidth:Math.max(0,Math.min(ft,xe)-rt),filledWidth:Math.max(0,Math.min(ft,Pe)-rt),interactive:p()[ot-1].interactive,completed:p()[ot-1].completed}),rt=p()[ot].time/n(Ce)*100,$e++);let Ze={from:rt,width:Math.max(0,100-rt),loadedWidth:Math.max(0,Math.min(xe,100)-rt),filledWidth:Math.max(0,Math.min(Pe,100)-rt),interactive:p()[$e].interactive,completed:p()[$e].completed};100-rt<Tt?($e-=1,Me[$e].width+=100-rt,Me[$e].loadedWidth+=Math.max(0,Math.min(xe,100)-rt),Me[$e].filledWidth+=Math.max(0,Math.min(Pe,100)-rt)):Me[$e]=Ze;let Ue=p()[0].time;if(Ue!==0){let ot=Ue/n(Ce)*100;Me.unshift({from:0,width:ot,loadedWidth:Math.min(ot,xe),filledWidth:Math.min(ot,Pe)})}return Me}function Te(xe){return Math.max(0,Math.min(100,xe*100))}var ke=Q0(),He=de(ke);{var Lt=xe=>{var Pe=K0();let Tt;bi(Pe,21,()=>n(se),Me=>Me.from,(Me,rt)=>{var ft=Le(),$e=de(ft);{var Ze=Ue=>{om(Ue,{get videoEpisode(){return n(rt)},get disabled(){return b()}})};V($e,Ue=>{n(rt).interactive&&Ue(Ze)})}_(Me,ft)}),w(Pe),B(Me=>Tt=re(Pe,1,"interactive-icons s-h",null,Tt,Me),[()=>({mobile:s(),hidden:s()&&!n(We)})]),_(xe,Pe)};V(He,xe=>{f()&&xe(Lt)})}var Je=k(He,2);let Rt;Je.__pointerdown=[F0,i,A,b,We,Be,$],Je.__pointermove=[H0,b,Be,Ke,R,A,We,S],Je.__pointerup=[U0,b,We,Be,C],Je.__click=[z0,b,le,Be],Je.__contextmenu=[W0,Be,b,le,We,Z];var zt=T(Je);{var wt=xe=>{nm(xe,{get videoEpisodes(){return n(se)},get disabled(){return b()},get isMobile(){return s()}})},jt=xe=>{var Pe=q0(),Tt=T(Pe),Me=k(Tt,2);let rt;w(Pe),B((ft,$e,Ze)=>{qe(Tt,ft),rt=re(Me,1,"filled s-h",null,rt,$e),qe(Me,Ze)},[()=>`transform: translateX(${Te(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Te(ie())}%);`]),_(xe,Pe)};V(zt,xe=>{n(se).length?xe(wt):xe(jt,!1)})}var Nt=k(zt,2);let ye;var be=T(Nt);let ee;w(Nt),w(Je),it(Je,xe=>i(xe),()=>i()),B((xe,Pe,Tt,Me)=>{var rt,ft;Rt=re(Je,1,`slider ${(rt=o())!=null?rt:""}`,"s-h",Rt,xe),ze(Je,"aria-label",ge()),ze(Je,"aria-valuemin",ce()),ze(Je,"aria-valuemax",ne()),ze(Je,"aria-valuenow",_e()),ze(Je,"aria-valuetext",we()),ze(Je,"data-testid",(ft=r())!=null?ft:null),ye=re(Nt,1,"handleWrap s-h",null,ye,Pe),qe(Nt,Tt),ee=re(be,1,"handle s-h",null,ee,Me)},[()=>({disabled:b(),"slider-dragging":n(We),hidden:a(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Te(Y())}%);`,()=>({"active-live":d()})]),gt("pointerenter",Je,Oe),gt("pointerleave",Je,De),gt("mouseenter",Je,J),gt("mouseleave",Je,X),gt("wheel",Je,Se),_(t,ke),H()}nt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ji=(t,e)=>Pa[t]>=Pa[e],R_=(t,e)=>Pa[t]<Pa[e],As=(t,e)=>Pa[t]<=Pa[e],N_=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var j0=L("<div><!></div>"),X0=L("<div><!> <!></div>"),Z0={hash:"s-28",code:".volumeBar-container.s-28{align-items:center;display:flex}.vertical.s-28 .btn,.vertical.s-28 .tooltip-wrapper,.volumeBar-container.vertical.s-28{width:40px}.volumeBar.s-28{align-items:center;display:flex;margin:0 8px;position:relative;width:70px;--slider-height:var(--slider-volume-height);--slider-radius:var(--slider-volume-radius);--slider-handle-size:var(--slider-volume-handle-size);--slider-bg:var(--volume-slider-bg);--slider-filled-bg:var(--volume-slider-filled-bg);--slider-handle-bg:var(--volume-slider-handle-bg)}.volumeBar-slider-vertical{width:50px!important}.volumeBar-vertical.s-28{padding:0 8px 0 0;width:0}"};function rm(t,e){var Ke,Qe;F(e,!0),q(t,Z0);let[i,o]=Ve(),r=()=>x(R,"$isAudioAvailable$",i),a=()=>x(f,"$muted$",i),l=()=>x(m,"$volume$",i),d=()=>x(S,"$currentGridType$",i),s=()=>x(Oe,"$controlsVisible",i),u=ve(),p=kt(),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=(Qe=u.callbacks)==null?void 0:Qe.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)||a()||l()===0),G=v(()=>As(d(),"s")),le=v(()=>n(G)?"":n(z)?!r()||E?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),j=v(()=>n(z)?P("tooltip_volume"):P("tooltip_volume_muted")),ie=v(()=>n(z)?0:l()),Y=!1,ge=v(()=>e.isAds?!1:E?!I:r()?!1:!C);function ce(Te){y(),b(Te)}function ne(){Nu(u,l(),p.controls.volumeStepWheel)}function _e(){Ou(u,l(),p.controls.volumeStepWheel)}function we(Te){b(Te)}function Z(Te){b(Te),$()}function Ne(){Y=!0}function ue(){Y=!1,Ce()}function A(){clearTimeout(D),N(O,!0)}function We(){Ce()}function Ce(){D=window.setTimeout(()=>{Y||N(O,!1)},p.controls.volumeBarTimeout)}function pe(Te){Te.preventDefault(),Te.deltaY<0?ne():Te.deltaY>0&&_e()}let se=K(!1),Oe=u.ui.controlsVisible;Re(()=>{s()||N(se,!1)});var De=X0();let J;var X=T(De);Da(X,{get content(){return n(le)},translateY:-18,get active(){return n(se)},set active(Te){N(se,Te,!0)},children:(Te,ke)=>{let He=v(()=>n(G)?"btn-volume-vertical":"btn-volume-horizontal");Ft(Te,{className:"btn-full-opacity",get disabled(){return n(ge)},get testId(){return n(He)},get ariaLabel(){return n(j)},get click(){return e.click},get ariaKeyShortCut(){return ps.KeyM},role:"button",children:(Lt,Je)=>{na(Lt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Se=k(X,2);{var Be=Te=>{var ke=j0();let He;var Lt=T(ke);let Je=v(()=>n(G)?"volumeBar-slider-vertical":""),Rt=v(()=>n(G)&&!n(O)),zt=v(()=>n(G)?Ne:Fu),wt=v(()=>n(G)?ue:Fu),jt=v(()=>Math.round(n(ie)*100)),Nt=v(()=>`${Math.round(n(ie)*100)}%`),ye=v(()=>n(G)?"volume-slider-vertical":"volume-slider");Ba(Lt,{get className(){return n(Je)},get isHidden(){return n(Rt)},get isVertical(){return n(G)},withWheelHandler:!0,onWheelUp:ne,onWheelDown:_e,onPointerDown:ce,onHandleMove:we,onPointerUp:Z,get onPointerEnter(){return n(zt)},get onPointerLeave(){return n(wt)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(jt)},get ariaValueText(){return n(Nt)},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get testId(){return n(ye)}}),w(ke),B(be=>He=re(ke,1,"volumeBar s-28",null,He,be),[()=>({"volumeBar-vertical":n(G)})]),_(Te,ke)};V(Se,Te=>{n(U)&&Te(Be)})}w(De),B(Te=>J=re(De,1,"volumeBar-container s-28",null,J,Te),[()=>({vertical:n(G)})]),gt("mouseenter",De,function(...Te){var ke;(ke=n(G)?A:Fu)==null||ke.apply(this,Te)}),gt("mouseleave",De,function(...Te){var ke;(ke=n(G)?We:Fu)==null||ke.apply(this,Te)}),gt("wheel",De,pe),_(t,De),H(),o()}import{noop as tx}from"@vkontakte/videoplayer-shared/es2018";var J0=Ie('<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>'),ex=Ie('<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 sm(t,e){let i=g(e,"isFullscreen",8,!1),o=xn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=Le(),d=de(l);{var s=p=>{var m=J0();_(p,m)},u=p=>{var m=ex();_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}function Yd(t,e){F(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,tx),r=ve(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ft(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let p=ta(u);a.set(p),o()()},get ariaKeyShortCut(){return ps.KeyF},role:"button",children:(u,p)=>{sm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var ix=Ie('<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=En(e,["$$slots","$$events","$$legacy","children"]);var o=ix();Yi(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);Jt(r,()=>{var a;return(a=e.children)!=null?a:vt}),ui(),w(o),_(t,o)}var ox=Ie('<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=En(e,["$$slots","$$events","$$legacy","children"]);var o=ox();Yi(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);Jt(r,()=>{var a;return(a=e.children)!=null?a:vt}),ui(6),w(o),_(t,o)}var nx={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 dm(t,e){F(e,!0),q(t,nx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=v(()=>!o()&&!i()?91:i()?l:95),s=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"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(s)},get"data-logo"(){return r()}}),H()}function jd(t,e){F(e,!0);let[i,o]=Ve(),r=()=>x(b,"$isMobile",i),a=()=>x(f,"$currentGridType$",i),l=()=>x($,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),s=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),p=kt(),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()&&As(a(),"m")||As(a(),"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(()=>!s()),P=v(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Ft(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=Le(),z=de(U);{var G=j=>{dm(j,{get logo(){return p.logoType},get short(){return n(I)},get isCyrillic(){return l()}})},le=j=>{am(j,{})};V(z,j=>{n(S)?j(G):j(le,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as lx}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as D_}from"@vkontakte/videoplayer-core/es2018";var rx=Ie('<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-18"></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-18"></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-18"></path>',1),sx=Ie('<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-18"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"></path>',1),ax={hash:"s-18",code:".animated.s-18{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-18{animation-name:s-18-wave1}.wave2.animated.s-18{animation-name:s-18-wave2}.wave3.animated.s-18{animation-name:s-18-wave3}@keyframes s-18-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-18-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-18-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function Xd(t,e){F(e,!0),q(t,ax);let i=g(e,"isMobile",3,!1),o=v(()=>e.iconState===D_.CONNECTED),r=v(()=>e.iconState===D_.CONNECTING),a=v(()=>n(o)?"#2688EB":Xs),l=v(()=>e.size?mn(e.size):void 0);var d=Le(),s=de(d);{var u=m=>{Xe(m,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(f,b)=>{var y=rx();ui(2),_(f,y)},$$slots:{default:!0}})},p=m=>{Xe(m,{get style(){return n(l)},testId:"chromecast-icon",children:(f,b)=>{var y=sx(),$=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=re($,0,"wave1 s-18",null,S,D),I=re(C,0,"wave2 s-18",null,I,U),E=re(R,0,"wave3 s-18",null,E,z),O=re(P,0,"s-18",null,O,G)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:!n(o)})]),_(f,y)},$$slots:{default:!0}})};V(s,m=>{i()?m(u):m(p,!1)})}_(t,d),H()}import{noop as dx}from"@vkontakte/videoplayer-shared/es2018";function Zd(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,dx),l=ve().ui.t,d=v(()=>e.state===lx.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ft(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{Xd(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}import{noop as ux}from"@vkontakte/videoplayer-shared/es2018";var cx=Ie('<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 cm(t){Xe(t,{testId:"episodes-icon",children:(e,i)=>{var o=cx();ui(2),_(e,o)},$$slots:{default:!0}})}var Hu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var px=L('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),fx=L('<span class="text s-24"> </span>'),mx=L('<span class="text count s-24"> </span>'),vx=L("<!> <!>",1),gx={hash:"s-24",code:".text.s-24{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-24{overflow:visible}.text.mobile.s-24{padding:0 3px 0 4px}.chevron-episodes.s-24{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function Jd(t,e){var Y,ge,ce;F(e,!0),q(t,gx);let[i,o]=Ve(),r=()=>x(y,"$currentGridType$",i),a=()=>x($,"$openedByKeyboard$",i),l=()=>x(S,"$panelOpened$",i),d=()=>x(C,"$isMobile",i),s=g(e,"position",3,0),u=g(e,"duration",3,0),p=g(e,"timeCodes",19,()=>[]),m=ve(),f=(ge=(Y=m.callbacks)==null?void 0:Y.onEpisodeChanged)!=null?ge:ux,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=ne=>{var we,Z,Ne;if(!!((we=m.callbacks)!=null&&we.onEpisodeClicked)){let ue=ta(ne);$.set(ue),S.set(!0),(Ne=(Z=m.callbacks)==null?void 0:Z.onEpisodeClicked)==null||Ne.call(Z,ue)}},P=K(null),O=v(()=>s()/u());Re(()=>{var _e;let ne=Hu(n(O),u(),p());ne?((_e=n(P))==null?void 0:_e.time)!==ne.time&&(f(ne),N(P,ne,!0)):N(P,null)});let D=v(()=>{var ne;return((ne=n(P))==null?void 0:ne.text)||""}),U=v(()=>ji(r(),"xl")?"FULL":ji(r(),"m")&&R_(r(),"xl")?"COUNT":"SHORT"),z=v(()=>`${I("tooltip_episodes")}: ${n(D)}`),G=async(ne,_e,we)=>{await mo(),(ne==null?void 0:ne.getAttribute("aria-expanded"))==="false"&&_e&&!we&&It(()=>{$.set(!1),ne.focus()})};Re(()=>{G(n(R),a(),l())});var le=Le(),j=de(le);{var ie=ne=>{let _e=v(()=>d()?"px-0":""),we=v(()=>!b);Ft(ne,{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=Le(),A=de(ue);{var We=pe=>{var se=px(),Oe=de(se),De=T(Oe,!0);w(Oe);var J=k(Oe,2),X=T(J);Ar(X,{direction:"right"}),w(J),B(()=>fe(De,n(D))),_(pe,se)},Ce=pe=>{var se=vx(),Oe=de(se);cm(Oe,{});var De=k(Oe,2);{var J=Se=>{var Be=fx(),Ke=T(Be,!0);w(Be),B(()=>fe(Ke,n(D))),_(Se,Be)},X=(Se,Be)=>{{var Ke=Qe=>{var Te=mx(),ke=T(Te,!0);w(Te),B(()=>fe(ke,p().length)),_(Qe,Te)};V(Se,Qe=>{n(U)==="COUNT"&&Qe(Ke)},Be)}};V(De,Se=>{n(U)==="FULL"?Se(J):Se(X,!1)})}_(pe,se)};V(A,pe=>{d()?pe(We):pe(Ce,!1)})}_(Z,ue)},$$slots:{default:!0}})};V(j,ne=>{n(P)&&ne(ie)})}_(t,le),H(),o()}import{debounceFn as tb}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Tx,PlaybackState as Ul,Player as Cx,PredefinedQualityLimits as gs,VideoFormat as tc,clientChecker as W_}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as ur,getHighestQuality as Ix,InterfaceLanguage as Ex,isInvariantQuality as Px,isNonNullable as Ax,loadVKLangPack as kx,Logger as Lx,map as K_,merge as Mx,Observable as Gu,Subject as ic,Subscription as gm,TracerFactory as Vx,ValueSubject as Rx,VideoQuality as Nx,devNull as Ox,now as Dx,filter as Bx,once as Fx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ls}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as hx,devNull as ii,isNonNullable as _x,now as oi}from"@vkontakte/videoplayer-shared/es2018";import{addScript as bx,Subject as vn,clearVideoElement as $x}from"@vkontakte/videoplayer-shared/es2018";var yx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Uu=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 vn,loadStarted$:new vn,loadEnded$:new vn,loadError$:new vn,ready$:new vn,slotRequested$:new vn,started$:new vn,timeRemained$:new vn,paused$:new vn,resumed$:new vn,ended$:new vn,empty$:new vn,skipped$:new vn,clicked$:new vn,closed$:new vn,error$:new vn};this.loadAdman=e=>(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[oi()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[oi()]}),i(),this.events.loadEnded$.next()):(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[oi()]}),o())};bx(yx,e,this.loadTimeout).then(()=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[oi()]}),window.AdmanHTML?(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[oi()]}),i(),this.events.loadEnded$.next()):(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[oi()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[oi()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[oi()]}),i(),this.events.loadEnded$.next()):(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[oi()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[oi()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[oi()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[oi()]}),!d&&(window.AdmanHTML?(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[oi()]}),i(),this.events.loadEnded$.next()):(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[oi()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[oi()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[oi(),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;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[oi()]}),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;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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")=>{ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[oi()]}),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"),ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[oi(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration: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:$}=hx(),S=(R=y?$:window.location.href)!=null?R:window.location.href,C={...s,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])=>_x(O)));let I={slot:d,wrapper:a,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){ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[oi()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,a;if(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[oi()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),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(ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[oi()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,a,l,d,s,u,p,m,f;ii.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[oi()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(p=this.adman)==null||p.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(f=this.adman)==null||f.destroy(),this.videoElement&&$x(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 B_=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 um=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new zu,{startTime:p,endTime:m}=u.parse(s);l.startTime=p,l.endTime=m}else if(s.trim()!==""){let u=new pm,{texts:p}=u.parse(s);l.texts=[...l.texts,...p]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},zu=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},pm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((p,m)=>{let f=l.indexOf(m,d);return p===-1||p>f?f:p},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new zu;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},F_=um;import{isNonNullable as fm}from"@vkontakte/videoplayer-shared/es2018";var Fa,Pi,mm=0,vm=!1,H_="",U_=(t,e=0,i=0)=>t<e&&t<i,Wu=(t,e=0,i=0)=>t>=e&&t<=i,xx=(t,e=0,i=0)=>t>e&&t>i,z_=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:p})=>Wu(t,u,p));let a=t>=mm,l=t<mm;if(mm=t,l&&(vm=!1),fm(Fa)&&Wu(t,Fa.startTime,Fa.endTime)&&H_===e.value)return Fa;if(!fm(Pi)&&(r!=null&&r.length)&&!vm){Pi=r.find(({startTime:u,endTime:p})=>Wu(t,u,p)||a&&U_(t,u,p)),Fa=void 0,!fm(Pi)&&r[r.length-1].endTime<t&&(vm=!0);return}else{if(Wu(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return Fa=Pi,Pi=void 0,H_=e.value,Fa;(a&&xx(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&U_(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var Ku={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"},wx={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"},ec=t=>{var e,i;return(i=(e=Ku[t])!=null?e:Ku[wx[t]])!=null?i:void 0};import{Subscription as Sx}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var qu=class{constructor(e,i,o,r=new Sx){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 Qu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qu||{});var vs=t=>t!=null?t:0,ks=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(vs(i==null?void 0:i.top)-vs(o==null?void 0:o.top)),left:Math.round(vs(i==null?void 0:i.left)-vs(o==null?void 0:o.left)),bottom:Math.round(vs(i==null?void 0:i.bottom)-vs(o==null?void 0:o.top)),right:Math.round(vs(i==null?void 0:i.right)-vs(o==null?void 0:o.left))}},Fl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:vs(e==null?void 0:e.width),height:vs(e==null?void 0:e.height)}};var An="off";var Hl=t=>!!(Math.round(Math.abs(t)/90)%2);var q_=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,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:j,looped:ie=!1,statistics:Y,saveRate:ge,internalsExposure:ce,playerView:ne,playerId:_e})=>{var Nv,Ov,Dv;let we={...b,configName:[...(Nv=b.configName)!=null?Nv:[],"ui"],isAudioDisabled:l,live:{...(Ov=b.live)!=null?Ov:{},isLiveCatchUpMode:!!r}},Z=f,Ne=Vx.createRootTracer(Z.features.tracer),ue=Ne.createComponentTracer("Store"),A=y||new Cx(we,Ne,{playerId:_e});ce==null||ce.expose({corePlayer:A});let We=new Lx,Ce=new Uu(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}),pe=ka.getInstance(),se=u==null?void 0:u.pictureInPictureApi,Oe=u==null?void 0:u.annotationsApi,De=u==null?void 0:u.slotsApi,J=We.createComponentLog("Store"),X,Se,Be={},Ke=new gu,Qe=new gm,Te="",ke=ae(!1),He=Y&&Y.oneStat?ai(Y.oneStat.vsid$):Pr(void 0),Lt=ae(Zs()),Je=ae(!1),Rt=()=>f_(document,W_.device.isIOS),zt=(Dv=se==null?void 0:se.info.isActive$)!=null?Dv:new Rx(!1),wt=ae(0),jt=ae(!1),Nt=ae(!1),ye=ae([]),be=Mx(A.events.fatalError$,A.events.managedError$).subscribe(c=>ye.update(h=>[...h,c])),ee=Pr(!1,c=>{let h=A.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),xe=async c=>{var oe;let h=Object.values(Ex).includes(c);if(Z.downloadVKLanguages&&(h&&Z.updateBuiltinLanguages||!Af(c))){let Ee;try{Ee=await kx(c,Sh,Th)}catch(tt){(oe=Y==null?void 0:Y.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),pe==null||pe.report(tt,{errorType:"VKLangPack",fatal:!1})}Ee&&(Pf({language:c,pack:Ee,fallback:Z.defaultLanguage}),Pe.set(c),Tt.update(tt=>tt+1))}Af(c)&&Pe.set(c)},Pe=ae(t),Tt=ae(0),Me=ae(e);xe(t);let rt=(c,h)=>{let M=he(Pe);return kf(M,c,h,Z.defaultLanguage)},ft=ae("thumb");ft.subscribe(c=>{c==="ads"&&A.info.playbackState$.getValue()&&Ue()});let $e=(()=>{let c=mi([ee,ft],([h,M])=>h?"crashed":M);return{...c,is:h=>he(c)===h}})(),Ze=ae(),Ue=()=>{Ze.set({muted:A.info.muted$.getValue()})},ot=(()=>{let c=ae(new Set($));return{...c,add:h=>{c.update(M=>new Set([...M].concat(h)))},remove:h=>{c.update(M=>{let oe=[...M];return new Set(Array.isArray(h)?oe.filter(Ee=>!h.includes(Ee)):oe.filter(Ee=>Ee!==h))})},includes:h=>{let M=he(c);return Array.isArray(h)?h.every(oe=>M.has(oe)):M.has(h)}}})(),Xt=ae({width:0,height:0}),ni=null,pi=A.info.isBuffering$,vi=Pr(pi.getValue(),c=>{let h=pi.subscribe(M=>{M&&ni===null?ni=window.setTimeout(()=>{c(pi.getValue()),ni=null},Z.loaderDelay):c(M)});return()=>{h.unsubscribe(),ni&&clearTimeout(ni)}});ue.log("create store"),J({message:"create store"});let Zi=c=>{let h=c.container,M=()=>{ei=new MutationObserver(Ee=>{let{removedNodes:tt}=Ee[0];tt.length&&h.append(A.experimental.element$.getValue())}),ei.observe(h,{childList:!0})},oe=A.experimental.element$.getValue();if(oe)h.append(oe),M();else{let Ee=A.experimental.element$.pipe(Bx(tt=>!!tt),Fx()).subscribe(tt=>{h.append(tt),M()});Qe.add(Ee)}},vo=c=>{J({message:`init video, config: ${JSON.stringify(c)}`}),S?Zi(c):(Ox.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[Dx()]}),A.initVideo(c)),ue.log("init video",{isInteractive:S}),c.subtitles&&A.setExternalTextTracks(c.subtitles),X=c,Te=c.subtitlesForcedLanguage||""},li=new ic,dt=c=>li.next(c),Ci=new ic,Qt=new ic,xt=new ic,ei=null,Gt={actionRewind$:Ci,actionSeek$:Qt,inPiP$:zt,inFullscreen$:new Gu(c=>Lt.subscribe(h=>c.next(h))),actionSetSubtitle$:xt,nextMovie$:li},ht=new ic,Ge={actionSeek$:Qt,actionSubtitlesSwitched$:ht,playerSize$:new Gu(c=>Xt.subscribe(h=>c.next(h))),inPiP$:zt,inFullscreen$:new Gu(c=>Lt.subscribe(h=>c.next(h))),isLoaderVisible$:new Gu(c=>vi.subscribe(h=>c.next(h)))};if(Y){let{oneStat:c,thinOneStat:h,mediascopePixel:M,statSubscription:oe}=Y;c&&(S||oe.add(c.attachTo(A)),oe.add(c.attachToUi(Gt)),oe.add(c.attachToAds(Ce.events)),c.authorize(a).catch(Ee=>{J({message:`onestat auth error ${String(Ee)}`})}),M&&M.attachTo(A)),h&&(oe.add(h.attachTo(A,Ce.events)),oe.add(h.attachToUi(Ge)),oe.add(h.attachToAds(Ce.events)),h.updateContext({isMobile:he(ke)}),h.authorize(a))}if(pe){let c=new gm,h=(M,oe)=>c.add(M.subscribe(oe));if(h(A.events.managedError$,M=>{pe.logIError(M)}),h(A.events.fatalError$,M=>{pe.logIError(M,!0)}),Y){let{oneStat:M}=Y;M&&h(M.experimental.error$,oe=>{pe.logIError(oe)})}pe.sentrySubscription.add(c)}let _i=()=>{if(W_.device.isIOS&&Se)try{m_(Se)}catch(c){J({message:`exitIosSafariFullscreen failed: ${c}`})}};Qe.add(A.experimental.element$.subscribe(c=>{c&&(Se=c,c.classList.add("player-media"),Ma(se)&&se.updateVideoElement(),S&&c.setAttribute("pip","false"),ne==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(A.events.ended$.subscribe(()=>{var c;_i(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(A.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(A.events.started$.subscribe(async()=>{var h,M;Ma(se)&&await(se==null?void 0:se.revealPictureInPicture());let c=A.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(M=Be.onStarted)==null||M.call(Be,c)})).add(A.events.willSeek$.subscribe(({from:c,to:h})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,h)})).add(A.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(A.info.position$.subscribe(c=>{var M;let h=A.info.duration$.getValue();isFinite(h)&&h>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,h,c),Ce.setPosition(c,h))})).add(A.events.fatalError$.subscribe(c=>{var h;(h=s==null?void 0:s.onCrashed)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(A.events.fetcherRecoverableError$.subscribe(c=>{var h;(h=s==null?void 0:s.onRecoverableError)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(A.events.loadedMetadata$.subscribe(()=>{jt.set(!0)})).add(A.info.is3DVideo$.subscribe(c=>{Nt.set(c)})).add(A.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&ot.add(Id),ot.add("PLAY_BUTTON")):ot.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(A.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(A.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(Ce.events.loadStarted$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:h.call(c)})).add(Ce.events.loadEnded$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:h.call(c)})).add(Ce.events.loadError$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:h.call(c)})).add(Ce.events.init$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:h.call(c)})).add(Ce.events.ready$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:h.call(c)})).add(Ce.events.started$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.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=s==null?void 0:s.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=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:M.call(h,c)})).add(Ce.events.empty$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:h.call(c)})).add(Ce.events.clicked$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.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=s==null?void 0:s.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=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:M.call(h,c)})).add(Ce.events.paused$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:h.call(c)})).add(Ce.events.resumed$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:h.call(c)}));let Ji=new gm,Xo=()=>{var tt,Et,Dt;let{debugLog:c}=Z,h,M="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Wt}=c;h=c.tag,M=(tt=Wt==null?void 0:Wt[0])!=null?tt:M,oe=(Dt=(Et=Wt==null?void 0:Wt[1])!=null?Et:Wt==null?void 0:Wt[0])!=null?Dt:oe}let Ee=h?`: ${h}`:"";Ji.add(A.events.log$.subscribe(Wt=>{console.debug(`%c sdk${Ee} `,`background:${M};`,`sdk component: ${Wt.component}`,Wt.message)})).add(We.log$.subscribe(Wt=>{console.debug(`%c ui${Ee} `,`background:${oe};`,`ui component: ${Wt.component}.`,Wt.message)}))},hn=()=>{Ji.unsubscribe()},Ct=(c,h)=>{ue.log("start camera manual rotation",{mx:c,my:h}),A.startCameraManualRotation(c,h)},Ot=(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)},Pt=()=>{A.holdCamera()},ri=()=>{A.releaseCamera()},st=Pr(A.info.position$.getValue(),c=>{let h,M,oe=()=>{let Ee=A.info.playbackState$.getValue(),tt=A.info.isLive$.getValue(),Et=A.info.duration$.getValue(),Dt=A.info.position$.getValue();if(Ee&&[Ul.PLAYING,Ul.PAUSED].includes(Ee)){let Wt=tt?Dt-Et:A.getExactTime();Wt!==M&&c(Wt),M=Wt}h=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(h)}),St=ai(A.info.playbackState$),Kt=ai(A.info.currentBuffer$),at=ai(A.info.isEnded$),Ai=ai(A.info.isLive$),ki=Z.features.playbackRate?ai(A.info.canChangePlaybackSpeed$):Pr(!1),Zo=ai(A.info.liveBufferTime$),Eo=ai(A.info.volume$),go=ai(A.info.muted$),Di=hu(A.info.predefinedQualityLimitType$.pipe(K_(c=>c===gs.TRAFFIC_SAVING)),A.info.predefinedQualityLimitType$.getValue()===gs.TRAFFIC_SAVING),pr=hu(A.info.predefinedQualityLimitType$.pipe(K_(c=>c===gs.HIGH_QUALITY)),A.info.predefinedQualityLimitType$.getValue()===gs.HIGH_QUALITY),eo=ai(A.info.autoQualityLimitingAvailable$),ho=ai(A.info.availableQualities$),Bi=ai(A.info.availableQualitiesFps$),Jo=ai(A.info.chromecastState$),en=ai(A.info.chromecastDeviceName$),qn=ai(A.info.currentFormat$),fr=ai(A.info.throughputEstimation$),Lr=ai(A.info.videoBitrate$),_s=ai(A.info.intrinsicVideoSize$),Zr=ai(A.info.duration$),Jr=ai(A.info.isAudioAvailable$),Qn=()=>{ni&&clearTimeout(ni),ni=null},tn=mi([Zr,Ai],([c,h])=>h?-c:c),Po=mi([St],([c])=>c===Ul.PLAYING),on=ai(A.info.atLiveEdge$),Gn=ai(A.info.atLiveDurationEdge$),kn=ai(A.info.position$),Mr=mi([kn,Zr],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),Vr=mi([Jo],([c])=>c===Tx.CONNECTED),es=ai(A.info.availableVideoStreams$),mr=Z.features.audioLanguages?ai(A.info.availableAudioStreams$):Pr([]),to=ai(A.info.currentVideoStream$),vr=ai(A.info.currentAudioStream$),Yn=c=>{c.language&&Tf(c.language),A.setVideoStream(c)},_n=(c,h)=>{A.setAudioStream(c),Ro(h)&&(c.language&&Tf(c.language),Z.features.userVideoPrefs&&i&&Ef(Z.userSalt,String(i),{audioTrackId:c.id}))},io=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(oe=>"isDefault"in oe&&oe.isDefault)),Z.features.userVideoPrefs&&i){let oe=xu(Z.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Ee=c.find(tt=>tt.id===oe.audioTrackId);h=Ee!=null?Ee:h}}let M=jh();return M&&(h!=null||(h=c.find(({language:oe})=>M===oe))),h!=null||(h=c.at(0)),h},Rr=c=>{ue.log("change audio stream",{id:c});let h=A.info.availableAudioStreams$.getValue().find(M=>M.id===c);h&&_n(h,!0)},Ln=!1;Qe.add(A.info.availableAudioStreams$.subscribe(c=>{if(!Ln&&c.length){let h=io(c);h&&(A.setAudioStream(h),Ln=!0)}})),mr.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:M="",id:oe="",language:Ee=""})=>({label:M,language:Ee,id:oe})))}),vr.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let mt=!1;Qe.add(A.info.availableVideoStreams$.subscribe(c=>{if(!mt&&c.length){let h=io(c);h&&(A.setVideoStream(h),mt=!0)}}));let di=ae(void 0),jn=ai(A.info.isAutoQualityEnabled$,c=>c&&di.set(void 0)),gr=ai(A.info.currentQuality$,()=>di.set(void 0)),Nr=mi([di,gr],([c,h])=>c!=null?c:h),bn=mi(qn,c=>c!==tc.MPEG),hr=mi([ho,Bi,jn,Nr,bn],([c,h,M,oe,Ee])=>{let tt=[];Ee&&tt.push({value:"auto",displayValue:rt("auto_quality_option"),selected:M});let Et=c.filter(Dt=>!Px(Dt));for(let Dt of Et){let Wt=h[Dt];tt.push({value:Dt,displayValue:`${Dt}${Wt?B_(Wt):""}`,selected:M?!1:Dt===oe})}return tt}),Ao=ai(A.info.currentPlaybackRate$),nn=mi([Ao,on,Gn],([c,h,M])=>{let oe=M||S?1:Z.controls.playbackRateMin,Ee=h?1:Z.controls.playbackRateMax,tt=Z.controls.playbackRateStep,Et=[];for(let Dt=oe;Dt<=Ee;Dt+=tt)Et.push({value:Dt,displayValue:Dt===1?rt("playback_rate_1"):rt("playback_rate",{multiplier:Dt.toString(10)}),selected:c===Dt});return Et}),ko=()=>({displayValue:rt("subtitles_off"),value:An,language:""}),Xn=ae(ko()),Fi=mi([Xn,Tt],([c],h)=>{c.value===An?h(ko()):h(c)}),Lo=Z.features.subtitles?ai(A.info.availableTextTracks$):Pr([]),Zn=Bh(),Or=mi([Lo,Fi],([c,h],M)=>{var tt;let oe=[],Ee=c.find(({id:Et})=>Et===h.value);if(Ee!=null&&Ee.url){let[,Et]=(tt=Zn.find(Ee.url))!=null?tt:[];if(Et){M(Et);return}Ke.download(Ee.url).then(Dt=>{if(!Dt||Ke.isDestroyed())return;let Wt=new F_,Hs=Ee.language;if(Hs){let qb=!!Ee.isAuto,Qb=Wt.parse(Dt,Hs);oe.push({lang:Hs,subtitles:Qb,isAuto:qb,id:Ee.id})}Zn.add(Ee.url,oe),he(Fi).value===h.value&&M(oe)}).catch(Dt=>{var Wt;(Wt=Y==null?void 0:Y.oneStat)==null||Wt.logError({errorType:"Subtitles download",fatal:!1}),pe==null||pe.report(Dt,{errorType:"Subtitles download",fatal:!1})})}M(oe)}),oo=mi([Ao,Po,Fi],([c,h,M],oe)=>{let Et;if(A.info.isLive$.getValue()&&h&&M.value!==An){let Wt=()=>{let Hs=1e3/(3*c);Et=setTimeout(Wt,Hs),oe(Date.now())};return Wt(),()=>clearTimeout(Et)}}),Mn=mi([Lo,Fi],([c,h])=>{if(!c.length)return[];let M=[];for(let{language:oe,isAuto:Ee,id:tt}of c){let Et=oe&&ec(oe);oe&&Et&&M.push({displayValue:Ee?rt("subtitles_auto",{language:Et}):Et,value:tt,selected:(h==null?void 0:h.value)===tt,isAuto:Ee,language:oe})}return M.length?(M.unshift({...ko(),selected:(h==null?void 0:h.value)===An}),M):[]}),rn={available:[],prev:[]},Dr=()=>{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},Jn=mi([st,Fi,Or,oo],([c,h,M,oe])=>{var tt;let Ee=A.info.isLive$.getValue();if(Ee&&rn.prev!==M){let Et=M.find(({id:Wt})=>Wt===h.value),Dt=rn.prev.find(({id:Wt})=>Wt===h.value);if(Et){let Wt={...Et,subtitles:[...(tt=Dt==null?void 0:Dt.subtitles)!=null?tt:[],...Et.subtitles]};rn.available=[Wt],rn.prev=M}}if(h&&h.value!==An){let Et=Ee?Dr():c,Dt=Ee?rn.available:M;return z_(Et,h,Dt,Ee)}}),Vn=mi([Jn],([c])=>c!=null&&c.texts?c.texts:[]);Qe.add(Fi.subscribe(c=>{var h,M;if(c.value===An)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let oe=Object.entries(Ku).find(([Ee,tt])=>tt===c.displayValue);(M=s==null?void 0:s.onSubtitleOn)==null||M.call(s,oe?oe[0]:"",c.value)}}));let Br=ae(!0),yt=mi([Kt,tn,kn,Zo],([c,h,M,oe])=>{var Dt;let Ee=(Dt=c==null?void 0:c.end)!=null?Dt:0;if(!oe)return Ee/h;let Et=-M+oe-h;return(Ee-Et)/h}),_t=ai(A.info.availableSources$),no=mi([_t],([c])=>Object.keys((c==null?void 0:c[tc.MPEG])||{}).length>0),Li=()=>{var M,oe,Ee;let c=Object.keys(((oe=(M=A.info.availableSources$)==null?void 0:M.getValue())==null?void 0:oe[tc.MPEG])||{}),h=Ix(c)||Nx.Q_144P;return(Ee=X.sources[tc.MPEG])==null?void 0:Ee[h]},ro=()=>{var h;let c=Li();if(c)ue.log("download video",{url:c}),Nh(c,((h=X==null?void 0:X.meta)==null?void 0:h.title)||"video");else{let M="There is no URL for download video";ue.log("download video",{message:M}),J({message:M})}},Mo=()=>{J({message:"toggle muted"});let c=A.info.muted$.getValue();A.info.volume$.getValue()===0&&!c?_r(er(),!1):tr(!c,!1)},Vo=()=>{var c;if(Ut.ui.settingsMenu.visible$.set(!1),!he(Ut.ui.settingsSubMenu.visible$)){let h=he(Ut.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let oe=Fl(h),Ee={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Ee,name:"settings"})}}ue.log("close settings menu")},so=async(c,h=()=>Promise.resolve())=>{var Ee;Ut.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Ut.ui.settingsMenu.visible$.set(!0),await h();let M=he(Ut.ui.settingsMenu.ref$),oe=pa();if((Ee=s==null?void 0:s.uiInfo)!=null&&Ee.onSettingsMenu&&M&&oe){let Et=Fl(M),Dt=ks(M,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Et,position:Dt,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})},Si=(c,h=!1)=>{var tt;Ut.ui.settingsSubMenu.visible$.set(!1);let M=he(Ut.ui.settingsMenu.ref$),oe=pa(),Ee=he(Ut.ui.settingsMenu.visible$);if((tt=s==null?void 0:s.uiInfo)!=null&&tt.onSettingsMenu&&M&&oe)if(Ee&&!h){let Dt=Fl(M),Wt=ks(M,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:Wt,name:"settings"})}else{let Dt=Fl(c),Wt={top:0,left:0,bottom:0,right:0},Hs=he(Ut.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Dt,position:Wt,name:Hs})}ue.log("close settings sub menu")},Fr=(c,h)=>{var oe;Ut.ui.settingsSubMenu.visible$.set(!0),Ut.ui.settingsSubMenu.ref$.set(h),Ut.ui.settingsSubMenu.name$.set(c);let M=pa();if((oe=s==null?void 0:s.uiInfo)!=null&&oe.onSettingsMenu&&h&&M){let tt=Fl(h),Et=ks(h,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:tt,position:Et})}ue.log("open settings sub menu",{name:c})},er=()=>{var h;let c=Math.max(Z.volumeMinRestore,(h=_u())!=null?h:0);return c===0?Z.volumeDefault:c},Ro=c=>{let h=Z.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},_r=(c,h)=>{let M=c===0?er():c,oe=A.info.muted$.getValue();J({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Ee=!l||$e.is("ads");oe&&c>0&&Ee&&(oe=!1,Ro(h)&&wf(!1)),A.setVolume(c,oe),Ce.setVolume(c),Ro(h)&&_f(M)},tr=(c,h)=>{let M=A.info.volume$.getValue();J({message:`set muted, currentVolume: ${M}, mute: ${c}`});let oe=$e.is("ads");if(A.setMuted(c,oe),Ce.setVolume(c?0:M),Ro(h)&&(!oe||!c)&&wf(c),!c&&M===0){let Ee=er();A.setVolume(Ee),Ro(h)&&_f(Ee),Ce.setVolume(Ee)}},br=ae(!1),$n=c=>{var h,M;ue.log("set looped",{isLooped:c}),br.set(c),A.setLooped(c),(M=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||M.call(h,c)};$n(ie);let sn=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},Hr=(c,h=!1)=>{var M;J({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),Ut.ui.autoplayNextEnabled$.set(c),Jh(c),h&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},an=c=>{J({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),Ut.ui.timerNextVideoRunning$.set(c)},ts=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(M=s==null?void 0:s.onPrevVideoClick)==null?void 0:M.call(s)}catch(oe){J({message:"onPrevVideoClick callback failed to execute"})}j(!0),h&&G()},Ye=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(M=s==null?void 0:s.onNextVideoClick)==null?void 0:M.call(s)}catch(oe){J({message:"onNextVideoClick callback failed to execute"})}j(!1),h&&le()},At=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},gi=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},yo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},xo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},No=()=>{A.prepare()},ao=()=>{ur(Ut);let c=he(Ut.ui.controls.disabledControls$),h=he(Ut.playerPhase),M={playerPhase:h,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(J({message:"toggle play"}),h==="ads"){M.action="play",ue.log("toggle adman play",M),Ce.togglePlay();return}let oe=()=>{var tt;J({message:"toggle play, call player.play"}),M.action="play",A.play(),(tt=s==null?void 0:s.onPlay)==null||tt.call(s)},Ee=()=>{var tt;J({message:"toggle play, call player.pause"}),M.action="pause",A.pause(),(tt=s==null?void 0:s.onPause)==null||tt.call(s)};if(A.info.isEnded$.getValue()){if(J({message:"toggle play, video ended, seek to 0"}),Ci.next(),Qt.next(Ls.REWIND),S){R==null||R();return}A.seekTime(0),oe()}else A.info.playbackState$.getValue()!==Ul.PLAYING?oe():Ee();ue.log("toggle play",M)},Mi=(c,{changeReason:h="default",appliesTo:M="to-video"}={},oe)=>{J({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),A.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ee}=Z.features;bu(),c!=="auto"?(Ee?($u({type:"exact_quality",quality:c,videoId:i},M),A.setPredefinedQualityLimits(gs.UNKNOWN)):bf(i,c),di.set(c),A.setQuality(c)):Ee&&h==="default"&&(Bo("auto_quality",M,oe),he(Di)&&Oo(!1,void 0,oe),he(pr)&&Do(!1,void 0,oe))},Oo=(c,h="as-default",M)=>{J({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?gs.TRAFFIC_SAVING:gs.UNKNOWN;Z.features.qualityDetailsSubMenuEnabled?(_o(oe,h,M),Ed(!1)):(A.setPredefinedQualityLimits(oe),Ro(M)&&Ed(c))},Do=(c,h="as-default",M)=>{J({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),_o(c?gs.HIGH_QUALITY:gs.UNKNOWN,h,M)},_o=(c,h,M)=>{c!==gs.UNKNOWN&&(he(eo)&&!he(jn)&&Mi("auto",{appliesTo:h,changeReason:"limit-changed"},M),Bo(c,h,M)),A.setPredefinedQualityLimits(c)},Bo=(c,h,M)=>{Ro(M)&&($u({type:c,videoId:i},h),h==="as-default"&&$u({type:c,videoId:i},"to-video"))},ln=(c,h=!0)=>{ue.log("set playback rate",{playbackRate:c}),A.setPlaybackRate(c),Z.features.saveRate&&ge&&!A.info.isLive$.getValue()&&h&&Xh(c)},$r=()=>{let c=he(nn),h=c.findIndex(({selected:oe})=>oe);if(h===c.length-1)return;let M=c[h+1];ln(M.value)},yr=()=>{let c=he(nn),h=c.findIndex(({selected:oe})=>oe);if(h===0)return;let M=c[h-1];ln(M.value)},xr=(c={...ko(),selected:!1},h)=>{ue.log("set subtitles",{...c}),c.value!==An&&xt.next(c.isAuto?c.value+"_auto":c.value),ht.next({enabled:c.value!==An,lang:c.language,auto:!!c.isAuto}),Xn.set(c),Ro(h)&&(If(c.value===An?void 0:c.language),Z.features.userVideoPrefs&&i&&Ef(Z.userSalt,String(i),{subtitleTrackId:c.value===An?void 0:c.value}))},is=c=>{ue.log("toggle subtitles");let h=he(Fi);(h==null?void 0:h.value)===An?je(c):Ht(c)},os=(c,h)=>{ue.log("change subtitle",{enabled:c}),c?je(!0,h):Ht(!0)},je=(c,h)=>{ue.log("subtitle on");let M=he(Mn),oe=he(Pe),Ee=Te!=null?Te:oe,tt;h&&(tt=M.find(Et=>Et.value===h)),tt!=null||(tt=M.filter(Et=>Et.value!==An).find(Et=>Et.language===Ee)),xr(tt!=null?tt:M[1],c)},Ht=c=>{ue.log("subtitle off"),xr(void 0,c)};Qe.add(A.info.availableTextTracks$.subscribe(c=>{var M;function h(){let oe=[];for(let{language:Ee,isAuto:tt,id:Et}of c){let Dt=Ee&&ec(Ee);Ee&&Dt&&oe.push({id:Et,language:Ee,title:tt?rt("subtitles_auto",{language:Dt}):Dt})}return oe}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,h())}));let $i=ae(!0),Fo=c=>{$i.set(c)},lo=(c,h,M=!0)=>{var oe;if(J({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:h,forcePrecise:M}),Qt.next(h),A.info.isLive$.getValue()){let Ee=A.info.duration$.getValue(),tt=Math.min(0,Ee+c);A.seekTime(tt,M)}else{if(I!=null&&I.getValue())return;A.info.isEnded$.getValue()&&(J({message:"seek after ended, call callbacks.onPlay"}),(oe=s==null?void 0:s.onPlay)==null||oe.call(s)),A.seekTime(Mv(c),M)}},wr=c=>{J({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),lo(c,Ls.EPISODE,!0)},dn=(c,h,M=!1)=>{J({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:h});let oe=he(tn)*c;lo(oe,h,M)},Sr=c=>{J({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),Qt.next(Ls.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-c:c)},Ns=c=>{var oe,Ee;let h=(oe=c.max)!=null?oe:"none",M=(Ee=c.min)!=null?Ee:"none";J({message:`set auto quality limitation. Max: ${h}. Min: ${M}`}),ue.log("set auto quality limits",{max:h,min:M}),A.setAutoQualityLimits(c)},yn=c=>{J({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),lo(c,Ls.EPISODE,!0)},Os=c=>{J({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),A.setPlaybackRate(c)},ir=ae(!1),ns=ae(!1),ct=mi([tn],([c])=>!!m&&c>=Z.suitableDurationForUsingRichSeek&&Z.features.useRichSeek&&!S),ci=((m==null?void 0:m.frameWidth)||0)>=((m==null?void 0:m.frameHeight)||0),Ho=mi([wt],([c])=>{let h=Hl(c);return ci?!h:h});Qe.add($e.subscribe(c=>{c!=="video"&&ir.set(!1)}));let me=ae(void 0),ut=ae(!1),Yt=c=>{J({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),ut.set(!0),yi(c)},yi=c=>{me.set(c)},Hi,ti,Zt=()=>{me.set(void 0),ut.set(!1)},co=()=>{clearTimeout(ti),clearTimeout(Hi),Hi=window.setTimeout(()=>{Zt()},500),Se==null||Se.removeEventListener("seeked",co)},Rn=(c,h=!1)=>{J({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),dn(c,Ls.SLIDER,h),he(Ut.ui.isMobile)&&he(Ut.state.currentFormat$)===tc.HLS?(Se==null||Se.addEventListener("seeked",co),ti=window.setTimeout(()=>{co()},300)):Zt()},Nn=mi([st,tn,me],([c,h,M],oe)=>{oe(Ax(M)?M*h:c)}),Ii=ae(!1),jl=()=>{Ii.set(!0)},Za=()=>{Ii.set(!1)},Ds=mi([Xt],([{width:c}],h)=>{let M=N_(c);h(M)}),sa=D.filter(c=>Oh(c)),aa=mi([Ds,ke],([c,h])=>h?sa.filter(M=>!M.hideOnMobile):sa.filter(M=>{var oe;return!((oe=M.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),cn=ae(D.filter(c=>Dh(c))),Ja=mi([cn,Ds],([c,h])=>c.filter(M=>{var oe;return!((oe=M.hideOnDesktopGridTypes)!=null&&oe.includes(h))})),la=mi([Ja,aa],([c,h])=>[...Z.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...Z.features.additionalButtons?h.map((M,oe)=>{var Ee;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Ee=M.ariaLabel)!=null?Ee:M.tooltip,tooltipText:M.tooltip}}):[]]),Ur=ae(U),rs=mi([Ur],([c])=>Z.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?{...h,onClick:h.onChangeEnabled}:h):[]),Bs=(c,h)=>{let M=he(cn).map(oe=>oe.id!==c?oe:{...oe,...h});cn.set(M)},da=c=>{let h=he(cn);if(h.some(M=>M.id===c.id)){J({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),cn.set(h)},el=c=>{let h=he(cn);if(!h.some(M=>M.id===c)){J({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),cn.set(h)},tl=c=>{Qt.next(Ls.LIVE),J({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),A.setLiveLowLatency(c)},Xl=(c,h)=>{let M=he(Ur).map(oe=>oe.id!==c?oe:{...oe,...h});Ur.set(M)},il=c=>{let h=he(Ur);if(h.some(M=>M.id===c.id)){J({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Ur.set(h)},ol=c=>{let h=he(Ur);if(!h.some(M=>M.id===c)){J({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),Ur.set(h)},Tr=ae(z),Zl=mi([Tr],([c])=>Z.features.additionalContextMenuItems?c:[]),ca=(c,h)=>{let M=he(Tr).map(oe=>oe.id!==c?oe:{...oe,...h});Tr.set(M)},nl=c=>{let h=he(Tr);if(h.some(M=>M.id===c.id)){J({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Tr.set(h)},lt=c=>{let h=he(Tr);if(!h.some(M=>M.id===c)){J({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),Tr.set(h)},pt=mi([ke,ee],([c,h],M)=>{M(c&&h)}),Ui=()=>{Qt.next(Ls.LIVE),J({message:"switch to active live"}),ue.log("switch to active live"),A.seekTime(0),A.info.playbackState$.getValue()!==Ul.PLAYING&&Ut.actions.internal.togglePlay()},Uo=()=>{ue.log("skip adman"),Ce.skip()},zi=(c=!0)=>{var oe;ur(Ut),J({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),ft.set("video"),c&&A.play(),l&&tr(!0,!0);let h=(oe=he(Ze))==null?void 0:oe.muted,M=!A.info.muted$.getValue();h!==void 0&&!M&&tr(h,!0),Ze.set(void 0)},hi=()=>{ur(Ut),J({message:"switch from video to ads"}),ue.log("switch from video to ads"),Ut.actions.internal.pause(),_i(),ft.set("ads")},Vi=c=>{ur(Ut);let h=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:h}),ft.set(h)},ua=c=>{ur(Ut);let h=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:h}),ft.set(h)},rl=c=>{ur(Ut);let h=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:h}),ft.set(h)},mp=()=>(ur(Ut),ue.log("get debug text data"),Vh(A,X,Ut,Ne.getTraceId())),Lc=()=>(ur(Ut),JSON.stringify(Ne.getFinishedSpans())),Mc=()=>(ur(Ut),Rh(A,X,Ut)),pa=()=>Se,vp=()=>{J({message:"toggle chromecast"}),ue.log("toggle chromecast"),A.toggleChromecast()},Fs=c=>{var M;if(ur(Ut),A.info.isEnded$.getValue())return;let h=!c;if(he(Ut.playerPhase)==="ads"){J({message:`pause ads, internalCall: ${h}`}),ue.log("pause ads",{internalCall:h}),Ce.pause();return}J({message:`pause video, internalCall: ${h}`}),ue.log("pause video",{internalCall:h}),h&&((M=s==null?void 0:s.onPause)==null||M.call(s)),A.pause()},sl=c=>{var M;ur(Ut);let h=!c;if(he(Ut.playerPhase)==="ads"){J({message:`play ads, internalCall: ${h}`}),ue.log("play ads",{internalCall:h}),Ce.play();return}J({message:`play video, internalCall: ${h}`}),ue.log("play video",{internalCall:h}),h&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),A.play()},Vc=c=>{ur(Ut);let h=!c;if(he(Ut.playerPhase)==="ads"){J({message:"player cannot be stopped during ads via external method"});return}J({message:`player will be stopped, internalCall: ${h}`}),E==null||E()},Rc=(c,h)=>{ur(Ut),J({message:`first start, show ads: ${c}, internalCall: ${!h}`}),ue.log("first start",{showAds:c,external:h}),c?ft.set("ads"):(ft.set("video"),h?A.play():Ut.actions.internal.togglePlay())},al=()=>(J({message:"getting time codes"}),p),Nc=()=>{let c=al();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue();return c.find(M=>M.time>h)},gp=c=>{let h=c;h||(h=Nc());let M=A.info.position$.getValue();ue.log("seek to next episode",{currentTime:M,...h}),h&&(J({message:"seek to next episode"}),lo(h.time,Ls.EPISODE,!0))},Oc=()=>{let c=al();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue(),M=c.findIndex(Ee=>Ee.time>h),oe=M===-1?c.length-2:M-2;if(!(oe<0))return c[oe]},Fe=c=>{let h=c;h||(h=Oc());let M=A.info.position$.getValue();ue.log("seek to prev episode",{currentTime:M,...h}),h&&(J({message:"seek to prev episode"}),lo(h.time,Ls.EPISODE,!0))},fi=()=>(J({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",{...m}),m),zo=async()=>{let c=se==null?void 0:se.isActive(),h="none";se!=null&&se.isActive()?(h="exit",await(se==null?void 0:se.exit())):(h="request",await(se==null?void 0:se.request())),ue.log("toggle picture in picture",{isActive:c,action:h})},fa=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),wt.update(h=>h+c)},wo=ae([]);C==null||C.subscribe(c=>{let h=[];for(let M=0;M<c.length;M++){let{range:[oe,Ee],subjects:tt}=c[M];M===0&&oe!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:oe/1e3,text:"",interactive:!0,completed:Z.features.interactiveTimeOpenUri?!tt.length||tt.every(Et=>Et.isRemoved):!tt.length}),Ee!==1/0&&h.push({time:Ee/1e3,text:"",interactive:!1,completed:!0})}wo.set(h)});let Db=ae(!1);I==null||I.subscribe(c=>{c&&he(ut)&&Zt()});let Mv=c=>{if(!S)return c;let h=he(wo),M=he(tn),Ee=he(kn)/M,tt=h.find(Et=>Et.interactive&&!Et.completed&&Et.time>Ee);return typeof(tt==null?void 0:tt.time)=="number"?Math.min(c,tt.time-.05):c},Bb=()=>{Ut.ui.episodes.panelOpened$.set(!1)},Fb=()=>{ue.log("destroy store"),clearTimeout(ti),clearTimeout(Hi),Qe.unsubscribe(),Ji.unsubscribe(),A.destroy(),Ce.destroy(),Y==null||Y.destroy(),pe==null||pe.destroy(),be.unsubscribe(),ei==null||ei.disconnect(),ei=null,Ke.destroy()},Hb=mi([on,$e,ki],([c,h,M])=>f.features.doubleForwardAvailable&&!c&&h==="video"&&M),hp=ae(!1),Vv=2,Dc=null,Rv=c=>{if(!he(Po)&&c)return;let h=A.info.currentPlaybackRate$.getValue();c?h!==Vv&&(Dc=h,ln(Vv,!1),hp.set(!0)):(Dc&&ln(Dc,!1),hp.set(!1),Dc=null)};$e.subscribe(c=>{c!=="video"&&Rv(!1)});let Ub=()=>{Fs(!1),ir.set(!0)},zb=()=>{sl(!1),ir.set(!1)},_p=!1,Wb=()=>{ns.set(!0),_p=A.info.playbackState$.getValue()===Ul.PLAYING,Fs(!1)},Kb=()=>{ns.set(!1),!he(ir)&&_p&&sl(!1),_p=!1};A.events.playing$.subscribe(()=>{he(ir)&&Fs(!1)});let Ut={interfaceLanguage$:Pe,isCyrillicRelatedInterface$:Me,initVideo:vo,videoId:i,isClip:o,playerPhase:$e,vsid:He,state:{positionExact$:st,positionWithScrubbing$:Nn,duration$:tn,playbackState$:St,isPlaying$:Po,isLoaderVisible:vi,bufferedProgress$:yt,isLive$:Ai,canChangePlaybackSpeed$:ki,isActiveLive$:on,isOldestAvailableLive$:Gn,isRewindableLive$:Mr,isEnded$:at,muted$:go,volume$:Eo,trafficSavingEnabled$:Di,highQualityEnabled$:pr,autoQualityLimitingAvailable$:eo,availableVideoStreams$:es,availableAudioStreams$:mr,videoStream$:to,audioStream$:vr,currentQuality$:Nr,isAutoQualityEnabled$:jn,availableQualities$:hr,currentPlaybackRate$:Ao,availablePlaybackRates$:nn,currentSubtitle$:Fi,availableTextTracks$:Lo,availableSubtitlesList$:Mn,currentSubtitleCaptions$:Vn,isAutoSubtitleCaptionVisible$:Br,chromecastState$:Jo,chromecastDeviceName$:en,chromecastConnected$:Vr,currentFormat$:qn,throughputEstimation$:fr,videoBitrate$:Lr,videoSize$:_s,errorLog$:ye,crashed$:ee,isAudioAvailable$:Jr,isAudioDisabled:!!l,canDownload:Z.features.download&&!!d,availableSources$:_t,hasMpegSources$:no,isInteractive:S,showInteractiveGraph:Z.features.interactiveGraph,showSeekToInteractive:Z.features.seekToInteractive,showPlayPrevChapter:Z.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Z.features.interactiveTimeIndicator&&!!he(wo).length,interactiveEpisodes$:wo,isInteractiveTime$:I?ai(I):ae(!1),isInteractiveExpectation$:Db,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:O,looped$:br,loadedMetadata$:jt,isAutoQualityAvailable$:bn,previewTrackActive:ir,previewTrackDragInProgress:ns},ui:{t:rt,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$:ot},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Lt,isFullscreenOpenedByKeyboard:Je,rotateAlpha:wt,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:Xt,isMobile:ke,mobileNotReportControlHidden$:pt,icon3DVideoVisible:ae(!1),scrubbingInProgress:ut,volumeChangingInProgress:Ii,is3DVideo:Nt,currentGridType$:Ds,additionalButtonsDeprecated$:aa,additionalDesktopControlPanelRightButtons$:la,additionalSettingsMenuItems$:rs,additionalContextMenuItems$:Zl,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:$i,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$:hp,doubleForwardAvailable$:Hb,previewTrackNotificationVisible:ae(!1),previewTrackActive:ir,previewTrackDragInProgress:ns,previewTrackAvailable:ct,isPreviewTrackHorizontallyAligned:Ho},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:se,annotationsApi:Oe,slotsApi:De},actions:{internal:{preload:No,firstStart:c=>Rc(c,!1),play:()=>sl(!1),pause:()=>Fs(!1),togglePlay:ao,toggleMuted:Mo,openSettingsMenu:so,closeSettingsMenu:Vo,openSettingsSubMenu:Fr,closeSettingsSubMenu:Si,setVolume:c=>_r(c,!1),setMuted:c=>tr(c,!1),startVolumeChanging:jl,stopVolumeChanging:Za,setVideoStream:Yn,setAudioStream:c=>_n(c,!1),setQuality:(c,h)=>Mi(c,h,!1),setTrafficSavingEnabled:(c,h)=>Oo(c,h,!1),setHighQualityEnabled:(c,h)=>Do(c,h,!1),setPlaybackRate:ln,incrementPlaybackRate:$r,decrementPlaybackRate:yr,setSubtitle:c=>xr(c,!1),toggleSubtitle:()=>is(!1),togglePictureInPicture:zo,startScrubbing:Yt,progressScrubbing:yi,completeScrubbing:Rn,toggleChromecast:vp,switchToActiveLive:Ui,switchFromAdsToVideo:zi,switchFromVideoToAds:hi,skipAd:Uo,setLiveWaitingStart:Vi,setLiveWaitingRecover:ua,setLiveWaitingRecord:rl,getDebugTextData:mp,getTraceTextData:Lc,getDebugPanelData:Mc,getVideoElement:pa,seekTime:(c,h,M)=>lo(c,h,M),clearDelayedBufferingCheckTimeout:Qn,seekEpisodeStartTime:wr,seekToPercent:dn,getNextEpisode:Nc,seekToNextEpisode:gp,getPrevEpisode:Oc,seekToPrevEpisode:Fe,startLogging:Xo,stopLogging:hn,startCameraManualRotation:Ct,stopCameraManualRotation:Ot,moveCameraFocusPX:W,holdCamera:Pt,releaseCamera:ri,getVideoEpisodes:al,getPreviewThumbsData:fi,downloadVideo:ro,addLanguage:Pf,setLanguage:xe,nextMovie:dt,videoRotate:fa,correctSeekTimeToInteractive:Mv,replayInteractive:R,setLooped:$n,reportProblem:sn,setAutoplayNextEnabled:Hr,setTimerNextVideoRunning:an,prevVideoClick:ts,nextVideoClick:Ye,nextVideoAnnouncementShow:At,nextVideoAnnouncementClick:gi,nextVideoAnnouncementAuto:yo,nextVideoAnnouncementCancel:xo,checkFullscreenSupport:Rt,changeDoubleForwardOn:Rv,closePreviewTrack:zb,previewTrackOpened:Ub,previewTrackDragStarted:Wb,previewTrackDragFinished:Kb},external:{firstStart:c=>Rc(c,!0),play:()=>sl(!0),pause:()=>Fs(!0),stop:()=>Vc(!0),seekTime:c=>Sr(c),seekEpisodeStartTime:c=>yn(c),setPlaybackRate:c=>Os(c),setAutoQualityLimits:c=>Ns(c),setMuted:c=>tr(c,!0),toggleSubtitle:()=>is(!0),changeSubtitle:os,setVolume:c=>_r(c,!0),returnFocusToEpisodes:Bb,updateAdditionalSettingsItem:Xl,addAdditionalSettingsItem:il,removeAdditionalSettingsItem:ol,updateAdditionalContextItem:ca,addAdditionalContextItem:nl,removeAdditionalContextItem:lt,updateAdditionalButton:Bs,addAdditionalButton:da,removeAdditionalButton:el,setLiveLowLatency:tl,hideControls:()=>Fo(!1),showControls:()=>Fo(!0),setQuality:c=>Mi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Oo(c,"to-video",!0),setHighQualityEnabled:c=>Do(c,"to-video",!0),changeAudioStream:Rr}},callbacks:s,setUiCallbacks:c=>{Be={...c}},getAdmanWrapper:()=>Ce,getLogger:()=>We,getPlayer:()=>A,destroy:Fb};return Ut};function Wn(t,e,i,o){var p;let r=(p=e[i])==null?void 0:p.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=ks(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var Hx=["disabledControls$","additionalButtons"],Ux=["interactiveTimeIndicator"],Wl=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!Hx.includes(r)){let l=o||Ux.includes(r);a.set(Wn(t,i,r,l))}}};var Yu=async(t,e,i)=>{await mo(),e&&i&&(i.focus(),t.set(!1))};var zx=Ie('<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 hm(t){Xe(t,{children:(e,i)=>{var o=zx();_(e,o)},$$slots:{default:!0}})}function _m(t,e){F(e,!0);let[i,o]=Ve(),r=()=>x(s,"$contextMenuVisible$",i),a=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=ve(),s=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);Re(()=>{n(b)&&It(()=>{f.set(n(b))})});let y=I=>{let R=ta(I),E=E_(n(b));m.set(E),u.set(R),s.set(!r())},$=()=>{p.set(!0)},S=()=>{p.set(!1)},C=v(()=>r()?"opened":"");Ft(t,{get className(){return n(C)},testId:"btn-context-menu",get disabled(){return a()},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)=>{hm(I,{})},$$slots:{default:!0}}),H(),o()}var Wx=t=>{t.stopPropagation()},Kx=L("<div><!> <div></div> <div></div></div>"),qx={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 oc(t,e){var pe;F(e,!0),q(t,qx);let[i,o]=Ve(),r=()=>x(S,"$isMobile",i),a=()=>x(E,"$areControlsVisible",i),l=()=>x(O,"$currentGridType$",i),d=()=>x(I,"$isInteractiveTime$",i),s=()=>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=$o(),{interactiveControlsOpacity$:$}=y,S=b.ui.isMobile,C=b.ui.isFullscreen,I=b.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,E=b.ui.controlsVisible,P=(pe=b.callbacks)==null?void 0:pe.onInteractiveTimeIndicatorClick,O=b.ui.currentGridType$,D=v(()=>!r()&&a()),U=v(()=>As(l(),"s")),z=v(()=>!d()||!!s()||n(D)),G=K(!1);Re(()=>{N(G,n(z),!0)});let le=()=>{N(G,!0)},j=()=>{var se;ie(),(se=n(f))==null||se.addEventListener("animationiteration",le,{once:!0})},ie=()=>{var se;N(G,!1),(se=n(f))==null||se.removeEventListener("animationiteration",le)},Y=se=>{R.set(se)},ge=v(()=>u()&&!n(z));Re(()=>{u()?j():ie()});let ce=()=>{n(z)||(R.set(!0),P==null||P())};fn(()=>{R.clearTimeout(),ie()});let ne=()=>{R.set(!1)},_e=Q("tooltip_interactive_interaction_time_indicator");var we=Kx();let Z;we.__mousemove=[Wx],we.__click=ce;var Ne=T(we);Io(Ne,{get tooltipContent(){return _e},get tooltipVisible(){return n(ge)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Y,get ref(){return m()},set ref(se){m(se)},children:(se,Oe)=>{Gd(se,{completed:!0})},$$slots:{default:!0}});var ue=k(Ne,2);let A;it(ue,se=>m(se),()=>m());var We=k(ue,2);let Ce;it(We,se=>N(f,se),()=>n(f)),w(we),B((se,Oe,De)=>{Z=re(we,1,"interactive-episode-icon-animated s-26",null,Z,se),A=re(ue,1,"ref-block s-26",null,A,Oe),Ce=re(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)})]),gt("mouseleave",we,ne),_(t,we),H(),o()}nt(["mousemove","click"]);function ju(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),a=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);Io(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Le();let p=v(()=>e.buttonComponent);var m=de(u);Oi(m,()=>n(p),(f,b)=>{b(f,Is(()=>{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 Gx=Ie('<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 ra(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(()=>`${mn(e.size)}${n(o)}`),a=v(()=>i()?"prev-icon":"next-icon");Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},children:(l,d)=>{var s=Gx();_(l,s)},$$slots:{default:!0}}),H()}var Yx=L('<div class="icon-background-mobile s-1y"><!></div>'),jx={hash:"s-1y",code:".icon-background-mobile.s-1y{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 Ha(t,e){F(e,!0),q(t,jx);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")),s=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}`);Ft(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(s)},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var f=Le(),b=de(f);{var y=S=>{var C=Yx(),I=T(C);let R=v(()=>e.type==="prev");ra(I,{get size(){return"32"},get reversed(){return n(R)}}),w(C),_(S,C)},$=S=>{let C=v(()=>e.type==="prev");ra(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 Xx=Ie('<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 nc(t,e){F(e,!0);let i=v(()=>mn(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",children:(o,r)=>{var a=Xx();_(o,a)},$$slots:{default:!0}}),H()}import{noop as Zx}from"@vkontakte/videoplayer-shared/es2018";var Jx=L('<div class="icon-background-mobile s-21"></div>'),ew=L("<!> <div><!></div>",1),tw={hash:"s-21",code:".mobile.s-21{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-21{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 Kl(t,e){F(e,!0),q(t,tw);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),a=g(e,"className",3,""),l=g(e,"click",3,Zx),d=Q("tooltip_restart"),s=v(()=>`${o()?"btn-m--play":""} ${a()}`);Ft(t,{get className(){return n(s)},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,p)=>{var m=ew(),f=de(m);{var b=I=>{var R=Jx();_(I,R)};V(f,I=>{o()&&I(b)})}var y=k(f,2);let $;var S=T(y);let C=v(()=>o()?"48":"24");nc(S,{get size(){return n(C)}}),w(y),B(I=>$=re(y,1,"s-21",null,$,I),[()=>({mobile:o()})]),_(u,m)},$$slots:{default:!0}}),H()}var iw=Ie('<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(()=>mn(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",children:(o,r)=>{var a=iw();_(o,a)},$$slots:{default:!0}}),H()}import{noop as ow}from"@vkontakte/videoplayer-shared/es2018";var nw=L('<div class="icon-background-mobile s-1z"><!></div>'),rw={hash:"s-1z",code:".icon-background-mobile.s-1z{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 ql(t,e){F(e,!0),q(t,rw);let[i,o]=Ve(),r=()=>x(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=$o(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),s=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),p=g(e,"className",3,""),m=g(e,"click",3,ow),b=ve().ui.t,{toggle:y}=a,$=v(()=>y),S=v(()=>r()!==null),C=v(()=>n(S)?r():s()),I=v(()=>n(C)?b("tooltip_pause"):b("tooltip_play")),R=v(()=>n(C)?Vs:Pn),E=v(()=>`${d()?"btn-m--play":""} ${p()}`),P=v(()=>n(S)?n($):m());Ft(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 ps.KeyK},get ref(){return l()},set ref(O){l(O)},children:(O,D)=>{var U=Le();let z=v(()=>n(R));var G=de(U);{var le=ie=>{var Y=nw(),ge=T(Y);Oi(ge,()=>n(z),(ce,ne)=>{ne(ce,{get size(){return"48"}})}),w(Y),_(ie,Y)},j=ie=>{var Y=Le(),ge=de(Y);Oi(ge,()=>n(z),(ce,ne)=>{ne(ce,{get size(){return"24"}})}),_(ie,Y)};V(G,ie=>{d()?ie(le):ie(j,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}var sw=Ie('<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 bm(t){Xe(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=sw();_(e,o)},$$slots:{default:!0}})}function rc(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),a=Q("tooltip_interactive_go_back"),l=v(()=>o()?"hidden":"");Ft(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{bm(d,{})},$$slots:{default:!0}}),H()}var aw=L('<span class="gutter s-25"><span><!></span></span>'),lw={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,lw);let[i,o]=Ve(),r=()=>x(s,"$autoplayNextEnabled$",i),a=g(e,"ref",15,void 0),l=ve(),d=l.ui.t,s=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");Ft(t,{click:p,get ariaLabel(){return m},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref($){a($)},children:($,S)=>{var C=aw(),I=T(C);let R;var E=T(I);{var P=D=>{Pn(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=re(I,1,"toggler s-25",null,R,D),[()=>({enabled:r()})]),_($,C)},$$slots:{default:!0}}),H(),o()}var dw=Ie('<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 $m(t){Xe(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=dw();ui(),_(e,o)},$$slots:{default:!0}})}function ac(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),a=Q("tooltip_interactive_seek"),l=v(()=>o()?"hidden":"");Ft(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{$m(d,{})},$$slots:{default:!0}}),H()}var cw=Ie('<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>'),uw=Ie('<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 ym(t,e){let i=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=uw(),d=k(de(l));{var s=u=>{var p=cw();_(u,p)};V(d,u=>{i()&&u(s)})}_(r,l)},$$slots:{default:!0}})}function lc(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),a=g(e,"graphIsOpened",3,!1),d=ve().ui.t,s=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Ft(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{let f=v(()=>!!a());ym(p,{get isOpened(){return n(f)}})},$$slots:{default:!0}}),H()}import{PlaybackState as Q_}from"@vkontakte/videoplayer-core/es2018";function dc(t,e){F(e,!0);let[i,o]=Ve(),r=()=>x(u,"$playbackState$",i),a=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),s=ve(),u=s.state.playbackState$,p=s.actions.internal.switchToActiveLive,m=s.actions.internal.togglePlay,f=v(()=>()=>{if(!l()){p();return}r()===Q_.PAUSED&&m()}),b=v(()=>a()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),$=v(()=>l()&&r()===Q_.PLAYING);Ft(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)=>{Vd(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}import{noop as G_}from"@vkontakte/videoplayer-shared/es2018";var pw=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),fw=L('<img class="icon" aria-hidden="true"/>');function Ua(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=Le(),a=de(r);{var l=s=>{var u=pw();_(s,u)},d=s=>{var u=fw();B(()=>ze(u,"src",e.icon)),gt("error",u,o),Ta(u),_(s,u)};V(a,s=>{n(i)?s(l):s(d,!1)})}_(t,r)}function xm(t,e){F(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,G_),r=g(e,"ref",15),a=v(()=>o()===G_),l=v(()=>n(a)||i()),d=v(()=>n(a)?"btn-full-opacity":"");Io(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let p=v(()=>{var m;return(m=e.testId)!=null?m:e.id});Ft(s,{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)=>{Ua(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Y_=t=>!!t.buttonComponent;var Rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Xu=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(Wn(t,i,r,o))};import{interpolate as wm}from"@vkontakte/videoplayer-shared/es2018";var j_=10,X_=40,Sm=.2,vw=.5,gw=65,hw=114,_w=4,Z_=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?gw:hw),r=K(!1),a=K(0),l=K(0),d=v(()=>n(o)+j_-X_-_w),s=v(()=>wm(n(a),[Sm,1],[0,-n(d)])),u=v(()=>wm(n(a),[Sm,1],[0,X_])),p=v(()=>wm(n(a),[Sm,1],[0,n(o)+j_]));return{progressBarY:()=>n(s),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(a,Math.abs(S/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(a,n(a)>=vw?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{N(a,0)}}};var bw=t=>t;function hs(t,{delay:e=0,duration:i=400,easing:o=bw}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var $w=L('<span class="root s-2b"> </span>'),yw={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 Tm(t,e){q(t,yw);var i=$w(),o=T(i,!0);w(i),B(()=>fe(o,e.time)),_(t,i)}var xw=L('<div class="tooltip-wrapper s-j"><div><!></div></div>'),ww={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 Cm(t,e){q(t,ww);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),a=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),s=K(void 0),u=K(void 0);function 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=xw(),b=T(f);let y;var $=T(b);Jt($,()=>{var S;return(S=e.children)!=null?S:vt}),w(b),it(b,S=>N(u,S),()=>n(u)),w(f),it(f,S=>N(s,S),()=>n(s)),B(S=>{qe(f,`transform: translate(${n(m)}px, ${a()}px);`),y=re(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 J_=t=>Math.abs(t)/90%4===1;var Sw=L('<div class="preview s-i"></div>'),Tw=L('<div class="time s-i"> </div>'),Cw=L('<div><!> <div class="episode s-i"><!></div> <!></div>'),Iw={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 Im(t,e){F(e,!0),q(t,Iw);let[i,o]=Ve(),r=()=>x(y,"$rotateAlpha",i),a=()=>x($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),s=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(()=>Hu(p(),m(),u())),U=v(()=>Hl(r())),z=v(()=>J_(r())),G=v(ie),le=v(()=>(n(z)?1:-1)*(n(S)/2-n(C)/2)),j=v(()=>n(le)*-1);Re(()=>{(pe=>{N(S,pe.width,!0),N(C,pe.height,!0)})(ge())}),Re(()=>{(pe=>{N(I,pe.imgSrc,!0),N(R,pe.imgWidth,!0),N(E,pe.imgHeight,!0),N(P,pe.imgOffsetX,!0),N(O,pe.imgOffsetY,!0)})(ce(p()))});function ie(){var De;let pe=s()?l.MOBILE:l.DESKTOP,{isVertical:se}=Y(),Oe=30;return(De=n(D))!=null&&De.text&&(Oe+=16),(se||n(U))&&(Oe+=18,Oe+=50),Math.min(Math.max(a().height-Oe,0),pe)}function Y(){let pe=e.previewThumbsData.frameWidth,se=e.previewThumbsData.frameHeight,Oe=se>pe;return{width:pe,height:se,isHorizontal:!Oe,isVertical:Oe}}function ge(){let{height:pe,isHorizontal:se,isVertical:Oe,width:De}=Y();return se&&(pe=pe/De*n(G),De=n(G)),Oe&&(De=De/pe*n(G),pe=n(G)),{width:De,height:pe}}function ce(pe){let se;e.previewThumbsData.isUV?se=Math.floor(m()*pe/e.previewThumbsData.frequency):se=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*pe)));let Oe=Math.floor(se/e.previewThumbsData.countPerImage),De=Math.floor(se%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),J=se%e.previewThumbsData.countPerRow,X=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(X=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&X++);let 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 Be=n(S)*Se,Ke=n(C)*X,Qe=-J*n(S),Te=-De*n(C);return{imgSrc:e.previewThumbsData.links[Oe],imgWidth:Be,imgHeight:Ke,imgOffsetX:Qe,imgOffsetY:Te}}var ne=Cw();let _e;var we=T(ne);{var Z=pe=>{var se=Sw();B(()=>qe(se,`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(j)}px)`:""};
62
- `)),_(pe,se)};V(we,pe=>{n(I)&&pe(Z)})}var Ne=k(we,2),ue=T(Ne);{var A=pe=>{var se=Le(),Oe=de(se);{var De=X=>{var Se=us();B(Be=>fe(Se,Be),[()=>Q("tooltip_episode_unfinished")]),_(X,Se)},J=X=>{var Se=us();B(()=>fe(Se,n(D).text||"")),_(X,Se)};V(Oe,X=>{f()&&n(D).completed===!1?X(De):X(J,!1)})}_(pe,se)};V(ue,pe=>{n(D)&&pe(A)})}w(Ne);var We=k(Ne,2);{var Ce=pe=>{var se=Tw(),Oe=T(se,!0);w(se),B(()=>fe(Oe,d())),_(pe,se)};V(We,pe=>{f()||pe(Ce)})}w(ne),B(pe=>{_e=re(ne,1,"timeline-preview s-i",null,_e,pe),qe(ne,`width: ${n(U)?n(C):n(S)}px;`)},[()=>({mobile:s()})]),_(t,ne),H(),o()}var Ew=L('<span class="time s-f"> </span>'),Pw=L("<!> <!>",1),Aw={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 Em(t,e){var Pe,Tt,Me,rt,ft;F(e,!0),q(t,Aw);let[i,o]=Ve(),r=()=>x(j,"$interactiveEpisodes$",i),a=()=>x(O,"$duration$",i),l=()=>x(P,"$position$",i),d=()=>x(ge,"$isInteractiveExpectation$",i),s=()=>x(Y,"$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=kt(),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(),j=I.state.interactiveEpisodes$,ie=I.state.isInteractive,Y=I.state.isInteractiveTime$,ge=I.state.isInteractiveExpectation$,ce=I.actions.internal.correctSeekTimeToInteractive,ne=(Pe=I.callbacks)==null?void 0:Pe.onDisabledTimelineClick,_e=I.ui.controls.disabledControls$,we=I.ui.previewTrackActive,Z=(Me=(Tt=I.callbacks)==null?void 0:Tt.uiInfo)==null?void 0:Me.onTimelineMouseEnter,Ne=(ft=(rt=I.callbacks)==null?void 0:rt.uiInfo)==null?void 0:ft.onTimelineMouseLeave,ue=I.ui.t,A=R.features.interactiveResponsiveUi,We=v(()=>ie?r():G),Ce=v(()=>jo(a())),pe=v(()=>jo(l())),se=v(()=>l()/a()),Oe=v(()=>d()||s()),De=K(!1),J=K(""),X=K(0),Se=K(0),Be=K(0),Ke=v(()=>({containerWidth:n(Se),translateXPx:n(X),translateYPx:ie&&le?-36:-16,active:n(De)&&$()&&!n(Oe)&&!A&&!u(),pointer:!R.features.timelinePreview||!le||p()})),Qe=ue("aria_timeline"),Te=v(()=>ue("aria_timeline_value",{position:n(pe),duration:n(Ce)}));function ke($e){return!ce||!ie?$e:ce($e*a())/a()}function He($e,Ze){var Ue;(Ue=e.onSliderPointerDown)==null||Ue.call(e,Ze),I.actions.internal.startScrubbing(ke($e))}function Lt($e){s()||I.actions.internal.progressScrubbing(ke($e))}function Je($e){var Ze;I.actions.internal.completeScrubbing(ke($e)),N(De,!1),(Ze=e.onSliderPointerUp)==null||Ze.call(e)}function Rt($e,Ze,Ue){var ot;(ot=e.onSliderPointerEnter)==null||ot.call(e,$e),jt($e,Ze,Ue),N(De,!0)}function zt($e,Ze,Ue,ot){var Xt;(Xt=e.onSliderMove)==null||Xt.call(e,ot,$e),jt($e,Ze,Ue),N(De,!0)}function wt(){var $e;N(De,!1),($e=e.onSliderLeave)==null||$e.call(e)}function jt($e,Ze,Ue){N(Be,ke($e),!0),N(X,Ze,!0),Ue&&N(Se,Ue,!0),N(J,Nt($e),!0)}function Nt($e){let Ze=jo((p()?1-$e:$e)*a());return p()?`-${Ze}`:Ze}let ye=v(()=>m().has("TIMELINE"));var be=Pw(),ee=de(be);Cm(ee,Is(()=>n(Ke),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:($e,Ze)=>{var Ue=Le(),ot=de(Ue);{var Xt=pi=>{Im(pi,{get time(){return n(J)},get isMobile(){return f()},get videoEpisodes(){return n(We)},get previewThumbsData(){return le},get progress(){return n(Be)},get duration(){return a()},get isInteractive(){return ie}})},ni=pi=>{var vi=Ew(),Zi=T(vi,!0);w(vi),B(()=>fe(Zi,n(J))),_(pi,vi)};V(ot,pi=>{R.features.timelinePreview&&le&&!p()?pi(Xt):pi(ni,!1)})}_($e,Ue)},$$slots:{default:!0}}));var xe=k(ee,2);Ba(xe,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return f()},get ariaLabel(){return Qe},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Te)},get loadedProgress(){return y()},get filledProgress(){return n(se)},get handleProgress(){return n(se)},get videoEpisodes(){return n(We)},onPointerDown:He,onHandleMove:Lt,onPointerMove:zt,onPointerUp:Je,onPointerEnter:Rt,onPointerLeave:wt,get onMouseEnter(){return Z},get onMouseLeave(){return Ne},get onDisabledClick(){return ne},get isInteractive(){return ie},get disabled(){return n(ye)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:Je,get ref(){return C()},set ref($e){C($e)}}),_(t,be),H(),o()}var kw={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){F(e,!0),q(t,kw);let[i,o]=Ve(),r=()=>x(s,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"duration",3,0),d=ve(),s=d.ui.isMobile,u=d.ui.t,p=v(()=>jo(l())),m=v(()=>jo(a())),f=v(()=>a()/l()),b=v(()=>u("aria_timeline_value",{position:n(m),duration:n(p)})),y=v(()=>Math.round(n(f)*100));Ba(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 Lw=L("<div><!></div>"),Mw=L("<div></div>"),Vw={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 za(t,e){F(e,!0),q(t,Vw);let[i,o]=Ve(),r=()=>x(S,"$isLive$",i),a=()=>x(R,"$isMobile",i),l=()=>x(E,"$disabled",i),d=()=>x(I,"$adPosition",i),s=()=>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(),$=kt(),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=Le(),D=de(O);{var U=G=>{var le=Lw();let j;var ie=T(le);{var Y=ce=>{cc(ce,{get position(){return d()},get duration(){return s()}})},ge=ce=>{Em(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(ne){b(ne)}})};V(ie,ce=>{u()?ce(Y):ce(ge,!1)})}w(le),Cs(le,()=>Ml(p()&&$.features.usePerformanceFix,E,$.disableInvisibleComponentsTimeout)),B(ce=>j=re(le,1,"timeline s-b",null,j,ce),[()=>({withoutPadding:!f(),mobile:a(),"out-of-flow":l()})]),_(G,le)},z=G=>{var le=Mw();let j;B(ie=>j=re(le,1,"timeline-stub s-b",null,j,ie),[()=>({mobile:a()})]),_(G,le)};V(D,G=>{n(P)?G(U):G(z,!1)})}_(t,O),H(),o()}import{getRangeAroundIndex as Rw}from"@vkontakte/videoplayer-shared/es2018";var Nw=(t,e,i,o,r,a,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),a(l())},Ow=L("<div></div>"),Dw=L('<div><div class="track s-2d"></div></div>'),Bw={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 Am(t,e){F(e,!0),q(t,Bw);let[i,o]=Ve(),r=()=>x(R,"$rotateAlpha",i),a=()=>x($,"$position$",i),l=()=>x(y,"$duration$",i),d=ve(),{countPerImage:s=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(()=>Hl(r())),j=v(()=>n(G)?!n(le):n(le)),ie=114,Y=65,ge=3,ce=v(()=>n(j)?ie:Y),ne=v(()=>n(G)?ie:Y),_e=v(()=>n(G)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=v(()=>p*n(ce)),Z=K(0);Re(()=>{N(z,Math.ceil(-n(U)/n(ce))-1),N(U,-n(we)*a()/l())});let Ne=()=>{I(ue(),!0)},ue=()=>l()*-n(U)/n(we)/l(),A=!1,We=Te=>{if(!n(P))return!1;let ke=Te.clientX-n(O);N(U,n(D)+ke),N(U,Math.max(Math.min(n(U),0),-n(we)),!0),Math.abs(ke)>1&&(A=!0),C(ue())},Ce=Te=>{n(P)&&(N(P,!1),!A&&Te&&N(U,-(Te.offsetX-n(Z)/2)),A=!1,Ne())},pe=()=>{n(P)&&Ce()},se=v(()=>s/u),Oe=(Te,ke)=>{if(Te!==m.length-1)return u;let He=0,Lt=ke*u;for(let Je=1;Je<=u;Je++)Te*s+He+Lt<p&&He++;return He},De=v(()=>Math.floor(n(z)/s)),J=v(()=>Rw(3,n(De),m.length-1)),X=(Te,ke,He)=>{let Lt=s*n(ce);return Te*Lt+ke*n(ce)*u+n(Z)/2-ge/2+He*n(ce)},Se=v(()=>[`--row-numbers: ${n(se)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ne)}px`,`--frame-height: ${n(_e)}`].join(";"));var Be=Dw();let Ke;var Qe=T(Be);Qe.__pointerdown=[Nw,P,O,D,U,S,ue],Qe.__pointermove=We,Qe.__pointerup=Ce,bi(Qe,20,()=>n(J),Te=>Te,(Te,ke)=>{var He=Le(),Lt=de(He);bi(Lt,16,()=>Array.from({length:n(se)},(Je,Rt)=>Rt),Je=>Je,(Je,Rt)=>{var zt=Le(),wt=de(zt);bi(wt,16,()=>Array.from({length:Oe(ke,Rt)},(jt,Nt)=>Nt),jt=>jt,(jt,Nt)=>{var ye=Ow();B((be,ee)=>{qe(ye,be),re(ye,1,ee,"s-2d")},[()=>`--row-index: ${Rt}; --column-index: ${Nt}; left: ${X(ke,Rt,Nt)}px; background-image: url(${m[ke]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),_(jt,ye)}),_(Je,zt)}),_(Te,He)}),w(Qe),w(Be),it(Be,Te=>N(E,Te),()=>n(E)),B(Te=>{Ke=re(Be,1,"root s-2d",null,Ke,Te),qe(Be,n(Se)),qe(Qe,`transform: translateX(${n(U)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(G),"vertically-rotated":n(le)})]),gt("mouseleave",Qe,pe),In(Be,"clientWidth",Te=>N(Z,Te)),_(t,Be),H(),o()}nt(["pointerdown","pointermove","pointerup"]);var Fw=L('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),Hw={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 km(t,e){F(e,!1),q(t,Hw);let i=340,{ui:{t:o}}=ve();bo();var r=Fw(),a=T(r),l=T(a,!0);w(a),w(r),B(d=>fe(l,d),[()=>o("preview_track_close_tooltip")],xn),Yr(3,r,()=>hs,()=>({duration:i})),_(t,r),H()}import{getRangeAroundIndex as Uw}from"@vkontakte/videoplayer-shared/es2018";var zw=L('<div class="preview-track-close tooltip s-29"><!></div>'),Ww=L('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),Kw=L('<div class="wrapper-preview-track s-29"><!></div>'),qw=L('<div class="enriched-timeline s-29"><!> <!> <!></div>'),Qw={hash:"s-29",code:".enriched-timeline.s-29{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-29{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-29{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-29{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-29:hover+.tooltip:where(.s-29){opacity:1}.wrapper-preview-track.s-29{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function Lm(t,e){F(e,!0),q(t,Qw);let[i,o]=Ve(),r=()=>x($,"$playerSize",i),a=()=>x(y,"$duration$",i),l=()=>x(S,"$previewTrackActive",i),d=()=>x(f,"$position$",i),s=()=>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(!r_()),O=()=>{n(P)&&(n_(),N(P,!1))},D=ce=>{let ne=Math.floor(a()*ce/R),_e=Math.floor(ne/C),we=Uw(3,_e,I.length-1);for(let Z of we){let Ne=new Image;Ne.src=I[Z]}},U=(ce,ne)=>{D(ne),!l()&&e.onTimelineMove(ce)};var z=qw(),G=T(z);{var le=ce=>{var ne=Ww(),_e=T(ne);let we=v(()=>jo(d()));Tm(_e,{get time(){return n(we)}});var Z=k(_e,2),Ne=T(Z);Ps(Ne,{onClick:()=>p.actions.internal.closePreviewTrack()}),w(Z);var ue=k(Z,2);{var A=We=>{var Ce=zw(),pe=T(Ce);km(pe,{}),w(Ce),_(We,Ce)};V(ue,We=>{n(P)&&We(A)})}w(ne),gt("mouseleave",Z,O),Yr(3,ne,()=>hs,()=>({duration:m})),_(ce,ne)};V(G,ce=>{l()&&ce(le)})}var j=k(G,2);let ie=v(()=>!n(E));za(j,{get isHidden(){return n(ie)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},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 Y=k(j,2);{var ge=ce=>{var ne=Kw(),_e=T(ne);Am(_e,{}),w(ne),B(()=>qe(ne,`height: ${e.animatedPreviewTrackHeight}px;`)),_(ce,ne)};V(Y,ce=>{e.previewTrackAvailable&&ce(ge)})}w(z),B(()=>qe(z,`transform: translateY(${e.animatedOffsetY}px);`)),_(t,z),H(),o()}var Yw=L('<div><!> <div class="controls s-1b" data-testid="player_controls"><div class="controls-left s-1b"><!> <!> <!></div> <div class="controls-right s-1b"></div></div></div> <!>',1),jw={hash:"s-1b",code:'.wrapper-bottom.s-1b{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-1b:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1b>:where(.s-1b){pointer-events:auto}.controls.s-1b{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-1b,.controls-right.s-1b{align-content:center;display:flex}.controls-left.s-1b{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1b >:not(:first-child),.controls-right.s-1b >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1b{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1b{transition:none}'};function Vm(t,e){var ca,nl;F(e,!0),q(t,jw);let[i,o]=Ve(),r=()=>x(Xo,"$disabledControls$",i),a=()=>x(at,"$adPlaybackState",i),l=()=>x(ni,"$playbackState$",i),d=()=>x(Ji,"$currentSubtitle$",i),s=()=>x(Zi,"$isEnded$",i),u=()=>x(Zo,"$currentGridType$",i),p=()=>x(vo,"$isLive$",i),m=()=>x(Ge,"$chromecastState$",i),f=()=>x(Ci,"$isPictureInPictureActive",i),b=()=>x(Qt,"$pictureInPictureType$",i),y=()=>x(_i,"$availableSubtitlesList$",i),$=()=>x(Ot,"$contextMenuOpenedByKeyboard$",i),S=()=>x(Ct,"$showContextMenuBtn$",i),C=()=>x(dt,"$isRewindableLive$",i),I=()=>x(li,"$isActiveLive$",i),R=()=>x(Jr,"$graphIsOpened$",i),E=()=>x(hn,"$contextMenuVisible$",i),P=()=>x(Ai,"$isFullscreen",i),O=()=>x(go,"$autoplayNextEnabled",i),D=()=>x(n(Li),"$prevButton",i),U=()=>x(n(ro),"$replayButton",i),z=()=>x(n(Mo),"$playButton",i),G=()=>x(n(Vo),"$nextButton",i),le=()=>x(n(so),"$playPrevChapterButton",i),j=()=>x(n(Si),"$seekToInteractiveButton",i),ie=()=>x(n(Fr),"$interactiveGraphButton",i),Y=()=>x(n(er),"$liveButton",i),ge=()=>x(n(Ro),"$time",i),ce=()=>x(n(_r),"$episodes",i),ne=()=>x(n(tr),"$vkLogo",i),_e=()=>x(n(br),"$volume",i),we=()=>x(n($n),"$subtitles",i),Z=()=>x(n(sn),"$settings",i),Ne=()=>x(n(Hr),"$context",i),ue=()=>x(n(an),"$fullscreen",i),A=()=>x(n(ts),"$chromecast",i),We=()=>x(Eo,"$additionalDesktopControlPanelRightButtons$",i),Ce=()=>x(ki,"$playerSize",i),pe=()=>x(Jo,"$isInteractiveTime$",i),se=()=>x(ci,"$previewTrackActive",i),Oe=()=>x(xt,"$settingsMenuVisible",i),De=()=>x(ao,"$settingButtonRef$",i),J=()=>x(W,"$startedByKeyboard$",i),X=()=>x(pi,"$isAudioAvailable$",i),Se=()=>x(be,"$fakeIsPlaying$",i),Be=()=>x(Zr,"$seekToInteractiveDisabledTooltip$",i),Ke=()=>x(ut,"$isPreviewTrackHorizontallyAligned$",i),Qe=()=>x(me,"$previewTrackAvailable",i),Te=()=>x(Ho,"$previewTrackDragInProgress",i),ke=()=>x(Kt,"$adPosition",i),He=()=>x(Xt,"$position$",i),Lt=()=>x(St,"$adDuration",i),Je=()=>x(ot,"$duration$",i),Rt=g(e,"playerControlsWrapperRef",15,void 0),zt=g(e,"playerControlsRef",15,void 0),wt=g(e,"isAds",3,!1),jt=g(e,"logoTargetUrl",3,""),Nt=g(e,"isOneVideoPlaylist",3,!1),ye=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:be}=$o(),ee=ve(),xe=$o(),Pe=kt(),Tt=ee.actions.internal.toggleMuted,Me=ee.actions.internal.togglePlay,rt=ee.actions.internal.pause,ft=ee.actions.internal.toggleSubtitle,$e=ee.actions.internal.checkFullscreenSupport,Ze=(ca=ee.callbacks)==null?void 0:ca.onAudioDoesNotExistHint,Ue=(nl=ee.callbacks)==null?void 0:nl.onAudioDisabledHint,ot=ee.state.duration$,Xt=ee.state.positionWithScrubbing$,ni=ee.state.playbackState$,pi=ee.state.isAudioAvailable$,vi=ee.state.isAudioDisabled,Zi=ee.state.isEnded$,vo=ee.state.isLive$,li=ee.state.isActiveLive$,dt=ee.state.isRewindableLive$,{isActive$:Ci,type$:Qt}=xe.pictureInPicture$,xt=ee.ui.settingsMenu.visible$,ei=ee.ui.settingsMenu.openedByBtnKeyboard$,Gt=ee.ui.controls,ht=ee.actions.internal.getVideoEpisodes(),Ge=ee.state.chromecastState$,_i=ee.state.availableSubtitlesList$,Ji=ee.state.currentSubtitle$,Xo=Gt.disabledControls$,hn=ee.ui.contextMenu.visible$,Ct=ee.ui.contextMenu.showContextMenuBtn$,Ot=ee.ui.contextMenu.openedByBtnKeyboard$,W=ee.ui.startedByKeyboard$,Pt=ee.ui.controlBlocks,ri=ee.ui.previewTrackNotificationVisible,st=ee.ui.t,St=ee.ads.duration,Kt=ee.ads.position,at=ee.ads.playbackState,Ai=ee.ui.isFullscreen,ki=ee.ui.playerSize,Zo=ee.ui.currentGridType$,Eo=ee.ui.additionalDesktopControlPanelRightButtons$,go=ee.ui.autoplayNextEnabled$,Di=ee.actions.internal.getVideoElement,pr=ee.actions.internal.replayInteractive,eo=ee.actions.internal.prevVideoClick,ho=ee.actions.internal.nextVideoClick,Bi=ee.state.isInteractive,Jo=ee.state.isInteractiveTime$,en=ee.state.showInteractiveGraph,qn=ee.state.showSeekToInteractive,fr=ee.state.showPlayPrevChapter,Lr=ee.state.showInteractiveTimeIndicator,_s=ee.state.playPrevChapterDisabledTooltip,Zr=xe.seekToInteractiveDisabledTooltip$,Jr=xe.graphIsOpened$,Qn=Pe.features.interactiveResponsiveUi,tn=v(()=>r().has("EPISODE_BUTTON")),Po=v(()=>r().has("GRAPH_BUTTON")),on=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Gn=v(()=>r().has("PLAY_BUTTON")),kn=v(()=>r().has("REPLAY_BUTTON")),Mr=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Vr=()=>ee.actions.internal.toggleChromecast(),es=v(()=>wt()?a()==="playing":l()===Mm.PLAYING),mr=v(()=>d().value!=="off"),to=v(()=>s()&&!wt()||Bi),vr=v(()=>Qn?n(to)&&ji(u(),"m"):n(to)),Yn=v(()=>!s()||Bi||wt()),_n=v(()=>ji(u(),"m")),io=v(()=>e.showNextPrevButtons&&ji(u(),"m")&&!wt()&&e.nextButtonActive),Rr=v(()=>e.showNextPrevButtons&&ji(u(),"m")&&!wt()&&e.prevButtonActive),Ln=v(()=>!wt()&&!!p()),mt=v(()=>m()!==eb.NOT_AVAILABLE&&!(f()&&b()===1)&&ji(u(),"m")&&!Bi),di=v(()=>e.showAutoplayNext&&!Nt()&&ji(u(),"s")),jn=v(()=>y().length>0&&ji(u(),"m")),gr=v(()=>$()||S()),Nr=v(()=>ji(u(),"s")&&!wt()),bn=v(()=>!e.logoHidden&&!wt()),hr=v(()=>Pe.features.fullscreen&&$e()&&(e.logoHidden||ji(u(),Qn?"xs":"s"))&&!(f()&&b()===1)&&(Bi?ye():!0)),Ao=v(()=>(!p()||wt())&&!(Pe.features.interactiveHideTime&&Bi)),nn=v(()=>en&&ji(u(),"m")),ko=v(()=>Qn?qn&&ji(u(),"s"):qn),Xn=v(()=>Qn?fr&&ji(u(),"s"):fr),Fi=v(()=>!wt()&&!p()&&!!(ht!=null&&ht.length)&&n(_n)&&!n(tn)),Lo=v(()=>!C()||!!I()),Zn=v(()=>R()?st("tooltip_interactive_graph_on"):st("tooltip_interactive_graph_off")),Or=v(()=>E()?st("tooltip_context_menu_close"):st("tooltip_context_menu_open")),oo=(lt,pt)=>lt?pt&&pt===Mm.PAUSED?st("tooltip_play"):"":st("tooltip_live"),Mn=v(()=>oo(n(Lo),l())),rn=v(()=>Pe.logoType==="vk_video"?st("tooltip_vk_video_logo"):st("tooltip_vk_logo")),Dr=v(()=>n(mr)?st("tooltip_subtitles_on"):st("tooltip_subtitles_off")),Jn=v(()=>P()?st("tooltip_fullscreen_on"):st("tooltip_fullscreen_off")),Vn=v(()=>m()===eb.CONNECTED?st("tooltip_chromecast_on"):st("tooltip_chromecast_off")),Br=v(()=>O()?st("tooltip_autoplay_on"):st("tooltip_autoplay_off")),yt=K(0),_t=si({}),no=si({}),Li=v(()=>Gt.prevButton),ro=v(()=>Gt.replayButton),Mo=v(()=>Gt.playButton),Vo=v(()=>Gt.nextButton),so=v(()=>Gt.playPrevChapterButton),Si=v(()=>Gt.seekToInteractiveButton),Fr=v(()=>Gt.interactiveGraphButton),er=v(()=>Gt.liveButton),Ro=v(()=>Gt.time),_r=v(()=>Gt.episodes),tr=v(()=>Gt.vkLogo),br=v(()=>Gt.volume),$n=v(()=>Gt.subtitles),sn=v(()=>Gt.settings),Hr=v(()=>Gt.context),an=v(()=>Gt.fullscreen),ts=v(()=>Gt.chromecast),Ye=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:j()?j().right-j().left:0,interactiveGraphButton:ie()?ie().right-ie().left:0,liveButton:Y()?Y().right-Y().left:0,time:ge()?ge().right-ge().left:0,episodes:ce()?ce().right-ce().left:0,vkLogo:ne()?ne().right-ne().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:A()?A().right-A().left:0,additionalButtons:We().length?We().reduce(lt=>[...lt,40],[]):[]})),At=K(0);Re(()=>{(!n(At)||n(At)<n(Ye).time)&&It(()=>N(At,n(Ye).time,!0))});let gi=K(!1);Re(()=>{let lt=0;n(Fi)&&(ji(u(),"xl")?lt=n(Ye).time:lt=60);let pt=n(Ye).prevButton+n(Ye).playButton+n(Ye).nextButton+n(Ye).seekToInteractiveButton+n(Ye).interactiveGraphButton+n(Ye).liveButton+n(At)+lt;N(gi,n(Ao)&&n(yt)>=pt,!0)});let yo=v(()=>n(gi)&&ji(u(),"m")),xo=tb(Wl,260),No=tb(Xu,260);Re(()=>{Ce(),pe(),se(),xo(Di(),Gt,_t,e.showControls),No(Di(),Pt,no,e.showControls)}),Re(()=>{no.bottom=Rt()});let ao=ae();Re(()=>{Oe(),De()&&It(()=>Rl(De(),Oe(),ei))});let Mi;Re(()=>{J(),It(()=>Yu(W,J(),Mi))});function Oo(){ia({isAudioDisabled:vi,isAudioAvailable:X(),isAds:wt(),audioIsNotExistHintCallback:Ze,audioDisabledHintCallback:Ue})&&Tt()}let Do=Bi?pr:Me,_o=v(()=>Se()!==null),Bo=v(()=>n(_o)?Se():n(es)),ln=v(()=>n(Bo)?st("tooltip_pause"):st("tooltip_play")),$r=st("tooltip_episodes"),yr=v(()=>{var lt,pt,Ui,Uo;return n(Rr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ms.prevButton,buttonComponent:Ha,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:eo.bind(null,!0)},tooltipEnabled:!((pt=(lt=ee.callbacks)==null?void 0:lt.uiInfo)!=null&&pt.onPrevButtonMouseEnter)&&!((Uo=(Ui=ee.callbacks)==null?void 0:Ui.uiInfo)!=null&&Uo.onPrevButtonMouseLeave),mouseEnter:()=>{var zi,hi,Vi;(Vi=(hi=(zi=ee.callbacks)==null?void 0:zi.uiInfo)==null?void 0:hi.onPrevButtonMouseEnter)==null||Vi.call(hi,Wn(Di(),_t,"prevButton",e.showControls))},mouseLeave:()=>{var zi,hi,Vi;(Vi=(hi=(zi=ee.callbacks)==null?void 0:zi.uiInfo)==null?void 0:hi.onPrevButtonMouseLeave)==null||Vi.call(hi,Wn(Di(),_t,"prevButton",e.showControls))},tooltipText:st("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),xr=v(()=>n(vr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ms.replayButton,buttonComponent:Kl,buttonComponentProps:{disabled:n(kn),click:Do},tooltipText:st("tooltip_restart"),disabled:n(kn)}:void 0),is=v(()=>n(Yn)?{id:"playButton",type:"desktop-control-panel-left",weight:Ms.playButton,buttonComponent:ql,buttonComponentProps:{disabled:n(Gn),isPlaying:n(es),click:Me},tooltipText:n(ln),disabled:n(Gn)}:void 0),os=v(()=>{var lt,pt,Ui,Uo;return n(io)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ms.nextButton,buttonComponent:Ha,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:ho.bind(null,!0)},tooltipEnabled:!((pt=(lt=ee.callbacks)==null?void 0:lt.uiInfo)!=null&&pt.onNextButtonMouseEnter)&&!((Uo=(Ui=ee.callbacks)==null?void 0:Ui.uiInfo)!=null&&Uo.onNextButtonMouseLeave),mouseEnter:()=>{var zi,hi,Vi;(Vi=(hi=(zi=ee.callbacks)==null?void 0:zi.uiInfo)==null?void 0:hi.onNextButtonMouseEnter)==null||Vi.call(hi,Wn(Di(),_t,"nextButton",e.showControls))},mouseLeave:()=>{var zi,hi,Vi;(Vi=(hi=(zi=ee.callbacks)==null?void 0:zi.uiInfo)==null?void 0:hi.onNextButtonMouseLeave)==null||Vi.call(hi,Wn(Di(),_t,"nextButton",e.showControls))},tooltipText:st("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),je=v(()=>Bi&&n(Xn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ms.playPrevChapterButton,buttonComponent:rc,buttonComponentProps:{disabled:n(Mr),click:e.playPrevChapter},tooltipText:st("tooltip_interactive_go_back"),disabledTooltipContent:st(_s),disabled:n(Mr)}:void 0),Ht=v(()=>Bi&&n(ko)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ms.seekToInteractiveButton,buttonComponent:ac,buttonComponentProps:{disabled:n(on),click:e.seekToInteractive},tooltipText:st("tooltip_interactive_seek"),disabled:n(on),disabledTooltipContent:st(Be())}:void 0),$i=v(()=>Bi&&n(nn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ms.interactiveGraphButton,buttonComponent:lc,buttonComponentProps:{disabled:n(Po),click:Jr.toggle,graphIsOpened:R()},tooltipText:n(Zn)}:void 0),Fo=v(()=>n(Ln)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ms.liveButton,buttonComponent:dc,buttonComponentProps:{isLiveActive:n(Lo),ariaLabel:n(Mn)},tooltipText:n(Mn),disabled:n(Lo)&&l()===Mm.PLAYING}:void 0),lo=v(()=>[n(yr),n(xr),n(is),n(os),n(je),n(Ht),n($i),n(Fo)].filter(lt=>!!lt).sort(Ra)),wr=v(()=>n(bn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Rs.vkLogo,buttonComponent:jd,buttonComponentProps:{targetUrl:jt(),logoClickable:e.logoClickable,click:rt},tooltipText:n(rn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),dn=v(()=>n(di)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Rs.autoplayNext,buttonComponent:sc,tooltipText:n(Br)}:void 0),Sr=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Rs.volume,buttonComponent:rm,buttonComponentProps:{click:Oo,isAds:wt()}})),Ns=v(()=>n(jn)?{id:"subtitles",type:"desktop-control-panel-right",weight:Rs.subtitles,buttonComponent:em,buttonComponentProps:{isSubtitlesEnabled:n(mr),click:ft},tooltipText:n(Dr)}:void 0),yn=v(()=>n(Nr)?{id:"settings",type:"desktop-control-panel-right",weight:Rs.settings,buttonComponent:Bl,buttonComponentProps:{ref$:ao},tooltipText:Oe()?void 0:st("tooltip_settings_off")}:void 0),Os=v(()=>Pe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Rs.context,buttonComponent:_m,buttonComponentProps:{ariaLabel:st("aria_label_context_menu")},className:n(gr)?"":"out-of-view",tooltipText:n(Or)}:void 0),ir=v(()=>n(hr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Rs.fullscreen,buttonComponent:Yd,buttonComponentProps:{isFullscreen:P(),click:e.toggleFullscreen},tooltipText:n(Jn)}:void 0),ns=v(()=>n(mt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Rs.chromecast,buttonComponent:Zd,buttonComponentProps:{state:m(),click:Vr},tooltipText:n(Vn)}:void 0),ct=v(()=>[n(wr),n(dn),n(Sr),n(Ns),n(yn),n(Os),n(ir),n(ns),...We()].filter(lt=>!!lt).sort(Ra)),ci=ee.ui.previewTrackActive,Ho=ee.ui.previewTrackDragInProgress,me=ee.ui.previewTrackAvailable,ut=ee.ui.isPreviewTrackHorizontallyAligned,Yt=v(()=>Z_({onPreviewTrackOpened:ee.actions.internal.previewTrackOpened,getTimelineRef:()=>_t.timeline,isHorizontal:Ke()})),yi=v(()=>n(Yt).progressBarY),Hi=v(()=>n(Yt).controlsY),ti=v(()=>n(Yt).onPointerDown),Zt=v(()=>n(Yt).onPointerMove),co=v(()=>n(Yt).onPointerUp),Rn=v(()=>n(Yt).calculatedHeight),Nn=v(()=>n(Yt).closePreviewTrack);Re(()=>{se()?ri.set(!1):n(Nn)()});let Ii;Vt(()=>()=>Ii&&clearTimeout(Ii));let jl=lt=>{se()||!Qe()||(n(ti)(lt),Ii=setTimeout(()=>{ee.actions.internal.previewTrackDragStarted()},200))},Za=()=>{se()||n(co)(),Ii&&clearTimeout(Ii),Te()&&ee.actions.internal.previewTrackDragFinished()},Ds=lt=>{n(Zt)(lt),!se()&&Qe()&&!se()&&ri.set(!0)},sa=()=>{ri.set(!1)};var aa=Yw(),cn=de(aa);let Ja;var la=T(cn);{var Ur=lt=>{let pt=v(()=>n(yi)()),Ui=v(()=>n(Rn)());Lm(lt,{get animatedOffsetY(){return n(pt)},get animatedPreviewTrackHeight(){return n(Ui)},get canRewindLive(){return e.canRewindLive},get isAds(){return wt()},onTimelineMove:Ds,onTimelinePointerDown:jl,onTimelinePointerUp:Za,onTimelinePointerLeave:sa,get previewTrackAvailable(){return Qe()},get timelineRef(){return _t.timeline},set timelineRef(Uo){_t.timeline=Uo}})};V(la,lt=>{e.showControls&&lt(Ur)})}var rs=k(la,2),Bs=T(rs),da=T(Bs);bi(da,17,()=>n(lo),lt=>lt.id,(lt,pt)=>{ju(lt,{get buttonComponent(){return n(pt).buttonComponent},get buttonComponentProps(){return n(pt).buttonComponentProps},get tooltipText(){return n(pt).tooltipText},get disabledTooltipContent(){return n(pt).disabledTooltipContent},get disabled(){return n(pt).disabled},get className(){return n(pt).className},get tooltipEnabled(){return n(pt).tooltipEnabled},get mouseEnter(){return n(pt).mouseEnter},get mouseLeave(){return n(pt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return _t[n(pt).id]},set ref(Ui){_t[n(pt).id]=Ui}})});var el=k(da,2);{var tl=lt=>{let pt=v(()=>!e.showControls),Ui=v(()=>wt()?ke():He()),Uo=v(()=>wt()?Lt():Je());Qd(lt,{get isHidden(){return n(pt)},isMobile:!1,get showDuration(){return n(yo)},get position(){return n(Ui)},get duration(){return n(Uo)},get ref(){return _t.time},set ref(zi){_t.time=zi}})};V(el,lt=>{n(Ao)&&lt(tl)})}var Xl=k(el,2);let il=v(()=>!n(Fi));Io(Xl,{className:"w-max",get disabled(){return n(il)},get tooltipContent(){return $r},get tooltipVisible(){return e.showControls},get ref(){return _t.episodes},set ref(lt){_t.episodes=lt},children:(lt,pt)=>{var Ui=Le(),Uo=de(Ui);{var zi=hi=>{Jd(hi,{get position(){return He()},get duration(){return Je()},get timeCodes(){return ht}})};V(Uo,hi=>{n(Fi)&&hi(zi)})}_(lt,Ui)},$$slots:{default:!0}}),w(Bs);var ol=k(Bs,2);bi(ol,21,()=>n(ct),lt=>lt.id,(lt,pt)=>{var Ui=Le(),Uo=de(Ui);{var zi=Vi=>{ju(Vi,{get buttonComponent(){return n(pt).buttonComponent},get buttonComponentProps(){return n(pt).buttonComponentProps},get tooltipText(){return n(pt).tooltipText},get disabledTooltipContent(){return n(pt).disabledTooltipContent},get disabled(){return n(pt).disabled},get className(){return n(pt).className},get tooltipVisible(){return e.showControls},get ref(){return _t[n(pt).id]},set ref(ua){_t[n(pt).id]=ua}})},hi=Vi=>{let ua=v(()=>!!n(pt).disabled);xm(Vi,{get id(){return n(pt).id},get testId(){return n(pt).testId},get icon(){return n(pt).icon},get ariaLabel(){return n(pt).ariaLabel},get tooltipText(){return n(pt).tooltipText},get disabledTooltipContent(){return n(pt).disabledTooltipContent},get disabled(){return n(ua)},get onClick(){return n(pt).onClick},get disableMouseupTooltipShow(){return n(pt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return _t[n(pt).id]},set ref(rl){_t[n(pt).id]=rl}})};V(Uo,Vi=>{Y_(n(pt))?Vi(zi):Vi(hi,!1)})}_(lt,Ui)}),w(ol),w(rs),it(rs,lt=>zt(lt),()=>zt()),w(cn),it(cn,lt=>Rt(lt),()=>Rt());var Tr=k(cn,2);{var Zl=lt=>{oc(lt,{get ref(){return _t.interactiveTimeIndicator},set ref(pt){_t.interactiveTimeIndicator=pt}})};V(Tr,lt=>{Lr&&lt(Zl)})}B((lt,pt)=>{Ja=re(cn,1,"wrapper-bottom s-1b",null,Ja,lt),qe(rs,pt),rs.inert=se()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Te()}),()=>`transform: translateY(${n(Hi)()}px);`]),In(Bs,"clientWidth",lt=>N(yt,lt)),_(t,aa),H(),o()}import{ChromecastState as ob,PlaybackState as nb}from"@vkontakte/videoplayer-core/es2018";import{noop as ib}from"@vkontakte/videoplayer-shared/es2018";var Xw=L('<div class="icon icon-error-stub s-22"><div class="inner s-22"></div></div>'),Zw=L('<img class="icon s-22" aria-hidden="true"/>'),Jw={hash:"s-22",code:".icon.s-22{height:24px!important;width:24px!important}.inner.s-22{background-color:var(--white);height:16px;width:16px}"};function Rm(t,e){q(t,Jw);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,ib),r=v(()=>o()===ib),a=v(()=>n(r)||i()),l=K(!1),d=()=>{N(l,!0)},s=v(()=>n(r)?"btn-full-opacity":"");Ft(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,p)=>{var m=Le(),f=de(m);{var b=$=>{var S=Xw();_($,S)},y=$=>{var S=Zw();B(()=>ze(S,"src",e.iconUrl)),gt("error",S,d),Ta(S),_($,S)};V(f,$=>{n(l)?$(b):$(y,!1)})}_(u,m)},$$slots:{default:!0}})}var eS=Ie('<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 Nm(t){Xe(t,{testId:"muted-icon",children:(e,i)=>{var o=eS();_(e,o)},$$slots:{default:!0}})}import{noop as tS}from"@vkontakte/videoplayer-shared/es2018";function Zu(t,e){F(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,tS),r=g(e,"ref",15,void 0),l=ve().ui.t,d=v(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ft(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,p)=>{var m=Le(),f=de(m);{var b=$=>{Nm($,{})},y=$=>{na($,{get size(){return"24"}})};V(f,$=>{i()?$(b):$(y,!1)})}_(u,m)},$$slots:{default:!0}}),H()}var iS=Ie('<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>'),oS=Ie('<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>'),nS=Ie('<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 Om(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=nS(),d=k(de(l));{var s=p=>{var m=iS();_(p,m)},u=p=>{var m=oS();_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}import{noop as rS}from"@vkontakte/videoplayer-shared/es2018";function Dm(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,rS),a=Q("menu_pip");Ft(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Om(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as rb}from"@vkontakte/videoplayer-shared/es2018";var sS=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},aS=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},lS=L("<div><!></div>"),dS=L("<div><!></div>"),cS=L("<div><!></div>"),uS=L("<!> <!> <!>",1),pS=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),fS=L('<div class="wrapper-middle s-19"><!></div>'),mS=L("<div><!></div> <!> <div><!></div>",1),vS=L('<div aria-hidden="true">·</div> <!>',1),gS=L('<!> <!> <div><div><div class="controls mobile s-19"><div class="controls-group contain s-19"><!> <!> <!> <!></div> <div class="controls-group s-19"><!> <!> <!></div></div> <!></div></div> <!>',1),hS={hash:"s-19",code:'.wrapper-bottom.s-19{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;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-19:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-19>:where(.s-19){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-19{height:9px;padding:0 4px 4px}.wrapper-middle.s-19{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-19,.wrapper-top-right.s-19{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-19{right:8px;top:4px}.wrapper-top-left.s-19{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-19,.wrapper-middle-left-second.s-19,.wrapper-middle-right.s-19{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-19{left:12px}.wrapper-middle-left-second.s-19{left:64px}.wrapper-middle-right.s-19{right:12px}.controls.s-19{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-19,.controls-group.s-19{display:flex}.controls-group.contain.s-19{min-width:0}.controls-group.s-19 >:not(:first-child){margin-left:8px}.hidden.s-19{opacity:0;visibility:hidden}.controls-hidden.s-19{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-19{transition:none}.overlay-mobile.s-19{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-19,.wrapper-top-right.fullscreen.s-19{top:16px}.controls-wrapper.fullscreen.s-19{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-19{left:44px;top:12px}.wrapper-top-right.fullscreen.s-19{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-19{left:44px}.wrapper-middle-left-second.fullscreen.s-19{left:96px}.wrapper-middle-right.fullscreen.s-19{right:44px}.controls-wrapper.fullscreen.s-19{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}'};function Bm(t,e){var an,ts;F(e,!0),q(t,hS);let[i,o]=Ve(),r=()=>x(ki,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(Gt,"$disabledControls$",i),l=()=>x(Nt,"$playbackState$",i),d=()=>x(Xo,"$adPlaybackState",i),s=()=>x(ee,"$isEnded$",i),u=()=>x(Ct,"$playerSize",i),p=()=>x(ft,"$scrubbingInProgress",i),m=()=>x(xt,"$chromecastState$",i),f=()=>x(Ze,"$isPictureInPictureActive",i),b=()=>x(Ue,"$pictureInPictureType$",i),y=()=>x($e,"$mobileNotReportControlHidden$",i),$=()=>x(dt,"$chromecastHidden",i),S=()=>x(zt,"$playerPhase",i),C=()=>x(vo,"$pipHidden",i),I=()=>x(Ge,"$currentGridType$",i),R=()=>x(vi,"$vkLogoHidden",i),E=()=>x(pi,"$volumeHidden",i),P=()=>x(xe,"$isLive$",i),O=()=>x(ot,"$settingsMenuVisible",i),D=()=>x(rt,"$isRewindableLive$",i),U=()=>x(Me,"$isActiveLive$",i),z=()=>x(ye,"$isAudioAvailable$",i),G=()=>x(Tt,"$muted$",i),le=()=>x(Pe,"$volume$",i),j=()=>x(st,"$isInteractiveTime$",i),ie=()=>x(ko,"$settingButtonRef$",i),Y=()=>x(ht,"$startedByKeyboard$",i),ge=()=>x(hn,"$isFullscreen",i),ce=()=>x(Ot,"$additionalButtons$",i),ne=()=>x(Zi,"$autoplayNextToggleHidden",i),_e=()=>x(ei,"$crashed$",i),we=()=>x(li,"$settingsHidden",i),Z=()=>x(Zo,"$graphIsOpened$",i),Ne=()=>x(Ji,"$adPosition",i),ue=()=>x(_i,"$adDuration",i),A=()=>x(jt,"$position$",i),We=()=>x(wt,"$duration$",i),Ce=g(e,"playerControlsWrapperRef",15,void 0),pe=g(e,"playerControlsRef",15,void 0),se=g(e,"isAds",3,!1),Oe=g(e,"logoTargetUrl",3,""),De=g(e,"isOneVideoPlaylist",3,!1),J=g(e,"customFullscreenSupported",3,!0),X=ve(),Se=$o(),Be=kt(),Ke=X.actions.internal.toggleMuted,Qe=X.actions.internal.togglePlay,Te=X.actions.internal.pause,ke=X.actions.internal.prevVideoClick,He=X.actions.internal.nextVideoClick,Lt=X.actions.internal.checkFullscreenSupport,Je=(an=X.callbacks)==null?void 0:an.onAudioDoesNotExistHint,Rt=(ts=X.callbacks)==null?void 0:ts.onAudioDisabledHint,zt=X.playerPhase,wt=X.state.duration$,jt=X.state.positionWithScrubbing$,Nt=X.state.playbackState$,ye=X.state.isAudioAvailable$,be=X.state.isAudioDisabled,ee=X.state.isEnded$,xe=X.state.isLive$,Pe=X.state.volume$,Tt=X.state.muted$,Me=X.state.isActiveLive$,rt=X.state.isRewindableLive$,ft=X.ui.scrubbingInProgress,$e=X.ui.mobileNotReportControlHidden$,{isActive$:Ze,type$:Ue}=Se.pictureInPicture$,ot=X.ui.settingsMenu.visible$,Xt=X.ui.settingsMenu.openedByBtnKeyboard$,ni=X.ui.controls,{volume:pi,vkLogo:vi,autoplayNextToggle:Zi,pip:vo,settings:li,chromecast:dt}=X.ui.hiddenControls,Ci=X.actions.internal.getVideoEpisodes(),Qt=X.webApi.pictureInPictureApi,xt=X.state.chromecastState$,ei=X.state.crashed$,Gt=ni.disabledControls$,ht=X.ui.startedByKeyboard$,Ge=X.ui.currentGridType$,_i=X.ads.duration,Ji=X.ads.position,Xo=X.ads.playbackState,hn=X.ui.isFullscreen,Ct=X.ui.playerSize,Ot=X.ui.additionalButtonsDeprecated$,W=X.actions.internal.getVideoElement,Pt=X.actions.internal.replayInteractive,ri=X.state.isInteractive,st=X.state.isInteractiveTime$,St=X.state.showInteractiveGraph,Kt=X.state.showSeekToInteractive,at=X.state.showPlayPrevChapter,Ai=X.state.showInteractiveTimeIndicator,ki=Se.seekToInteractiveDisabledTooltip$,Zo=Se.graphIsOpened$,Eo=X.ui.controlBlocks,go=v(()=>Q(X.state.playPrevChapterDisabledTooltip)),Di=v(()=>Q(r())),pr=v(()=>a().has("EPISODE_BUTTON")),eo=v(()=>a().has("GRAPH_BUTTON")),ho=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Bi=v(()=>a().has("PLAY_BUTTON")),Jo=v(()=>a().has("REPLAY_BUTTON")),en=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),qn=v(()=>l()===nb.PLAYING),fr=v(()=>d()==="paused"),Lr=v(()=>s()&&!se()&&!ri),_s=v(()=>!s()||se()),Zr=v(()=>e.showNextPrevButtons&&!se()&&e.prevButtonActive),Jr=v(()=>e.showNextPrevButtons&&!se()&&e.nextButtonActive),Qn=v(()=>u().width>300),tn=v(()=>u().width>400),Po=v(p),on=v(()=>m()!==ob.NOT_AVAILABLE&&!(f()&&b()===1)&&!y()&&!ri&&!$()),Gn=v(()=>S()==="LiveWaitingStart"),kn=v(()=>!!Qt&&m()!==ob.CONNECTED&&!y()&&(b()===1&&n(Gn)||!n(Gn))&&!n(Po)&&!ri&&!C()),Mr=K(!1);Vt(()=>{let Ye=Qt==null?void 0:Qt.info.isActive$.subscribe(At=>N(Mr,At,!0));return()=>Ye==null?void 0:Ye.unsubscribe()});let Vr=v(()=>!n(Po)&&ji(I(),"s")),es=v(()=>!e.logoHidden&&u().width>350&&!R()),mr=v(()=>Be.features.fullscreen&&Lt()&&!(f()&&b()===1)&&(ri?J():!0)&&!n(Po)&&!n(Mr)),to=v(()=>!E()&&!n(Po)),vr=v(()=>(!P()||se())&&u().width>260&&!n(Po)&&!(Be.features.interactiveHideTime&&ri)),Yn=v(()=>O()||e.showControls),_n=v(()=>!se()&&!P()&&!!(Ci!=null&&Ci.length)&&n(Qn)&&!n(pr)&&!n(Po)),io=v(()=>!D()||!!U()),Rr=v(()=>St&&ji(I(),"m")),Ln=v(()=>!z()||G()||le()===0),mt=si({}),di=si({}),jn=rb(Wl,260),gr=rb(Xu,260);Re(()=>{u(),j(),jn(W(),ni,mt,e.showControls),gr(W(),Eo,di,e.showControls)});let Nr=()=>X.actions.internal.toggleChromecast();async function bn(){Qt!=null&&Qt.isActive()?await(Qt==null?void 0:Qt.exit()):await(Qt==null?void 0:Qt.request())}function hr(){ia({isAudioDisabled:be,audioDisabledHintCallback:Rt,isAudioAvailable:z(),audioIsNotExistHintCallback:Je,isAds:se()})&&Ke()}let Ao=K(""),nn=(Ye,At)=>{if(!Ye){N(Ao,Q("tooltip_live"),!0);return}At&&At===nb.PAUSED&&N(Ao,Q("tooltip_play"),!0)};Re(()=>{nn(n(io),l())});let ko=ae();Re(()=>{ie()&&Rl(ie(),O(),Xt)}),Re(()=>{Yu(ht,Y(),mt.playButton)}),Re(()=>{di.bottom=Ce()});var Xn=gS(),Fi=de(Xn);{var Lo=Ye=>{var At=pS(),gi=de(At);let yo;var xo=k(gi,2);let No;it(xo,ct=>di.topLeft=ct,()=>di==null?void 0:di.topLeft);var ao=k(xo,2);let Mi;var Oo=T(ao);bi(Oo,1,ce,({iconUrl:ct,ariaLabel:ci,testId:Ho,onClick:me,tooltip:ut})=>ct,(ct,ci)=>{let Ho=()=>n(ci).iconUrl,me=()=>n(ci).ariaLabel,ut=()=>n(ci).testId,Yt=()=>n(ci).onClick,yi=()=>n(ci).tooltip,Hi=v(()=>{var ti;return(ti=me())!=null?ti:yi()});Rm(ct,{get iconUrl(){return Ho()},get ariaLabel(){return n(Hi)},get testId(){return ut()},get onClick(){return Yt()}})});var Do=k(Oo,2);{var _o=ct=>{sc(ct,{get ref(){return mt.autoplayNextToggle},set ref(ci){mt.autoplayNextToggle=ci}})};V(Do,ct=>{e.showAutoplayNext&&!De()&&!ne()&&ct(_o)})}var Bo=k(Do,2);{var ln=ct=>{Zd(ct,{isMobile:!0,click:Nr,get state(){return m()},get ref(){return mt.chromecast},set ref(ci){mt.chromecast=ci}})};V(Bo,ct=>{n(on)&&ct(ln)})}var $r=k(Bo,2);{var yr=ct=>{Dm(ct,{click:bn,get isPictureInPictureActive(){return f()},get ref(){return mt.pip},set ref(ci){mt.pip=ci}})};V($r,ct=>{n(kn)&&ct(yr)})}var xr=k($r,2);{var is=ct=>{Bl(ct,{get ref$(){return ko}})};V(xr,ct=>{_e()&&!we()&&ct(is)})}var os=k(xr,2);{var je=ct=>{jd(ct,{get click(){return Te},get targetUrl(){return Oe()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(ci){mt.vkLogo=ci}})};V(os,ct=>{n(es)&&ct(je)})}w(ao),it(ao,ct=>di.topRight=ct,()=>di==null?void 0:di.topRight);var Ht=k(ao,2);let $i;var Fo=T(Ht);{var lo=ct=>{let ci=v(()=>ke.bind(null,!0));Ha(ct,{get click(){return n(ci)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(Ho){mt.prevButton=Ho}})};V(Fo,ct=>{n(Zr)&&ct(lo)})}var wr=k(Fo,2);{var dn=ct=>{ql(ct,{get disabled(){return n(Bi)},get click(){return Qe},isMobile:!0,get isPlaying(){return n(qn)},get ref(){return mt.playButton},set ref(ci){mt.playButton=ci}})};V(wr,ct=>{n(_s)&&ct(dn)})}var Sr=k(wr,2);{var Ns=ct=>{Kl(ct,{get disabled(){return n(Jo)},get click(){return Qe},isMobile:!0,get ref(){return mt.replayButton},set ref(ci){mt.replayButton=ci}})};V(Sr,ct=>{n(Lr)&&ct(Ns)})}var yn=k(Sr,2);{var Os=ct=>{let ci=v(()=>He.bind(null,!0));Ha(ct,{get click(){return n(ci)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(Ho){mt.nextButton=Ho}})};V(yn,ct=>{n(Jr)&&ct(Os)})}w(Ht),it(Ht,ct=>di.middle=ct,()=>di==null?void 0:di.middle);var ir=k(Ht,2);{var ns=ct=>{var ci=uS(),Ho=de(ci);{var me=ti=>{var Zt=lS();let co;Zt.__click=[sS,en,e,go];var Rn=T(Zt);let Nn=v(()=>!e.showControls);rc(Rn,{get hidden(){return n(Nn)},get disabled(){return n(en)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(Ii){mt.playPrevChapterButton=Ii}}),w(Zt),B(Ii=>co=re(Zt,1,"wrapper-middle-left s-19",null,co,Ii),[()=>({fullscreen:ge(),hidden:!e.showControls})]),_(ti,Zt)};V(Ho,ti=>{at&&ti(me)})}var ut=k(Ho,2);{var Yt=ti=>{var Zt=dS();let co;var Rn=T(Zt);let Nn=v(()=>!e.showControls&&!Z());lc(Rn,{get hidden(){return n(Nn)},get disabled(){return n(eo)},get click(){return Zo.toggle},get graphIsOpened(){return Z()},get ref(){return mt.interactiveGraphButton},set ref(Ii){mt.interactiveGraphButton=Ii}}),w(Zt),B(Ii=>co=re(Zt,1,yd(at?"wrapper-middle-left-second":"wrapper-middle-left"),"s-19",co,Ii),[()=>({fullscreen:ge(),hidden:!e.showControls&&!Z()})]),_(ti,Zt)};V(ut,ti=>{n(Rr)&&ti(Yt)})}var yi=k(ut,2);{var Hi=ti=>{var Zt=cS();let co;Zt.__click=[aS,ho,e,Di];var Rn=T(Zt);let Nn=v(()=>!e.showControls);ac(Rn,{get hidden(){return n(Nn)},get disabled(){return n(ho)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(Ii){mt.seekToInteractiveButton=Ii}}),w(Zt),B(Ii=>co=re(Zt,1,"wrapper-middle-right s-19",null,co,Ii),[()=>({fullscreen:ge(),hidden:!e.showControls})]),_(ti,Zt)};V(yi,ti=>{Kt&&ti(Hi)})}_(ct,ci)};V(ir,ct=>{ri&&!p()&&ct(ns)})}B((ct,ci,Ho,me)=>{yo=re(gi,1,"overlay-mobile s-19",null,yo,ct),No=re(xo,1,"wrapper-top-left s-19",null,No,ci),Mi=re(ao,1,"wrapper-top-right s-19",null,Mi,Ho),$i=re(Ht,1,"wrapper-middle s-19",null,$i,me)},[()=>({hidden:!n(Yn)}),()=>({hidden:!e.showControls,fullscreen:ge()}),()=>({hidden:!e.showControls&&!y(),fullscreen:ge()}),()=>({hidden:!e.showControls||p()||e.endScreenShown&&e.showNextPrevButtons})]),_(Ye,At)};V(Fi,Ye=>{se()||Ye(Lo)})}var Zn=k(Fi,2);{var Or=Ye=>{var At=mS(),gi=de(At);let yo;var xo=T(gi);Zu(xo,{get muted(){return G()},click:hr,get ref(){return mt.volume},set ref(_o){mt.volume=_o}}),w(gi);var No=k(gi,2);{var ao=_o=>{var Bo=fS(),ln=T(Bo);let $r=v(()=>!n(fr));ql(ln,{get disabled(){return n(Bi)},get click(){return Qe},isMobile:!0,get isPlaying(){return n($r)},get ref(){return mt.playButton},set ref(yr){mt.playButton=yr}}),w(Bo),_(_o,Bo)};V(No,_o=>{n(fr)&&_o(ao)})}var Mi=k(No,2);let Oo;var Do=T(Mi);cc(Do,{get position(){return Ne()},get duration(){return ue()}}),w(Mi),B((_o,Bo)=>{yo=re(gi,1,"wrapper-top-right s-19",null,yo,_o),Oo=re(Mi,1,"wrapper-bottom ads-timeline-mobile s-19",null,Oo,Bo)},[()=>({fullscreen:ge()}),()=>({fullscreen:ge()})]),_(Ye,At)};V(Zn,Ye=>{se()&&d()!=="inactive"&&Ye(Or)})}var oo=k(Zn,2);let Mn;var rn=T(oo);let Dr;var Jn=T(rn),Vn=T(Jn),Br=T(Vn);{var yt=Ye=>{Io(Ye,{get disabled(){return n(Jo)},get ref(){return mt.replayButton},set ref(At){mt.replayButton=At},children:(At,gi)=>{Kl(At,{get disabled(){return n(Jo)},get click(){return Pt}})},$$slots:{default:!0}})};V(Br,Ye=>{ri&&Ye(yt)})}var _t=k(Br,2);{var no=Ye=>{Io(Ye,{get ref(){return mt.liveButton},set ref(At){mt.liveButton=At},children:(At,gi)=>{dc(At,{get isLiveActive(){return n(io)},isMobile:!0,get ariaLabel(){return n(Ao)}})},$$slots:{default:!0}})};V(_t,Ye=>{!se()&&P()&&Ye(no)})}var Li=k(_t,2);{var ro=Ye=>{let At=v(()=>se()?Ne():A()),gi=v(()=>se()?ue():We()),yo=v(()=>!e.showControls);Qd(Ye,{get showDuration(){return n(tn)},get position(){return n(At)},get duration(){return n(gi)},isMobile:!0,get isHidden(){return n(yo)},get ref(){return mt.time},set ref(xo){mt.time=xo}})};V(Li,Ye=>{n(vr)&&Ye(ro)})}var Mo=k(Li,2);let Vo=v(()=>!n(_n));Io(Mo,{className:"w-max",get disabled(){return n(Vo)},get ref(){return mt.episodes},set ref(Ye){mt.episodes=Ye},children:(Ye,At)=>{var gi=Le(),yo=de(gi);{var xo=No=>{var ao=vS(),Mi=k(de(ao),2);Jd(Mi,{get position(){return A()},get duration(){return We()},get timeCodes(){return Ci}}),_(No,ao)};V(yo,No=>{n(_n)&&No(xo)})}_(Ye,gi)},$$slots:{default:!0}}),w(Vn),it(Vn,Ye=>di.bottomLeft=Ye,()=>di==null?void 0:di.bottomLeft);var so=k(Vn,2),Si=T(so);{var Fr=Ye=>{Io(Ye,{get ref(){return mt.volume},set ref(At){mt.volume=At},children:(At,gi)=>{Zu(At,{get muted(){return n(Ln)},click:hr})},$$slots:{default:!0}})};V(Si,Ye=>{n(to)&&Ye(Fr)})}var er=k(Si,2);{var Ro=Ye=>{Io(Ye,{get ref(){return mt.settings},set ref(At){mt.settings=At},children:(At,gi)=>{Bl(At,{get ref$(){return ko}})},$$slots:{default:!0}})};V(er,Ye=>{n(Vr)&&Ye(Ro)})}var _r=k(er,2);{var tr=Ye=>{Io(Ye,{get ref(){return mt.fullscreen},set ref(At){mt.fullscreen=At},children:(At,gi)=>{Yd(At,{get click(){return e.toggleFullscreen},get isFullscreen(){return ge()}})},$$slots:{default:!0}})};V(_r,Ye=>{n(mr)&&Ye(tr)})}w(so),it(so,Ye=>di.bottomRight=Ye,()=>di==null?void 0:di.bottomRight),w(Jn),it(Jn,Ye=>pe(Ye),()=>pe());var br=k(Jn,2);let $n=v(()=>!e.showControls);za(br,{get isHidden(){return n($n)},get isAds(){return se()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return D()},get ref(){return mt.timeline},set ref(Ye){mt.timeline=Ye}}),w(rn),w(oo),it(oo,Ye=>Ce(Ye),()=>Ce());var sn=k(oo,2);{var Hr=Ye=>{oc(Ye,{get ref(){return mt.interactiveTimeIndicator},set ref(At){mt.interactiveTimeIndicator=At}})};V(sn,Ye=>{Ai&&Ye(Hr)})}B((Ye,At)=>{Mn=re(oo,1,"wrapper-bottom mobile s-19",null,Mn,Ye),Dr=re(rn,1,"controls-wrapper s-19",null,Dr,At)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ge()})]),_(t,Xn),H(),o()}nt(["click"]);function uc(t,e){F(e,!0);let[i,o]=Ve(),r=()=>x(C,"$isMobile",i),a=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),s=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),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,sb),$=g(e,"onDisabledSeekToInteractiveClick",3,sb),C=ve().ui.isMobile,I=K(!1);Vt(()=>{let O=setTimeout(()=>N(I,!0),0);return()=>clearTimeout(O)});var R=Le(),E=de(R);{var P=O=>{var D=Le(),U=de(D);{var z=le=>{Bm(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return 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(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},G=le=>{Vm(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return 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(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};V(U,le=>{r()?le(z):le(G,!1)})}_(O,D)};V(E,O=>{n(I)&&O(P)})}_(t,R),H(),o()}var _S=Ie('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function pc(t,e){F(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${mn(e.size)}${n(i)}`);Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},children:(r,a)=>{var l=_S();_(r,l)},$$slots:{default:!0}}),H()}var bS=Ie('<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 Fm(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"}`);Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},children:(a,l)=>{var d=bS();_(a,d)},$$slots:{default:!0}}),H()}var $S=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),yS=L('<span class="hot-key-helpers-text s-x"> </span>'),xS=L("<!> <!>",1),wS=L("<div><!></div>"),SS={hash:"s-x",code:'.hot-key-helpers-container.s-x{align-items:center;animation:s-x-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-x{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-x{left:calc(75% - 100px)}.hot-key-helpers-text.s-x{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-x{animation:s-x-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-x-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-x-fadeOut{0%{opacity:1}to{opacity:0}}'};function Hm(t,e){F(e,!0),q(t,SS);let[i,o]=Ve(),r=()=>x(e.data,"$data",i),a=ve(),{features:l}=kt(),d=a.ui.t,s=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=wS();let y;var $=T(b);{var S=C=>{var I=xS(),R=de(I);let E=v(()=>`hotkey-helper-icon-${n(m).toLowerCase()}`);Pd(R,{get testId(){return n(E)},children:(D,U)=>{var z=$S(),G=de(z);{var le=J=>{let X=v(()=>n(m)==="BACKWARD_SEEK");Fm(J,{get reversed(){return n(X)}})};V(G,J=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(m))&&J(le)})}var j=k(G,2);{var ie=J=>{Vs(J,{get size(){return"48"}})};V(j,J=>{n(m)==="PAUSE"&&!l.playbackStatusShow&&J(ie)})}var Y=k(j,2);{var ge=J=>{Pn(J,{get size(){return"48"}})};V(Y,J=>{n(m)==="PLAY"&&!l.playbackStatusShow&&J(ge)})}var ce=k(Y,2);{var ne=J=>{nc(J,{get size(){return"48"}})};V(ce,J=>{n(m)==="REPLAY"&&!l.playbackStatusShow&&J(ne)})}var _e=k(ce,2);{var we=J=>{oa(J,{get size(){return"48"},type:"off"})};V(_e,J=>{n(m)==="SUBTITLES_OFF"&&J(we)})}var Z=k(_e,2);{var Ne=J=>{oa(J,{get size(){return"48"}})};V(Z,J=>{n(m)==="SUBTITLES_ON"&&J(Ne)})}var ue=k(Z,2);{var A=J=>{let X=v(()=>n(m)==="RATE_DOWN");pc(J,{get size(){return"48"},get reversed(){return n(X)},testId:"rate-change-icon"})};V(ue,J=>{["RATE_DOWN","RATE_UP"].includes(n(m))&&J(A)})}var We=k(ue,2);{var Ce=J=>{let X=v(()=>n(m)==="EPISODE_PREV");ra(J,{get size(){return"48"},get reversed(){return n(X)}})};V(We,J=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(m))&&J(Ce)})}var pe=k(We,2);{var se=J=>{na(J,{get size(){return"48"},volume:0})};V(pe,J=>{n(m)==="MUTE"&&J(se)})}var Oe=k(pe,2);{var De=J=>{na(J,{get size(){return"48"},volume:1})};V(Oe,J=>{n(m)==="VOLUME"&&J(De)})}_(D,z)},$$slots:{default:!0}});var P=k(R,2);{var O=D=>{var U=yS(),z=T(U,!0);w(U),B(()=>fe(z,n(f))),_(D,U)};V(P,D=>{n(f)&&D(O)})}_(C,I)};V($,C=>{!n(s)&&n(m)&&C(S)})}w(b),B(C=>y=re(b,1,"hot-key-helpers-container s-x",null,y,C),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(p)})]),_(t,b),H(),o()}var TS=(t,e,i,o,r,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":a();break}},CS=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},IS=L('<div tabindex="0" role="button"><div class="button-block s-o" aria-hidden="true"><div class="button-row s-o"><div class="button button-up s-o"><!></div> <div class="button button-right s-o"><!></div></div> <div class="button-row s-o"><div class="button button-left s-o"><!></div> <div class="button button-down s-o"><!></div></div></div></div>'),ES={hash:"s-o",code:".immersive-controls.s-o{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-o{left:20px;top:50px}.button-block.s-o{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-o{display:flex;flex-direction:row;position:relative}.button.s-o{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-o svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-o svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-o svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-o svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-o svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-o:hover svg{opacity:1}"};function fc(t,e){F(e,!0),q(t,ES);let i=g(e,"isShifted",3,!1),o=ve(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),p=Q("aria_label_spherical_control");var m=IS();let f;m.__keydown=[TS,r,a,l,s,d],m.__keyup=[CS,r,u];var b=T(m),y=T(b),$=T(y);$.__mousedown=a,$.__mouseup=u;var S=T($);Ar(S,{direction:"up",useBtnColor:!0}),w($);var C=k($,2);C.__mousedown=d,C.__mouseup=u;var I=T(C);Ar(I,{direction:"up",useBtnColor:!0}),w(C),w(y);var R=k(y,2),E=T(R);E.__mousedown=s,E.__mouseup=u;var P=T(E);Ar(P,{direction:"up",useBtnColor:!0}),w(E);var O=k(E,2);O.__mousedown=l,O.__mouseup=u;var D=T(O);Ar(D,{direction:"up",useBtnColor:!0}),w(O),w(R),w(b),w(m),B(U=>{f=re(m,1,"immersive-controls s-o",null,f,U),ze(m,"aria-label",p)},[()=>({"m-shifted":i()})]),gt("mouseleave",$,u),gt("mouseleave",C,u),gt("mouseleave",E,u),gt("mouseleave",O,u),_(t,m),H()}nt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as lb,Subscription as PS,filterChanged as AS,filter as kS}from"@vkontakte/videoplayer-shared/es2018";var ab=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Ju=class{constructor(){this.flickeringTimeout=ab(1e3);this.subscriptions=new PS;this.isAuto=!1;this.isLive=!1;this.captions$=new lb([]);this.captionsPrepared$=new lb([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(kS(()=>this.isEnabled()),AS()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:a,value:l},d)=>(o&&!d||(a==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var LS=L('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),MS=L('<span class="caption-line s-d"><span class="caption-segment s-d"></span></span>'),VS=L('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),RS=L('<div><span class="caption s-d"><!></span></div>'),NS=L("<div><!></div>"),OS={hash:"s-d",code:".subtitles-container.s-d{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-d{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-d{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-d .subtitles-caption:where(.s-d){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-d{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-d{bottom:8%}.subtitles-container.auto.s-d .subtitles-caption:where(.s-d){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-d{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-d .caption:where(.s-d){width:100%}.caption-line.s-d{display:block;text-align:center}.subtitles-container.auto.s-d .caption-line:where(.s-d){text-align:left}.caption-segment.s-d{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function Ka(t,e){F(e,!0),q(t,OS);let[i,o]=Ve(),r=()=>x(f,"$currentSubtitle$",i),a=()=>x(y,"$isLive$",i),l=()=>x($,"$isFullscreen",i),d=()=>x(S,"$previewTrackActive",i),s=()=>x(b,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),p=ve(),m=kt(),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(()=>!!a()),R=v(()=>e.playerSize.width*.02),E=v(()=>u()&&!l()||n(R)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:n(R)),P=K(null);Re(()=>{var j,ie,Y;(j=n(P))==null||j.setIsAuto(n(C)),(ie=n(P))==null||ie.setIsLive(n(I)),(Y=n(P))==null||Y.setCaptions(e.captions)});let O=K(si([[]]));Vt(()=>{N(P,new Ju().subscribe(),!0);let j=n(P).captionsPrepared$.subscribe(ie=>{N(O,ie,!0)});return()=>{var ie;(ie=n(P))==null||ie.destroy(),j.unsubscribe()}}),Vt(()=>{if(n(C)){let j=window.setTimeout(()=>{b.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(j)}}else b.set(!1)});let D=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var U=NS();let z;var G=T(U);{var le=j=>{var ie=RS();let Y;var ge=T(ie),ce=T(ge);{var ne=we=>{var Z=LS(),Ne=T(Z),ue=T(Ne,!0);w(Ne),w(Z),B(A=>{var We;qe(Ne,`font-size: ${(We=n(E))!=null?We:""}px`),fe(ue,A)},[()=>Q("subtitles_auto_caption")]),_(we,Z)},_e=(we,Z)=>{{var Ne=A=>{var We=Le(),Ce=de(We);bi(Ce,17,()=>n(O),bd,(pe,se)=>{var Oe=MS(),De=T(Oe);bi(De,21,()=>n(se),({value:J,timeAppeared:X})=>X,(J,X)=>{let Se=()=>n(X).value,Be=()=>n(X).timeAppeared;var Ke=Le(),Qe=de(Ke);{var Te=ke=>{var He=us();B(()=>fe(He,Se())),_(ke,He)};V(Qe,ke=>{(!Be()||Be()<=e.position)&&ke(Te)})}_(J,Ke)}),w(De),w(Oe),B(()=>{var J;return qe(De,`font-size: ${(J=n(E))!=null?J:""}px`)}),_(pe,Oe)}),_(A,We)},ue=A=>{var We=Le(),Ce=de(We);bi(Ce,17,()=>e.captions,({value:pe})=>pe,(pe,se)=>{let Oe=()=>n(se).value;var De=VS(),J=T(De),X=T(J,!0);w(J),w(De),B(()=>{var Se;qe(J,`font-size: ${(Se=n(E))!=null?Se:""}px`),fe(X,Oe())}),_(pe,De)}),_(A,We)};V(we,A=>{var We;n(C)&&((We=n(O))!=null&&We.length)?A(Ne):A(ue,!1)},Z)}};V(ce,we=>{n(C)&&s()?we(ne):we(_e,!1)})}w(ge),w(ie),B(we=>{var Z;Y=re(ie,1,"subtitles-caption s-d",null,Y,we),qe(ie,`--subtitles-caption-margin: ${(Z=n(D))!=null?Z:""}%`)},[()=>({mobile:u()})]),_(j,ie)};V(G,j=>{var ie;(e.captions.length||(ie=n(O))!=null&&ie.length)&&j(le)})}w(U),B(j=>z=re(U,1,"subtitles-container s-d",null,z,j),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(C)&&!n(I)&&!s()})]),_(t,U),H(),o()}import{ChromecastState as DS}from"@vkontakte/videoplayer-core/es2018";var BS=L('<div class="text s-n"> </div>'),FS=L('<div><div class="icon_wrapper s-n"><!></div> <!></div>'),HS={hash:"s-n",code:".wrapper.s-n{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-n{background-size:cover}.icon_wrapper.s-n{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-n{margin-top:20px}"};function mc(t,e){F(e,!0),q(t,HS);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=kt();var r=FS();let a;var l=T(r),d=T(l);Xd(d,{get size(){return"48"},get iconState(){return DS.CONNECTED}}),w(l);var s=k(l,2);{var u=p=>{var m=BS(),f=T(m);w(m),B(()=>{var b;return fe(f,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),_(p,m)};V(s,p=>{i()&&p(u)})}w(r),B(p=>{a=re(r,1,"wrapper s-n",null,a,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 US=Ie('<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 Um(t){Xe(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=US();_(e,o)},$$slots:{default:!0}})}var zS=L('<div class="container s-4"><!></div>'),WS={hash:"s-4",code:".container.s-4{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function qa(t){q(t,WS);var e=zS(),i=T(e);Um(i,{}),w(e),_(t,e)}var KS=L('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),qS=L("<div><!></div>"),QS={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 Qa(t,e){F(e,!0),q(t,QS);let i=g(e,"iconVisible",3,!0),o=ve(),r=kt(),a=o.ui.startedByKeyboard$,l=Q("tooltip_play"),d=b=>{var $;let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),a.set(!0),($=e.startVideo)==null||$.call(e))},s=b=>{var y,$;b.stopPropagation(),(y=e.startVideo)==null||y.call(e),($=e.onClick)==null||$.call(e,b)};var u=qS();let p;u.__click=s,u.__contextmenu=function(...b){var y;(y=e.onContextMenu)==null||y.apply(this,b)};var m=T(u);{var f=b=>{var y=KS();y.__keydown=d;var $=k(T(y),2);Pn($,{get size(){return"48"}}),w(y),B(()=>ze(y,"aria-label",l)),_(b,y)};V(m,b=>{i()&&b(f)})}return w(u),B(b=>{p=re(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:s})}nt(["click","contextmenu","keydown"]);var GS=L('<div data-testid="video_title"><span> </span></div>'),YS={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 zm(t,e){F(e,!0),q(t,YS);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),a=K(void 0);Vt(()=>{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(a))==null||m.addEventListener("transitionend",p),()=>{var f;return(f=n(a))==null?void 0:f.removeEventListener("transitionend",p)}});var l=GS();let d;var s=T(l),u=T(s,!0);w(s),it(s,p=>r(p),()=>r()),w(l),it(l,p=>N(a,p),()=>n(a)),B(p=>{d=re(l,1,"title s-12",null,d,p),fe(u,i())},[()=>({hidden:o()})]),_(t,l),H()}import{throttleFn as i2}from"@vkontakte/videoplayer-shared/es2018";var jS=L('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),XS=L('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),ZS=L('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),JS=L('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div>'),e2=L("<div><!> <!> <!> <!></div>"),t2={hash:"s-1a",code:".timer__container.s-1a{align-items:flex-start;display:flex;justify-content:center}.cell.s-1a{align-items:center;display:flex;flex-direction:column}.cell__value.s-1a{font-size:48px;font-weight:600;line-height:1.2}.small.s-1a .cell__value:where(.s-1a){font-size:24px}.cell__unit.s-1a{font-size:14px;font-weight:400;line-height:1.2}.small.s-1a .cell__unit:where(.s-1a){font-size:12px}.timer__points.s-1a{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1a .timer__points:where(.s-1a){font-size:20px}"};function Wm(t,e){F(e,!0),q(t,t2);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=U=>String(U).padStart(2,"0"),p=U=>Math.max(U.length,1),m=U=>`${(e.isSmallSize?s: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 j=U%60;N(a,u(j),!0)},b=()=>{let U=Math.floor(Date.now()/1e3),z=e.startTime-U;f(z),z>=1?l=requestAnimationFrame(b):e.onTimerOver()};Vt(()=>{l=requestAnimationFrame(b)}),fn(()=>{cancelAnimationFrame(l)});var y=e2();let $;var S=T(y);{var C=U=>{var z=jS(),G=de(z);let le;var j=T(G),ie=T(j,!0);w(j);var Y=k(j,2),ge=T(Y,!0);w(Y),w(G);var ce=k(G,2),ne=T(ce,!0);w(ce),B((_e,we,Z)=>{le=qe(G,"",le,{width:_e}),fe(ie,n(i)),fe(ge,we),fe(ne,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=XS(),G=de(z);let le;var j=T(G),ie=T(j,!0);w(j);var Y=k(j,2),ge=T(Y,!0);w(Y),w(G);var ce=k(G,2),ne=T(ce,!0);w(ce),B((_e,we,Z)=>{le=qe(G,"",le,{width:_e}),fe(ie,n(o)),fe(ge,we),fe(ne,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=ZS(),G=de(z);let le;var j=T(G),ie=T(j,!0);w(j);var Y=k(j,2),ge=T(Y,!0);w(Y),w(G);var ce=k(G,2),ne=T(ce,!0);w(ce),B((_e,we,Z)=>{le=qe(G,"",le,{width:_e}),fe(ie,n(r)),fe(ge,we),fe(ne,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=JS();let G;var le=T(z),j=T(le,!0);w(le);var ie=k(le,2),Y=T(ie,!0);w(ie),w(z),B((ge,ce)=>{G=qe(z,"",G,{width:ge}),fe(j,n(a)),fe(Y,ce)},[()=>m(n(a)),()=>Q("waiting_live_second_value")]),_(U,z)};V(O,U=>{n(a)&&U(D)})}w(y),B(U=>$=re(y,1,"timer__container s-1a",null,$,U),[()=>({small:e.isSmallSize})]),_(t,y),H()}var o2=L('<div class="waiting s-q"><span> </span></div>'),n2=L('<div class="upcoming-timer timer s-q"><span> </span> <!></div>'),r2=L('<div class="waiting-container s-q"><!></div>'),s2={hash:"s-q",code:'.waiting-container.s-q{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-q,.waiting-container.s-q:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-q:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-q{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-q{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-q{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-q{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-q{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-q{font-size:15px}.medium.s-q{font-size:17px}'};function vc(t,e){F(e,!0),q(t,s2);let i=g(e,"startTime",3,0),o=v(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),a=K(void 0),l=0,d=K(void 0),s=K(void 0),u=v(()=>{var S,C;return((S=n(d))!=null?S:1/0)<=509||((C=n(s))!=null?C:1/0)<=320}),p=v(()=>{var S,C;return!n(u)&&(((S=n(d))!=null?S:1/0)<=699||((C=n(s))!=null?C:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?i2(()=>{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(a);e.onUpcomingLiveViewStateChanged(S,C)})},300):void 0;Re(()=>{n(s),n(d),n(o),m==null||m()}),fn(()=>{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=r2();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=o2(),I=T(C);let R;var E=T(I,!0);w(I),w(C),it(C,P=>N(r,P),()=>n(r)),B((P,O)=>{R=re(I,1,"waiting__title s-q",null,R,P),fe(E,O)},[()=>({medium:n(p),small:n(u)}),()=>Q("waiting_live_upcoming_title")]),_(S,C)},$=S=>{var C=n2(),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);Wm(P,{get isSmallSize(){return n(O)},get startTime(){return n(D)},onTimerOver:()=>N(o,!0)}),w(C),it(C,U=>N(a,U),()=>n(a)),B((U,z)=>{R=re(I,1,"timer__title s-q",null,R,U),fe(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})`)),In(f,"clientWidth",S=>N(d,S)),In(f,"clientHeight",S=>N(s,S)),_(t,f),H()}nt(["contextmenu","click"]);var a2=L('<div class="waiting-container s-u"><div class="waiting-caption s-u"><!> <p class="waiting-title s-u"> </p></div></div>'),l2={hash:"s-u",code:'.waiting-container.s-u{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-u,.waiting-container.s-u:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-u:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-u{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-u{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function Ga(t,e){F(e,!0),q(t,l2);let i=g(e,"thumbUrl",3,""),o={recover:Q("waiting_live_recover_title"),record:Q("waiting_record_title")},r=v(()=>o[e.kind]||"");var a=a2();a.__contextmenu=function(...p){var m;(m=e.onContextMenu)==null||m.apply(this,p)},a.__click=function(...p){var m;(m=e.onClick)==null||m.apply(this,p)};var l=T(a),d=T(l);Oa(d,{style:"position: static; transform: translate(0, 0)"});var s=k(d,2),u=T(s,!0);w(s),w(l),w(a),B(()=>{qe(a,`background-image: url('${i()}')`),fe(u,n(r))}),_(t,a),H()}nt(["contextmenu","click"]);var d2=Ie('<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 Km(t){Xe(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=d2();_(e,o)},$$slots:{default:!0}})}var c2=L('<div class="select-icon s-1x"><!></div>'),u2={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function gc(t){q(t,u2);var e=c2(),i=T(e);Km(i,{}),w(e),_(t,e)}var p2=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},f2=(t,e)=>{Nl(t,()=>e.item.selectItem(e.item.value))},m2=L("<p> </p>"),v2=L('<p class="sublabel s-1s"> </p>'),g2=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),h2={hash:"s-1s",code:".menu-item-value.s-1s{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1s{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1s,.sublabel.s-1s{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1s{opacity:.5}"};function qm(t,e){F(e,!0),q(t,h2);let i=g(e,"isMobile",3,!1);var o=g2();let r;o.__click=[p2,e],o.__keydown=[f2,e];var a=T(o);{var l=y=>{gc(y,{})};V(a,y=>{e.item.selected&&y(l)})}var d=k(a,2);let s;var u=T(d);{var p=y=>{var $=Le(),S=de($);Oi(S,()=>e.item.valueComponent,(C,I)=>{I(C,Is(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),_(y,$)},m=y=>{var $=m2();let S;var C=T($,!0);w($),B(I=>{var R;S=re($,1,"label s-1s",null,S,I),fe(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 $=v2(),S=T($,!0);w($),B(()=>fe(S,e.item.sublabel)),_(y,$)};V(f,y=>{e.item.sublabel&&y(b)})}w(d),w(o),B((y,$,S)=>{r=re(o,1,"item",null,r,y),ze(o,"data-value",e.item.value),ze(o,"aria-label",$),ze(o,"data-testid",e.item.dataTestid),s=re(d,1,"menu-item-value s-1s",null,s,S),ze(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()}nt(["click","keydown"]);var _2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Qm(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>$=>Mu($,n(r)));var l=_2();let d;l.__click=function(...$){var S;(S=n(r))==null||S.apply(this,$)},l.__keydown=function(...$){var S;(S=n(a))==null||S.apply(this,$)};var s=T(l);{var u=$=>{gc($,{})};V(s,$=>{e.item.selected&&$(u)})}var p=k(s,2);let m;var f=T(p);{var b=$=>{var S=Le();let C=v(()=>e.item.valueComponent);var I=de(S);Oi(I,()=>n(C),(R,E)=>{E(R,Is(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),_($,S)},y=$=>{var S=us();B(()=>fe(S,e.item.label)),_($,S)};V(f,$=>{e.item.valueComponent?$(b):$(y,!1)})}w(p),w(l),it(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),B(($,S)=>{var C;d=re(l,1,"item",null,d,$),ze(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),ze(l,"data-testid",e.item.id),m=re(p,1,"menu-item-value",null,m,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,l),H()}nt(["click","keydown"]);var Xr={"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 $2=(t,e)=>{C_(t,e.returnFromSubMenu,e.closeSettingsMenu)},y2=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},x2=(t,e)=>{Od(t)&&(kr(t),e.returnFromSubMenu())},w2=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1m"> </p></li> <!></ul></div>'),S2={hash:"s-1m",code:".sub-menu.s-1m{--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-1m .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1m{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1m{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1m .items:where(.s-1m) .item.header:where(.s-1m){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-1m .title:where(.s-1m){margin-left:8px}.sub-menu.s-1m .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1m .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1m .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1m .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1m .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1m .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1m .item .sublabel{font-size:12px;line-height:14px}.item.s-1m:not(.mobile) p:where(.s-1m),.sub-menu.s-1m .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Ym(t,e){F(e,!0),q(t,S2);let[i,o]=Ve(),r=()=>x(m,"$isFullscreen",i),a=()=>x(f,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),s=g(e,"ariaLabelReturnFromSubMenu",19,()=>Q("aria_label_submenu_back")),u=g(e,"listRef",15);Vt(()=>{let j=e.items.findIndex(ie=>ie.selected);u().children[j+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(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n($)-d()}px; overflow: auto;`),C=v(()=>Math.max(e.minWidth,n(y)));var I=w2();let R;var E=T(I);let P;E.__keydown=[$2,e];var O=T(E);let D;O.__click=[y2,e],O.__keydown=[x2,e];var U=T(O);Ar(U,{direction:"left"});var z=k(U,2),G=T(z,!0);w(z),w(O),it(O,j=>N(b,j),()=>n(b));var le=k(O,2);bi(le,17,()=>e.items,bd,(j,ie)=>{var Y=Le(),ge=de(Y);{var ce=_e=>{qm(_e,{get item(){return n(ie)},get isMobile(){return l()}})},ne=(_e,we)=>{{var Z=Ne=>{Qm(Ne,{get isMobile(){return l()},get item(){return n(ie)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,Ne=>{n(ie).type==="OPEN_SUB_MENU"&&Ne(Z)},we)}};V(ge,_e=>{n(ie).type==="SELECT_VALUE"?_e(ce):_e(ne,!1)})}_(j,Y)}),w(E),it(E,j=>u(j),()=>u()),w(I),B((j,ie,Y)=>{R=re(I,1,"sub-menu menu s-1m",null,R,j),ze(I,"data-testid",`sub-menu-${e.id}`),qe(I,`min-width: ${n(C)}px`),P=re(E,1,"items s-1m",null,P,ie),qe(E,n(S)),D=re(O,1,"item header back s-1m",null,D,Y),ze(O,"aria-label",s()),fe(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),In(O,"clientWidth",j=>N(y,j)),In(O,"clientHeight",j=>N($,j)),_(t,I),H(),o()}nt(["keydown","click"]);import{noop as T2}from"@vkontakte/videoplayer-shared/es2018";var C2=(t,e)=>Mu(t,e()),I2=(t,e)=>{t.stopPropagation(),e()()},E2=L('<div class="value s-1o"> </div>'),P2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),A2={hash:"s-1o",code:".value.s-1o{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function jm(t,e){F(e,!0),q(t,A2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,T2),r=g(e,"valueComponent",3,void 0),a=g(e,"ref",15);var l=P2();let d;l.__click=[I2,o],l.__keydown=[C2,o];var s=T(l),u=T(s);{var p=C=>{Ua(C,{get icon(){return e.icon}})},m=C=>{var I=Le();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(s);var f=k(s,2),b=T(f,!0);w(f);var y=k(f,2);{var $=C=>{var I=Le();let R=v(r);var E=de(I);Oi(E,()=>n(R),(P,O)=>{O(P,{})}),_(C,I)},S=C=>{var I=E2(),R=T(I,!0);w(I),B(()=>fe(R,e.value)),_(C,I)};V(y,C=>{r()?C($):C(S,!1)})}w(l),it(l,C=>a(C),()=>a()),B(C=>{d=re(l,1,"item",null,d,C),ze(l,"aria-label",e.ariaLabel),ze(l,"data-testid",e.id),fe(b,e.label)},[()=>({mobile:i()})]),_(t,l),H()}nt(["click","keydown"]);import{noop as cb}from"@vkontakte/videoplayer-shared/es2018";var k2=(t,e)=>{Nl(t,()=>e())},L2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),M2=L('<img class="icon" aria-hidden="true"/>'),V2=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1n"> </div></li>'),R2={hash:"s-1n",code:".label.s-1n{overflow:hidden;text-overflow:ellipsis}"};function Xm(t,e){F(e,!0),q(t,R2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,cb),r=g(e,"closeSettings",3,cb),a=K(!1),l=()=>{N(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),r()()};var s=V2();let u;s.__click=d,s.__keydown=[k2,d];var p=T(s),m=T(p);{var f=S=>{var C=Le(),I=de(C);{var R=P=>{var O=L2();_(P,O)},E=P=>{var O=M2();B(()=>ze(O,"src",e.icon)),gt("error",O,l),Ta(O),_(P,O)};V(I,P=>{n(a)?P(R):P(E,!1)})}_(S,C)},b=S=>{var C=Le();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(s),B(S=>{var C;u=re(s,1,"item",null,u,S),ze(s,"aria-label",(C=e.ariaLabel)!=null?C:e.label),ze(s,"data-testid",e.id),fe($,e.label)},[()=>({mobile:i()})]),_(t,s),H()}nt(["click","keydown"]);import{noop as D2}from"@vkontakte/videoplayer-shared/es2018";var N2=L('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),O2={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 Zm(t,e){q(t,O2);let i=g(e,"enabled",3,!1);var o=N2(),r=T(o);let a;ui(2),w(o),B(l=>a=re(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),_(t,o)}var B2=(t,e,i)=>{I_(t,e(),o=>i()(o))},F2=(t,e,i)=>{t.stopPropagation(),e()(!i())},H2=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),U2=L('<li role="menuitem" tabindex="0"><!></li>');function Jm(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,D2),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=U2();let s;d.__click=[F2,o,r],d.__keydown=[B2,r,o];var u=T(d);Da(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(p,m)=>{var f=H2();let b;var y=T(f),$=T(y);{var S=P=>{Ua(P,{get icon(){return e.icon}})},C=P=>{var O=Le();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);Zm(E,{get enabled(){return r()}}),w(f),B(P=>{b=re(f,1,"switch-wrapper",null,b,P),fe(R,e.label)},[()=>({mobile:i()})]),_(p,f)},$$slots:{default:!0}}),w(d),B(p=>{var m;s=re(d,1,"item switch-item",null,s,p),ze(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),ze(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),H()}nt(["click","keydown"]);import{isValidURL as pT,VideoQuality as yb}from"@vkontakte/videoplayer-shared/es2018";var ub=()=>{let t=K(si([])),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 z2=L('<div class="quality-icon s-1q"><!></div>'),W2=L('<div class="quality-label s-1q"><span> </span> <!></div>'),K2={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 Ya(t,e){F(e,!0),q(t,K2);let i=g(e,"isSubCase",3,!1),o=v(()=>Bu(e.quality));var r=W2(),a=T(r);let l;var d=T(a,!0);w(a);var s=k(a,2);{var u=p=>{var m=z2();let f=v(()=>n(o));var b=T(m);Oi(b,()=>n(f),(y,$)=>{$(y,{})}),w(m),_(p,m)};V(s,p=>{n(o)&&!e.isMobile&&p(u)})}w(r),B(p=>{l=re(a,1,"s-1q",null,l,p),fe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,r),H()}import{VideoQuality as q2}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as pb}from"@vkontakte/videoplayer-core/es2018";var fb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},mb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=fb({quality:t,availableQualities:e});return i?t===pb.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},vb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===pb.INVARIANT?i:`${i}${fb({quality:t,availableQualities:e})}`:"...";var Q2=L('<div class="menu-item-value-wrapper s-1t"><!></div>'),G2={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function Ql(t,e){F(e,!0),q(t,G2);let[i,o]=Ve(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(p,"$isMobile$",i),d=ve(),s=d.state.currentQuality$,u=d.state.availableQualities$,p=d.ui.isMobile,m=" · ",f=v(()=>e.prefix+(e.selected&&r()!==q2.INVARIANT?m:"")),b=v(()=>vb({prefix:n(f),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=Q2(),$=T(y);let S=v(()=>e.selected?r():void 0);Ya($,{get quality(){return n(S)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),w(y),_(t,y),H(),o()}var Y2=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${a}`,"g")},j2={br:!0,span:!0},ev=(t,e={})=>{var d,s,u,p,m,f,b;if(!t)return t;let i={...j2,...e},o=Object.keys(i);if(!o.length)return t;let r=Y2(o),a=[],l=0;for(let y of t.matchAll(r)){let $=y[0],S=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((p=y.groups)==null?void 0:p.keyi18nself)||"",{index:C}=y;if(!i[S]){a.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||""):$;a.push(t.slice(l,C),R),l=C+$.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function hc(t,e){F(e,!1);let i=g(e,"message",8),o=ev(i());bo();var r=Le(),a=de(r);{var l=d=>{var s=Le(),u=de(s);$d(u,()=>o),_(d,s)};V(a,d=>{o&&d(l)})}_(t,r),H()}var X2=L('<p class="quality-applies sublabel s-1u"><!></p>'),Z2={hash:"s-1u",code:".quality-applies.s-1u{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function tv(t,e){F(e,!1),q(t,Z2),bo();var i=X2(),o=T(i);let r=xn(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));hc(o,{get message(){return n(r)}}),w(i),_(t,i),H()}var hb=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Ql,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"QUALITY"}},iv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Q("auto_quality_limit"),valueComponent:e?Ql:void 0,valueComponentParams:{prefix:Q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),_b=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:tv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),ov=({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?Ql:void 0,valueComponentParams:{prefix:Q("high_quality"),selected:i},sublabel:Q("high_quality_description")}),nv=({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?Ql:void 0,valueComponentParams:{prefix:Q("traffic_saving_quality"),selected:i},sublabel:Q("traffic_saving_quality_description")});var ep=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),tp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=ec(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return Q("audio_stream_display_language_label",{language:r,label:o});{let s=ep(t,d);return Q("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=ep(t,d);return Q("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=ep(t,d);return Q("audio_stream_display_language_index",{language:r,index:s})}}let a=ep(t,e);return Q("audio_stream_display_unknown",{index:a})};var J2={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:iv,selected:e&&!o&&!r||!1}),a.push({handler:nv,selected:o},{handler:ov,selected:r}),{title:Q("submenu_quality"),id:"QUALITY_DETAILS",items:[_b(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),hb(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:Ya,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"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:iv,selected:((i=yu())==null?void 0:i.type)==="auto_quality"},{handler:nv,selected:((o=yu())==null?void 0:o.type)==="traffic_saving"},{handler:ov,selected:((r=yu())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({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:tp(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===An?"sub_off":void 0}))})},bb=({subMenuId:t,context:e})=>t?[J2[t](e)]:[];var eT=Ie('<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 rv(t){Xe(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=eT();_(e,o)},$$slots:{default:!0}})}var tT=Ie('<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 sv(t){Xe(t,{width:"18",height:"15",children:(e,i)=>{var o=tT();_(e,o)},$$slots:{default:!0}})}var iT=Ie('<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 av(t){Xe(t,{testId:"play-speed-icon",children:(e,i)=>{var o=iT();_(e,o)},$$slots:{default:!0}})}var oT=Ie('<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 lv(t){Xe(t,{testId:"download-icon",children:(e,i)=>{var o=oT();_(e,o)},$$slots:{default:!0}})}var nT=Ie('<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){Xe(t,{testId:"report-icon",children:(e,i)=>{var o=nT();_(e,o)},$$slots:{default:!0}})}var rT=Ie('<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 ip(t){Xe(t,{children:(e,i)=>{var o=rT();_(e,o)},$$slots:{default:!0}})}var sT=Ie('<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 cv(t){Xe(t,{testId:"info-icon",children:(e,i)=>{var o=sT();_(e,o)},$$slots:{default:!0}})}var aT=L('<div class="menu-item-value-wrapper s-1w"><!></div>'),lT={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function uv(t,e){F(e,!0),q(t,lT);let[i,o]=Ve(),r=()=>x(u,"$currentQuality$",i),a=()=>x(p,"$availableQualities$",i),l=()=>x(m,"$isAutoQualityEnabled$",i),d=()=>x(f,"$isMobile$",i),s=ve(),u=s.state.currentQuality$,p=s.state.availableQualities$,m=s.state.isAutoQualityEnabled$,f=s.ui.isMobile,b=v(()=>mb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=aT(),$=T(y);Ya($,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),w(y),_(t,y),H(),o()}var cT={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:qd,label:Q("menu_quality"),value:e,valueComponent:uv,weight:Xr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Xr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Q("aria_label_submenu_traffic_saving"),icon:rv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=tp(t,e);return{id:"AUDIO_LANGUAGES",weight:Xr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:sv,label:Q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Xr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:av,label:Q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Xr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:oa,label:Q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Xr.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:lv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Xr.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:Xr["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:ip,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Xr["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:ip,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Xr["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:cv,isHiddenFor:["desktop"]})},$b=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>cT[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ra)};var fT=(t,e)=>{Lu(t,e)},mT=L('<div><div> </div> <div class="close s-p"></div></div>'),vT=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),gT=L("<div><!> <!></div>"),hT={hash:"s-p",code:'.settings-menu-container.mobile.s-p{width:100%}.settings-menu-container.s-p ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-p .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-p .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-p .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-p .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-p .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-p .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-p{line-height:40px}.settings-menu.desktop.s-p{min-width:300px}.settings-menu-container.s-p .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-p .menu.mobile.hidden{display:none}.settings-menu-container.s-p .menu .item:not(.switch-item),.settings-menu-container.s-p .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-p .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-p .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-p .item:not(.switch-item),.settings-menu.s-p .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-p .item.mobile:not(.switch-item),.settings-menu.s-p .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-p .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-p .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-p .item.header.mobile:where(.s-p){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-p .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-p .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-p .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-p .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-p .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-p{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-p:after,.close.s-p:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-p:before{transform:rotate(45deg)}.close.s-p:after{transform:rotate(-45deg)}'};function _c(t,e){F(e,!0),q(t,hT);let[i,o]=Ve(),r=()=>x(De,"$settingsMenuVisible",i),a=()=>x(J,"$settingsMenuOpenedByKeyboard",i),l=()=>x(He,"$debugPanelVisible",i),d=()=>x(Se,"$isMobile",i),s=()=>x(ke,"$playerSize",i),u=()=>x(Oe,"$hasMpegSources$",i),p=()=>x(Be,"$mobileNotReportControlHidden$",i),m=()=>x(Z,"$autoQualityLimitingAvailable$",i),f=()=>x(pe,"$availableSubtitlesList$",i),b=()=>x(Ke,"$isLiveWithPlaybackSpeed",i),y=()=>x(ne,"$availableAudioStreams$",i),$=()=>x(We,"$availablePlaybackRates$",i),S=()=>x(ce,"$currentAudioStream$",i),C=()=>x(A,"$currentPlaybackRate$",i),I=()=>x(Qe,"$trafficSavingEnabled",i),R=()=>x(_e,"$currentQuality$",i),E=()=>x(Ne,"$isAutoQualityEnabled$",i),P=()=>x(Ce,"$currentSubtitle$",i),O=()=>x(Je,"$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),j=si({}),ie=si({}),Y=ve(),ge=kt(),ce=Y.state.audioStream$,ne=Y.state.availableAudioStreams$,_e=Y.state.currentQuality$,we=Y.state.availableQualities$,Z=Y.state.autoQualityLimitingAvailable$,Ne=Y.state.isAutoQualityEnabled$,ue=Y.state.isAutoQualityAvailable$,A=Y.state.currentPlaybackRate$,We=Y.state.availablePlaybackRates$,Ce=Y.state.currentSubtitle$,pe=Y.state.availableSubtitlesList$,se=Y.state.canDownload,Oe=Y.state.hasMpegSources$,De=Y.ui.settingsMenu.visible$,J=Y.ui.settingsMenu.openedByBtnKeyboard$,X=Y.ui.settingsMenu.ref$,Se=Y.ui.isMobile,Be=Y.ui.mobileNotReportControlHidden$,Ke=Y.state.canChangePlaybackSpeed$,Qe=Y.state.trafficSavingEnabled$,Te=Y.state.highQualityEnabled$,ke=Y.ui.playerSize,He=Y.ui.debugPanelVisible,Lt=Y.state.isInteractiveTime$,Je=Y.ui.additionalSettingsMenuItems$,Rt=Y.ui.t,zt=Y.actions.internal.downloadVideo,wt=Y.actions.internal.closeSettingsMenu,jt=Y.actions.internal.openSettingsSubMenu,Nt=Y.actions.internal.closeSettingsSubMenu,ye=K(!1),be=K(void 0),ee=ub();Re(()=>{!r()&&ee.current&&(Nt(ie[ee.current]),ee.popAllSubMenus())}),Re(()=>{r()||N(be,void 0)}),Re(()=>{!ee.current&&n(be)&&T_(j,n(be))}),Re(()=>{G()&&X.set(G())});async function xe(Ct){var W;ee.pushSubMenu(Ct),await mo(),jt(Ct,ie[Ct]);let Ot=(W=G())==null?void 0:W.firstElementChild;Ot&&Df(Ot)}function Pe(Ct){var Ot;Ct==null||Ct.stopPropagation(),a()||(Ot=e.returnFocus)==null||Ot.call(e),wt(),N(ye,!1)}function Tt(Ct,Ot){Y.actions.internal.setQuality(Ct,{appliesTo:Ot}),Pe()}function Me(Ct){Y.actions.internal.setAudioStream(Ct),Pe()}function rt(Ct,Ot){Y.actions.internal.setTrafficSavingEnabled(Ct,Ot),ge.features.qualityDetailsSubMenuEnabled&&Pe()}function ft(Ct,Ot){Y.actions.internal.setHighQualityEnabled(Ct,Ot),Pe()}function $e(Ct){Y.actions.internal.setPlaybackRate(Ct),Pe()}function Ze(Ct){Y.actions.internal.setSubtitle(Ct),Pe()}function Ue(){zt()}function ot(){pT(e.supportLink)&&window.open(e.supportLink,"_blank"),Y.actions.internal.reportProblem(),Y.actions.internal.pause()}function Xt(){Vl(Y.actions.internal.getDebugTextData())}let ni=()=>{let Ct=Y.actions.internal.getTraceTextData(),Ot=new Blob([...Ct],{type:"application/json"}),W=window.URL.createObjectURL(Ot);Aa(W,"vk_player_trace_info","json")};function pi(){He.set(!l())}function vi(){N(ye,!0)}function Zi(){N(ye,!1)}function vo(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-le()}px; overflow: auto;`}let li=v(()=>se&&u()&&!p()),dt=v(()=>ge.features.trafficSaving&&!p()&&m()&&!ge.features.qualityDetailsSubMenuEnabled),Ci=v(()=>f().length>0&&!p()),Qt=v(()=>!!b()&&!p()),xt=v(()=>ge.features.audioLanguages&&y().length>=2&&!p()),ei=v(()=>!p());Vt(()=>Lt.subscribe(Ct=>{Ct&&!d()&&!n(ye)&&!a()&&Pe()}));let Gt=v(()=>{let Ct=[n(ei)&&"QUALITY_SETTINGS",n(xt)&&"AUDIO_LANGUAGES",n(Qt)&&"PLAYBACK_RATE",n(Ci)&&"SUBTITLES",n(dt)&&"TRAFFIC_SAVING_SWITCH",n(li)&&"DOWNLOAD",ge.showSupport&&"SHOW_SUPPORT","COPY_DATA",ge.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ot=>!!Ot);return $b({items:Ct,context:{qualityDetailsSubMenuEnabled:ge.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:C(),selectPlaybackRate:$e,trafficSavingEnabled:I(),toggleTrafficSaving:rt,currentQuality:R()||yb.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:Ue,onCopyDataClick:Xt,onReportProblemClick:ot,onSaveTraceDataClick:ni,toggleShowDebugInfo:pi},additionalSettingsMenuItems:O()})}),ht=v(()=>bb({subMenuId:ee.current,context:{availablePlaybackRates:$(),selectPlaybackRate:$e,trafficSavingEnabled:I(),toggleTrafficSaving:rt,currentQuality:R()||yb.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:D()||!1,availableQualities:U(),highQualityEnabled:z(),toggleHighQuality:ft,availableAudioStreams:y(),availableSubtitlesList:f(),closeSettingsMenu:wt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Me,selectQuality:Tt,selectSubtitle:Ze}}));var Ge=gT();let _i;var Ji=T(Ge);{var Xo=Ct=>{var Ot=vT();let W;Ot.__keydown=[fT,wt];var Pt=T(Ot);{var ri=Kt=>{var at=mT();let Ai;var ki=T(at),Zo=T(ki,!0);w(ki);var Eo=k(ki,2);Eo.__click=Pe,w(at),B((go,Di)=>{Ai=re(at,1,"item header s-p",null,Ai,go),fe(Zo,Di)},[()=>({mobile:d()}),()=>Rt("submenu_settings")]),_(Kt,at)};V(Pt,Kt=>{d()&&Kt(ri)})}var st=k(Pt,2);let St;bi(st,21,()=>n(Gt),Kt=>Kt.id,(Kt,at)=>{var Ai=Le(),ki=de(Ai);{var Zo=go=>{jm(go,{get isMobile(){return d()},get id(){return n(at).id},get icon(){return n(at).icon},get label(){return n(at).label},get ariaLabel(){return n(at).ariaLabel},get value(){return n(at).value},get valueComponent(){return n(at).valueComponent},onClick:()=>{xe(n(at).children),N(be,n(at).id,!0)},get ref(){return j[n(at).id]},set ref(Di){j[n(at).id]=Di}})},Eo=(go,Di)=>{{var pr=ho=>{Xm(ho,{get isMobile(){return d()},get id(){return n(at).id},get onClick(){return n(at).onClick},get icon(){return n(at).icon},get label(){return n(at).label},get ariaLabel(){return n(at).ariaLabel},closeSettings:Pe})},eo=(ho,Bi)=>{{var Jo=en=>{Jm(en,{get isMobile(){return d()},get id(){return n(at).id},get onClick(){return n(at).onClick},get icon(){return n(at).icon},get label(){return n(at).label},get ariaLabel(){return n(at).ariaLabel},get enabled(){return n(at).enabled},get tooltipText(){return n(at).tooltipText},get maxTooltipWidth(){return n(at).maxTooltipWidth}})};V(ho,en=>{n(at).type==="SWITCH"&&en(Jo)},Bi)}};V(go,ho=>{n(at).type==="CLICK"?ho(pr):ho(eo,!1)},Di)}};V(ki,go=>{n(at).type==="OPEN_SUB_MENU"?go(Zo):go(Eo,!1)})}_(Kt,Ai)}),w(st),it(st,Kt=>G(Kt),()=>G()),w(Ot),B((Kt,at,Ai)=>{W=re(Ot,1,"settings-menu menu s-p",null,W,Kt),St=re(st,1,"items",null,St,at),qe(st,Ai)},[()=>({desktop:!d(),mobile:d(),hidden:!!ee.current}),()=>({mobile:d()}),vo]),gt("mouseenter",Ot,vi),gt("mouseleave",Ot,Zi),_(Ct,Ot)};V(Ji,Ct=>{r()&&Ct(Xo)})}var hn=k(Ji,2);bi(hn,17,()=>n(ht),Ct=>Ct.id,(Ct,Ot)=>{let W=v(()=>{var Pt;return(Pt=n(Ot).minWidth)!=null?Pt:137});Ym(Ct,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return ee.popSubMenu},get id(){return n(Ot).id},get title(){return n(Ot).title},get closeSettingsMenu(){return wt},openSubMenuList:xe,get items(){return n(Ot).items},get minWidth(){return n(W)},get refMenuItems(){return j},get listRef(){return ie[n(Ot).id]},set listRef(Pt){ie[n(Ot).id]=Pt}})}),w(Ge),B(Ct=>_i=re(Ge,1,"settings-menu-container s-p",null,_i,Ct),[()=>({mobile:d(),hidden:!r()})]),_(t,Ge),H(),o()}nt(["keydown","click"]);var _T=L('<button class="btn s-1d"> </button>'),bT={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 pv(t,e){q(t,bT);var i=_T();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=T(i,!0);w(i),B(()=>fe(o,e.label)),_(t,i)}nt(["click"]);var $T=L('<div class="container s-m"><div class="notification s-m"><div><p class="description s-m"><!></p> <!></div> <!></div></div>'),yT={hash:"s-m",code:".container.s-m{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-m{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-m{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function bc(t,e){F(e,!0),q(t,yT);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=kt(),{ui:{t:r}}=ve(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=$T(),d=T(l),s=T(d),u=T(s),p=T(u);hc(p,{get message(){return a}}),w(u);var m=k(u,2);{var f=y=>{let $=v(()=>r("slow_video_notification_button"));pv(y,{get label(){return n($)},get onClick(){return e.onSelectAutoQuality}})};V(m,y=>{o||y(f)})}w(s);var b=k(s,2);Ps(b,{get onClick(){return e.onClose}}),w(d),w(l),Yr(3,d,()=>hs,()=>({duration:i})),_(t,l),H()}import{isIntersecting as xb,Subscription as xT}from"@vkontakte/videoplayer-shared/es2018";var ja="annotation",op=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:a,hideAllControls:l}=i;e.setAttribute("slot",ja),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),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 a=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((p=this.store)==null?void 0:p.ui)||{},s=new MutationObserver(m=>m.forEach(()=>{let f=ks(a,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(xb($,f)))})}));s.observe(a,{childList:!0,subtree:!0}),r.observer=s;let u=new xT;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(xb(f,ks(a,this.shadowRootContainer))):b==null||b.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,p;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(m=>m==null?void 0:m.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((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 wT=L('<div class="container s-5"><!></div>'),ST={hash:"s-5",code:".container.s-5{align-items:center;animation-fill-mode:forwards;animation-name:s-5-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-5-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function $c(t,e){F(e,!0),q(t,ST);let i=g(e,"reversed",3,!1);var o=Le(),r=de(o);Ss(r,()=>e.Icon,a=>{var l=wT(),d=T(l);Oi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),w(l),B(()=>qe(l,`animation-duration: ${e.duration}ms`)),_(a,l)}),_(t,o),H()}import{PlaybackState as wb}from"@vkontakte/videoplayer-core/es2018";var TT=L('<div class="container s-13"><!></div>'),CT={hash:"s-13",code:".container.s-13{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function fv(t,e){F(e,!0),q(t,CT);let[i,o]=Ve(),r=()=>x(s,"$playbackState$",i),a=()=>x(p,"$previewTrackActive",i),l=()=>x(m,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:p,previewTrackDragInProgress:m}}=ve(),{features:{playbackStatusShow:f},playbackStatusAnimationDuration:b}=kt(),y=0,$=K(null),S=K(!1);Re(()=>{r()===wb.PLAYING?N($,Pn,!0):r()===wb.PAUSED?N($,Vs,!0):N($,null)}),Re(()=>{if(!(!f||a()||l()))return y=window.setTimeout(()=>{y=0,N($,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),Re(()=>{d()&&!n(S)&&(N(S,!0),N($,null))});var C=Le(),I=de(C);{var R=E=>{var P=TT(),O=T(P);$c(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 IT=L('<div><div data-testid="video-container"></div></div>'),ET={hash:"s-c",code:".video-container.s-c,.video-wrapper.s-c{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-c{background:var(--black)}.video-container.s-c,.video-wrapper.s-c{z-index:var(--video-container-z-index)}.video-container.s-c{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-c{transition:none}.nocursor.s-c{cursor:none}"};function Xa(t,e){F(e,!0),q(t,ET);let[i,o]=Ve(),r=()=>x(p,"$rotateAlpha",i),a=()=>x(m,"$playerSize",i),l=()=>x(u,"$playerPhase",i),d=()=>x(f,"$isPlaying$",i),s=g(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:p,playerSize:m},state:{isPlaying$:f}}=ve(),{isSmoothVideoRotate:b}=kt(),y=v(()=>s()&&r()%180?a().height/a().width:1);var $=IT();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;it(C,R=>s(R),()=>s()),w($),B((R,E)=>{S=re($,1,"video-wrapper s-c",null,S,R),I=re(C,1,"video-container s-c",null,I,E),qe(C,`transform: rotate(${r()}deg) scale(${n(y)})`),ze(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),_(t,$),H(),o()}nt(["contextmenu","mousedown","mouseup","click","dblclick"]);var PT=L('<div><span class="text s-z"> </span> <!></div>'),AT={hash:"s-z",code:".root.s-z{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-z,.root.visible.s-z{transform:translateX(-50%)}.root.visible.s-z{opacity:1;visibility:visible}.text.s-z{font-size:13px;font-weight:600;line-height:16px}"};function mv(t,e){F(e,!0),q(t,AT);let{ui:{t:i}}=ve();var o=PT();let r;var a=T(o),l=T(a,!0);w(a);var d=k(a,2);pc(d,{get size(){return"16"},fill:"currentColor"}),w(o),B((s,u)=>{r=re(o,1,"root s-z",null,r,s),fe(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),_(t,o),H()}var kT=L('<div class="container s-15" role="button" data-testid="preview-track-overlay"><div class="icon s-15"><!></div></div>'),LT={hash:"s-15",code:".container.s-15{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-15,.icon.s-15{align-items:center;display:flex;justify-content:center}.icon.s-15{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-15:hover .icon:where(.s-15){transform:scale(1.15)}"};function vv(t,e){F(e,!1),q(t,LT);let o=ve().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};bo();var l=kT();l.__click=a;var d=T(l),s=T(d);return Pn(s,{get size(){return"32"}}),w(d),w(l),Yr(3,l,()=>hs,()=>({duration:r})),_(t,l),af(e,"handleClick",a),H({handleClick:a})}nt(["click"]);var MT=L('<div class="container s-11"><div class="notification s-11"><span class="text s-11"> </span></div></div>'),VT={hash:"s-11",code:".container.s-11{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-11{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-11{font-size:14px;font-weight:500;line-height:18px}"};function gv(t,e){F(e,!1),q(t,VT);let{ui:{t:i}}=ve();bo();var o=MT(),r=T(o),a=T(r),l=T(a,!0);w(a),w(r),w(o),B(d=>fe(l,d),[()=>i("preview_track_notification_text")],xn),Yr(3,r,()=>hs,()=>({duration:340})),_(t,o),H()}var RT=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},NT=L("<div><!></div>"),OT=L('<div class="spherical-video-icon s-7"><!></div>'),DT=L("<div><!></div>"),BT=L('<div class="settings-menu s-7"><!></div>'),FT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),HT=L("<!> <!> <!>",1),UT=L('<div class="blocked s-7"></div>'),zT=L('<div class="player-wrapper s-7"><!> <div class="overlay-container"></div></div> <!>',1),WT={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 hv(t,e){F(e,!0),q(t,WT);let[i,o]=Ve(),r=()=>x(di,"$notificationsToShow$",i),a=()=>x(li,"$playerPhase",i),l=()=>x(Ji,"$isLoaderVisible",i),d=()=>x(vi,"$adPlaybackState",i),s=()=>x(ri,"$crashed",i),u=()=>x(go,"$isInteractiveTime$",i),p=()=>x(xt,"$settingsMenuVisible",i),m=()=>x(Di,"$isInteractiveExpectation$",i),f=()=>x(Qt,"$controlsVisible",i),b=()=>x(eo,"$touched",i),y=()=>x(mr,"$graphIsOpened$",i),$=()=>x(dt,"$isFullscreen",i),S=()=>x(Zr,"$autoplayNextEnabled$",i),C=()=>x(Ot,"$postrollPassed",i),I=()=>x(Xo,"$isEnded$",i),R=()=>x(Xn,"$cursorInside",i),E=()=>x(Qn,"$isControlsAvailable",i),P=()=>x(Po,"$doubleForwardOn$",i),O=()=>x(Vr,"$fakeIsPlaying$",i),D=()=>x(hr,"$bottomNoSmooth",i),U=()=>x(en,"$interactiveTimeIndicator",i),z=()=>x(Ai,"$playerSize",i),G=()=>x(ki,"$is3DVideo",i),le=()=>x(on,"$doubleForwardAvailable$",i),j=()=>x(Ge,"$contextMenuVisible$",i),ie=()=>x(pi,"$playbackState$",i),Y=()=>x(ho,"$hotKeyMapData",i),ge=()=>x(Gt,"$scrubbingInProgress",i),ce=()=>x(ht,"$volumeChangingInProgress",i),ne=()=>x(hn,"$chromecastConnected$",i),_e=()=>x(nn,"$controlsTimeoutActive",i),we=()=>x(ei,"$settingsMenuOpenedByKeyboard",i),Z=()=>x(os,"$contextMenuOpenedByKeyboard$",i),Ne=()=>x($i,"$contextMenuOpenedByHotKey$",i),ue=()=>x(je,"$contextMenuButtonRef$",i),A=()=>x(Fo,"$contextMenuLastActiveElem$",i),We=()=>x(Ci,"$isFullscreenOpenedByKeyboard",i),Ce=()=>x(ni,"$language$",i),pe=()=>x(lo,"$previewTrackActive$",i),se=()=>x(Zo,"$icon3DVideoVisible",i),Oe=()=>x(Ct,"$chromecastDeviceName$",i),De=()=>x(Kt,"$currentSubtitle$",i),J=()=>x(at,"$currentSubtitleCaptions$",i),X=()=>x(Zi,"$position$",i),Se=()=>x(vo,"$duration$",i),Be=()=>x(W,"$isLive$",i),Ke=()=>x(Pt,"$isPlaying$",i),Qe=()=>x(fr,"$contextMenuPosition$",i),Te=()=>x(Gn,"$previewTrackNotificationVisible$",i),ke=()=>x(Bi,"$showHotKeyMap",i),He=()=>x(_i,"$debugPanelVisible",i),Lt=()=>x(Jr,"$userActionsDisabled$",i),Je=g(e,"videoContainer",15),Rt=g(e,"adsSlotId",3,void 0),zt=g(e,"adsParams",3,void 0),wt=g(e,"adsAutoplayParam",3,void 0),jt=g(e,"duration",3,void 0),Nt=g(e,"logoTargetUrl",3,""),ye=g(e,"showNextPrevButtons",3,!1),be=g(e,"nextButtonActive",3,!1),ee=g(e,"prevButtonActive",3,!1),xe=g(e,"endScreenVideoTitle",3,void 0),Pe=g(e,"endScreenVideoThumb",3,void 0),Tt=g(e,"isOneVideoPlaylist",3,!1),Me=g(e,"shadowRootContainer",3,void 0),rt=g(e,"outerContainerRef",3,void 0),ft=g(e,"playerStarted",3,!1),$e=g(e,"fullScreenTarget",3,void 0),Ze=g(e,"showMiniTimer",3,!1),Ue=g(e,"showEndScreen",3,!0),ot=g(e,"keyboardControls",15),Xt=e.store.getLogger().createComponentLog("Root component"),ni=e.store.interfaceLanguage$,pi=e.store.state.playbackState$,vi=e.store.ads.playbackState,Zi=e.store.state.positionWithScrubbing$,vo=e.store.state.duration$,li=e.store.playerPhase,dt=e.store.ui.isFullscreen,Ci=e.store.ui.isFullscreenOpenedByKeyboard,Qt=e.store.ui.controlsVisible,xt=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,Gt=e.store.ui.scrubbingInProgress,ht=e.store.ui.volumeChangingInProgress,Ge=e.store.ui.contextMenu.visible$,_i=e.store.ui.debugPanelVisible,Ji=e.store.state.isLoaderVisible,Xo=e.store.state.isEnded$,hn=e.store.state.chromecastConnected$,Ct=e.store.state.chromecastDeviceName$,Ot=e.store.ads.postrollPassed,W=e.store.state.isLive$,Pt=e.store.state.isPlaying$,ri=e.store.state.crashed$,st=e.store.webApi.annotationsApi,St=e.store.webApi.pictureInPictureApi,Kt=e.store.state.currentSubtitle$,at=e.store.state.currentSubtitleCaptions$,Ai=e.store.ui.playerSize,ki=e.store.ui.is3DVideo,Zo=e.store.ui.icon3DVideoVisible,Eo=e.store.state.isInteractive,go=e.store.state.isInteractiveTime$,Di=e.store.state.isInteractiveExpectation$,pr=e.store.state.hasInteractiveBranches,eo=e.store.ui.touched,ho=e.store.ui.modals.hotKeyMap.data,Bi=e.store.ui.modals.hotKeyMap.show,Jo=e.store.ui.overlayContainer$,en=e.store.ui.controls.interactiveTimeIndicator,qn=e.store.state.showInteractiveTimeIndicator,fr=e.store.ui.contextMenu.position$,Lr=e.store.actions.internal.setQuality,_s=e.store.actions.internal.closeSettingsMenu,Zr=e.store.ui.autoplayNextEnabled$,Jr=e.store.ui.userActionsDisabled,Qn=e.store.ui.isControlsAvailable,tn=e.store.ui.videoTitleInfo,Po=e.store.ui.doubleForwardOn$,on=e.store.ui.doubleForwardAvailable$,Gn=e.store.ui.previewTrackNotificationVisible,kn=e.store.actions.internal.getVideoElement,Mr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Vr,notifications$:es,graphIsOpened$:mr}=$o(),to=K(void 0),vr=K(void 0),Yn=K(void 0),_n=K(void 0),io,Rr,Ln;ho.set(h_());let{closeNotification:mt,notificationsToShow$:di}=es,jn=v(()=>!!r().slow_video),gr=()=>mt("slow_video"),Nr=v(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),bn=K(void 0),hr=ae(!1),Ao,nn=ae(!1),ko=ae(),Xn=ae(!1),Fi=K(!1),Lo=K(!1),Zn=K(!1),Or=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),oo=v(()=>u()&&!p()&&!(n(Fi)||n(Lo))&&!(n(Zn)&&!m())),Mn=!0,rn=v(()=>e.uiConfig.features.thumbTimer&&Ze()&&a()==="video"&&!f()&&!s()&&!Eo&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Dr=v(()=>a()==="video"&&!y()&&$()),Jn=K(!1),Vn=v(()=>(Ue()||e.showAutoplayNext&&S())&&!!xe()&&!!Pe()&&(e.showAds&&C()||!e.showAds)&&I()&&!s()&&!n(Jn)),Br=v(()=>R()&&!(f()||n(Vn))&&!u()&&E()&&!P()),yt=K(!1),_t=v(()=>O()!==null),{toggle:no}=Vr,Li=!1,ro=null;St==null||St.setContext(od());let Mo=()=>{e.autoplay&&!Eo&&e.uiConfig.controls.showOnStartupAtAutoplay&&Si(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Mo});let Vo=()=>{window.clearTimeout(io),nn.set(!1)},so=()=>{window.clearTimeout(Rr),ko.set(null)},Si=me=>{Vo(),nn.set(!0),io=window.setTimeout(()=>nn.set(!1),me);let ut=me-100;Ao=window.setTimeout(()=>{D()&&hr.set(!1)},ut>0?ut:me)},Fr=(me,ut)=>{so(),ko.set(ut),Rr=window.setTimeout(()=>ko.set(null),me)},er=ki.subscribe(me=>{Zo.set(me),me&&(window.clearTimeout(Ln),Ln=window.setTimeout(()=>Zo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ro=async()=>{var ut,Yt,yi,Hi;let me=Zs();if(me){let ti=kd(),Zt=br();me=ti===Zt||ti===Me()}if(me){Si(e.uiConfig.controls.hideTimeoutFullscreen);try{await(St==null?void 0:St.exit())}catch(ti){Xt({message:String(ti)})}}dt.set(me),e.store.getAdmanWrapper().setFullscreen(me),$()?(Yt=(ut=e.store.callbacks)==null?void 0:ut.onFullscreenEnter)==null||Yt.call(ut):(Hi=(yi=e.store.callbacks)==null?void 0:yi.onFullscreenExit)==null||Hi.call(yi)},_r=me=>{let{width:ut,height:Yt}=me.target;Ai.set({width:ut,height:Yt})},tr=()=>{let{width:me,height:ut}=n(to).getBoundingClientRect();Ai.set({width:me,height:ut})};Vt(()=>{var ut;return Au(Ro),e.uiConfig.features.annotationsInside&&(st==null||st.init(n(to))),Ma(St)&&(St==null||St.assignPlayerContainer(n(to)),St==null||St.setExternalEventHandlers({resize:_r,leavepictureinpicture:tr})),e.interactiveContainer&&((ut=Je().parentElement)==null||ut.insertBefore(e.interactiveContainer,Je().nextSibling)),()=>{window.clearTimeout(io),window.clearTimeout(Ao),window.clearTimeout(Rr),window.clearTimeout(Ln),er(),St==null||St.dispose().catch(Yt=>{Xt({message:String(Yt)})}),ku(Ro)}});let br=()=>{let me=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!rt()?n(to):rt(),ut=me.getRootNode(),Yt=ut instanceof ShadowRoot?ut.host:ut,yi=$e()instanceof HTMLElement&&$e().contains(Yt);return e.uiConfig.allowChangingFullscreenTarget&&$e()&&yi?$e():me},$n=()=>{Ge.set(!1)},sn=()=>{_s(),$n()},Hr=async()=>{if(!Mr()){Xt({message:"fullscreen disabled"});return}$n(),Zs()?(await Pu(document),Xt({message:"exit fullscreen"})):(Xt({message:"request fullscreen"}),await Eu(br()))},an=me=>{y()||(me.preventDefault(),Ge.set(!0),fr.set({left:me.clientX,top:me.clientY}))};function ts(){Xn.set(!0),Eo||Si(e.uiConfig.controls.hideTimeoutCursor)}function Ye(me){var Hi,ti;let{relatedTarget:ut}=me,yi=!!(ut&&((Hi=n(Yn))!=null&&Hi.contains(ut)))&&((ti=ot())==null?void 0:ti.isFocused());!Eo&&!yi&&(hr.set(!0),Si(e.uiConfig.controls.hideTimeoutCursor))}function At(){Xn.set(!1),N(Lo,!1),N(Fi,!1),Li=!1,e.store.actions.internal.releaseCamera(),Si(e.uiConfig.controls.hideTimeout),P()&&Do()}function gi(me){return me?me.offsetTop+gi(me.offsetParent):0}function yo(me){return me?me.offsetLeft+yo(me.offsetParent):0}function xo(me){if(U()&&qn){let ut=me.currentTarget,Yt=gi(ut),yi=yo(ut),Hi=me.pageX-yi,ti=me.pageY-Yt,{left:Zt,bottom:co,right:Rn}=U(),Nn=Rn-Zt;return Hi>=Zt-Nn&&ti<=co+Nn}}function No(me){if(n(to)){let ut=gi(me.currentTarget),Yt=z().height,yi=me.pageY-ut;if(xo(me)){N(Lo,!1);return}yi<40?N(Lo,!0):yi>Yt-40?N(Fi,!0):(N(Lo,!1),p()||N(Fi,!1))}}function ao(me){No(me),!n(oo)&&!P()&&Si(e.uiConfig.controls.hideTimeoutCursor),G()&&Li&&ro&&e.store.actions.internal.moveCameraFocusPX(ro.clientX-me.clientX,ro.clientY-me.clientY,me.timeStamp-ro.timeStamp),ro=me}let Mi=null,Oo=()=>{Mi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Vo()},e.uiConfig.doubleForwardActivationTime)},Do=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Mi&&clearTimeout(Mi),Mi=null},_o=me=>{me.preventDefault(),me.button===0&&(Li=!0,e.store.actions.internal.holdCamera(),le()&&Oo()),!Li&&Si(e.uiConfig.controls.hideTimeoutCursor)},Bo=me=>{me.preventDefault(),me.button===0&&(ro=me,Li=!1,e.store.actions.internal.releaseCamera()),!P()&&Si(e.uiConfig.controls.hideTimeoutCursor)},ln=me=>{me.preventDefault(),Mn&&(Xt({message:"double click on video"}),Hr(),Si(e.uiConfig.controls.hideTimeoutCursor))},$r=me=>{var ut;if(me.preventDefault(),P()){Do();return}if(Mi&&Do(),j()||p()){sn();return}if(!(I()&&!pr)){if(n(_t))return no();if((ut=ot())==null||ut.focus(),!ft()){e.firstStart(),Si(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ie()!==Tb.PLAYING)&&e.store.actions.internal.togglePlay(),Si(e.uiConfig.controls.hideTimeoutCursor)}},yr=me=>{sn(),eo.set(!0),Si(e.uiConfig.controls.hideTimeout),me&&Fr(e.uiConfig.controls.hideHotKeyHelpers,me)},xr=()=>{var me,ut;sn(),(me=e.store.callbacks)!=null&&me.onOpenHotKeyMap?(ut=e.store.callbacks)==null||ut.onOpenHotKeyMap(Y()):Bi.update(Yt=>!Yt)},is=()=>{eo.set(!0)},os=e.store.ui.contextMenu.openedByBtnKeyboard$,je=e.store.ui.contextMenu.btnRef$,Ht=K(void 0),$i=e.store.ui.contextMenu.openedByHotKey$,Fo=e.store.ui.contextMenu.lastActiveElem$,lo=e.store.ui.previewTrackActive;Re(()=>{Jo.set(n(bn))}),Re(()=>{N(Zn,n(Or)&&ie()!==Tb.PLAYING,!0),n(Or)||It(()=>N(Or,!0))}),Re(()=>{var ut,Yt;let me=(n(Zn)||I()||p()||ge()||ce()||ne()||_e())&&!n(oo)&&(a()==="video"||a()==="ads")&&!s()&&E();Qt.set(me),!me&&!_e()&&e.uiConfig.returnFocusOnControlsHide&&((ut=n(Yn))!=null&&ut.contains(Du()))&&((Yt=ot())==null||Yt.focus())}),Re(()=>{!ge()&&n(yt)&&!u()&&Si(e.uiConfig.controls.hideTimeoutCursor),It(()=>N(yt,ge(),!0))}),Re(()=>{n(_n),p(),we(),It(()=>Dd(n(_n),p(),we()))}),Re(()=>{n(Ht),j(),Z(),Ne(),It(()=>{let me=Z()||Ne();Dd(n(Ht),j(),me)})}),Re(()=>{let me=ue();me&&(j(),It(()=>Rl(me,j(),os)))}),Re(()=>{let me=A();me&&(j(),It(()=>S_(me,j(),$i)))}),Re(()=>{var me;!We()&&$()&&(It(()=>Ci.set(!1)),(me=ot())==null||me.focus())}),Re(()=>{y()&&sn()});let wr=K(void 0),dn=me=>{tn.set(Wn(kn(),{title:n(wr)},"title",me))},Sr=(me,ut)=>{var ti,Zt;let Yt=(Zt=(ti=e.store.callbacks)==null?void 0:ti.uiInfo)==null?void 0:Zt.onUpcomingLiveViewStateChanged;if(!Yt)return;let yi=!!ut,Hi={...Wn(n(to),{upcomingLiveScreen:ut},"upcomingLiveScreen",yi),...me};Yt(Hi)};var Ns=zT();gt("blur",ya,sn);var yn=de(Ns);yn.__mousemove=ao;var Os=T(yn);let ir=v(()=>a()==="ads"),ns=v(()=>n(_t)?no:void 0);it(Wf(Os,{startDoubleForwardActivationTimer:Oo,stopDoubleForward:Do,toggleFullscreen:Hr,hideContextMenu:sn,showHotKeyHelpers:yr,showKeyMap:xr,get isAds(){return n(ir)},get fakePlayButtonHandler(){return n(ns)},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},children:(me,ut)=>{var Yt=HT(),yi=de(Yt);Xa(yi,{get hideCursor(){return n(Br)},onClick:$r,onContextMenu:an,onMouseDown:_o,onMouseUp:Bo,onDblClick:ln,get videoContainer(){return Je()},set videoContainer(Zt){Je(Zt)}});var Hi=k(yi,2);Ia(Hi,()=>"slot",!1,(Zt,co)=>{Yi(Zt,()=>({name:ja}))});var ti=k(Hi,2);Ss(ti,Ce,Zt=>{var co=FT(),Rn=de(co);let Nn=v(()=>a()!=="thumb"||s()||Eo&&e.autoplay);Qa(Rn,{get hidden(){return n(Nn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:an,onClick:$n});var Ii=k(Rn,2);{var jl=Fe=>{vv(Fe,{})};V(Ii,Fe=>{pe()&&Fe(jl)})}var Za=k(Ii,2);fv(Za,{});var Ds=k(Za,2);mv(Ds,{get isVisible(){return P()}});var sa=k(Ds,2);{var aa=Fe=>{let fi=v(()=>{var zo;return(zo=e.live)==null?void 0:zo.startTime});vc(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(fi)},onUpcomingLiveViewStateChanged:Sr,onContextMenu:an,onClick:$n})};V(sa,Fe=>{a()==="LiveWaitingStart"&&Fe(aa)})}var cn=k(sa,2);{var Ja=Fe=>{Ga(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:an,onClick:$n})};V(cn,Fe=>{a()==="LiveWaitingRecover"&&Fe(Ja)})}var la=k(cn,2);{var Ur=Fe=>{Ga(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:an,onClick:$n})};V(la,Fe=>{a()==="LiveWaitingRecord"&&Fe(Ur)})}var rs=k(la,2);{var Bs=Fe=>{var fi=NT();let zo;var fa=T(fi);Md(fa,{get adsSlotId(){return Rt()},get adsParams(){return zt()},get adsAutoplayParam(){return wt()},get duration(){return jt()},get adsExternalApi(){return e.adsExternalApi}}),w(fi),B(wo=>zo=re(fi,1,"ads-container s-7",null,zo,wo),[()=>({hidden:a()!=="ads"})]),_(Fe,fi)};V(rs,Fe=>{e.showAds&&ft()&&Fe(Bs)})}var da=k(rs,2);{var el=Fe=>{let fi=v(()=>!Ue()&&e.showAutoplayNext&&S());Hf(Fe,{get title(){return xe()},get thumb(){return Pe()},get isHide(){return n(fi)},clickCloseIcon:()=>N(Jn,!0)})};V(da,Fe=>{n(Vn)&&xe()&&Pe()&&Fe(el)})}var tl=k(da,2);{var Xl=Fe=>{let fi=v(()=>!f());zm(Fe,{get title(){return e.title},get isHidden(){return n(fi)},onVisibilityChanged:dn,get ref(){return n(wr)},set ref(zo){N(wr,zo,!0)}})};V(tl,Fe=>{n(Dr)&&Fe(Xl)})}var il=k(tl,2);{var ol=Fe=>{let fi=v(()=>a()==="video"&&f());fc(Fe,{get isShifted(){return n(fi)}})};V(il,Fe=>{G()&&Fe(ol)})}var Tr=k(il,2);{var Zl=Fe=>{var fi=OT(),zo=T(fi);Ad(zo,{}),w(fi),_(Fe,fi)};V(Tr,Fe=>{se()&&Fe(Zl)})}var ca=k(Tr,2);{var nl=Fe=>{mc(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Oe()}})};V(ca,Fe=>{ne()&&Fe(nl)})}var lt=k(ca,2);{var pt=Fe=>{Ka(Fe,{get shifted(){return f()},get captions(){return J()},get position(){return X()},get playerSize(){return z()}})};V(lt,Fe=>{De().value!=="off"&&Fe(pt)})}var Ui=k(lt,2);{var Uo=Fe=>{var fi=DT();fi.__contextmenu=an,fi.__click=[RT,j,Ge,p,xt,sn];var zo=T(fi);qa(zo,{}),w(fi),_(Fe,fi)};V(Ui,Fe=>{s()&&Fe(Uo)})}var zi=k(Ui,2);{var hi=Fe=>{let fi=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),zo=v(()=>a()==="ads"),fa=v(()=>e.canRewindLive&&Se()!==0);uc(Fe,{get bottomHidden(){return n(fi)},get bottomNoSmooth(){return D()},get showControls(){return f()},get isAds(){return n(zo)},get canRewindLive(){return n(fa)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Nt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ye()},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},get isOneVideoPlaylist(){return Tt()},customFullscreenSupported:Mn,toggleFullscreen:Hr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(vr)},set playerControlsWrapperRef(wo){N(vr,wo,!0)},get playerControlsRef(){return n(Yn)},set playerControlsRef(wo){N(Yn,wo,!0)}})};V(zi,Fe=>{ft()&&Fe(hi)})}var Vi=k(zi,2);{var ua=Fe=>{var fi=BT(),zo=T(fi);let fa=v(()=>{var wo;return(wo=n(Yn))==null?void 0:wo.clientHeight});_c(zo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(fa)},returnFocus:()=>{var wo;return(wo=ot())==null?void 0:wo.focus()},get ref(){return n(_n)},set ref(wo){N(_n,wo,!0)}}),w(fi),_(Fe,fi)};V(Vi,Fe=>{!ne()&&a()!=="ads"&&Fe(ua)})}var rl=k(Vi,2);let mp=v(()=>!n(rn));Nd(rl,{get isLive(){return Be()},get isHidden(){return n(mp)},get isPlaying(){return Ke()},get position(){return X()},get duration(){return Se()}});var Lc=k(rl,2);Hm(Lc,{get data(){return ko}});var Mc=k(Lc,2);Ff(Mc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=ot())==null?void 0:Fe.focus()},get visible(){return j()},get playerContainerRef(){return n(to)},get position(){return Qe()},get menuElementRef(){return n(Ht)},set menuElementRef(Fe){N(Ht,Fe,!0)}});var pa=k(Mc,2);{var vp=Fe=>{bc(Fe,{onClose:gr,onSelectAutoQuality:()=>{Lr("auto"),gr()}})};V(pa,Fe=>{n(jn)&&Fe(vp)})}var Fs=k(pa,2);{var sl=Fe=>{gv(Fe,{})};V(Fs,Fe=>{Te()&&Fe(sl)})}var Vc=k(Fs,2);{var Rc=Fe=>{Oa(Fe,{})};V(Vc,Fe=>{n(Nr)&&Fe(Rc)})}var al=k(Vc,2);{var Nc=Fe=>{Qf(Fe,{})};V(al,Fe=>{ke()&&Fe(Nc)})}var gp=k(al,2);{var Oc=Fe=>{Hd(Fe,{})};V(gp,Fe=>{He()&&Fe(Oc)})}_(Zt,co)}),_(me,Yt)},$$slots:{default:!0}}),me=>ot(me),()=>ot());var ct=k(Os,2);it(ct,me=>N(bn,me),()=>n(bn)),w(yn),it(yn,me=>N(to,me),()=>n(to));var ci=k(yn,2);{var Ho=me=>{var ut=UT();_(me,ut)};V(ci,me=>{Lt()&&me(Ho)})}gt("mouseenter",yn,ts),gt("mouseleave",yn,At),gt("click",yn,is,!0),gt("focusin",yn,Ye,!0),_(t,Ns),H(),o()}nt(["mousemove","contextmenu","click"]);import{clientChecker as yc,PlaybackState as eC}from"@vkontakte/videoplayer-core/es2018";import{noop as tC}from"@vkontakte/videoplayer-shared/es2018";var KT=L('<div></div> <div class="info s-t"><div class="triangles-wrapper s-t"><div></div> <div></div> <div></div></div> <p class="step-caption s-t"> </p></div>',1),qT=L("<div><!></div>"),QT={hash:"s-t",code:".double-click-area.s-t{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-t{left:0}.double-click-area.right.s-t{right:0}.semicircle.s-t{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-t{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-t{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-t{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-t,.triangles-wrapper.s-t{display:flex;justify-content:center}.triangles-wrapper.s-t{margin-bottom:10px;position:relative}.triangle.s-t{animation:s-t-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-t:nth-child(3),.triangle.right.s-t:first-child{animation-delay:0s}.triangle.left.s-t:nth-child(2),.triangle.right.s-t:nth-child(2){animation-delay:.1s}.triangle.left.s-t:first-child,.triangle.right.s-t:nth-child(3){animation-delay:.2s}@keyframes s-t-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-t{border-right:8px solid var(--white)}.triangle.right.s-t{border-left:8px solid var(--white)}.triangle.s-t:not(:last-child){margin-right:5px}.step-caption.s-t{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function np(t,e){F(e,!0),q(t,QT);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(si(i())),d=m=>{m.stopPropagation(),a+=1,N(l,i()*(a-1)),a===1?e.handleSingleFirstClick(m):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,N(o,!1)},300)};fn(()=>{window.clearTimeout(r)});var s=qT();s.__click=d;var u=T(s);{var p=m=>{var f=KT(),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;re(b,1,`semicircle ${(O=e.side)!=null?O:""}`,"s-t"),re(S,1,`triangle ${(D=e.side)!=null?D:""}`,"s-t"),re(C,1,`triangle ${(U=e.side)!=null?U:""}`,"s-t"),re(I,1,`triangle ${(z=e.side)!=null?z:""}`,"s-t"),fe(E,P)},[()=>Q("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),_(m,f)};V(u,m=>{n(o)&&m(p)})}w(s),B(()=>{var m;return re(s,1,`double-click-area ${(m=e.side)!=null?m:""}`,"s-t")}),_(t,s),H()}nt(["click"]);var GT=(t,e,i)=>{e(!1),i()},YT=L('<div class="overlay s-s"></div> <div class="next-video s-s"><div class="top s-s"><div class="caption s-s"> </div> <!></div> <div class="row s-s"><div class="column s-s"><div class="thumb s-s"><div></div> <!></div></div> <div class="column s-s"><div class="title s-s"> </div></div></div></div>',1),jT={hash:"s-s",code:".overlay.s-s{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-s{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-s{display:flex;justify-content:space-between}.caption.s-s{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-s{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-s{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-s{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-s,.thumb-overlay.s-s{height:100%;width:100%}.thumb-overlay.s-s{position:absolute}.thumb-overlay.withOpacity.s-s{background:var(--black);opacity:.3}.title.s-s{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function _v(t,e){F(e,!0),q(t,jT);let[i,o]=Ve(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=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()};Vt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=R=>{var E=YT(),P=k(de(E),2),O=T(P),D=T(O),U=T(D,!0);w(D);var z=k(D,2);Ps(z,{onClick:$}),w(O);var G=k(O,2);G.__click=[GT,u,m];var le=T(G),j=T(le),ie=T(j);let Y;var ge=k(ie,2);{var ce=Z=>{Ud(Z,{get isRunning(){return a()},onTimerEnded:y})};V(ge,Z=>{r()&&Z(ce)})}w(j),w(le);var ne=k(le,2),_e=T(ne),we=T(_e,!0);w(_e),w(ne),w(G),w(P),B((Z,Ne)=>{fe(U,Z),qe(j,`background-image: url('${e.thumb}')`),Y=re(ie,1,"thumb-overlay s-s",null,Y,Ne),fe(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()}nt(["click"]);import{clientChecker as XT}from"@vkontakte/videoplayer-core/es2018";var Cb=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Vt(()=>{XT.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),fn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as ZT}from"@vkontakte/videoplayer-core/es2018";var rp=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}};import{clientChecker as JT}from"@vkontakte/videoplayer-core/es2018";var Ib=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),p=()=>JT.device.isIOS&&he(l)===ZT.DASH_LIVE_CMAF,m=()=>{s==null||s(),s=null},f=b=>{if(m(),!p()||!b)return;let y=u();if(!y)return;let $=new rp(y),S=he(d),C=he(a),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(a).find(O=>O.value===P))};y.textTracks.addEventListener("change",E),s=()=>{R(),$.detachAll(),y.textTracks.removeEventListener("change",E)}};Vt(()=>i.subscribe(f)),fn(m)};var iC=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},oC=L("<!> <!>",1),nC=L("<div><!></div>"),rC=L('<div class="spherical-video-icon s-9"><!></div>'),sC=L("<div><!></div>"),aC=L('<div class="settings-mobile s-9"><!></div>'),lC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),dC=L('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),cC={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 bv(t,e){var Vn,Br;F(e,!0),q(t,cC);let[i,o]=Ve(),r=()=>x(Me,"$playerPhase",i),a=()=>x(vi,"$isLoaderVisible",i),l=()=>x(xe,"$adPlaybackState",i),d=()=>x(Gt,"$crashed",i),s=()=>x(Zr,"$notificationsToShow$",i),u=()=>x(ee,"$playbackState$",i),p=()=>x(Nt,"$graphIsOpened$",i),m=()=>x(Ze,"$interactiveHideMobileControls",i),f=()=>x(Zi,"$isEnded$",i),b=()=>x(st,"$isInteractiveExpectation$",i),y=()=>x(ft,"$controlsVisible",i),$=()=>x(at,"$touched",i),S=()=>x(ki,"$autoplayNextEnabled$",i),C=()=>x(dt,"$postrollPassed",i),I=()=>x(tn,"$bottomNoSmooth",i),R=()=>x(_i,"$videoSize",i),E=()=>x(Ct,"$playerSize",i),P=()=>x(rt,"$isFullscreen",i),O=()=>x(Pe,"$position$",i),D=()=>x(Tt,"$duration$",i),U=()=>x(Zo,"$loadedMetadata",i),z=()=>x(Ue,"$settingsMenuVisible",i),G=()=>x(Xt,"$scrubbingInProgress",i),le=()=>x(ni,"$volumeChangingInProgress",i),j=()=>x(vo,"$chromecastConnected$",i),ie=()=>x($e,"$isControlsAvailable",i),Y=()=>x(ri,"$isInteractiveTime$",i),ge=()=>x(xt,"$isActiveLive",i),ce=()=>x(ot,"$settingsMenuOpenedByKeyboard",i),ne=()=>x(be,"$language$",i),_e=()=>x(Kt,"$disabledControls$",i),we=()=>x(Ot,"$is3DVideo",i),Z=()=>x(W,"$icon3DVideoVisible",i),Ne=()=>x(li,"$chromecastDeviceName$",i),ue=()=>x(Ji,"$currentSubtitle$",i),A=()=>x(Xo,"$currentSubtitleCaptions$",i),We=()=>x(hn,"$realDuration$",i),Ce=()=>x(Ci,"$isLive$",i),pe=()=>x(Qt,"$isPlaying$",i),se=()=>x(pi,"$debugPanelVisible",i),Oe=g(e,"videoContainer",15),De=g(e,"adsSlotId",3,void 0),J=g(e,"adsParams",3,void 0),X=g(e,"adsAutoplayParam",3,void 0),Se=g(e,"duration",3,void 0),Be=g(e,"logoTargetUrl",3,""),Ke=g(e,"showNextPrevButtons",3,!1),Qe=g(e,"nextButtonActive",3,!1),Te=g(e,"prevButtonActive",3,!1),ke=g(e,"endScreenVideoTitle",3,void 0),He=g(e,"endScreenVideoThumb",3,void 0),Lt=g(e,"isOneVideoPlaylist",3,!1),Je=g(e,"showMiniTimer",3,!1),Rt=g(e,"fullScreenTarget",3,void 0),zt=g(e,"playerStarted",3,!1),wt=g(e,"showEndScreen",3,!0),{notifications$:jt,graphIsOpened$:Nt}=$o(),ye=e.store.getLogger().createComponentLog("Root component"),be=e.store.interfaceLanguage$,ee=e.store.state.playbackState$,xe=e.store.ads.playbackState,Pe=e.store.state.positionWithScrubbing$,Tt=e.store.state.duration$,Me=e.store.playerPhase,rt=e.store.ui.isFullscreen,ft=e.store.ui.controlsVisible,$e=e.store.ui.isControlsAvailable,Ze=e.store.ui.interactiveHideMobileControls,Ue=e.store.ui.settingsMenu.visible$,ot=e.store.ui.settingsMenu.openedByBtnKeyboard$,Xt=e.store.ui.scrubbingInProgress,ni=e.store.ui.volumeChangingInProgress,pi=e.store.ui.debugPanelVisible,vi=e.store.state.isLoaderVisible,Zi=e.store.state.isEnded$,vo=e.store.state.chromecastConnected$,li=e.store.state.chromecastDeviceName$,dt=e.store.ads.postrollPassed,Ci=e.store.state.isLive$,Qt=e.store.state.isPlaying$,xt=e.store.state.isActiveLive$,ei=e.store.state.isRewindableLive$,Gt=e.store.state.crashed$,ht=e.store.webApi.annotationsApi,Ge=e.store.webApi.pictureInPictureApi,_i=e.store.state.videoSize$,Ji=e.store.state.currentSubtitle$,Xo=e.store.state.currentSubtitleCaptions$,hn=e.store.state.duration$,Ct=e.store.ui.playerSize,Ot=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Pt=e.store.state.isInteractive,ri=e.store.state.isInteractiveTime$,st=e.store.state.isInteractiveExpectation$,St=e.store.state.hasInteractiveBranches,Kt=e.store.ui.controls.disabledControls$,at=e.store.ui.touched,Ai=e.store.ui.overlayContainer$,ki=e.store.ui.autoplayNextEnabled$,Zo=e.store.state.loadedMetadata$,Eo=e.store.actions.internal.closeSettingsMenu,go=(Vn=e.store.callbacks)==null?void 0:Vn.onDisabledPlayPrevChapterClick,Di=(Br=e.store.callbacks)==null?void 0:Br.onDisabledSeekToInteractiveClick,pr=e.store.actions.internal.setQuality,eo=K(void 0),ho=K(void 0),Bi=K(void 0),Jo=K(void 0),en,qn,fr=v(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Lr=K(void 0),{closeNotification:_s,notificationsToShow$:Zr}=jt,Jr=v(()=>!!s().slow_video),Qn=()=>_s("slow_video"),tn=ae(!1),Po,on=K(!1),Gn=v(()=>u()!==eC.PLAYING),kn=K(!1),Mr=v(()=>p()||m()||!n(on)&&(f()&&!!St||n(Gn)&&b())),Vr=K(!0),es=v(()=>e.uiConfig.features.thumbTimer&&Je()&&r()==="video"&&!y()&&!d()&&!Pt&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),mr=K(!1),to=v(()=>(wt()||e.showAutoplayNext&&S())&&!!ke()&&!!He()&&(e.showAds&&C()||!e.showAds)&&f()&&!d()&&!n(mr)),vr=K(!1);Ge==null||Ge.setContext(od());let Yn=yt=>{yt&&!Pt&&io(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Yn});let _n=()=>{clearTimeout(en),N(on,!1),m()&&Ze.set(!1)},io=yt=>{_n(),N(on,!0),en=setTimeout(()=>N(on,!1),yt);let _t=yt-100;Po=setTimeout(()=>{I()&&tn.set(!1)},_t>0?_t:yt)},Rr=Ot.subscribe(yt=>{W.set(yt),yt&&(clearTimeout(qn),qn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ln=async(yt=Zs())=>{var _t,no,Li,ro,Mo,Vo;if(yt&&!yc.device.isIOS){let so=kd(),Si=bn(),Fr=yc.browser.isSamsungBrowser&&so===e.shadowRootContainer;yt=so===Si||Fr}if(yt){io(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ge==null?void 0:Ge.exit())}catch(so){ye({message:String(so)})}try{let so=(_t=R())!=null&&_t.width&&((no=R())!=null&&no.height)?R():E();await v_(so)}catch(so){ye({message:String(so)})}}rt.set(yt),e.store.getAdmanWrapper().setFullscreen(yt),P()?(ro=(Li=e.store.callbacks)==null?void 0:Li.onFullscreenEnter)==null||ro.call(Li):(Vo=(Mo=e.store.callbacks)==null?void 0:Mo.onFullscreenExit)==null||Vo.call(Mo)},mt=yt=>{let _t=yt,{width:no,height:Li}=_t.target;Ct.set({width:no,height:Li})},di=()=>{let{width:yt,height:_t}=n(eo).getBoundingClientRect();Ct.set({width:yt,height:_t})};Vt(()=>{var yt;return Au(Ln),e.uiConfig.features.annotationsInside&&(ht==null||ht.init(n(eo))),Ma(Ge)&&(Ge==null||Ge.assignPlayerContainer(n(eo)),Ge==null||Ge.setExternalEventHandlers({resize:mt,leavepictureinpicture:di})),N(Vr,!yc.device.isIphoneOrOldIpad),e.interactiveContainer&&((yt=Oe().parentElement)==null||yt.insertBefore(e.interactiveContainer,Oe().nextSibling)),()=>{clearTimeout(en),clearTimeout(Po),clearTimeout(qn),Rr(),Ge==null||Ge.dispose().catch(_t=>{ye({message:String(_t)})}),ku(Ln)}});let jn=K(!0),gr=K(!0),Nr=yt=>{let _t=O()+(yt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;_t<0?(N(jn,!1),_t=0):_t>=D()&&(N(gr,!1),_t=D()),N(kn,!0),e.seekTime(_t)},bn=()=>yc.device.isIOS?n(eo):!e.uiConfig.allowChangingFullscreenTarget||!Rt()?e.outerContainerRef:Rt().contains(e.outerContainerRef)?Rt():e.outerContainerRef,hr=async()=>{try{if(Zs())await Pu(document),ye({message:"exit fullscreen"});else{if(ye({message:"request fullscreen"}),yc.device.isIOS&&!U())return;await Eu(bn())}}catch(yt){ye({message:String(yt)})}},Ao=()=>{Eo()},nn=yt=>{if(yt.preventDefault(),z()){Ao();return}if(!zt()){e.firstStart(),io(e.uiConfig.controls.hideTimeoutCursor);return}N(kn,!1),y()?_n():io(e.uiConfig.controls.hideTimeoutMobile)},ko=()=>{at.set(!0)},Xn=()=>{Pt||(tn.set(!0),io(e.uiConfig.controls.hideTimeoutCursor))},Fi=yt=>{go&&(go(yt),io(e.uiConfig.controls.hideTimeoutMobile))},Lo=yt=>{Di&&(Di(yt),io(e.uiConfig.controls.hideTimeoutMobile))};Re(()=>{Ai.set(n(Lr))}),Re(()=>{ft.set((n(Gn)||z()||G()||le()||j()||!n(to)&&(f()||n(on)&&!n(kn)))&&!n(Mr)&&r()==="video"&&!d()&&ie())}),Re(()=>{!G()&&n(vr)&&!Y()&&io(e.uiConfig.controls.hideTimeoutMobile),N(vr,G(),!0)}),Re(()=>{N(jn,O()>0),N(gr,!ge()&&O()<D(),!0)}),Re(()=>{Dd(n(Jo),z(),ce(),!0)});let Zn=Q("aria_label_video_player");Cb({fullScreenChangeHandler:Ln,getFullscreenTarget:bn}),Ib({store:e.store,getFullscreenTarget:bn});let Or=(yt,_t)=>{var Mo,Vo;let no=(Vo=(Mo=e.store.callbacks)==null?void 0:Mo.uiInfo)==null?void 0:Vo.onUpcomingLiveViewStateChanged;if(!no)return;let Li=!!_t,ro={...Wn(n(eo),{upcomingLiveScreen:_t},"upcomingLiveScreen",Li),...yt};no(ro)};var oo=dC();gt("blur",ya,Ao);var Mn=T(oo);Xa(Mn,{onClick:nn,get videoContainer(){return Oe()},set videoContainer(yt){Oe(yt)}});var rn=k(Mn,2);Ia(rn,()=>"slot",!1,(yt,_t)=>{Yi(yt,()=>({name:ja}))});var Dr=k(rn,2);Ss(Dr,ne,yt=>{var _t=lC(),no=de(_t);let Li=v(()=>r()!=="thumb"||d()||Pt&&e.autoplay);Qa(no,{get hidden(){return n(Li)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ro=k(no,2);{var Mo=je=>{var Ht=oC(),$i=de(Ht);{var Fo=dn=>{let Sr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);np(dn,{side:"left",get seekStep(){return n(Sr)},handleSingleFirstClick:nn,handleSecondClick:()=>Nr("backward")})};V($i,dn=>{n(jn)&&dn(Fo)})}var lo=k($i,2);{var wr=dn=>{let Sr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);np(dn,{side:"right",get seekStep(){return n(Sr)},handleSingleFirstClick:nn,handleSecondClick:()=>Nr("forward")})};V(lo,dn=>{n(gr)&&dn(wr)})}_(je,Ht)};V(ro,je=>{e.canRewindLive&&ei&&!_e().has("TIMELINE")&&je(Mo)})}var Vo=k(ro,2);{var so=je=>{let Ht=v(()=>{var $i;return($i=e.live)==null?void 0:$i.startTime});vc(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Ht)},onUpcomingLiveViewStateChanged:Or})};V(Vo,je=>{r()==="LiveWaitingStart"&&je(so)})}var Si=k(Vo,2);{var Fr=je=>{Ga(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Si,je=>{r()==="LiveWaitingRecover"&&je(Fr)})}var er=k(Si,2);{var Ro=je=>{Ga(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(er,je=>{r()==="LiveWaitingRecord"&&je(Ro)})}var _r=k(er,2);{var tr=je=>{var Ht=nC();let $i;var Fo=T(Ht);Md(Fo,{get adsSlotId(){return De()},get adsParams(){return J()},get adsAutoplayParam(){return X()},get duration(){return Se()},get adsExternalApi(){return e.adsExternalApi}}),w(Ht),B(lo=>$i=re(Ht,1,"ads-container s-9",null,$i,lo),[()=>({hidden:r()!=="ads"})]),_(je,Ht)};V(_r,je=>{e.showAds&&zt()&&je(tr)})}var br=k(_r,2);{var $n=je=>{let Ht=v(()=>!wt()&&e.showAutoplayNext&&S());_v(je,{get title(){return ke()},get thumb(){return He()},get isHide(){return n(Ht)},clickCloseIcon:()=>N(mr,!0)})};V(br,je=>{n(to)&&ke()&&He()&&je($n)})}var sn=k(br,2);{var Hr=je=>{fc(je,{})};V(sn,je=>{we()&&je(Hr)})}var an=k(sn,2);{var ts=je=>{var Ht=rC(),$i=T(Ht);Ad($i,{}),w(Ht),_(je,Ht)};V(an,je=>{Z()&&je(ts)})}var Ye=k(an,2);{var At=je=>{mc(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(Ye,je=>{j()&&je(At)})}var gi=k(Ye,2);{var yo=je=>{Ka(je,{get shifted(){return y()},get captions(){return A()},get position(){return O()},get playerSize(){return E()},isMobile:!0})};V(gi,je=>{ue().value!=="off"&&je(yo)})}var xo=k(gi,2);{var No=je=>{var Ht=sC();Ht.__click=[iC,z,Ue,Ao];var $i=T(Ht);qa($i,{}),w(Ht),_(je,Ht)};V(xo,je=>{d()&&je(No)})}var ao=k(xo,2);{var Mi=je=>{let Ht=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),$i=v(()=>r()==="ads"),Fo=v(()=>e.canRewindLive&&We()!==0);uc(je,{get bottomHidden(){return n(Ht)},get showControls(){return y()},get bottomNoSmooth(){return I()},get isAds(){return n($i)},get canRewindLive(){return n(Fo)},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 Qe()},get prevButtonActive(){return Te()},get isOneVideoPlaylist(){return Lt()},get customFullscreenSupported(){return n(Vr)},get endScreenShown(){return n(to)},toggleFullscreen:hr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Fi,onDisabledSeekToInteractiveClick:Lo,get playerControlsWrapperRef(){return n(ho)},set playerControlsWrapperRef(lo){N(ho,lo,!0)},get playerControlsRef(){return n(Bi)},set playerControlsRef(lo){N(Bi,lo,!0)}})};V(ao,je=>{zt()&&je(Mi)})}var Oo=k(ao,2);{var Do=je=>{var Ht=aC(),$i=T(Ht);_c($i,{get supportLink(){return e.supportLink},get returnFocus(){return tC},get ref(){return n(Jo)},set ref(Fo){N(Jo,Fo,!0)}}),w(Ht),_(je,Ht)};V(Oo,je=>{z()&&je(Do)})}var _o=k(Oo,2);let Bo=v(()=>!n(es));Nd(_o,{get isLive(){return Ce()},get isHidden(){return n(Bo)},get isPlaying(){return pe()},get position(){return O()},get duration(){return D()}});var ln=k(_o,2);{var $r=je=>{Oa(je,{})};V(ln,je=>{n(fr)&&je($r)})}var yr=k(ln,2);{var xr=je=>{Hd(je,{})};V(yr,je=>{se()&&je(xr)})}var is=k(yr,2);{var os=je=>{bc(je,{onClose:Qn,onSelectAutoQuality:()=>{pr("auto"),Qn()}})};V(is,je=>{n(Jr)&&je(os)})}_(yt,_t)});var Jn=k(Dr,2);it(Jn,yt=>N(Lr,yt),()=>n(Lr)),w(oo),it(oo,yt=>N(eo,yt),()=>n(eo)),B(()=>ze(oo,"aria-label",Zn)),gt("click",oo,ko,!0),gt("focusin",oo,Xn,!0),_(t,oo),H(),o()}nt(["click"]);function sp(t){let e="";return Xi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Xi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Xi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Xi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Xi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Xi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Xi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Xi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Xi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Xi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Xi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Xi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Xi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Xi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Xi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Xi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Xi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Xi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Xi(t.font)&&(e+=`--font:${t.font};`),Xi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Xi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Xi(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as uC}from"@vkontakte/videoplayer-shared/es2018";var pC=L('<div class="time-container s-8"><!></div>'),fC=L('<div class="player-wrapper s-8" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),mC={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 $v(t,e){F(e,!0),q(t,mC);let[i,o]=Ve(),r=()=>x(Y,"$scrubbingInProgress",i),a=()=>x(j,"$playerSize",i),l=()=>x(O,"$isPlaying$",i),d=()=>x(E,"$duration$",i),s=()=>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:j,controls:ie,scrubbingInProgress:Y},actions:{internal:{getVideoElement:ge}}}=ve(),ce=8,ne=K(!1),_e=si({}),we=K(!1),Z=v(()=>!r()&&!n(we)),Ne=()=>{N(ne,!0)},ue=()=>{N(ne,!1)},A=uC(Wl,260);Re(()=>{a(),A(ge(),ie,_e,n(ne))});let We=v(()=>l()?jo(d()-s()):jo(isFinite(d())?d():S()));var Ce=fC(),pe=T(Ce);Xa(pe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(ke){C(ke)}});var se=k(pe,2);Ia(se,()=>"slot",!1,(ke,He)=>{Yi(ke,()=>({name:ja}))});var Oe=k(se,2);let De=v(()=>u()!=="thumb"||p());Qa(Oe,{get hidden(){return n(De)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var J=k(Oe,2);{var X=ke=>{Ka(ke,{shifted:!1,get captions(){return f()},get position(){return b()},get playerSize(){return a()}})};V(J,ke=>{m().value!=="off"&&n(Z)&&ke(X)})}var Se=k(J,2);{var Be=ke=>{var He=pC(),Lt=T(He);Rd(Lt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(We)}}),w(He),_(ke,He)};V(Se,ke=>{n(Z)&&ke(Be)})}var Ke=k(Se,2);let Qe;var Te=T(Ke);za(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(ke){_e.timeline=ke}}),w(Ke),w(Ce),B(ke=>Qe=re(Ke,1,"timeline s-8",null,Qe,ke),[()=>({visible:n(ne)})]),gt("mouseenter",Ce,Ne),gt("mouseleave",Ce,ue),gt("mouseenter",Ke,()=>N(we,!0)),gt("mouseleave",Ke,()=>N(we,!1)),_(t,Ce),H(),o()}var bC=L("<div><!></div>"),$C={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 xv(t,e){F(e,!0),q(t,$C);let[i,o]=Ve(),r=()=>x(zt,"$isLive$",i),a=()=>x(ht,"$availableSubtitlesList$",i),l=()=>x(Ge,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=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),j=g(e,"adsAutoplayParam",7,void 0),ie=g(e,"duration",7,void 0),Y=g(e,"logoClickable",7),ge=g(e,"logoHidden",7),ce=g(e,"isMobile",7),ne=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),A=g(e,"supportLink",7),We=g(e,"shadowRootContainer",7),Ce=g(e,"outerContainerRef",7),pe=g(e,"fullScreenTarget",7,void 0),se=g(e,"failoverHosts",7,void 0),Oe=g(e,"showMiniTimer",7,!1),De=g(e,"saveRate",7),J=g(e,"seekToInteractive",7,Eb),X=g(e,"playPrevChapter",7,Eb),Se=g(e,"volumeMultiplier",7),Be=g(e,"showAutoplayNext",7),Ke=g(e,"showEndScreen",7,!0),Qe=g(e,"keyboardControls",15,void 0),{subscribers:Te,stores:ke}=u();wh(m());let He=kt(),Lt=m().logoLink,Je=s().ui.debugPanelVisible,Rt=s().ui.playerSize,zt=s().state.isLive$,jt=s().state.isInteractive&&yv.device.isAndroid,Nt=K(void 0),ye=null,be=K(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),Mh(s(),ke),Re(()=>{var W,Pt;s().ui.isMobile.set(ce()),(Pt=(W=p().callbacks)==null?void 0:W.onDomReady)==null||Pt.call(W)});let ee=(W=!1)=>{N(be,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},xe=()=>{if(He.features.qualityDetailsSubMenuEnabled){let W=t_(s().videoId);if(W)switch(W.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,W.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,W.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(W.quality);break}}else{i_(s().videoId),Sf()&&s().actions.internal.setTrafficSavingEnabled(!0);let Pt=$f(s().videoId);Pt&&s().actions.internal.setQuality(Pt)}};function Pe(W){var Kt,at,Ai;let Pt=d()||W;Pt&&s().initVideo({container:n(Nt),sources:Pt,failoverHosts:se(),subtitles:S(),subtitlesForcedLanguage:C(),volumeMultiplier:Se()});let ri=gC.get(Td)==="true";Je.set(ri),D()>0&&s().actions.external.seekTime(D());let st=ce()?He.volumeDefault:(at=(Kt=P())!=null?Kt:_u())!=null?at:He.volumeDefault,St=(Ai=O())!=null?Ai:Yh();if(s().actions.external.setVolume(st),s().actions.external.setMuted(St),s().getAdmanWrapper().setInitialVolume(St?0:st),xe(),He.features.saveRate&&De()){let ki=Zh();ki&&!r()&&s().actions.internal.setPlaybackRate(ki)}if(Be()){let ki=e_();ki&&s().actions.internal.setAutoplayNextEnabled(ki)}s().ui.isAutoplay.set(E()),E()&&ee(),R()&&He.features.preload&&s().actions.internal.preload()}let Tt=W=>{if(window.ResizeObserver){let Pt,ri;ye=new ResizeObserver(hC(st=>{let St=st[0];if(St.contentBoxSize){let Kt=Array.isArray(St.contentBoxSize)?St.contentBoxSize[0]:St.contentBoxSize;Pt=Kt.inlineSize,ri=Kt.blockSize}else St.contentRect&&(Pt=St.contentRect.width,ri=St.contentRect.height);Rt.set({width:Pt,height:ri})},300)),ye.observe(W)}Rt.set({width:W.clientWidth,height:W.clientHeight})},Me=()=>{document.hidden&&s().actions.external.stop()};Vt(()=>{var ri,st,St,Kt;jt&&document.addEventListener("visibilitychange",Me),He.debugLog&&s().actions.internal.startLogging(),Tt(n(Nt));let W=Te.map(at=>at.init({store:s(),microStores:ke,config:p(),interactiveController:$(),uiConfig:m()})),Pt=()=>{jt&&document.removeEventListener("visibilitychange",Me),ye==null||ye.disconnect(),W.forEach(at=>at.unsubscribe()),s().destroy()};return((ri=I())==null?void 0:ri.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Pt):((st=I())==null?void 0:st.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Pt):(((St=I())==null?void 0:St.status)==="finished"||((Kt=I())==null?void 0:Kt.status)==="postlive")&&!(d()&&vC(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Pt):(Pe(),Pt)});function rt(){n(be)?s().actions.external.play():ee(!0)}function ft(){s().actions.external.pause()}function $e(W){s().actions.external.setMuted(W)}function Ze(){s().actions.external.toggleSubtitle()}function Ue(W,Pt){s().actions.external.changeSubtitle(W,Pt)}function ot(W){s().actions.external.changeAudioStream(W)}function Xt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function ni(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function pi(W){ce()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function vi(W){s().actions.internal.seekTime(W,_C.UNKNOWN)}function Zi(W){s().actions.external.seekEpisodeStartTime(W)}function vo(){s().actions.external.returnFocusToEpisodes()}function li(W){s().actions.external.setPlaybackRate(W)}function dt(W){s().actions.external.setAutoQualityLimits(W)}function Ci(){s().actions.external.setQuality("auto")}function Qt(W){s().actions.external.setTrafficSavingEnabled(W)}function xt(W){s().actions.external.setHighQualityEnabled(W)}let ei=sp(He.view),Gt=p().playerView==="preview",ht=s().state.availableSubtitlesList$;if(He.features.initSubtitles){let W=!1;Re(()=>{var Pt;if(!W&&a().length){W=!0;let ri;if(He.features.userVideoPrefs&&s().videoId){let St=xu(He.userSalt,String(s().videoId));St!=null&&St.subtitleTrackId&&(ri=a().find(Kt=>Kt.value===St.subtitleTrackId))}let st=(Pt=C())!=null?Pt:Cf();st&&(ri=a().find(St=>St.language===st)),s().actions.internal.setSubtitle(ri)}})}let Ge=s().ui.isPreviewTrackHorizontallyAligned;var _i=bC();let Ji;var Xo=T(_i);{var hn=W=>{bv(W,{get store(){return s()},get uiConfig(){return He},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 j()},get duration(){return ie()},get logoClickable(){return Y()},get logoHidden(){return ge()},get logoTargetUrl(){return Lt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return A()},get shadowRootContainer(){return We()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return pe()},get showMiniTimer(){return Oe()},get playerStarted(){return n(be)},get seekToInteractive(){return J()},get playPrevChapter(){return X()},firstStart:ee,seekTime:vi,get showEndScreen(){return Ke()},get showAutoplayNext(){return Be()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Nt)},set videoContainer(Pt){N(Nt,Pt,!0)}})},Ct=W=>{var Pt=Le(),ri=de(Pt);{var st=Kt=>{$v(Kt,{get thumbUrl(){return b()},get outsideDuration(){return ie()},get canRewindLive(){return U()},get videoContainer(){return n(Nt)},set videoContainer(at){N(Nt,at,!0)}})},St=Kt=>{hv(Kt,{get store(){return s()},get uiConfig(){return He},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 j()},get duration(){return ie()},get logoClickable(){return Y()},get logoHidden(){return ge()},get logoTargetUrl(){return Lt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return A()},get shadowRootContainer(){return We()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return pe()},get showMiniTimer(){return Oe()},get playerStarted(){return n(be)},get seekToInteractive(){return J()},get playPrevChapter(){return X()},firstStart:ee,get showEndScreen(){return Ke()},get showAutoplayNext(){return Be()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Nt)},set videoContainer(at){N(Nt,at,!0)},get keyboardControls(){return Qe()},set keyboardControls(at){Qe(at)}})};V(ri,Kt=>{Gt?Kt(st):Kt(St,!1)})}_(W,Pt)};V(Xo,W=>{ce()?W(hn):W(Ct,!1)})}w(_i),B(W=>{Ji=re(_i,1,"vk-vp-root s-1",null,Ji,W),qe(_i,ei)},[()=>({"root--miui-browser":yv.device.isMobile&&yv.browser.isMiuiBrowser,"visible-outside":Gt,"preview-track-horizontally-alinged":l()})]),_(t,_i);var Ot=H({initVideo:Pe,play:rt,pause:ft,setMuted:$e,toggleSubtitle:Ze,changeSubtitle:Ue,changeAudioStream:ot,hideControls:Xt,showControls:ni,setVolume:pi,seekTime:vi,seekEpisodeStartTime:Zi,returnFocusToEpisodes:vo,setPlaybackRate:li,setAutoQualityLimits:dt,setAutoQuality:Ci,toggleTrafficSaving:Qt,toggleHighQuality:xt,get sources(){return d()},set sources(W){d(W)},get store(){return s()},set store(W){s(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 j()},set adsAutoplayParam(W){j(W)},get duration(){return ie()},set duration(W){ie(W)},get logoClickable(){return Y()},set logoClickable(W){Y(W)},get logoHidden(){return ge()},set logoHidden(W){ge(W)},get isMobile(){return ce()},set isMobile(W){ce(W)},get showNextPrevButtons(){return ne()},set showNextPrevButtons(W){ne(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 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 pe()},set fullScreenTarget(W){pe(W)},get failoverHosts(){return se()},set failoverHosts(W){se(W)},get showMiniTimer(){return Oe()},set showMiniTimer(W){Oe(W)},get saveRate(){return De()},set saveRate(W){De(W)},get showAutoplayNext(){return Be()},set showAutoplayNext(W){Be(W)},get seekToInteractive(){return J()},set seekToInteractive(W){J(W)},get playPrevChapter(){return X()},set playPrevChapter(W){X(W)},get volumeMultiplier(){return Se()},set volumeMultiplier(W){Se(W)},get showEndScreen(){return Ke()},set showEndScreen(W){Ke(W)},get keyboardControls(){return Qe()},set keyboardControls(W){Qe(W)}});return o(),Ot}var yC=Ie('<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 wv(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Xe(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=yC();ui(9),_(r,l)},$$slots:{default:!0}})}var xC=L('<div class="title s-2"> </div>'),wC=L('<div class="playerStub s-2"><!> <!></div>'),SC={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 Sv(t,e){q(t,SC);var i=wC(),o=T(i);{var r=d=>{var s=xC(),u=T(s,!0);w(s),B(()=>fe(u,e.title)),_(d,s)};V(o,d=>{e.title&&d(r)})}var a=k(o,2);{var l=d=>{let s=v(()=>!!e.thumbUrl);wv(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}w(i),B(()=>qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}var TC=L('<div class="playerError s-0"><!></div>'),CC={hash:"s-0",code:".playerError.s-0{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 Tv(t){q(t,CC);var e=TC(),i=T(e);qa(i,{}),w(e),_(t,e)}import{now as eI,ValueSubject as tI}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as iI,InterfaceLanguage as oI,isNonNullable as kv,Logger as nI,Observable as rI,Subscription as Nb,once as sI,InternalsExposure as aI,skip as lI,getPlayerId as dI}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as Ob,isMobile as cI}from"@vkontakte/videoplayer-core/es2018";import{OneStat as uI,ThinOneStat as pI,MediascopePixel as fI}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as IC,Subscription as EC}from"@vkontakte/videoplayer-shared/es2018";var ap=class{constructor(){this.subscription=new EC,this.logger=new IC,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[r,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,a)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,l;let o=he(e.state.currentPlaybackRate$),r=he(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Iv,detectEmbed as VC}from"@vkontakte/videoplayer-shared/es2018";var PC=Ie('<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),AC=L('<div><div><!></div> <span class="title s-6"> </span></div>'),kC={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 Cv(t,e){F(e,!0),q(t,kC);let[i,o]=Ve(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(p,"$isMobile$",i),l=ve(),d=kt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,p=l.ui.isMobile,m=l.ui.t,f=v(()=>r()&&m("pip_dummy_title")),b=sp(d.view);var y=AC();let $;var S=T(y);let C;var I=T(S);Xe(I,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,O)=>{var D=PC();ui(),_(P,D)},$$slots:{default:!0}}),w(S);var R=k(S,2),E=T(R,!0);w(R),w(y),B((P,O)=>{$=re(y,1,"player-pip-dummy s-6",null,$,P),qe(y,b),C=re(S,1,"dummy-image s-6",null,C,O),fe(E,n(f))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),_(t,y),H(),o()}var LC=Object.defineProperty,MC=(t,e,i)=>e in t?LC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gl=(t,e,i)=>MC(t,typeof e!="symbol"?e+"":e,i),RC=460,NC=280,xc=class{constructor({enabled:e=!0}={enabled:!0}){Gl(this,"playerDomElement"),Gl(this,"playerParentShadowRoot"),Gl(this,"playerDummyElement"),Gl(this,"svelteContext"),Gl(this,"pipWindow"),Gl(this,"info",{isActive$:new Iv(!1),isEnabled$:new Iv(!1),type:1}),this.info.isEnabled$=new Iv(e)}isSupported(){let{isEmbed:e}=VC();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:RC,height:NC,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
63
- `),r=document.createElement("style");r.textContent=o;let a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Qr(Cv,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ca(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 Pb(t){return t instanceof xc}var lp=class{static getLatestSupportedVersion(e){let i=new La(e),o=new xc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function wc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var Ab="Inner error. Unexpectedly root annotation container null reference exception",kb="Annotation with such name already exists",Lb="Annotation with such name does not exist";var Yl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as OC,Subscription as DC,throttleFn as BC}from"@vkontakte/videoplayer-shared/es2018";var FC="1",HC=100,dp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new DC}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=BC(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},HC);this.subscriptions.add(OC(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 Yl(Ab);if(this.annotations.has(e))throw new Yl(kb);i.style.zIndex=(o=i.style.zIndex)!=null?o:FC,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 Yl(Lb);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as cp,Subscription as UC}from"@vkontakte/videoplayer-shared/es2018";var gn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return cp(e),cp(i),cp(r),r.interactiveData&&cp(o),this.subscription=new UC,this.subscription}};var Sc=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(a=>{this.state$.set(a?!0:null)})),o}};var Tc=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:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:p}=a.ui,m=he(p),f=()=>m&&he(u);return o.add(u.subscribe(b=>{if(!m)return;let y=he(l);he(s)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(s.subscribe(b=>{this.state$.set(!b||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 Cc=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(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as zC}from"@vkontakte/videoplayer-shared/es2018";var Ev=ae(!1),up=null,Ic=class extends gn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Ev,set:(i,o=!1)=>{i!==he(Ev)&&(this.clearTimeout(),Ev.set(i),!i&&up&&(up=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(m=>{he(l)&&m&&this.state$.set(!1)}));let p=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(zC({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&&up===null&&(up=!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)}};import{combine as WC,noop as KC}from"@vkontakte/videoplayer-shared/es2018";var Ec=class extends gn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:KC};this.checkIfShouldHide=i=>As(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:a}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(he(l)))return;let s=he(this.state$),{isEnded$:u,playbackState$:p}=r.state,{disabledControls$:m}=r.ui.controls,f=he(u),b=he(p);if(s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),m.remove(pf),!f&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),m.add(pf),!f&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}},o.add(WC({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:s,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(m){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as Mb}from"@vkontakte/videoplayer-shared/es2018";var Pc=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$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new Mb(!1),isEnabled$:new Mb(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};import{filter as GC,filterChanged as YC}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Pv}from"@vkontakte/videoplayer-shared/es2018";var Vb=({maxShowCount:t,timeout:e})=>{let i=[t!==0?qC({maxCount:t}):void 0,e!==0?QC({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},qC=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Pv.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}}},QC=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Pv.get(e)||"{}")}catch(a){return{}}},o=a=>Pv.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var Ac=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:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=Vb({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe(YC(),GC(p=>p)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var Rb=()=>[Sc,Tc,Cc,Ic,Ec,Pc,Ac].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as kc}from"@vkontakte/videoplayer-shared/es2018";var pp=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 jC=L('<div class="root s-3"><!></div>'),XC={hash:"s-3",code:".root.s-3{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function Av(t,e){F(e,!0),q(t,XC);let i=null,o=K(null);Re(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&N(o,s?"prev":"next",!0)}var a=Le(),l=de(a);{var d=s=>{var u=Le(),p=de(u);Ss(p,()=>n(o),m=>{var f=jC(),b=T(f);let y=v(()=>n(o)==="prev");$c(b,{get duration(){return e.animationDuration},get Icon(){return ra},get reversed(){return n(y)}}),w(f),_(m,f)}),_(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return _(t,a),H({startVideoChangedAnimation:r})}var ZC=Object.defineProperty,JC=(t,e,i)=>e in t?ZC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,qt=(t,e,i)=>JC(t,typeof e!="symbol"?e+"":e,i),mI={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:oI.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:cI(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Kn=K(void 0),Lv=si({animationDuration:0,playbackStatusShow:!1}),fp=class extends HTMLElement{constructor(){super(),qt(this,"svelteStubComponent"),qt(this,"svelteRootComponent"),qt(this,"sveltePersistentLayerComponent"),qt(this,"svelteErrorComponent"),qt(this,"store"),qt(this,"microStoresRoot"),qt(this,"statistics"),qt(this,"sentry"),qt(this,"_shadowRoot"),qt(this,"playerContainer"),qt(this,"rootContainer"),qt(this,"shadowRootContainer"),qt(this,"playerId"),qt(this,"uiConfig"),qt(this,"coreConfig"),qt(this,"statisticsConfig"),qt(this,"interactiveController"),qt(this,"interactiveContainer"),qt(this,"graphMadePause"),qt(this,"currentPlayingVideoIndex",0),qt(this,"needToRepeatPlaylist",!1),qt(this,"videoConfig"),qt(this,"pictureInPictureApi"),qt(this,"mediaSessionApi"),qt(this,"unsubscribePlayerPhaseSubscription"),qt(this,"logger"),qt(this,"log"),qt(this,"subscription"),qt(this,"interactiveSubscription"),qt(this,"annotationsApi"),qt(this,"slotsApi"),qt(this,"focusManager"),qt(this,"prevIsid"),qt(this,"isInited",!1),qt(this,"postponedInitParams",null),qt(this,"internalsExposure",null),qt(this,"shadowDOMCallbacksDisabled",!1),qt(this,"fatalError$",new tI(null)),qt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:p,statVKAppId:m,refreshStatAuthToken:f,autoplay:b,isMobile:y,isTouch:$,refDomain:S,deviceId:C,interactiveData:I}=wc(this.videoConfig,i),R=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,E=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:O=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new uI({movieId:P,albumId:d,place:s,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})}}),kc.create("ui"),this.logger=new nI,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Nb,this.interactiveSubscription=new Nb,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Qr(Tv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=si({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Qr(Sv,l),this.sveltePersistentLayerComponent=Qr(Av,{target:this.playerContainer,props:Lv}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;Lv.animationDuration=e,Lv.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),kc.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:a}=wc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new pI.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,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:j,isCyrillicRelatedInterface:ie,logoClickable:Y,logoHidden:ge,isMobile:ce,isTouch:ne,isAudioDisabled:_e,isLiveCatchUpMode:we,fullScreenTarget:Z,failoverHosts:Ne,canDownload:ue,callbacks:A,interactiveData:We,showThumbTimer:Ce,additionalButtons:pe=[],additionalSettingsMenuItems:se=[],additionalContextMenuItems:Oe=[],repeat:De,loop:J,saveRate:X,volumeMultiplier:Se,showEndScreen:Be,showAutoplayNext:Ke,mediascopePixels:Qe}=wc(this.videoConfig,i),{sources:Te,title:ke,thumbUrl:He,unitedVideoId:Lt,isClip:Je=!1,duration:Rt,adsParams:zt={},videoEpisodes:wt,previewThumbsData:jt,subtitles:Nt,subtitlesForcedLanguage:ye,live:be,adsExternalApi:ee}=e;if(!Te&&!be){let li=new Error("empty sources and live");this.fatalError$.next(li),(r=A.onCrashed)==null||r.call(A,li.message);return}let xe={...G,...zt},Pe=this.getNextVideoInfo(),Tt={sources:Te,title:ke,thumbUrl:He,subtitles:Nt,subtitlesForcedLanguage:ye,unitedVideoId:Lt,isClip:Je,live:be,albumId:y,statPlace:$,autoplay:I,muted:E,volume:R,fromTime:P,canRewindLive:O,showAds:U,adsSlotId:z,adsParams:xe,adsAutoplayParam:le,duration:Rt,logoClickable:Y,logoHidden:ge,isTouch:ne!=null?ne:ce,repeat:De,loop:J,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(Tt)}`});let rt=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),ft=(rt==null?void 0:rt.oneStat)||this.createOneStat(e,i),$e=this.createThinOneStat(e,i),Ze;Qe&&(Ze=new fI({pixels:Qe})),(ft||$e)&&(this.statistics=new qu(ft,$e,Ze,rt==null?void 0:rt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ka(this.uiConfig.sentry,{version:kl,env:vu},{movieId:Lt,albumId:y,place:$,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:ne!=null?ne:ce,clip:Je}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue())),this.sentry={...this.sentry,...ka.getInstance()};let ot=!!We,Xt=[],ni="tooltip_interactive_go_back_disabled_first";if(ot&&this.interactiveController){let li=this.interactiveController.state.isInitialChapter$.getValue(),dt=this.interactiveController.getHistoryState();li&&Xt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Xt.push("SEEK_TO_INTERACTIVE_BUTTON"),dt.hasPrevChapter$.getValue()||(Xt.push("PLAY_PREV_CHAPTER_BUTTON"),li||(dt.isGoBackLimited$.getValue()?ni="tooltip_interactive_go_back_disabled_limit":ni="tooltip_interactive_go_back_disabled"))}let pi=()=>{var li;this.isInited=!1,this.prevIsid=void 0;let dt=(o==null?void 0:o.info.isEnded$.getValue())&&((li=this.interactiveController)==null?void 0:li.state.isEndChapter$.getValue());A.onReplayInteractiveVideo&&!dt?A.onReplayInteractiveVideo():this.replayInteractiveVideo()},vi=De&&this.videoConfig.videos.length===1;this.store=q_({player:o,interfaceLanguage:j,isCyrillicRelatedInterface:ie,videoId:Lt,isClip:Je,isLiveCatchUpMode:we,isAudioDisabled:_e,statAuthToken:S,callbacks:A,webApi:Me,videoEpisodes:wt,previewThumbsData:jt,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Xt,isInteractive:ot,saveRate:X,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:ni,hasInteractiveBranches:!!((b=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?pe:[],additionalSettingsMenuItems:se!=null?se:[],additionalContextMenuItems:Oe!=null?Oe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:li=>{var dt;return(dt=this.sveltePersistentLayerComponent)==null?void 0:dt.startVideoChangedAnimation(li)},looped:this.uiConfig.features.useLoopSetting?J:vi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Zi}=this.microStoresRoot=Rb(),vo=()=>{var li,dt,Ci,Qt,xt,ei;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(ht=>{var Ge;return(Ge=A==null?void 0:A.onCurrentFormatChanged)==null?void 0:Ge.call(A,ht)})),this.subscription.add(Zi.interactiveControlsOpacity$.subscribe(ht=>{var Ge;ht!==null&&((Ge=this==null?void 0:this.interactiveController)==null||Ge.setDisabledControls(ht))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ht=>{var Ge;return(Ge=A==null?void 0:A.onThroughputEstimationChanged)==null?void 0:Ge.call(A,ht)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ht=>{var Ge;return(Ge=A==null?void 0:A.onTrafficSavingEnabledChanged)==null?void 0:Ge.call(A,ht)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(ht=>{var Ge;return(Ge=A==null?void 0:A.onHighQualityEnabledChanged)==null?void 0:Ge.call(A,ht)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(ht=>{var Ge;return(Ge=A==null?void 0:A.onAutoQualityEnabledChanged)==null?void 0:Ge.call(A,!!ht)})),this.subscription.add(new rI(ht=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ge=>ht.next(Ge)))}).pipe(lI(1)).subscribe(ht=>{var Ge;return(Ge=A==null?void 0:A.onCurrentPlaybackRateChanged)==null?void 0:Ge.call(A,ht)})),this.subscription.add(this.store.state.volume$.subscribe(ht=>{var Ge;return(Ge=A==null?void 0:A.onVolumeChange)==null?void 0:Ge.call(A,ht)})),this.subscription.add(this.store.state.muted$.subscribe(ht=>{var Ge,_i,Ji,Xo;if(ht)(Ge=A==null?void 0:A.onMute)==null||Ge.call(A);else{let hn=(Ji=((_i=this.store)==null?void 0:_i.state.volume$)&&he(this.store.state.volume$))!=null?Ji:0;(Xo=A==null?void 0:A.onUnmute)==null||Xo.call(A,hn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(ht=>{var Ge;return(Ge=A==null?void 0:A.onVideoBitrateChanged)==null?void 0:Ge.call(A,ht)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ht=>{var Ge;let _i=(Ge=this.store)==null?void 0:Ge.ui.controls.disabledControls$;_i&&(ht&&!_i.includes(Cd)&&_i.add(Cd),ht||_i.remove(Cd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async ht=>{var Ge;if(!Ob.browser.isSamsungBrowser||!ht||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((Ge=this.videoConfig)==null?void 0:Ge.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(ht=>{var Ge;return(Ge=A==null?void 0:A.onVSIDChanged)==null?void 0:Ge.call(A,ht)})),this.initMediaSession(),N(Kn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ke,thumbUrl:He,subtitles:Nt,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:Rt,logoClickable:Y,logoHidden:ge,isMobile:ne!=null?ne:ce,failoverHosts:Ne,fullScreenTarget:Z,saveRate:X,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:ee},!0);let Gt={target:this.playerContainer,props:n(Kn)};this.svelteRootComponent=Qr(xv,Gt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ci=(dt=(li=this.videoConfig)==null?void 0:li.callbacks)==null?void 0:dt.onInited)==null||Ci.call(dt)),(Qt=this.internalsExposure)==null||Qt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ei=(xt=this.videoConfig)==null?void 0:xt.callbacks)!=null&&ei.onDevNullLog)?kc.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):kc.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Ob.isInited$.subscribe(li=>{li&&(console.log("UI SDK async start"),vo())}):vo()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;return d?(s=a.onPiPEnter)==null?void 0:s.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&kv(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?he(s):this.videoConfig.interfaceLanguage,{projectInfo: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(Id)),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(Id)})),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=(a=this.videoConfig)==null?void 0:a.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,a,l,d,s,u,p,m,f,b,y,$,S,C,I,R,E,P,O,D,U,z,G,le,j,ie,Y;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=wc(mI,iI(e,ge=>ge instanceof HTMLElement?ge:void 0)),this.playerId=dI(e.playerId),this.uiConfig=xh((a=i.ui)!=null?a:{}),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:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new aI("ui",this.playerId))),kc.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:[eI()]}),kv(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),kv(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=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ie=this.videoConfig.videos)!=null&&ie[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=lp.getLatestSupportedVersion(ge):this.pictureInPictureApi=new La(ge)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ap:void 0,this.slotsApi=this.uiConfig.features.slots?new op:void 0,this.annotationsApi=this.uiConfig.features.annotations?new dp(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]),Pb(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Y=this.slotsApi)==null||Y.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new pp(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(Kn)&&(n(Kn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Kn).nextButtonActive=this.isNextButtonActive(),n(Kn).prevButtonActive=this.isPrevButtonActive(),n(Kn).endScreenVideoTitle=o.nextVideoTitle,n(Kn).endScreenVideoThumb=o.nextVideoThumb,n(Kn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Kn)&&(n(Kn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Kn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Kn).nextButtonActive=this.isNextButtonActive(),n(Kn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=he(this.store.state.positionExact$),l=he(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe(sI()).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&&Ca(e)}};import{InterfaceLanguage as coe,VKNumericLanguage as uoe,loadVKLangPack as poe}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as moe,VideoFormat as voe}from"@vkontakte/videoplayer-core/es2018";var ioe=()=>{window.customElements.define("vk-video-player",fp)};export{Qu as ControlButtonType,fs as GridTypes,coe as InterfaceLanguage,Bd as MenuItemType,ms as PlayerPhase,kl as VERSION,uoe as VKNumericLanguage,voe as VideoFormat,moe as VideoQuality,poe as loadVKLangPack,ioe as registerPlayerWebComponent};
140
+ Audio: ${(ht=n(a).audioCodec||"")!=null?ht:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),$(Te,Ae)};R(de,Te=>{(n(a).videoCodec||n(a).audioCodec)&&Te(Me)})}var xe=P(de,2);{var ee=Te=>{var Ae=A$(),J=P(_(Ae),2),Ce=_(J,!0);g(J),g(Ae),D(()=>ve(Ce,n(a).viewport)),$(Te,Ae)};R(xe,Te=>{n(a).viewport&&Te(ee)})}var Oe=P(xe,2);{var pe=Te=>{var Ae=P$(),J=P(_(Ae),2),Ce=_(J,!0);g(J),g(Ae),D(()=>ve(Ce,n(a).videoSize)),$(Te,Ae)};R(Oe,Te=>{n(a).videoSize&&Te(pe)})}var k=P(Oe,2);{var qe=Te=>{var Ae=M$(),J=P(_(Ae),2),Ce=_(J,!0);g(J),g(Ae),D(()=>ve(Ce,n(a).cdn)),$(Te,Ae)};R(k,Te=>{n(a).cdn&&Te(qe)})}var Le=P(k,2);{var q=Te=>{var Ae=L$(),J=P(_(Ae),2),Ce=_(J);g(J),g(Ae),D(()=>{var se;return ve(Ce,`${(se=n(a).volume)!=null?se:""} %`)}),$(Te,Ae)};R(Le,Te=>{n(a).volume&&Te(q)})}var ie=P(Le,2);{var He=Te=>{var Ae=V$(),J=P(_(Ae),2),Ce=_(J);g(J),g(Ae),D(se=>ve(Ce,`${se!=null?se:""} s`),[()=>n(a).position.toFixed(2)]),$(Te,Ae)};R(ie,Te=>{n(a).position&&Te(He)})}var Ge=P(ie,2);{var he=Te=>{var Ae=R$(),J=P(_(Ae),2),Ce=_(J);g(J),g(Ae),D(se=>ve(Ce,`${se!=null?se:""} s`),[()=>n(a).buffer.toFixed(2)]),$(Te,Ae)};R(Ge,Te=>{n(a).buffer&&Te(he)})}var te=P(Ge,2);{var we=Te=>{var Ae=N$(),J=P(_(Ae),2),Ce=_(J);g(J),g(Ae),D(se=>ve(Ce,`${se!=null?se:""} s`),[()=>n(a).liveLatency.toFixed(2)]),$(Te,Ae)};R(te,Te=>{n(a).liveLatency&&Te(we)})}var Se=P(te,2);{var De=Te=>{var Ae=O$(),J=P(_(Ae),2),Ce=_(J,!0);g(J),g(Ae),D(se=>ve(Ce,se),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:se})=>se).map(({value:se,title:ht})=>`${ht} ${((se!=null?se:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Te,Ae)};R(Se,Te=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&Te(De)})}var je=P(Se,2),Qe=P(_(je),2),Fe=_(Qe);g(Qe),g(je);var Ze=P(je,2);{var Ot=Te=>{var Ae=D$(),J=P(_(Ae),2);Ld(J,{get values(){return n(T)}});var Ce=P(J,2),se=_(Ce);g(Ce),g(Ae),D(ht=>ve(se,`${ht!=null?ht:""} Kbps`),[()=>n(a).speed.toFixed(2)]),$(Te,Ae)};R(Ze,Te=>{n(a).speed&&Te(Ot)})}var tt=P(Ze,2);{var Bt=Te=>{var Ae=B$(),J=P(_(Ae),2);Ld(J,{get values(){return n(E)}});var Ce=P(J,2),se=_(Ce);g(Ce),g(Ae),D(ht=>ve(se,`${ht!=null?ht:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),$(Te,Ae)};R(tt,Te=>{n(a).bitrate&&Te(Bt)})}var qt=P(tt,2),wt=P(_(qt),2);Ld(wt,{get values(){return n(C)}});var Xt=P(wt,2),Pt=_(Xt,!0);g(Xt),g(qt),g(Y),g(A),D(Te=>{var Ae,J;I=ne(A,1,"container svelte-lx3h69",null,I,Te),We(A,"aria-label",N),ve(Z,n(a).version),ve(Fe,`${(Ae=n(v))!=null?Ae:""} / ${(J=n(f))!=null?J:""} frames`),ve(Pt,n(p))},[()=>({"container-mobile":r()})]),$(t,A),F(),o()}lt(["click"]);import{noop as U$}from"@vkontakte/videoplayer-shared/es2018";var z$=(t,e)=>{t.stopPropagation(),e()()},W$=M('<div class="close svelte-1ome55p"></div>'),K$={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function Es(t,e){H(e,!0),z(t,K$);let i=h(e,"onClick",3,U$);var o=W$();o.__click=[z$,i],$(t,o),F()}lt(["click"]);import{noop as q$}from"@vkontakte/videoplayer-shared/es2018";var Q$=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),G$={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Rd(t,e){H(e,!0),z(t,G$);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,q$),r=5e3,s=Q(void 0),l,d,a=0,u;ze(()=>{i()&&Et(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Nt(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),on(()=>{f()});var p=Q$(),y=_(p);rt(y,w=>O(s,w),()=>n(s)),Ee(2),g(p),$(t,p),F()}var j$=(t,e,i)=>{e(!1),i()},Y$=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),Z$={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Df(t,e){H(e,!0),z(t,Z$);let[i,o]=Ne(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=be(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),p())},x=()=>{e.clickCloseIcon(),y()};Nt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=Be(),T=fe(C);{var E=N=>{var A=Y$(),I=P(fe(A),2),L=_(I),Y=_(L),B=_(Y,!0);g(Y);var U=P(Y,2);Es(U,{onClick:x}),g(L);var Z=P(L,2);Z.__click=[j$,u,v];var le=_(Z),K=_(le),ce=_(K);let X;var me=P(ce,2);{var re=ee=>{let Oe=m(()=>s()&&r());Rd(ee,{get isRunning(){return n(Oe)},onTimerEnded:w})};R(me,ee=>{r()&&ee(re)})}g(K),g(le);var de=P(le,2),Me=_(de),xe=_(Me,!0);g(Me),g(de),g(Z),g(I),D((ee,Oe)=>{ve(B,ee),Xe(K,`background-image: url('${e.thumb}')`),X=ne(ce,1,"thumb-overlay svelte-jfbaax",null,X,Oe),ve(xe,e.title)},[()=>j("end_screen_next_video"),()=>({withOpacity:r()})]),$(N,A)};R(T,N=>{e.isHide||N(E)})}$(t,C),F(),o()}lt(["click"]);import{PlaybackState as Pa}from"@vkontakte/videoplayer-core/es2018";import{checkNever as J$}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as On}from"@vkontakte/videoplayer-statistics/es2018";var Bf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Hf=(t,e)=>Math.max(+(t-e).toFixed(2),0),ku=(t,e,i)=>{let o=Bf(e,i);e<1&&t.actions.internal.setVolume(o)},Au=(t,e,i)=>{let o=Hf(e,i);e>0&&t.actions.internal.setVolume(o)};var Zs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function Pu(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var e2=(t,e)=>{e(t)},t2=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),i2={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Ff(t,e){var J,Ce;H(e,!0),z(t,i2);let[i,o]=Ne(),r=()=>S(me,"$disabledControls$",i),s=()=>S(he,"$isInteractiveTime$",i),l=()=>S(te,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(U,"$playbackState$",i),a=()=>S(qe,"$isEnded$",i),u=()=>S(pe,"$doubleForwardAvailable$",i),f=()=>S(Oe,"$doubleForwardOn$",i),v=()=>S(Le,"$overlayContainer$",i),p=()=>S(le,"$adPlaybackState",i),y=()=>S(K,"$positionExact$",i),w=()=>S(ce,"$duration$",i),x=()=>S(He,"$isAudioAvailable$",i),C=()=>S(X,"$volume$",i),T=()=>S(Z,"$canChangePlaybackSpeed$",i),E=()=>S(re,"$muted$",i),N=()=>S(de,"$currentSubtitle$",i),A=h(e,"nextButtonActive",3,!1),I=h(e,"prevButtonActive",3,!1),L=be(),Y=Lt(),B=L.getLogger().createComponentLog("KeyboardControls component"),U=L.state.playbackState$,Z=L.state.canChangePlaybackSpeed$,le=L.ads.playbackState,K=L.state.positionExact$,ce=L.state.duration$,X=L.state.volume$,me=L.ui.controls.disabledControls$,re=L.state.muted$,de=L.state.currentSubtitle$,Me=L.ui.contextMenu.openedByHotKey$,xe=L.ui.contextMenu.lastActiveElem$,ee=L.ui.contextMenu.visible$,Oe=L.ui.doubleForwardOn$,pe=L.ui.doubleForwardAvailable$,k=L.ui.contextMenu.position$,qe=L.state.isEnded$,Le=L.ui.overlayContainer$,q=(J=L.callbacks)==null?void 0:J.onAudioDoesNotExistHint,ie=(Ce=L.callbacks)==null?void 0:Ce.onAudioDisabledHint,He=L.state.isAudioAvailable$,Ge=L.state.isAudioDisabled,he=L.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:te}=_o(),we=0,Se=!0,De=Q(void 0),je=se=>(se!==Se&&(Se=se,we=0),we+=1,(Y.controls.seekStepKeyboard+Y.controls.seekStepKeyboard*we)/1e3),Qe=!0,Fe=({type:se,repeat:ht,disableDoubleForward:St})=>{let dt=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&te.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{L.actions.internal.togglePlay();let ge="PLAY";d()===Pa.PAUSED?ge="PAUSE":a()&&(ge="REPLAY"),e.showHotKeyHelpers({type:ge})}},xt=se==="down";if(!u()||St){xt&&dt(),Qe=!0;return}if(xt)Qe=!1;else if(Qe)return;if(xt){!ht&&e.startDoubleForwardActivationTimer();return}f()||dt(),e.stopDoubleForward(),Qe=!0},Ze=se=>{let ht=W1(v());k.set(ht),xe.set(se.target),Me.set(!0),ee.set(!0)},Ot=(se,ht=!1)=>{var li,_i;let St=se.target,dt=(li=St==null?void 0:St.getAttribute("role"))==null?void 0:li.includes("menuitem"),xt=St.classList.contains("btn"),ge=se.code;if(xt&&ge==="Space")return!1;let st=Uh.has(ge);if(dt&&st)return!1;let nt=!Fh.has(ge);if(se.ctrlKey&&nt||se.altKey&&nt||se.metaKey)return!1;let at=dt&&ge==="Escape";zh.has(ge)||at||e.hideContextMenu();let ei=d()===Pa.PLAYING||d()===Pa.PAUSED,jt=e.isAds&&(p()==="paused"||p()==="playing"),ui=!jt&&!r().has("TIMELINE"),wi=se.shiftKey&&["Digit1","Numpad1"].includes(ge);if(!wi&&!(ei||jt))return!1;B({message:`key down, code: ${ge}, isExternal = ${ht}`});let oo=!1,Vt=()=>{oo=!0,ht||se.preventDefault()};if(wi)return Ze(se),Vt(),!0;switch(ge){case"KeyJ":case"ArrowLeft":{if(!ui)break;if(se.ctrlKey||se.altKey){let _t=L.actions.internal.getPrevEpisode();L.actions.internal.seekToPrevEpisode(_t),_t&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:_t.text}),Vt()}else{let _t=se.shiftKey?je(!1):Y.controls.seekStepKeyboard/1e3,Dt=Math.max(y()-_t,0);y()>0&&(L.actions.internal.seekTime(Dt,On.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:_t.toString()}),Vt())}break}case"KeyL":case"ArrowRight":{if(!ui)break;if(se.ctrlKey||se.altKey){let _t=L.actions.internal.getNextEpisode();L.actions.internal.seekToNextEpisode(_t),_t&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:_t.text}),Vt()}else{let _t=se.shiftKey?je(!0):Y.controls.seekStepKeyboard/1e3,Dt=Math.min(y()+_t,w());Math.round(y())<Math.round(w())&&(L.actions.internal.seekTime(Dt,On.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:_t.toString()}),Vt())}break}case"ArrowUp":{if(Zs({isAudioDisabled:Ge,audioDisabledHintCallback:ie,isAudioAvailable:x(),audioIsNotExistHintCallback:q,isAds:e.isAds})){let _t=C(),Dt=Y.controls.volumeStepKeyboard,Bi=_t<=1;if(ku(L,_t,Dt),Bi){let Ei=Math.round(Bf(_t,Dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ei}})}}Vt();break}case"ArrowDown":{if(Zs({isAudioDisabled:Ge,audioDisabledHintCallback:ie,isAudioAvailable:x(),audioIsNotExistHintCallback:q,isAds:e.isAds})){let _t=C(),Dt=Y.controls.volumeStepKeyboard,Bi=_t>=0;if(Au(L,_t,Dt),Bi){let Ei=Math.round(Hf(_t,Dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ei}})}}Vt();break}case"Comma":{if(se.shiftKey){if(!f()&&T()){let _t=L.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:_t==null?void 0:_t.displayValue}),Vt()}}else{if(jt||d()!==Pa.PAUSED)break;let _t=Math.max(y()-Y.controls.seekStepFrame/1e3,0);y()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(_t,On.DOUBLE_TAP),Vt())}break}case"Period":{if(se.shiftKey){if(!f()&&T()){let _t=L.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:_t==null?void 0:_t.displayValue}),Vt()}}else{if(jt||d()!==Pa.PAUSED)break;let _t=Math.min(y()+Y.controls.seekStepFrame/1e3,w());y()<w()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(_t,On.DOUBLE_TAP),Vt())}break}case"KeyK":case"Space":Fe({type:"down",repeat:se.repeat,disableDoubleForward:"KeyK"===ge}),Vt();break;case"KeyM":{Zs({isAudioDisabled:Ge,audioDisabledHintCallback:ie,isAudioAvailable:x(),audioIsNotExistHintCallback:q,isAds:e.isAds})&&(e.showHotKeyHelpers({type:E()?"VOLUME":"MUTE"}),L.actions.internal.toggleMuted()),Vt();break}case"KeyF":e.toggleFullscreen(),Vt();break;case"KeyC":L.actions.internal.toggleSubtitle(),N().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(_i=N())==null?void 0:_i.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Vt();break;case"KeyI":L.actions.internal.togglePictureInPicture(),Vt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.1,On.DOUBLE_TAP),Vt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.2,On.DOUBLE_TAP),Vt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.3,On.DOUBLE_TAP),Vt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.4,On.DOUBLE_TAP),Vt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.5,On.DOUBLE_TAP),Vt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.6,On.DOUBLE_TAP),Vt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.7,On.DOUBLE_TAP),Vt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.8,On.DOUBLE_TAP),Vt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.9,On.DOUBLE_TAP),Vt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(0,On.DOUBLE_TAP),Vt();break;case"Slash":{se.shiftKey&&Y.features.hotKeyMapModal&&(e.showKeyMap(),Vt());break}case"KeyN":se.shiftKey&&A()&&(L.actions.internal.nextVideoClick(),Vt());break;case"KeyP":se.shiftKey&&I()&&(L.actions.internal.prevVideoClick(),Vt());break;case"ShiftLeft":case"ShiftRight":Vt();break;case"Tab":case"Escape":case"Enter":break;default:J$(ge);break}return oo},tt=se=>{let ht=se.code;if(se.ctrlKey||se.altKey||se.metaKey)return;let St=d()===Pa.PLAYING||d()===Pa.PAUSED,dt=e.isAds&&(p()==="paused"||p()==="playing");if(St||dt)switch(ht){case"ShiftLeft":case"ShiftRight":we=0;break;case"Space":Fe({type:"up"});break}},Bt=j("aria_label_video_player"),qt=()=>{var se;return(se=n(De))==null?void 0:se.focus()},wt=()=>n(De)===Pu(),Xt=se=>se.type==="keydown"?Ot(se,!0):(se.type==="keyup"&&tt(se),!1);var Pt=t2();Pt.__keyup=tt,Pt.__keydown=[e2,Ot];var Te=_(Pt);$e(Te,()=>{var se;return(se=e.children)!=null?se:ue}),g(Pt),rt(Pt,se=>O(De,se),()=>n(De)),D(()=>We(Pt,"aria-label",Bt)),$(t,Pt);var Ae=F({focus:qt,isFocused:wt,handleExternalKeyboardEvent:Xt});return o(),Ae}lt(["keyup","keydown"]);var o2=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),n2={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
+
142
+ @keyframes svelte-1dbnjb1-dot_animation {
143
+ 0% {
144
+ opacity: 0.2;
145
+ }
146
+ 30% {
147
+ opacity: 1;
148
+ }
149
+ 100% {
150
+ opacity: 0.2;
151
+ }
152
+ }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Ma(t,e){z(t,n2);let i=h(e,"style",3,"");var o=o2();D(()=>Xe(o,i())),$(t,o)}var r2=Ie('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function Uf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}import{noop as Pl}from"@vkontakte/videoplayer-shared/es2018";var s2=t=>{t.stopPropagation()},a2=M("<button><!></button>"),l2={hash:"svelte-7jez3e",code:`button.btn.svelte-7jez3e {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
154
+ /**
155
+ * \u0412 \u0441\u0430\u0444\u0430\u0440\u0438 \u043F\u0440\u0438 \u0445\u043E\u0432\u0435\u0440\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u043F\u0430\u0441\u0438\u0442\u0438, \u0432\u0438\u0434\u0438\u043C\u043E, \u0441\u0430\u0444\u0430\u0440\u0438 \u043A\u0440\u0438\u0432\u043E \u0432\u044B\u043D\u043E\u0441\u0438\u0442 \u044D\u0442\u043E \u0432 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u043B\u043E\u0439
156
+ * \u0438\u0437 \u0437\u0430 \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u0436\u0435\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C\u0441\u044F \u0448\u0438\u043B\u0434\u0438\u043A \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u043B\u0430\u0437\u0438\u0435\u0442 \u0437\u0430 \u043F\u0440\u0435\u0434\u0435\u043B\u044B \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430.
157
+ * \u0424\u043E\u0440\u0441 \u0432\u044B\u043D\u043E\u0441\u0430 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0432 \u0441\u043B\u043E\u0439, \u043A\u0430\u043A \u0442\u043E \u043F\u043E\u043C\u043E\u0433\u0430\u0435\u0442 \u0441\u0430\u0444\u0430\u0440\u0438.
158
+ */will-change:opacity;}
159
+
160
+ /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */button.w-max.svelte-7jez3e {width:100%;}button.btn--live.svelte-7jez3e {padding:10px 4px;}button.btn-jc-l.svelte-7jez3e {justify-content:left;}
161
+
162
+ /* mobile */
163
+ /* container mobile */button.btn-m.svelte-7jez3e {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}button.btn-m--play.svelte-7jez3e {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-7jez3e svg {transform:scale(2);}button.btn-m--prev.svelte-7jez3e,
164
+ button.btn-m--next.svelte-7jez3e {position:absolute;width:50px;height:50px;}button.btn-m--prev.svelte-7jez3e {right:calc(100% + 35px);}button.btn-m--next.svelte-7jez3e {left:calc(100% + 35px);}button.btn.svelte-7jez3e:disabled {cursor:default;
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function zt(t,e){H(e,!0),z(t,l2);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),s=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),a=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),f=h(e,"ariaExpanded",3,void 0),v=h(e,"tabIndex",3,0),p=h(e,"click",3,Pl),y=h(e,"focus",3,Pl),w=h(e,"blur",3,Pl),x=m(()=>p()===Pl?null:A=>{A.stopPropagation(),p()(A)}),C=m(()=>y()===Pl?null:A=>{A.preventDefault(),y()()}),T=m(()=>w()===Pl?null:A=>{A.preventDefault(),w()()});var E=a2();E.__pointerdown=[s2],E.__click=function(...A){var I;(I=n(x))==null||I.apply(this,A)};var N=_(E);$e(N,()=>{var A;return(A=e.children)!=null?A:ue}),g(E),rt(E,A=>a(A),()=>a()),D(()=>{var A,I,L,Y,B,U,Z,le;ne(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-7jez3e"),Xe(E,o()||null),E.disabled=(I=r())!=null?I:null,We(E,"aria-hidden",(L=l())!=null?L:null),We(E,"aria-label",(Y=d())!=null?Y:null),We(E,"aria-keyshortcuts",(B=u())!=null?B:null),We(E,"aria-expanded",(U=f())!=null?U:null),We(E,"data-testid",(Z=s())!=null?Z:null),We(E,"tabindex",v()),We(E,"role",e.role),We(E,"aria-checked",(le=e.areaChecked)!=null?le:null)}),bt("focus",E,function(...A){var I;(I=n(C))==null||I.apply(this,A)}),bt("blur",E,function(...A){var I;(I=n(T))==null||I.apply(this,A)}),$(t,E),F()}lt(["pointerdown","click"]);var d2=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),c2=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),u2={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function zf(t,e){H(e,!0),z(t,u2);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=j("hotkey_map_modal_close_btn_text");var s=c2(),l=_(s),d=_(l);{var a=p=>{var y=d2(),w=_(y),x=_(w,!0);g(w);var C=P(w,2);{var T=E=>{zt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(N,A)=>{Uf(N,{})},$$slots:{default:!0}})};R(C,E=>{o()&&E(T)})}g(y),D(()=>ve(x,e.title)),$(p,y)};R(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);$e(v,()=>{var p;return(p=e.children)!=null?p:ue}),g(f),g(u),g(l),g(s),$(t,s),F()}var p2=new Set(["BR"]),Q1=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;p2.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var f2=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),v2=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),m2=M('<div class="hot-key-map svelte-quklnq"></div>'),g2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
166
+ .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
167
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Wf(t,e){H(e,!1),z(t,g2);let[i,o]=Ne(),r=()=>S(l,"$data",i),s=be(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Ko(),zf(t,{get title(){return r().title},onClose:a,children:(u,f)=>{var v=m2();xi(v,5,()=>r().groups,({title:p,items:y})=>p,(p,y)=>{let w=()=>n(y).title,x=()=>n(y).items;var C=v2(),T=_(C),E=_(T,!0);g(T);var N=P(T,2);xi(N,5,x,({description:A,value:I})=>I,(A,I)=>{let L=()=>n(I).description,Y=()=>n(I).value;var B=f2(),U=_(B),Z=_(U);vd(Z,()=>Q1(L())),g(U);var le=P(U,2),K=_(le,!0);g(le),g(B),D(()=>ve(K,Y())),$(A,B)}),g(N),g(C),D(()=>ve(E,w())),$(p,C)}),g(v),$(u,v)},$$slots:{default:!0}}),F(),o()}import{noop as y0}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as m0,PlaybackState as Nv}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var h2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),_2={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function Kf(t,e){z(t,_2);var i=h2(),o=_(i);$e(o,()=>{var r;return(r=e.children)!=null?r:ue}),g(i),$(t,i)}import{VideoQuality as Dd}from"@vkontakte/videoplayer-shared/es2018";var b2=Ie('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function qf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=b2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}var $2=Ie('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Qf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}var y2=Ie('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Gf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=y2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var x2=Ie('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function Nd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=x2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var w2=Ie('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Od(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}var Mu=t=>{switch(t){case Dd.Q_720P:return Gf;case Dd.Q_1080P:return Nd;case Dd.Q_1440P:return Od;case Dd.Q_2160P:return qf;case Dd.Q_4320P:return Qf}};var S2=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function jf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var C2=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Yf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=C2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}var T2=M('<div aria-hidden="true"><!> <!></div>'),E2={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function Bd(t,e){H(e,!0),z(t,E2);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=m(()=>Mu(o())),s=m(()=>!!n(r)&&[Nd,Od].includes(n(r)));var l=Be(),d=fe(l);{var a=f=>{jf(f,{})},u=f=>{var v=T2();let p;var y=_(v);{var w=T=>{Kf(T,{children:(E,N)=>{var A=Be(),I=fe(A);Mi(I,()=>n(r),(L,Y)=>{Y(L,{})}),$(E,A)},$$slots:{default:!0}})};R(y,T=>{n(r)&&T(w)})}var x=P(y,2);let C=m(()=>n(r)?"settings-icon--labeled":"settings-icon");Yf(x,{get"data-testid"(){return n(C)},fill:"var(--btn-color, #fff)"}),g(v),D(T=>p=ne(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:n(s)})]),$(f,v)};R(d,f=>{i()?f(a):f(u,!1)})}$(t,l),F()}var I2=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),k2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ml(t,e){H(e,!0),z(t,k2);let[i,o]=Ne(),r=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=be(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,y=d.ui.t,w=Q(void 0);ze(()=>{n(w)&&Et(()=>{e.ref$.set(n(w))})});let x=y("aria_label_settings");async function C(E){let N=Ys(E);r()?v():f(N,co)}let T=m(()=>r()?"opened":"");zt(t,{get className(){return n(T)},testId:"btn-settings",click:C,get ariaLabel(){return x},get ariaExpanded(){return r()},get ref(){return n(w)},set ref(E){O(w,E,!0)},children:(E,N)=>{var A=I2(),I=_(A);Bd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),g(A),$(E,A)},$$slots:{default:!0}}),F(),o()}var A2=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Zf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=A2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var P2=Ie('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function Hd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=P2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}function Xf(t,e){H(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=be().ui.t,s=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));zt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyC},role:"button",children:(l,d)=>{var a=Be(),u=fe(a);{var f=p=>{Zf(p,{})},v=p=>{Hd(p,{})};R(u,p=>{i()?p(f):p(v,!1)})}$(l,a)},$$slots:{default:!0}}),F()}var M2=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),L2=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),V2={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function Fd(t,e){H(e,!0),z(t,V2);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),s=h(e,"ref",15),l=Lt(),d=ae(!1),a=m(()=>qo(e.duration)),u=m(()=>qo(e.position));var f=L2();let v;var p=_(f),y=_(p,!0);g(p);var w=P(p,2);{var x=C=>{var T=M2(),E=_(T,!0);g(T),D(()=>ve(E,n(a))),$(C,T)};R(w,C=>{r()&&C(x)})}g(f),Ss(f,()=>Tl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),rt(f,C=>s(C),()=>s()),D(C=>{v=ne(f,1,"time svelte-sz9er7",null,v,C),ve(y,n(u))},[()=>({mobile:i()})]),$(t,f),F()}import{noop as Lu}from"@vkontakte/videoplayer-shared/es2018";var R2=Ie('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),N2={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
168
+ .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
169
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Xs(t,e){z(t,N2);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=m(()=>r(i(),o()));var l=R2();D(()=>{var d;We(l,"data-value",n(s)),We(l,"data-testid",`volume-${(d=n(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as j1,noop as Dn}from"@vkontakte/videoplayer-shared/es2018";import{noop as ev}from"@vkontakte/videoplayer-shared/es2018";import{noop as D2}from"@vkontakte/videoplayer-shared/es2018";var O2=M('<div class="overlay"><!></div>');function Jf(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(l,"$overlayContainer$",i),l=be().ui.overlayContainer$,d=Q(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))};ze(()=>{u(r())}),Nt(()=>(u(r()),()=>a(r())));var f=O2(),v=_(f);$e(v,()=>{var p;return(p=e.children)!=null?p:ue}),g(f),rt(f,p=>O(d,p),()=>n(d)),$(t,f),F(),o()}var B2=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),H2=M("<div><!></div> <!>",1),F2={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function La(t,e){H(e,!0),z(t,F2);let[i,o]=Ne(),r=()=>S(Z,"$overlayContainer$",i),s=()=>S(U,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),a=h(e,"active",15,!1),u=h(e,"translateX",3,0),f=h(e,"translateY",3,0),v=h(e,"isFullWidthWrapper",3,!1),p=h(e,"maxTooltipWidth",3,void 0),y=h(e,"placement",3,"top"),w=h(e,"onVisibilityChange",3,D2),x=5,C=Q(void 0),T=Q(void 0),E,N=Q(0),A=Q(0),I=Q(0),L=Q(0),Y=Lt(),B=be(),U=B.ui.playerSize,Z=B.ui.overlayContainer$;ze(()=>{Et(()=>{w()(a())})});let le=B.getLogger().createComponentLog("Tooltip component"),K=()=>{if(!r()||!n(T)||!n(C))return;O(A,x);let te=r().getBoundingClientRect(),we=n(C).getBoundingClientRect(),Se=we.width,De=n(T).clientWidth,je=s().width,Qe=(Se-De)/2,Fe=we.left+u()-te.left,Ze=Fe+Qe,Ot=we.top+f()-te.top,tt=De/2-x,Bt=Ze<8,qt=Ze+De>je-8;Bt&&(Ze=8,tt=Fe+we.width/2-2.5*x),qt&&(Ze=je-8-De,tt=we.left-te.left+we.width/2-Ze-x),O(I,Ze,!0),O(L,Ot),O(N,tt,!0)},ce=()=>{!r()||!n(T)||!n(C)||O(A,-x)},X=()=>{if(!r()||!n(T)||!n(C))return;O(N,x);let te=r().getBoundingClientRect(),we=n(C).getBoundingClientRect(),Se=we.height,De=n(T).clientHeight,je=(Se-De)/2+De,Qe=we.left+u()-te.left-n(T).clientWidth,Fe=2,Ze=Qe-x;Ze<8&&(Ze=8);let tt=we.top+f()-te.top+je,Bt=Fe-je/2,qt=Fe-x;O(I,Ze,!0),O(L,tt),O(A,Bt),O(N,qt)},me=()=>{!r()||!n(T)||!n(C)||O(N,-x)},re=()=>{switch(y()){case"top":K();break;case"bottom":ce();break;case"left":X();break;default:me()}},de=()=>{try{if(!r()||!n(C))return;re(),a(!0)}catch(te){le({message:String(te)})}},Me=()=>{a(!1)},xe=()=>{n(T)&&(E||(E=window.setTimeout(de,Y.controls.hideTimeoutTooltips)),a()&&de())},ee=()=>{Me(),window.clearTimeout(E),E=void 0},Oe=(te,we,Se)=>{let De="";switch(y()){case"top":De=`transform: translate(${te}px, ${we}px);`;break;case"bottom":De=`transform: translate(${te}px, ${we}px); top: auto; bottom: 100%;`;break;case"left":De=`transform: translate(${te}px, ${we}px); left: 0; right: auto;`;break;default:De=`transform: translate(${te}px, ${we}px);`}return De+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,De+=` opacity: ${Se?1:0}; visibility: ${Se?"visible":"hidden"}`,De},pe=(te,we)=>{let Se="";switch(y()){case"top":Se=`transform: translate(${te}px, ${we}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Se=`transform: translate(${te}px, ${we}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Se=`transform: translate(${te}px, ${we}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Se=`transform: translate(${te}px, ${we}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Se},k=m(()=>Oe(n(I),n(L),a())),qe=m(()=>pe(n(N),n(A)));Nt(re),on(()=>window.clearTimeout(E));var Le=H2(),q=fe(Le);let ie;q.__mousemove=xe,q.__mousedown=ee,q.__mouseup=function(...te){var we;(we=e.disableMouseupTooltipShow?void 0:xe)==null||we.apply(this,te)};var He=_(q);$e(He,()=>{var te;return(te=e.children)!=null?te:ue}),g(q),rt(q,te=>O(C,te),()=>n(C));var Ge=P(q,2);{var he=te=>{Jf(te,{children:(we,Se)=>{var De=B2(),je=_(De),Qe=_(je,!0);g(je);var Fe=P(je,2);g(De),rt(De,Ze=>O(T,Ze),()=>n(T)),D(()=>{Xe(De,n(k)),ve(Qe,d()),Xe(Fe,n(qe))}),$(we,De)},$$slots:{default:!0}})};R(Ge,te=>{d()&&!l()&&te(he)})}D(te=>ie=ne(q,1,"tooltip-wrapper svelte-hxlyne",null,ie,te),[()=>({"full-width":v()})]),bt("mouseenter",q,xe),bt("mouseleave",q,ee),$(t,Le),F(),o()}lt(["mousemove","mousedown","mouseup"]);var G1=t=>{t.stopPropagation()},U2=M("<div><!></div>"),z2={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function ko(t,e){H(e,!0),z(t,z2);let[i,o]=Ne(),r=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=be(),d=_o(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=h(e,"className",3,""),p=h(e,"disabled",3,!1),y=h(e,"hasTooltip",3,!0),w=h(e,"ref",15,void 0),x=h(e,"width",15,void 0),C=h(e,"isFullWidthTooltip",3,!0),T=h(e,"tooltipContent",3,""),E=h(e,"tooltipActive",3,!1),N=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=h(e,"isAriaHidden",3,!1),L=h(e,"onTooltipVisibilityChange",3,ev),Y=h(e,"initialTranslateXPx",3,0),B=h(e,"initialTranslateYPx",19,()=>-18),U=h(e,"mouseEnter",3,ev),Z=h(e,"mouseLeave",3,ev),le=m(()=>p()?r()?f("tooltip_disabled_when_graph_on"):A():T());var K=U2();K.__pointerdown=[G1],K.__click=[G1];var ce=_(K);{var X=re=>{La(re,{get content(){return n(le)},get translateX(){return Y()},get translateY(){return B()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return N()},get onVisibilityChange(){return L()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(de,Me)=>{var xe=Be(),ee=fe(xe);$e(ee,()=>{var Oe;return(Oe=e.children)!=null?Oe:ue}),$(de,xe)},$$slots:{default:!0}})},me=re=>{var de=Be(),Me=fe(de);$e(Me,()=>{var xe;return(xe=e.children)!=null?xe:ue}),$(re,de)};R(ce,re=>{y()&&n(le)&&!s()?re(X):re(me,!1)})}g(K),rt(K,re=>w(re),()=>w()),D(()=>{var re;ne(K,1,`btn-container ${(re=v())!=null?re:""}`,"svelte-p9r045"),We(K,"aria-hidden",I()||null)}),bt("mouseenter",K,function(...re){var de;(de=U())==null||de.apply(this,re)}),bt("mouseleave",K,function(...re){var de;(de=Z())==null||de.apply(this,re)}),Sn(K,"clientWidth",x),$(t,K),F(),o()}lt(["pointerdown","click"]);var W2=Ie('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function Ud(t,e){"use strict";var i=W2(),o=_(i),r=P(o);g(i),D(()=>{We(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),We(o,"fill-opacity",e.completed?1:.24),We(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var K2=M("<div><!></div>"),q2={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function tv(t,e){H(e,!0),z(t,q2);let o=be().ui.t,r=Q(0),s=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));ko(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=K2();let u;var f=_(a);let v=m(()=>!!e.videoEpisode.completed);Ud(f,{get completed(){return n(v)}}),g(a),D(p=>{u=ne(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),Xe(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Sn(a,"clientWidth",p=>O(r,p)),$(l,a)},$$slots:{default:!0}}),F()}var Q2=M('<div><div class="video-episode-inner svelte-1uc247w"><div class="video-episode-loaded svelte-1uc247w"></div> <div></div></div></div>'),G2=M('<div class="video-episodes-wrap svelte-1uc247w"></div>'),j2={hash:"svelte-1uc247w",code:`.video-episodes-wrap.svelte-1uc247w {position:absolute;width:100%;height:100%;}.video-episode.svelte-1uc247w {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1uc247w:first-child {padding-left:0;}.video-episode.svelte-1uc247w:last-child {padding-right:0;}.video-episode.svelte-1uc247w:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1uc247w,
170
+ .video-episode-loaded.svelte-1uc247w,
171
+ .video-episode-filled.svelte-1uc247w {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1uc247w {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode.svelte-1uc247w:first-child .video-episode-inner:where(.svelte-1uc247w),
172
+ .video-episode.svelte-1uc247w:last-child .video-episode-inner:where(.svelte-1uc247w) {width:calc(100% - var(--slider-video-episode-gap));}.video-episode-loaded.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function iv(t,e){z(t,j2);let i=h(e,"videoEpisodes",19,()=>[]);var o=G2();xi(o,21,i,r=>r.from,(r,s)=>{var l=Q2();let d;var a=_(l),u=_(a),f=P(u,2);let v;g(a),g(l),D((p,y)=>{d=ne(l,1,"video-episode svelte-1uc247w",null,d,p),Xe(l,`left: ${n(s).from}%; width: ${n(s).width}%`),Xe(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),v=ne(f,1,"video-episode-filled svelte-1uc247w",null,v,y),Xe(f,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(r,l)}),g(o),$(t,o)}function Y2(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;O(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function Z2(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 X2(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;O(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function J2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function ey(t,e,i,o,r,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(r,!1),s()(l)}var ty=M("<div></div>"),iy=M('<div class="bars svelte-12bsb23"><div class="loaded svelte-12bsb23"></div> <div></div></div>'),oy=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),ny={hash:"svelte-12bsb23",code:`.interactive-icons.svelte-12bsb23 {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-12bsb23 {top:-10px;}.slider.svelte-12bsb23 {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-12bsb23 {cursor:default;}.slider.svelte-12bsb23:before {
173
+ /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-12bsb23 {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-12bsb23,
174
+ .slider.square.svelte-12bsb23 > .bars:where(.svelte-12bsb23),
175
+ .slider.square.svelte-12bsb23 .loaded:where(.svelte-12bsb23),
176
+ .slider.square.svelte-12bsb23 .filled:where(.svelte-12bsb23) {border-radius:unset;}.filled.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-12bsb23 {background-color:var(--slider-filled-ads);}.handleWrap.svelte-12bsb23 {position:absolute;left:-100%;width:100%;}.handle.svelte-12bsb23 {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-handle-active-live-bg);}.handle-always-visible.svelte-12bsb23 .handle:where(.svelte-12bsb23),
177
+ .slider.svelte-12bsb23:hover .handle:where(.svelte-12bsb23),
178
+ .slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {transform:scale(1.3);}.slider-vertical.svelte-12bsb23 {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-12bsb23 {cursor:default;opacity:0.4;}`};function Va(t,e){H(e,!0),z(t,ny);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),s=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),a=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),f=h(e,"videoEpisodes",19,()=>[]),v=h(e,"withWheelHandler",3,!1),p=h(e,"isInteractive",3,!1),y=h(e,"disabled",3,!1),w=h(e,"hideHandel",3,!1),x=h(e,"onPointerDown",3,Dn),C=h(e,"onHandleMove",3,Dn),T=h(e,"onPointerUp",3,Dn),E=h(e,"onPointerEnter",3,Dn),N=h(e,"onPointerMove",3,Dn),A=h(e,"onPointerLeave",3,Dn),I=h(e,"onMouseEnter",3,Dn),L=h(e,"onMouseLeave",3,Dn),Y=h(e,"onWheelUp",3,Dn),B=h(e,"onWheelDown",3,Dn),U=h(e,"onWheelLeft",3,Dn),Z=h(e,"onWheelRight",3,Dn),le=h(e,"onDisabledClick",3,Dn),K=h(e,"loadedProgress",3,0),ce=h(e,"filledProgress",3,0),X=h(e,"handleProgress",3,0),me=h(e,"ariaLabel",3,""),re=h(e,"ariaValueMin",3,void 0),de=h(e,"ariaValueMax",3,void 0),Me=h(e,"ariaValueNow",3,void 0),xe=h(e,"ariaValueText",3,""),ee=h(e,"onContextMenu",3,Dn),Oe=h(e,"handleAlwaysVisible",3,!1),pe=Lt(),k=Q(void 0),qe=Q(!1),Le=m(()=>{var Ce;return(Ce=de())!=null?Ce:0}),q=m(()=>{var Ce;return j1(f())&&((Ce=f()[f().length-1])==null?void 0:Ce.time)<n(Le)}),ie=m(()=>j1(f())&&f().length&&n(q)&&n(Le)?je(K()*100,ce()*100):[]);function He(Ce){if(Ce.preventDefault(),i()&&O(k,i().getBoundingClientRect(),!0),y())return;let se=Se(Ce.clientX,Ce.clientY),ht=De(Ce.clientX);E()(se,ht,n(k).width)}function Ge(Ce){Ce.preventDefault(),!y()&&A()()}function he(){I()()}function te(){L()()}function we(Ce){y()||v()&&(Ce.preventDefault(),Ce.deltaY<0?Y()():Ce.deltaY>0?B()():Ce.deltaX>0?Z()():U()())}function Se(Ce,se){return l()?Math.max(0,Math.min(1,(n(k).height-(se-n(k).top))/n(k).height)):Math.min(Math.max(Ce-n(k).x,0),n(k).width)/n(k).width}function De(Ce){return Math.min(Math.max(Ce-n(k).x,0),n(k).width)}function je(Ce,se){let ht=pe.features.episodesClustering&&!p()?pe.episodeMinWidthPc:0,St=[],dt=f()[0].time/n(Le)*100,xt=0,ge=0;for(let at=1;at<f().length;at++)xt=f()[at].time/n(Le)*100,xt-dt>ht&&(St.push({from:dt,width:Math.max(0,xt-dt),loadedWidth:Math.max(0,Math.min(xt,Ce)-dt),filledWidth:Math.max(0,Math.min(xt,se)-dt),interactive:f()[at-1].interactive,completed:f()[at-1].completed}),dt=f()[at].time/n(Le)*100,ge++);let st={from:dt,width:Math.max(0,100-dt),loadedWidth:Math.max(0,Math.min(Ce,100)-dt),filledWidth:Math.max(0,Math.min(se,100)-dt),interactive:f()[ge].interactive,completed:f()[ge].completed};100-dt<ht?(ge-=1,St[ge].width+=100-dt,St[ge].loadedWidth+=Math.max(0,Math.min(Ce,100)-dt),St[ge].filledWidth+=Math.max(0,Math.min(se,100)-dt)):St[ge]=st;let nt=f()[0].time;if(nt!==0){let at=nt/n(Le)*100;St.unshift({from:0,width:at,loadedWidth:Math.min(at,Ce),filledWidth:Math.min(at,se)})}return St}function Qe(Ce){return Math.max(0,Math.min(100,Ce*100))}var Fe=oy(),Ze=fe(Fe);{var Ot=Ce=>{var se=ty();let ht;xi(se,21,()=>n(ie),St=>St.from,(St,dt)=>{var xt=Be(),ge=fe(xt);{var st=nt=>{tv(nt,{get videoEpisode(){return n(dt)},get disabled(){return y()}})};R(ge,nt=>{n(dt).interactive&&nt(st)})}$(St,xt)}),g(se),D(St=>ht=ne(se,1,"interactive-icons svelte-12bsb23",null,ht,St),[()=>({mobile:a(),hidden:a()&&!n(qe)})]),$(Ce,se)};R(Ze,Ce=>{p()&&Ce(Ot)})}var tt=P(Ze,2);let Bt;tt.__pointerdown=[Y2,i,k,y,qe,Se,x],tt.__pointermove=[Z2,y,Se,De,N,k,qe,C],tt.__pointerup=[X2,y,qe,Se,T],tt.__click=[J2,y,le,Se],tt.__contextmenu=[ey,Se,y,le,qe,ee];var qt=_(tt);{var wt=Ce=>{iv(Ce,{get videoEpisodes(){return n(ie)},get disabled(){return y()},get isMobile(){return a()}})},Xt=Ce=>{var se=iy(),ht=_(se),St=P(ht,2);let dt;g(se),D((xt,ge,st)=>{Xe(ht,xt),dt=ne(St,1,"filled svelte-12bsb23",null,dt,ge),Xe(St,st)},[()=>`transform: translateX(${Qe(K())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Qe(ce())}%);`]),$(Ce,se)};R(qt,Ce=>{n(ie).length?Ce(wt):Ce(Xt,!1)})}var Pt=P(qt,2);let Te;var Ae=_(Pt);let J;g(Pt),g(tt),rt(tt,Ce=>i(Ce),()=>i()),D((Ce,se,ht,St)=>{var dt,xt;Bt=ne(tt,1,`slider ${(dt=o())!=null?dt:""}`,"svelte-12bsb23",Bt,Ce),We(tt,"aria-label",me()),We(tt,"aria-valuemin",re()),We(tt,"aria-valuemax",de()),We(tt,"aria-valuenow",Me()),We(tt,"aria-valuetext",xe()),We(tt,"data-testid",(xt=r())!=null?xt:null),Te=ne(Pt,1,"handleWrap svelte-12bsb23",null,Te,se),Xe(Pt,ht),J=ne(Ae,1,"handle svelte-12bsb23",null,J,St)},[()=>({disabled:y(),"slider-dragging":n(qe),hidden:s(),"handle-always-visible":Oe(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${Qe(X())}%);`,()=>({"active-live":d()})]),bt("pointerenter",tt,He),bt("pointerleave",tt,Ge),bt("mouseenter",tt,he),bt("mouseleave",tt,te),bt("wheel",tt,we),$(t,Fe),F()}lt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var to=(t,e)=>Sa[t]>=Sa[e],Y1=(t,e)=>Sa[t]<Sa[e],Is=(t,e)=>Sa[t]<=Sa[e],Z1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var sy=M("<div><!></div>"),ay=M("<div><!> <!></div>"),ly={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function ov(t,e){var te,we;H(e,!0),z(t,ly);let[i,o]=Ne(),r=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(x,"$currentGridType$",i),a=be(),u=Lt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,x=a.ui.currentGridType$,C=(te=a.callbacks)==null?void 0:te.onAudioDoesNotExistHint,T=(we=a.callbacks)==null?void 0:we.onAudioDisabledHint,E=a.state.isAudioAvailable$,N=a.state.isAudioDisabled,A=a.ui.t,I=Q(!1),L,Y=m(()=>e.isAds||r()),B=m(()=>!n(Y)||s()||l()===0),U=m(()=>Is(d(),"s")),Z=m(()=>n(U)?"":n(B)?!r()||N?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),le=m(()=>n(B)?A("tooltip_volume"):A("tooltip_volume_muted")),K=m(()=>n(B)?0:l()),ce=!1,X=m(()=>e.isAds?!1:N?!T:r()?!1:!C);function me(Se){y(),p(Se)}function re(){ku(a,l(),u.controls.volumeStepWheel)}function de(){Au(a,l(),u.controls.volumeStepWheel)}function Me(Se){p(Se)}function xe(Se){p(Se),w()}function ee(){ce=!0}function Oe(){ce=!1,qe()}function pe(){clearTimeout(L),O(I,!0)}function k(){qe()}function qe(){L=window.setTimeout(()=>{ce||O(I,!1)},u.controls.volumeBarTimeout)}function Le(Se){Se.preventDefault(),Se.deltaY<0?re():Se.deltaY>0&&de()}var q=ay();let ie;var He=_(q);La(He,{get content(){return n(Z)},translateY:-18,children:(Se,De)=>{let je=m(()=>n(U)?"btn-volume-vertical":"btn-volume-horizontal");zt(Se,{className:"btn-full-opacity",get disabled(){return n(X)},get testId(){return n(je)},get ariaLabel(){return n(le)},get click(){return e.click},get ariaKeyShortCut(){return ss.KeyM},role:"button",children:(Qe,Fe)=>{Xs(Qe,{get volume(){return l()},get muted(){return n(B)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ge=P(He,2);{var he=Se=>{var De=sy();let je;var Qe=_(De);let Fe=m(()=>n(U)?"volumeBar-slider-vertical":""),Ze=m(()=>n(U)&&!n(I)),Ot=m(()=>n(U)?ee:Lu),tt=m(()=>n(U)?Oe:Lu),Bt=m(()=>Math.round(n(K)*100)),qt=m(()=>`${Math.round(n(K)*100)}%`),wt=m(()=>n(U)?"volume-slider-vertical":"volume-slider");Va(Qe,{get className(){return n(Fe)},get isHidden(){return n(Ze)},get isVertical(){return n(U)},withWheelHandler:!0,onWheelUp:re,onWheelDown:de,onPointerDown:me,onHandleMove:Me,onPointerUp:xe,get onPointerEnter(){return n(Ot)},get onPointerLeave(){return n(tt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Bt)},get ariaValueText(){return n(qt)},get filledProgress(){return n(K)},get handleProgress(){return n(K)},get testId(){return n(wt)}}),g(De),D(Xt=>je=ne(De,1,"volumeBar svelte-1auih1j",null,je,Xt),[()=>({"volumeBar-vertical":n(U)})]),$(Se,De)};R(Ge,Se=>{n(Y)&&Se(he)})}g(q),D(Se=>ie=ne(q,1,"volumeBar-container svelte-1auih1j",null,ie,Se),[()=>({vertical:n(U)})]),bt("mouseenter",q,function(...Se){var De;(De=n(U)?pe:Lu)==null||De.apply(this,Se)}),bt("mouseleave",q,function(...Se){var De;(De=n(U)?k:Lu)==null||De.apply(this,Se)}),bt("wheel",q,Le),$(t,q),F(),o()}import{noop as uy}from"@vkontakte/videoplayer-shared/es2018";var dy=Ie('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function nv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=dy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var cy={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
179
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function rv(t,e){z(t,cy);let i=h(e,"isFullscreen",8,!1),o=bn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");nv(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function zd(t,e){H(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,uy),r=be(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));zt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let f=Ys(u);s.set(f),o()()},get ariaKeyShortCut(){return ss.KeyF},role:"button",children:(u,f)=>{rv(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var py=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function sv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=py();Pe(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=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var fy=Ie('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.261v15.474c0 .435.114.778.335.988l.002.002 9.178-8.728L.332.282C.075.532 0 .92 0 1.26"></path><path d="M.332.282.384.235c.34-.3.881-.326 1.482 0L12.623 6.04 10.018 8.52zm10.286 8.747 2.884 2.452-.532.288-.345.184-2.572-2.446-9.716 8.218c.336.34.9.378 1.529.044l11.104-6 .534-.286-.002-.002 2.725-1.472c1.03-.56 1.03-1.47 0-2.022l-2.77-1.495-.833-.452-.001.001.834.45.098.054z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.623 16.365a11.4 11.4 0 0 1-1.15 2.03q-.906 1.27-1.48 1.758-.885.8-1.901.823-.732.001-1.757-.412-1.029-.412-1.892-.411-.906 0-1.945.411-1.04.413-1.68.434-.975.041-1.946-.845-.62-.53-1.548-1.82-.995-1.376-1.637-3.195Q.001 13.173 0 11.33 0 9.218.93 7.69a5.4 5.4 0 0 1 1.946-1.934 5.3 5.3 0 0 1 2.63-.73q.774.002 2.036.465 1.26.466 1.614.467.267 0 1.79-.55 1.44-.508 2.433-.424 2.699.214 4.047 2.094-2.412 1.437-2.387 4.019.022 2.01 1.481 3.34.66.615 1.48.954a16 16 0 0 1-.377.973M13.499.42q0 1.576-1.168 2.939c-.94 1.079-2.075 1.702-3.307 1.604a3 3 0 0 1-.025-.398c0-1.008.446-2.087 1.24-2.97q.595-.67 1.51-1.114.915-.438 1.728-.481.023.21.022.42"></path></svg><path d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path></svg>');function av(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=fy();Pe(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=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(6),g(o),$(t,o)}var vy={hash:"svelte-e5e2xr",code:`svg [data-logo],
180
+ svg[data-testid="vk-video-logo-icon--short"] ._ru,
181
+ svg[data-testid="vk-video-logo-icon--short"] ._en,
182
+ svg[data-testid="vk-video-logo-icon"] ._en,
183
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}svg[data-logo="vk_video"] [data-logo="vk_video"],
184
+ svg[data-logo="play_market"] [data-logo="play_market"],
185
+ svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function lv(t,e){H(e,!0),z(t,vy);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),a=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);av(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),F()}function Wd(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(y,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(x,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),a=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),f=Lt(),v=be(),p=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,x=v.isCyrillicRelatedInterface$,C=m(()=>f.logoType!=="vk"),T=m(()=>n(C)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=m(()=>(r()&&Is(s(),"m")||Is(s(),"l"))&&n(C)),N=()=>{var L,Y;e.click(),(L=v.callbacks)!=null&&L.onLogoClicked?(Y=v.callbacks)==null||Y.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!a()),I=m(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");zt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:N,get testId(){return n(I)},get ariaLabel(){return n(T)},get ref(){return d()},set ref(L){d(L)},children:(L,Y)=>{var B=Be(),U=fe(B);{var Z=K=>{lv(K,{get logo(){return f.logoType},get short(){return n(E)},get isCyrillic(){return l()}})},le=K=>{sv(K,{})};R(U,K=>{n(C)?K(Z):K(le,!1)})}$(L,B)},$$slots:{default:!0}}),F(),o()}import{ChromecastState as _y}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as J1}from"@vkontakte/videoplayer-core/es2018";var my=Ie('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),gy=Ie('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),hy={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
186
+ animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
187
+ animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
188
+ animation-name: svelte-8z1bf5-wave3;}
189
+
190
+ @keyframes svelte-8z1bf5-wave1 {
191
+ 0% {
192
+ opacity: 0.3;
193
+ }
194
+ 33% {
195
+ opacity: 1;
196
+ }
197
+ 66% {
198
+ opacity: 1;
199
+ }
200
+ 100% {
201
+ opacity: 1;
202
+ }
203
+ }
204
+
205
+ @keyframes svelte-8z1bf5-wave2 {
206
+ 0% {
207
+ opacity: 0.3;
208
+ }
209
+ 33% {
210
+ opacity: 0.3;
211
+ }
212
+ 66% {
213
+ opacity: 1;
214
+ }
215
+ 100% {
216
+ opacity: 1;
217
+ }
218
+ }
219
+
220
+ @keyframes svelte-8z1bf5-wave3 {
221
+ 0% {
222
+ opacity: 0.3;
223
+ }
224
+ 33% {
225
+ opacity: 0.3;
226
+ }
227
+ 66% {
228
+ opacity: 0.3;
229
+ }
230
+ 100% {
231
+ opacity: 1;
232
+ }
233
+ }`};function dv(t,e){H(e,!0),z(t,hy);let i=h(e,"isMobile",3,!1),o=m(()=>e.iconState===J1.CONNECTED),r=m(()=>e.iconState===J1.CONNECTING);var s=Be(),l=fe(s);{var d=u=>{var f=my(),v=_(f),p=_(v),y=_(p);Ee(),g(p);var w=P(p);Ee(),g(v);var x=P(v),C=_(x),T=_(C);g(C),Ee(),g(x),g(f),D(()=>{We(y,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),We(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),We(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=gy();let v;var p=_(f),y=P(_(p),5);let w;g(p),g(f),D((x,C)=>{v=ne(f,0,"svelte-8z1bf5",null,v,x),w=ne(y,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),$(u,f)};R(l,u=>{i()?u(d):u(a,!1)})}$(t,s),F()}import{noop as by}from"@vkontakte/videoplayer-shared/es2018";function Kd(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,by),l=be().ui.t,d=m(()=>e.state===_y.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));zt(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)=>{dv(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}import{noop as xy}from"@vkontakte/videoplayer-shared/es2018";var $y=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function cv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$y();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(3),g(o),$(t,o)}var yy=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function uv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=yy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var Vu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var wy=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Sy=M('<span class="text svelte-1yhs2ga"> </span>'),Cy=M('<span class="text count svelte-1yhs2ga"> </span>'),Ty=M("<!> <!>",1),Ey={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function qd(t,e){var X,me,re;H(e,!0),z(t,Ey);let[i,o]=Ne(),r=()=>S(w,"$currentGridType$",i),s=()=>S(x,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=h(e,"position",3,0),u=h(e,"duration",3,0),f=h(e,"timeCodes",19,()=>[]),v=be(),p=(me=(X=v.callbacks)==null?void 0:X.onEpisodeChanged)!=null?me:xy,y=!!((re=v.callbacks)!=null&&re.onEpisodeClicked),w=v.ui.currentGridType$,x=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,N=Q(void 0),A=de=>{var xe,ee,Oe;if(!!((xe=v.callbacks)!=null&&xe.onEpisodeClicked)){let pe=Ys(de);x.set(pe),C.set(!0),(Oe=(ee=v.callbacks)==null?void 0:ee.onEpisodeClicked)==null||Oe.call(ee,pe)}},I=Q(null),L=m(()=>a()/u());ze(()=>{var Me;let de=Vu(n(L),u(),f());de?((Me=n(I))==null?void 0:Me.time)!==de.time&&(p(de),O(I,de,!0)):O(I,null)});let Y=m(()=>{var de;return((de=n(I))==null?void 0:de.text)||""}),B=m(()=>to(r(),"xl")?"FULL":to(r(),"m")&&Y1(r(),"xl")?"COUNT":"SHORT"),U=m(()=>`${E("tooltip_episodes")}: ${n(Y)}`),Z=async(de,Me,xe)=>{await co(),(de==null?void 0:de.getAttribute("aria-expanded"))==="false"&&Me&&!xe&&Et(()=>{x.set(!1),de.focus()})};ze(()=>{Z(n(N),s(),l())});var le=Be(),K=fe(le);{var ce=de=>{let Me=m(()=>d()?"px-0":""),xe=m(()=>!y);zt(de,{get className(){var ee;return`w-max btn-full-opacity btn-jc-l ${(ee=n(Me))!=null?ee:""}`},testId:"btn-episodes",click:A,get disabled(){return n(xe)},get ariaExpanded(){return l()},get ariaLabel(){return n(U)},get ref(){return n(N)},set ref(ee){O(N,ee,!0)},children:(ee,Oe)=>{var pe=Be(),k=fe(pe);{var qe=q=>{var ie=wy(),He=fe(ie),Ge=_(He,!0);g(He);var he=P(He,2),te=_(he);uv(te,{}),g(he),D(()=>ve(Ge,n(Y))),$(q,ie)},Le=q=>{var ie=Ty(),He=fe(ie);cv(He,{});var Ge=P(He,2);{var he=we=>{var Se=Sy(),De=_(Se,!0);g(Se),D(()=>ve(De,n(Y))),$(we,Se)},te=(we,Se)=>{{var De=je=>{var Qe=Cy(),Fe=_(Qe,!0);g(Qe),D(()=>ve(Fe,f().length)),$(je,Qe)};R(we,je=>{n(B)==="COUNT"&&je(De)},Se)}};R(Ge,we=>{n(B)==="FULL"?we(he):we(te,!1)})}$(q,ie)};R(k,q=>{d()?q(qe):q(Le,!1)})}$(ee,pe)},$$slots:{default:!0}})};R(K,de=>{n(I)&&de(ce)})}$(t,le),F(),o()}import{debounceFn as g0}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Ny,PlaybackState as Rl,Player as Oy,PredefinedQualityLimits as cs,VideoFormat as Gd,clientChecker as r0}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as sr,getHighestQuality as Dy,InterfaceLanguage as By,isInvariantQuality as Hy,isNonNullable as Fy,loadVKLangPack as Uy,Logger as zy,map as s0,merge as Wy,Observable as Fu,Subject as Uu,Subscription as hv,TracerFactory as Ky,ValueSubject as qy,VideoQuality as Qy,devNull as Gy,now as jy,filter as Yy,once as Zy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as As}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as Iy,devNull as ti,isNonNullable as ky,now as ii}from"@vkontakte/videoplayer-shared/es2018";import{addScript as Ay,Subject as nn,clearVideoElement as Py}from"@vkontakte/videoplayer-shared/es2018";var My="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Ru=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 nn,loadStarted$:new nn,loadEnded$:new nn,loadError$:new nn,ready$:new nn,slotRequested$:new nn,started$:new nn,timeRemained$:new nn,paused$:new nn,resumed$:new nn,ended$:new nn,empty$:new nn,skipped$:new nn,clicked$:new nn,closed$:new nn,error$:new nn};this.loadAdman=e=>(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[ii()]}),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?(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[ii()]}),i(),this.events.loadEnded$.next()):(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[ii()]}),o())};Ay(My,e,this.loadTimeout).then(()=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[ii()]}),window.AdmanHTML?(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[ii()]}),i(),this.events.loadEnded$.next()):(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[ii()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(l=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[ii()]}),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?(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[ii()]}),i(),this.events.loadEnded$.next()):(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[ii()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[ii()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[ii()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[ii()]}),!d&&(window.AdmanHTML?(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[ii()]}),i(),this.events.loadEnded$.next()):(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[ii()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[ii()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[ii(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?_e(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[ii()]}),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;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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")=>{ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[ii()]}),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"),ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[ii()]}),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 N,A;if(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[ii(),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:f,externalApi:v}=e;this.externalApi=v;let p,y=this.playerState&&_e(this.playerState.vsid);y&&(this.isVsidOriginal?p=y:p=parseInt(y,36));let{isEmbed:w,immediateOrigin:x}=Iy(),C=(N=w?x:window.location.href)!=null?N:window.location.href,T={...a,dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o,...p?{request_id:p}:{},duration:f,...u};T=Object.fromEntries(Object.entries(T).filter(([I,L])=>ky(L)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;if(I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.setDebug(!1),(A=this.externalApi)!=null&&A.videoGetAds){let L=await this.safeExternalCall(this.externalApi.videoGetAds,T);L&&(delete E.slot,delete E.params,Object.assign(E,{json:L}))}I.init(E),this.adman=I,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[ii()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,s;if(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),this.adsState){this.log({message:"toggle play"});let i=_e(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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(ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[ii()]}),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,f,v,p;ti.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[ii()]}),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),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&Py(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 e0=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 pv=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 Nu,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new fv,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Nu=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}},fv=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((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new Nu;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}},t0=pv;import{isNonNullable as vv}from"@vkontakte/videoplayer-shared/es2018";var Ra,Li,mv=0,gv=!1,i0="",o0=(t,e=0,i=0)=>t<e&&t<i,Ou=(t,e=0,i=0)=>t>=e&&t<=i,Ly=(t,e=0,i=0)=>t>e&&t>i,n0=(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:f})=>Ou(t,u,f));let s=t>=mv,l=t<mv;if(mv=t,l&&(gv=!1),vv(Ra)&&Ou(t,Ra.startTime,Ra.endTime)&&i0===e.value)return Ra;if(!vv(Li)&&(r!=null&&r.length)&&!gv){Li=r.find(({startTime:u,endTime:f})=>Ou(t,u,f)||s&&o0(t,u,f)),Ra=void 0,!vv(Li)&&r[r.length-1].endTime<t&&(gv=!0);return}else{if(Ou(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))return Ra=Li,Li=void 0,i0=e.value,Ra;(s&&Ly(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime)||l&&o0(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))&&(Li=void 0)}};var Du={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},Vy={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Qd=t=>{var e,i;return(i=(e=Du[t])!=null?e:Du[Vy[t]])!=null?i:void 0};import{Subscription as Ry}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Bu=class{constructor(e,i,o,r=new Ry){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 Hu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Hu||{});var ds=t=>t!=null?t:0,ks=(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(ds(i==null?void 0:i.top)-ds(o==null?void 0:o.top)),left:Math.round(ds(i==null?void 0:i.left)-ds(o==null?void 0:o.left)),bottom:Math.round(ds(i==null?void 0:i.bottom)-ds(o==null?void 0:o.top)),right:Math.round(ds(i==null?void 0:i.right)-ds(o==null?void 0:o.left))}},Ll=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ds(e==null?void 0:e.width),height:ds(e==null?void 0:e.height)}};var Bn="off";var Vl=t=>!!(Math.round(Math.abs(t)/90)%2);var a0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:y,player:w,disabledControls:x,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:N,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:L,additionalButtons:Y,additionalSettingsMenuItems:B,additionalContextMenuItems:U,playPrevVideo:Z,playNextVideo:le,onVideoChanged:K,looped:ce=!1,statistics:X,saveRate:me,internalsExposure:re,playerView:de,playerId:Me})=>{var Zm,Xm,Jm;let xe={...y,configName:[...(Zm=y.configName)!=null?Zm:[],"ui"],isAudioDisabled:l,live:{...(Xm=y.live)!=null?Xm:{},isLiveCatchUpMode:!!r}},ee=p,Oe=Ky.createRootTracer(ee.features.tracer),pe=Oe.createComponentTracer("Store"),k=w||new Oy(xe,Oe,{playerId:Me});re==null||re.expose({corePlayer:k});let qe=new zy,Le=new Ru(qe,{loadTimeout:ee.ads.loadTimeout,initTimeout:ee.ads.initTimeout,runtimeTimeout:ee.ads.runtimeTimeout,useAdmanFromNPM:ee.ads.useAdmanFromNPM,volumeMultiplier:ee.ads.volumeMultiplier,isVsidOriginal:ee.ads.isVsidOriginal}),q=Ta.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,He=u==null?void 0:u.annotationsApi,Ge=u==null?void 0:u.slotsApi,he=qe.createComponentLog("Store"),te,we,Se={},De=new du,je=new hv,Qe="",Fe=ae(!1),Ze=X&&X.oneStat?ai(X.oneStat.vsid$):yr(void 0),Ot=ae(Qs()),tt=ae(!1),Bt=()=>I1(document,r0.device.isIOS),qt=(Jm=ie==null?void 0:ie.info.isActive$)!=null?Jm:new qy(!1),wt=ae(0),Xt=ae(!1),Pt=ae(!1),Te=ae([]),Ae=Wy(k.events.fatalError$,k.events.managedError$).subscribe(c=>Te.update(b=>[...b,c])),J=yr(!1,c=>{let b=k.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Ce=async c=>{var oe;let b=Object.values(By).includes(c);if(ee.downloadVKLanguages&&(b&&ee.updateBuiltinLanguages||!Cf(c))){let ke;try{ke=await Uy(c,Bh,Hh)}catch(ot){(oe=X==null?void 0:X.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),q==null||q.report(ot,{errorType:"VKLangPack",fatal:!1})}ke&&(Sf({language:c,pack:ke,fallback:ee.defaultLanguage}),se.set(c),ht.update(ot=>ot+1))}Cf(c)&&se.set(c)},se=ae(t),ht=ae(0),St=ae(e);Ce(t);let dt=(c,b)=>{let V=_e(se);return Tf(V,c,b,ee.defaultLanguage)},xt=ae("thumb");xt.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&nt()});let ge=(()=>{let c=hi([J,xt],([b,V])=>b?"crashed":V);return{...c,is:b=>_e(c)===b}})(),st=ae(),nt=()=>{st.set({muted:k.info.muted$.getValue()})},at=(()=>{let c=ae(new Set(x));return{...c,add:b=>{c.update(V=>new Set([...V].concat(b)))},remove:b=>{c.update(V=>{let oe=[...V];return new Set(Array.isArray(b)?oe.filter(ke=>!b.includes(ke)):oe.filter(ke=>ke!==b))})},includes:b=>{let V=_e(c);return Array.isArray(b)?b.every(oe=>V.has(oe)):V.has(b)}}})(),ei=ae({width:0,height:0}),jt=null,ui=k.info.isBuffering$,wi=yr(ui.getValue(),c=>{let b=ui.subscribe(V=>{V&&jt===null?jt=window.setTimeout(()=>{c(ui.getValue()),jt=null},ee.loaderDelay):c(V)});return()=>{b.unsubscribe(),jt&&clearTimeout(jt)}});pe.log("create store"),he({message:"create store"});let oo=c=>{let b=c.container,V=()=>{Ei=new MutationObserver(ke=>{let{removedNodes:ot}=ke[0];ot.length&&b.append(k.experimental.element$.getValue())}),Ei.observe(b,{childList:!0})},oe=k.experimental.element$.getValue();if(oe)b.append(oe),V();else{let ke=k.experimental.element$.pipe(Yy(ot=>!!ot),Zy()).subscribe(ot=>{b.append(ot),V()});je.add(ke)}},Vt=c=>{he({message:`init video, config: ${JSON.stringify(c)}`}),C?oo(c):(Gy.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[jy()]}),k.initVideo(c)),pe.log("init video",{isInteractive:C}),c.subtitles&&k.setExternalTextTracks(c.subtitles),te=c,Qe=c.subtitlesForcedLanguage||""},li=new Uu,_i=c=>li.next(c),_t=new Uu,Dt=new Uu,Bi=new Uu,Ei=null,oi={actionRewind$:_t,actionSeek$:Dt,inPiP$:qt,inFullscreen$:new Fu(c=>Ot.subscribe(b=>c.next(b))),actionSetSubtitle$:Bi,nextMovie$:li},It={actionSeek$:Dt,playerSize$:new Fu(c=>ei.subscribe(b=>c.next(b))),inPiP$:qt,inFullscreen$:new Fu(c=>Ot.subscribe(b=>c.next(b))),isLoaderVisible$:new Fu(c=>wi.subscribe(b=>c.next(b)))};if(X){let{oneStat:c,thinOneStat:b,mediascopePixel:V,statSubscription:oe}=X;c&&(C||oe.add(c.attachTo(k)),oe.add(c.attachToUi(oi)),oe.add(c.attachToAds(Le.events)),c.authorize(s).catch(ke=>{he({message:`onestat auth error ${String(ke)}`})}),V&&V.attachTo(k)),b&&(oe.add(b.attachTo(k,Le.events)),oe.add(b.attachToUi(It)),oe.add(b.attachToAds(Le.events)),b.updateContext({isMobile:_e(Fe)}),b.authorize(s))}if(q){let c=new hv,b=(V,oe)=>c.add(V.subscribe(oe));if(b(k.events.managedError$,V=>{q.logIError(V)}),b(k.events.fatalError$,V=>{q.logIError(V,!0)}),X){let{oneStat:V}=X;V&&b(V.experimental.error$,oe=>{q.logIError(oe)})}q.sentrySubscription.add(c)}let Ye=()=>{if(r0.device.isIOS&&we)try{k1(we)}catch(c){he({message:`exitIosSafariFullscreen failed: ${c}`})}};je.add(k.experimental.element$.subscribe(c=>{c&&(we=c,c.classList.add("player-media"),Ia(ie)&&ie.updateVideoElement(),C&&c.setAttribute("pip","false"),de==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;Ye(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(k.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(k.events.started$.subscribe(async()=>{var b,V;Ia(ie)&&await(ie==null?void 0:ie.revealPictureInPicture());let c=k.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(V=Se.onStarted)==null||V.call(Se,c)})).add(k.events.willSeek$.subscribe(({from:c,to:b})=>{var V;(V=a==null?void 0:a.onSeek)==null||V.call(a,c,b)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(k.info.position$.subscribe(c=>{var V;let b=k.info.duration$.getValue();isFinite(b)&&b>0&&((V=a==null?void 0:a.onTimeupdate)==null||V.call(a,b,c),Le.setPosition(c,b))})).add(k.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{Xt.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{Pt.set(c)})).add(k.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&at.add(yd),at.add("PLAY_BUTTON")):at.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(k.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(Le.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(Le.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(Le.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(Le.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(Le.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(Le.events.started$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:V.call(b,c)})).add(Le.events.timeRemained$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:V.call(b,c)})).add(Le.events.ended$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:V.call(b,c)})).add(Le.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(Le.events.clicked$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:V.call(b,c)})).add(Le.events.closed$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:V.call(b,c)})).add(Le.events.error$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:V.call(b,c)})).add(Le.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(Le.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let bi=new hv,bo=()=>{var ot,At,Ft;let{debugLog:c}=ee,b,V="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Kt}=c;b=c.tag,V=(ot=Kt==null?void 0:Kt[0])!=null?ot:V,oe=(Ft=(At=Kt==null?void 0:Kt[1])!=null?At:Kt==null?void 0:Kt[0])!=null?Ft:oe}let ke=b?`: ${b}`:"";bi.add(k.events.log$.subscribe(Kt=>{console.debug(`%c sdk${ke} `,`background:${V};`,`sdk component: ${Kt.component}`,Kt.message)})).add(qe.log$.subscribe(Kt=>{console.debug(`%c ui${ke} `,`background:${oe};`,`ui component: ${Kt.component}.`,Kt.message)}))},Qo=()=>{bi.unsubscribe()},sn=(c,b)=>{pe.log("start camera manual rotation",{mx:c,my:b}),k.startCameraManualRotation(c,b)},Ct=(c=!1)=>{pe.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},Ht=(c,b,V)=>{pe.log("move camera focus px",{xpx:c,ypx:b,dt:V}),k.moveCameraFocusPX(c,b,V)},W=()=>{k.holdCamera()},Mt=()=>{k.releaseCamera()},Jt=yr(k.info.position$.getValue(),c=>{let b,V,oe=()=>{let ke=k.info.playbackState$.getValue(),ot=k.info.isLive$.getValue(),At=k.info.duration$.getValue(),Ft=k.info.position$.getValue();if(ke&&[Rl.PLAYING,Rl.PAUSED].includes(ke)){let Kt=ot?Ft-At:k.getExactTime();Kt!==V&&c(Kt),V=Kt}b=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(b)}),ut=ai(k.info.playbackState$),Tt=ai(k.info.currentBuffer$),Qt=ai(k.info.isEnded$),ct=ai(k.info.isLive$),Ii=ee.features.playbackRate?ai(k.info.canChangePlaybackSpeed$):yr(!1),Hi=ai(k.info.liveBufferTime$),Go=ai(k.info.volume$),Ao=ai(k.info.muted$),no=cu(k.info.predefinedQualityLimitType$.pipe(s0(c=>c===cs.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===cs.TRAFFIC_SAVING),Fi=cu(k.info.predefinedQualityLimitType$.pipe(s0(c=>c===cs.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===cs.HIGH_QUALITY),lr=ai(k.info.autoQualityLimitingAvailable$),uo=ai(k.info.availableQualities$),po=ai(k.info.availableQualitiesFps$),Vi=ai(k.info.chromecastState$),an=ai(k.info.chromecastDeviceName$),Po=ai(k.info.currentFormat$),dr=ai(k.info.throughputEstimation$),cr=ai(k.info.videoBitrate$),wr=ai(k.info.intrinsicVideoSize$),Zr=ai(k.info.duration$),ps=ai(k.info.isAudioAvailable$),Xr=()=>{jt&&clearTimeout(jt),jt=null},$o=hi([Zr,ct],([c,b])=>b?-c:c),Un=hi([ut],([c])=>c===Rl.PLAYING),Mo=ai(k.info.atLiveEdge$),ln=ai(k.info.atLiveDurationEdge$),Cn=ai(k.info.position$),ur=hi([Cn,Zr],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),Sr=hi([Vi],([c])=>c===Ny.CONNECTED),Cr=ai(k.info.availableVideoStreams$),Tr=ee.features.audioLanguages?ai(k.info.availableAudioStreams$):yr([]),Er=ai(k.info.currentVideoStream$),Gi=ai(k.info.currentAudioStream$),Ir=c=>{c.language&&$f(c.language),k.setVideoStream(c)},Tn=(c,b)=>{k.setAudioStream(c),mo(b)&&(c.language&&$f(c.language),ee.features.userVideoPrefs&&i&&wf(ee.userSalt,String(i),{audioTrackId:c.id}))},dn=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(oe=>"isDefault"in oe&&oe.isDefault)),ee.features.userVideoPrefs&&i){let oe=mu(ee.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let ke=c.find(ot=>ot.id===oe.audioTrackId);b=ke!=null?ke:b}}let V=u1();return V&&(b!=null||(b=c.find(({language:oe})=>V===oe))),b!=null||(b=c.at(0)),b},fo=c=>{pe.log("change audio stream",{id:c});let b=k.info.availableAudioStreams$.getValue().find(V=>V.id===c);b&&Tn(b,!0)},pr=!1;je.add(k.info.availableAudioStreams$.subscribe(c=>{if(!pr&&c.length){let b=dn(c);b&&(k.setAudioStream(b),pr=!0)}})),Tr.subscribe(c=>{var b;(b=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||b.call(a,c.map(({label:V="",id:oe="",language:ke=""})=>({label:V,language:ke,id:oe})))}),Gi.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onAudioStreamChanged)==null?void 0:b.call(a,c.id))});let En=!1;je.add(k.info.availableVideoStreams$.subscribe(c=>{if(!En&&c.length){let b=dn(c);b&&(k.setVideoStream(b),En=!0)}}));let ft=ae(void 0),pi=ai(k.info.isAutoQualityEnabled$,c=>c&&ft.set(void 0)),kr=ai(k.info.currentQuality$,()=>ft.set(void 0)),zn=hi([ft,kr],([c,b])=>c!=null?c:b),Ar=hi(Po,c=>c!==Gd.MPEG),In=hi([uo,po,pi,zn,Ar],([c,b,V,oe,ke])=>{let ot=[];ke&&ot.push({value:"auto",displayValue:dt("auto_quality_option"),selected:V});let At=c.filter(Ft=>!Hy(Ft));for(let Ft of At){let Kt=b[Ft];ot.push({value:Ft,displayValue:`${Ft}${Kt?e0(Kt):""}`,selected:V?!1:Ft===oe})}return ot}),kn=ai(k.info.currentPlaybackRate$),Lo=hi([kn,Mo,ln],([c,b,V])=>{let oe=V||C?1:ee.controls.playbackRateMin,ke=b?1:ee.controls.playbackRateMax,ot=ee.controls.playbackRateStep,At=[];for(let Ft=oe;Ft<=ke;Ft+=ot)At.push({value:Ft,displayValue:Ft===1?dt("playback_rate_1"):dt("playback_rate",{multiplier:Ft.toString(10)}),selected:c===Ft});return At}),Vo=()=>({displayValue:dt("subtitles_off"),value:Bn,language:""}),cn=ae(Vo()),vo=hi([cn,ht],([c],b)=>{c.value===Bn?b(Vo()):b(c)}),Ro=ee.features.subtitles?ai(k.info.availableTextTracks$):yr([]),jo=e1(),fr=hi([Ro,vo],([c,b],V)=>{var ot;let oe=[],ke=c.find(({id:At})=>At===b.value);if(ke!=null&&ke.url){let[,At]=(ot=jo.find(ke.url))!=null?ot:[];if(At){V(At);return}De.download(ke.url).then(Ft=>{if(!Ft||De.isDestroyed())return;let Kt=new t0,Os=ke.language;if(Os){let s_=!!ke.isAuto,a_=Kt.parse(Ft,Os);oe.push({lang:Os,subtitles:a_,isAuto:s_,id:ke.id})}jo.add(ke.url,oe),_e(vo).value===b.value&&V(oe)}).catch(Ft=>{var Kt;(Kt=X==null?void 0:X.oneStat)==null||Kt.logError({errorType:"Subtitles download",fatal:!1}),q==null||q.report(Ft,{errorType:"Subtitles download",fatal:!1})})}V(oe)}),Pr=hi([kn,Un,vo],([c,b,V],oe)=>{let At;if(k.info.isLive$.getValue()&&b&&V.value!==Bn){let Kt=()=>{let Os=1e3/(3*c);At=setTimeout(Kt,Os),oe(Date.now())};return Kt(),()=>clearTimeout(At)}}),un=hi([Ro,vo],([c,b])=>{if(!c.length)return[];let V=[];for(let{language:oe,isAuto:ke,id:ot}of c){let At=oe&&Qd(oe);oe&&At&&V.push({displayValue:ke?dt("subtitles_auto",{language:At}):At,value:ot,selected:(b==null?void 0:b.value)===ot,isAuto:ke,language:oe})}return V.length?(V.unshift({...Vo(),selected:(b==null?void 0:b.value)===Bn}),V):[]}),Ui={available:[],prev:[]},vr=()=>{var b,V;let c=k.experimental.getCurrentTime$.getValue();return(V=(b=c==null?void 0:c())!=null?b:we==null?void 0:we.currentTime)!=null?V:0},Mr=hi([Jt,vo,fr,Pr],([c,b,V,oe])=>{var ot;let ke=k.info.isLive$.getValue();if(ke&&Ui.prev!==V){let At=V.find(({id:Kt})=>Kt===b.value),Ft=Ui.prev.find(({id:Kt})=>Kt===b.value);if(At){let Kt={...At,subtitles:[...(ot=Ft==null?void 0:Ft.subtitles)!=null?ot:[],...At.subtitles]};Ui.available=[Kt],Ui.prev=V}}if(b&&b.value!==Bn){let At=ke?vr():c,Ft=ke?Ui.available:V;return n0(At,b,Ft,ke)}}),An=hi([Mr],([c])=>c!=null&&c.texts?c.texts:[]);je.add(vo.subscribe(c=>{var b,V;if(c.value===Bn)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let oe=Object.entries(Du).find(([ke,ot])=>ot===c.displayValue);(V=a==null?void 0:a.onSubtitleOn)==null||V.call(a,oe?oe[0]:"",c.value)}}));let Wn=ae(!0),Lr=hi([Tt,$o,Cn,Hi],([c,b,V,oe])=>{var Ft;let ke=(Ft=c==null?void 0:c.end)!=null?Ft:0;if(!oe)return ke/b;let At=-V+oe-b;return(ke-At)/b}),Kn=ai(k.info.availableSources$),et=hi([Kn],([c])=>Object.keys((c==null?void 0:c[Gd.MPEG])||{}).length>0),ni=()=>{var V,oe,ke;let c=Object.keys(((oe=(V=k.info.availableSources$)==null?void 0:V.getValue())==null?void 0:oe[Gd.MPEG])||{}),b=Dy(c)||Qy.Q_144P;return(ke=te.sources[Gd.MPEG])==null?void 0:ke[b]},Ri=()=>{var b;let c=ni();if(c)pe.log("download video",{url:c}),Zh(c,((b=te==null?void 0:te.meta)==null?void 0:b.title)||"video");else{let V="There is no URL for download video";pe.log("download video",{message:V}),he({message:V})}},Ni=()=>{he({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?qn(Pn(),!1):Qn(!c,!1)},pn=()=>{var c;if(Wt.ui.settingsMenu.visible$.set(!1),!_e(Wt.ui.settingsSubMenu.visible$)){let b=_e(Wt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let oe=Ll(b),ke={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:oe,position:ke,name:"settings"})}}pe.log("close settings menu")},yo=async(c,b=()=>Promise.resolve())=>{var ke;Wt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Wt.ui.settingsMenu.visible$.set(!0),await b();let V=_e(Wt.ui.settingsMenu.ref$),oe=aa();if((ke=a==null?void 0:a.uiInfo)!=null&&ke.onSettingsMenu&&V&&oe){let At=Ll(V),Ft=ks(V,oe);a.uiInfo.onSettingsMenu({visible:!0,size:At,position:Ft,name:"settings"})}pe.log("open settings menu",{wasOpenedByKeyboard:c})},xo=(c,b=!1)=>{var ot;Wt.ui.settingsSubMenu.visible$.set(!1);let V=_e(Wt.ui.settingsMenu.ref$),oe=aa(),ke=_e(Wt.ui.settingsMenu.visible$);if((ot=a==null?void 0:a.uiInfo)!=null&&ot.onSettingsMenu&&V&&oe)if(ke&&!b){let Ft=Ll(V),Kt=ks(V,oe);a.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:Kt,name:"settings"})}else{let Ft=Ll(c),Kt={top:0,left:0,bottom:0,right:0},Os=_e(Wt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Ft,position:Kt,name:Os})}pe.log("close settings sub menu")},fi=(c,b)=>{var oe;Wt.ui.settingsSubMenu.visible$.set(!0),Wt.ui.settingsSubMenu.ref$.set(b),Wt.ui.settingsSubMenu.name$.set(c);let V=aa();if((oe=a==null?void 0:a.uiInfo)!=null&&oe.onSettingsMenu&&b&&V){let ot=Ll(b),At=ks(b,V);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:ot,position:At})}pe.log("open settings sub menu",{name:c})},Pn=()=>{var b;let c=Math.max(ee.volumeMinRestore,(b=uu())!=null?b:0);return c===0?ee.volumeDefault:c},mo=c=>{let b=ee.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},qn=(c,b)=>{let V=c===0?Pn():c,oe=k.info.muted$.getValue();he({message:`set volume, volume: ${c}, preferredVolume: ${V}`});let ke=!l||ge.is("ads");oe&&c>0&&ke&&(oe=!1,mo(b)&&_f(!1)),k.setVolume(c,oe),Le.setVolume(c),mo(b)&&ff(V)},Qn=(c,b)=>{let V=k.info.volume$.getValue();he({message:`set muted, currentVolume: ${V}, mute: ${c}`});let oe=ge.is("ads");if(k.setMuted(c,oe),Le.setVolume(c?0:V),mo(b)&&(!oe||!c)&&_f(c),!c&&V===0){let ke=Pn();k.setVolume(ke),mo(b)&&ff(ke),Le.setVolume(ke)}},Vr=ae(!1),Rr=c=>{var b,V;pe.log("set looped",{isLooped:c}),Vr.set(c),k.setLooped(c),(V=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||V.call(b,c)};Rr(ce);let fn=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},vn=(c,b=!1)=>{var V;he({message:`set autoplayNextEnabled, value: ${c}`}),pe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Wt.ui.autoplayNextEnabled$.set(c),v1(c),b&&((V=a==null?void 0:a.onSetAutoplayNextEnabled)==null||V.call(a,c))},mr=c=>{he({message:`set timerNextVideoRunning, value: ${c}`}),pe.log("set timer next video running",{timerNextVideoRunning:c}),Wt.ui.timerNextVideoRunning$.set(c)},mn=(c=!0)=>{var V;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(V=a==null?void 0:a.onPrevVideoClick)==null?void 0:V.call(a)}catch(oe){he({message:"onPrevVideoClick callback failed to execute"})}K(!0),b&&Z()},Nr=(c=!0)=>{var V;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(V=a==null?void 0:a.onNextVideoClick)==null?void 0:V.call(a)}catch(oe){he({message:"onNextVideoClick callback failed to execute"})}K(!1),b&&le()},Je=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},kt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},$i=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},go=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},No=()=>{k.prepare()},wo=()=>{sr(Wt);let c=_e(Wt.ui.controls.disabledControls$),b=_e(Wt.playerPhase),V={playerPhase:b,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(he({message:"toggle play"}),b==="ads"){V.action="play",pe.log("toggle adman play",V),Le.togglePlay();return}let oe=()=>{var ot;he({message:"toggle play, call player.play"}),V.action="play",k.play(),(ot=a==null?void 0:a.onPlay)==null||ot.call(a)},ke=()=>{var ot;he({message:"toggle play, call player.pause"}),V.action="pause",k.pause(),(ot=a==null?void 0:a.onPause)==null||ot.call(a)};if(k.info.isEnded$.getValue()){if(he({message:"toggle play, video ended, seek to 0"}),_t.next(),Dt.next(As.REWIND),C){N==null||N();return}k.seekTime(0),oe()}else k.info.playbackState$.getValue()!==Rl.PLAYING?oe():ke();pe.log("toggle play",V)},ji=(c,{changeReason:b="default",appliesTo:V="to-video"}={},oe)=>{he({message:`set quality, quality: ${c}`}),pe.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:ke}=ee.features;pu(),c!=="auto"?(ke?(fu({type:"exact_quality",quality:c,videoId:i},V),k.setPredefinedQualityLimits(cs.UNKNOWN)):vf(i,c),ft.set(c),k.setQuality(c)):ke&&b==="default"&&(So("auto_quality",V,oe),_e(no)&&Ai(!1,void 0,oe),_e(Fi)&&Yo(!1,void 0,oe))},Ai=(c,b="as-default",V)=>{he({message:`set trafficSavingEnabled, value: ${c}`}),pe.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?cs.TRAFFIC_SAVING:cs.UNKNOWN;ee.features.qualityDetailsSubMenuEnabled?(Oo(oe,b,V),xd(!1)):(k.setPredefinedQualityLimits(oe),mo(V)&&xd(c))},Yo=(c,b="as-default",V)=>{he({message:`set highQualityEnabled, value: ${c}`}),pe.log("set high quality enabled",{highQualityEnabled:c}),Oo(c?cs.HIGH_QUALITY:cs.UNKNOWN,b,V)},Oo=(c,b,V)=>{c!==cs.UNKNOWN&&(_e(lr)&&!_e(pi)&&ji("auto",{appliesTo:b,changeReason:"limit-changed"},V),So(c,b,V)),k.setPredefinedQualityLimits(c)},So=(c,b,V)=>{mo(V)&&(fu({type:c,videoId:i},b),b==="as-default"&&fu({type:c,videoId:i},"to-video"))},Yi=(c,b=!0)=>{pe.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),ee.features.saveRate&&me&&!k.info.isLive$.getValue()&&b&&p1(c)},Or=()=>{let c=_e(Ii),b=_e(Lo),V=b.findIndex(({selected:ke})=>ke);if(V===b.length-1||!c)return b[V];let oe=b[V+1];return Yi(oe.value),oe},Gn=()=>{let c=_e(Ii),b=_e(Lo),V=b.findIndex(({selected:ke})=>ke);if(V===0||!c)return b[V];let oe=b[V-1];return Yi(oe.value),oe},jn=(c={...Vo(),selected:!1},b)=>{pe.log("set subtitles",{...c}),c.value!==Bn&&Bi.next(c.isAuto?c.value+"_auto":c.value),cn.set(c),mo(b)&&(xf(c.value===Bn?void 0:c.language),ee.features.userVideoPrefs&&i&&wf(ee.userSalt,String(i),{subtitleTrackId:c.value===Bn?void 0:c.value}))},gr=c=>{pe.log("toggle subtitles");let b=_e(vo);(b==null?void 0:b.value)===Bn?Dr(c):Jr(c)},fs=(c,b)=>{pe.log("change subtitle",{enabled:c}),c?Dr(!0,b):Jr(!0)},Dr=(c,b)=>{pe.log("subtitle on");let V=_e(un),oe=_e(se),ke=Qe!=null?Qe:oe,ot;b&&(ot=V.find(At=>At.value===b)),ot!=null||(ot=V.filter(At=>At.value!==Bn).find(At=>At.language===ke)),jn(ot!=null?ot:V[1],c)},Jr=c=>{pe.log("subtitle off"),jn(void 0,c)};je.add(k.info.availableTextTracks$.subscribe(c=>{var V;function b(){let oe=[];for(let{language:ke,isAuto:ot,id:At}of c){let Ft=ke&&Qd(ke);ke&&Ft&&oe.push({id:At,language:ke,title:ot?dt("subtitles_auto",{language:Ft}):Ft})}return oe}(V=a==null?void 0:a.onAvailableSubtitlesChanged)==null||V.call(a,b())}));let Ke=ae(!0),Yt=c=>{Ke.set(c)},vi=(c,b,V=!0)=>{var oe;if(he({message:`seek to time, time: ${c}`}),pe.log("seek to time",{time:c,action:b,forcePrecise:V}),Dt.next(b),k.info.isLive$.getValue()){let ke=k.info.duration$.getValue(),ot=Math.min(0,ke+c);k.seekTime(ot,V)}else{if(E!=null&&E.getValue())return;k.info.isEnded$.getValue()&&(he({message:"seek after ended, call callbacks.onPlay"}),(oe=a==null?void 0:a.onPlay)==null||oe.call(a)),k.seekTime(Jo(c),V)}},gn=c=>{he({message:`seek to episode start time: ${c}`}),pe.log("seek to episode start time",{time:c}),vi(c,As.EPISODE,!0)},Do=(c,b,V=!1)=>{he({message:`seek to percent, percent: ${c}`}),pe.log("seek to percent",{percent:c,action:b});let oe=_e($o)*c;vi(oe,b,V)},Br=c=>{he({message:`seek external, time: ${c}`}),pe.log("seek external",{time:c}),Dt.next(As.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},Zo=c=>{var oe,ke;let b=(oe=c.max)!=null?oe:"none",V=(ke=c.min)!=null?ke:"none";he({message:`set auto quality limitation. Max: ${b}. Min: ${V}`}),pe.log("set auto quality limits",{max:b,min:V}),k.setAutoQualityLimits(c)},Hr=c=>{he({message:`seek external to episode start time: ${c}`}),pe.log("seek external to episode start time",{time:c}),vi(c,As.EPISODE,!0)},Vs=c=>{he({message:`set playback rate to: ${c}`}),pe.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},Zi=ae(!1),Fr=ae(!1),ea=hi([$o],([c])=>!!v&&c>=ee.suitableDurationForUsingRichSeek&&ee.features.useRichSeek&&!C),vt=((v==null?void 0:v.frameWidth)||0)>=((v==null?void 0:v.frameHeight)||0),di=hi([wt],([c])=>{let b=Vl(c);return vt?!b:b});je.add(ge.subscribe(c=>{c!=="video"&&Zi.set(!1)}));let ho=ae(void 0),hn=ae(!1),ye=c=>{he({message:`start scrubbing, progress: ${c}`}),pe.log("start scrubbing",{progress:c}),hn.set(!0),pt(c)},pt=c=>{ho.set(c)},ri,yi,ci=()=>{ho.set(void 0),hn.set(!1)},Zt=()=>{clearTimeout(yi),clearTimeout(ri),ri=window.setTimeout(()=>{ci()},500),we==null||we.removeEventListener("seeked",Zt)},Ci=(c,b=!1)=>{he({message:`complete scrubbing, progress: ${c}`}),pe.log("complete scrubbing",{progress:c}),Do(c,As.SLIDER,b),_e(Wt.ui.isMobile)&&_e(Wt.state.currentFormat$)===Gd.HLS?(we==null||we.addEventListener("seeked",Zt),yi=window.setTimeout(()=>{Zt()},300)):ci()},_n=hi([Jt,$o,ho],([c,b,V],oe)=>{oe(Fy(V)?V*b:c)}),Xo=ae(!1),Pi=()=>{Xo.set(!0)},Qa=()=>{Xo.set(!1)},ta=hi([ei],([{width:c}],b)=>{let V=Z1(c);b(V)}),ia=Y.filter(c=>Xh(c)),oa=hi([ta,Fe],([c,b])=>b?ia.filter(V=>!V.hideOnMobile):ia.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),Yn=ae(Y.filter(c=>Jh(c))),vs=hi([Yn,ta],([c,b])=>c.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(b))})),na=hi([vs,oa],([c,b])=>[...ee.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...ee.features.additionalButtons?b.map((V,oe)=>{var ke;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(ke=V.ariaLabel)!=null?ke:V.tooltip,tooltipText:V.tooltip}}):[]]),hr=ae(B),Ga=hi([hr],([c])=>ee.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?{...b,onClick:b.onChangeEnabled}:b):[]),ms=(c,b)=>{let V=_e(Yn).map(oe=>oe.id!==c?oe:{...oe,...b});Yn.set(V)},gs=c=>{let b=_e(Yn);if(b.some(V=>V.id===c.id)){he({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Yn.set(b)},ja=c=>{let b=_e(Yn);if(!b.some(V=>V.id===c)){he({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(V=>V.id!==c),Yn.set(b)},ra=c=>{Dt.next(As.LIVE),he({message:"live switch to low latency "+c}),pe.log("live switch to low latency "+c),k.setLiveLowLatency(c)},zl=(c,b)=>{let V=_e(hr).map(oe=>oe.id!==c?oe:{...oe,...b});hr.set(V)},Ya=c=>{let b=_e(hr);if(b.some(V=>V.id===c.id)){he({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),hr.set(b)},Wl=c=>{let b=_e(hr);if(!b.some(V=>V.id===c)){he({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(V=>V.id!==c),hr.set(b)},Zn=ae(U),Kl=hi([Zn],([c])=>ee.features.additionalContextMenuItems?c:[]),Za=(c,b)=>{let V=_e(Zn).map(oe=>oe.id!==c?oe:{...oe,...b});Zn.set(V)},Xa=c=>{let b=_e(Zn);if(b.some(V=>V.id===c.id)){he({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),Zn.set(b)},sa=c=>{let b=_e(Zn);if(!b.some(V=>V.id===c)){he({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(V=>V.id!==c),Zn.set(b)},mt=hi([Fe,J],([c,b],V)=>{V(c&&b)}),gt=()=>{Dt.next(As.LIVE),he({message:"switch to active live"}),pe.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==Rl.PLAYING&&Wt.actions.internal.togglePlay()},Xi=()=>{pe.log("skip adman"),Le.skip()},Co=(c=!0)=>{var oe;sr(Wt),he({message:`switch from ads to video, callPlay: ${c}`}),pe.log("switch from ads to video",{callPlay:c}),xt.set("video"),c&&k.play(),l&&Qn(!0,!0);let b=(oe=_e(st))==null?void 0:oe.muted,V=!k.info.muted$.getValue();b!==void 0&&!V&&Qn(b,!0),st.set(void 0)},Ji=()=>{sr(Wt),he({message:"switch from video to ads"}),pe.log("switch from video to ads"),Wt.actions.internal.pause(),Ye(),xt.set("ads")},mi=c=>{sr(Wt);let b=c?"LiveWaitingStart":"thumb";pe.log("set live waiting start",{state:c,playerPhase:b}),xt.set(b)},zi=c=>{sr(Wt);let b=c?"LiveWaitingRecover":"thumb";pe.log("set live waiting recover",{state:c,playerPhase:b}),xt.set(b)},Rs=c=>{sr(Wt);let b=c?"LiveWaitingRecord":"thumb";pe.log("set live waiting record",{state:c,playerPhase:b}),xt.set(b)},ql=()=>(sr(Wt),pe.log("get debug text data"),jh(k,te,Wt,Oe.getTraceId())),Sc=()=>(sr(Wt),JSON.stringify(Oe.getFinishedSpans())),dp=()=>(sr(Wt),Yh(k,te,Wt)),aa=()=>we,Cc=()=>{he({message:"toggle chromecast"}),pe.log("toggle chromecast"),k.toggleChromecast()},Ns=c=>{var V;if(sr(Wt),k.info.isEnded$.getValue())return;let b=!c;if(_e(Wt.playerPhase)==="ads"){he({message:`pause ads, internalCall: ${b}`}),pe.log("pause ads",{internalCall:b}),Le.pause();return}he({message:`pause video, internalCall: ${b}`}),pe.log("pause video",{internalCall:b}),b&&((V=a==null?void 0:a.onPause)==null||V.call(a)),k.pause()},Ja=c=>{var V;sr(Wt);let b=!c;if(_e(Wt.playerPhase)==="ads"){he({message:`play ads, internalCall: ${b}`}),pe.log("play ads",{internalCall:b}),Le.play();return}he({message:`play video, internalCall: ${b}`}),pe.log("play video",{internalCall:b}),b&&((V=a==null?void 0:a.onPlay)==null||V.call(a)),k.play()},Tc=c=>{sr(Wt);let b=!c;if(_e(Wt.playerPhase)==="ads"){he({message:"player cannot be stopped during ads via external method"});return}he({message:`player will be stopped, internalCall: ${b}`}),A==null||A()},Ec=(c,b)=>{sr(Wt),he({message:`first start, show ads: ${c}, internalCall: ${!b}`}),pe.log("first start",{showAds:c,external:b}),c?xt.set("ads"):(xt.set("video"),b?k.play():Wt.actions.internal.togglePlay())},el=()=>(he({message:"getting time codes"}),f),Ic=()=>{let c=el();if(!c||[0,1].includes(c.length))return;let b=k.info.position$.getValue();return c.find(V=>V.time>b)},kc=c=>{let b=c;b||(b=Ic());let V=k.info.position$.getValue();pe.log("seek to next episode",{currentTime:V,...b}),b&&(he({message:"seek to next episode"}),vi(b.time,As.EPISODE,!0))},Ac=()=>{let c=el();if(!c||[0,1].includes(c.length))return;let b=k.info.position$.getValue(),V=c.findIndex(ke=>ke.time>b),oe=V===-1?c.length-2:V-2;if(!(oe<0))return c[oe]},cp=c=>{let b=c;b||(b=Ac());let V=k.info.position$.getValue();pe.log("seek to prev episode",{currentTime:V,...b}),b&&(he({message:"seek to prev episode"}),vi(b.time,As.EPISODE,!0))},up=()=>(he({message:"getting preview thumbs data"}),pe.log("get preview thumbs data",{...v}),v),Ue=async()=>{let c=ie==null?void 0:ie.isActive(),b="none";ie!=null&&ie.isActive()?(b="exit",await(ie==null?void 0:ie.exit())):(b="request",await(ie==null?void 0:ie.request())),pe.log("toggle picture in picture",{isActive:c,action:b})},gi=(c=-90)=>{pe.log("rotate video",{alphaDiff:c}),wt.update(b=>b+c)},ro=ae([]);T==null||T.subscribe(c=>{let b=[];for(let V=0;V<c.length;V++){let{range:[oe,ke],subjects:ot}=c[V];V===0&&oe!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:oe/1e3,text:"",interactive:!0,completed:ee.features.interactiveTimeOpenUri?!ot.length||ot.every(At=>At.isRemoved):!ot.length}),ke!==1/0&&b.push({time:ke/1e3,text:"",interactive:!1,completed:!0})}ro.set(b)});let la=ae(!1);E==null||E.subscribe(c=>{c&&_e(hn)&&ci()});let Jo=c=>{if(!C)return c;let b=_e(ro),V=_e($o),ke=_e(Cn)/V,ot=b.find(At=>At.interactive&&!At.completed&&At.time>ke);return typeof(ot==null?void 0:ot.time)=="number"?Math.min(c,ot.time-.05):c},J0=()=>{Wt.ui.episodes.panelOpened$.set(!1)},e_=()=>{pe.log("destroy store"),clearTimeout(yi),clearTimeout(ri),je.unsubscribe(),bi.unsubscribe(),k.destroy(),Le.destroy(),X==null||X.destroy(),q==null||q.destroy(),Ae.unsubscribe(),Ei==null||Ei.disconnect(),Ei=null,De.destroy()},t_=hi([Mo,ge,Ii],([c,b,V])=>p.features.doubleForwardAvailable&&!c&&b==="video"&&V),pp=ae(!1),jm=2,Pc=null,Ym=c=>{if(!_e(Un)&&c)return;let b=k.info.currentPlaybackRate$.getValue();c?b!==jm&&(Pc=b,Yi(jm,!1),pp.set(!0)):(Pc&&Yi(Pc,!1),pp.set(!1),Pc=null)};ge.subscribe(c=>{c!=="video"&&Ym(!1)});let i_=()=>{Ns(!1),Zi.set(!0)},o_=()=>{Ja(!1),Zi.set(!1)},fp=!1,n_=()=>{Fr.set(!0),fp=k.info.playbackState$.getValue()===Rl.PLAYING,Ns(!1)},r_=()=>{Fr.set(!1),!_e(Zi)&&fp&&Ja(!1),fp=!1};k.events.playing$.subscribe(()=>{_e(Zi)&&Ns(!1)});let Wt={interfaceLanguage$:se,isCyrillicRelatedInterface$:St,initVideo:Vt,videoId:i,isClip:o,playerPhase:ge,vsid:Ze,state:{positionExact$:Jt,positionWithScrubbing$:_n,duration$:$o,playbackState$:ut,isPlaying$:Un,isLoaderVisible:wi,bufferedProgress$:Lr,isLive$:ct,canChangePlaybackSpeed$:Ii,isActiveLive$:Mo,isOldestAvailableLive$:ln,isRewindableLive$:ur,isEnded$:Qt,muted$:Ao,volume$:Go,trafficSavingEnabled$:no,highQualityEnabled$:Fi,autoQualityLimitingAvailable$:lr,availableVideoStreams$:Cr,availableAudioStreams$:Tr,videoStream$:Er,audioStream$:Gi,currentQuality$:zn,isAutoQualityEnabled$:pi,availableQualities$:In,currentPlaybackRate$:kn,availablePlaybackRates$:Lo,currentSubtitle$:vo,availableTextTracks$:Ro,availableSubtitlesList$:un,currentSubtitleCaptions$:An,isAutoSubtitleCaptionVisible$:Wn,chromecastState$:Vi,chromecastDeviceName$:an,chromecastConnected$:Sr,currentFormat$:Po,throughputEstimation$:dr,videoBitrate$:cr,videoSize$:wr,errorLog$:Te,crashed$:J,isAudioAvailable$:ps,isAudioDisabled:!!l,canDownload:ee.features.download&&!!d,availableSources$:Kn,hasMpegSources$:et,isInteractive:C,showInteractiveGraph:ee.features.interactiveGraph,showSeekToInteractive:ee.features.seekToInteractive,showPlayPrevChapter:ee.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ee.features.interactiveTimeIndicator&&!!_e(ro).length,interactiveEpisodes$:ro,isInteractiveTime$:E?ai(E):ae(!1),isInteractiveExpectation$:la,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:L,looped$:Vr,loadedMetadata$:Xt,isAutoQualityAvailable$:Ar,previewTrackActive:Zi,previewTrackDragInProgress:Fr},ui:{t:dt,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:Y.length?Y.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:at},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ot,isFullscreenOpenedByKeyboard:tt,rotateAlpha:wt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:ei,isMobile:Fe,mobileNotReportControlHidden$:mt,icon3DVideoVisible:ae(!1),scrubbingInProgress:hn,volumeChangingInProgress:Xo,is3DVideo:Pt,currentGridType$:ta,additionalButtonsDeprecated$:oa,additionalDesktopControlPanelRightButtons$:na,additionalSettingsMenuItems$:Ga,additionalContextMenuItems$:Kl,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:Ke,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$:pp,doubleForwardAvailable$:t_,previewTrackNotificationVisible:ae(!1),previewTrackActive:Zi,previewTrackDragInProgress:Fr,previewTrackAvailable:ea,isPreviewTrackHorizontallyAligned:di},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:He,slotsApi:Ge},actions:{internal:{preload:No,firstStart:c=>Ec(c,!1),play:()=>Ja(!1),pause:()=>Ns(!1),togglePlay:wo,toggleMuted:Ni,openSettingsMenu:yo,closeSettingsMenu:pn,openSettingsSubMenu:fi,closeSettingsSubMenu:xo,setVolume:c=>qn(c,!1),setMuted:c=>Qn(c,!1),startVolumeChanging:Pi,stopVolumeChanging:Qa,setVideoStream:Ir,setAudioStream:c=>Tn(c,!1),setQuality:(c,b)=>ji(c,b,!1),setTrafficSavingEnabled:(c,b)=>Ai(c,b,!1),setHighQualityEnabled:(c,b)=>Yo(c,b,!1),setPlaybackRate:Yi,incrementPlaybackRate:Or,decrementPlaybackRate:Gn,setSubtitle:c=>jn(c,!1),toggleSubtitle:()=>gr(!1),togglePictureInPicture:Ue,startScrubbing:ye,progressScrubbing:pt,completeScrubbing:Ci,toggleChromecast:Cc,switchToActiveLive:gt,switchFromAdsToVideo:Co,switchFromVideoToAds:Ji,skipAd:Xi,setLiveWaitingStart:mi,setLiveWaitingRecover:zi,setLiveWaitingRecord:Rs,getDebugTextData:ql,getTraceTextData:Sc,getDebugPanelData:dp,getVideoElement:aa,seekTime:(c,b,V)=>vi(c,b,V),clearDelayedBufferingCheckTimeout:Xr,seekEpisodeStartTime:gn,seekToPercent:Do,getNextEpisode:Ic,seekToNextEpisode:kc,getPrevEpisode:Ac,seekToPrevEpisode:cp,startLogging:bo,stopLogging:Qo,startCameraManualRotation:sn,stopCameraManualRotation:Ct,moveCameraFocusPX:Ht,holdCamera:W,releaseCamera:Mt,getVideoEpisodes:el,getPreviewThumbsData:up,downloadVideo:Ri,addLanguage:Sf,setLanguage:Ce,nextMovie:_i,videoRotate:gi,correctSeekTimeToInteractive:Jo,replayInteractive:N,setLooped:Rr,reportProblem:fn,setAutoplayNextEnabled:vn,setTimerNextVideoRunning:mr,prevVideoClick:mn,nextVideoClick:Nr,nextVideoAnnouncementShow:Je,nextVideoAnnouncementClick:kt,nextVideoAnnouncementAuto:$i,nextVideoAnnouncementCancel:go,checkFullscreenSupport:Bt,changeDoubleForwardOn:Ym,closePreviewTrack:o_,previewTrackOpened:i_,previewTrackDragStarted:n_,previewTrackDragFinished:r_},external:{firstStart:c=>Ec(c,!0),play:()=>Ja(!0),pause:()=>Ns(!0),stop:()=>Tc(!0),seekTime:c=>Br(c),seekEpisodeStartTime:c=>Hr(c),setPlaybackRate:c=>Vs(c),setAutoQualityLimits:c=>Zo(c),setMuted:c=>Qn(c,!0),toggleSubtitle:()=>gr(!0),changeSubtitle:fs,setVolume:c=>qn(c,!0),returnFocusToEpisodes:J0,updateAdditionalSettingsItem:zl,addAdditionalSettingsItem:Ya,removeAdditionalSettingsItem:Wl,updateAdditionalContextItem:Za,addAdditionalContextItem:Xa,removeAdditionalContextItem:sa,updateAdditionalButton:ms,addAdditionalButton:gs,removeAdditionalButton:ja,setLiveLowLatency:ra,hideControls:()=>Yt(!1),showControls:()=>Yt(!0),setQuality:c=>ji(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Ai(c,"to-video",!0),setHighQualityEnabled:c=>Yo(c,"to-video",!0),changeAudioStream:fo}},callbacks:a,setUiCallbacks:c=>{Se={...c}},getAdmanWrapper:()=>Le,getLogger:()=>qe,getPlayer:()=>k,destroy:e_};return Wt};function Hn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=ks(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 Xy=["disabledControls$","additionalButtons"],Jy=["interactiveTimeIndicator"],Ol=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!Xy.includes(r)){let l=o||Jy.includes(r);s.set(Hn(t,i,r,l))}}};var zu=async(t,e,i)=>{await co(),e&&i&&(i.focus(),t.set(!1))};var e4=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function _v(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=e4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}function bv(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(a,"$contextMenuVisible$",i),s=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=be(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,y=Q(void 0);ze(()=>{n(y)&&Et(()=>{p.set(n(y))})});let w=E=>{let N=Ys(E),A=z1(n(y));v.set(A),u.set(N),a.set(!r())},x=()=>{f.set(!0)},C=()=>{f.set(!1)},T=m(()=>r()?"opened":"");zt(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:x,blur:C,get ariaExpanded(){return r()},get ref(){return n(y)},set ref(E){O(y,E,!0)},children:(E,N)=>{_v(E,{})},$$slots:{default:!0}}),F(),o()}var t4=t=>{t.stopPropagation()},i4=M("<div><!> <div></div> <div></div></div>"),o4={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
234
+
235
+ @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
236
+ }
237
+
238
+ @keyframes svelte-od3veb-pulse {
239
+ 0% {
240
+ transform: scale(1);
241
+ border-width: 1px;
242
+ opacity: 0;
243
+ }
244
+ 10% {
245
+ opacity: 1;
246
+ }
247
+ 50% {
248
+ transform: scale(1.5);
249
+ border-width: 1px;
250
+ opacity: 0.5;
251
+ }
252
+ 100% {
253
+ transform: scale(1.5);
254
+ border-width: 0.5px;
255
+ opacity: 0;
256
+ }
257
+ }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
258
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function jd(t,e){var q;H(e,!0),z(t,o4);let[i,o]=Ne(),r=()=>S(C,"$isMobile",i),s=()=>S(A,"$areControlsVisible",i),l=()=>S(L,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(x,"$interactiveControlsOpacity$",i),u=()=>S(N,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=h(e,"ref",15,void 0),p=Q(void 0),y=be(),w=_o(),{interactiveControlsOpacity$:x}=w,C=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,N=w.showInteractiveTimeIndicatorTooltip$,A=y.ui.controlsVisible,I=(q=y.callbacks)==null?void 0:q.onInteractiveTimeIndicatorClick,L=y.ui.currentGridType$,Y=m(()=>!r()&&s()),B=m(()=>Is(l(),"s")),U=m(()=>!d()||!!a()||n(Y)),Z=Q(!1);ze(()=>{O(Z,n(U),!0)});let le=()=>{O(Z,!0)},K=()=>{var ie;ce(),(ie=n(p))==null||ie.addEventListener("animationiteration",le,{once:!0})},ce=()=>{var ie;O(Z,!1),(ie=n(p))==null||ie.removeEventListener("animationiteration",le)},X=ie=>{N.set(ie)},me=m(()=>u()&&!n(U));ze(()=>{u()?K():ce()});let re=()=>{n(U)||(N.set(!0),I==null||I())};on(()=>{N.clearTimeout(),ce()});let de=()=>{N.set(!1)},Me=j("tooltip_interactive_interaction_time_indicator");var xe=i4();let ee;xe.__mousemove=[t4],xe.__click=re;var Oe=_(xe);ko(Oe,{get tooltipContent(){return Me},get tooltipActive(){return n(me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return v()},set ref(ie){v(ie)},children:(ie,He)=>{Ud(ie,{completed:!0})},$$slots:{default:!0}});var pe=P(Oe,2);let k;rt(pe,ie=>v(ie),()=>v());var qe=P(pe,2);let Le;rt(qe,ie=>O(p,ie),()=>n(p)),g(xe),D((ie,He,Ge)=>{ee=ne(xe,1,"interactive-episode-icon-animated svelte-od3veb",null,ee,ie),k=ne(pe,1,"ref-block svelte-od3veb",null,k,He),Le=ne(qe,1,"pulse svelte-od3veb",null,Le,Ge)},[()=>({mobile:r(),fullscreen:f(),invisible:n(U),"icon-small":n(B)}),()=>({hidden:n(U)}),()=>({paused:n(Z)})]),bt("mouseleave",xe,de),$(t,xe),F(),o()}lt(["mousemove","click"]);function Wu(t,e){H(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),s=h(e,"ref",15);ko(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return r()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=Be();let u=m(()=>e.buttonComponent);var f=fe(a);Mi(f,()=>n(u),(v,p)=>{p(v,Cs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(l,a)},$$slots:{default:!0}}),F()}var Ps={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var r4=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function $v(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=r4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}function Yd(t,e){let i=h(e,"isPrev",3,!1),o=h(e,"isMobile",3,!1),r=h(e,"width",3,"24"),s=h(e,"height",3,"24"),l=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");$v(t,{get style(){return n(l)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(d)}})}var s4=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),a4=M("<!> <!>",1),l4={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Na(t,e){H(e,!0),z(t,l4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=be().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);zt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=a4(),y=fe(p);{var w=T=>{var E=s4();$(T,E)};R(y,T=>{o()&&T(w)})}var x=P(y,2);let C=m(()=>e.type==="prev");Yd(x,{get isMobile(){return o()},get isPrev(){return n(C)}}),$(f,p)},$$slots:{default:!0}}),F()}var d4=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function Zd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=d4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}import{noop as c4}from"@vkontakte/videoplayer-shared/es2018";var u4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),p4=M("<!> <div><!></div>",1),f4={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Dl(t,e){H(e,!0),z(t,f4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),s=h(e,"className",3,""),l=h(e,"click",3,c4),d=j("tooltip_restart"),a=m(()=>`${o()?"btn-m--play":""} ${s()}`);zt(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ss.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=p4(),p=fe(v);{var y=T=>{var E=u4();$(T,E)};R(p,T=>{o()&&T(y)})}var w=P(p,2);let x;var C=_(w);Zd(C,{}),g(w),D(T=>x=ne(w,1,"svelte-1ot3duq",null,x,T),[()=>({mobile:o()})]),$(u,v)},$$slots:{default:!0}}),F()}var v4=Ie('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function ar(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=v4(),d=_(l);g(l),D(()=>{We(l,"width",i()),We(l,"height",o()),We(l,"viewBox",r()),We(d,"fill",s())}),$(t,l)}var m4=Ie('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Ms(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=m4(),d=_(l);g(l),D(()=>{We(l,"width",i()),We(l,"height",o()),We(l,"viewBox",r()),We(d,"fill",s())}),$(t,l)}import{noop as g4}from"@vkontakte/videoplayer-shared/es2018";var h4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),_4=M("<!> <div><!></div>",1),b4={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Bl(t,e){H(e,!0),z(t,b4);let[i,o]=Ne(),r=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=_o(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),a=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),f=h(e,"className",3,""),v=h(e,"click",3,g4),y=be().ui.t,{toggle:w}=s,x=m(()=>w),C=m(()=>r()!==null),T=m(()=>n(C)?r():a()),E=m(()=>n(T)?y("tooltip_pause"):y("tooltip_play")),N=m(()=>n(T)?Ms:ar),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),I=m(()=>n(C)?n(x):v());zt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(I)},get disabled(){return u()},get ariaLabel(){return n(E)},get ariaKeyShortCut(){return ss.KeyK},get ref(){return l()},set ref(L){l(L)},children:(L,Y)=>{var B=_4();let U=m(()=>n(N));var Z=fe(B);{var le=me=>{var re=h4();$(me,re)};R(Z,me=>{d()&&me(le)})}var K=P(Z,2);let ce;var X=_(K);Mi(X,()=>n(U),(me,re)=>{re(me,{})}),g(K),D(me=>ce=ne(K,1,"svelte-1ot3duq",null,ce,me),[()=>({mobile:d()})]),$(L,B)},$$slots:{default:!0}}),F(),o()}var $4=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function yv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}function Xd(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=j("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");zt(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)=>{yv(d,{})},$$slots:{default:!0}}),F()}var y4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),x4={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Jd(t,e){H(e,!0),z(t,x4);let[i,o]=Ne(),r=()=>S(a,"$autoplayNextEnabled$",i),s=h(e,"ref",15,void 0),l=be(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},v=d("aria_label_autoplay"),p=m(()=>r()?"true":"false");zt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(p)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var x=y4(),C=_(x);let T;var E=_(C);{var N=I=>{ar(I,{width:"14",height:"14",fill:"#000"})},A=I=>{Ms(I,{width:"14",height:"14",fill:"#000"})};R(E,I=>{r()?I(N):I(A,!1)})}g(C),g(x),D(I=>T=ne(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:r()})]),$(y,x)},$$slots:{default:!0}}),F(),o()}var w4=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function xv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}function ec(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=j("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");zt(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)=>{xv(d,{})},$$slots:{default:!0}}),F()}var S4=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function wv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}var C4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Sv(t,e){z(t,C4);let i=h(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");wv(t,{get"data-testid"(){return n(o)}})}function tc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=h(e,"graphIsOpened",3,!1),d=be().ui.t,a=m(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");zt(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(f){i(f)},children:(f,v)=>{let p=m(()=>!!s());Sv(f,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),F()}import{PlaybackState as l0}from"@vkontakte/videoplayer-core/es2018";function ic(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(u,"$playbackState$",i),s=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),a=be(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=m(()=>()=>{if(!l()){f();return}r()===l0.PAUSED&&v()}),y=m(()=>s()?"":"btn--live btn-full-opacity"),w=m(()=>l()?"btn-live":"btn-live-offset"),x=m(()=>l()&&r()===l0.PLAYING);zt(t,{get className(){return n(y)},get testId(){return n(w)},get disabled(){return n(x)},get ariaLabel(){return d()},get click(){return n(p)},children:(C,T)=>{Ed(C,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}import{noop as d0}from"@vkontakte/videoplayer-shared/es2018";var T4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),E4=M('<img class="icon" aria-hidden="true"/>');function Oa(t,e){"use strict";let i=Q(!1),o=()=>{O(i,!0)};var r=Be(),s=fe(r);{var l=a=>{var u=T4();$(a,u)},d=a=>{var u=E4();D(()=>We(u,"src",e.icon)),bt("error",u,o),$a(u),$(a,u)};R(s,a=>{n(i)?a(l):a(d,!1)})}$(t,r)}function Cv(t,e){H(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,d0),r=h(e,"ref",15),s=m(()=>o()===d0),l=m(()=>n(s)||i()),d=m(()=>n(s)?"btn-full-opacity":"");ko(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(a){r(a)},children:(a,u)=>{let f=m(()=>{var v;return(v=e.testId)!=null?v:e.id});zt(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(v,p)=>{Oa(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var c0=t=>!!t.buttonComponent;var Ls={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Ku=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(Hn(t,i,r,o))};import{interpolate as Tv}from"@vkontakte/videoplayer-shared/es2018";var u0=10,p0=40,Ev=.2,k4=.5,A4=65,P4=114,M4=4,f0=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?A4:P4),r=Q(!1),s=Q(0),l=Q(0),d=m(()=>n(o)+u0-p0-M4),a=m(()=>Tv(n(s),[Ev,1],[0,-n(d)])),u=m(()=>Tv(n(s),[Ev,1],[0,p0])),f=m(()=>Tv(n(s),[Ev,1],[0,n(o)+u0]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:x=>{var C;O(l,((C=e())==null?void 0:C.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:x=>{if(!n(r))return;let C=Math.max(Math.min(x.clientY-n(l),0),-n(d));O(s,Math.abs(C/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(s,n(s)>=k4?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{O(s,0)}}};var L4=t=>t;function us(t,{delay:e=0,duration:i=400,easing:o=L4}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var V4=M('<span class="root svelte-mx6l45"> </span>'),R4={hash:"svelte-mx6l45",code:".root.svelte-mx6l45 {font-size:13px;line-height:16px;color:rgba(255, 255, 255, 1);box-shadow:0px 8px 24px 0px rgba(0, 0, 0, 0.08);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.08);font-weight:500;}"};function Iv(t,e){z(t,R4);var i=V4(),o=_(i,!0);g(i),D(()=>ve(o,e.time)),$(t,i)}var N4=M('<div class="tooltip-wrapper svelte-1xyyqd0"><div><!></div></div>'),O4={hash:"svelte-1xyyqd0",code:'.tooltip-wrapper.svelte-1xyyqd0 {position:relative;display:block;}.tooltip.svelte-1xyyqd0 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-1xyyqd0:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-1xyyqd0 {opacity:1;visibility:visible;}'};function kv(t,e){z(t,O4);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),s=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),a=Q(void 0),u=Q(void 0);function f(C){if(!n(u))return 0;let{width:T}=n(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=m(()=>f(r()));var p=N4(),y=_(p);let w;var x=_(y);$e(x,()=>{var C;return(C=e.children)!=null?C:ue}),g(y),rt(y,C=>O(u,C),()=>n(u)),g(p),rt(p,C=>O(a,C),()=>n(a)),D(C=>{Xe(p,`transform: translate(${n(v)}px, ${s()}px);`),w=ne(y,1,"tooltip svelte-1xyyqd0",null,w,C),Xe(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var v0=t=>Math.abs(t)/90%4===1;var D4=M('<div class="preview svelte-1wqg760"></div>'),B4=M('<div class="time svelte-1wqg760"> </div>'),H4=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),F4={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function Av(t,e){H(e,!0),z(t,F4);let[i,o]=Ne(),r=()=>S(w,"$rotateAlpha",i),s=()=>S(x,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),a=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),f=h(e,"progress",3,0),v=h(e,"duration",3,0),p=h(e,"isInteractive",3,!1),y=be(),w=y.ui.rotateAlpha,x=y.ui.playerSize,C=Q(0),T=Q(0),E=Q(""),N=Q(0),A=Q(0),I=Q(0),L=Q(0),Y=m(()=>Vu(f(),v(),u())),B=m(()=>Vl(r())),U=m(()=>v0(r())),Z=m(ce),le=m(()=>(n(U)?1:-1)*(n(C)/2-n(T)/2)),K=m(()=>n(le)*-1);ze(()=>{(q=>{O(C,q.width,!0),O(T,q.height,!0)})(me())}),ze(()=>{(q=>{O(E,q.imgSrc,!0),O(N,q.imgWidth,!0),O(A,q.imgHeight,!0),O(I,q.imgOffsetX,!0),O(L,q.imgOffsetY,!0)})(re(f()))});function ce(){var Ge;let q=a()?l.MOBILE:l.DESKTOP,{isVertical:ie}=X(),He=30;return(Ge=n(Y))!=null&&Ge.text&&(He+=16),(ie||n(B))&&(He+=18,He+=50),Math.min(Math.max(s().height-He,0),q)}function X(){let q=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,He=ie>q;return{width:q,height:ie,isHorizontal:!He,isVertical:He}}function me(){let{height:q,isHorizontal:ie,isVertical:He,width:Ge}=X();return ie&&(q=q/Ge*n(Z),Ge=n(Z)),He&&(Ge=Ge/q*n(Z),q=n(Z)),{width:Ge,height:q}}function re(q){let ie;e.previewThumbsData.isUV?ie=Math.floor(v()*q/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*q)));let He=Math.floor(ie/e.previewThumbsData.countPerImage),Ge=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),he=ie%e.previewThumbsData.countPerRow,te=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(te=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&te++);let we=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&He===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(we=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Se=n(C)*we,De=n(T)*te,je=-he*n(C),Qe=-Ge*n(T);return{imgSrc:e.previewThumbsData.links[He],imgWidth:Se,imgHeight:De,imgOffsetX:je,imgOffsetY:Qe}}var de=H4();let Me;var xe=_(de);{var ee=q=>{var ie=D4();D(()=>Xe(ie,`width: ${n(C)}px; height: ${n(T)}px; background-image: url(${n(E)}); background-size: ${n(N)}px ${n(A)}px; background-position: ${n(I)}px ${n(L)}px;
259
+ transform: rotate(${r()}deg) ${n(B)?`translate(${n(le)}px, ${n(K)}px)`:""};
260
+ `)),$(q,ie)};R(xe,q=>{n(E)&&q(ee)})}var Oe=P(xe,2),pe=_(Oe);{var k=q=>{var ie=Be(),He=fe(ie);{var Ge=te=>{var we=rs();D(Se=>ve(we,Se),[()=>j("tooltip_episode_unfinished")]),$(te,we)},he=te=>{var we=rs();D(()=>ve(we,n(Y).text||"")),$(te,we)};R(He,te=>{p()&&n(Y).completed===!1?te(Ge):te(he,!1)})}$(q,ie)};R(pe,q=>{n(Y)&&q(k)})}g(Oe);var qe=P(Oe,2);{var Le=q=>{var ie=B4(),He=_(ie,!0);g(ie),D(()=>ve(He,d())),$(q,ie)};R(qe,q=>{p()||q(Le)})}g(de),D(q=>{Me=ne(de,1,"timeline-preview svelte-1wqg760",null,Me,q),Xe(de,`width: ${n(B)?n(T):n(C)}px;`)},[()=>({mobile:a()})]),$(t,de),F(),o()}var U4=M('<span class="time svelte-1jr6obn"> </span>'),z4=M("<!> <!>",1),W4={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Pv(t,e){var se,ht,St,dt,xt;H(e,!0),z(t,W4);let[i,o]=Ne(),r=()=>S(K,"$interactiveEpisodes$",i),s=()=>S(L,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(me,"$isInteractiveExpectation$",i),a=()=>S(X,"$isInteractiveTime$",i),u=()=>S(xe,"$previewTrackActive",i),f=()=>S(Y,"$isLive$",i),v=()=>S(Me,"$disabledControls$",i),p=()=>S(U,"$isMobile",i),y=()=>S(B,"$isActiveLive$",i),w=()=>S(A,"$bufferedProgress$",i),x=h(e,"showTimeline",3,!1),C=h(e,"withEpisodes",3,!0),T=h(e,"ref",15,void 0),E=be(),N=Lt(),A=E.state.bufferedProgress$,I=E.state.positionWithScrubbing$,L=E.state.duration$,Y=E.state.isLive$,B=E.state.isActiveLive$,U=E.ui.isMobile,Z=N.features.episodes&&C()?E.actions.internal.getVideoEpisodes():void 0,le=E.actions.internal.getPreviewThumbsData(),K=E.state.interactiveEpisodes$,ce=E.state.isInteractive,X=E.state.isInteractiveTime$,me=E.state.isInteractiveExpectation$,re=E.actions.internal.correctSeekTimeToInteractive,de=(se=E.callbacks)==null?void 0:se.onDisabledTimelineClick,Me=E.ui.controls.disabledControls$,xe=E.ui.previewTrackActive,ee=(St=(ht=E.callbacks)==null?void 0:ht.uiInfo)==null?void 0:St.onTimelineMouseEnter,Oe=(xt=(dt=E.callbacks)==null?void 0:dt.uiInfo)==null?void 0:xt.onTimelineMouseLeave,pe=E.ui.t,k=N.features.interactiveResponsiveUi,qe=m(()=>ce?r():Z),Le=m(()=>qo(s())),q=m(()=>qo(l())),ie=m(()=>l()/s()),He=m(()=>d()||a()),Ge=Q(!1),he=Q(""),te=Q(0),we=Q(0),Se=Q(0),De=m(()=>({containerWidth:n(we),translateXPx:n(te),translateYPx:ce&&le?-36:-16,active:n(Ge)&&x()&&!n(He)&&!k&&!u(),pointer:!N.features.timelinePreview||!le||f()})),je=pe("aria_timeline"),Qe=m(()=>pe("aria_timeline_value",{position:n(q),duration:n(Le)}));function Fe(ge){return!re||!ce?ge:re(ge*s())/s()}function Ze(ge,st){var nt;(nt=e.onSliderPointerDown)==null||nt.call(e,st),E.actions.internal.startScrubbing(Fe(ge))}function Ot(ge){a()||E.actions.internal.progressScrubbing(Fe(ge))}function tt(ge){var st;E.actions.internal.completeScrubbing(Fe(ge)),O(Ge,!1),(st=e.onSliderPointerUp)==null||st.call(e)}function Bt(ge,st,nt){var at;(at=e.onSliderPointerEnter)==null||at.call(e,ge),Xt(ge,st,nt),O(Ge,!0)}function qt(ge,st,nt,at){var ei;(ei=e.onSliderMove)==null||ei.call(e,at,ge),Xt(ge,st,nt),O(Ge,!0)}function wt(){var ge;O(Ge,!1),(ge=e.onSliderLeave)==null||ge.call(e)}function Xt(ge,st,nt){O(Se,Fe(ge),!0),O(te,st,!0),nt&&O(we,nt,!0),O(he,Pt(ge),!0)}function Pt(ge){let st=qo((f()?1-ge:ge)*s());return f()?`-${st}`:st}let Te=m(()=>v().has("TIMELINE"));var Ae=z4(),J=fe(Ae);kv(J,Cs(()=>n(De),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ge,st)=>{var nt=Be(),at=fe(nt);{var ei=ui=>{Av(ui,{get time(){return n(he)},get isMobile(){return p()},get videoEpisodes(){return n(qe)},get previewThumbsData(){return le},get progress(){return n(Se)},get duration(){return s()},get isInteractive(){return ce}})},jt=ui=>{var wi=U4(),oo=_(wi,!0);g(wi),D(()=>ve(oo,n(he))),$(ui,wi)};R(at,ui=>{N.features.timelinePreview&&le&&!f()?ui(ei):ui(jt,!1)})}$(ge,nt)},$$slots:{default:!0}}));var Ce=P(J,2);Va(Ce,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return p()},get ariaLabel(){return je},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(Qe)},get loadedProgress(){return w()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(qe)},onPointerDown:Ze,onHandleMove:Ot,onPointerMove:qt,onPointerUp:tt,onPointerEnter:Bt,onPointerLeave:wt,get onMouseEnter(){return ee},get onMouseLeave(){return Oe},get onDisabledClick(){return de},get isInteractive(){return ce},get disabled(){return n(Te)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:tt,get ref(){return T()},set ref(ge){T(ge)}}),$(t,Ae),F(),o()}var K4={hash:"svelte-1yate8h",code:".timeline-ads-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function oc(t,e){H(e,!0),z(t,K4);let[i,o]=Ne(),r=()=>S(a,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"duration",3,0),d=be(),a=d.ui.isMobile,u=d.ui.t,f=m(()=>qo(l())),v=m(()=>qo(s())),p=m(()=>s()/l()),y=m(()=>u("aria_timeline_value",{position:n(v),duration:n(f)})),w=m(()=>Math.round(n(p)*100));Va(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(w)},get ariaValueText(){return n(y)},get filledProgress(){return n(p)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var q4=M("<div><!></div>"),Q4=M("<div></div>"),G4={hash:"svelte-1b7iyrc",code:".timeline.svelte-1b7iyrc {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;box-sizing:border-box;}.timeline.mobile.svelte-1b7iyrc {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1b7iyrc {padding:0;}.timeline-stub.svelte-1b7iyrc {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1b7iyrc {height:8px;}"};function Da(t,e){H(e,!0),z(t,G4);let[i,o]=Ne(),r=()=>S(C,"$isLive$",i),s=()=>S(N,"$isMobile",i),l=()=>S(A,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(T,"$adDuration",i),u=h(e,"isAds",3,!1),f=h(e,"isHidden",3,!1),v=h(e,"timelineNotAvailable",3,!1),p=h(e,"needPadding",3,!0),y=h(e,"ref",15,void 0),w=be(),x=Lt(),C=w.state.isLive$,T=w.ads.duration,E=w.ads.position,N=w.ui.isMobile,A=ae(!1),I=m(()=>!v()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var L=Be(),Y=fe(L);{var B=Z=>{var le=q4();let K;var ce=_(le);{var X=re=>{oc(re,{get position(){return d()},get duration(){return a()}})},me=re=>{Pv(re,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(I)},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 y()},set ref(de){y(de)}})};R(ce,re=>{u()?re(X):re(me,!1)})}g(le),Ss(le,()=>Tl(f()&&x.features.usePerformanceFix,A,x.disableInvisibleComponentsTimeout)),D(re=>K=ne(le,1,"timeline svelte-1b7iyrc",null,K,re),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(Z,le)},U=Z=>{var le=Q4();let K;D(ce=>K=ne(le,1,"timeline-stub svelte-1b7iyrc",null,K,ce),[()=>({mobile:s()})]),$(Z,le)};R(Y,Z=>{n(I)?Z(B):Z(U,!1)})}$(t,L),F(),o()}import{getRangeAroundIndex as j4}from"@vkontakte/videoplayer-shared/es2018";var Y4=(t,e,i,o,r,s,l)=>{O(e,!0),O(i,t.clientX,!0),O(o,n(r),!0),s(l())},Z4=M("<div></div>"),X4=M('<div><div class="track svelte-j4sfvm"></div></div>'),J4={hash:"svelte-j4sfvm",code:`.root.svelte-j4sfvm {height:var(--preview-track-frame-height-horizontal);position:relative;overflow:hidden;width:100%;display:flex;}.root.is-vertical-video.svelte-j4sfvm,
261
+ .root.vertically-rotated.svelte-j4sfvm {height:var(--preview-track-frame-height-vertical);}
262
+
263
+ /**
264
+ * \u041A\u0430\u0440\u0435\u0442\u043A\u0430, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u0430\u0434\u0440.
265
+ */.root.svelte-j4sfvm::after {content:'';height:100%;z-index:1;margin:0 auto;width:3px;background-color:rgba(255, 255, 255, 1);box-shadow:0px 2px 2px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.06);pointer-events:none;}.track.svelte-j4sfvm {position:absolute;bottom:0;left:0;top:0;display:flex;padding:0 50%;}.frame.svelte-j4sfvm {flex-shrink:0;position:absolute;pointer-events:none;background-position-y:calc(-1 * var(--frame-height) * var(--row-index));background-position-x:calc(-1 * var(--column-index)*var(--frame-width));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));width:var(--frame-width);height:var(--frame-height);transform-origin:center;}.vertically-rotated.svelte-j4sfvm .frame:where(.svelte-j4sfvm) {transform-origin:0 0;}.rotate-1.svelte-j4sfvm {transform:rotate(-90deg) translateX(-100%);}.rotate-2.svelte-j4sfvm {transform:rotate(-180deg);}.rotate-3.svelte-j4sfvm {transform:rotate(-270deg) translateY(-100%);}`};function Lv(t,e){H(e,!0),z(t,J4);let[i,o]=Ne(),r=()=>S(N,"$rotateAlpha",i),s=()=>S(x,"$position$",i),l=()=>S(w,"$duration$",i),d=be(),{countPerImage:a=0,countPerRow:u=0,countTotal:f=0,links:v=[],frameHeight:p=0,frameWidth:y=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:w,positionWithScrubbing$:x}=d.state,{startScrubbing:C,progressScrubbing:T,completeScrubbing:E}=d.actions.internal,N=d.ui.rotateAlpha,A=Q(void 0),I=Q(!1),L=Q(0),Y=Q(0),B=Q(0),U=Q(0),Z=m(()=>p<=y),le=m(()=>Vl(r())),K=m(()=>n(Z)?!n(le):n(le)),ce=114,X=65,me=3,re=m(()=>n(K)?ce:X),de=m(()=>n(Z)?ce:X),Me=m(()=>n(Z)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),xe=m(()=>f*n(re)),ee=Q(0);ze(()=>{O(U,Math.ceil(-n(B)/n(re))-1),O(B,-n(xe)*s()/l())});let Oe=()=>{E(pe(),!0)},pe=()=>l()*-n(B)/n(xe)/l(),k=!1,qe=Qe=>{if(!n(I))return!1;let Fe=Qe.clientX-n(L);O(B,n(Y)+Fe),O(B,Math.max(Math.min(n(B),0),-n(xe)),!0),Math.abs(Fe)>1&&(k=!0),T(pe())},Le=Qe=>{n(I)&&(O(I,!1),!k&&Qe&&O(B,-(Qe.offsetX-n(ee)/2)),k=!1,Oe())},q=()=>{n(I)&&Le()},ie=m(()=>a/u),He=(Qe,Fe)=>{if(Qe!==v.length-1)return u;let Ze=0,Ot=Fe*u;for(let tt=1;tt<=u;tt++)Qe*a+Ze+Ot<f&&Ze++;return Ze},Ge=m(()=>Math.floor(n(U)/a)),he=m(()=>j4(3,n(Ge),v.length-1)),te=(Qe,Fe,Ze)=>{let Ot=a*n(re);return Qe*Ot+Fe*n(re)*u+n(ee)/2-me/2+Ze*n(re)},we=m(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(de)}px`,`--frame-height: ${n(Me)}`].join(";"));var Se=X4();let De;var je=_(Se);je.__pointerdown=[Y4,I,L,Y,B,C,pe],je.__pointermove=qe,je.__pointerup=Le,xi(je,20,()=>n(he),Qe=>Qe,(Qe,Fe)=>{var Ze=Be(),Ot=fe(Ze);xi(Ot,16,()=>Array.from({length:n(ie)},(tt,Bt)=>Bt),tt=>tt,(tt,Bt)=>{var qt=Be(),wt=fe(qt);xi(wt,16,()=>Array.from({length:He(Fe,Bt)},(Xt,Pt)=>Pt),Xt=>Xt,(Xt,Pt)=>{var Te=Z4();D((Ae,J)=>{Xe(Te,Ae),ne(Te,1,J,"svelte-j4sfvm")},[()=>`--row-index: ${Bt}; --column-index: ${Pt}; left: ${te(Fe,Bt,Pt)}px; background-image: url(${v[Fe]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),$(Xt,Te)}),$(tt,qt)}),$(Qe,Ze)}),g(je),g(Se),rt(Se,Qe=>O(A,Qe),()=>n(A)),D(Qe=>{De=ne(Se,1,"root svelte-j4sfvm",null,De,Qe),Xe(Se,n(we)),Xe(je,`transform: translateX(${n(B)}px); width: ${n(xe)}px;`)},[()=>({"is-vertical-video":!n(Z),"vertically-rotated":n(le)})]),bt("mouseleave",je,q),Sn(Se,"clientWidth",Qe=>O(ee,Qe)),$(t,Se),F(),o()}lt(["pointerdown","pointermove","pointerup"]);var e3=M('<div class="notification svelte-1u3ref1"><span class="description svelte-1u3ref1"> </span></div>'),t3={hash:"svelte-1u3ref1",code:".notification.svelte-1u3ref1 {padding:9px 14px 10px 12px;background:var(--notification-bg);border-radius:var(--notification-radius);}.description.svelte-1u3ref1 {line-height:18px;font-size:14px;}"};function Vv(t,e){H(e,!1),z(t,t3);let i=340,{ui:{t:o}}=be();Ko();var r=e3(),s=_(r),l=_(s,!0);g(s),g(r),D(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],bn),Gr(3,r,()=>us,()=>({duration:i})),$(t,r),F()}import{getRangeAroundIndex as i3}from"@vkontakte/videoplayer-shared/es2018";var o3=M('<div class="preview-track-close tooltip svelte-19h243g"><!></div>'),n3=M('<div class="preview-track-control svelte-19h243g"><!> <div class="preview-track-close svelte-19h243g"><!></div> <!></div>'),r3=M('<div class="wrapper-preview-track svelte-19h243g"><!></div>'),s3=M('<div class="enriched-timeline svelte-19h243g"><!> <!> <!></div>'),a3={hash:"svelte-19h243g",code:`.enriched-timeline.svelte-19h243g {padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal)
266
+ var(--timeline-padding-vertical-bottom);position:relative;pointer-events:auto;}.preview-track-control.svelte-19h243g {top:calc((var(--timeline-height) + var(--preview-track-controls-top)) * -1);position:absolute;left:0;right:0;padding:0 calc(var(--timeline-padding-horizontal));display:flex;align-items:center;justify-content:center;pointer-events:none;}.preview-track-close.svelte-19h243g {position:absolute;right:calc(var(--timeline-padding-horizontal));pointer-events:auto;}.preview-track-close.tooltip.svelte-19h243g {bottom:32px;opacity:0;transition:opacity 200ms;}.preview-track-close.svelte-19h243g:hover + .tooltip:where(.svelte-19h243g) {opacity:1;}.wrapper-preview-track.svelte-19h243g {position:absolute;left:0;right:0;overflow:hidden;z-index:-1;padding:0 calc(var(--timeline-padding-horizontal));box-sizing:border-box;}`};function Rv(t,e){H(e,!0),z(t,a3);let[i,o]=Ne(),r=()=>S(x,"$playerSize",i),s=()=>S(w,"$duration$",i),l=()=>S(C,"$previewTrackActive",i),d=()=>S(p,"$position$",i),a=()=>S(y,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),f=be(),v=200,{positionWithScrubbing$:p,isRewindableLive$:y,duration$:w}=f.state,{playerSize:x,previewTrackActive:C}=f.ui,{countPerImage:T=0,links:E=[],frequency:N=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),I=Q(!$1()),L=()=>{n(I)&&(b1(),O(I,!1))},Y=re=>{let de=Math.floor(s()*re/N),Me=Math.floor(de/T),xe=i3(3,Me,E.length-1);for(let ee of xe){let Oe=new Image;Oe.src=E[ee]}},B=(re,de)=>{Y(de),!l()&&e.onTimelineMove(re)};var U=s3(),Z=_(U);{var le=re=>{var de=n3(),Me=_(de);let xe=m(()=>qo(d()));Iv(Me,{get time(){return n(xe)}});var ee=P(Me,2),Oe=_(ee);Es(Oe,{onClick:()=>f.actions.internal.closePreviewTrack()}),g(ee);var pe=P(ee,2);{var k=qe=>{var Le=o3(),q=_(Le);Vv(q,{}),g(Le),$(qe,Le)};R(pe,qe=>{n(I)&&qe(k)})}g(de),bt("mouseleave",ee,L),Gr(3,de,()=>us,()=>({duration:v})),$(re,de)};R(Z,re=>{l()&&re(le)})}var K=P(Z,2);let ce=m(()=>!n(A));Da(K,{get isHidden(){return n(ce)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:B,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:Y,get ref(){return u()},set ref(re){u(re)}});var X=P(K,2);{var me=re=>{var de=r3(),Me=_(de);Lv(Me,{}),g(de),D(()=>Xe(de,`height: ${e.animatedPreviewTrackHeight}px;`)),$(re,de)};R(X,re=>{e.previewTrackAvailable&&re(me)})}g(U),D(()=>Xe(U,`transform: translateY(${e.animatedOffsetY}px);`)),$(t,U),F(),o()}var d3=M('<div><!> <div class="controls svelte-1ojrdvx" data-testid="player_controls"><div class="controls-left svelte-1ojrdvx"><!> <!> <!></div> <div class="controls-right svelte-1ojrdvx"></div></div></div> <!>',1),c3={hash:"svelte-1ojrdvx",code:".wrapper-bottom.svelte-1ojrdvx {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1ojrdvx::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1ojrdvx > :where(.svelte-1ojrdvx) {pointer-events:auto;}.controls.svelte-1ojrdvx {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1ojrdvx, .controls-right.svelte-1ojrdvx {display:flex;align-content:center;}.controls-left.svelte-1ojrdvx {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1ojrdvx > *:not(:first-child), .controls-right.svelte-1ojrdvx > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1ojrdvx {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1ojrdvx {transition:none;}"};function Ov(t,e){var Xa,sa;H(e,!0),z(t,c3);let[i,o]=Ne(),r=()=>S(Qo,"$disabledControls$",i),s=()=>S(ct,"$adPlaybackState",i),l=()=>S(jt,"$playbackState$",i),d=()=>S(bo,"$currentSubtitle$",i),a=()=>S(oo,"$isEnded$",i),u=()=>S(Go,"$currentGridType$",i),f=()=>S(Vt,"$isLive$",i),v=()=>S(Ye,"$chromecastState$",i),p=()=>S(_t,"$isPictureInPictureActive",i),y=()=>S(Dt,"$pictureInPictureType$",i),w=()=>S(bi,"$availableSubtitlesList$",i),x=()=>S(Ht,"$contextMenuOpenedByKeyboard$",i),C=()=>S(Ct,"$showContextMenuBtn$",i),T=()=>S(_i,"$isRewindableLive$",i),E=()=>S(li,"$isActiveLive$",i),N=()=>S(Xr,"$graphIsOpened$",i),A=()=>S(sn,"$contextMenuVisible$",i),I=()=>S(Ii,"$isFullscreen",i),L=()=>S(no,"$autoplayNextEnabled",i),Y=()=>S(n(Ri),"$prevButton",i),B=()=>S(n(Ni),"$replayButton",i),U=()=>S(n(pn),"$playButton",i),Z=()=>S(n(yo),"$nextButton",i),le=()=>S(n(xo),"$playPrevChapterButton",i),K=()=>S(n(fi),"$seekToInteractiveButton",i),ce=()=>S(n(Pn),"$interactiveGraphButton",i),X=()=>S(n(mo),"$liveButton",i),me=()=>S(n(qn),"$time",i),re=()=>S(n(Qn),"$episodes",i),de=()=>S(n(Vr),"$vkLogo",i),Me=()=>S(n(Rr),"$volume",i),xe=()=>S(n(fn),"$subtitles",i),ee=()=>S(n(vn),"$settings",i),Oe=()=>S(n(mr),"$context",i),pe=()=>S(n(mn),"$fullscreen",i),k=()=>S(n(Nr),"$chromecast",i),qe=()=>S(Ao,"$additionalDesktopControlPanelRightButtons$",i),Le=()=>S(Hi,"$playerSize",i),q=()=>S(an,"$isInteractiveTime$",i),ie=()=>S(di,"$previewTrackActive",i),He=()=>S(Bi,"$settingsMenuVisible",i),Ge=()=>S(ji,"$settingButtonRef$",i),he=()=>S(W,"$startedByKeyboard$",i),te=()=>S(ui,"$isAudioAvailable$",i),we=()=>S(Ae,"$fakeIsPlaying$",i),Se=()=>S(ps,"$seekToInteractiveDisabledTooltip$",i),De=()=>S(ye,"$isPreviewTrackHorizontallyAligned$",i),je=()=>S(hn,"$previewTrackAvailable",i),Qe=()=>S(ho,"$previewTrackDragInProgress",i),Fe=()=>S(Qt,"$adPosition",i),Ze=()=>S(ei,"$position$",i),Ot=()=>S(Tt,"$adDuration",i),tt=()=>S(at,"$duration$",i),Bt=h(e,"playerControlsWrapperRef",15,void 0),qt=h(e,"playerControlsRef",15,void 0),wt=h(e,"isAds",3,!1),Xt=h(e,"logoTargetUrl",3,""),Pt=h(e,"isOneVideoPlaylist",3,!1),Te=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ae}=_o(),J=be(),Ce=_o(),se=Lt(),ht=J.actions.internal.toggleMuted,St=J.actions.internal.togglePlay,dt=J.actions.internal.pause,xt=J.actions.internal.toggleSubtitle,ge=J.actions.internal.checkFullscreenSupport,st=(Xa=J.callbacks)==null?void 0:Xa.onAudioDoesNotExistHint,nt=(sa=J.callbacks)==null?void 0:sa.onAudioDisabledHint,at=J.state.duration$,ei=J.state.positionWithScrubbing$,jt=J.state.playbackState$,ui=J.state.isAudioAvailable$,wi=J.state.isAudioDisabled,oo=J.state.isEnded$,Vt=J.state.isLive$,li=J.state.isActiveLive$,_i=J.state.isRewindableLive$,{isActive$:_t,type$:Dt}=Ce.pictureInPicture$,Bi=J.ui.settingsMenu.visible$,Ei=J.ui.settingsMenu.openedByBtnKeyboard$,oi=J.ui.controls,It=J.actions.internal.getVideoEpisodes(),Ye=J.state.chromecastState$,bi=J.state.availableSubtitlesList$,bo=J.state.currentSubtitle$,Qo=oi.disabledControls$,sn=J.ui.contextMenu.visible$,Ct=J.ui.contextMenu.showContextMenuBtn$,Ht=J.ui.contextMenu.openedByBtnKeyboard$,W=J.ui.startedByKeyboard$,Mt=J.ui.controlBlocks,Jt=J.ui.previewTrackNotificationVisible,ut=J.ui.t,Tt=J.ads.duration,Qt=J.ads.position,ct=J.ads.playbackState,Ii=J.ui.isFullscreen,Hi=J.ui.playerSize,Go=J.ui.currentGridType$,Ao=J.ui.additionalDesktopControlPanelRightButtons$,no=J.ui.autoplayNextEnabled$,Fi=J.actions.internal.getVideoElement,lr=J.actions.internal.replayInteractive,uo=J.actions.internal.prevVideoClick,po=J.actions.internal.nextVideoClick,Vi=J.state.isInteractive,an=J.state.isInteractiveTime$,Po=J.state.showInteractiveGraph,dr=J.state.showSeekToInteractive,cr=J.state.showPlayPrevChapter,wr=J.state.showInteractiveTimeIndicator,Zr=J.state.playPrevChapterDisabledTooltip,ps=Ce.seekToInteractiveDisabledTooltip$,Xr=Ce.graphIsOpened$,$o=se.features.interactiveResponsiveUi,Un=m(()=>r().has("EPISODE_BUTTON")),Mo=m(()=>r().has("GRAPH_BUTTON")),ln=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Cn=m(()=>r().has("PLAY_BUTTON")),ur=m(()=>r().has("REPLAY_BUTTON")),Sr=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Cr=()=>J.actions.internal.toggleChromecast(),Tr=m(()=>wt()?s()==="playing":l()===Nv.PLAYING),Er=m(()=>d().value!=="off"),Gi=m(()=>a()&&!wt()||Vi),Ir=m(()=>$o?n(Gi)&&to(u(),"m"):n(Gi)),Tn=m(()=>!a()||Vi||wt()),dn=m(()=>to(u(),"m")),fo=m(()=>e.showNextPrevButtons&&to(u(),"m")&&!wt()&&e.nextButtonActive),pr=m(()=>e.showNextPrevButtons&&to(u(),"m")&&!wt()&&e.prevButtonActive),En=m(()=>!wt()&&!!f()),ft=m(()=>v()!==m0.NOT_AVAILABLE&&!(p()&&y()===1)&&to(u(),"m")&&!Vi),pi=m(()=>e.showAutoplayNext&&!Pt()&&to(u(),"s")),kr=m(()=>w().length>0&&to(u(),"m")),zn=m(()=>x()||C()),Ar=m(()=>to(u(),"s")&&!wt()),In=m(()=>!e.logoHidden&&!wt()),kn=m(()=>se.features.fullscreen&&ge()&&(e.logoHidden||to(u(),$o?"xs":"s"))&&!(p()&&y()===1)&&(Vi?Te():!0)),Lo=m(()=>(!f()||wt())&&!(se.features.interactiveHideTime&&Vi)),Vo=m(()=>Po&&to(u(),"m")),cn=m(()=>$o?dr&&to(u(),"s"):dr),vo=m(()=>$o?cr&&to(u(),"s"):cr),Ro=m(()=>!wt()&&!f()&&!!(It!=null&&It.length)&&n(dn)&&!n(Un)),jo=m(()=>!T()||!!E()),fr=m(()=>N()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Pr=m(()=>A()?ut("tooltip_context_menu_close"):ut("tooltip_context_menu_open")),un=(mt,gt)=>mt?gt&&gt===Nv.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),Ui=m(()=>un(n(jo),l())),vr=m(()=>se.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),Mr=m(()=>n(Er)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),An=m(()=>I()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),Wn=m(()=>v()===m0.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),Lr=m(()=>L()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),Kn=Q(0),et=si({}),ni=si({}),Ri=m(()=>oi.prevButton),Ni=m(()=>oi.replayButton),pn=m(()=>oi.playButton),yo=m(()=>oi.nextButton),xo=m(()=>oi.playPrevChapterButton),fi=m(()=>oi.seekToInteractiveButton),Pn=m(()=>oi.interactiveGraphButton),mo=m(()=>oi.liveButton),qn=m(()=>oi.time),Qn=m(()=>oi.episodes),Vr=m(()=>oi.vkLogo),Rr=m(()=>oi.volume),fn=m(()=>oi.subtitles),vn=m(()=>oi.settings),mr=m(()=>oi.context),mn=m(()=>oi.fullscreen),Nr=m(()=>oi.chromecast),Je=m(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:B()?B().right-B().left:0,playButton:U()?U().right-U().left:0,nextButton:Z()?Z().right-Z().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:K()?K().right-K().left:0,interactiveGraphButton:ce()?ce().right-ce().left:0,liveButton:X()?X().right-X().left:0,time:me()?me().right-me().left:0,episodes:re()?re().right-re().left:0,vkLogo:de()?de().right-de().left:0,volume:Me()?Me().right-Me().left:0,subtitles:xe()?xe().right-xe().left:0,settings:ee()?ee().right-ee().left:0,context:Oe()?Oe().right-Oe().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:qe().length?qe().reduce(mt=>[...mt,40],[]):[]})),kt=Q(0);ze(()=>{(!n(kt)||n(kt)<n(Je).time)&&Et(()=>O(kt,n(Je).time,!0))});let $i=Q(!1);ze(()=>{let mt=0;n(Ro)&&(to(u(),"xl")?mt=n(Je).time:mt=60);let gt=n(Je).prevButton+n(Je).playButton+n(Je).nextButton+n(Je).seekToInteractiveButton+n(Je).interactiveGraphButton+n(Je).liveButton+n(kt)+mt;O($i,n(Lo)&&n(Kn)>=gt,!0)});let go=m(()=>n($i)&&to(u(),"m")),No=g0(Ol,260),wo=g0(Ku,260);ze(()=>{Le(),q(),ie(),No(Fi(),oi,et,e.showControls),wo(Fi(),Mt,ni,e.showControls)}),ze(()=>{ni.bottom=Bt()});let ji=ae();ze(()=>{He(),Ge()&&Et(()=>Il(Ge(),He(),Ei))});let Ai;ze(()=>{he(),Et(()=>zu(W,he(),Ai))});function Yo(){Zs({isAudioDisabled:wi,isAudioAvailable:te(),isAds:wt(),audioIsNotExistHintCallback:st,audioDisabledHintCallback:nt})&&ht()}let Oo=Vi?lr:St,So=m(()=>we()!==null),Yi=m(()=>n(So)?we():n(Tr)),Or=m(()=>n(Yi)?ut("tooltip_pause"):ut("tooltip_play")),Gn=ut("tooltip_episodes"),jn=m(()=>{var mt,gt,Xi,Co;return n(pr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ps.prevButton,buttonComponent:Na,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:uo.bind(null,!0)},tooltipEnabled:!((gt=(mt=J.callbacks)==null?void 0:mt.uiInfo)!=null&&gt.onPrevButtonMouseEnter)&&!((Co=(Xi=J.callbacks)==null?void 0:Xi.uiInfo)!=null&&Co.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,mi,zi;(zi=(mi=(Ji=J.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:mi.onPrevButtonMouseEnter)==null||zi.call(mi,Hn(Fi(),et,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,mi,zi;(zi=(mi=(Ji=J.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:mi.onPrevButtonMouseLeave)==null||zi.call(mi,Hn(Fi(),et,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),gr=m(()=>n(Ir)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ps.replayButton,buttonComponent:Dl,buttonComponentProps:{disabled:n(ur),click:Oo},tooltipText:ut("tooltip_restart"),disabled:n(ur)}:void 0),fs=m(()=>n(Tn)?{id:"playButton",type:"desktop-control-panel-left",weight:Ps.playButton,buttonComponent:Bl,buttonComponentProps:{disabled:n(Cn),isPlaying:n(Tr),click:St},tooltipText:n(Or),disabled:n(Cn)}:void 0),Dr=m(()=>{var mt,gt,Xi,Co;return n(fo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ps.nextButton,buttonComponent:Na,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:po.bind(null,!0)},tooltipEnabled:!((gt=(mt=J.callbacks)==null?void 0:mt.uiInfo)!=null&&gt.onNextButtonMouseEnter)&&!((Co=(Xi=J.callbacks)==null?void 0:Xi.uiInfo)!=null&&Co.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,mi,zi;(zi=(mi=(Ji=J.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:mi.onNextButtonMouseEnter)==null||zi.call(mi,Hn(Fi(),et,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,mi,zi;(zi=(mi=(Ji=J.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:mi.onNextButtonMouseLeave)==null||zi.call(mi,Hn(Fi(),et,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Jr=m(()=>Vi&&n(vo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ps.playPrevChapterButton,buttonComponent:Xd,buttonComponentProps:{disabled:n(Sr),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(Zr),disabled:n(Sr)}:void 0),Ke=m(()=>Vi&&n(cn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ps.seekToInteractiveButton,buttonComponent:ec,buttonComponentProps:{disabled:n(ln),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:n(ln),disabledTooltipContent:ut(Se())}:void 0),Yt=m(()=>Vi&&n(Vo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ps.interactiveGraphButton,buttonComponent:tc,buttonComponentProps:{disabled:n(Mo),click:Xr.toggle,graphIsOpened:N()},tooltipText:n(fr)}:void 0),vi=m(()=>n(En)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ps.liveButton,buttonComponent:ic,buttonComponentProps:{isLiveActive:n(jo),ariaLabel:n(Ui)},tooltipText:n(Ui),disabled:n(jo)&&l()===Nv.PLAYING}:void 0),gn=m(()=>[n(jn),n(gr),n(fs),n(Dr),n(Jr),n(Ke),n(Yt),n(vi)].filter(mt=>!!mt).sort(Aa)),Do=m(()=>n(In)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ls.vkLogo,buttonComponent:Wd,buttonComponentProps:{targetUrl:Xt(),logoClickable:e.logoClickable,click:dt},tooltipText:n(vr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Br=m(()=>n(pi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ls.autoplayNext,buttonComponent:Jd,tooltipText:n(Lr)}:void 0),Zo=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ls.volume,buttonComponent:ov,buttonComponentProps:{click:Yo,isAds:wt()}})),Hr=m(()=>n(kr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ls.subtitles,buttonComponent:Xf,buttonComponentProps:{isSubtitlesEnabled:n(Er),click:xt},tooltipText:n(Mr)}:void 0),Vs=m(()=>n(Ar)?{id:"settings",type:"desktop-control-panel-right",weight:Ls.settings,buttonComponent:Ml,buttonComponentProps:{ref$:ji},tooltipText:He()?void 0:ut("tooltip_settings_off")}:void 0),Zi=m(()=>se.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ls.context,buttonComponent:bv,buttonComponentProps:{ariaLabel:ut("aria_label_context_menu")},className:n(zn)?"":"out-of-view",tooltipText:n(Pr)}:void 0),Fr=m(()=>n(kn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ls.fullscreen,buttonComponent:zd,buttonComponentProps:{isFullscreen:I(),click:e.toggleFullscreen},tooltipText:n(An)}:void 0),ea=m(()=>n(ft)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ls.chromecast,buttonComponent:Kd,buttonComponentProps:{state:v(),click:Cr},tooltipText:n(Wn)}:void 0),vt=m(()=>[n(Do),n(Br),n(Zo),n(Hr),n(Vs),n(Zi),n(Fr),n(ea),...qe()].filter(mt=>!!mt).sort(Aa)),di=J.ui.previewTrackActive,ho=J.ui.previewTrackDragInProgress,hn=J.ui.previewTrackAvailable,ye=J.ui.isPreviewTrackHorizontallyAligned,pt=m(()=>f0({onPreviewTrackOpened:J.actions.internal.previewTrackOpened,getTimelineRef:()=>et.timeline,isHorizontal:De()})),ri=m(()=>n(pt).progressBarY),yi=m(()=>n(pt).controlsY),ci=m(()=>n(pt).onPointerDown),Zt=m(()=>n(pt).onPointerMove),Ci=m(()=>n(pt).onPointerUp),_n=m(()=>n(pt).calculatedHeight),Xo=m(()=>n(pt).closePreviewTrack);ze(()=>{ie()?Jt.set(!1):n(Xo)()});let Pi;Nt(()=>()=>Pi&&clearTimeout(Pi));let Qa=mt=>{ie()||!je()||(n(ci)(mt),Pi=setTimeout(()=>{J.actions.internal.previewTrackDragStarted()},200))},ta=()=>{ie()||n(Ci)(),Pi&&clearTimeout(Pi),Qe()&&J.actions.internal.previewTrackDragFinished()},ia=mt=>{n(Zt)(mt),!ie()&&je()&&!ie()&&Jt.set(!0)},oa=()=>{Jt.set(!1)};var Yn=d3(),vs=fe(Yn);let na;var hr=_(vs);{var Ga=mt=>{let gt=m(()=>n(ri)()),Xi=m(()=>n(_n)());Rv(mt,{get animatedOffsetY(){return n(gt)},get animatedPreviewTrackHeight(){return n(Xi)},get canRewindLive(){return e.canRewindLive},get isAds(){return wt()},onTimelineMove:ia,onTimelinePointerDown:Qa,onTimelinePointerUp:ta,onTimelinePointerLeave:oa,get previewTrackAvailable(){return je()},get timelineRef(){return et.timeline},set timelineRef(Co){et.timeline=Co}})};R(hr,mt=>{e.showControls&&mt(Ga)})}var ms=P(hr,2),gs=_(ms),ja=_(gs);xi(ja,17,()=>n(gn),mt=>mt.id,(mt,gt)=>{Wu(mt,{get buttonComponent(){return n(gt).buttonComponent},get buttonComponentProps(){return n(gt).buttonComponentProps},get tooltipText(){return n(gt).tooltipText},get disabledTooltipContent(){return n(gt).disabledTooltipContent},get disabled(){return n(gt).disabled},get className(){return n(gt).className},get tooltipEnabled(){return n(gt).tooltipEnabled},get mouseEnter(){return n(gt).mouseEnter},get mouseLeave(){return n(gt).mouseLeave},get ref(){return et[n(gt).id]},set ref(Xi){et[n(gt).id]=Xi}})});var ra=P(ja,2);{var zl=mt=>{let gt=m(()=>!e.showControls),Xi=m(()=>wt()?Fe():Ze()),Co=m(()=>wt()?Ot():tt());Fd(mt,{get isHidden(){return n(gt)},isMobile:!1,get showDuration(){return n(go)},get position(){return n(Xi)},get duration(){return n(Co)},get ref(){return et.time},set ref(Ji){et.time=Ji}})};R(ra,mt=>{n(Lo)&&mt(zl)})}var Ya=P(ra,2);let Wl=m(()=>!n(Ro));ko(Ya,{className:"w-max",get disabled(){return n(Wl)},get tooltipContent(){return Gn},get ref(){return et.episodes},set ref(mt){et.episodes=mt},children:(mt,gt)=>{var Xi=Be(),Co=fe(Xi);{var Ji=mi=>{qd(mi,{get position(){return Ze()},get duration(){return tt()},get timeCodes(){return It}})};R(Co,mi=>{n(Ro)&&mi(Ji)})}$(mt,Xi)},$$slots:{default:!0}}),g(gs);var Zn=P(gs,2);xi(Zn,21,()=>n(vt),mt=>mt.id,(mt,gt)=>{var Xi=Be(),Co=fe(Xi);{var Ji=zi=>{Wu(zi,{get buttonComponent(){return n(gt).buttonComponent},get buttonComponentProps(){return n(gt).buttonComponentProps},get tooltipText(){return n(gt).tooltipText},get disabledTooltipContent(){return n(gt).disabledTooltipContent},get disabled(){return n(gt).disabled},get className(){return n(gt).className},get ref(){return et[n(gt).id]},set ref(Rs){et[n(gt).id]=Rs}})},mi=zi=>{let Rs=m(()=>!!n(gt).disabled);Cv(zi,{get id(){return n(gt).id},get testId(){return n(gt).testId},get icon(){return n(gt).icon},get ariaLabel(){return n(gt).ariaLabel},get tooltipText(){return n(gt).tooltipText},get disabledTooltipContent(){return n(gt).disabledTooltipContent},get disabled(){return n(Rs)},get onClick(){return n(gt).onClick},get disableMouseupTooltipShow(){return n(gt).disableMouseupTooltipShow},get ref(){return et[n(gt).id]},set ref(ql){et[n(gt).id]=ql}})};R(Co,zi=>{c0(n(gt))?zi(Ji):zi(mi,!1)})}$(mt,Xi)}),g(Zn),g(ms),rt(ms,mt=>qt(mt),()=>qt()),g(vs),rt(vs,mt=>Bt(mt),()=>Bt());var Kl=P(vs,2);{var Za=mt=>{jd(mt,{get ref(){return et.interactiveTimeIndicator},set ref(gt){et.interactiveTimeIndicator=gt}})};R(Kl,mt=>{wr&&mt(Za)})}D((mt,gt)=>{na=ne(vs,1,"wrapper-bottom svelte-1ojrdvx",null,na,mt),Xe(ms,gt),ms.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Qe()}),()=>`transform: translateY(${n(yi)()}px);`]),Sn(gs,"clientWidth",mt=>O(Kn,mt)),$(t,Yn),F(),o()}import{ChromecastState as _0,PlaybackState as b0}from"@vkontakte/videoplayer-core/es2018";import{noop as h0}from"@vkontakte/videoplayer-shared/es2018";var u3=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),p3=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),f3={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function Dv(t,e){z(t,f3);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,h0),r=m(()=>o()===h0),s=m(()=>n(r)||i()),l=Q(!1),d=()=>{O(l,!0)},a=m(()=>n(r)?"btn-full-opacity":"");zt(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,f)=>{var v=Be(),p=fe(v);{var y=x=>{var C=u3();$(x,C)},w=x=>{var C=p3();D(()=>We(C,"src",e.iconUrl)),bt("error",C,d),$a(C),$(x,C)};R(p,x=>{n(l)?x(y):x(w,!1)})}$(u,v)},$$slots:{default:!0}})}var v3=Ie('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function Bv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=v3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}import{noop as m3}from"@vkontakte/videoplayer-shared/es2018";var g3=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),h3={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function qu(t,e){H(e,!0),z(t,h3);let i=h(e,"muted",3,!1),o=h(e,"click",3,m3),r=h(e,"ref",15,void 0),l=be().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=m(()=>i()?Bv:Xs),u=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");zt(t,{get testId(){return n(u)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(f){r(f)},children:(f,v)=>{var p=g3();let y=m(()=>n(a));var w=_(p);Mi(w,()=>n(y),(x,C)=>{C(x,{})}),g(p),$(f,p)},$$slots:{default:!0}}),F()}var _3=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function Hv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=_3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(3),g(o),$(t,o)}var b3={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
267
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Fv(t,e){z(t,b3);let i=h(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),r=m(()=>i()?"pip-icon--active":"pip-icon");Hv(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}import{noop as $3}from"@vkontakte/videoplayer-shared/es2018";function Uv(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,$3),s=j("menu_pip");zt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Fv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}import{debounceFn as $0}from"@vkontakte/videoplayer-shared/es2018";var y3=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},x3=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},w3=M("<div><!></div>"),S3=M("<div><!></div>"),C3=M("<div><!></div>"),T3=M("<!> <!> <!>",1),E3=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),I3=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),k3=M("<div><!></div> <!> <div><!></div>",1),A3=M('<div aria-hidden="true">\xB7</div> <!>',1),P3=M('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),M3={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
268
+ .wrapper-middle-left-second.svelte-tg0ura,
269
+ .wrapper-middle-right.svelte-tg0ura {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-tg0ura {left:12px;}.wrapper-middle-left-second.svelte-tg0ura {left:64px;}.wrapper-middle-right.svelte-tg0ura {right:12px;}.controls.svelte-tg0ura {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-tg0ura {display:flex;}.controls-group.contain.svelte-tg0ura {min-width:0;}.controls-group.svelte-tg0ura > *:not(:first-child) {margin-left:8px;}.hidden.svelte-tg0ura {visibility:hidden;opacity:0;}.controls-hidden.svelte-tg0ura {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-tg0ura {transition:none;}.overlay-mobile.svelte-tg0ura {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
270
+
271
+ @media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-tg0ura {top:16px;}.wrapper-top-left.fullscreen.svelte-tg0ura {top:16px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;bottom:30px;width:calc(100% - 8px);}
272
+ }
273
+
274
+ @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-tg0ura {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-tg0ura {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-tg0ura {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-tg0ura {left:96px;}.wrapper-middle-right.fullscreen.svelte-tg0ura {right:44px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
275
+ }`};function zv(t,e){var mn,Nr;H(e,!0),z(t,M3);let[i,o]=Ne(),r=()=>S(Hi,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(oi,"$disabledControls$",i),l=()=>S(Pt,"$playbackState$",i),d=()=>S(Qo,"$adPlaybackState",i),a=()=>S(J,"$isEnded$",i),u=()=>S(Ct,"$playerSize",i),f=()=>S(xt,"$scrubbingInProgress",i),v=()=>S(Bi,"$chromecastState$",i),p=()=>S(st,"$isPictureInPictureActive",i),y=()=>S(nt,"$pictureInPictureType$",i),w=()=>S(ge,"$mobileNotReportControlHidden$",i),x=()=>S(_i,"$chromecastHidden",i),C=()=>S(qt,"$playerPhase",i),T=()=>S(Vt,"$pipHidden",i),E=()=>S(Ye,"$currentGridType$",i),N=()=>S(wi,"$vkLogoHidden",i),A=()=>S(ui,"$volumeHidden",i),I=()=>S(Ce,"$isLive$",i),L=()=>S(at,"$settingsMenuVisible",i),Y=()=>S(dt,"$isRewindableLive$",i),B=()=>S(St,"$isActiveLive$",i),U=()=>S(Te,"$isAudioAvailable$",i),Z=()=>S(ht,"$muted$",i),le=()=>S(se,"$volume$",i),K=()=>S(ut,"$isInteractiveTime$",i),ce=()=>S(cn,"$settingButtonRef$",i),X=()=>S(It,"$startedByKeyboard$",i),me=()=>S(sn,"$isFullscreen",i),re=()=>S(Ht,"$additionalButtons$",i),de=()=>S(oo,"$autoplayNextToggleHidden",i),Me=()=>S(Ei,"$crashed$",i),xe=()=>S(li,"$settingsHidden",i),ee=()=>S(Go,"$graphIsOpened$",i),Oe=()=>S(bo,"$adPosition",i),pe=()=>S(bi,"$adDuration",i),k=()=>S(Xt,"$position$",i),qe=()=>S(wt,"$duration$",i),Le=h(e,"playerControlsWrapperRef",15,void 0),q=h(e,"playerControlsRef",15,void 0),ie=h(e,"isAds",3,!1),He=h(e,"logoTargetUrl",3,""),Ge=h(e,"isOneVideoPlaylist",3,!1),he=h(e,"customFullscreenSupported",3,!0),te=be(),we=_o(),Se=Lt(),De=te.actions.internal.toggleMuted,je=te.actions.internal.togglePlay,Qe=te.actions.internal.pause,Fe=te.actions.internal.prevVideoClick,Ze=te.actions.internal.nextVideoClick,Ot=te.actions.internal.checkFullscreenSupport,tt=(mn=te.callbacks)==null?void 0:mn.onAudioDoesNotExistHint,Bt=(Nr=te.callbacks)==null?void 0:Nr.onAudioDisabledHint,qt=te.playerPhase,wt=te.state.duration$,Xt=te.state.positionWithScrubbing$,Pt=te.state.playbackState$,Te=te.state.isAudioAvailable$,Ae=te.state.isAudioDisabled,J=te.state.isEnded$,Ce=te.state.isLive$,se=te.state.volume$,ht=te.state.muted$,St=te.state.isActiveLive$,dt=te.state.isRewindableLive$,xt=te.ui.scrubbingInProgress,ge=te.ui.mobileNotReportControlHidden$,{isActive$:st,type$:nt}=we.pictureInPicture$,at=te.ui.settingsMenu.visible$,ei=te.ui.settingsMenu.openedByBtnKeyboard$,jt=te.ui.controls,{volume:ui,vkLogo:wi,autoplayNextToggle:oo,pip:Vt,settings:li,chromecast:_i}=te.ui.hiddenControls,_t=te.actions.internal.getVideoEpisodes(),Dt=te.webApi.pictureInPictureApi,Bi=te.state.chromecastState$,Ei=te.state.crashed$,oi=jt.disabledControls$,It=te.ui.startedByKeyboard$,Ye=te.ui.currentGridType$,bi=te.ads.duration,bo=te.ads.position,Qo=te.ads.playbackState,sn=te.ui.isFullscreen,Ct=te.ui.playerSize,Ht=te.ui.additionalButtonsDeprecated$,W=te.actions.internal.getVideoElement,Mt=te.actions.internal.replayInteractive,Jt=te.state.isInteractive,ut=te.state.isInteractiveTime$,Tt=te.state.showInteractiveGraph,Qt=te.state.showSeekToInteractive,ct=te.state.showPlayPrevChapter,Ii=te.state.showInteractiveTimeIndicator,Hi=we.seekToInteractiveDisabledTooltip$,Go=we.graphIsOpened$,Ao=te.ui.controlBlocks,no=m(()=>j(te.state.playPrevChapterDisabledTooltip)),Fi=m(()=>j(r())),lr=m(()=>s().has("EPISODE_BUTTON")),uo=m(()=>s().has("GRAPH_BUTTON")),po=m(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Vi=m(()=>s().has("PLAY_BUTTON")),an=m(()=>s().has("REPLAY_BUTTON")),Po=m(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),dr=m(()=>l()===b0.PLAYING),cr=m(()=>d()==="paused"),wr=m(()=>a()&&!ie()&&!Jt),Zr=m(()=>!a()||ie()),ps=m(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),Xr=m(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),$o=m(()=>u().width>300),Un=m(()=>u().width>400),Mo=m(f),ln=m(()=>v()!==_0.NOT_AVAILABLE&&!(p()&&y()===1)&&!w()&&!Jt&&!x()),Cn=m(()=>C()==="LiveWaitingStart"),ur=m(()=>!!Dt&&v()!==_0.CONNECTED&&!w()&&(y()===1&&n(Cn)||!n(Cn))&&!n(Mo)&&!Jt&&!T()),Sr=Q(!1);Nt(()=>{let Je=Dt==null?void 0:Dt.info.isActive$.subscribe(kt=>O(Sr,kt,!0));return()=>Je==null?void 0:Je.unsubscribe()});let Cr=m(()=>!n(Mo)&&to(E(),"s")),Tr=m(()=>!e.logoHidden&&u().width>350&&!N()),Er=m(()=>Se.features.fullscreen&&Ot()&&!(p()&&y()===1)&&(Jt?he():!0)&&!n(Mo)&&!n(Sr)),Gi=m(()=>!A()&&!n(Mo)),Ir=m(()=>(!I()||ie())&&u().width>260&&!n(Mo)&&!(Se.features.interactiveHideTime&&Jt)),Tn=m(()=>L()||e.showControls),dn=m(()=>!ie()&&!I()&&!!(_t!=null&&_t.length)&&n($o)&&!n(lr)&&!n(Mo)),fo=m(()=>!Y()||!!B()),pr=m(()=>Tt&&to(E(),"m")),En=m(()=>!U()||Z()||le()===0),ft=si({}),pi=si({}),kr=$0(Ol,260),zn=$0(Ku,260);ze(()=>{u(),K(),kr(W(),jt,ft,e.showControls),zn(W(),Ao,pi,e.showControls)});let Ar=()=>te.actions.internal.toggleChromecast();async function In(){Dt!=null&&Dt.isActive()?await(Dt==null?void 0:Dt.exit()):await(Dt==null?void 0:Dt.request())}function kn(){Zs({isAudioDisabled:Ae,audioDisabledHintCallback:Bt,isAudioAvailable:U(),audioIsNotExistHintCallback:tt,isAds:ie()})&&De()}let Lo=Q(""),Vo=(Je,kt)=>{if(!Je){O(Lo,j("tooltip_live"),!0);return}kt&&kt===b0.PAUSED&&O(Lo,j("tooltip_play"),!0)};ze(()=>{Vo(n(fo),l())});let cn=ae();ze(()=>{ce()&&Il(ce(),L(),ei)}),ze(()=>{zu(It,X(),ft.playButton)}),ze(()=>{pi.bottom=Le()});var vo=P3(),Ro=fe(vo);{var jo=Je=>{var kt=E3(),$i=fe(kt);let go;var No=P($i,2);let wo;rt(No,vt=>pi.topLeft=vt,()=>pi==null?void 0:pi.topLeft);var ji=P(No,2);let Ai;var Yo=_(ji);xi(Yo,1,re,({iconUrl:vt,ariaLabel:di,testId:ho,onClick:hn,tooltip:ye})=>vt,(vt,di)=>{let ho=()=>n(di).iconUrl,hn=()=>n(di).ariaLabel,ye=()=>n(di).testId,pt=()=>n(di).onClick,ri=()=>n(di).tooltip,yi=m(()=>{var ci;return(ci=hn())!=null?ci:ri()});Dv(vt,{get iconUrl(){return ho()},get ariaLabel(){return n(yi)},get testId(){return ye()},get onClick(){return pt()}})});var Oo=P(Yo,2);{var So=vt=>{Jd(vt,{get ref(){return ft.autoplayNextToggle},set ref(di){ft.autoplayNextToggle=di}})};R(Oo,vt=>{e.showAutoplayNext&&!Ge()&&!de()&&vt(So)})}var Yi=P(Oo,2);{var Or=vt=>{Kd(vt,{isMobile:!0,click:Ar,get state(){return v()},get ref(){return ft.chromecast},set ref(di){ft.chromecast=di}})};R(Yi,vt=>{n(ln)&&vt(Or)})}var Gn=P(Yi,2);{var jn=vt=>{Uv(vt,{click:In,get isPictureInPictureActive(){return p()},get ref(){return ft.pip},set ref(di){ft.pip=di}})};R(Gn,vt=>{n(ur)&&vt(jn)})}var gr=P(Gn,2);{var fs=vt=>{Ml(vt,{get ref$(){return cn}})};R(gr,vt=>{Me()&&!xe()&&vt(fs)})}var Dr=P(gr,2);{var Jr=vt=>{Wd(vt,{get click(){return Qe},get targetUrl(){return He()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(di){ft.vkLogo=di}})};R(Dr,vt=>{n(Tr)&&vt(Jr)})}g(ji),rt(ji,vt=>pi.topRight=vt,()=>pi==null?void 0:pi.topRight);var Ke=P(ji,2);let Yt;var vi=_(Ke);{var gn=vt=>{let di=m(()=>Fe.bind(null,!0));Na(vt,{get click(){return n(di)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(ho){ft.prevButton=ho}})};R(vi,vt=>{n(ps)&&vt(gn)})}var Do=P(vi,2);{var Br=vt=>{Bl(vt,{get disabled(){return n(Vi)},get click(){return je},isMobile:!0,get isPlaying(){return n(dr)},get ref(){return ft.playButton},set ref(di){ft.playButton=di}})};R(Do,vt=>{n(Zr)&&vt(Br)})}var Zo=P(Do,2);{var Hr=vt=>{Dl(vt,{get disabled(){return n(an)},get click(){return je},isMobile:!0,get ref(){return ft.replayButton},set ref(di){ft.replayButton=di}})};R(Zo,vt=>{n(wr)&&vt(Hr)})}var Vs=P(Zo,2);{var Zi=vt=>{let di=m(()=>Ze.bind(null,!0));Na(vt,{get click(){return n(di)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(ho){ft.nextButton=ho}})};R(Vs,vt=>{n(Xr)&&vt(Zi)})}g(Ke),rt(Ke,vt=>pi.middle=vt,()=>pi==null?void 0:pi.middle);var Fr=P(Ke,2);{var ea=vt=>{var di=T3(),ho=fe(di);{var hn=ci=>{var Zt=w3();let Ci;Zt.__click=[y3,Po,e,no];var _n=_(Zt);let Xo=m(()=>!e.showControls);Xd(_n,{get hidden(){return n(Xo)},get disabled(){return n(Po)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(Pi){ft.playPrevChapterButton=Pi}}),g(Zt),D(Pi=>Ci=ne(Zt,1,"wrapper-middle-left svelte-tg0ura",null,Ci,Pi),[()=>({fullscreen:me(),hidden:!e.showControls})]),$(ci,Zt)};R(ho,ci=>{ct&&ci(hn)})}var ye=P(ho,2);{var pt=ci=>{var Zt=S3();let Ci;var _n=_(Zt);let Xo=m(()=>!e.showControls&&!ee());tc(_n,{get hidden(){return n(Xo)},get disabled(){return n(uo)},get click(){return Go.toggle},get graphIsOpened(){return ee()},get ref(){return ft.interactiveGraphButton},set ref(Pi){ft.interactiveGraphButton=Pi}}),g(Zt),D(Pi=>Ci=ne(Zt,1,md(ct?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",Ci,Pi),[()=>({fullscreen:me(),hidden:!e.showControls&&!ee()})]),$(ci,Zt)};R(ye,ci=>{n(pr)&&ci(pt)})}var ri=P(ye,2);{var yi=ci=>{var Zt=C3();let Ci;Zt.__click=[x3,po,e,Fi];var _n=_(Zt);let Xo=m(()=>!e.showControls);ec(_n,{get hidden(){return n(Xo)},get disabled(){return n(po)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(Pi){ft.seekToInteractiveButton=Pi}}),g(Zt),D(Pi=>Ci=ne(Zt,1,"wrapper-middle-right svelte-tg0ura",null,Ci,Pi),[()=>({fullscreen:me(),hidden:!e.showControls})]),$(ci,Zt)};R(ri,ci=>{Qt&&ci(yi)})}$(vt,di)};R(Fr,vt=>{Jt&&!f()&&vt(ea)})}D((vt,di,ho,hn)=>{go=ne($i,1,"overlay-mobile svelte-tg0ura",null,go,vt),wo=ne(No,1,"wrapper-top-left svelte-tg0ura",null,wo,di),Ai=ne(ji,1,"wrapper-top-right svelte-tg0ura",null,Ai,ho),Yt=ne(Ke,1,"wrapper-middle svelte-tg0ura",null,Yt,hn)},[()=>({hidden:!n(Tn)}),()=>({hidden:!e.showControls,fullscreen:me()}),()=>({hidden:!e.showControls&&!w(),fullscreen:me()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(Je,kt)};R(Ro,Je=>{ie()||Je(jo)})}var fr=P(Ro,2);{var Pr=Je=>{var kt=k3(),$i=fe(kt);let go;var No=_($i);qu(No,{get muted(){return Z()},click:kn,get ref(){return ft.volume},set ref(So){ft.volume=So}}),g($i);var wo=P($i,2);{var ji=So=>{var Yi=I3(),Or=_(Yi);let Gn=m(()=>!n(cr));Bl(Or,{get disabled(){return n(Vi)},get click(){return je},isMobile:!0,get isPlaying(){return n(Gn)},get ref(){return ft.playButton},set ref(jn){ft.playButton=jn}}),g(Yi),$(So,Yi)};R(wo,So=>{n(cr)&&So(ji)})}var Ai=P(wo,2);let Yo;var Oo=_(Ai);oc(Oo,{get position(){return Oe()},get duration(){return pe()}}),g(Ai),D((So,Yi)=>{go=ne($i,1,"wrapper-top-right svelte-tg0ura",null,go,So),Yo=ne(Ai,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,Yo,Yi)},[()=>({fullscreen:me()}),()=>({fullscreen:me()})]),$(Je,kt)};R(fr,Je=>{ie()&&d()!=="inactive"&&Je(Pr)})}var un=P(fr,2);let Ui;var vr=_(un);let Mr;var An=_(vr),Wn=_(An),Lr=_(Wn);{var Kn=Je=>{ko(Je,{get disabled(){return n(an)},get ref(){return ft.replayButton},set ref(kt){ft.replayButton=kt},children:(kt,$i)=>{Dl(kt,{get disabled(){return n(an)},get click(){return Mt}})},$$slots:{default:!0}})};R(Lr,Je=>{Jt&&Je(Kn)})}var et=P(Lr,2);{var ni=Je=>{ko(Je,{get ref(){return ft.liveButton},set ref(kt){ft.liveButton=kt},children:(kt,$i)=>{ic(kt,{get isLiveActive(){return n(fo)},isMobile:!0,get ariaLabel(){return n(Lo)}})},$$slots:{default:!0}})};R(et,Je=>{!ie()&&I()&&Je(ni)})}var Ri=P(et,2);{var Ni=Je=>{let kt=m(()=>ie()?Oe():k()),$i=m(()=>ie()?pe():qe()),go=m(()=>!e.showControls);Fd(Je,{get showDuration(){return n(Un)},get position(){return n(kt)},get duration(){return n($i)},isMobile:!0,get isHidden(){return n(go)},get ref(){return ft.time},set ref(No){ft.time=No}})};R(Ri,Je=>{n(Ir)&&Je(Ni)})}var pn=P(Ri,2);let yo=m(()=>!n(dn));ko(pn,{className:"w-max",get disabled(){return n(yo)},get ref(){return ft.episodes},set ref(Je){ft.episodes=Je},children:(Je,kt)=>{var $i=Be(),go=fe($i);{var No=wo=>{var ji=A3(),Ai=P(fe(ji),2);qd(Ai,{get position(){return k()},get duration(){return qe()},get timeCodes(){return _t}}),$(wo,ji)};R(go,wo=>{n(dn)&&wo(No)})}$(Je,$i)},$$slots:{default:!0}}),g(Wn),rt(Wn,Je=>pi.bottomLeft=Je,()=>pi==null?void 0:pi.bottomLeft);var xo=P(Wn,2),fi=_(xo);{var Pn=Je=>{ko(Je,{get ref(){return ft.volume},set ref(kt){ft.volume=kt},children:(kt,$i)=>{qu(kt,{get muted(){return n(En)},click:kn})},$$slots:{default:!0}})};R(fi,Je=>{n(Gi)&&Je(Pn)})}var mo=P(fi,2);{var qn=Je=>{ko(Je,{get ref(){return ft.settings},set ref(kt){ft.settings=kt},children:(kt,$i)=>{Ml(kt,{get ref$(){return cn}})},$$slots:{default:!0}})};R(mo,Je=>{n(Cr)&&Je(qn)})}var Qn=P(mo,2);{var Vr=Je=>{ko(Je,{get ref(){return ft.fullscreen},set ref(kt){ft.fullscreen=kt},children:(kt,$i)=>{zd(kt,{get click(){return e.toggleFullscreen},get isFullscreen(){return me()}})},$$slots:{default:!0}})};R(Qn,Je=>{n(Er)&&Je(Vr)})}g(xo),rt(xo,Je=>pi.bottomRight=Je,()=>pi==null?void 0:pi.bottomRight),g(An),rt(An,Je=>q(Je),()=>q());var Rr=P(An,2);let fn=m(()=>!e.showControls);Da(Rr,{get isHidden(){return n(fn)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Y()},get ref(){return ft.timeline},set ref(Je){ft.timeline=Je}}),g(vr),g(un),rt(un,Je=>Le(Je),()=>Le());var vn=P(un,2);{var mr=Je=>{jd(Je,{get ref(){return ft.interactiveTimeIndicator},set ref(kt){ft.interactiveTimeIndicator=kt}})};R(vn,Je=>{Ii&&Je(mr)})}D((Je,kt)=>{Ui=ne(un,1,"wrapper-bottom mobile svelte-tg0ura",null,Ui,Je),Mr=ne(vr,1,"controls-wrapper svelte-tg0ura",null,Mr,kt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:me()})]),$(t,vo),F(),o()}lt(["click"]);function nc(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(T,"$isMobile",i),s=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),a=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),f=h(e,"showAutoplayNext",3,!1),v=h(e,"isOneVideoPlaylist",3,!1),p=h(e,"customFullscreenSupported",3,!0),y=h(e,"endScreenShown",3,!1),w=h(e,"onDisabledPlayPrevChapterClick",3,y0),x=h(e,"onDisabledSeekToInteractiveClick",3,y0),T=be().ui.isMobile,E=Q(!1);Nt(()=>{let L=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(L)});var N=Be(),A=fe(N);{var I=L=>{var Y=Be(),B=fe(Y);{var U=le=>{zv(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 f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return p()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return x()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(K){l(K)},get playerControlsRef(){return d()},set playerControlsRef(K){d(K)}})},Z=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 v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(K){l(K)},get playerControlsRef(){return d()},set playerControlsRef(K){d(K)}})};R(B,le=>{r()?le(U):le(Z,!1)})}$(L,Y)};R(A,L=>{n(E)&&L(I)})}$(t,N),F(),o()}var L3=Ie('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function Wv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=L3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}function Kv(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Wv(t,{get style(){return n(o)}})}var V3=Ie('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function qv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=V3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}var R3=Ie('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Qv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=R3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}function Qu(t,e){let i=h(e,"isOff",3,!1);var o=Be(),r=fe(o);{var s=d=>{Qv(d,{})},l=d=>{qv(d,{})};R(r,d=>{i()?d(s):d(l,!1)})}$(t,o)}var N3=Ie('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Gv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=N3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}function jv(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Gv(t,{get style(){return n(o)}})}var O3=Ie('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function Yv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=O3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(2),g(o),$(t,o)}function Zv(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Yv(t,{get style(){return n(o)}})}var D3=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),B3=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),H3=M("<div><!></div>"),F3={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
276
+ animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
277
+ .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
278
+ .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
279
+ .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"] {transform:scale(2.5);}.hot-key-helpers-container--left.svelte-1ad3n06 {left:calc(25% - 100px);}.hot-key-helpers-container--right.svelte-1ad3n06 {left:calc(75% - 100px);}.hot-key-helpers-text.svelte-1ad3n06 {text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px; /* 133.333% */letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;}.hidden.svelte-1ad3n06 {visibility:hidden;
280
+ animation: svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0;}
281
+
282
+ @keyframes svelte-1ad3n06-fadeIn {
283
+ 0% {opacity:0;}
284
+ 100% {opacity:1;}
285
+ }
286
+
287
+ @keyframes svelte-1ad3n06-fadeOut {
288
+ 0% {opacity:1;}
289
+ 100% {opacity:0;}
290
+ }`};function Xv(t,e){H(e,!0),z(t,F3);let[i,o]=Ne(),r=()=>S(e.data,"$data",i),s=be(),{features:l}=Lt(),d=s.ui.t,a=m(()=>!r()),u=m(()=>{var T;return((T=r())==null?void 0:T.type)==="BACKWARD_SEEK"}),f=m(()=>{var T;return((T=r())==null?void 0:T.type)==="FORWARD_SEEK"}),v=m(()=>{var T;return(T=r())==null?void 0:T.type}),p=m(()=>{var T,E;return(T=r())!=null&&T.t?d(r().t.key,{value:r().t.value||""}):(E=r())==null?void 0:E.text});var y=H3();let w;var x=_(y);{var C=T=>{var E=B3(),N=fe(E),A=_(N);{var I=q=>{let ie=m(()=>n(v)==="FORWARD_SEEK");Kv(q,{get reversed(){return n(ie)}})};R(A,q=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(v))&&q(I)})}var L=P(A,2);{var Y=q=>{Ms(q,{})};R(L,q=>{n(v)==="PAUSE"&&!l.playbackStatusShow&&q(Y)})}var B=P(L,2);{var U=q=>{ar(q,{})};R(B,q=>{n(v)==="PLAY"&&!l.playbackStatusShow&&q(U)})}var Z=P(B,2);{var le=q=>{Zd(q,{})};R(Z,q=>{n(v)==="REPLAY"&&!l.playbackStatusShow&&q(le)})}var K=P(Z,2);{var ce=q=>{Qu(q,{isOff:!0})};R(K,q=>{n(v)==="SUBTITLES_OFF"&&q(ce)})}var X=P(K,2);{var me=q=>{Qu(q,{})};R(X,q=>{n(v)==="SUBTITLES_ON"&&q(me)})}var re=P(X,2);{var de=q=>{let ie=m(()=>n(v)==="RATE_UP");jv(q,{get reversed(){return n(ie)}})};R(re,q=>{["RATE_DOWN","RATE_UP"].includes(n(v))&&q(de)})}var Me=P(re,2);{var xe=q=>{let ie=m(()=>n(v)==="EPISODE_NEXT");Zv(q,{get reversed(){return n(ie)}})};R(Me,q=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(v))&&q(xe)})}var ee=P(Me,2);{var Oe=q=>{Xs(q,{volume:0})};R(ee,q=>{n(v)==="MUTE"&&q(Oe)})}var pe=P(ee,2);{var k=q=>{Xs(q,{volume:1})};R(pe,q=>{n(v)==="VOLUME"&&q(k)})}g(N);var qe=P(N,2);{var Le=q=>{var ie=D3(),He=_(ie,!0);g(ie),D(()=>ve(He,n(p))),$(q,ie)};R(qe,q=>{n(p)&&q(Le)})}$(T,E)};R(x,T=>{!n(a)&&n(v)&&T(C)})}g(y),D(T=>w=ne(y,1,"hot-key-helpers-container svelte-1ad3n06",null,w,T),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),$(t,y),F(),o()}var U3=Ie('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function Jv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=U3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var z3=Ie('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function em(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=z3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}function Js(t,e){H(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),s=m(()=>["right","down"].includes(i())),l=m(()=>(()=>{let v="";return n(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Be(),a=fe(d);{var u=v=>{let p=m(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Jv(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})},f=v=>{let p=m(()=>n(s)?"chevron-icon--right":"chevron-icon--left");em(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})};R(a,v=>{n(r)?v(u):v(f,!1)})}$(t,d),F()}var W3=(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}},K3=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},q3=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),Q3={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function rc(t,e){H(e,!0),z(t,Q3);let i=h(e,"isShifted",3,!1),o=be(),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),f=j("aria_label_spherical_control");var v=q3();let p;v.__keydown=[W3,r,s,l,a,d],v.__keyup=[K3,r,u];var y=_(v),w=_(y),x=_(w);x.__mousedown=s,x.__mouseup=u;var C=_(x);Js(C,{direction:"up",useBtnColor:!0}),g(x);var T=P(x,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);Js(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var N=P(w,2),A=_(N);A.__mousedown=a,A.__mouseup=u;var I=_(A);Js(I,{direction:"up",useBtnColor:!0}),g(A);var L=P(A,2);L.__mousedown=l,L.__mouseup=u;var Y=_(L);Js(Y,{direction:"up",useBtnColor:!0}),g(L),g(N),g(y),g(v),D(B=>{p=ne(v,1,"immersive-controls svelte-1yzc86r",null,p,B),We(v,"aria-label",f)},[()=>({"m-shifted":i()})]),bt("mouseleave",x,u),bt("mouseleave",T,u),bt("mouseleave",A,u),bt("mouseleave",L,u),$(t,v),F()}lt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as w0,Subscription as G3,filterChanged as j3,filter as Y3}from"@vkontakte/videoplayer-shared/es2018";var x0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Gu=class{constructor(){this.flickeringTimeout=x0(1e3);this.subscriptions=new G3;this.isAuto=!1;this.isLive=!1;this.captions$=new w0([]);this.captionsPrepared$=new w0([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(Y3(()=>this.isEnabled()),j3()).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 Z3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),X3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"></span></span>'),J3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),ex=M('<div><span class="caption svelte-1i1hgvc"><!></span></div>'),tx=M("<div><!></div>"),ix={hash:"svelte-1i1hgvc",code:`.subtitles-container.svelte-1i1hgvc {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-1i1hgvc {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-container.preview-track-active.svelte-1i1hgvc {transform:translateY(calc(var(--preview-track-height) * -1));}.preview-track-active.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {bottom:var(--preview-track-controls-top-offset);}.subtitles-caption.svelte-1i1hgvc {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-1i1hgvc {bottom:8%;}.subtitles-container.auto.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-1i1hgvc {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-1i1hgvc .caption:where(.svelte-1i1hgvc) {width:100%;}.caption-line.svelte-1i1hgvc {display:block;text-align:center;}.subtitles-container.auto.svelte-1i1hgvc .caption-line:where(.svelte-1i1hgvc) {text-align:left;}.caption-segment.svelte-1i1hgvc {display:inline-block;line-height:1.2;font-size:13px;
291
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Ha(t,e){H(e,!0),z(t,ix);let[i,o]=Ne(),r=()=>S(p,"$currentSubtitle$",i),s=()=>S(w,"$isLive$",i),l=()=>S(x,"$isFullscreen",i),d=()=>S(C,"$previewTrackActive",i),a=()=>S(y,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),f=be(),v=Lt(),p=f.state.currentSubtitle$,y=f.state.isAutoSubtitleCaptionVisible$,w=f.state.isLive$,x=f.ui.isFullscreen,C=f.ui.previewTrackActive,T=m(()=>!!r().isAuto),E=m(()=>!!s()),N=m(()=>e.playerSize.width*.02),A=m(()=>u()&&!l()||n(N)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:n(N)),I=Q(null);ze(()=>{var K,ce,X;(K=n(I))==null||K.setIsAuto(n(T)),(ce=n(I))==null||ce.setIsLive(n(E)),(X=n(I))==null||X.setCaptions(e.captions)});let L=Q(si([[]]));Nt(()=>{O(I,new Gu().subscribe(),!0);let K=n(I).captionsPrepared$.subscribe(ce=>{O(L,ce,!0)});return()=>{var ce;(ce=n(I))==null||ce.destroy(),K.unsubscribe()}}),Nt(()=>{if(n(T)){let K=window.setTimeout(()=>{y.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(K)}}else y.set(!1)});let Y=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=tx();let U;var Z=_(B);{var le=K=>{var ce=ex();let X;var me=_(ce),re=_(me);{var de=xe=>{var ee=Z3(),Oe=_(ee),pe=_(Oe,!0);g(Oe),g(ee),D(k=>{var qe;Xe(Oe,`font-size: ${(qe=n(A))!=null?qe:""}px`),ve(pe,k)},[()=>j("subtitles_auto_caption")]),$(xe,ee)},Me=(xe,ee)=>{{var Oe=k=>{var qe=Be(),Le=fe(qe);xi(Le,17,()=>n(L),fd,(q,ie)=>{var He=X3(),Ge=_(He);xi(Ge,21,()=>n(ie),({value:he,timeAppeared:te})=>te,(he,te)=>{let we=()=>n(te).value,Se=()=>n(te).timeAppeared;var De=Be(),je=fe(De);{var Qe=Fe=>{var Ze=rs();D(()=>ve(Ze,we())),$(Fe,Ze)};R(je,Fe=>{(!Se()||Se()<=e.position)&&Fe(Qe)})}$(he,De)}),g(Ge),g(He),D(()=>{var he;return Xe(Ge,`font-size: ${(he=n(A))!=null?he:""}px`)}),$(q,He)}),$(k,qe)},pe=k=>{var qe=Be(),Le=fe(qe);xi(Le,17,()=>e.captions,({value:q})=>q,(q,ie)=>{let He=()=>n(ie).value;var Ge=J3(),he=_(Ge),te=_(he,!0);g(he),g(Ge),D(()=>{var we;Xe(he,`font-size: ${(we=n(A))!=null?we:""}px`),ve(te,He())}),$(q,Ge)}),$(k,qe)};R(xe,k=>{var qe;n(T)&&((qe=n(L))!=null&&qe.length)?k(Oe):k(pe,!1)},ee)}};R(re,xe=>{n(T)&&a()?xe(de):xe(Me,!1)})}g(me),g(ce),D(xe=>{var ee;X=ne(ce,1,"subtitles-caption svelte-1i1hgvc",null,X,xe),Xe(ce,`--subtitles-caption-margin: ${(ee=n(Y))!=null?ee:""}%`)},[()=>({mobile:u()})]),$(K,ce)};R(Z,K=>{var ce;(e.captions.length||(ce=n(L))!=null&&ce.length)&&K(le)})}g(B),D(K=>U=ne(B,1,"subtitles-container svelte-1i1hgvc",null,U,K),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(T)&&!n(E)&&!a()})]),$(t,B),F(),o()}var ox=M('<div class="text svelte-raurnb"> </div>'),nx=M('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),rx={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function sc(t,e){H(e,!0),z(t,rx);let i=Lt();var o=nx();let r;var s=P(_(o),2);{var l=d=>{var a=ox(),u=_(a);g(a),D(()=>{var f;return ve(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};R(s,d=>{e.chromecastDeviceName&&d(l)})}g(o),D(d=>{r=ne(o,1,"wrapper svelte-raurnb",null,r,d),Xe(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),F()}var sx=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function tm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=sx();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var ax=M('<div class="container svelte-13zpvm8"><!></div>'),lx={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function Fa(t){z(t,lx);var e=ax(),i=_(e);tm(i,{}),g(e),$(t,e)}var dx=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),cx=M("<div><!></div>"),ux={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
292
+ visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
293
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ua(t,e){H(e,!0),z(t,ux);let i=h(e,"iconVisible",3,!0),o=be(),r=Lt(),s=o.ui.startedByKeyboard$,l=j("tooltip_play"),d=y=>{var x;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),(x=e.startVideo)==null||x.call(e))},a=y=>{var w,x;y.stopPropagation(),(w=e.startVideo)==null||w.call(e),(x=e.onClick)==null||x.call(e,y)};var u=cx();let f;u.__click=a,u.__contextmenu=function(...y){var w;(w=e.onContextMenu)==null||w.apply(this,y)};var v=_(u);{var p=y=>{var w=dx();w.__keydown=d;var x=P(_(w),2);ar(x,{}),g(w),D(()=>We(w,"aria-label",l)),$(y,w)};R(v,y=>{i()&&y(p)})}return g(u),D(y=>{f=ne(u,1,"container svelte-1ciju45",null,f,y),Xe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),$(t,u),F({handlePressKey:d,handleClick:a})}lt(["click","contextmenu","keydown"]);var px=M('<div data-testid="video_title"><span> </span></div>'),fx={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
294
+ 0deg,
295
+ rgba(0, 0, 0, 0) 0%,
296
+ rgba(0, 0, 0, 0.02) 19%,
297
+ rgba(0, 0, 0, 0.1) 34%,
298
+ rgba(0, 0, 0, 0.4) 60%,
299
+ rgba(0, 0, 0, 0.6) 100%
300
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function im(t,e){H(e,!0),z(t,fx);let i=h(e,"title",3,""),o=h(e,"isHidden",3,!1),r=h(e,"ref",15),s=Q(void 0);Nt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var y;p.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(v=n(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=n(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=px();let d;var a=_(l),u=_(a,!0);g(a),rt(a,f=>r(f),()=>r()),g(l),rt(l,f=>O(s,f),()=>n(s)),D(f=>{d=ne(l,1,"title svelte-14hk510",null,d,f),ve(u,i())},[()=>({hidden:o()})]),$(t,l),F()}import{throttleFn as $x}from"@vkontakte/videoplayer-shared/es2018";var vx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),mx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),gx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),hx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),_x=M("<div><!> <!> <!> <!></div>"),bx={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function om(t,e){H(e,!0),z(t,bx);let i=Q(""),o=Q(""),r=Q(""),s=Q(""),l,d=32,a=d/2,u=B=>String(B).padStart(2,"0"),f=B=>Math.max(B.length,1),v=B=>`${(e.isSmallSize?a:d)*f(B)}px`,p=B=>{let U=Math.floor(B/86400);U&&(B-=U*86400,O(i,u(U),!0));let Z=Math.floor(B/3600);O(o,u(Z),!0);let le=Math.floor(B/60)%60;O(r,u(le),!0);let K=B%60;O(s,u(K),!0)},y=()=>{let B=Math.floor(Date.now()/1e3),U=e.startTime-B;p(U),U>=1?l=requestAnimationFrame(y):e.onTimerOver()};Nt(()=>{l=requestAnimationFrame(y)}),on(()=>{cancelAnimationFrame(l)});var w=_x();let x;var C=_(w);{var T=B=>{var U=vx(),Z=fe(U);let le;var K=_(Z),ce=_(K,!0);g(K);var X=P(K,2),me=_(X,!0);g(X),g(Z);var re=P(Z,2),de=_(re,!0);g(re),D((Me,xe,ee)=>{le=Xe(Z,"",le,{width:Me}),ve(ce,n(i)),ve(me,xe),ve(de,ee)},[()=>v(n(i)),()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),$(B,U)};R(C,B=>{n(i)&&B(T)})}var E=P(C,2);{var N=B=>{var U=mx(),Z=fe(U);let le;var K=_(Z),ce=_(K,!0);g(K);var X=P(K,2),me=_(X,!0);g(X),g(Z);var re=P(Z,2),de=_(re,!0);g(re),D((Me,xe,ee)=>{le=Xe(Z,"",le,{width:Me}),ve(ce,n(o)),ve(me,xe),ve(de,ee)},[()=>v(n(o)),()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),$(B,U)};R(E,B=>{n(o)&&B(N)})}var A=P(E,2);{var I=B=>{var U=gx(),Z=fe(U);let le;var K=_(Z),ce=_(K,!0);g(K);var X=P(K,2),me=_(X,!0);g(X),g(Z);var re=P(Z,2),de=_(re,!0);g(re),D((Me,xe,ee)=>{le=Xe(Z,"",le,{width:Me}),ve(ce,n(r)),ve(me,xe),ve(de,ee)},[()=>v(n(r)),()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),$(B,U)};R(A,B=>{n(r)&&B(I)})}var L=P(A,2);{var Y=B=>{var U=hx();let Z;var le=_(U),K=_(le,!0);g(le);var ce=P(le,2),X=_(ce,!0);g(ce),g(U),D((me,re)=>{Z=Xe(U,"",Z,{width:me}),ve(K,n(s)),ve(X,re)},[()=>v(n(s)),()=>j("waiting_live_second_value")]),$(B,U)};R(L,B=>{n(s)&&B(Y)})}g(w),D(B=>x=ne(w,1,"timer__container svelte-gt98rn",null,x,B),[()=>({small:e.isSmallSize})]),$(t,w),F()}var yx=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),xx=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),wx=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),Sx={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function ac(t,e){H(e,!0),z(t,Sx);let i=h(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=Q(void 0),s=Q(void 0),l=0,d=Q(void 0),a=Q(void 0),u=m(()=>{var C,T;return((C=n(d))!=null?C:1/0)<=509||((T=n(a))!=null?T:1/0)<=320}),f=m(()=>{var C,T;return!n(u)&&(((C=n(d))!=null?C:1/0)<=699||((T=n(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?$x(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},T=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(C,T)})},300):void 0;ze(()=>{n(a),n(d),n(o),v==null||v()}),on(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var p=wx();p.__contextmenu=function(...C){var T;(T=e.onContextMenu)==null||T.apply(this,C)},p.__click=function(...C){var T;(T=e.onClick)==null||T.apply(this,C)};var y=_(p);{var w=C=>{var T=yx(),E=_(T);let N;var A=_(E,!0);g(E),g(T),rt(T,I=>O(r,I),()=>n(r)),D((I,L)=>{N=ne(E,1,"waiting__title svelte-17m8dcd",null,N,I),ve(A,L)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_upcoming_title")]),$(C,T)},x=C=>{var T=xx(),E=_(T);let N;var A=_(E,!0);g(E);var I=P(E,2);let L=m(()=>n(u)||n(f)),Y=m(()=>i()||0);om(I,{get isSmallSize(){return n(L)},get startTime(){return n(Y)},onTimerOver:()=>O(o,!0)}),g(T),rt(T,B=>O(s,B),()=>n(s)),D((B,U)=>{N=ne(E,1,"timer__title svelte-17m8dcd",null,N,B),ve(A,U)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_timer_title")]),$(C,T)};R(y,C=>{n(o)?C(w):C(x,!1)})}g(p),D(()=>Xe(p,`background-image: url(${e.thumbUrl})`)),Sn(p,"clientWidth",C=>O(d,C)),Sn(p,"clientHeight",C=>O(a,C)),$(t,p),F()}lt(["contextmenu","click"]);var Cx=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),Tx={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function za(t,e){H(e,!0),z(t,Tx);let i=h(e,"thumbUrl",3,""),o={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},r=m(()=>o[e.kind]||"");var s=Cx();s.__contextmenu=function(...f){var v;(v=e.onContextMenu)==null||v.apply(this,f)},s.__click=function(...f){var v;(v=e.onClick)==null||v.apply(this,f)};var l=_(s),d=_(l);Ma(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);g(a),g(l),g(s),D(()=>{Xe(s,`background-image: url('${i()}')`),ve(u,n(r))}),$(t,s),F()}lt(["contextmenu","click"]);var Ex=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function nm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Ex();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var Ix=M('<div class="select-icon svelte-124aexk"><!></div>'),kx={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function lc(t){z(t,kx);var e=Ix(),i=_(e);nm(i,{}),g(e),$(t,e)}var Ax=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Px=(t,e)=>{kl(t,()=>e.item.selectItem(e.item.value))},Mx=M("<p> </p>"),Lx=M('<p class="sublabel svelte-1t7rx2m"> </p>'),Vx=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),Rx={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
301
+
302
+ /**
303
+ * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
304
+ * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
305
+ */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
306
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function rm(t,e){H(e,!0),z(t,Rx);let i=h(e,"isMobile",3,!1);var o=Vx();let r;o.__click=[Ax,e],o.__keydown=[Px,e];var s=_(o);{var l=w=>{lc(w,{})};R(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var x=Be(),C=fe(x);Mi(C,()=>e.item.valueComponent,(T,E)=>{E(T,Cs(()=>{var N;return(N=e.item.valueComponentParams)!=null?N:{}}))}),$(w,x)},v=w=>{var x=Mx();let C;var T=_(x,!0);g(x),D(E=>{var N;C=ne(x,1,"label svelte-1t7rx2m",null,C,E),ve(T,(N=e.item.label)!=null?N:e.item.value)},[()=>({mobile:i()})]),$(w,x)};R(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var y=w=>{var x=Lx(),C=_(x,!0);g(x),D(()=>ve(C,e.item.sublabel)),$(w,x)};R(p,w=>{e.item.sublabel&&w(y)})}g(d),g(o),D((w,x,C)=>{r=ne(o,1,"item",null,r,w),We(o,"data-value",e.item.value),We(o,"aria-label",x),We(o,"data-testid",e.item.dataTestid),a=ne(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),We(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,x;return(x=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?x:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),F()}lt(["click","keydown"]);var Nx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function sm(t,e){H(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),s=m(()=>x=>Tu(x,n(r)));var l=Nx();let d;l.__click=function(...x){var C;(C=n(r))==null||C.apply(this,x)},l.__keydown=function(...x){var C;(C=n(s))==null||C.apply(this,x)};var a=_(l);{var u=x=>{lc(x,{})};R(a,x=>{e.item.selected&&x(u)})}var f=P(a,2);let v;var p=_(f);{var y=x=>{var C=Be();let T=m(()=>e.item.valueComponent);var E=fe(C);Mi(E,()=>n(T),(N,A)=>{A(N,Cs(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(x,C)},w=x=>{var C=rs();D(()=>ve(C,e.item.label)),$(x,C)};R(p,x=>{e.item.valueComponent?x(y):x(w,!1)})}g(f),g(l),rt(l,x=>o(o()[e.item.id]=x,!0),()=>{var x;return(x=o())==null?void 0:x[e.item.id]}),D((x,C)=>{var T;d=ne(l,1,"item",null,d,x),We(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),We(l,"data-testid",e.item.id),v=ne(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),F()}lt(["click","keydown"]);var Yr={"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 Dx=(t,e)=>{F1(t,e.returnFromSubMenu,e.closeSettingsMenu)},Bx=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},Hx=(t,e)=>{Ad(t)&&(xr(t),e.returnFromSubMenu())},Fx=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),Ux={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
307
+ /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
308
+ /**
309
+ * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
310
+ * \u041F\u0440\u0435\u0434\u043F\u043E\u043B\u0430\u0433\u0430\u0435\u043C, \u0447\u0442\u043E \u0432 \u043E\u0434\u043D\u0443 \u0441\u0442\u0440\u043E\u043A\u0443 \u043E\u043D, \u0438\u043D\u0430\u0447\u0435 \u043D\u0443\u0436\u043D\u043E \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044B\u0432\u0430\u0442\u044C \u0434\u0438\u043D\u0430\u043C\u0438\u0447\u0435\u0441\u043A\u0438.
311
+ * paddingTop + lineHeight + paddingBottom.
312
+ */padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height));}.sub-menu.mobile.svelte-7dfsuh {padding-top:calc(
313
+ var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
314
+ 1px
315
+ );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
316
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function lm(t,e){H(e,!0),z(t,Ux);let[i,o]=Ne(),r=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),a=h(e,"ariaLabelReturnFromSubMenu",19,()=>j("aria_label_submenu_back")),u=h(e,"listRef",15);Nt(()=>{let K=e.items.findIndex(ce=>ce.selected);u().children[K+1].focus()});let f=be(),v=f.ui.isFullscreen,p=f.ui.playerSize,y=Q(void 0),w=Q(0),x=Q(0),C=m(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n(x)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,n(w)));var E=Fx();let N;var A=_(E);let I;A.__keydown=[Dx,e];var L=_(A);let Y;L.__click=[Bx,e],L.__keydown=[Hx,e];var B=_(L);Js(B,{direction:"left"});var U=P(B,2),Z=_(U,!0);g(U),g(L),rt(L,K=>O(y,K),()=>n(y));var le=P(L,2);xi(le,17,()=>e.items,fd,(K,ce)=>{var X=Be(),me=fe(X);{var re=Me=>{rm(Me,{get item(){return n(ce)},get isMobile(){return l()}})},de=(Me,xe)=>{{var ee=Oe=>{sm(Oe,{get isMobile(){return l()},get item(){return n(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Me,Oe=>{n(ce).type==="OPEN_SUB_MENU"&&Oe(ee)},xe)}};R(me,Me=>{n(ce).type==="SELECT_VALUE"?Me(re):Me(de,!1)})}$(K,X)}),g(A),rt(A,K=>u(K),()=>u()),g(E),D((K,ce,X)=>{N=ne(E,1,"sub-menu menu svelte-7dfsuh",null,N,K),We(E,"data-testid",`sub-menu-${e.id}`),Xe(E,`min-width: ${n(T)}px`),I=ne(A,1,"items svelte-7dfsuh",null,I,ce),Xe(A,n(C)),Y=ne(L,1,"item header back svelte-7dfsuh",null,Y,X),We(L,"aria-label",a()),ve(Z,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Sn(L,"clientWidth",K=>O(w,K)),Sn(L,"clientHeight",K=>O(x,K)),$(t,E),F(),o()}lt(["keydown","click"]);import{noop as zx}from"@vkontakte/videoplayer-shared/es2018";var Wx=(t,e)=>Tu(t,e()),Kx=(t,e)=>{t.stopPropagation(),e()()},qx=M('<div class="value svelte-1ikfjte"> </div>'),Qx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Gx={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function dm(t,e){H(e,!0),z(t,Gx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,zx),r=h(e,"valueComponent",3,void 0),s=h(e,"ref",15);var l=Qx();let d;l.__click=[Kx,o],l.__keydown=[Wx,o];var a=_(l),u=_(a);{var f=T=>{Oa(T,{get icon(){return e.icon}})},v=T=>{var E=Be();let N=m(()=>e.icon);var A=fe(E);Mi(A,()=>n(N),(I,L)=>{L(I,{})}),$(T,E)};R(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=P(a,2),y=_(p,!0);g(p);var w=P(p,2);{var x=T=>{var E=Be();let N=m(r);var A=fe(E);Mi(A,()=>n(N),(I,L)=>{L(I,{})}),$(T,E)},C=T=>{var E=qx(),N=_(E,!0);g(E),D(()=>ve(N,e.value)),$(T,E)};R(w,T=>{r()?T(x):T(C,!1)})}g(l),rt(l,T=>s(T),()=>s()),D(T=>{d=ne(l,1,"item",null,d,T),We(l,"aria-label",e.ariaLabel),We(l,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),$(t,l),F()}lt(["click","keydown"]);import{noop as C0}from"@vkontakte/videoplayer-shared/es2018";var jx=(t,e)=>{kl(t,()=>e())},Yx=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Zx=M('<img class="icon" aria-hidden="true"/>'),Xx=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),Jx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function cm(t,e){H(e,!0),z(t,Jx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,C0),r=h(e,"closeSettings",3,C0),s=Q(!1),l=()=>{O(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),r()()};var a=Xx();let u;a.__click=d,a.__keydown=[jx,d];var f=_(a),v=_(f);{var p=C=>{var T=Be(),E=fe(T);{var N=I=>{var L=Yx();$(I,L)},A=I=>{var L=Zx();D(()=>We(L,"src",e.icon)),bt("error",L,l),$a(L),$(I,L)};R(E,I=>{n(s)?I(N):I(A,!1)})}$(C,T)},y=C=>{var T=Be();let E=m(()=>e.icon);var N=fe(T);Mi(N,()=>n(E),(A,I)=>{I(A,{})}),$(C,T)};R(v,C=>{typeof e.icon=="string"?C(p):C(y,!1)})}g(f);var w=P(f,2),x=_(w,!0);g(w),g(a),D(C=>{var T;u=ne(a,1,"item",null,u,C),We(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),We(a,"data-testid",e.id),ve(x,e.label)},[()=>({mobile:i()})]),$(t,a),F()}lt(["click","keydown"]);import{noop as i5}from"@vkontakte/videoplayer-shared/es2018";var e5=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),t5={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function um(t,e){z(t,t5);let i=h(e,"enabled",3,!1);var o=e5(),r=_(o);let s;Ee(2),g(o),D(l=>s=ne(r,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var o5=(t,e,i)=>{U1(t,e(),o=>i()(o))},n5=(t,e,i)=>{t.stopPropagation(),e()(!i())},r5=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),s5=M('<li role="menuitem" tabindex="0"><!></li>');function pm(t,e){H(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,i5),r=h(e,"enabled",3,!1),s=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=s5();let a;d.__click=[n5,o,r],d.__keydown=[o5,r,o];var u=_(d);La(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=r5();let y;var w=_(p),x=_(w);{var C=I=>{Oa(I,{get icon(){return e.icon}})},T=I=>{var L=Be();let Y=m(()=>e.icon);var B=fe(L);Mi(B,()=>n(Y),(U,Z)=>{Z(U,{})}),$(I,L)};R(x,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=P(w,2),N=_(E,!0);g(E);var A=P(E,2);um(A,{get enabled(){return r()}}),g(p),D(I=>{y=ne(p,1,"switch-wrapper",null,y,I),ve(N,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),g(d),D(f=>{var v;a=ne(d,1,"item switch-item",null,a,f),We(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),We(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),F()}lt(["click","keydown"]);import{isValidURL as A5,VideoQuality as N0}from"@vkontakte/videoplayer-shared/es2018";var T0=()=>{let t=Q(si([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{O(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var a5=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),l5=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),d5={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function Wa(t,e){H(e,!0),z(t,d5);let i=h(e,"isSubCase",3,!1),o=m(()=>Mu(e.quality));var r=l5(),s=_(r);let l;var d=_(s,!0);g(s);var a=P(s,2);{var u=f=>{var v=a5();let p=m(()=>n(o));var y=_(v);Mi(y,()=>n(p),(w,x)=>{x(w,{})}),g(v),$(f,v)};R(a,f=>{n(o)&&!e.isMobile&&f(u)})}g(r),D(f=>{l=ne(s,1,"svelte-t2qk8t",null,l,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,r),F()}import{VideoQuality as c5}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as E0}from"@vkontakte/videoplayer-core/es2018";var I0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},k0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=I0({quality:t,availableQualities:e});return i?t===E0.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o},A0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===E0.INVARIANT?i:`${i}${I0({quality:t,availableQualities:e})}`:"...";var u5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),p5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Hl(t,e){H(e,!0),z(t,p5);let[i,o]=Ne(),r=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=be(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=m(()=>e.prefix+(e.selected&&r()!==c5.INVARIANT?v:"")),y=m(()=>A0({prefix:n(p),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=u5(),x=_(w);let C=m(()=>e.selected?r():void 0);Wa(x,{get quality(){return n(C)},get label(){return n(y)},get isMobile(){return l()},isSubCase:!0}),g(w),$(t,w),F(),o()}var f5=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")},v5={br:!0,span:!0},fm=(t,e={})=>{var d,a,u,f,v,p,y;if(!t)return t;let i={...v5,...e},o=Object.keys(i);if(!o.length)return t;let r=f5(o),s=[],l=0;for(let w of t.matchAll(r)){let x=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){s.push(t.slice(l,T)),l=T+x.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?fm(w.groups.childrenhtml,i):"",N=(p=w.groups)!=null&&p.childrenhtml?x.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):x;s.push(t.slice(l,T),N),l=T+x.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function dc(t,e){H(e,!1);let i=h(e,"message",8),o=fm(i());Ko();var r=Be(),s=fe(r);{var l=d=>{var a=Be(),u=fe(a);vd(u,()=>o),$(d,a)};R(s,d=>{o&&d(l)})}$(t,r),F()}var m5=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),g5={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function vm(t,e){H(e,!1),z(t,g5),Ko();var i=m5(),o=_(i);let r=bn(()=>j("quality_applience",{action:`<span>${j("quality_applience_action")}</span>`}));dc(o,{get message(){return n(r)}}),g(i),$(t,i),F()}var M0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Hl,valueComponentParams:{prefix:j("other_quality"),selected:o},children:"QUALITY"}},mm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:j("auto_quality_limit"),valueComponent:e?Hl:void 0,valueComponentParams:{prefix:j("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),L0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:vm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),gm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:j("high_quality"),valueComponent:t?Hl:void 0,valueComponentParams:{prefix:j("high_quality"),selected:i},sublabel:j("high_quality_description")}),hm=({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:j("traffic_saving_quality"),valueComponent:t?Hl:void 0,valueComponentParams:{prefix:j("traffic_saving_quality"),selected:i},sublabel:j("traffic_saving_quality_description")});var ju=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Yu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=Qd(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return j("audio_stream_display_language_label",{language:r,label:o});{let a=ju(t,d);return j("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=ju(t,d);return j("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=ju(t,d);return j("audio_stream_display_language_index",{language:r,index:a})}}let s=ju(t,e);return j("audio_stream_display_unknown",{index:s})};var h5={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:mm,selected:e&&!o&&!r||!1}),s.push({handler:hm,selected:o},{handler:gm,selected:r}),{title:j("submenu_quality"),id:"QUALITY_DETAILS",items:[L0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),M0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:j("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:Wa,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:j("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:mm,selected:((i=vu())==null?void 0:i.type)==="auto_quality"},{handler:hm,selected:((o=vu())==null?void 0:o.type)==="traffic_saving"},{handler:gm,selected:((r=vu())==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:j("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:Yu(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:j("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:j("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Bn?"sub_off":void 0}))})},V0=({subMenuId:t,context:e})=>t?[h5[t](e)]:[];var _5=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function _m(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=_5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var b5=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function bm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=b5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var $5=Ie('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function $m(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=$5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var y5=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function ym(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=y5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var x5=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function xm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=x5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var w5=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function Zu(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var S5=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function wm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var C5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),T5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Sm(t,e){H(e,!0),z(t,T5);let[i,o]=Ne(),r=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=be(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,y=m(()=>k0({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=C5(),x=_(w);Wa(x,{get quality(){return r()},get label(){return n(y)},get isMobile(){return d()}}),g(w),$(t,w),F(),o()}var I5={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?j("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_quality",{actual:o}),icon:Bd,label:j("menu_quality"),value:e,valueComponent:Sm,weight:Yr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Yr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:j("aria_label_submenu_traffic_saving"),icon:_m,label:j("menu_traffic_saving"),enabled:t,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Yu(t,e);return{id:"AUDIO_LANGUAGES",weight:Yr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_audio_languages",{actual:i}),icon:bm,label:j("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:Yr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_rate",{actual:i}),icon:$m,label:j("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Yr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Hd,label:j("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Yr.download,type:"CLICK",onClick:t,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:ym}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Yr.report,type:"CLICK",onClick:t,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:xm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Yr["copy-data"],type:"CLICK",onClick:t,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:Zu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Yr["save-trace-info"],type:"CLICK",onClick:t,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:Zu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Yr["debug-info"],type:"CLICK",onClick:t,ariaLabel:j("aria_label_menu_debug_overlay"),label:j("menu_debug_overlay"),icon:wm,isHiddenFor:["desktop"]})},R0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>I5[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(Aa)};var P5=(t,e)=>{Cu(t,e)},M5=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),L5=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),V5=M("<div><!> <!></div>"),R5={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
317
+ /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
318
+ .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
319
+ .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
320
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function cc(t,e){H(e,!0),z(t,R5);let[i,o]=Ne(),r=()=>S(Ge,"$settingsMenuVisible",i),s=()=>S(he,"$settingsMenuOpenedByKeyboard",i),l=()=>S(Ze,"$debugPanelVisible",i),d=()=>S(we,"$isMobile",i),a=()=>S(Fe,"$playerSize",i),u=()=>S(He,"$hasMpegSources$",i),f=()=>S(Se,"$mobileNotReportControlHidden$",i),v=()=>S(ee,"$autoQualityLimitingAvailable$",i),p=()=>S(q,"$availableSubtitlesList$",i),y=()=>S(De,"$isLiveWithPlaybackSpeed",i),w=()=>S(de,"$availableAudioStreams$",i),x=()=>S(qe,"$availablePlaybackRates$",i),C=()=>S(re,"$currentAudioStream$",i),T=()=>S(k,"$currentPlaybackRate$",i),E=()=>S(je,"$trafficSavingEnabled",i),N=()=>S(Me,"$currentQuality$",i),A=()=>S(Oe,"$isAutoQualityEnabled$",i),I=()=>S(Le,"$currentSubtitle$",i),L=()=>S(tt,"$additionalSettingsMenuItems$",i),Y=()=>S(pe,"$isAutoQualityAvailable$",i),B=()=>S(xe,"$availableQualities$",i),U=()=>S(Qe,"$highQualityEnabled",i),Z=h(e,"ref",15,void 0),le=h(e,"playerControlsHeight",3,0),K=si({}),ce=si({}),X=be(),me=Lt(),re=X.state.audioStream$,de=X.state.availableAudioStreams$,Me=X.state.currentQuality$,xe=X.state.availableQualities$,ee=X.state.autoQualityLimitingAvailable$,Oe=X.state.isAutoQualityEnabled$,pe=X.state.isAutoQualityAvailable$,k=X.state.currentPlaybackRate$,qe=X.state.availablePlaybackRates$,Le=X.state.currentSubtitle$,q=X.state.availableSubtitlesList$,ie=X.state.canDownload,He=X.state.hasMpegSources$,Ge=X.ui.settingsMenu.visible$,he=X.ui.settingsMenu.openedByBtnKeyboard$,te=X.ui.settingsMenu.ref$,we=X.ui.isMobile,Se=X.ui.mobileNotReportControlHidden$,De=X.state.canChangePlaybackSpeed$,je=X.state.trafficSavingEnabled$,Qe=X.state.highQualityEnabled$,Fe=X.ui.playerSize,Ze=X.ui.debugPanelVisible,Ot=X.state.isInteractiveTime$,tt=X.ui.additionalSettingsMenuItems$,Bt=X.ui.t,qt=X.actions.internal.downloadVideo,wt=X.actions.internal.closeSettingsMenu,Xt=X.actions.internal.openSettingsSubMenu,Pt=X.actions.internal.closeSettingsSubMenu,Te=Q(!1),Ae=Q(void 0),J=T0();ze(()=>{!r()&&J.current&&(Pt(ce[J.current]),J.popAllSubMenus())}),ze(()=>{r()||O(Ae,void 0)}),ze(()=>{!J.current&&n(Ae)&&H1(K,n(Ae))}),ze(()=>{Z()&&te.set(Z())});async function Ce(Ct){var W;J.pushSubMenu(Ct),await co(),Xt(Ct,ce[Ct]);let Ht=(W=Z())==null?void 0:W.firstElementChild;Ht&&Rf(Ht)}function se(Ct){var Ht;Ct==null||Ct.stopPropagation(),s()||(Ht=e.returnFocus)==null||Ht.call(e),wt(),O(Te,!1)}function ht(Ct,Ht){X.actions.internal.setQuality(Ct,{appliesTo:Ht}),se()}function St(Ct){X.actions.internal.setAudioStream(Ct),se()}function dt(Ct,Ht){X.actions.internal.setTrafficSavingEnabled(Ct,Ht),me.features.qualityDetailsSubMenuEnabled&&se()}function xt(Ct,Ht){X.actions.internal.setHighQualityEnabled(Ct,Ht),se()}function ge(Ct){X.actions.internal.setPlaybackRate(Ct),se()}function st(Ct){X.actions.internal.setSubtitle(Ct),se()}function nt(){qt()}function at(){A5(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function ei(){El(X.actions.internal.getDebugTextData())}let jt=()=>{let Ct=X.actions.internal.getTraceTextData(),Ht=new Blob([...Ct],{type:"application/json"}),W=window.URL.createObjectURL(Ht);Ca(W,"vk_player_trace_info","json")};function ui(){Ze.set(!l())}function wi(){O(Te,!0)}function oo(){O(Te,!1)}function Vt(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-le()}px; overflow: auto;`}let li=m(()=>ie&&u()&&!f()),_i=m(()=>me.features.trafficSaving&&!f()&&v()&&!me.features.qualityDetailsSubMenuEnabled),_t=m(()=>p().length>0&&!f()),Dt=m(()=>!!y()&&!f()),Bi=m(()=>me.features.audioLanguages&&w().length>=2&&!f()),Ei=m(()=>!f());Nt(()=>Ot.subscribe(Ct=>{Ct&&!d()&&!n(Te)&&!s()&&se()}));let oi=m(()=>{let Ct=[n(Ei)&&"QUALITY_SETTINGS",n(Bi)&&"AUDIO_LANGUAGES",n(Dt)&&"PLAYBACK_RATE",n(_t)&&"SUBTITLES",n(_i)&&"TRAFFIC_SAVING_SWITCH",n(li)&&"DOWNLOAD",me.showSupport&&"SHOW_SUPPORT","COPY_DATA",me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ht=>!!Ht);return R0({items:Ct,context:{qualityDetailsSubMenuEnabled:me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:x(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:ge,trafficSavingEnabled:E(),toggleTrafficSaving:dt,currentQuality:N()||N0.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:nt,onCopyDataClick:ei,onReportProblemClick:at,onSaveTraceDataClick:jt,toggleShowDebugInfo:ui},additionalSettingsMenuItems:L()})}),It=m(()=>V0({subMenuId:J.current,context:{availablePlaybackRates:x(),selectPlaybackRate:ge,trafficSavingEnabled:E(),toggleTrafficSaving:dt,currentQuality:N()||N0.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:Y()||!1,availableQualities:B(),highQualityEnabled:U(),toggleHighQuality:xt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:wt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:St,selectQuality:ht,selectSubtitle:st}}));var Ye=V5();let bi;var bo=_(Ye);{var Qo=Ct=>{var Ht=L5();let W;Ht.__keydown=[P5,wt];var Mt=_(Ht);{var Jt=Qt=>{var ct=M5();let Ii;var Hi=_(ct),Go=_(Hi,!0);g(Hi);var Ao=P(Hi,2);Ao.__click=se,g(ct),D((no,Fi)=>{Ii=ne(ct,1,"item header svelte-17or3al",null,Ii,no),ve(Go,Fi)},[()=>({mobile:d()}),()=>Bt("submenu_settings")]),$(Qt,ct)};R(Mt,Qt=>{d()&&Qt(Jt)})}var ut=P(Mt,2);let Tt;xi(ut,21,()=>n(oi),Qt=>Qt.id,(Qt,ct)=>{var Ii=Be(),Hi=fe(Ii);{var Go=no=>{dm(no,{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:()=>{Ce(n(ct).children),O(Ae,n(ct).id,!0)},get ref(){return K[n(ct).id]},set ref(Fi){K[n(ct).id]=Fi}})},Ao=(no,Fi)=>{{var lr=po=>{cm(po,{get isMobile(){return d()},get id(){return n(ct).id},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:se})},uo=(po,Vi)=>{{var an=Po=>{pm(Po,{get isMobile(){return d()},get id(){return n(ct).id},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}})};R(po,Po=>{n(ct).type==="SWITCH"&&Po(an)},Vi)}};R(no,po=>{n(ct).type==="CLICK"?po(lr):po(uo,!1)},Fi)}};R(Hi,no=>{n(ct).type==="OPEN_SUB_MENU"?no(Go):no(Ao,!1)})}$(Qt,Ii)}),g(ut),rt(ut,Qt=>Z(Qt),()=>Z()),g(Ht),D((Qt,ct,Ii)=>{W=ne(Ht,1,"settings-menu menu svelte-17or3al",null,W,Qt),Tt=ne(ut,1,"items",null,Tt,ct),Xe(ut,Ii)},[()=>({desktop:!d(),mobile:d(),hidden:!!J.current}),()=>({mobile:d()}),Vt]),bt("mouseenter",Ht,wi),bt("mouseleave",Ht,oo),$(Ct,Ht)};R(bo,Ct=>{r()&&Ct(Qo)})}var sn=P(bo,2);xi(sn,17,()=>n(It),Ct=>Ct.id,(Ct,Ht)=>{let W=m(()=>{var Mt;return(Mt=n(Ht).minWidth)!=null?Mt:137});lm(Ct,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return J.popSubMenu},get id(){return n(Ht).id},get title(){return n(Ht).title},get closeSettingsMenu(){return wt},openSubMenuList:Ce,get items(){return n(Ht).items},get minWidth(){return n(W)},get refMenuItems(){return K},get listRef(){return ce[n(Ht).id]},set listRef(Mt){ce[n(Ht).id]=Mt}})}),g(Ye),D(Ct=>bi=ne(Ye,1,"settings-menu-container svelte-17or3al",null,bi,Ct),[()=>({mobile:d(),hidden:!r()})]),$(t,Ye),F(),o()}lt(["keydown","click"]);var N5=M('<button class="btn svelte-1f0voc7"> </button>'),O5={hash:"svelte-1f0voc7",code:"button.btn.svelte-1f0voc7 {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Cm(t,e){z(t,O5);var i=N5();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=_(i,!0);g(i),D(()=>ve(o,e.label)),$(t,i)}lt(["click"]);var D5=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),B5={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
321
+ /**
322
+ * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
323
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function uc(t,e){H(e,!0),z(t,B5);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Lt(),{ui:{t:r}}=be(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=D5(),d=_(l),a=_(d),u=_(a),f=_(u);dc(f,{get message(){return s}}),g(u);var v=P(u,2);{var p=w=>{let x=m(()=>r("slow_video_notification_button"));Cm(w,{get label(){return n(x)},get onClick(){return e.onSelectAutoQuality}})};R(v,w=>{o||w(p)})}g(a);var y=P(a,2);Es(y,{get onClick(){return e.onClose}}),g(d),g(l),Gr(3,d,()=>us,()=>({duration:i})),$(t,l),F()}import{isIntersecting as O0,Subscription as H5}from"@vkontakte/videoplayer-shared/es2018";var Ka="annotation",Xu=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",Ka),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 f;let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let p=ks(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],x=w?_e(w):null,C=d==null?void 0:d[y];x&&(C==null||C.set(O0(x,p)))})}));a.observe(s,{childList:!0,subtree:!0}),r.observer=a;let u=new H5;o.forEach(v=>{l&&u.add(l[v].subscribe(p=>{let y=d==null?void 0:d[v];p&&p.isDisplayed?y==null||y.set(O0(p,ks(s,this.shadowRootContainer))):y==null||y.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,f;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(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,y;(y=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var F5=M('<div class="container svelte-16aykgd"><!></div>'),U5={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
324
+
325
+ animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
326
+
327
+ @keyframes svelte-16aykgd-videoPlayerStatusIconPopup {
328
+ from {
329
+ opacity: 0;
330
+ scale: 0.6;
331
+ }
332
+
333
+ 10% {
334
+ opacity: 1;
335
+ scale: 1;
336
+ animation-timing-function: ease-in;
337
+ }
338
+
339
+ 75% {
340
+ opacity: 1;
341
+ scale: 1;
342
+ }
343
+
344
+ 90% {
345
+ opacity: 0;
346
+ scale: 0.4;
347
+ animation-timing-function: ease-out;
348
+ }
349
+
350
+ to {
351
+ opacity: 0;
352
+ scale: 0;
353
+ }
354
+ }`};function pc(t,e){z(t,U5);let i=h(e,"isPrev",3,!1);var o=Be(),r=fe(o);xs(r,()=>e.Icon,s=>{var l=F5(),d=_(l);Mi(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),g(l),D(()=>Xe(l,`animation-duration: ${e.duration}ms`)),$(s,l)}),$(t,o)}import{PlaybackState as D0}from"@vkontakte/videoplayer-core/es2018";var z5=M('<div class="container svelte-1sw36pi"><!></div>'),W5={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function Tm(t,e){H(e,!0),z(t,W5);let[i,o]=Ne(),r=()=>S(a,"$playbackState$",i),s=()=>S(f,"$previewTrackActive",i),l=()=>S(v,"$previewTrackDragInProgress",i),d=()=>S(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:v}}=be(),{features:{playbackStatusShow:p},playbackStatusAnimationDuration:y}=Lt(),w=0,x=Q(null),C=Q(!1);ze(()=>{r()===D0.PLAYING?O(x,ar,!0):r()===D0.PAUSED?O(x,Ms,!0):O(x,null)}),ze(()=>{if(!(!p||s()||l()))return w=window.setTimeout(()=>{w=0,O(x,null)},y),()=>{w&&(window.clearTimeout(w),w=0)}}),ze(()=>{d()&&!n(C)&&(O(C,!0),O(x,null))});var T=Be(),E=fe(T);{var N=A=>{var I=z5(),L=_(I);pc(L,{get duration(){return y},get Icon(){return n(x)}}),g(I),$(A,I)};R(E,A=>{n(x)&&p&&A(N)})}$(t,T),F(),o()}var K5=M('<div><div data-testid="video-container"></div></div>'),q5={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
355
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function qa(t,e){H(e,!0),z(t,q5);let[i,o]=Ne(),r=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=h(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=be(),{isSmoothVideoRotate:y}=Lt(),w=m(()=>a()&&r()%180?s().height/s().width:1);var x=K5();let C;x.__contextmenu=function(...N){var A;(A=e.onContextMenu)==null||A.apply(this,N)},x.__mousedown=function(...N){var A;(A=e.onMouseDown)==null||A.apply(this,N)},x.__mouseup=function(...N){var A;(A=e.onMouseUp)==null||A.apply(this,N)},x.__click=function(...N){var A;(A=e.onClick)==null||A.apply(this,N)},x.__dblclick=function(...N){var A;(A=e.onDblClick)==null||A.apply(this,N)};var T=_(x);let E;rt(T,N=>a(N),()=>a()),g(x),D((N,A)=>{C=ne(x,1,"video-wrapper svelte-1czns9r",null,C,N),E=ne(T,1,"video-container svelte-1czns9r",null,E,A),Xe(T,`transform: rotate(${r()}deg) scale(${n(w)})`),We(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),$(t,x),F(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var Q5=Ie('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function Em(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Q5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var G5=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),j5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function Im(t,e){H(e,!0),z(t,j5);let{ui:{t:i}}=be();var o=G5();let r;var s=_(o),l=_(s,!0);g(s);var d=P(s,2);Em(d,{}),g(o),D((a,u)=>{r=ne(o,1,"root svelte-1gi6268",null,r,a),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),F()}var Y5=M('<div class="container svelte-1k32wyl" role="button"><div class="icon svelte-1k32wyl"><!></div></div>'),Z5={hash:"svelte-1k32wyl",code:".container.svelte-1k32wyl {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:rgba(0, 0, 0, 0.48);cursor:pointer;}.icon.svelte-1k32wyl {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;transition:transform 0.2s;transition-timing-function:ease-out;will-change:transform;}.container.svelte-1k32wyl:hover .icon:where(.svelte-1k32wyl) {transform:scale(1.15);}"};function km(t,e){H(e,!1),z(t,Z5);let o=be().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};Ko();var l=Y5();l.__click=s;var d=_(l),a=_(d);return ar(a,{width:"40",height:"40",viewBox:"0 0 24 24"}),g(d),g(l),Gr(3,l,()=>us,()=>({duration:r})),$(t,l),tf(e,"handleClick",s),F({handleClick:s})}lt(["click"]);var X5=M('<div class="container svelte-17g9o6z"><div class="notification svelte-17g9o6z"><span class="text svelte-17g9o6z"> </span></div></div>'),J5={hash:"svelte-17g9o6z",code:`.container.svelte-17g9o6z {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
356
+ /**
357
+ * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
358
+ */pointer-events:none;}.notification.svelte-17g9o6z {padding:10px 16px;background-color:var(--black-alpha-40);border-radius:var(--notification-radius);}.text.svelte-17g9o6z {line-height:18px;font-size:14px;font-weight:500;}`};function Am(t,e){H(e,!1),z(t,J5);let{ui:{t:i}}=be();Ko();var o=X5(),r=_(o),s=_(r),l=_(s,!0);g(s),g(r),g(o),D(d=>ve(l,d),[()=>i("preview_track_notification_text")],bn),Gr(3,r,()=>us,()=>({duration:340})),$(t,o),F()}var ew=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},tw=M("<div><!></div>"),iw=M('<div class="spherical-video-icon svelte-nqua3g"><!></div>'),ow=M("<div><!></div>"),nw=M('<div class="settings-menu svelte-nqua3g"><!></div>'),rw=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),sw=M("<!> <!> <!>",1),aw=M('<div class="blocked svelte-nqua3g"></div>'),lw=M('<div class="player-wrapper svelte-nqua3g"><!> <div class="overlay-container"></div></div> <!>',1),dw={hash:"svelte-nqua3g",code:".player-wrapper.svelte-nqua3g {position:absolute;width:100%;height:100%;}.blocked.svelte-nqua3g {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-nqua3g .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-nqua3g {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-nqua3g {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-nqua3g {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-nqua3g {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s;}"};function Pm(t,e){H(e,!0),z(t,dw);let[i,o]=Ne(),r=()=>S(pi,"$notificationsToShow$",i),s=()=>S(li,"$playerPhase",i),l=()=>S(bo,"$isLoaderVisible",i),d=()=>S(wi,"$adPlaybackState",i),a=()=>S(Jt,"$crashed",i),u=()=>S(no,"$isInteractiveTime$",i),f=()=>S(Bi,"$settingsMenuVisible",i),v=()=>S(Fi,"$isInteractiveExpectation$",i),p=()=>S(Dt,"$controlsVisible",i),y=()=>S(uo,"$touched",i),w=()=>S(Er,"$graphIsOpened$",i),x=()=>S(_i,"$isFullscreen",i),C=()=>S(ps,"$autoplayNextEnabled$",i),T=()=>S(Ht,"$postrollPassed",i),E=()=>S(Qo,"$isEnded$",i),N=()=>S(vo,"$cursorInside",i),A=()=>S($o,"$isControlsAvailable",i),I=()=>S(Mo,"$doubleForwardOn$",i),L=()=>S(Cr,"$fakeIsPlaying$",i),Y=()=>S(kn,"$bottomNoSmooth",i),B=()=>S(Po,"$interactiveTimeIndicator",i),U=()=>S(Ii,"$playerSize",i),Z=()=>S(Hi,"$is3DVideo",i),le=()=>S(ln,"$doubleForwardAvailable$",i),K=()=>S(Ye,"$contextMenuVisible$",i),ce=()=>S(ui,"$playbackState$",i),X=()=>S(po,"$hotKeyMapData",i),me=()=>S(oi,"$scrubbingInProgress",i),re=()=>S(It,"$volumeChangingInProgress",i),de=()=>S(sn,"$chromecastConnected$",i),Me=()=>S(Vo,"$controlsTimeoutActive",i),xe=()=>S(Ei,"$settingsMenuOpenedByKeyboard",i),ee=()=>S(Dr,"$contextMenuOpenedByKeyboard$",i),Oe=()=>S(Yt,"$contextMenuOpenedByHotKey$",i),pe=()=>S(Jr,"$contextMenuButtonRef$",i),k=()=>S(vi,"$contextMenuLastActiveElem$",i),qe=()=>S(_t,"$isFullscreenOpenedByKeyboard",i),Le=()=>S(jt,"$language$",i),q=()=>S(gn,"$previewTrackActive$",i),ie=()=>S(Go,"$icon3DVideoVisible",i),He=()=>S(Ct,"$chromecastDeviceName$",i),Ge=()=>S(Qt,"$currentSubtitle$",i),he=()=>S(ct,"$currentSubtitleCaptions$",i),te=()=>S(oo,"$position$",i),we=()=>S(Vt,"$duration$",i),Se=()=>S(W,"$isLive$",i),De=()=>S(Mt,"$isPlaying$",i),je=()=>S(cr,"$contextMenuPosition$",i),Qe=()=>S(Cn,"$previewTrackNotificationVisible$",i),Fe=()=>S(Vi,"$showHotKeyMap",i),Ze=()=>S(bi,"$debugPanelVisible",i),Ot=()=>S(Xr,"$userActionsDisabled$",i),tt=h(e,"videoContainer",15),Bt=h(e,"adsSlotId",3,void 0),qt=h(e,"adsParams",3,void 0),wt=h(e,"adsAutoplayParam",3,void 0),Xt=h(e,"duration",3,void 0),Pt=h(e,"logoTargetUrl",3,""),Te=h(e,"showNextPrevButtons",3,!1),Ae=h(e,"nextButtonActive",3,!1),J=h(e,"prevButtonActive",3,!1),Ce=h(e,"endScreenVideoTitle",3,void 0),se=h(e,"endScreenVideoThumb",3,void 0),ht=h(e,"isOneVideoPlaylist",3,!1),St=h(e,"shadowRootContainer",3,void 0),dt=h(e,"outerContainerRef",3,void 0),xt=h(e,"playerStarted",3,!1),ge=h(e,"fullScreenTarget",3,void 0),st=h(e,"showMiniTimer",3,!1),nt=h(e,"showEndScreen",3,!0),at=h(e,"keyboardControls",15),ei=e.store.getLogger().createComponentLog("Root component"),jt=e.store.interfaceLanguage$,ui=e.store.state.playbackState$,wi=e.store.ads.playbackState,oo=e.store.state.positionWithScrubbing$,Vt=e.store.state.duration$,li=e.store.playerPhase,_i=e.store.ui.isFullscreen,_t=e.store.ui.isFullscreenOpenedByKeyboard,Dt=e.store.ui.controlsVisible,Bi=e.store.ui.settingsMenu.visible$,Ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,oi=e.store.ui.scrubbingInProgress,It=e.store.ui.volumeChangingInProgress,Ye=e.store.ui.contextMenu.visible$,bi=e.store.ui.debugPanelVisible,bo=e.store.state.isLoaderVisible,Qo=e.store.state.isEnded$,sn=e.store.state.chromecastConnected$,Ct=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,W=e.store.state.isLive$,Mt=e.store.state.isPlaying$,Jt=e.store.state.crashed$,ut=e.store.webApi.annotationsApi,Tt=e.store.webApi.pictureInPictureApi,Qt=e.store.state.currentSubtitle$,ct=e.store.state.currentSubtitleCaptions$,Ii=e.store.ui.playerSize,Hi=e.store.ui.is3DVideo,Go=e.store.ui.icon3DVideoVisible,Ao=e.store.state.isInteractive,no=e.store.state.isInteractiveTime$,Fi=e.store.state.isInteractiveExpectation$,lr=e.store.state.hasInteractiveBranches,uo=e.store.ui.touched,po=e.store.ui.modals.hotKeyMap.data,Vi=e.store.ui.modals.hotKeyMap.show,an=e.store.ui.overlayContainer$,Po=e.store.ui.controls.interactiveTimeIndicator,dr=e.store.state.showInteractiveTimeIndicator,cr=e.store.ui.contextMenu.position$,wr=e.store.actions.internal.setQuality,Zr=e.store.actions.internal.closeSettingsMenu,ps=e.store.ui.autoplayNextEnabled$,Xr=e.store.ui.userActionsDisabled,$o=e.store.ui.isControlsAvailable,Un=e.store.ui.videoTitleInfo,Mo=e.store.ui.doubleForwardOn$,ln=e.store.ui.doubleForwardAvailable$,Cn=e.store.ui.previewTrackNotificationVisible,ur=e.store.actions.internal.getVideoElement,Sr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Cr,notifications$:Tr,graphIsOpened$:Er}=_o(),Gi=Q(void 0),Ir=Q(void 0),Tn=Q(void 0),dn=Q(void 0),fo,pr,En;po.set(M1());let{closeNotification:ft,notificationsToShow$:pi}=Tr,kr=m(()=>!!r().slow_video),zn=()=>ft("slow_video"),Ar=m(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),In=Q(void 0),kn=ae(!1),Lo,Vo=ae(!1),cn=ae(),vo=ae(!1),Ro=Q(!1),jo=Q(!1),fr=Q(!1),Pr=Q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),un=m(()=>u()&&!f()&&!(n(Ro)||n(jo))&&!(n(fr)&&!v())),Ui=!0,vr=m(()=>e.uiConfig.features.thumbTimer&&st()&&s()==="video"&&!p()&&!a()&&!Ao&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Mr=m(()=>s()==="video"&&!w()&&x()),An=Q(!1),Wn=m(()=>(nt()||e.showAutoplayNext&&C())&&!!Ce()&&!!se()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!n(An)),Lr=m(()=>N()&&!(p()||n(Wn))&&!u()&&A()&&!I()),Kn=Q(!1),et=m(()=>L()!==null),{toggle:ni}=Cr,Ri=!1,Ni=null;Tt==null||Tt.setContext(Zl());let pn=()=>{e.autoplay&&!Ao&&e.uiConfig.controls.showOnStartupAtAutoplay&&fi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:pn});let yo=()=>{window.clearTimeout(fo),Vo.set(!1)},xo=()=>{window.clearTimeout(pr),cn.set(null)},fi=ye=>{yo(),Vo.set(!0),fo=window.setTimeout(()=>Vo.set(!1),ye);let pt=ye-100;Lo=window.setTimeout(()=>{Y()&&kn.set(!1)},pt>0?pt:ye)},Pn=(ye,pt)=>{xo(),cn.set(pt),pr=window.setTimeout(()=>cn.set(null),ye)},mo=Hi.subscribe(ye=>{Go.set(ye),ye&&(window.clearTimeout(En),En=window.setTimeout(()=>Go.set(!1),e.uiConfig.controls.hide360IconTimeout))}),qn=async()=>{var pt,ri,yi,ci;let ye=Qs();if(ye){let Zt=Sd(),Ci=Rr();ye=Zt===Ci||Zt===St()}if(ye){fi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Tt==null?void 0:Tt.exit())}catch(Zt){ei({message:String(Zt)})}}_i.set(ye),e.store.getAdmanWrapper().setFullscreen(ye),x()?(ri=(pt=e.store.callbacks)==null?void 0:pt.onFullscreenEnter)==null||ri.call(pt):(ci=(yi=e.store.callbacks)==null?void 0:yi.onFullscreenExit)==null||ci.call(yi)},Qn=ye=>{let{width:pt,height:ri}=ye.target;Ii.set({width:pt,height:ri})},Vr=()=>{let{width:ye,height:pt}=n(Gi).getBoundingClientRect();Ii.set({width:ye,height:pt})};Nt(()=>{var pt;return wu(qn),e.uiConfig.features.annotationsInside&&(ut==null||ut.init(n(Gi))),Ia(Tt)&&(Tt==null||Tt.assignPlayerContainer(n(Gi)),Tt==null||Tt.setExternalEventHandlers({resize:Qn,leavepictureinpicture:Vr})),e.interactiveContainer&&((pt=tt().parentElement)==null||pt.insertBefore(e.interactiveContainer,tt().nextSibling)),()=>{window.clearTimeout(fo),window.clearTimeout(Lo),window.clearTimeout(pr),window.clearTimeout(En),mo(),Tt==null||Tt.dispose().catch(ri=>{ei({message:String(ri)})}),Su(qn)}});let Rr=()=>{let ye=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!dt()?n(Gi):dt(),pt=ye.getRootNode(),ri=pt instanceof ShadowRoot?pt.host:pt,yi=ge()instanceof HTMLElement&&ge().contains(ri);return e.uiConfig.allowChangingFullscreenTarget&&ge()&&yi?ge():ye},fn=()=>{Ye.set(!1)},vn=()=>{Zr(),fn()},mr=async()=>{if(!Sr()){ei({message:"fullscreen disabled"});return}fn(),Qs()?(await xu(document),ei({message:"exit fullscreen"})):(ei({message:"request fullscreen"}),await yu(Rr()))},mn=ye=>{w()||(ye.preventDefault(),Ye.set(!0),cr.set({left:ye.clientX,top:ye.clientY}))};function Nr(){vo.set(!0),Ao||fi(e.uiConfig.controls.hideTimeoutCursor)}function Je(ye){var ci,Zt;let{relatedTarget:pt}=ye,yi=!!(pt&&((ci=n(Tn))!=null&&ci.contains(pt)))&&((Zt=at())==null?void 0:Zt.isFocused());!Ao&&!yi&&(kn.set(!0),fi(e.uiConfig.controls.hideTimeoutCursor))}function kt(){vo.set(!1),O(jo,!1),O(Ro,!1),Ri=!1,e.store.actions.internal.releaseCamera(),fi(e.uiConfig.controls.hideTimeout),I()&&Oo()}function $i(ye){return ye?ye.offsetTop+$i(ye.offsetParent):0}function go(ye){return ye?ye.offsetLeft+go(ye.offsetParent):0}function No(ye){if(B()&&dr){let pt=ye.currentTarget,ri=$i(pt),yi=go(pt),ci=ye.pageX-yi,Zt=ye.pageY-ri,{left:Ci,bottom:_n,right:Xo}=B(),Pi=Xo-Ci;return ci>=Ci-Pi&&Zt<=_n+Pi}}function wo(ye){if(n(Gi)){let pt=$i(ye.currentTarget),ri=U().height,yi=ye.pageY-pt;if(No(ye)){O(jo,!1);return}yi<40?O(jo,!0):yi>ri-40?O(Ro,!0):(O(jo,!1),f()||O(Ro,!1))}}function ji(ye){wo(ye),!n(un)&&!I()&&fi(e.uiConfig.controls.hideTimeoutCursor),Z()&&Ri&&Ni&&e.store.actions.internal.moveCameraFocusPX(Ni.clientX-ye.clientX,Ni.clientY-ye.clientY,ye.timeStamp-Ni.timeStamp),Ni=ye}let Ai=null,Yo=()=>{Ai=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),yo()},e.uiConfig.doubleForwardActivationTime)},Oo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Ai&&clearTimeout(Ai),Ai=null},So=ye=>{ye.preventDefault(),ye.button===0&&(Ri=!0,e.store.actions.internal.holdCamera(),le()&&Yo()),!Ri&&fi(e.uiConfig.controls.hideTimeoutCursor)},Yi=ye=>{ye.preventDefault(),ye.button===0&&(Ni=ye,Ri=!1,e.store.actions.internal.releaseCamera()),!I()&&fi(e.uiConfig.controls.hideTimeoutCursor)},Or=ye=>{ye.preventDefault(),Ui&&(ei({message:"double click on video"}),mr(),fi(e.uiConfig.controls.hideTimeoutCursor))},Gn=ye=>{var pt;if(ye.preventDefault(),I()){Oo();return}if(Ai&&Oo(),K()||f()){vn();return}if(!(E()&&!lr)){if(n(et))return ni();if((pt=at())==null||pt.focus(),!xt()){e.firstStart(),fi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ce()!==H0.PLAYING)&&e.store.actions.internal.togglePlay(),fi(e.uiConfig.controls.hideTimeoutCursor)}},jn=ye=>{vn(),uo.set(!0),fi(e.uiConfig.controls.hideTimeout),ye&&Pn(e.uiConfig.controls.hideHotKeyHelpers,ye)},gr=()=>{var ye,pt;vn(),(ye=e.store.callbacks)!=null&&ye.onOpenHotKeyMap?(pt=e.store.callbacks)==null||pt.onOpenHotKeyMap(X()):Vi.update(ri=>!ri)},fs=()=>{uo.set(!0)},Dr=e.store.ui.contextMenu.openedByBtnKeyboard$,Jr=e.store.ui.contextMenu.btnRef$,Ke=Q(void 0),Yt=e.store.ui.contextMenu.openedByHotKey$,vi=e.store.ui.contextMenu.lastActiveElem$,gn=e.store.ui.previewTrackActive;ze(()=>{an.set(n(In))}),ze(()=>{O(fr,n(Pr)&&ce()!==H0.PLAYING,!0),n(Pr)||Et(()=>O(Pr,!0))}),ze(()=>{var pt,ri;let ye=(n(fr)||E()||f()||me()||re()||de()||Me())&&!n(un)&&(s()==="video"||s()==="ads")&&!a()&&A();Dt.set(ye),!ye&&!Me()&&e.uiConfig.returnFocusOnControlsHide&&((pt=n(Tn))!=null&&pt.contains(Pu()))&&((ri=at())==null||ri.focus())}),ze(()=>{!me()&&n(Kn)&&!u()&&fi(e.uiConfig.controls.hideTimeoutCursor),Et(()=>O(Kn,me(),!0))}),ze(()=>{n(dn),f(),xe(),Et(()=>Pd(n(dn),f(),xe()))}),ze(()=>{n(Ke),K(),ee(),Oe(),Et(()=>{let ye=ee()||Oe();Pd(n(Ke),K(),ye)})}),ze(()=>{let ye=pe();ye&&(K(),Et(()=>Il(ye,K(),Dr)))}),ze(()=>{let ye=k();ye&&(K(),Et(()=>B1(ye,K(),Yt)))}),ze(()=>{var ye;!qe()&&x()&&(Et(()=>_t.set(!1)),(ye=at())==null||ye.focus())}),ze(()=>{w()&&vn()});let Do=j("video360"),Br=Q(void 0),Zo=ye=>{Un.set(Hn(ur(),{title:n(Br)},"title",ye))},Hr=(ye,pt)=>{var Zt,Ci;let ri=(Ci=(Zt=e.store.callbacks)==null?void 0:Zt.uiInfo)==null?void 0:Ci.onUpcomingLiveViewStateChanged;if(!ri)return;let yi=!!pt,ci={...Hn(n(Gi),{upcomingLiveScreen:pt},"upcomingLiveScreen",yi),...ye};ri(ci)};var Vs=lw();bt("blur",ga,vn);var Zi=fe(Vs);Zi.__mousemove=ji;var Fr=_(Zi);let ea=m(()=>s()==="ads"),vt=m(()=>n(et)?ni:void 0);rt(Ff(Fr,{startDoubleForwardActivationTimer:Yo,stopDoubleForward:Oo,toggleFullscreen:mr,hideContextMenu:vn,showHotKeyHelpers:jn,showKeyMap:gr,get isAds(){return n(ea)},get fakePlayButtonHandler(){return n(vt)},get nextButtonActive(){return Ae()},get prevButtonActive(){return J()},children:(ye,pt)=>{var ri=sw(),yi=fe(ri);qa(yi,{get hideCursor(){return n(Lr)},onClick:Gn,onContextMenu:mn,onMouseDown:So,onMouseUp:Yi,onDblClick:Or,get videoContainer(){return tt()},set videoContainer(Ci){tt(Ci)}});var ci=P(yi,2);xa(ci,()=>"slot",!1,(Ci,_n)=>{Pe(Ci,()=>({name:Ka}))});var Zt=P(ci,2);xs(Zt,Le,Ci=>{var _n=rw(),Xo=fe(_n);let Pi=m(()=>s()!=="thumb"||a()||Ao&&e.autoplay);Ua(Xo,{get hidden(){return n(Pi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:mn,onClick:fn});var Qa=P(Xo,2);{var ta=Ue=>{km(Ue,{})};R(Qa,Ue=>{q()&&Ue(ta)})}var ia=P(Qa,2);Tm(ia,{});var oa=P(ia,2);Im(oa,{get isVisible(){return I()}});var Yn=P(oa,2);{var vs=Ue=>{let gi=m(()=>{var ro;return(ro=e.live)==null?void 0:ro.startTime});ac(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(gi)},onUpcomingLiveViewStateChanged:Hr,onContextMenu:mn,onClick:fn})};R(Yn,Ue=>{s()==="LiveWaitingStart"&&Ue(vs)})}var na=P(Yn,2);{var hr=Ue=>{za(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:mn,onClick:fn})};R(na,Ue=>{s()==="LiveWaitingRecover"&&Ue(hr)})}var Ga=P(na,2);{var ms=Ue=>{za(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:mn,onClick:fn})};R(Ga,Ue=>{s()==="LiveWaitingRecord"&&Ue(ms)})}var gs=P(Ga,2);{var ja=Ue=>{var gi=tw();let ro;var la=_(gi);Td(la,{get adsSlotId(){return Bt()},get adsParams(){return qt()},get adsAutoplayParam(){return wt()},get duration(){return Xt()},get adsExternalApi(){return e.adsExternalApi}}),g(gi),D(Jo=>ro=ne(gi,1,"ads-container svelte-nqua3g",null,ro,Jo),[()=>({hidden:s()!=="ads"})]),$(Ue,gi)};R(gs,Ue=>{e.showAds&&xt()&&Ue(ja)})}var ra=P(gs,2);{var zl=Ue=>{let gi=m(()=>!nt()&&e.showAutoplayNext&&C());Df(Ue,{get title(){return Ce()},get thumb(){return se()},get isHide(){return n(gi)},clickCloseIcon:()=>O(An,!0)})};R(ra,Ue=>{n(Wn)&&Ce()&&se()&&Ue(zl)})}var Ya=P(ra,2);{var Wl=Ue=>{let gi=m(()=>!p());im(Ue,{get title(){return e.title},get isHidden(){return n(gi)},onVisibilityChanged:Zo,get ref(){return n(Br)},set ref(ro){O(Br,ro,!0)}})};R(Ya,Ue=>{n(Mr)&&Ue(Wl)})}var Zn=P(Ya,2);{var Kl=Ue=>{let gi=m(()=>s()==="video"&&p());rc(Ue,{get isShifted(){return n(gi)}})};R(Zn,Ue=>{Z()&&Ue(Kl)})}var Za=P(Zn,2);{var Xa=Ue=>{var gi=iw(),ro=_(gi);wd(ro,{get"aria-label"(){return Do}}),g(gi),$(Ue,gi)};R(Za,Ue=>{ie()&&Ue(Xa)})}var sa=P(Za,2);{var mt=Ue=>{sc(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return He()}})};R(sa,Ue=>{de()&&Ue(mt)})}var gt=P(sa,2);{var Xi=Ue=>{Ha(Ue,{get shifted(){return p()},get captions(){return he()},get position(){return te()},get playerSize(){return U()}})};R(gt,Ue=>{Ge().value!=="off"&&Ue(Xi)})}var Co=P(gt,2);{var Ji=Ue=>{var gi=ow();gi.__contextmenu=mn,gi.__click=[ew,K,Ye,f,Bi,vn];var ro=_(gi);Fa(ro,{}),g(gi),$(Ue,gi)};R(Co,Ue=>{a()&&Ue(Ji)})}var mi=P(Co,2);{var zi=Ue=>{let gi=m(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),ro=m(()=>s()==="ads"),la=m(()=>e.canRewindLive&&we()!==0);nc(Ue,{get bottomHidden(){return n(gi)},get bottomNoSmooth(){return Y()},get showControls(){return p()},get isAds(){return n(ro)},get canRewindLive(){return n(la)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Pt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Te()},get nextButtonActive(){return Ae()},get prevButtonActive(){return J()},get isOneVideoPlaylist(){return ht()},customFullscreenSupported:Ui,toggleFullscreen:mr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Ir)},set playerControlsWrapperRef(Jo){O(Ir,Jo,!0)},get playerControlsRef(){return n(Tn)},set playerControlsRef(Jo){O(Tn,Jo,!0)}})};R(mi,Ue=>{xt()&&Ue(zi)})}var Rs=P(mi,2);{var ql=Ue=>{var gi=nw(),ro=_(gi);let la=m(()=>{var Jo;return(Jo=n(Tn))==null?void 0:Jo.clientHeight});cc(ro,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(la)},returnFocus:()=>{var Jo;return(Jo=at())==null?void 0:Jo.focus()},get ref(){return n(dn)},set ref(Jo){O(dn,Jo,!0)}}),g(gi),$(Ue,gi)};R(Rs,Ue=>{!de()&&s()!=="ads"&&Ue(ql)})}var Sc=P(Rs,2);let dp=m(()=>!n(vr));kd(Sc,{get isLive(){return Se()},get isHidden(){return n(dp)},get isPlaying(){return De()},get position(){return te()},get duration(){return we()}});var aa=P(Sc,2);Xv(aa,{get data(){return cn}});var Cc=P(aa,2);Of(Cc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=at())==null?void 0:Ue.focus()},get visible(){return K()},get playerContainerRef(){return n(Gi)},get position(){return je()},get menuElementRef(){return n(Ke)},set menuElementRef(Ue){O(Ke,Ue,!0)}});var Ns=P(Cc,2);{var Ja=Ue=>{uc(Ue,{onClose:zn,onSelectAutoQuality:()=>{wr("auto"),zn()}})};R(Ns,Ue=>{n(kr)&&Ue(Ja)})}var Tc=P(Ns,2);{var Ec=Ue=>{Am(Ue,{})};R(Tc,Ue=>{Qe()&&Ue(Ec)})}var el=P(Tc,2);{var Ic=Ue=>{Ma(Ue,{})};R(el,Ue=>{n(Ar)&&Ue(Ic)})}var kc=P(el,2);{var Ac=Ue=>{Wf(Ue,{})};R(kc,Ue=>{Fe()&&Ue(Ac)})}var cp=P(kc,2);{var up=Ue=>{Vd(Ue,{})};R(cp,Ue=>{Ze()&&Ue(up)})}$(Ci,_n)}),$(ye,ri)},$$slots:{default:!0}}),ye=>at(ye),()=>at());var di=P(Fr,2);rt(di,ye=>O(In,ye),()=>n(In)),g(Zi),rt(Zi,ye=>O(Gi,ye),()=>n(Gi));var ho=P(Zi,2);{var hn=ye=>{var pt=aw();$(ye,pt)};R(ho,ye=>{Ot()&&ye(hn)})}bt("mouseenter",Zi,Nr),bt("mouseleave",Zi,kt),bt("click",Zi,fs,!0),bt("focusin",Zi,Je,!0),$(t,Vs),F(),o()}lt(["mousemove","contextmenu","click"]);import{clientChecker as fc,PlaybackState as bw}from"@vkontakte/videoplayer-core/es2018";import{noop as $w}from"@vkontakte/videoplayer-shared/es2018";var cw=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),uw=M("<div><!></div>"),pw={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
359
+ animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
360
+ .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
361
+ .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
362
+ .triangle.left.svelte-nhq2ld:nth-child(1) {animation-delay:200ms;}
363
+
364
+ @keyframes svelte-nhq2ld-blink {
365
+ 0% {
366
+ opacity: 0;
367
+ }
368
+ 50% {
369
+ opacity: 1;
370
+ }
371
+ 100% {
372
+ opacity: 0;
373
+ }
374
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Ju(t,e){H(e,!0),z(t,pw);let i=h(e,"seekStep",3,0),o=Q(!1),r=0,s=0,l=Q(si(i())),d=v=>{v.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,O(o,!1)},300)};on(()=>{window.clearTimeout(r)});var a=uw();a.__click=d;var u=_(a);{var f=v=>{var p=cw(),y=fe(p),w=P(y,2),x=_(w),C=_(x),T=P(C,2),E=P(T,2);g(x);var N=P(x,2),A=_(N,!0);g(N),g(w),D(I=>{var L,Y,B,U;ne(y,1,`semicircle ${(L=e.side)!=null?L:""}`,"svelte-nhq2ld"),ne(C,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),ne(T,1,`triangle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),ne(E,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),ve(A,I)},[()=>j("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),$(v,p)};R(u,v=>{n(o)&&v(f)})}g(a),D(()=>{var v;return ne(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),F()}lt(["click"]);var fw=(t,e,i)=>{e(!1),i()},vw=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),mw={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Mm(t,e){H(e,!0),z(t,mw);let[i,o]=Ne(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=be(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},x=()=>{e.clickCloseIcon(),y()};Nt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=Be(),T=fe(C);{var E=N=>{var A=vw(),I=P(fe(A),2),L=_(I),Y=_(L),B=_(Y,!0);g(Y);var U=P(Y,2);Es(U,{onClick:x}),g(L);var Z=P(L,2);Z.__click=[fw,u,v];var le=_(Z),K=_(le),ce=_(K);let X;var me=P(ce,2);{var re=ee=>{Rd(ee,{get isRunning(){return s()},onTimerEnded:w})};R(me,ee=>{r()&&ee(re)})}g(K),g(le);var de=P(le,2),Me=_(de),xe=_(Me,!0);g(Me),g(de),g(Z),g(I),D((ee,Oe)=>{ve(B,ee),Xe(K,`background-image: url('${e.thumb}')`),X=ne(ce,1,"thumb-overlay svelte-1qdxi6t",null,X,Oe),ve(xe,e.title)},[()=>r()?j("end_screen_next_video"):j("end_screen_recommended_video"),()=>({withOpacity:r()})]),$(N,A)};R(T,N=>{e.isHide||N(E)})}$(t,C),F(),o()}lt(["click"]);import{clientChecker as gw}from"@vkontakte/videoplayer-core/es2018";var F0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Nt(()=>{gw.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))}),on(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as hw}from"@vkontakte/videoplayer-core/es2018";var ep=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}};import{clientChecker as _w}from"@vkontakte/videoplayer-core/es2018";var U0=({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"),f=()=>_w.device.isIOS&&_e(l)===hw.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=y=>{if(v(),!f()||!y)return;let w=u();if(!w)return;let x=new ep(w),C=_e(d),T=_e(s),E=_e(r);for(let I of C)T.some(Y=>Y.value===I.id)&&x.attach(I,E.value===I.id);let N=d.subscribe(I=>{for(let L of I)x.updateSrc(L)}),A=()=>{let I=x.getCurrentShowingId();o(_e(s).find(L=>L.value===I))};w.textTracks.addEventListener("change",A),a=()=>{N(),x.detachAll(),w.textTracks.removeEventListener("change",A)}};Nt(()=>i.subscribe(p)),on(v)};var yw=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},xw=M("<!> <!>",1),ww=M("<div><!></div>"),Sw=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Cw=M("<div><!></div>"),Tw=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Ew=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Iw=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),kw={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Lm(t,e){var Lr,Kn;H(e,!0),z(t,kw);let[i,o]=Ne(),r=()=>S(St,"$playerPhase",i),s=()=>S(wi,"$isLoaderVisible",i),l=()=>S(Ce,"$adPlaybackState",i),d=()=>S(oi,"$crashed",i),a=()=>S(ps,"$notificationsToShow$",i),u=()=>S(J,"$playbackState$",i),f=()=>S(Pt,"$graphIsOpened$",i),v=()=>S(st,"$interactiveHideMobileControls",i),p=()=>S(oo,"$isEnded$",i),y=()=>S(ut,"$isInteractiveExpectation$",i),w=()=>S(xt,"$controlsVisible",i),x=()=>S(ct,"$touched",i),C=()=>S(Hi,"$autoplayNextEnabled$",i),T=()=>S(_i,"$postrollPassed",i),E=()=>S(Un,"$bottomNoSmooth",i),N=()=>S(bi,"$videoSize",i),A=()=>S(Ct,"$playerSize",i),I=()=>S(dt,"$isFullscreen",i),L=()=>S(se,"$position$",i),Y=()=>S(ht,"$duration$",i),B=()=>S(Go,"$loadedMetadata",i),U=()=>S(nt,"$settingsMenuVisible",i),Z=()=>S(ei,"$scrubbingInProgress",i),le=()=>S(jt,"$volumeChangingInProgress",i),K=()=>S(Vt,"$chromecastConnected$",i),ce=()=>S(ge,"$isControlsAvailable",i),X=()=>S(Jt,"$isInteractiveTime$",i),me=()=>S(Bi,"$isActiveLive",i),re=()=>S(at,"$settingsMenuOpenedByKeyboard",i),de=()=>S(Ae,"$language$",i),Me=()=>S(Qt,"$disabledControls$",i),xe=()=>S(Ht,"$is3DVideo",i),ee=()=>S(W,"$icon3DVideoVisible",i),Oe=()=>S(li,"$chromecastDeviceName$",i),pe=()=>S(bo,"$currentSubtitle$",i),k=()=>S(Qo,"$currentSubtitleCaptions$",i),qe=()=>S(sn,"$realDuration$",i),Le=()=>S(_t,"$isLive$",i),q=()=>S(Dt,"$isPlaying$",i),ie=()=>S(ui,"$debugPanelVisible",i),He=h(e,"videoContainer",15),Ge=h(e,"adsSlotId",3,void 0),he=h(e,"adsParams",3,void 0),te=h(e,"adsAutoplayParam",3,void 0),we=h(e,"duration",3,void 0),Se=h(e,"logoTargetUrl",3,""),De=h(e,"showNextPrevButtons",3,!1),je=h(e,"nextButtonActive",3,!1),Qe=h(e,"prevButtonActive",3,!1),Fe=h(e,"endScreenVideoTitle",3,void 0),Ze=h(e,"endScreenVideoThumb",3,void 0),Ot=h(e,"isOneVideoPlaylist",3,!1),tt=h(e,"showMiniTimer",3,!1),Bt=h(e,"fullScreenTarget",3,void 0),qt=h(e,"playerStarted",3,!1),wt=h(e,"showEndScreen",3,!0),{notifications$:Xt,graphIsOpened$:Pt}=_o(),Te=e.store.getLogger().createComponentLog("Root component"),Ae=e.store.interfaceLanguage$,J=e.store.state.playbackState$,Ce=e.store.ads.playbackState,se=e.store.state.positionWithScrubbing$,ht=e.store.state.duration$,St=e.store.playerPhase,dt=e.store.ui.isFullscreen,xt=e.store.ui.controlsVisible,ge=e.store.ui.isControlsAvailable,st=e.store.ui.interactiveHideMobileControls,nt=e.store.ui.settingsMenu.visible$,at=e.store.ui.settingsMenu.openedByBtnKeyboard$,ei=e.store.ui.scrubbingInProgress,jt=e.store.ui.volumeChangingInProgress,ui=e.store.ui.debugPanelVisible,wi=e.store.state.isLoaderVisible,oo=e.store.state.isEnded$,Vt=e.store.state.chromecastConnected$,li=e.store.state.chromecastDeviceName$,_i=e.store.ads.postrollPassed,_t=e.store.state.isLive$,Dt=e.store.state.isPlaying$,Bi=e.store.state.isActiveLive$,Ei=e.store.state.isRewindableLive$,oi=e.store.state.crashed$,It=e.store.webApi.annotationsApi,Ye=e.store.webApi.pictureInPictureApi,bi=e.store.state.videoSize$,bo=e.store.state.currentSubtitle$,Qo=e.store.state.currentSubtitleCaptions$,sn=e.store.state.duration$,Ct=e.store.ui.playerSize,Ht=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Mt=e.store.state.isInteractive,Jt=e.store.state.isInteractiveTime$,ut=e.store.state.isInteractiveExpectation$,Tt=e.store.state.hasInteractiveBranches,Qt=e.store.ui.controls.disabledControls$,ct=e.store.ui.touched,Ii=e.store.ui.overlayContainer$,Hi=e.store.ui.autoplayNextEnabled$,Go=e.store.state.loadedMetadata$,Ao=e.store.actions.internal.closeSettingsMenu,no=(Lr=e.store.callbacks)==null?void 0:Lr.onDisabledPlayPrevChapterClick,Fi=(Kn=e.store.callbacks)==null?void 0:Kn.onDisabledSeekToInteractiveClick,lr=e.store.actions.internal.setQuality,uo=Q(void 0),po=Q(void 0),Vi=Q(void 0),an=Q(void 0),Po,dr,cr=m(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),wr=Q(void 0),{closeNotification:Zr,notificationsToShow$:ps}=Xt,Xr=m(()=>!!a().slow_video),$o=()=>Zr("slow_video"),Un=ae(!1),Mo,ln=Q(!1),Cn=m(()=>u()!==bw.PLAYING),ur=Q(!1),Sr=m(()=>f()||v()||!n(ln)&&(p()&&!!Tt||n(Cn)&&y())),Cr=Q(!0),Tr=m(()=>e.uiConfig.features.thumbTimer&&tt()&&r()==="video"&&!w()&&!d()&&!Mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Er=Q(!1),Gi=m(()=>(wt()||e.showAutoplayNext&&C())&&!!Fe()&&!!Ze()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!n(Er)),Ir=Q(!1);Ye==null||Ye.setContext(Zl());let Tn=et=>{et&&!Mt&&fo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Tn});let dn=()=>{clearTimeout(Po),O(ln,!1),v()&&st.set(!1)},fo=et=>{dn(),O(ln,!0),Po=setTimeout(()=>O(ln,!1),et);let ni=et-100;Mo=setTimeout(()=>{E()&&Un.set(!1)},ni>0?ni:et)},pr=Ht.subscribe(et=>{W.set(et),et&&(clearTimeout(dr),dr=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),En=async(et=Qs())=>{var ni,Ri,Ni,pn,yo,xo;if(et&&!fc.device.isIOS){let fi=Sd(),Pn=In(),mo=fc.browser.isSamsungBrowser&&fi===e.shadowRootContainer;et=fi===Pn||mo}if(et){fo(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ye==null?void 0:Ye.exit())}catch(fi){Te({message:String(fi)})}try{let fi=(ni=N())!=null&&ni.width&&((Ri=N())!=null&&Ri.height)?N():A();await A1(fi)}catch(fi){Te({message:String(fi)})}}dt.set(et),e.store.getAdmanWrapper().setFullscreen(et),I()?(pn=(Ni=e.store.callbacks)==null?void 0:Ni.onFullscreenEnter)==null||pn.call(Ni):(xo=(yo=e.store.callbacks)==null?void 0:yo.onFullscreenExit)==null||xo.call(yo)},ft=et=>{let ni=et,{width:Ri,height:Ni}=ni.target;Ct.set({width:Ri,height:Ni})},pi=()=>{let{width:et,height:ni}=n(uo).getBoundingClientRect();Ct.set({width:et,height:ni})};Nt(()=>{var et;return wu(En),e.uiConfig.features.annotationsInside&&(It==null||It.init(n(uo))),Ia(Ye)&&(Ye==null||Ye.assignPlayerContainer(n(uo)),Ye==null||Ye.setExternalEventHandlers({resize:ft,leavepictureinpicture:pi})),O(Cr,!fc.device.isIphoneOrOldIpad),e.interactiveContainer&&((et=He().parentElement)==null||et.insertBefore(e.interactiveContainer,He().nextSibling)),()=>{clearTimeout(Po),clearTimeout(Mo),clearTimeout(dr),pr(),Ye==null||Ye.dispose().catch(ni=>{Te({message:String(ni)})}),Su(En)}});let kr=Q(!0),zn=Q(!0),Ar=et=>{let ni=L()+(et==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ni<0?(O(kr,!1),ni=0):ni>=Y()&&(O(zn,!1),ni=Y()),O(ur,!0),e.seekTime(ni)},In=()=>fc.device.isIOS?n(uo):!e.uiConfig.allowChangingFullscreenTarget||!Bt()?e.outerContainerRef:Bt().contains(e.outerContainerRef)?Bt():e.outerContainerRef,kn=async()=>{try{if(Qs())await xu(document),Te({message:"exit fullscreen"});else{if(Te({message:"request fullscreen"}),fc.device.isIOS&&!B())return;await yu(In())}}catch(et){Te({message:String(et)})}},Lo=()=>{Ao()},Vo=et=>{if(et.preventDefault(),U()){Lo();return}if(!qt()){e.firstStart(),fo(e.uiConfig.controls.hideTimeoutCursor);return}O(ur,!1),w()?dn():fo(e.uiConfig.controls.hideTimeoutMobile)},cn=()=>{ct.set(!0)},vo=()=>{Mt||(Un.set(!0),fo(e.uiConfig.controls.hideTimeoutCursor))},Ro=et=>{no&&(no(et),fo(e.uiConfig.controls.hideTimeoutMobile))},jo=et=>{Fi&&(Fi(et),fo(e.uiConfig.controls.hideTimeoutMobile))};ze(()=>{Ii.set(n(wr))}),ze(()=>{xt.set((n(Cn)||U()||Z()||le()||K()||!n(Gi)&&(p()||n(ln)&&!n(ur)))&&!n(Sr)&&r()==="video"&&!d()&&ce())}),ze(()=>{!Z()&&n(Ir)&&!X()&&fo(e.uiConfig.controls.hideTimeoutMobile),O(Ir,Z(),!0)}),ze(()=>{O(kr,L()>0),O(zn,!me()&&L()<Y(),!0)}),ze(()=>{Pd(n(an),U(),re(),!0)});let fr=j("aria_label_video_player"),Pr=j("video360");F0({fullScreenChangeHandler:En,getFullscreenTarget:In}),U0({store:e.store,getFullscreenTarget:In});let un=(et,ni)=>{var yo,xo;let Ri=(xo=(yo=e.store.callbacks)==null?void 0:yo.uiInfo)==null?void 0:xo.onUpcomingLiveViewStateChanged;if(!Ri)return;let Ni=!!ni,pn={...Hn(n(uo),{upcomingLiveScreen:ni},"upcomingLiveScreen",Ni),...et};Ri(pn)};var Ui=Iw();bt("blur",ga,Lo);var vr=_(Ui);qa(vr,{onClick:Vo,get videoContainer(){return He()},set videoContainer(et){He(et)}});var Mr=P(vr,2);xa(Mr,()=>"slot",!1,(et,ni)=>{Pe(et,()=>({name:Ka}))});var An=P(Mr,2);xs(An,de,et=>{var ni=Ew(),Ri=fe(ni);let Ni=m(()=>r()!=="thumb"||d()||Mt&&e.autoplay);Ua(Ri,{get hidden(){return n(Ni)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var pn=P(Ri,2);{var yo=Ke=>{var Yt=xw(),vi=fe(Yt);{var gn=Zo=>{let Hr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Ju(Zo,{side:"left",get seekStep(){return n(Hr)},handleSingleFirstClick:Vo,handleSecondClick:()=>Ar("backward")})};R(vi,Zo=>{n(kr)&&Zo(gn)})}var Do=P(vi,2);{var Br=Zo=>{let Hr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Ju(Zo,{side:"right",get seekStep(){return n(Hr)},handleSingleFirstClick:Vo,handleSecondClick:()=>Ar("forward")})};R(Do,Zo=>{n(zn)&&Zo(Br)})}$(Ke,Yt)};R(pn,Ke=>{e.canRewindLive&&Ei&&!Me().has("TIMELINE")&&Ke(yo)})}var xo=P(pn,2);{var fi=Ke=>{let Yt=m(()=>{var vi;return(vi=e.live)==null?void 0:vi.startTime});ac(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Yt)},onUpcomingLiveViewStateChanged:un})};R(xo,Ke=>{r()==="LiveWaitingStart"&&Ke(fi)})}var Pn=P(xo,2);{var mo=Ke=>{za(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Pn,Ke=>{r()==="LiveWaitingRecover"&&Ke(mo)})}var qn=P(Pn,2);{var Qn=Ke=>{za(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(qn,Ke=>{r()==="LiveWaitingRecord"&&Ke(Qn)})}var Vr=P(qn,2);{var Rr=Ke=>{var Yt=ww();let vi;var gn=_(Yt);Td(gn,{get adsSlotId(){return Ge()},get adsParams(){return he()},get adsAutoplayParam(){return te()},get duration(){return we()},get adsExternalApi(){return e.adsExternalApi}}),g(Yt),D(Do=>vi=ne(Yt,1,"ads-container svelte-7yl31d",null,vi,Do),[()=>({hidden:r()!=="ads"})]),$(Ke,Yt)};R(Vr,Ke=>{e.showAds&&qt()&&Ke(Rr)})}var fn=P(Vr,2);{var vn=Ke=>{let Yt=m(()=>!wt()&&e.showAutoplayNext&&C());Mm(Ke,{get title(){return Fe()},get thumb(){return Ze()},get isHide(){return n(Yt)},clickCloseIcon:()=>O(Er,!0)})};R(fn,Ke=>{n(Gi)&&Fe()&&Ze()&&Ke(vn)})}var mr=P(fn,2);{var mn=Ke=>{rc(Ke,{})};R(mr,Ke=>{xe()&&Ke(mn)})}var Nr=P(mr,2);{var Je=Ke=>{var Yt=Sw(),vi=_(Yt);wd(vi,{get"aria-label"(){return Pr}}),g(Yt),$(Ke,Yt)};R(Nr,Ke=>{ee()&&Ke(Je)})}var kt=P(Nr,2);{var $i=Ke=>{sc(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Oe()}})};R(kt,Ke=>{K()&&Ke($i)})}var go=P(kt,2);{var No=Ke=>{Ha(Ke,{get shifted(){return w()},get captions(){return k()},get position(){return L()},get playerSize(){return A()},isMobile:!0})};R(go,Ke=>{pe().value!=="off"&&Ke(No)})}var wo=P(go,2);{var ji=Ke=>{var Yt=Cw();Yt.__click=[yw,U,nt,Lo];var vi=_(Yt);Fa(vi,{}),g(Yt),$(Ke,Yt)};R(wo,Ke=>{d()&&Ke(ji)})}var Ai=P(wo,2);{var Yo=Ke=>{let Yt=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),vi=m(()=>r()==="ads"),gn=m(()=>e.canRewindLive&&qe()!==0);nc(Ke,{get bottomHidden(){return n(Yt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return n(vi)},get canRewindLive(){return n(gn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Se()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return De()},get nextButtonActive(){return je()},get prevButtonActive(){return Qe()},get isOneVideoPlaylist(){return Ot()},get customFullscreenSupported(){return n(Cr)},get endScreenShown(){return n(Gi)},toggleFullscreen:kn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Ro,onDisabledSeekToInteractiveClick:jo,get playerControlsWrapperRef(){return n(po)},set playerControlsWrapperRef(Do){O(po,Do,!0)},get playerControlsRef(){return n(Vi)},set playerControlsRef(Do){O(Vi,Do,!0)}})};R(Ai,Ke=>{qt()&&Ke(Yo)})}var Oo=P(Ai,2);{var So=Ke=>{var Yt=Tw(),vi=_(Yt);cc(vi,{get supportLink(){return e.supportLink},get returnFocus(){return $w},get ref(){return n(an)},set ref(gn){O(an,gn,!0)}}),g(Yt),$(Ke,Yt)};R(Oo,Ke=>{U()&&Ke(So)})}var Yi=P(Oo,2);let Or=m(()=>!n(Tr));kd(Yi,{get isLive(){return Le()},get isHidden(){return n(Or)},get isPlaying(){return q()},get position(){return L()},get duration(){return Y()}});var Gn=P(Yi,2);{var jn=Ke=>{Ma(Ke,{})};R(Gn,Ke=>{n(cr)&&Ke(jn)})}var gr=P(Gn,2);{var fs=Ke=>{Vd(Ke,{})};R(gr,Ke=>{ie()&&Ke(fs)})}var Dr=P(gr,2);{var Jr=Ke=>{uc(Ke,{onClose:$o,onSelectAutoQuality:()=>{lr("auto"),$o()}})};R(Dr,Ke=>{n(Xr)&&Ke(Jr)})}$(et,ni)});var Wn=P(An,2);rt(Wn,et=>O(wr,et),()=>n(wr)),g(Ui),rt(Ui,et=>O(uo,et),()=>n(uo)),D(()=>We(Ui,"aria-label",fr)),bt("click",Ui,cn,!0),bt("focusin",Ui,vo,!0),$(t,Ui),F(),o()}lt(["click"]);function tp(t){let e="";return io(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),io(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),io(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),io(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),io(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),io(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),io(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),io(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),io(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),io(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),io(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),io(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),io(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),io(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),io(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),io(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),io(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),io(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),io(t.font)&&(e+=`--font:${t.font};`),io(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),io(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function io(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Aw}from"@vkontakte/videoplayer-shared/es2018";var Pw=M('<div class="time-container svelte-1qfjf44"><!></div>'),Mw=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),Lw={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Vm(t,e){H(e,!0),z(t,Lw);let[i,o]=Ne(),r=()=>S(X,"$scrubbingInProgress",i),s=()=>S(K,"$playerSize",i),l=()=>S(L,"$isPlaying$",i),d=()=>S(A,"$duration$",i),a=()=>S(U,"$positionWithScrubbing$",i),u=()=>S(E,"$playerPhase",i),f=()=>S(N,"$crashed$",i),v=()=>S(Y,"$currentSubtitle$",i),p=()=>S(B,"$currentSubtitleCaptions$",i),y=()=>S(I,"$positionExact$",i),w=()=>S(Z,"$isLive$",i),x=()=>S(le,"$isRewindableLive$",i),C=h(e,"outsideDuration",3,0),T=h(e,"videoContainer",15),{playerPhase:E,state:{crashed$:N,duration$:A,positionExact$:I,isPlaying$:L,currentSubtitle$:Y,currentSubtitleCaptions$:B,positionWithScrubbing$:U,isLive$:Z,isRewindableLive$:le},ui:{playerSize:K,controls:ce,scrubbingInProgress:X},actions:{internal:{getVideoElement:me}}}=be(),re=8,de=Q(!1),Me=si({}),xe=Q(!1),ee=m(()=>!r()&&!n(xe)),Oe=()=>{O(de,!0)},pe=()=>{O(de,!1)},k=Aw(Ol,260);ze(()=>{s(),k(me(),ce,Me,n(de))});let qe=m(()=>l()?qo(d()-a()):qo(isFinite(d())?d():C()));var Le=Mw(),q=_(Le);qa(q,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(Fe){T(Fe)}});var ie=P(q,2);xa(ie,()=>"slot",!1,(Fe,Ze)=>{Pe(Fe,()=>({name:Ka}))});var He=P(ie,2);let Ge=m(()=>u()!=="thumb"||f());Ua(He,{get hidden(){return n(Ge)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var he=P(He,2);{var te=Fe=>{Ha(Fe,{shifted:!1,get captions(){return p()},get position(){return y()},get playerSize(){return s()}})};R(he,Fe=>{v().value!=="off"&&n(ee)&&Fe(te)})}var we=P(he,2);{var Se=Fe=>{var Ze=Pw(),Ot=_(Ze);Id(Ot,{get isLive(){return w()},get isPlaying(){return l()},get time(){return n(qe)}}),g(Ze),$(Fe,Ze)};R(we,Fe=>{n(ee)&&Fe(Se)})}var De=P(we,2);let je;var Qe=_(De);Da(Qe,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return x()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:re,tooltipRightOffset:re,get ref(){return Me.timeline},set ref(Fe){Me.timeline=Fe}}),g(De),g(Le),D(Fe=>je=ne(De,1,"timeline svelte-1qfjf44",null,je,Fe),[()=>({visible:n(de)})]),bt("mouseenter",Le,Oe),bt("mouseleave",Le,pe),bt("mouseenter",De,()=>O(xe,!0)),bt("mouseleave",De,()=>O(xe,!1)),$(t,Le),F(),o()}var Dw=M("<div><!></div>"),Bw={hash:"svelte-3c0y7j",code:`.vk-vp-root.svelte-3c0y7j {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
375
+
376
+ /* USER DEFINED COLORS */
377
+
378
+ /* timeline active live */--timeline-slider-filled-active-live-bg: var(--red);--timeline-slider-handle-active-live-bg: var(--red);
379
+ /* timeline & timeline ads */--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);
380
+ /* volume slider colors */--volume-slider-bg: var(--slider-bg);--volume-slider-filled-bg: var(--slider-filled-bg);--volume-slider-handle-bg: var(--slider-handle-bg);
381
+ /* controls time */--controls-time: var(--white);
382
+
383
+ /* /// USER DEFINED COLORS */--controls-gradient: linear-gradient(
384
+ to bottom,
385
+ rgba(0, 0, 0, 0) 0%,
386
+ rgba(0, 0, 0, 0.005) 6.67%,
387
+ rgba(0, 0, 0, 0.02) 13.33%,
388
+ rgba(1, 1, 1, 0.04) 20%,
389
+ rgba(1, 1, 1, 0.07) 26.67%,
390
+ rgba(2, 2, 2, 0.11) 33.33%,
391
+ rgba(3, 3, 3, 0.16) 40%,
392
+ rgba(4, 4, 4, 0.22) 46.67%,
393
+ rgba(6, 6, 6, 0.28) 53.33%,
394
+ rgba(7, 7, 7, 0.33) 60%,
395
+ rgba(8, 8, 8, 0.38) 66.67%,
396
+ rgba(9, 9, 9, 0.42) 73.33%,
397
+ rgba(9, 9, 9, 0.46) 80%,
398
+ rgba(10, 10, 10, 0.48) 86.67%,
399
+ rgba(10, 10, 10, 0.50) 100%
400
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--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, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.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, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
401
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.vk-vp-root.visible-outside.svelte-3c0y7j {overflow:visible;}
402
+
403
+ /* css reset start */.vk-vp-root.svelte-3c0y7j * {-webkit-tap-highlight-color:transparent;}.vk-vp-root.svelte-3c0y7j button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}.vk-vp-root.svelte-3c0y7j p {margin:0;}.vk-vp-root.svelte-3c0y7j svg:not(.interactive-root svg) {pointer-events:none;}.vk-vp-root.svelte-3c0y7j .interactive-root {
404
+ /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}.vk-vp-root.svelte-3c0y7j *:focus, .vk-vp-root.svelte-3c0y7j *:focus-visible {outline:none;}.vk-vp-root.svelte-3c0y7j *:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}.vk-vp-root.svelte-3c0y7j *.focus-hidden:focus-visible {box-shadow:none;}
405
+ /* css reset end */.vk-vp-root.svelte-3c0y7j .hidden {visibility:hidden;opacity:0;}.vk-vp-root.svelte-3c0y7j .out-of-flow {content-visibility:hidden !important;}.vk-vp-root.svelte-3c0y7j .overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
406
+
407
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.vk-vp-root.svelte-3c0y7j .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-3c0y7j .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Nm(t,e){H(e,!0),z(t,Bw);let[i,o]=Ne(),r=()=>S(qt,"$isLive$",i),s=()=>S(It,"$availableSubtitlesList$",i),l=()=>S(Ye,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),a=h(e,"store",7),u=h(e,"microStoresRoot",7),f=h(e,"videoConfig",7),v=h(e,"uiConfig",7),p=h(e,"title",7),y=h(e,"thumbUrl",7),w=h(e,"interactiveContainer",7),x=h(e,"interactiveController",7),C=h(e,"subtitles",7),T=h(e,"subtitlesForcedLanguage",7),E=h(e,"live",7),N=h(e,"preload",7),A=h(e,"autoplay",7),I=h(e,"volume",7,void 0),L=h(e,"muted",7,void 0),Y=h(e,"fromTime",7),B=h(e,"canRewindLive",7),U=h(e,"showAds",7),Z=h(e,"adsSlotId",7,void 0),le=h(e,"adsParams",7,void 0),K=h(e,"adsAutoplayParam",7,void 0),ce=h(e,"duration",7,void 0),X=h(e,"logoClickable",7),me=h(e,"logoHidden",7),re=h(e,"isMobile",7),de=h(e,"showNextPrevButtons",7,!1),Me=h(e,"nextButtonActive",7,!1),xe=h(e,"prevButtonActive",7,!1),ee=h(e,"endScreenVideoTitle",7,void 0),Oe=h(e,"endScreenVideoThumb",7,void 0),pe=h(e,"isOneVideoPlaylist",7,!1),k=h(e,"supportLink",7),qe=h(e,"shadowRootContainer",7),Le=h(e,"outerContainerRef",7),q=h(e,"fullScreenTarget",7,void 0),ie=h(e,"failoverHosts",7,void 0),He=h(e,"showMiniTimer",7,!1),Ge=h(e,"saveRate",7),he=h(e,"seekToInteractive",7,z0),te=h(e,"playPrevChapter",7,z0),we=h(e,"volumeMultiplier",7),Se=h(e,"showAutoplayNext",7),De=h(e,"showEndScreen",7,!0),je=h(e,"keyboardControls",15,void 0),{subscribers:Qe,stores:Fe}=u();Dh(v());let Ze=Lt(),Ot=v().logoLink,tt=a().ui.debugPanelVisible,Bt=a().ui.playerSize,qt=a().state.isLive$,Xt=a().state.isInteractive&&Rm.device.isAndroid,Pt=Q(void 0),Te=null,Ae=Q(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),Gh(a(),Fe),ze(()=>{var W,Mt;a().ui.isMobile.set(re()),(Mt=(W=f().callbacks)==null?void 0:W.onDomReady)==null||Mt.call(W)});let J=(W=!1)=>{O(Ae,!0),W?a().actions.external.firstStart(U()):a().actions.internal.firstStart(U())},Ce=()=>{if(Ze.features.qualityDetailsSubMenuEnabled){let W=g1(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{h1(a().videoId),bf()&&a().actions.internal.setTrafficSavingEnabled(!0);let Mt=mf(a().videoId);Mt&&a().actions.internal.setQuality(Mt)}};function se(W){var Qt,ct,Ii;let Mt=d()||W;Mt&&a().initVideo({container:n(Pt),sources:Mt,failoverHosts:ie(),subtitles:C(),subtitlesForcedLanguage:T(),volumeMultiplier:we()});let Jt=Rw.get(bd)==="true";tt.set(Jt),Y()>0&&a().actions.external.seekTime(Y());let ut=re()?Ze.volumeDefault:(ct=(Qt=I())!=null?Qt:uu())!=null?ct:Ze.volumeDefault,Tt=(Ii=L())!=null?Ii:c1();if(a().actions.external.setVolume(ut),a().actions.external.setMuted(Tt),a().getAdmanWrapper().setInitialVolume(Tt?0:ut),Ce(),Ze.features.saveRate&&Ge()){let Hi=f1();Hi&&!r()&&a().actions.internal.setPlaybackRate(Hi)}if(Se()){let Hi=m1();Hi&&a().actions.internal.setAutoplayNextEnabled(Hi)}a().ui.isAutoplay.set(A()),A()&&J(),N()&&Ze.features.preload&&a().actions.internal.preload()}let ht=W=>{if(window.ResizeObserver){let Mt,Jt;Te=new ResizeObserver(Nw(ut=>{let Tt=ut[0];if(Tt.contentBoxSize){let Qt=Array.isArray(Tt.contentBoxSize)?Tt.contentBoxSize[0]:Tt.contentBoxSize;Mt=Qt.inlineSize,Jt=Qt.blockSize}else Tt.contentRect&&(Mt=Tt.contentRect.width,Jt=Tt.contentRect.height);Bt.set({width:Mt,height:Jt})},300)),Te.observe(W)}Bt.set({width:W.clientWidth,height:W.clientHeight})},St=()=>{document.hidden&&a().actions.external.stop()};Nt(()=>{var Jt,ut,Tt,Qt;Xt&&document.addEventListener("visibilitychange",St),Ze.debugLog&&a().actions.internal.startLogging(),ht(n(Pt));let W=Qe.map(ct=>ct.init({store:a(),microStores:Fe,config:f(),interactiveController:x(),uiConfig:v()})),Mt=()=>{Xt&&document.removeEventListener("visibilitychange",St),Te==null||Te.disconnect(),W.forEach(ct=>ct.unsubscribe()),a().destroy()};return((Jt=E())==null?void 0:Jt.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Mt):((ut=E())==null?void 0:ut.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Mt):(((Tt=E())==null?void 0:Tt.status)==="finished"||((Qt=E())==null?void 0:Qt.status)==="postlive")&&!(d()&&Vw(d()))?(a().actions.internal.setLiveWaitingRecord(!0),Mt):(se(),Mt)});function dt(){n(Ae)?a().actions.external.play():J(!0)}function xt(){a().actions.external.pause()}function ge(W){a().actions.external.setMuted(W)}function st(){a().actions.external.toggleSubtitle()}function nt(W,Mt){a().actions.external.changeSubtitle(W,Mt)}function at(W){a().actions.external.changeAudioStream(W)}function ei(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.hideControls()}function jt(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.showControls()}function ui(W){re()||W>=0&&W<=1&&a().actions.external.setVolume(W)}function wi(W){a().actions.internal.seekTime(W,Ow.UNKNOWN)}function oo(W){a().actions.external.seekEpisodeStartTime(W)}function Vt(){a().actions.external.returnFocusToEpisodes()}function li(W){a().actions.external.setPlaybackRate(W)}function _i(W){a().actions.external.setAutoQualityLimits(W)}function _t(){a().actions.external.setQuality("auto")}function Dt(W){a().actions.external.setTrafficSavingEnabled(W)}function Bi(W){a().actions.external.setHighQualityEnabled(W)}let Ei=tp(Ze.view),oi=f().playerView==="preview",It=a().state.availableSubtitlesList$;if(Ze.features.initSubtitles){let W=!1;ze(()=>{var Mt;if(!W&&s().length){W=!0;let Jt;if(Ze.features.userVideoPrefs&&a().videoId){let Tt=mu(Ze.userSalt,String(a().videoId));Tt!=null&&Tt.subtitleTrackId&&(Jt=s().find(Qt=>Qt.value===Tt.subtitleTrackId))}let ut=(Mt=T())!=null?Mt:yf();ut&&(Jt=s().find(Tt=>Tt.language===ut)),a().actions.internal.setSubtitle(Jt)}})}let Ye=a().ui.isPreviewTrackHorizontallyAligned;var bi=Dw();let bo;var Qo=_(bi);{var sn=W=>{Lm(W,{get store(){return a()},get uiConfig(){return Ze},get thumbUrl(){return y()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return U()},get adsSlotId(){return Z()},get adsParams(){return le()},get adsAutoplayParam(){return K()},get duration(){return ce()},get logoClickable(){return X()},get logoHidden(){return me()},get logoTargetUrl(){return Ot},get nextButtonActive(){return Me()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return ee()},get endScreenVideoThumb(){return Oe()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return qe()},get outerContainerRef(){return Le()},get fullScreenTarget(){return q()},get showMiniTimer(){return He()},get playerStarted(){return n(Ae)},get seekToInteractive(){return he()},get playPrevChapter(){return te()},firstStart:J,seekTime:wi,get showEndScreen(){return De()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return de()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Pt)},set videoContainer(Mt){O(Pt,Mt,!0)}})},Ct=W=>{var Mt=Be(),Jt=fe(Mt);{var ut=Qt=>{Vm(Qt,{get thumbUrl(){return y()},get outsideDuration(){return ce()},get canRewindLive(){return B()},get videoContainer(){return n(Pt)},set videoContainer(ct){O(Pt,ct,!0)}})},Tt=Qt=>{Pm(Qt,{get store(){return a()},get uiConfig(){return Ze},get title(){return p()},get thumbUrl(){return y()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return U()},get adsSlotId(){return Z()},get adsParams(){return le()},get adsAutoplayParam(){return K()},get duration(){return ce()},get logoClickable(){return X()},get logoHidden(){return me()},get logoTargetUrl(){return Ot},get nextButtonActive(){return Me()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return ee()},get endScreenVideoThumb(){return Oe()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return qe()},get outerContainerRef(){return Le()},get fullScreenTarget(){return q()},get showMiniTimer(){return He()},get playerStarted(){return n(Ae)},get seekToInteractive(){return he()},get playPrevChapter(){return te()},firstStart:J,get showEndScreen(){return De()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return de()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Pt)},set videoContainer(ct){O(Pt,ct,!0)},get keyboardControls(){return je()},set keyboardControls(ct){je(ct)}})};R(Jt,Qt=>{oi?Qt(ut):Qt(Tt,!1)})}$(W,Mt)};R(Qo,W=>{re()?W(sn):W(Ct,!1)})}g(bi),D(W=>{bo=ne(bi,1,"vk-vp-root svelte-3c0y7j",null,bo,W),Xe(bi,Ei)},[()=>({"root--miui-browser":Rm.device.isMobile&&Rm.browser.isMiuiBrowser,"visible-outside":oi,"preview-track-horizontally-alinged":l()})]),$(t,bi);var Ht=F({initVideo:se,play:dt,pause:xt,setMuted:ge,toggleSubtitle:st,changeSubtitle:nt,changeAudioStream:at,hideControls:ei,showControls:jt,setVolume:ui,seekTime:wi,seekEpisodeStartTime:oo,returnFocusToEpisodes:Vt,setPlaybackRate:li,setAutoQualityLimits:_i,setAutoQuality:_t,toggleTrafficSaving:Dt,toggleHighQuality:Bi,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 f()},set videoConfig(W){f(W)},get uiConfig(){return v()},set uiConfig(W){v(W)},get title(){return p()},set title(W){p(W)},get thumbUrl(){return y()},set thumbUrl(W){y(W)},get interactiveContainer(){return w()},set interactiveContainer(W){w(W)},get interactiveController(){return x()},set interactiveController(W){x(W)},get subtitles(){return C()},set subtitles(W){C(W)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(W){T(W)},get live(){return E()},set live(W){E(W)},get preload(){return N()},set preload(W){N(W)},get autoplay(){return A()},set autoplay(W){A(W)},get volume(){return I()},set volume(W){I(W)},get muted(){return L()},set muted(W){L(W)},get fromTime(){return Y()},set fromTime(W){Y(W)},get canRewindLive(){return B()},set canRewindLive(W){B(W)},get showAds(){return U()},set showAds(W){U(W)},get adsSlotId(){return Z()},set adsSlotId(W){Z(W)},get adsParams(){return le()},set adsParams(W){le(W)},get adsAutoplayParam(){return K()},set adsAutoplayParam(W){K(W)},get duration(){return ce()},set duration(W){ce(W)},get logoClickable(){return X()},set logoClickable(W){X(W)},get logoHidden(){return me()},set logoHidden(W){me(W)},get isMobile(){return re()},set isMobile(W){re(W)},get showNextPrevButtons(){return de()},set showNextPrevButtons(W){de(W)},get nextButtonActive(){return Me()},set nextButtonActive(W){Me(W)},get prevButtonActive(){return xe()},set prevButtonActive(W){xe(W)},get endScreenVideoTitle(){return ee()},set endScreenVideoTitle(W){ee(W)},get endScreenVideoThumb(){return Oe()},set endScreenVideoThumb(W){Oe(W)},get isOneVideoPlaylist(){return pe()},set isOneVideoPlaylist(W){pe(W)},get supportLink(){return k()},set supportLink(W){k(W)},get shadowRootContainer(){return qe()},set shadowRootContainer(W){qe(W)},get outerContainerRef(){return Le()},set outerContainerRef(W){Le(W)},get fullScreenTarget(){return q()},set fullScreenTarget(W){q(W)},get failoverHosts(){return ie()},set failoverHosts(W){ie(W)},get showMiniTimer(){return He()},set showMiniTimer(W){He(W)},get saveRate(){return Ge()},set saveRate(W){Ge(W)},get showAutoplayNext(){return Se()},set showAutoplayNext(W){Se(W)},get seekToInteractive(){return he()},set seekToInteractive(W){he(W)},get playPrevChapter(){return te()},set playPrevChapter(W){te(W)},get volumeMultiplier(){return we()},set volumeMultiplier(W){we(W)},get showEndScreen(){return De()},set showEndScreen(W){De(W)},get keyboardControls(){return je()},set keyboardControls(W){je(W)}});return o(),Ht}var Hw=Ie('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Om(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Hw();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}function Dm(t,e){let i=h(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");Om(t,{get style(){return n(o)}})}var Fw=M('<div class="title svelte-1y9fytq"> </div>'),Uw=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),zw={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function Bm(t,e){z(t,zw);var i=Uw(),o=_(i);{var r=d=>{var a=Fw(),u=_(a,!0);g(a),D(()=>ve(u,e.title)),$(d,a)};R(o,d=>{e.title&&d(r)})}var s=P(o,2);{var l=d=>{let a=m(()=>!!e.thumbUrl);Dm(d,{get isWhite(){return n(a)}})};R(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),D(()=>Xe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var Ww=M('<div class="playerError svelte-m5iv29"><!></div>'),Kw={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function Hm(t){z(t,Kw);var e=Ww(),i=_(e);Fa(i,{}),g(e),$(t,e)}import{now as b6,ValueSubject as $6}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as y6,InterfaceLanguage as x6,isNonNullable as Qm,Logger as w6,Observable as S6,Subscription as Z0,once as C6,InternalsExposure as T6,skip as E6,getPlayerId as I6}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as X0,isMobile as k6}from"@vkontakte/videoplayer-core/es2018";import{OneStat as A6,ThinOneStat as P6,MediascopePixel as M6}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as qw,Subscription as Qw}from"@vkontakte/videoplayer-shared/es2018";var ip=class{constructor(){this.subscription=new Qw,this.logger=new qw,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=_e(e.state.currentPlaybackRate$),r=_e(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()}};import{ValueSubject as zm,detectEmbed as Jw}from"@vkontakte/videoplayer-shared/es2018";var Gw=Ie('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function Fm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Gw();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i}));var r=_(o);$e(r,()=>{var s;return(s=e.children)!=null?s:ue}),Ee(),g(o),$(t,o)}var jw=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Yw={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function Um(t,e){H(e,!0),z(t,Yw);let[i,o]=Ne(),r=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=be(),d=Lt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=m(()=>r()&&v("pip_dummy_title")),y=tp(d.view);var w=jw();let x;var C=_(w);let T;var E=_(C);Fm(E,{}),g(C);var N=P(C,2),A=_(N,!0);g(N),g(w),D((I,L)=>{x=ne(w,1,"player-pip-dummy svelte-1pbsod4",null,x,I),Xe(w,y),T=ne(C,1,"dummy-image svelte-1pbsod4",null,T,L),ve(A,n(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),F(),o()}var Zw=Object.defineProperty,Xw=(t,e,i)=>e in t?Zw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Fl=(t,e,i)=>Xw(t,typeof e!="symbol"?e+"":e,i),e6=460,t6=280,vc=class{constructor({enabled:e=!0}={enabled:!0}){Fl(this,"playerDomElement"),Fl(this,"playerParentShadowRoot"),Fl(this,"playerDummyElement"),Fl(this,"svelteContext"),Fl(this,"pipWindow"),Fl(this,"info",{isActive$:new zm(!1),isEnabled$:new zm(!1),type:1}),this.info.isEnabled$=new zm(e)}isSupported(){let{isEmbed:e}=Jw();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:e6,height:t6,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(`
408
+ `),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(Um,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||(ya(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 W0(t){return t instanceof vc}var op=class{static getLatestSupportedVersion(e){let i=new Ea(e),o=new vc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function mc(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 K0="Inner error. Unexpectedly root annotation container null reference exception",q0="Annotation with such name already exists",Q0="Annotation with such name does not exist";var Ul=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as i6,Subscription as o6,throttleFn as n6}from"@vkontakte/videoplayer-shared/es2018";var r6="1",s6=100,np=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new o6}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=n6(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},s6);this.subscriptions.add(i6(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 Ul(K0);if(this.annotations.has(e))throw new Ul(q0);i.style.zIndex=(o=i.style.zIndex)!=null?o:r6,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 Ul(Q0);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(){}};import{assertNonNullable as rp,Subscription as a6}from"@vkontakte/videoplayer-shared/es2018";var rn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return rp(e),rp(i),rp(r),r.interactiveData&&rp(o),this.subscription=new a6,this.subscription}};var gc=class extends rn{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 hc=class extends rn{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:f}=s.ui,v=_e(f),p=()=>v&&_e(u);return o.add(u.subscribe(y=>{if(!v)return;let w=_e(l);_e(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||p())})),o.add(l.subscribe(y=>{if(y===null)return;let w=_e(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var _c=class extends rn{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}};import{combine as l6}from"@vkontakte/videoplayer-shared/es2018";var Wm=ae(!1),sp=null,bc=class extends rn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Wm,set:(i,o=!1)=>{i!==_e(Wm)&&(this.clearTimeout(),Wm.set(i),!i&&sp&&(sp=!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(v=>{_e(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(l6({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:y})=>{var w,x;if(!(!v||!(y!=null&&y.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&sp===null&&(sp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(x=(w=r.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||x.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as d6,noop as c6}from"@vkontakte/videoplayer-shared/es2018";var $c=class extends rn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:c6};this.checkIfShouldHide=i=>Is(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(_e(l)))return;let a=_e(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:v}=r.ui.controls,p=_e(u),y=_e(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),v.remove(af),!p&&this.graphMadePause&&r.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),v.add(af),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(d6({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(v){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as G0}from"@vkontakte/videoplayer-shared/es2018";var yc=class extends rn{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 G0(!1),isEnabled$:new G0(!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}};import{filter as f6,filterChanged as v6}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Km}from"@vkontakte/videoplayer-shared/es2018";var j0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?u6({maxCount:t}):void 0,e!==0?p6({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},u6=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Km.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}}},p6=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Km.get(e)||"{}")}catch(s){return{}}},o=s=>Km.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 xc=class extends rn{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=j0({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe(v6(),f6(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var Y0=()=>[gc,hc,_c,bc,$c,yc,xc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as wc}from"@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 m6=M('<div class="root svelte-9ubj1t"><!></div>'),g6={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function qm(t,e){H(e,!0),z(t,g6);let i=null,o=Q(null);ze(()=>(n(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&O(o,a?"prev":"next",!0)}var s=Be(),l=fe(s);{var d=a=>{var u=Be(),f=fe(u);xs(f,()=>n(o),v=>{var p=m6(),y=_(p);let w=m(()=>n(o)==="prev");pc(y,{get duration(){return e.animationDuration},get Icon(){return Yd},get isPrev(){return n(w)}}),g(p),$(v,p)}),$(a,u)};R(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return $(t,s),F({startVideoChangedAnimation:r})}var h6=Object.defineProperty,_6=(t,e,i)=>e in t?h6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gt=(t,e,i)=>_6(t,typeof e!="symbol"?e+"":e,i),L6={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:x6.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:k6(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Fn=Q(void 0),Gm=si({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,"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,"internalsExposure",null),Gt(this,"shadowDOMCallbacksDisabled",!1),Gt(this,"fatalError$",new $6(null)),Gt(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:y,isMobile:w,isTouch:x,refDomain:C,deviceId:T,interactiveData:E}=mc(this.videoConfig,i),N=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:L=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new A6({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:x!=null?x:w,clip:L,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview",...N&&(!this.isInited||A)&&{projectId:Number(N)}},{refreshAuthToken:p,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(B){console.error(B),this.log({message:B.message})}}),wc.create("ui"),this.logger=new w6,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Z0,this.interactiveSubscription=new Z0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=qr(Hm,{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=si({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=qr(Bm,l),this.sveltePersistentLayerComponent=qr(qm,{target:this.playerContainer,props:Gm})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;Gm.animationDuration=e,Gm.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(),wc.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}=mc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new P6.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,f,v,p,y;if(!this.videoConfig)return;let{albumId:w,statPlace:x,statAuthToken:C,preload:T,autoplay:E,volume:N,muted:A,fromTime:I,canRewindLive:L,supportLink:Y,showAds:B,adsSlotId:U,adsParams:Z={},adsAutoplayParam:le,interfaceLanguage:K,isCyrillicRelatedInterface:ce,logoClickable:X,logoHidden:me,isMobile:re,isTouch:de,isAudioDisabled:Me,isLiveCatchUpMode:xe,fullScreenTarget:ee,failoverHosts:Oe,canDownload:pe,callbacks:k,interactiveData:qe,showThumbTimer:Le,additionalButtons:q=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:He=[],repeat:Ge,loop:he,saveRate:te,volumeMultiplier:we,showEndScreen:Se,showAutoplayNext:De,mediascopePixels:je}=mc(this.videoConfig,i),{sources:Qe,title:Fe,thumbUrl:Ze,unitedVideoId:Ot,isClip:tt=!1,duration:Bt,adsParams:qt={},videoEpisodes:wt,previewThumbsData:Xt,subtitles:Pt,subtitlesForcedLanguage:Te,live:Ae,adsExternalApi:J}=e;if(!Qe&&!Ae){let li=new Error("empty sources and live");this.fatalError$.next(li),(r=k.onCrashed)==null||r.call(k,li.message);return}let Ce={...Z,...qt},se=this.getNextVideoInfo(),ht={sources:Qe,title:Fe,thumbUrl:Ze,subtitles:Pt,subtitlesForcedLanguage:Te,unitedVideoId:Ot,isClip:tt,live:Ae,albumId:w,statPlace:x,autoplay:E,muted:A,volume:N,fromTime:I,canRewindLive:L,showAds:B,adsSlotId:U,adsParams:Ce,adsAutoplayParam:le,duration:Bt,logoClickable:X,logoHidden:me,isTouch:de!=null?de:re,repeat:Ge,loop:he,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},St={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(ht)}`});let dt=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),xt=(dt==null?void 0:dt.oneStat)||this.createOneStat(e,i),ge=this.createThinOneStat(e,i),st;je&&(st=new M6({pixels:je})),(xt||ge)&&(this.statistics=new Bu(xt,ge,st,dt==null?void 0:dt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ta(this.uiConfig.sentry,{version:Sl,env:lu},{movieId:Ot,albumId:w,place:x,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:de!=null?de:re,clip:tt}),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,...Ta.getInstance()};let at=!!qe,ei=[],jt="tooltip_interactive_go_back_disabled_first";if(at&&this.interactiveController){let li=this.interactiveController.state.isInitialChapter$.getValue(),_i=this.interactiveController.getHistoryState();li&&ei.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ei.push("SEEK_TO_INTERACTIVE_BUTTON"),_i.hasPrevChapter$.getValue()||(ei.push("PLAY_PREV_CHAPTER_BUTTON"),li||(_i.isGoBackLimited$.getValue()?jt="tooltip_interactive_go_back_disabled_limit":jt="tooltip_interactive_go_back_disabled"))}let ui=()=>{var li;this.isInited=!1,this.prevIsid=void 0;let _i=(o==null?void 0:o.info.isEnded$.getValue())&&((li=this.interactiveController)==null?void 0:li.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!_i?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},wi=Ge&&this.videoConfig.videos.length===1;this.store=a0({player:o,interfaceLanguage:K,isCyrillicRelatedInterface:ce,videoId:Ot,isClip:tt,isLiveCatchUpMode:xe,isAudioDisabled:Me,statAuthToken:C,callbacks:k,webApi:St,videoEpisodes:wt,previewThumbsData:Xt,canDownload:pe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ei,isInteractive:at,saveRate:te,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ui,playPrevChapterDisabledTooltip:jt,hasInteractiveBranches:!!((y=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?q:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:He!=null?He:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:li=>{var _i;return(_i=this.sveltePersistentLayerComponent)==null?void 0:_i.startVideoChangedAnimation(li)},looped:this.uiConfig.features.useLoopSetting?he:wi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:oo}=this.microStoresRoot=Y0(),Vt=()=>{var li,_i,_t,Dt,Bi,Ei;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(It=>{var Ye;return(Ye=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:Ye.call(k,It)})),this.subscription.add(oo.interactiveControlsOpacity$.subscribe(It=>{var Ye;It!==null&&((Ye=this==null?void 0:this.interactiveController)==null||Ye.setDisabledControls(It))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(It=>{var Ye;return(Ye=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:Ye.call(k,It)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(It=>{var Ye;return(Ye=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:Ye.call(k,It)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(It=>{var Ye;return(Ye=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:Ye.call(k,It)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(It=>{var Ye;return(Ye=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:Ye.call(k,!!It)})),this.subscription.add(new S6(It=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ye=>It.next(Ye)))}).pipe(E6(1)).subscribe(It=>{var Ye;return(Ye=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:Ye.call(k,It)})),this.subscription.add(this.store.state.volume$.subscribe(It=>{var Ye;return(Ye=k==null?void 0:k.onVolumeChange)==null?void 0:Ye.call(k,It)})),this.subscription.add(this.store.state.muted$.subscribe(It=>{var Ye,bi,bo,Qo;if(It)(Ye=k==null?void 0:k.onMute)==null||Ye.call(k);else{let sn=(bo=((bi=this.store)==null?void 0:bi.state.volume$)&&_e(this.store.state.volume$))!=null?bo:0;(Qo=k==null?void 0:k.onUnmute)==null||Qo.call(k,sn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(It=>{var Ye;return(Ye=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:Ye.call(k,It)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(It=>{var Ye;let bi=(Ye=this.store)==null?void 0:Ye.ui.controls.disabledControls$;bi&&(It&&!bi.includes($d)&&bi.add($d),It||bi.remove($d))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async It=>{var Ye;if(!X0.browser.isSamsungBrowser||!It||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((Ye=this.videoConfig)==null?void 0:Ye.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(It=>{var Ye;return(Ye=k==null?void 0:k.onVSIDChanged)==null?void 0:Ye.call(k,It)})),this.initMediaSession(),O(Fn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Qe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Fe,thumbUrl:Ze,subtitles:Pt,subtitlesForcedLanguage:Te,live:Ae,preload:T,autoplay:E,muted:A,volume:N,fromTime:I,canRewindLive:L,supportLink:Y,showAds:B,adsSlotId:U,adsParams:Ce,adsAutoplayParam:le,duration:Bt,logoClickable:X,logoHidden:me,isMobile:de!=null?de:re,failoverHosts:Oe,fullScreenTarget:ee,saveRate:te,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Le,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:we,showEndScreen:Se,showAutoplayNext:De,adsExternalApi:J},!0);let oi={target:this.playerContainer,props:n(Fn)};this.svelteRootComponent=qr(Nm,oi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(_t=(_i=(li=this.videoConfig)==null?void 0:li.callbacks)==null?void 0:_i.onInited)==null||_t.call(_i)),(Dt=this.internalsExposure)==null||Dt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ei=(Bi=this.videoConfig)==null?void 0:Bi.callbacks)!=null&&Ei.onDevNullLog)?wc.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):wc.destroy("ui")};this.coreConfig.asyncResolveClientChecker?X0.isInited$.subscribe(li=>{li&&(console.log("UI SDK async start"),Vt())}):Vt()}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&&Qm(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?_e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:x}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(x.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let E=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var N,A,I,L,Y,B;if(!this.store||!this.microStoresRoot)return;let U=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(yd)),T==="action-choice-canceled"){let Z=_e(this.store.state.isPlaying$)||U;if(((I=(N=this.videoConfig)==null?void 0:N.isTouch)!=null?I:(A=this.videoConfig)!=null&&A.isMobile)&&Z){this.store.ui.interactiveHideMobileControls.set(!0);return}(B=(L=this.videoConfig)==null?void 0:(Y=L.callbacks).onDisabledInteractiveClick)==null||B.call(Y)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(yd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var N,A,I;E.length&&((I=(A=(N=this.videoConfig)==null?void 0:N.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||I.call(A,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,N,A;(A=(E=this.videoConfig)==null?void 0:(N=E.callbacks).onInteractiveChapterChanged)==null||A.call(N,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,N,A;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(E=this.videoConfig)==null?void 0:(N=E.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(N)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,s,l,d,a,u,f,v,p,y,w,x,C,T,E,N,A,I,L,Y,B,U,Z,le,K,ce,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let me=new Error("empty videos");this.fatalError$.next(me),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,me.message);return}else this.fatalError$.next(null);if(this.videoConfig=mc(L6,y6(e,me=>me instanceof HTMLElement?me:void 0)),this.playerId=I6(e.playerId),this.uiConfig=Oh((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 T6("ui",this.playerId))),wc.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[b6()]}),Qm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),Qm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=(x=this.uiConfig.features.dpip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.uiConfig.ads.paramsOverride={preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(N=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?N:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(L=this.uiConfig.ads.slot)!=null?L:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((Y=this.uiConfig.showLogo)!=null?Y:!this.videoConfig.logoHidden),(B=this.videoConfig).canRewindLive&&(B.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Z=this.uiConfig.features.endScreen)!=null?Z:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(le=this.uiConfig.features.autoplayNext)!=null?le:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(K=this.uiConfig.features.nextPrevButtons)!=null?K:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ce=this.videoConfig.videos)!=null&&ce[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let me={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=op.getLatestSupportedVersion(me):this.pictureInPictureApi=new Ea(me)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ip:void 0,this.slotsApi=this.uiConfig.features.slots?new Xu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new np(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]),W0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(X=this.slotsApi)==null||X.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(Fn)&&(n(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Fn).nextButtonActive=this.isNextButtonActive(),n(Fn).prevButtonActive=this.isPrevButtonActive(),n(Fn).endScreenVideoTitle=o.nextVideoTitle,n(Fn).endScreenVideoThumb=o.nextVideoThumb,n(Fn).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="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,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(Fn)&&(n(Fn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Fn).nextButtonActive=this.isNextButtonActive(),n(Fn).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=_e(this.store.state.positionExact$),l=_e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(C6()).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&&ya(e)}};import{InterfaceLanguage as Fie,VKNumericLanguage as Uie,loadVKLangPack as zie}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as Kie,VideoFormat as qie}from"@vkontakte/videoplayer-core/es2018";var Lie=()=>{window.customElements.define("vk-video-player",lp)};export{Hu as ControlButtonType,as as GridTypes,Fie as InterfaceLanguage,Md as MenuItemType,ls as PlayerPhase,Sl as VERSION,Uie as VKNumericLanguage,qie as VideoFormat,Kie as VideoQuality,zie as loadVKLangPack,Lie as registerPlayerWebComponent};