@vkontakte/videoplayer 1.1.64-dev.dae0b8a8.0 → 1.1.64-dev.dc6a30a0.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,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.64-dev.dae0b8a8.0
3
- * Mon, 09 Jun 2025 04:03:57 GMT
2
+ * @vkontakte/videoplayer v1.1.64-dev.dc6a30a0.0
3
+ * Fri, 20 Jun 2025 11:05:01 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
- var V1=Object.defineProperty;var Hm=t=>{throw TypeError(t)};var R1=(t,e,i)=>e in t?V1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Ln=(t,e,i)=>R1(t,typeof e!="symbol"?e+"":e,i),hu=(t,e,i)=>e.has(t)||Hm("Cannot "+i);var Mi=(t,e,i)=>(hu(t,e,"read from private field"),i?i.call(t):e.get(t)),as=(t,e,i)=>e.has(t)?Hm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),_a=(t,e,i,o)=>(hu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Fm=(t,e,i)=>(hu(t,e,"access private method"),i);var ls="[",Ps="[!",As="]",Ur={};var Li=Symbol(),gi=Symbol("filename"),Um=Symbol("hmr"),zm="http://www.w3.org/1999/xhtml",_u="http://www.w3.org/2000/svg";var Wd=!0;var Wm,Km,qm=(Km=(Wm=globalThis.process)==null?void 0:Wm.env)==null?void 0:Km.NODE_ENV,ke=qm&&!qm.toLowerCase().startsWith("prod");var Oo=Symbol("$state"),zr=Symbol("$state metadata"),cl=Symbol("legacy props"),Qm=Symbol("");var ur=Array.isArray,Gm=Array.prototype.indexOf,ul=Array.from,bu=Object.keys,oo=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Kd=Object.getOwnPropertyDescriptors,$u=Object.prototype,jm=Array.prototype,qr=Object.getPrototypeOf;function ds(t){return typeof t=="function"}var oe=()=>{};function Ym(t){return t()}function cs(t){for(var e=0;e<t.length;e++)t[e]()}var pl=[],yu=[];function Zm(){var t=pl;pl=[],cs(t)}function N1(){var t=yu;yu=[],cs(t)}function Jo(t){pl.length===0&&queueMicrotask(Zm),pl.push(t)}function xu(){pl.length>0&&Zm(),yu.length>0&&N1()}function Qd(t){return t===this.v}function ba(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Xm(t,e){return t!==e}function $a(t){return!ba(t,this.v)}function Jm(){if(ke){let t=new Error(`derived_references_self
6
+ var N1=Object.defineProperty;var zm=t=>{throw TypeError(t)};var D1=(t,e,i)=>e in t?N1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Ln=(t,e,i)=>D1(t,typeof e!="symbol"?e+"":e,i),$u=(t,e,i)=>e.has(t)||zm("Cannot "+i);var Pi=(t,e,i)=>($u(t,e,"read from private field"),i?i.call(t):e.get(t)),as=(t,e,i)=>e.has(t)?zm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ya=(t,e,i,o)=>($u(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),qm=(t,e,i)=>($u(t,e,"access private method"),i);var ls="[",Es="[!",Ps="]",zr={};var Ai=Symbol(),gi=Symbol("filename"),Wm=Symbol("hmr"),Km="http://www.w3.org/1999/xhtml",yu="http://www.w3.org/2000/svg";var Wd=!0;var Gm,Ym,Qm=(Ym=(Gm=globalThis.process)==null?void 0:Gm.env)==null?void 0:Ym.NODE_ENV,ke=Qm&&!Qm.toLowerCase().startsWith("prod");var Bo=Symbol("$state"),qr=Symbol("$state metadata"),dl=Symbol("legacy props"),jm=Symbol("");var vr=Array.isArray,Zm=Array.prototype.indexOf,cl=Array.from,xu=Object.keys,Ji=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Kd=Object.getOwnPropertyDescriptors,wu=Object.prototype,Xm=Array.prototype,Wr=Object.getPrototypeOf;function ds(t){return typeof t=="function"}var ie=()=>{};function Jm(t){return t()}function cs(t){for(var e=0;e<t.length;e++)t[e]()}var ul=[],Su=[];function ev(){var t=ul;ul=[],cs(t)}function O1(){var t=Su;Su=[],cs(t)}function Jo(t){ul.length===0&&queueMicrotask(ev),ul.push(t)}function Cu(){ul.length>0&&ev(),Su.length>0&&O1()}function Qd(t){return t===this.v}function xa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function tv(t,e){return t!==e}function wa(t){return!xa(t,this.v)}function iv(){if(ke){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
8
- https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function ev(t){if(ke){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 ov(t){if(ke){let e=new Error(`effect_in_teardown
9
9
  \`${t}\` cannot be used inside an effect cleanup function
10
- https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function tv(){if(ke){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function iv(t){if(ke){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 nv(){if(ke){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rv(t){if(ke){let e=new Error(`effect_orphan
11
11
  \`${t}\` can only be used inside an effect (e.g. during component initialisation)
12
- https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function ov(){if(ke){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 sv(){if(ke){let t=new Error(`effect_update_depth_exceeded
13
13
  Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
14
- https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function nv(){if(ke){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 av(){if(ke){let t=new Error(`hydration_failed
15
15
  Failed to hydrate the application
16
- https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function rv(){if(ke){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function sv(t){if(ke){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 lv(){if(ke){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function dv(t){if(ke){let e=new Error(`props_invalid_value
17
17
  Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
18
- https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function av(t){if(ke){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 cv(t){if(ke){let e=new Error(`props_rest_readonly
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
- https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function lv(t){if(ke){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 uv(t){if(ke){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function dv(){if(ke){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function cv(){if(ke){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function uv(){if(ke){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function pv(){if(ke){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived 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 Lr=!1,Vr=!1;function fv(){Lr=!0}var fl=null;function Wr(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 pv(){if(ke){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fv(){if(ke){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function mv(){if(ke){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function vv(){if(ke){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived 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 Mr=!1,Lr=!1;function gv(){Mr=!0}var pl=null;function Kr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;oo(e,"stack",{value:n.join(`
25
- `)}),oo(e,"name",{value:`${t}Error`})}return e}var Ms=new Set,ya=new Map;function Tu(t){Ms=t}function zi(t,e){var i={f:0,v:t,reactions:null,equals:Qd,rv:0,wv:0};return ke&&Vr&&(i.created=e!=null?e:Wr("CreatedAt"),i.debug=null),i}function J(t){return D1(zi(t))}function Qr(t,e=!1){var o,n;let i=zi(t);return e||(i.equals=$a),Lr&&At!==null&&At.l!==null&&((n=(o=At.l).s)!=null?n:o.s=[]).push(i),i}function D1(t){return Nt!==null&&!Nn&&(Nt.f&2)!==0&&(pr===null?gv([t]):pr.push(t)),t}function B(t,e){return Nt!==null&&!Nn&&Rr()&&(Nt.f&18)!==0&&(pr===null||!pr.includes(t))&&pv(),xa(t,e)}function xa(t,e){var o;if(!t.equals(e)){var i=t.v;if(Vs?ya.set(t,e):ya.set(t,i),t.v=e,t.wv=vl(),ke&&Vr&&(t.updated=Wr("UpdatedAt"),Tt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),vv(t,2048),Rr()&&Tt!==null&&(Tt.f&1024)!==0&&(Tt.f&96)===0&&(Rn===null?hv([t]):Rn.push(t)),ke&&Ms.size>0){let n=Array.from(Ms);for(let a of n)(a.f&1024)!==0&&on(a,4096),us(a)&&wa(a);Ms.clear()}}return e}function vv(t,e){var i=t.reactions;if(i!==null)for(var o=Rr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===Tt)){if(ke&&(d&262144)!==0){Ms.add(s);continue}on(s,e),(d&1280)!==0&&((d&2)!==0?vv(s,4096):Sa(s))}}}function v(t){var e=2050,i=Nt!==null&&(Nt.f&2)!==0?Nt:null;Tt===null||i!==null&&(i.f&256)!==0?e|=256:Tt.f|=1048576;let o={ctx:At,deps:null,effects:null,equals:Qd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:Tt};return ke&&Vr&&(o.created=Wr("CreatedAt")),o}function mr(t){let e=v(t);return e.equals=$a,e}function Gd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)ro(e[i])}}var Iu=[];function B1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function O1(t){var e,i=Tt;if(no(B1(t)),ke){let o=Ms;Tu(new Set);try{Iu.includes(t)&&Jm(),Iu.push(t),Gd(t),e=jd(t)}finally{no(i),Tu(o),Iu.pop()}}else try{Gd(t),e=jd(t)}finally{no(i)}return e}function Eu(t){var e=O1(t),i=(Gr||(t.f&256)!==0)&&t.deps!==null?4096:1024;on(t,i),t.equals(e)||(t.v=e,t.wv=vl())}var Rs="font-weight: bold",Ns="font-weight: normal";function _v(t,e,i){ke?console.warn(`%c[svelte] hydration_attribute_changed
24
+ `];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;Ji(e,"stack",{value:n.join(`
25
+ `)}),Ji(e,"name",{value:`${t}Error`})}return e}var As=new Set,Sa=new Map;function Eu(t){As=t}function zi(t,e){var i={f:0,v:t,reactions:null,equals:Qd,rv:0,wv:0};return ke&&Lr&&(i.created=e!=null?e:Kr("CreatedAt"),i.debug=null),i}function X(t){return H1(zi(t))}function Gr(t,e=!1){var o,n;let i=zi(t);return e||(i.equals=wa),Mr&&Et!==null&&Et.l!==null&&((n=(o=Et.l).s)!=null?n:o.s=[]).push(i),i}function H1(t){return Ot!==null&&!Bn&&(Ot.f&2)!==0&&(gr===null?bv([t]):gr.push(t)),t}function D(t,e){return Ot!==null&&!Bn&&Vr()&&(Ot.f&18)!==0&&(gr===null||!gr.includes(t))&&vv(),Ca(t,e)}function Ca(t,e){var o;if(!t.equals(e)){var i=t.v;if(Ls?Sa.set(t,e):Sa.set(t,i),t.v=e,t.wv=ml(),ke&&Lr&&(t.updated=Kr("UpdatedAt"),It!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),_v(t,2048),Vr()&&It!==null&&(It.f&1024)!==0&&(It.f&96)===0&&(Rn===null?$v([t]):Rn.push(t)),ke&&As.size>0){let n=Array.from(As);for(let a of n)(a.f&1024)!==0&&on(a,4096),us(a)&&Ta(a);As.clear()}}return e}function _v(t,e){var i=t.reactions;if(i!==null)for(var o=Vr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===It)){if(ke&&(d&262144)!==0){As.add(s);continue}on(s,e),(d&1280)!==0&&((d&2)!==0?_v(s,4096):Ia(s))}}}function v(t){var e=2050,i=Ot!==null&&(Ot.f&2)!==0?Ot:null;It===null||i!==null&&(i.f&256)!==0?e|=256:It.f|=1048576;let o={ctx:Et,deps:null,effects:null,equals:Qd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:It};return ke&&Lr&&(o.created=Kr("CreatedAt")),o}function _r(t){let e=v(t);return e.equals=wa,e}function Gd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)to(e[i])}}var Pu=[];function F1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function U1(t){var e,i=It;if(eo(F1(t)),ke){let o=As;Eu(new Set);try{Pu.includes(t)&&iv(),Pu.push(t),Gd(t),e=Yd(t)}finally{eo(i),Eu(o),Pu.pop()}}else try{Gd(t),e=Yd(t)}finally{eo(i)}return e}function Mu(t){var e=U1(t),i=(Yr||(t.f&256)!==0)&&t.deps!==null?4096:1024;on(t,i),t.equals(e)||(t.v=e,t.wv=ml())}var Vs="font-weight: bold",Rs="font-weight: normal";function yv(t,e,i){ke?console.warn(`%c[svelte] hydration_attribute_changed
26
26
  %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
27
- https://svelte.dev/e/hydration_attribute_changed`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function bv(t){ke?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Vs,Rs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function xv(t){ke?console.warn(`%c[svelte] hydration_html_changed
28
28
  %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"}
29
- https://svelte.dev/e/hydration_html_changed`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ds(t){ke?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Vs,Rs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Bs(t){ke?console.warn(`%c[svelte] hydration_mismatch
30
30
  %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"}
31
- https://svelte.dev/e/hydration_mismatch`,Rs,Ns):console.warn("https://svelte.dev/e/hydration_mismatch")}function $v(){ke?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Vs,Rs):console.warn("https://svelte.dev/e/hydration_mismatch")}function wv(){ke?console.warn(`%c[svelte] lifecycle_double_unmount
32
32
  %cTried to unmount a component that was not mounted
33
- https://svelte.dev/e/lifecycle_double_unmount`,Rs,Ns):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function yv(t,e,i){ke?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Vs,Rs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Sv(t,e,i){ke?console.warn(`%c[svelte] ownership_invalid_binding
34
34
  %c${t} passed a value to ${e} with \`bind:\`, but the value is owned by ${i}. Consider creating a binding between ${i} and ${t}
35
- https://svelte.dev/e/ownership_invalid_binding`,Rs,Ns):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Pu(t,e){ke?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Vs,Rs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Lu(t,e){ke?console.warn(`%c[svelte] ownership_invalid_mutation
36
36
  %c${t?`${t} mutated a value owned by ${e}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
37
- https://svelte.dev/e/ownership_invalid_mutation`,Rs,Ns):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Yd(t){ke?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Vs,Rs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function jd(t){ke?console.warn(`%c[svelte] state_proxy_equality_mismatch
38
38
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
39
- https://svelte.dev/e/state_proxy_equality_mismatch`,Rs,Ns):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ge=!1;function so(t){Ge=t}var mt;function hi(t){if(t===null)throw Ds(),Ur;return mt=t}function Di(){return hi(Ao(mt))}function g(t){if(Ge){if(Ao(mt)!==null)throw Ds(),Ur;mt=t}}function _e(t=1){if(Ge){for(var e=t,i=mt;e--;)i=Ao(i);mt=i}}function Ca(){for(var t=0,e=mt;;){if(e.nodeType===8){var i=e.data;if(i===As){if(t===0)return e;t-=1}else(i===ls||i===Ps)&&(t+=1)}var o=Ao(e);e.remove(),e=o}}function pe(t,e=null,i){var p,m;var o=null;if(ke&&Vr&&(o=Wr("CreatedAt")),typeof t!="object"||t===null||Oo in t)return t;let n=qr(t);if(n!==$u&&n!==jm)return t;var a=new Map,s=ur(t),d=zi(0);s&&a.set("length",zi(t.length,o));var l;if(ke)if(l={parent:e,owners:null},i){let $=(m=(p=i.v)==null?void 0:p[zr])==null?void 0:m.owners;l.owners=$?new Set($):null}else l.owners=e===null?At!==null?new Set([At.function]):null:new Set;return new Proxy(t,{defineProperty($,u,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&dv();var w=a.get(u);return w===void 0?(w=zi(_.value,o),a.set(u,w)):B(w,pe(_.value,l)),!0},deleteProperty($,u){var _=a.get(u);if(_===void 0)u in $&&a.set(u,zi(Li,o));else{if(s&&typeof u=="string"){var w=a.get("length"),y=Number(u);Number.isInteger(y)&&y<w.v&&B(w,y)}B(_,Li),xv(d)}return!0},get($,u,_){var E;if(ke&&u===zr)return l;if(u===Oo)return t;var w=a.get(u),y=u in $;if(w===void 0&&(!y||(E=Vn($,u))!=null&&E.writable)&&(w=zi(pe(y?$[u]:Li,l),o),a.set(u,w)),w!==void 0){var C=r(w);if(ke){var T=C==null?void 0:C[zr];T&&(T==null?void 0:T.parent)!==l&&Au(l,T)}return C===Li?void 0:C}return Reflect.get($,u,_)},getOwnPropertyDescriptor($,u){var _=Reflect.getOwnPropertyDescriptor($,u);if(_&&"value"in _){var w=a.get(u);w&&(_.value=r(w))}else if(_===void 0){var y=a.get(u),C=y==null?void 0:y.v;if(y!==void 0&&C!==Li)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return _},has($,u){var C;if(ke&&u===zr||u===Oo)return!0;var _=a.get(u),w=_!==void 0&&_.v!==Li||Reflect.has($,u);if(_!==void 0||Tt!==null&&(!w||(C=Vn($,u))!=null&&C.writable)){_===void 0&&(_=zi(w?pe($[u],l):Li,o),a.set(u,_));var y=r(_);if(y===Li)return!1}return w},set($,u,_,w){var H;var y=a.get(u),C=u in $;if(s&&u==="length")for(var T=_;T<y.v;T+=1){var E=a.get(T+"");E!==void 0?B(E,Li):T in $&&(E=zi(Li,o),a.set(T+"",E))}if(y===void 0?(!C||(H=Vn($,u))!=null&&H.writable)&&(y=zi(void 0,o),B(y,pe(_,l)),a.set(u,y)):(C=y.v!==Li,B(y,pe(_,l))),ke){var P=_==null?void 0:_[zr];P&&(P==null?void 0:P.parent)!==l&&Au(l,P),wv(l)}var A=Reflect.getOwnPropertyDescriptor($,u);if(A!=null&&A.set&&A.set.call(w,_),!C){if(s&&typeof u=="string"){var I=a.get("length"),V=Number(u);Number.isInteger(V)&&V>=I.v&&B(I,V+1)}xv(d)}return!0},ownKeys($){r(d);var u=Reflect.ownKeys($).filter(y=>{var C=a.get(y);return C===void 0||C.v!==Li});for(var[_,w]of a)w.v!==Li&&!(_ in $)&&u.push(_);return u},setPrototypeOf(){cv()}})}function xv(t,e=1){B(t,t.v+e)}function Zd(t){return t!==null&&typeof t=="object"&&Oo in t?t[Oo]:t}function Sv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(Zd(this[l])===a){Yd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(Zd(this[l])===a){Yd("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(Zd(this[l])===a){Yd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Bs,Cv,gl,Tv,Iv;function Xd(){if(Bs===void 0){Bs=window,Cv=document,gl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Tv=Vn(e,"firstChild").get,Iv=Vn(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,ke&&(t.__svelte_meta=null,Sv())}}function nn(t=""){return document.createTextNode(t)}function _i(t){return Tv.call(t)}function Ao(t){return Iv.call(t)}function h(t,e){if(!Ge)return _i(t);var i=_i(mt);if(i===null)i=mt.appendChild(nn());else if(e&&i.nodeType!==3){var o=nn();return i==null||i.before(o),hi(o),o}return hi(i),i}function ue(t,e){var n,a;if(!Ge){var i=_i(t);return i.nodeType===8&&i.data===""?Ao(i):i}if(e&&((n=mt)==null?void 0:n.nodeType)!==3){var o=nn();return(a=mt)==null||a.before(o),hi(o),o}return mt}function M(t,e=1,i=!1){let o=Ge?mt:t;for(var n;e--;)n=o,o=Ao(o);if(!Ge)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=nn();return o===null?n==null||n.after(s):o.before(s),hi(s),s}return hi(o),o}function hl(t){t.textContent=""}var kv=new WeakSet,Jd=!1,$l=!1,_l=null,Os=!1,Vs=!1;function Vu(t){Vs=t}var bl=[],tc=[],Nt=null,Nn=!1;function ho(t){Nt=t}var Tt=null;function no(t){Tt=t}var pr=null;function gv(t){pr=t}var rn=null,Bn=0,Rn=null;function hv(t){Rn=t}var Lv=1,ic=0,Gr=!1,ml=null;function vl(){return++Lv}function us(t){var $,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&Tt!==null&&!Gr,l=i.length;if(s||d){var p=t,m=p.parent;for(n=0;n<l;n++)a=i[n],(s||!(($=a==null?void 0:a.reactions)!=null&&$.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);s&&(p.f^=512),d&&m!==null&&(m.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],us(a)&&Eu(a),a.wv>t.wv)return!0}(!o||Tt!==null&&!Gr)&&on(t,1024)}return!1}function Ev(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw Jd=!1,t}function Pv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ia(t,e,i,o){var m,$;if(Jd){if(i===null&&(Jd=!1),Pv(e))throw t;return}if(i!==null&&(Jd=!0),!ke||o===null||!(t instanceof Error)||kv.has(t)){Ev(t,e);return}kv.add(t);let n=[],a=(m=e.fn)==null?void 0:m.name;a&&n.push(a);let s=o;for(;s!==null;){if(ke){var d=($=s.function)==null?void 0:$[gi];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=gl?" ":" ";oo(t,"message",{value:t.message+`
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Vs,Rs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ge=!1;function io(t){Ge=t}var gt;function hi(t){if(t===null)throw Bs(),zr;return gt=t}function Bi(){return hi(ko(gt))}function g(t){if(Ge){if(ko(gt)!==null)throw Bs(),zr;gt=t}}function $e(t=1){if(Ge){for(var e=t,i=gt;e--;)i=ko(i);gt=i}}function ka(){for(var t=0,e=gt;;){if(e.nodeType===8){var i=e.data;if(i===Ps){if(t===0)return e;t-=1}else(i===ls||i===Es)&&(t+=1)}var o=ko(e);e.remove(),e=o}}function pe(t,e=null,i){var p,m;var o=null;if(ke&&Lr&&(o=Kr("CreatedAt")),typeof t!="object"||t===null||Bo in t)return t;let n=Wr(t);if(n!==wu&&n!==Xm)return t;var a=new Map,s=vr(t),d=zi(0);s&&a.set("length",zi(t.length,o));var l;if(ke)if(l={parent:e,owners:null},i){let y=(m=(p=i.v)==null?void 0:p[qr])==null?void 0:m.owners;l.owners=y?new Set(y):null}else l.owners=e===null?Et!==null?new Set([Et.function]):null:new Set;return new Proxy(t,{defineProperty(y,u,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&pv();var w=a.get(u);return w===void 0?(w=zi($.value,o),a.set(u,w)):D(w,pe($.value,l)),!0},deleteProperty(y,u){var $=a.get(u);if($===void 0)u in y&&a.set(u,zi(Ai,o));else{if(s&&typeof u=="string"){var w=a.get("length"),b=Number(u);Number.isInteger(b)&&b<w.v&&D(w,b)}D($,Ai),Cv(d)}return!0},get(y,u,$){var I;if(ke&&u===qr)return l;if(u===Bo)return t;var w=a.get(u),b=u in y;if(w===void 0&&(!b||(I=Vn(y,u))!=null&&I.writable)&&(w=zi(pe(b?y[u]:Ai,l),o),a.set(u,w)),w!==void 0){var C=r(w);if(ke){var T=C==null?void 0:C[qr];T&&(T==null?void 0:T.parent)!==l&&Vu(l,T)}return C===Ai?void 0:C}return Reflect.get(y,u,$)},getOwnPropertyDescriptor(y,u){var $=Reflect.getOwnPropertyDescriptor(y,u);if($&&"value"in $){var w=a.get(u);w&&($.value=r(w))}else if($===void 0){var b=a.get(u),C=b==null?void 0:b.v;if(b!==void 0&&C!==Ai)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return $},has(y,u){var C;if(ke&&u===qr||u===Bo)return!0;var $=a.get(u),w=$!==void 0&&$.v!==Ai||Reflect.has(y,u);if($!==void 0||It!==null&&(!w||(C=Vn(y,u))!=null&&C.writable)){$===void 0&&($=zi(w?pe(y[u],l):Ai,o),a.set(u,$));var b=r($);if(b===Ai)return!1}return w},set(y,u,$,w){var W;var b=a.get(u),C=u in y;if(s&&u==="length")for(var T=$;T<b.v;T+=1){var I=a.get(T+"");I!==void 0?D(I,Ai):T in y&&(I=zi(Ai,o),a.set(T+"",I))}if(b===void 0?(!C||(W=Vn(y,u))!=null&&W.writable)&&(b=zi(void 0,o),D(b,pe($,l)),a.set(u,b)):(C=b.v!==Ai,D(b,pe($,l))),ke){var M=$==null?void 0:$[qr];M&&(M==null?void 0:M.parent)!==l&&Vu(l,M),Tv(l)}var P=Reflect.getOwnPropertyDescriptor(y,u);if(P!=null&&P.set&&P.set.call(w,$),!C){if(s&&typeof u=="string"){var k=a.get("length"),R=Number(u);Number.isInteger(R)&&R>=k.v&&D(k,R+1)}Cv(d)}return!0},ownKeys(y){r(d);var u=Reflect.ownKeys(y).filter(b=>{var C=a.get(b);return C===void 0||C.v!==Ai});for(var[$,w]of a)w.v!==Ai&&!($ in y)&&u.push($);return u},setPrototypeOf(){fv()}})}function Cv(t,e=1){D(t,t.v+e)}function Zd(t){return t!==null&&typeof t=="object"&&Bo in t?t[Bo]:t}function Iv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(a,s){let d=i.call(this,a,s);if(d===-1){for(let l=s!=null?s:0;l<this.length;l+=1)if(Zd(this[l])===a){jd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s!=null?s:this.length-1);if(d===-1){for(let l=0;l<=(s!=null?s:this.length-1);l+=1)if(Zd(this[l])===a){jd("array.lastIndexOf(...)");break}}return d},t.includes=function(a,s){let d=n.call(this,a,s);if(!d){for(let l=0;l<this.length;l+=1)if(Zd(this[l])===a){jd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ns,kv,vl,Ev,Pv;function Xd(){if(Ns===void 0){Ns=window,kv=document,vl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Ev=Vn(e,"firstChild").get,Pv=Vn(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0,ke&&(t.__svelte_meta=null,Iv())}}function nn(t=""){return document.createTextNode(t)}function _i(t){return Ev.call(t)}function ko(t){return Pv.call(t)}function h(t,e){if(!Ge)return _i(t);var i=_i(gt);if(i===null)i=gt.appendChild(nn());else if(e&&i.nodeType!==3){var o=nn();return i==null||i.before(o),hi(o),o}return hi(i),i}function ue(t,e){var n,a;if(!Ge){var i=_i(t);return i.nodeType===8&&i.data===""?ko(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==3){var o=nn();return(a=gt)==null||a.before(o),hi(o),o}return gt}function A(t,e=1,i=!1){let o=Ge?gt:t;for(var n;e--;)n=o,o=ko(o);if(!Ge)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=nn();return o===null?n==null||n.after(s):o.before(s),hi(s),s}return hi(o),o}function gl(t){t.textContent=""}var Av=new WeakSet,Jd=!1,bl=!1,hl=null,Ds=!1,Ls=!1;function Nu(t){Ls=t}var _l=[],tc=[],Ot=null,Bn=!1;function _o(t){Ot=t}var It=null;function eo(t){It=t}var gr=null;function bv(t){gr=t}var rn=null,Dn=0,Rn=null;function $v(t){Rn=t}var Bv=1,ic=0,Yr=!1,fl=null;function ml(){return++Bv}function us(t){var y,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&It!==null&&!Yr,l=i.length;if(s||d){var p=t,m=p.parent;for(n=0;n<l;n++)a=i[n],(s||!((y=a==null?void 0:a.reactions)!=null&&y.includes(p)))&&((u=a.reactions)!=null?u:a.reactions=[]).push(p);s&&(p.f^=512),d&&m!==null&&(m.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],us(a)&&Mu(a),a.wv>t.wv)return!0}(!o||It!==null&&!Yr)&&on(t,1024)}return!1}function Mv(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch(o){i.f^=128}i=i.parent}throw Jd=!1,t}function Lv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Pa(t,e,i,o){var m,y;if(Jd){if(i===null&&(Jd=!1),Lv(e))throw t;return}if(i!==null&&(Jd=!0),!ke||o===null||!(t instanceof Error)||Av.has(t)){Mv(t,e);return}Av.add(t);let n=[],a=(m=e.fn)==null?void 0:m.name;a&&n.push(a);let s=o;for(;s!==null;){if(ke){var d=(y=s.function)==null?void 0:y[gi];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=vl?" ":" ";Ji(t,"message",{value:t.message+`
40
40
  ${n.map(u=>`
41
41
  ${l}in ${u}`).join("")}
42
- `}),oo(t,"component_stack",{value:n});let p=t.stack;if(p){let u=p.split(`
43
- `),_=[];for(let w=0;w<u.length;w++){let y=u[w];y.includes("svelte/src/internal")||_.push(y)}oo(t,"stack",{value:_.join(`
44
- `)})}if(Ev(t,e),Pv(e))throw t}function Vv(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?Vv(a,e,!1):e===a&&(i?on(a,2048):(a.f&1024)!==0&&on(a,4096),Sa(a))}}function jd(t){var _,w;var e=rn,i=Bn,o=Rn,n=Nt,a=Gr,s=pr,d=At,l=Nn,p=t.f;rn=null,Bn=0,Rn=null,Gr=(p&256)!==0&&(Nn||!Os||Nt===null),Nt=(p&96)===0?t:null,pr=null,xl(t.ctx),Nn=!1,ic++;try{var m=(0,t.fn)(),$=t.deps;if(rn!==null){var u;if(yl(t,Bn),$!==null&&Bn>0)for($.length=Bn+rn.length,u=0;u<rn.length;u++)$[Bn+u]=rn[u];else t.deps=$=rn;if(!Gr)for(u=Bn;u<$.length;u++)((w=(_=$[u]).reactions)!=null?w:_.reactions=[]).push(t)}else $!==null&&Bn<$.length&&(yl(t,Bn),$.length=Bn);if(Rr()&&Rn!==null&&!Nn&&$!==null&&(t.f&6146)===0)for(u=0;u<Rn.length;u++)Vv(Rn[u],t);return n!==null&&(ic++,Rn!==null&&(o===null?o=Rn:o.push(...Rn))),m}finally{rn=e,Bn=i,Rn=o,Nt=n,Gr=a,pr=s,xl(d),Nn=l}}function H1(t,e){let i=e.reactions;if(i!==null){var o=Gm.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(rn===null||!rn.includes(e))&&(on(e,4096),(e.f&768)===0&&(e.f^=512),Gd(e),yl(e,0))}function yl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)H1(t,i[o])}function wa(t){var e=t.f;if((e&16384)===0){on(t,1024);var i=Tt,o=At,n=Os;if(Tt=t,Os=!0,ke){var a=sn;wl(t.component_function)}try{(e&16)!==0?Rv(t):Nu(t),Ru(t);var s=jd(t);t.teardown=typeof s=="function"?s:null,t.wv=Lv;var d=t.deps;if(ke&&Vr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=vl(),l.trace_need_increase=void 0,l.trace_v=void 0)}ke&&tc.push(t)}catch(p){Ia(p,t,i,o||t.ctx)}finally{Os=n,Tt=i,ke&&wl(a)}}}function Av(){console.error("Last ten effects were: ",tc.slice(-10).map(t=>t.fn)),tc=[]}function F1(){try{ov()}catch(t){if(ke&&oo(t,"stack",{value:""}),_l!==null)if(ke)try{Ia(t,_l,null,null)}catch(e){throw Av(),e}else Ia(t,_l,null,null);else throw ke&&Av(),t}}function Mu(){var t=Os;try{var e=0;for(Os=!0;bl.length>0;){e++>1e3&&F1();var i=bl,o=i.length;bl=[];for(var n=0;n<o;n++){var a=z1(i[n]);U1(a)}}}finally{$l=!1,Os=t,_l=null,ke&&(tc=[]),ya.clear()}}function U1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{us(o)&&(wa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Du(o):o.fn=null))}catch(n){Ia(n,o,null,o.ctx)}}}function Sa(t){$l||($l=!0,queueMicrotask(Mu));for(var e=_l=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}bl.push(e)}function z1(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var s=Nt;try{Nt=i,us(i)&&wa(i)}catch(p){Ia(p,i,null,i.ctx)}finally{Nt=s}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function ka(t){var e;for(t&&($l=!0,Mu(),e=t()),xu();bl.length>0;)$l=!0,Mu(),xu();return e}async function _o(){await Promise.resolve(),ka()}function r(t){var e=t.f,i=(e&2)!==0;if(ml!==null&&ml.add(t),Nt!==null&&!Nn){pr!==null&&pr.includes(t)&&uv();var o=Nt.deps;t.rv<ic&&(t.rv=ic,rn===null&&o!==null&&o[Bn]===t?Bn++:rn===null?rn=[t]:(!Gr||!rn.includes(t))&&rn.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,us(n)&&Eu(n)),ke&&Vr&&fl!==null&&Nt!==null&&fl.reaction===Nt){if(t.debug)t.debug();else if(t.created){var s=fl.entries.get(t);s===void 0&&(s={read:[]},fl.entries.set(t,s)),s.read.push(Wr("TracedAt"))}}return Vs&&ya.has(t)?ya.get(t):t.v}function $t(t){var e=Nn;try{return Nn=!0,t()}finally{Nn=e}}var q1=-7169;function on(t,e){t.f=t.f&q1|e}function nc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Oo in t)oc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Oo in i&&oc(i)}}}function oc(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{oc(t[o],e)}catch(n){}let i=qr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Kd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Ou(t){Tt===null&&Nt===null&&iv(t),Nt!==null&&(Nt.f&256)!==0&&Tt===null&&tv(),Vs&&ev(t)}function W1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Hs(t,e,i,o=!0){var l;var n=Tt;if(ke)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:At,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(ke&&(a.component_function=sn),i)try{wa(a),a.f|=32768}catch(p){throw ro(a),p}else e!==null&&Sa(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&W1(a,n),Nt!==null&&(Nt.f&2)!==0)){var d=Nt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function an(t){let e=Hs(8,null,!1);return on(e,1024),e.teardown=t,e}function Ue(t){var n;Ou("$effect");var e=Tt!==null&&(Tt.f&32)!==0&&At!==null&&!At.m;if(ke&&oo(t,"name",{value:"$effect"}),e){var i=At;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Tt,reaction:Nt})}else{var o=_n(t);return o}}function Ea(t){return Ou("$effect.pre"),ke&&oo(t,"name",{value:"$effect.pre"}),bo(t)}function sc(t){let e=Hs(64,t,!0);return()=>{ro(e)}}function Dv(t){let e=Hs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?bn(e,()=>{ro(e),o(void 0)}):(ro(e),o(void 0))})}function _n(t){return Hs(4,t,!1)}function bo(t){return Hs(8,t,!0)}function k(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return ke&&oo(n,"name",{value:"{expression}"}),ao(n)}function ao(t,e=0){return Hs(24|e,t,!0)}function qi(t,e=!0){return Hs(40,t,!0,e)}function Ru(t){var e=t.teardown;if(e!==null){let i=Vs,o=Nt;Vu(!0),ho(null);try{e.call(null)}finally{Vu(i),ho(o)}}}function Nu(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:ro(i,e),i=o}}function Rv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&ro(e),e=i}}function ro(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:Ao(o);o.remove(),o=a}i=!0}Nu(t,e&&!i),yl(t,0),on(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Ru(t);var d=t.parent;d!==null&&d.first!==null&&Du(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Du(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 bn(t,e){var i=[];ac(t,i,!0),Hu(i,()=>{ro(t),e&&e()})}function Hu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function ac(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;ac(o,e,a?i:!1),o=n}}}function jr(t){Bv(t,!0)}function Bv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),us(t)&&(on(t,2048),Sa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Bv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var K1={},Q1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,G1=/@(.+):(\d+):(\d+)$/;function j1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
- `)){let n=(i=Q1.exec(o))!=null?i:G1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Ov(){var e;let t=(e=j1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=K1[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var lc=Symbol("ADD_OWNER");function Fu(t,e,i=!1,o=!1){if(t&&!i){let n=sn,a=t[zr];if(a&&!Uu(a,n)){let s=zu(a);e&&e[gi]!==n[gi]&&!o&&yv(n[gi],e[gi],s[gi])}}dc(t,e,new Set)}function Au(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function dc(t,e,i){var a;let o=t==null?void 0:t[zr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),lc in t&&t[lc])bo(()=>{t[lc](e)});else{var n=qr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Li;bo(()=>{let l=t[s];d!==l&&(d=l,dc(l,e,i))})}else dc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)dc(t[s],e,i)}}}function Uu(t,e){return t.owners===null?!0:t.owners.has(e)||gi in e&&[...t.owners].some(i=>i[gi]===e[gi])||t.parent!==null&&Uu(t.parent,e)}function zu(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:zu(t.parent)}var Y1=!1;function wv(t){if(Y1)return;let e=Ov();if(e&&!Uu(t,e)){let i=zu(t);i[gi]!==e[gi]?Pu(e[gi],i[gi]):Pu()}}function Pa(t){if(ke){let e=new Error(`lifecycle_outside_component
42
+ `}),Ji(t,"component_stack",{value:n});let p=t.stack;if(p){let u=p.split(`
43
+ `),$=[];for(let w=0;w<u.length;w++){let b=u[w];b.includes("svelte/src/internal")||$.push(b)}Ji(t,"stack",{value:$.join(`
44
+ `)})}if(Mv(t,e),Lv(e))throw t}function Nv(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var a=o[n];(a.f&2)!==0?Nv(a,e,!1):e===a&&(i?on(a,2048):(a.f&1024)!==0&&on(a,4096),Ia(a))}}function Yd(t){var $,w;var e=rn,i=Dn,o=Rn,n=Ot,a=Yr,s=gr,d=Et,l=Bn,p=t.f;rn=null,Dn=0,Rn=null,Yr=(p&256)!==0&&(Bn||!Ds||Ot===null),Ot=(p&96)===0?t:null,gr=null,yl(t.ctx),Bn=!1,ic++;try{var m=(0,t.fn)(),y=t.deps;if(rn!==null){var u;if($l(t,Dn),y!==null&&Dn>0)for(y.length=Dn+rn.length,u=0;u<rn.length;u++)y[Dn+u]=rn[u];else t.deps=y=rn;if(!Yr)for(u=Dn;u<y.length;u++)((w=($=y[u]).reactions)!=null?w:$.reactions=[]).push(t)}else y!==null&&Dn<y.length&&($l(t,Dn),y.length=Dn);if(Vr()&&Rn!==null&&!Bn&&y!==null&&(t.f&6146)===0)for(u=0;u<Rn.length;u++)Nv(Rn[u],t);return n!==null&&(ic++,Rn!==null&&(o===null?o=Rn:o.push(...Rn))),m}finally{rn=e,Dn=i,Rn=o,Ot=n,Yr=a,gr=s,yl(d),Bn=l}}function z1(t,e){let i=e.reactions;if(i!==null){var o=Zm.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(rn===null||!rn.includes(e))&&(on(e,4096),(e.f&768)===0&&(e.f^=512),Gd(e),$l(e,0))}function $l(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)z1(t,i[o])}function Ta(t){var e=t.f;if((e&16384)===0){on(t,1024);var i=It,o=Et,n=Ds;if(It=t,Ds=!0,ke){var a=sn;xl(t.component_function)}try{(e&16)!==0?Dv(t):Ou(t),Du(t);var s=Yd(t);t.teardown=typeof s=="function"?s:null,t.wv=Bv;var d=t.deps;if(ke&&Lr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=ml(),l.trace_need_increase=void 0,l.trace_v=void 0)}ke&&tc.push(t)}catch(p){Pa(p,t,i,o||t.ctx)}finally{Ds=n,It=i,ke&&xl(a)}}}function Vv(){console.error("Last ten effects were: ",tc.slice(-10).map(t=>t.fn)),tc=[]}function q1(){try{sv()}catch(t){if(ke&&Ji(t,"stack",{value:""}),hl!==null)if(ke)try{Pa(t,hl,null,null)}catch(e){throw Vv(),e}else Pa(t,hl,null,null);else throw ke&&Vv(),t}}function Ru(){var t=Ds;try{var e=0;for(Ds=!0;_l.length>0;){e++>1e3&&q1();var i=_l,o=i.length;_l=[];for(var n=0;n<o;n++){var a=K1(i[n]);W1(a)}}}finally{bl=!1,Ds=t,hl=null,ke&&(tc=[]),Sa.clear()}}function W1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if((o.f&24576)===0)try{us(o)&&(Ta(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Hu(o):o.fn=null))}catch(n){Pa(n,o,null,o.ctx)}}}function Ia(t){bl||(bl=!0,queueMicrotask(Ru));for(var e=hl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}_l.push(e)}function K1(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var s=Ot;try{Ot=i,us(i)&&Ta(i)}catch(p){Pa(p,i,null,i.ctx)}finally{Ot=s}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function Aa(t){var e;for(t&&(bl=!0,Ru(),e=t()),Cu();_l.length>0;)bl=!0,Ru(),Cu();return e}async function bo(){await Promise.resolve(),Aa()}function r(t){var e=t.f,i=(e&2)!==0;if(fl!==null&&fl.add(t),Ot!==null&&!Bn){gr!==null&&gr.includes(t)&&mv();var o=Ot.deps;t.rv<ic&&(t.rv=ic,rn===null&&o!==null&&o[Dn]===t?Dn++:rn===null?rn=[t]:(!Yr||!rn.includes(t))&&rn.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,a=n.parent;a!==null&&(a.f&256)===0&&(n.f^=256)}if(i&&(n=t,us(n)&&Mu(n)),ke&&Lr&&pl!==null&&Ot!==null&&pl.reaction===Ot){if(t.debug)t.debug();else if(t.created){var s=pl.entries.get(t);s===void 0&&(s={read:[]},pl.entries.set(t,s)),s.read.push(Kr("TracedAt"))}}return Ls&&Sa.has(t)?Sa.get(t):t.v}function xt(t){var e=Bn;try{return Bn=!0,t()}finally{Bn=e}}var Q1=-7169;function on(t,e){t.f=t.f&Q1|e}function nc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Bo in t)oc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Bo in i&&oc(i)}}}function oc(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{oc(t[o],e)}catch(n){}let i=Wr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Kd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Uu(t){It===null&&Ot===null&&rv(t),Ot!==null&&(Ot.f&256)!==0&&It===null&&nv(),Ls&&ov(t)}function G1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Os(t,e,i,o=!0){var l;var n=It;if(ke)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Et,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(ke&&(a.component_function=sn),i)try{Ta(a),a.f|=32768}catch(p){throw to(a),p}else e!==null&&Ia(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&G1(a,n),Ot!==null&&(Ot.f&2)!==0)){var d=Ot;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function an(t){let e=Os(8,null,!1);return on(e,1024),e.teardown=t,e}function Fe(t){var n;Uu("$effect");var e=It!==null&&(It.f&32)!==0&&Et!==null&&!Et.m;if(ke&&Ji(t,"name",{value:"$effect"}),e){var i=Et;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:It,reaction:Ot})}else{var o=yn(t);return o}}function Ma(t){return Uu("$effect.pre"),ke&&Ji(t,"name",{value:"$effect.pre"}),$o(t)}function sc(t){let e=Os(64,t,!0);return()=>{to(e)}}function Hv(t){let e=Os(64,t,!0);return(i={})=>new Promise(o=>{i.outro?xn(e,()=>{to(e),o(void 0)}):(to(e),o(void 0))})}function yn(t){return Os(4,t,!1)}function $o(t){return Os(8,t,!0)}function E(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return ke&&Ji(n,"name",{value:"{expression}"}),oo(n)}function oo(t,e=0){return Os(24|e,t,!0)}function qi(t,e=!0){return Os(40,t,!0,e)}function Du(t){var e=t.teardown;if(e!==null){let i=Ls,o=Ot;Nu(!0),_o(null);try{e.call(null)}finally{Nu(i),_o(o)}}}function Ou(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:to(i,e),i=o}}function Dv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&to(e),e=i}}function to(t,e=!0){var i=!1;if((e||(t.f&524288)!==0)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var a=o===n?null:ko(o);o.remove(),o=a}i=!0}Ou(t,e&&!i),$l(t,0),on(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Du(t);var d=t.parent;d!==null&&d.first!==null&&Hu(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Hu(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 xn(t,e){var i=[];ac(t,i,!0),zu(i,()=>{to(t),e&&e()})}function zu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function ac(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let s of t.transitions)(s.is_global||i)&&e.push(s);for(var o=t.first;o!==null;){var n=o.next,a=(o.f&65536)!==0||(o.f&32)!==0;ac(o,e,a?i:!1),o=n}}}function jr(t){Fv(t,!0)}function Fv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),us(t)&&(on(t,2048),Ia(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Fv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Y1={},j1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,Z1=/@(.+):(\d+):(\d+)$/;function X1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=j1.exec(o))!=null?i:Z1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Uv(){var e;let t=(e=X1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=Y1[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var lc=Symbol("ADD_OWNER");function qu(t,e,i=!1,o=!1){if(t&&!i){let n=sn,a=t[qr];if(a&&!Wu(a,n)){let s=Ku(a);e&&e[gi]!==n[gi]&&!o&&Sv(n[gi],e[gi],s[gi])}}dc(t,e,new Set)}function Vu(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function dc(t,e,i){var a;let o=t==null?void 0:t[qr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),lc in t&&t[lc])$o(()=>{t[lc](e)});else{var n=Wr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ai;$o(()=>{let l=t[s];d!==l&&(d=l,dc(l,e,i))})}else dc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)dc(t[s],e,i)}}}function Wu(t,e){return t.owners===null?!0:t.owners.has(e)||gi in e&&[...t.owners].some(i=>i[gi]===e[gi])||t.parent!==null&&Wu(t.parent,e)}function Ku(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Ku(t.parent)}var J1=!1;function Tv(t){if(J1)return;let e=Uv();if(e&&!Wu(t,e)){let i=Ku(t);i[gi]!==e[gi]?Lu(e[gi],i[gi]):Lu()}}function La(t){if(ke){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
- 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 At=null;function xl(t){At=t}var sn=null;function wl(t){sn=t}function Aa(t){return qu("getContext").get(t)}function Ma(t,e){let i=qu("setContext");return ke&&$t(()=>Fu(e,null,!0)),i.set(t,e),e}function Cl(){return qu("getAllContexts")}function U(t,e=!1,i){var o=At={p:At,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Lr&&!e&&(At.l={s:null,u:null,r1:[],r2:zi(!1)}),an(()=>{o.d=!0}),ke&&(At.function=i,sn=i)}function z(t){var s,d;let e=At;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Tt,o=Nt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];no(a.effect),ho(a.reaction),_n(a.fn)}}finally{no(i),ho(o)}}At=e.p,ke&&(sn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Rr(){return!Lr||At!==null&&At.l===null}function qu(t){var e;return At===null&&Pa(t),(e=At.c)!=null?e:At.c=new Map(X1(At)||void 0)}function X1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var J1=/\r/g;function Hv(t){t=t.replace(J1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Fv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var e0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Uv(t){return e0.includes(t)}var t0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var i0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function zv(t){var e;return t=t.toLowerCase(),(e=i0[t])!=null?e:t}var h6=[...t0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var o0=["touchstart","touchmove"];function qv(t){return o0.includes(t)}var n0=["textarea","script","style","title"];function Wv(t){return n0.includes(t)}function Wu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Kv=new Map;function Qv(t,e){var i=Kv.get(t);i||(i=new Set,Kv.set(t,i)),i.add(e)}function Ku(t,e){if(e){let i=document.body;t.autofocus=!0,Jo(()=>{document.activeElement===i&&t.focus()})}}function Tl(t){var e=Nt,i=Tt;ho(null),no(null);try{return t()}finally{ho(e),no(i)}}var Qu=new Set,cc=new Set;function Fs(t){if(!Ge)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Gu(t,e,i,o={}){function n(a){if(o.capture||La.call(e,a),!a.cancelBubble)return Tl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Jo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function xt(t,e,i,o,n){var a={capture:o,passive:n},s=Gu(t,e,i,a);(e===document.body||e===window||e===document)&&an(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)Qu.add(t[e]);for(var i of cc)i(t)}function La(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){oo(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Nt,$=Tt;ho(null),no(null);try{for(var u,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(ur(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(P){u?_.push(P):u=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let P of _)queueMicrotask(()=>{throw P});throw u}}finally{t.__root=e,delete t.currentTarget,ho(m),no($)}}}var s0;function Gv(){s0=void 0}function Va(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function $o(t,e){var i=Tt;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,n,a=!t.startsWith("<!>");return()=>{if(Ge)return $o(mt,null),mt;n===void 0&&(n=Va(a?t:"<!>"+t),i||(n=_i(n)));var s=o||gl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=_i(s),l=s.lastChild;$o(d,l)}else $o(s,s);return s}}function be(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ge)return $o(mt,null),mt;if(!s){var d=Va(a),l=_i(d);if(n)for(s=document.createDocumentFragment();_i(l);)s.appendChild(_i(l));else s=_i(l)}var p=s.cloneNode(!0);if(n){var m=_i(p),$=p.lastChild;$o(m,$)}else $o(p,p);return p}}function Nr(t=""){if(!Ge){var e=nn(t+"");return $o(e,e),e}var i=mt;return i.nodeType!==3&&(i.before(i=nn()),hi(i)),$o(i,i),i}function Fe(){if(Ge)return $o(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=nn();return t.append(e,i),$o(e,i),t}function b(t,e){if(Ge){Tt.nodes_end=mt,Di();return}t!==null&&t.before(e)}var Il=!0;function uc(t){Il=t}function ge(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Yr(t,e){return Yv(t,e)}function Yu(t,e){var s;Xd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ge,n=mt;try{for(var a=_i(i);a&&(a.nodeType!==8||a.data!==ls);)a=Ao(a);if(!a)throw Ur;so(!0),hi(a),Di();let d=Yv(t,{...e,anchor:a});if(mt===null||mt.nodeType!==8||mt.data!==As)throw Ds(),Ur;return so(!1),d}catch(d){if(d===Ur)return e.recover===!1&&nv(),Xd(),hl(i),so(!1),Yr(t,e);throw d}finally{so(o),hi(n),Gv()}}var Ra=new Map;function Yv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Xd();var d=new Set,l=$=>{for(var u=0;u<$.length;u++){var _=$[u];if(!d.has(_)){d.add(_);var w=qv(_);e.addEventListener(_,La,{passive:w});var y=Ra.get(_);y===void 0?(document.addEventListener(_,La,{passive:w}),Ra.set(_,1)):Ra.set(_,y+1)}}};l(ul(Qu)),cc.add(l);var p=void 0,m=Dv(()=>{var $=i!=null?i:e.appendChild(nn());return qi(()=>{if(a){U({});var u=At;u.c=a}n&&(o.$$events=n),Ge&&$o($,null),Il=s,p=t($,o)||{},Il=!0,Ge&&(Tt.nodes_end=mt),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,La);var _=Ra.get(u);--_===0?(document.removeEventListener(u,La),Ra.delete(u)):Ra.set(u,_)}cc.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return ju.set(p,m),p}var ju=new WeakMap;function Us(t,e){let i=ju.get(t);return i?(ju.delete(t),i(e)):(ke&&$v(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ge&&i===0&&Di();var n=t,a=null,s=null,d=Li,l=i>0?65536:0,p=!1;let m=(u,_=!0)=>{p=!0,$(_,u)},$=(u,_)=>{if(d===(d=u))return;let w=!1;if(Ge&&o!==-1){if(i===0){let C=n.data;C===ls?o=0:C===Ps?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ca(),hi(n),so(!1),w=!0,o=-1)}d?(a?jr(a):_&&(a=qi(()=>_(n))),s&&bn(s,()=>{s=null})):(s?jr(s):_&&(s=qi(()=>_(n,[i+1,o]))),a&&bn(a,()=>{a=null})),w&&so(!0)};ao(()=>{p=!1,e(m),p||$(null,null)},l),Ge&&(n=mt)}function zs(t,e,i){Ge&&Di();var o=t,n=Li,a,s=Rr()?Xm:ba;ao(()=>{s(n,n=e())&&(a&&bn(a),a=qi(()=>i(o)))}),Ge&&(o=mt)}var fs=null;function Ju(t){fs=t}function kl(t,e){return e}function c0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)ac(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;hl(l),l.append(i),o.clear(),ps(t,e[0].prev,e[a-1].next)}Hu(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),ps(t,m.prev,m.next)),ro(m.e,!d)}})}function Ci(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;s=Ge?hi(_i(p)):p.appendChild(nn())}Ge&&Di();var m=null,$=!1,u=mr(()=>{var _=i();return ur(_)?_:_==null?[]:ul(_)});ao(()=>{var _=r(u),w=_.length;if($&&w===0)return;$=w===0;let y=!1;if(Ge){var C=s.data===Ps;C!==(w===0)&&(s=Ca(),hi(s),so(!1),y=!0)}if(Ge){for(var T=null,E,P=0;P<w;P++){if(mt.nodeType===8&&mt.data===As){s=mt,y=!0,so(!1);break}var A=_[P],I=o(A,P);E=Jv(mt,d,T,null,A,I,P,n,e,i),d.items.set(I,E),T=E}w>0&&hi(Ca())}Ge||u0(_,d,s,n,e,o,i),a!==null&&(w===0?m?jr(m):m=qi(()=>a(s)):m!==null&&bn(m,()=>{m=null})),y&&so(!0),r(u)}),Ge&&(s=mt)}function u0(t,e,i,o,n,a,s){var le,Me,Ae,me;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,m=e.items,$=e.first,u=$,_,w=null,y,C=[],T=[],E,P,A,I;if(d)for(I=0;I<p;I+=1)E=t[I],P=a(E,I),A=m.get(P),A!==void 0&&((le=A.a)==null||le.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<p;I+=1){if(E=t[I],P=a(E,I),A=m.get(P),A===void 0){var V=u?u.e.nodes_start:i;w=Jv(V,e,w,w===null?e.first:w.next,E,P,I,o,n,s),m.set(P,w),C=[],T=[],u=w.next;continue}if(l&&p0(A,E,I,n),(A.e.f&8192)!==0&&(jr(A.e),d&&((Me=A.a)==null||Me.unfix(),(y!=null?y:y=new Set).delete(A))),A!==u){if(_!==void 0&&_.has(A)){if(C.length<T.length){var H=T[0],j;w=H.prev;var O=C[0],X=C[C.length-1];for(j=0;j<C.length;j+=1)Zv(C[j],H,i);for(j=0;j<T.length;j+=1)_.delete(T[j]);ps(e,O.prev,X.next),ps(e,w,O),ps(e,X,H),u=H,w=X,I-=1,C=[],T=[]}else _.delete(A),Zv(A,u,i),ps(e,A.prev,A.next),ps(e,A,w===null?e.first:w.next),ps(e,w,A),w=A;continue}for(C=[],T=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&(_!=null?_:_=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;A=u}C.push(A),w=A,u=A.next}if(u!==null||_!==void 0){for(var ne=_===void 0?[]:ul(_);u!==null;)(u.e.f&8192)===0&&ne.push(u),u=u.next;var Y=ne.length;if(Y>0){var fe=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<Y;I+=1)(Ae=ne[I].a)==null||Ae.measure();for(I=0;I<Y;I+=1)(me=ne[I].a)==null||me.fix()}c0(e,ne,fe,m)}}d&&Jo(()=>{var ae;if(y!==void 0)for(A of y)(ae=A.a)==null||ae.apply()}),Tt.first=e.first&&e.first.e,Tt.last=w&&w.e}function p0(t,e,i,o){(o&1)!==0&&xa(t.v,e),(o&2)!==0?xa(t.i,i):t.i=i}function Jv(t,e,i,o,n,a,s,d,l,p){var m=fs,$=(l&1)!==0,u=(l&16)===0,_=$?u?Qr(n):zi(n):n,w=(l&2)===0?s:zi(s);ke&&$&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};fs=y;try{return y.e=qi(()=>d(t,_,w,p),Ge),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{fs=m}}function Zv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Ao(a);n.before(a),a=s}}function ps(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function f0(t,e,i){var a,s;if(!e||e===Hv(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=sn)!=null&&s[gi]&&(o=`in ${sn[gi]}`),bv(Wu(o))}function El(t,e,i,o,n){var a=t,s="",d;ao(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ge&&Di();return}d!==void 0&&(ro(d),d=void 0),s!==""&&(d=qi(()=>{if(Ge){for(var p=mt.data,m=Di(),$=m;m!==null&&(m.nodeType!==8||m.data!=="");)$=m,m=Ao(m);if(m===null)throw Ds(),Ur;ke&&!n&&f0(m.parentNode,p,s),$o(mt,$),a=hi(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Va(u);if((i||o)&&(_=_i(_)),$o(_i(_),_.lastChild),i||o)for(;_i(_);)a.before(_i(_));else a.before(_)}))})}function he(t,e,...i){var o=t,n=oe,a;ao(()=>{n!==(n=e())&&(a&&(ro(a),a=null),ke&&n==null&&rv(),a=qi(()=>n(o,...i)))},65536),Ge&&(o=mt)}function Ti(t,e,i){Ge&&Di();var o=t,n,a;ao(()=>{n!==(n=e())&&(a&&(bn(a),a=null),n&&(a=qi(()=>i(o,n))))},65536),Ge&&(o=mt)}function qs(t,e,i,o,n,a){var w;let s=Ge;Ge&&Di();var d=ke&&a&&((w=At)==null?void 0:w.function[gi]),l,p,m=null;Ge&&mt.nodeType===1&&(m=mt,Di());var $=Ge?mt:t,u,_=fs;ao(()=>{let y=e()||null;var C=n?n():i||y==="svg"?_u:null;if(y!==l){var T=fs;Ju(_),u&&(y===null?bn(u,()=>{u=null,p=null}):y===p?jr(u):(ro(u),uc(!1))),y&&y!==p&&(u=qi(()=>{if(m=Ge?m:C?document.createElementNS(C,y):document.createElement(y),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),$o(m,m),o){Ge&&Wv(y)&&m.append(document.createComment(""));var E=Ge?_i(m):m.appendChild(nn());Ge&&(E===null?so(!1):hi(E)),o(m,E)}Tt.nodes_end=m,$.before(m)})),l=y,l&&(p=l),uc(!0),Ju(T)}},65536),s&&(so(!0),hi($))}var tp;function eg(t){return tp=t.target,new ep(t)}var Zr,ir,ep=class{constructor(e){as(this,Zr);as(this,ir);var a,s;var i=new Map,o=(d,l)=>{var p=Qr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===cl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var m;return B((m=i.get(l))!=null?m:o(l,p),p),Reflect.set(d,l,p)}});_a(this,ir,(e.hydrate?Yu:Yr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&ka(),_a(this,Zr,n.$$events);for(let d of Object.keys(Mi(this,ir)))d==="$set"||d==="$destroy"||d==="$on"||oo(this,d,{get(){return Mi(this,ir)[d]},set(l){Mi(this,ir)[d]=l},enumerable:!0});Mi(this,ir).$set=d=>{Object.assign(n,d)},Mi(this,ir).$destroy=()=>{Us(Mi(this,ir))}}$set(e){Mi(this,ir).$set(e)}$on(e,i){Mi(this,Zr)[e]=Mi(this,Zr)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,Zr)[e].push(o),()=>{Mi(this,Zr)[e]=Mi(this,Zr)[e].filter(n=>n!==o)}}$destroy(){Mi(this,ir).$destroy()}};Zr=new WeakMap,ir=new WeakMap;function q(t,e){Jo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=tp)==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),ke&&Qv(e.hash,d)}})}function tg(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=tg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ig(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=tg(t))&&(o&&(o+=" "),o+=e);return o}function Pl(t){return typeof t=="object"?ig(t):t!=null?t:""}var og=[...`
48
- \r\f\xA0\v\uFEFF`];function rg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||og.includes(o[s-1]))&&(d===o.length||og.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function ng(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function ip(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function sg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(ip)),n&&l.push(...Object.keys(n).map(ip));var p=0,m=-1;let y=t.length;for(var $=0;$<y;$++){var u=t[$];if(d?u==="/"&&t[$-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[$+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=$;else if(u===";"||$===y-1){if(m!==-1){var _=ip(t.substring(p,m).trim());if(!l.includes(_)){u!==";"&&$++;var w=t.substring(p,$).trim();i+=" "+w+";"}}p=$+1,m=-1}}}}return o&&(i+=ng(o)),n&&(i+=ng(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,a){var s=t.__className;if(Ge||s!==i){var d=rg(i,o,a);(!Ge||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function op(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function tt(t,e,i,o){var n=t.__style;if(Ge||n!==e){var a=sg(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(op(t,i==null?void 0:i[0],o[0]),op(t,i==null?void 0:i[1],o[1],"important")):op(t,i,o));return o}var Na=Symbol("class"),Da=Symbol("style"),dg=Symbol("is custom element"),cg=Symbol("is html");function ug(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function He(t,e,i,o){var n=pg(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||$0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Qm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&fg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ce(t,e,i,o,n=!1){var A;var a=pg(t),s=a[dg],d=!a[cg];let l=Ge&&s;l&&so(!1);var p=e||{},m=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Pl(i.class):(o||i[Na])&&(i.class=null),i[Da]&&((A=i.style)!=null||(i.style=null));var u=fg(t);for(let I in i){let V=i[I];if(m&&I==="value"&&V==null){t.value=t.__value="",p[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,_,V,o,e==null?void 0:e[Na],i[Na]),p[I]=V,p[Na]=i[Na];continue}if(I==="style"){tt(t,V,e==null?void 0:e[Da],i[Da]),p[I]=V,p[Da]=i[Da];continue}var w=p[I];if(V!==w){p[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},j="$$"+I,O=I.slice(2);var C=Uv(O);if(Fv(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,p[j],H),p[j]=null}if(V!=null)if(C)t[`__${O}`]=V,st([O]);else{let X=function(ne){p[I].call(this,ne)};var P=X;p[j]=Gu(O,t,X,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")He(t,I,V);else if(I==="autofocus")Ku(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&m)ug(t,V);else{var T=I;d||(T=zv(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,j=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=j?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=j?O:!1}}else t.removeAttribute(I);else E||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&He(t,T,V,n)}}}return l&&so(!0),p}function pg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[dg]:t.nodeName.includes("-"),[cg]:t.namespaceURI===zm}}var ag=new Map;function fg(t){var e=ag.get(t.nodeName);if(e)return e;ag.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Kd(o);for(var a in i)i[a].set&&e.push(a);o=qr(o)}return e}function $0(t,e,i){var o;ke&&(e==="srcset"&&y0(t,i)||np((o=t.getAttribute(e))!=null?o:"",i)||_v(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function np(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function lg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function y0(t,e){var i=lg(t.srcset),o=lg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(np(i[s][0],n)||np(n,i[s][0])))}var x0=Wd?()=>performance.now():()=>Date.now(),gr={tick:t=>(Wd?requestAnimationFrame:oe)(t),now:()=>x0(),tasks:new Set};function mg(){let t=gr.now();gr.tasks.forEach(e=>{e.c(t)||(gr.tasks.delete(e),e.f())}),gr.tasks.size!==0&&gr.tick(mg)}function vg(t){let e;return gr.tasks.size===0&&gr.tick(mg),{promise:new Promise(i=>{gr.tasks.add(e={c:t,f:i})}),abort(){gr.tasks.delete(e)}}}function pc(t,e){Tl(()=>{t.dispatchEvent(new CustomEvent(e))})}function T0(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 gg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=T0(n.trim());e[s]=a.trim()}return e}var I0=t=>t;function sp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,m=e.inert,$=e.style.overflow,u,_;function w(){var V;var A=Nt,I=Tt;ho(null),no(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{ho(A),no(I)}}var y={is_global:d,in(){var A;if(e.inert=m,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||u==null||u.abort(),pc(e,"introstart"),u=rp(e,w(),_,1,()=>{pc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),p=void 0;return}e.inert=!0,pc(e,"outrostart"),_=rp(e,w(),u,0,()=>{pc(e,"outroend"),A==null||A()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=Tt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Il){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&&_n(()=>{$t(()=>y.in())})}}function rp(t,e,i,o,n){var a=o===1;if(ds(e)){var s,d=!1;return Jo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=rp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:p,tick:m,easing:$=I0}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var _=gg(p(0,1));u.push(_,_)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(p)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),j=gg(p(H,1-H));P.push(j),A||(A=j.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*$(X/E)},m&&vg(()=>{if(y.playState!=="running")return!1;var X=w();return m(X,1-X),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var ms,Ba,Al,mc,hg,vc=class vc{constructor(e){as(this,mc);as(this,ms,new WeakMap);as(this,Ba);as(this,Al);_a(this,Al,e)}observe(e,i){var o=Mi(this,ms).get(e)||new Set;return o.add(i),Mi(this,ms).set(e,o),Fm(this,mc,hg).call(this).observe(e,Mi(this,Al)),()=>{var n=Mi(this,ms).get(e);n.delete(i),n.size===0&&(Mi(this,ms).delete(e),Mi(this,Ba).unobserve(e))}}};ms=new WeakMap,Ba=new WeakMap,Al=new WeakMap,mc=new WeakSet,hg=function(){var e;return(e=Mi(this,Ba))!=null?e:_a(this,Ba,new ResizeObserver(i=>{for(var o of i){vc.entries.set(o.target,o);for(var n of Mi(this,ms).get(o.target)||[])n(o)}}))},Ln(vc,"entries",new WeakMap);var ap=vc;var P0=new ap({box:"border-box"});function Dr(t,e,i){var o=P0.observe(t,()=>i(t[e]));_n(()=>($t(()=>i(t[e])),o))}function _g(t,e){return t===e||(t==null?void 0:t[Oo])===e}function pt(t={},e,i,o){return _n(()=>{var n,a;return bo(()=>{n=a,a=(o==null?void 0:o())||[],$t(()=>{t!==i(...a)&&(e(t,...a),n&&_g(i(...n),t)&&e(null,...n))})}),()=>{Jo(()=>{a&&_g(i(...a),t)&&e(null,...a)})}}),t}function hr(t=!1){let e=At,i=e.l.u;if(!i)return;let o=()=>nc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ea(()=>{bg(e,o),cs(i.b)}),Ue(()=>{let n=$t(()=>i.m.map(Ym));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ue(()=>{bg(e,o),cs(i.a)})}function bg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;lv(e)},set:o=>{i=o}})}};M0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var M0;function Ot(t){At===null&&Pa("onMount"),Lr&&At.l!==null?A0(At).m.push(t):Ue(()=>{let e=$t(t);if(typeof e=="function")return e})}function $n(t){At===null&&Pa("onDestroy"),Ot(()=>()=>$t(t))}function A0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Ml(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Oa=[];function or(t,e){return{subscribe:ce(t,e).subscribe}}function ce(t,e=oe){let i=null,o=new Set;function n(d){if(ba(t,d)&&(t=d,i)){let l=!Oa.length;for(let p of o)p[1](),Oa.push(p,t);if(l){for(let p=0;p<Oa.length;p+=2)Oa[p][0](Oa[p+1]);Oa.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function bi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return or(i,(s,d)=>{let l=!1,p=[],m=0,$=oe,u=()=>{if(m)return;$();let w=e(o?p[0]:p,s,d);a?s(w):$=typeof w=="function"?w:oe},_=n.map((w,y)=>Ml(w,C=>{p[y]=C,m&=~(1<<y),l&&u()},()=>{m|=1<<y}));return l=!0,u(),function(){cs(_),$(),l=!1}})}function we(t){let e;return Ml(t,i=>e=i)(),e}var gc=!1,lp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Qr(void 0),unsubscribe:oe};if(o.store!==t&&!(lp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Ml(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&lp in i?we(t):r(o.source)}function Be(){let t={};function e(){an(()=>{for(var i in t)t[i].unsubscribe();oo(t,lp,{enumerable:!1,value:!0})})}return[t,e]}function dp(t){var e=gc;try{return gc=!1,[t(),gc]}finally{gc=e}}var O0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&av(`${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 Ee(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},O0)}var H0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ds(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];ds(n)&&(n=n());let a=Vn(n,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(ds(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Vn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Oo||e===cl)return!1;for(let i of t.props)if(ds(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ds(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Xr(...t){return new Proxy({props:t},H0)}function $g(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,j;var n=(i&1)!==0,a=!Lr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=dp(()=>t[e]):p=t[e];var m=Oo in t||cl in t,$=s&&((j=(H=Vn(t,e))==null?void 0:H.set)!=null?j:m&&e in t&&(O=>t[e]=O))||void 0,u=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?u=$t(o):u=o),u);p===void 0&&o!==void 0&&($&&a&&sv(e),p=y(),$&&$(p));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?v:mr)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(u=void 0),O===void 0?u:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,X){return arguments.length>0?((!a||!X||E||l)&&$(X?C():O),O):C()}}var P=!1,A=!1,I=Qr(p),V=v(()=>{var O=C(),X=r(I);return P?(P=!1,A=!0,X):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=$a),function(O,X){if(ml!==null&&(P=A,C(),r(I)),arguments.length>0){let ne=X?r(V):a&&s?pe(O):O;if(!V.equals(ne)){if(P=!0,B(I,ne),w&&u!==void 0&&(u=ne),$g(V))return O;$t(()=>r(V))}return O}return $g(V)?V.v:r(V)}}var F0;typeof HTMLElement=="function"&&(F0=class extends HTMLElement{constructor(e,i,o){super();Ln(this,"$$ctor");Ln(this,"$$s");Ln(this,"$$c");Ln(this,"$$cn",!1);Ln(this,"$$d",{});Ln(this,"$$r",!1);Ln(this,"$$p_d",{});Ln(this,"$$l",{});Ln(this,"$$l_u",new Map);Ln(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=U0(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=cp(s,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=eg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=sc(()=>{bo(()=>{var a;this.$$r=!0;for(let s of bu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=cp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=cp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return bu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function cp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function U0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var yg="5";var xg,wg,Sg;typeof window!="undefined"&&((Sg=(wg=(xg=window.__svelte)!=null?xg:window.__svelte={}).v)!=null?Sg:wg.v=new Set).add(yg);import{clientChecker as Cm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as b1,safeStorage as Tx,throttleFn as Ix}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as kx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as q0,fillWithDefault as W0,VideoQuality as Cg}from"@vkontakte/videoplayer-shared/es2018";var K0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:q0.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:Cg.Q_480P,highQualityLimit:Cg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,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,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,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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},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}},Tg=t=>W0(t,K0),Ig=t=>Ma("ui-config",t),Ht=()=>Aa("ui-config");var Ll="vk_player_debug_panel_opened";var kg="videoplayer",Eg="videoplayer";var Br={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Pg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ag=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Mg=new Set(["ShiftRight","ShiftLeft"]);var Lg=["TIMELINE"],Vl=[...Lg,"GRAPH_BUTTON"],up=[...Lg,"PLAY_BUTTON"],Rl=[...Vl,"PLAY_BUTTON"];var Or=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Or||{}),Ks={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Vg,VERSION as Q0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as G0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as j0}from"@vkontakte/videoplayer-statistics/es2018";var hc="prod",Ha="1.1.64-dev.dae0b8a8.0";var Qs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Rg=Symbol("storeContext"),Ng=Symbol("microStoresContext"),Dg=(t,e)=>{Ma(Rg,t),Ma(Ng,e),hc==="dev"&&(window.app={store:t,microStores:e})},Se=()=>{let t=Aa(Rg);return Vg(t,"Store context is empty!"),t},lo=()=>{let t=Aa(Ng);return Vg(t,"MicroStores context is empty!"),t},Gt=(t,e)=>bc(t,t.getValue(),e),bc=(t,e,i)=>or(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Bg=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ha} (core: ${G0}, stat: ${j0}, shared: ${Q0})`,m=we(i.state.errorLog$),$=m.length?`
49
- `+m.map((H,j)=>{var Y;let O=`${j}) Type: ${H.id}
50
- `,X=`Message: ${H.message} (${H.thrown})
51
- `,ne=`Trace: ${(Y=H.thrown)==null?void 0:Y.stack}
52
- `;return O+X+ne}).join(`
53
- `):void 0,u=i.state.isAudioDisabled?"disabled":we(i.state.isAudioAvailable$)?void 0:"unavailable",_=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),y=[];_&&y.push(`Video: ${(I=_==null?void 0:_.codec)!=null?I:""}`+(_!=null&&_.hdr?" (HDR)":"")),w&&y.push(`Audio: ${(V=w==null?void 0:w.codec)!=null?V:""}`+(w!=null&&w.language?` (${w.language})`:""));let C={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:we(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${s}Kbps @ ${d}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:y.join(", "),Quality:`${l} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:u,Position:`${we(i.state.positionExact$)}s`,State:`${we(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:$};return Object.entries(C).filter(([H,j])=>j!==void 0).map(([H,j])=>`${H}: ${j}`).join(`
54
- `)},Og=(t,e,i)=>{var H,j,O,X;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s={version:Ha,viewport:`${n}x${a}`,volume:Math.round(we(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(s.videoSize=`${p.width}x${p.height}`);let m=o.currentBuffer$.getValue(),$=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();m&&($&&u?s.buffer=m.end-u:s.buffer=Math.max(m.end-we(i.state.positionExact$),0));let _=o.throughputEstimation$.getValue();_&&(s.speed=_);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let y=o.liveLatency$.getValue();y&&(s.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let E=we(i.vsid);typeof E=="string"&&(s.vsid=E);let P=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;P&&(s.videoCodec=P);let A=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.codec;A&&(s.audioCodec=A),((O=t.info.currentVideoStream$.getValue())==null?void 0:O.hdr)&&(s.hdr=!0);let V=(X=t.info.currentAudioStream$.getValue())==null?void 0:X.language;return V&&(s.audioLanguage=V),s},Hg=(t,e)=>Qs(t,e,"mp4"),Fg=t=>!t.type,Ug=t=>!!t.type,zg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},_c=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 mp,safeStorage as yo}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var qg="vk_player_prefer_traffic_saving_enabled",Wg="vk_player_preferred_volume",Kg="vk_player_prefer_volume_mute",vp="vk_player_preferred_quality",pp="vk_player_preferred_default_quality_settings",fp="vk_player_preferred_quality_settings_by_video",Qg="vk_player_preferred_stream_language",Gg="vk_player_preferred_rate",jg="vk_player_preferred_autoplay_next",Yg=t=>t>1?1:t<0?0:t,gp=t=>yo.set(Wg,Yg(t).toString(10)),$c=()=>{let t=yo.get(Wg);return mp(t)?void 0:Yg(parseFloat(t))},hp=(t,e)=>yo.set(vp,JSON.stringify({videoId:t,value:e})),Dl=()=>yo.remove(vp),_p=t=>{let e=yo.get(vp);if(mp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Dl();return}return o},bp=(t,e)=>{e?yo.set(t,"true"):yo.remove(t)},$p=t=>yo.get(t)==="true",yp=t=>bp(Kg,t),Zg=()=>$p(Kg),Nl=t=>bp(qg,t),xp=()=>$p(qg),Xg=()=>yo.get(Qg),wp=t=>yo.set(Qg,t),Jg=t=>yo.set(Gg,JSON.stringify({rate:t})),eh=()=>{let t=yo.get(Gg);if(mp(t))return;let{rate:e}=JSON.parse(t);return e},th=t=>bp(jg,t),ih=()=>$p(jg),Y0=()=>{let t=m=>{yo.set(pp,JSON.stringify(m))},e=()=>{try{let m=yo.get(pp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=yo.get(fp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{yo.set(fp,JSON.stringify(m))},n=m=>{p(m);let $=m?i():null;if($&&($==null?void 0:$.videoId)===m)return{...$,appliesTo:"to-video"};$&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{yo.remove(fp)},s=()=>{yo.remove(pp)},d=(m,$="as-default")=>{m.type==="exact_quality"?o(m):$==="as-default"?t(m):o(m)},l=m=>{let $=n(m);if($){switch($.type){case"traffic_saving":Nl(!0);break;case"exact_quality":hp(m,$.quality)}a(),s()}},p=m=>{let $=_p(m);if($){o({type:"exact_quality",videoId:m,quality:$});return}xp()&&t({type:"traffic_saving",videoId:m}),Nl(!1),Dl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:oh,migrateSettingsToLegacyWay:nh,savePreferredQualitySettings:yc,savePreferredDefaultQualitySettings:KP,removePreferredQualitySettingsByVideo:QP,getPreferredDefaultQualitySettings:xc}=Y0();import{PlaybackState as g1}from"@vkontakte/videoplayer-core/es2018";var Z0=be('<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 Bl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Z0();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}import{isNullable as ah,InterfaceLanguage as lh}from"@vkontakte/videoplayer-shared/es2018";var X0={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_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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",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}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",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_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",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",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_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",aria_label_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",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_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\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_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\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_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",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,
47
+ 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 Et=null;function yl(t){Et=t}var sn=null;function xl(t){sn=t}function Va(t){return Qu("getContext").get(t)}function Ra(t,e){let i=Qu("setContext");return ke&&xt(()=>qu(e,null,!0)),i.set(t,e),e}function Sl(){return Qu("getAllContexts")}function U(t,e=!1,i){var o=Et={p:Et,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Mr&&!e&&(Et.l={s:null,u:null,r1:[],r2:zi(!1)}),an(()=>{o.d=!0}),ke&&(Et.function=i,sn=i)}function z(t){var s,d;let e=Et;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=It,o=Ot;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];eo(a.effect),_o(a.reaction),yn(a.fn)}}finally{eo(i),_o(o)}}Et=e.p,ke&&(sn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Vr(){return!Mr||Et!==null&&Et.l===null}function Qu(t){var e;return Et===null&&La(t),(e=Et.c)!=null?e:Et.c=new Map(t0(Et)||void 0)}function t0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var i0=/\r/g;function zv(t){t=t.replace(i0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function qv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var o0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Wv(t){return o0.includes(t)}var n0=["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 r0={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 Kv(t){var e;return t=t.toLowerCase(),(e=r0[t])!=null?e:t}var $6=[...n0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var s0=["touchstart","touchmove"];function Qv(t){return s0.includes(t)}var a0=["textarea","script","style","title"];function Gv(t){return a0.includes(t)}function Gu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Yv=new Map;function jv(t,e){var i=Yv.get(t);i||(i=new Set,Yv.set(t,i)),i.add(e)}function Yu(t,e){if(e){let i=document.body;t.autofocus=!0,Jo(()=>{document.activeElement===i&&t.focus()})}}function Cl(t){var e=Ot,i=It;_o(null),eo(null);try{return t()}finally{_o(e),eo(i)}}var ju=new Set,cc=new Set;function Hs(t){if(!Ge)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Zu(t,e,i,o={}){function n(a){if(o.capture||Ba.call(e,a),!a.cancelBubble)return Cl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Jo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var a={capture:o,passive:n},s=Zu(t,e,i,a);(e===document.body||e===window||e===document)&&an(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)ju.add(t[e]);for(var i of cc)i(t)}function Ba(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){Ji(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ot,y=It;_o(null),eo(null);try{for(var u,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+o];if(b!=null&&(!a.disabled||t.target===a))if(vr(b)){var[C,...T]=b;C.apply(a,[t,...T])}else b.call(a,t)}catch(M){u?$.push(M):u=M}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let M of $)queueMicrotask(()=>{throw M});throw u}}finally{t.__root=e,delete t.currentTarget,_o(m),eo(y)}}}var d0;function Zv(){d0=void 0}function Na(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function yo(t,e){var i=It;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,n,a=!t.startsWith("<!>");return()=>{if(Ge)return yo(gt,null),gt;n===void 0&&(n=Na(a?t:"<!>"+t),i||(n=_i(n)));var s=o||vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=_i(s),l=s.lastChild;yo(d,l)}else yo(s,s);return s}}function ye(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ge)return yo(gt,null),gt;if(!s){var d=Na(a),l=_i(d);if(n)for(s=document.createDocumentFragment();_i(l);)s.appendChild(_i(l));else s=_i(l)}var p=s.cloneNode(!0);if(n){var m=_i(p),y=p.lastChild;yo(m,y)}else yo(p,p);return p}}function Rr(t=""){if(!Ge){var e=nn(t+"");return yo(e,e),e}var i=gt;return i.nodeType!==3&&(i.before(i=nn()),hi(i)),yo(i,i),i}function Oe(){if(Ge)return yo(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=nn();return t.append(e,i),yo(e,i),t}function _(t,e){if(Ge){It.nodes_end=gt,Bi();return}t!==null&&t.before(e)}var Tl=!0;function uc(t){Tl=t}function me(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Zr(t,e){return Jv(t,e)}function Ju(t,e){var s;Xd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ge,n=gt;try{for(var a=_i(i);a&&(a.nodeType!==8||a.data!==ls);)a=ko(a);if(!a)throw zr;io(!0),hi(a),Bi();let d=Jv(t,{...e,anchor:a});if(gt===null||gt.nodeType!==8||gt.data!==Ps)throw Bs(),zr;return io(!1),d}catch(d){if(d===zr)return e.recover===!1&&av(),Xd(),gl(i),io(!1),Zr(t,e);throw d}finally{io(o),hi(n),Zv()}}var Da=new Map;function Jv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Xd();var d=new Set,l=y=>{for(var u=0;u<y.length;u++){var $=y[u];if(!d.has($)){d.add($);var w=Qv($);e.addEventListener($,Ba,{passive:w});var b=Da.get($);b===void 0?(document.addEventListener($,Ba,{passive:w}),Da.set($,1)):Da.set($,b+1)}}};l(cl(ju)),cc.add(l);var p=void 0,m=Hv(()=>{var y=i!=null?i:e.appendChild(nn());return qi(()=>{if(a){U({});var u=Et;u.c=a}n&&(o.$$events=n),Ge&&yo(y,null),Tl=s,p=t(y,o)||{},Tl=!0,Ge&&(It.nodes_end=gt),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ba);var $=Da.get(u);--$===0?(document.removeEventListener(u,Ba),Da.delete(u)):Da.set(u,$)}cc.delete(l),y!==i&&((w=y.parentNode)==null||w.removeChild(y))}});return Xu.set(p,m),p}var Xu=new WeakMap;function Fs(t,e){let i=Xu.get(t);return i?(Xu.delete(t),i(e)):(ke&&wv(),Promise.resolve())}function B(t,e,[i,o]=[0,0]){Ge&&i===0&&Bi();var n=t,a=null,s=null,d=Ai,l=i>0?65536:0,p=!1;let m=(u,$=!0)=>{p=!0,y($,u)},y=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ge&&o!==-1){if(i===0){let C=n.data;C===ls?o=0:C===Es?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=ka(),hi(n),io(!1),w=!0,o=-1)}d?(a?jr(a):$&&(a=qi(()=>$(n))),s&&xn(s,()=>{s=null})):(s?jr(s):$&&(s=qi(()=>$(n,[i+1,o]))),a&&xn(a,()=>{a=null})),w&&io(!0)};oo(()=>{p=!1,e(m),p||y(null,null)},l),Ge&&(n=gt)}function Us(t,e,i){Ge&&Bi();var o=t,n=Ai,a,s=Vr()?tv:xa;oo(()=>{s(n,n=e())&&(a&&xn(a),a=qi(()=>i(o)))}),Ge&&(o=gt)}var fs=null;function ip(t){fs=t}function Il(t,e){return e}function f0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)ac(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;gl(l),l.append(i),o.clear(),ps(t,e[0].prev,e[a-1].next)}zu(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),ps(t,m.prev,m.next)),to(m.e,!d)}})}function Si(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;s=Ge?hi(_i(p)):p.appendChild(nn())}Ge&&Bi();var m=null,y=!1,u=_r(()=>{var $=i();return vr($)?$:$==null?[]:cl($)});oo(()=>{var $=r(u),w=$.length;if(y&&w===0)return;y=w===0;let b=!1;if(Ge){var C=s.data===Es;C!==(w===0)&&(s=ka(),hi(s),io(!1),b=!0)}if(Ge){for(var T=null,I,M=0;M<w;M++){if(gt.nodeType===8&&gt.data===Ps){s=gt,b=!0,io(!1);break}var P=$[M],k=o(P,M);I=ig(gt,d,T,null,P,k,M,n,e,i),d.items.set(k,I),T=I}w>0&&hi(ka())}Ge||m0($,d,s,n,e,o,i),a!==null&&(w===0?m?jr(m):m=qi(()=>a(s)):m!==null&&xn(m,()=>{m=null})),b&&io(!0),r(u)}),Ge&&(s=gt)}function m0(t,e,i,o,n,a,s){var de,Ae,Me,ge;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,m=e.items,y=e.first,u=y,$,w=null,b,C=[],T=[],I,M,P,k;if(d)for(k=0;k<p;k+=1)I=t[k],M=a(I,k),P=m.get(M),P!==void 0&&((de=P.a)==null||de.measure(),(b!=null?b:b=new Set).add(P));for(k=0;k<p;k+=1){if(I=t[k],M=a(I,k),P=m.get(M),P===void 0){var R=u?u.e.nodes_start:i;w=ig(R,e,w,w===null?e.first:w.next,I,M,k,o,n,s),m.set(M,w),C=[],T=[],u=w.next;continue}if(l&&v0(P,I,k,n),(P.e.f&8192)!==0&&(jr(P.e),d&&((Ae=P.a)==null||Ae.unfix(),(b!=null?b:b=new Set).delete(P))),P!==u){if($!==void 0&&$.has(P)){if(C.length<T.length){var W=T[0],Y;w=W.prev;var F=C[0],Q=C[C.length-1];for(Y=0;Y<C.length;Y+=1)eg(C[Y],W,i);for(Y=0;Y<T.length;Y+=1)$.delete(T[Y]);ps(e,F.prev,Q.next),ps(e,w,F),ps(e,Q,W),u=W,w=Q,k-=1,C=[],T=[]}else $.delete(P),eg(P,u,i),ps(e,P.prev,P.next),ps(e,P,w===null?e.first:w.next),ps(e,w,P),w=P;continue}for(C=[],T=[];u!==null&&u.k!==M;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;P=u}C.push(P),w=P,u=P.next}if(u!==null||$!==void 0){for(var oe=$===void 0?[]:cl($);u!==null;)(u.e.f&8192)===0&&oe.push(u),u=u.next;var Z=oe.length;if(Z>0){var re=(n&4)!==0&&p===0?i:null;if(d){for(k=0;k<Z;k+=1)(Me=oe[k].a)==null||Me.measure();for(k=0;k<Z;k+=1)(ge=oe[k].a)==null||ge.fix()}f0(e,oe,re,m)}}d&&Jo(()=>{var se;if(b!==void 0)for(P of b)(se=P.a)==null||se.apply()}),It.first=e.first&&e.first.e,It.last=w&&w.e}function v0(t,e,i,o){(o&1)!==0&&Ca(t.v,e),(o&2)!==0?Ca(t.i,i):t.i=i}function ig(t,e,i,o,n,a,s,d,l,p){var m=fs,y=(l&1)!==0,u=(l&16)===0,$=y?u?Gr(n):zi(n):n,w=(l&2)===0?s:zi(s);ke&&y&&($.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var b={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};fs=b;try{return b.e=qi(()=>d(t,$,w,p),Ge),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{fs=m}}function eg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=ko(a);n.before(a),a=s}}function ps(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 g0(t,e,i){var a,s;if(!e||e===zv(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=sn)!=null&&s[gi]&&(o=`in ${sn[gi]}`),xv(Gu(o))}function kl(t,e,i,o,n){var a=t,s="",d;oo(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ge&&Bi();return}d!==void 0&&(to(d),d=void 0),s!==""&&(d=qi(()=>{if(Ge){for(var p=gt.data,m=Bi(),y=m;m!==null&&(m.nodeType!==8||m.data!=="");)y=m,m=ko(m);if(m===null)throw Bs(),zr;ke&&!n&&g0(m.parentNode,p,s),yo(gt,y),a=hi(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var $=Na(u);if((i||o)&&($=_i($)),yo(_i($),$.lastChild),i||o)for(;_i($);)a.before(_i($));else a.before($)}))})}function ve(t,e,...i){var o=t,n=ie,a;oo(()=>{n!==(n=e())&&(a&&(to(a),a=null),ke&&n==null&&lv(),a=qi(()=>n(o,...i)))},65536),Ge&&(o=gt)}function Ci(t,e,i){Ge&&Bi();var o=t,n,a;oo(()=>{n!==(n=e())&&(a&&(xn(a),a=null),n&&(a=qi(()=>i(o,n))))},65536),Ge&&(o=gt)}function zs(t,e,i,o,n,a){var w;let s=Ge;Ge&&Bi();var d=ke&&a&&((w=Et)==null?void 0:w.function[gi]),l,p,m=null;Ge&&gt.nodeType===1&&(m=gt,Bi());var y=Ge?gt:t,u,$=fs;oo(()=>{let b=e()||null;var C=n?n():i||b==="svg"?yu:null;if(b!==l){var T=fs;ip($),u&&(b===null?xn(u,()=>{u=null,p=null}):b===p?jr(u):(to(u),uc(!1))),b&&b!==p&&(u=qi(()=>{if(m=Ge?m:C?document.createElementNS(C,b):document.createElement(b),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),yo(m,m),o){Ge&&Gv(b)&&m.append(document.createComment(""));var I=Ge?_i(m):m.appendChild(nn());Ge&&(I===null?io(!1):hi(I)),o(m,I)}It.nodes_end=m,y.before(m)})),l=b,l&&(p=l),uc(!0),ip(T)}},65536),s&&(io(!0),hi(y))}var np;function og(t){return np=t.target,new op(t)}var Xr,rr,op=class{constructor(e){as(this,Xr);as(this,rr);var a,s;var i=new Map,o=(d,l)=>{var p=Gr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===dl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var m;return D((m=i.get(l))!=null?m:o(l,p),p),Reflect.set(d,l,p)}});ya(this,rr,(e.hydrate?Ju:Zr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Aa(),ya(this,Xr,n.$$events);for(let d of Object.keys(Pi(this,rr)))d==="$set"||d==="$destroy"||d==="$on"||Ji(this,d,{get(){return Pi(this,rr)[d]},set(l){Pi(this,rr)[d]=l},enumerable:!0});Pi(this,rr).$set=d=>{Object.assign(n,d)},Pi(this,rr).$destroy=()=>{Fs(Pi(this,rr))}}$set(e){Pi(this,rr).$set(e)}$on(e,i){Pi(this,Xr)[e]=Pi(this,Xr)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,Xr)[e].push(o),()=>{Pi(this,Xr)[e]=Pi(this,Xr)[e].filter(n=>n!==o)}}$destroy(){Pi(this,rr).$destroy()}};Xr=new WeakMap,rr=new WeakMap;function K(t,e){Jo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=np)==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),ke&&jv(e.hash,d)}})}function ng(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=ng(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function rg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=ng(t))&&(o&&(o+=" "),o+=e);return o}function El(t){return typeof t=="object"?rg(t):t!=null?t:""}var sg=[...`
48
+ \r\f\xA0\v\uFEFF`];function lg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||sg.includes(o[s-1]))&&(d===o.length||sg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function ag(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function rp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function dg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(rp)),n&&l.push(...Object.keys(n).map(rp));var p=0,m=-1;let b=t.length;for(var y=0;y<b;y++){var u=t[y];if(d?u==="/"&&t[y-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[y+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=y;else if(u===";"||y===b-1){if(m!==-1){var $=rp(t.substring(p,m).trim());if(!l.includes($)){u!==";"&&y++;var w=t.substring(p,y).trim();i+=" "+w+";"}}p=y+1,m=-1}}}}return o&&(i+=ag(o)),n&&(i+=ag(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Ge||s!==i){var d=lg(i,o,a);(!Ge||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function sp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function rt(t,e,i,o){var n=t.__style;if(Ge||n!==e){var a=dg(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(sp(t,i==null?void 0:i[0],o[0]),sp(t,i==null?void 0:i[1],o[1],"important")):sp(t,i,o));return o}var Oa=Symbol("class"),Ha=Symbol("style"),pg=Symbol("is custom element"),fg=Symbol("is html");function mg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Be(t,e,i,o){var n=vg(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||w0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[jm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&gg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Te(t,e,i,o,n=!1){var P;var a=vg(t),s=a[pg],d=!a[fg];let l=Ge&&s;l&&io(!1);var p=e||{},m=t.tagName==="OPTION";for(var y in e)y in i||(i[y]=null);i.class?i.class=El(i.class):(o||i[Oa])&&(i.class=null),i[Ha]&&((P=i.style)!=null||(i.style=null));var u=gg(t);for(let k in i){let R=i[k];if(m&&k==="value"&&R==null){t.value=t.__value="",p[k]=R;continue}if(k==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,R,o,e==null?void 0:e[Oa],i[Oa]),p[k]=R,p[Oa]=i[Oa];continue}if(k==="style"){rt(t,R,e==null?void 0:e[Ha],i[Ha]),p[k]=R,p[Ha]=i[Ha];continue}var w=p[k];if(R!==w){p[k]=R;var b=k[0]+k[1];if(b!=="$$")if(b==="on"){let W={},Y="$$"+k,F=k.slice(2);var C=Wv(F);if(qv(F)&&(F=F.slice(0,-7),W.capture=!0),!C&&w){if(R!=null)continue;t.removeEventListener(F,p[Y],W),p[Y]=null}if(R!=null)if(C)t[`__${F}`]=R,st([F]);else{let Q=function(oe){p[k].call(this,oe)};var M=Q;p[Y]=Zu(F,t,Q,W)}else C&&(t[`__${F}`]=void 0)}else if(k==="style")Be(t,k,R);else if(k==="autofocus")Yu(t,!!R);else if(!s&&(k==="__value"||k==="value"&&R!=null))t.value=t.__value=R;else if(k==="selected"&&m)mg(t,R);else{var T=k;d||(T=Kv(T));var I=T==="defaultValue"||T==="defaultChecked";if(R==null&&!s&&!I)if(a[k]=null,T==="value"||T==="checked"){let W=t,Y=e===void 0;if(T==="value"){let F=W.defaultValue;W.removeAttribute(T),W.defaultValue=F,W.value=W.__value=Y?F:null}else{let F=W.defaultChecked;W.removeAttribute(T),W.defaultChecked=F,W.checked=Y?F:!1}}else t.removeAttribute(k);else I||u.includes(T)&&(s||typeof R!="string")?t[T]=R:typeof R!="function"&&Be(t,T,R,n)}}}return l&&io(!0),p}function vg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[pg]:t.nodeName.includes("-"),[fg]:t.namespaceURI===Km}}var cg=new Map;function gg(t){var e=cg.get(t.nodeName);if(e)return e;cg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Kd(o);for(var a in i)i[a].set&&e.push(a);o=Wr(o)}return e}function w0(t,e,i){var o;ke&&(e==="srcset"&&S0(t,i)||ap((o=t.getAttribute(e))!=null?o:"",i)||yv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function ap(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ug(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function S0(t,e){var i=ug(t.srcset),o=ug(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(ap(i[s][0],n)||ap(n,i[s][0])))}var C0=Wd?()=>performance.now():()=>Date.now(),$r={tick:t=>(Wd?requestAnimationFrame:ie)(t),now:()=>C0(),tasks:new Set};function hg(){let t=$r.now();$r.tasks.forEach(e=>{e.c(t)||($r.tasks.delete(e),e.f())}),$r.tasks.size!==0&&$r.tick(hg)}function _g(t){let e;return $r.tasks.size===0&&$r.tick(hg),{promise:new Promise(i=>{$r.tasks.add(e={c:t,f:i})}),abort(){$r.tasks.delete(e)}}}function pc(t,e){Cl(()=>{t.dispatchEvent(new CustomEvent(e))})}function E0(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 bg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=E0(n.trim());e[s]=a.trim()}return e}var P0=t=>t;function dp(t,e,i,o){var M;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,m=e.inert,y=e.style.overflow,u,$;function w(){var R;var P=Ot,k=It;_o(null),eo(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{_o(P),eo(k)}}var b={is_global:d,in(){var P;if(e.inert=m,!n){$==null||$.abort(),(P=$==null?void 0:$.reset)==null||P.call($);return}a||u==null||u.abort(),pc(e,"introstart"),u=lp(e,w(),$,1,()=>{pc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=y})},out(P){if(!a){P==null||P(),p=void 0;return}e.inert=!0,pc(e,"outrostart"),$=lp(e,w(),u,0,()=>{pc(e,"outroend"),P==null||P()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},C=It;if(((M=C.transitions)!=null?M:C.transitions=[]).push(b),n&&Tl){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&yn(()=>{xt(()=>b.in())})}}function lp(t,e,i,o,n){var a=o===1;if(ds(e)){var s,d=!1;return Jo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=lp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:p,tick:m,easing:y=P0}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var $=bg(p(0,1));u.push($,$)}var w=()=>1-o,b=t.animate(u,{duration:l});return b.onfinish=()=>{var F;var C=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var P=!1;if(p)for(var k=Math.ceil(I/16.666666666666668),R=0;R<=k;R+=1){var W=C+T*y(R/k),Y=bg(p(W,1-W));M.push(Y),P||(P=Y.overflow==="hidden")}P&&(t.style.overflow="hidden"),w=()=>{var Q=b.currentTime;return C+T*y(Q/I)},m&&_g(()=>{if(b.playState!=="running")return!1;var Q=w();return m(Q,1-Q),!0})}b=t.animate(M,{duration:I,fill:"forwards"}),b.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var ms,Fa,Pl,mc,$g,vc=class vc{constructor(e){as(this,mc);as(this,ms,new WeakMap);as(this,Fa);as(this,Pl);ya(this,Pl,e)}observe(e,i){var o=Pi(this,ms).get(e)||new Set;return o.add(i),Pi(this,ms).set(e,o),qm(this,mc,$g).call(this).observe(e,Pi(this,Pl)),()=>{var n=Pi(this,ms).get(e);n.delete(i),n.size===0&&(Pi(this,ms).delete(e),Pi(this,Fa).unobserve(e))}}};ms=new WeakMap,Fa=new WeakMap,Pl=new WeakMap,mc=new WeakSet,$g=function(){var e;return(e=Pi(this,Fa))!=null?e:ya(this,Fa,new ResizeObserver(i=>{for(var o of i){vc.entries.set(o.target,o);for(var n of Pi(this,ms).get(o.target)||[])n(o)}}))},Ln(vc,"entries",new WeakMap);var cp=vc;var L0=new cp({box:"border-box"});function Br(t,e,i){var o=L0.observe(t,()=>i(t[e]));yn(()=>(xt(()=>i(t[e])),o))}function yg(t,e){return t===e||(t==null?void 0:t[Bo])===e}function vt(t={},e,i,o){return yn(()=>{var n,a;return $o(()=>{n=a,a=(o==null?void 0:o())||[],xt(()=>{t!==i(...a)&&(e(t,...a),n&&yg(i(...n),t)&&e(null,...n))})}),()=>{Jo(()=>{a&&yg(i(...a),t)&&e(null,...a)})}}),t}function yr(t=!1){let e=Et,i=e.l.u;if(!i)return;let o=()=>nc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ma(()=>{xg(e,o),cs(i.b)}),Fe(()=>{let n=xt(()=>i.m.map(Jm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{xg(e,o),cs(i.a)})}function xg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;uv(e)},set:o=>{i=o}})}};R0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var R0;function Ht(t){Et===null&&La("onMount"),Mr&&Et.l!==null?V0(Et).m.push(t):Fe(()=>{let e=xt(t);if(typeof e=="function")return e})}function wn(t){Et===null&&La("onDestroy"),Ht(()=>()=>xt(t))}function V0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Al(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=xt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ua=[];function sr(t,e){return{subscribe:ce(t,e).subscribe}}function ce(t,e=ie){let i=null,o=new Set;function n(d){if(xa(t,d)&&(t=d,i)){let l=!Ua.length;for(let p of o)p[1](),Ua.push(p,t);if(l){for(let p=0;p<Ua.length;p+=2)Ua[p][0](Ua[p+1]);Ua.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function bi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return sr(i,(s,d)=>{let l=!1,p=[],m=0,y=ie,u=()=>{if(m)return;y();let w=e(o?p[0]:p,s,d);a?s(w):y=typeof w=="function"?w:ie},$=n.map((w,b)=>Al(w,C=>{p[b]=C,m&=~(1<<b),l&&u()},()=>{m|=1<<b}));return l=!0,u(),function(){cs($),y(),l=!1}})}function Se(t){let e;return Al(t,i=>e=i)(),e}var gc=!1,up=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Gr(void 0),unsubscribe:ie};if(o.store!==t&&!(up in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=Al(t,s=>{n?o.source.v=s:D(o.source,s)}),n=!1}return t&&up in i?Se(t):r(o.source)}function Ne(){let t={};function e(){an(()=>{for(var i in t)t[i].unsubscribe();Ji(t,up,{enumerable:!1,value:!0})})}return[t,e]}function pp(t){var e=gc;try{return gc=!1,[t(),gc]}finally{gc=e}}var U0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&cv(`${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 Pe(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},U0)}var z0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ds(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];ds(n)&&(n=n());let a=Vn(n,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(ds(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Vn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===dl)return!1;for(let i of t.props)if(ds(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ds(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Jr(...t){return new Proxy({props:t},z0)}function wg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var W,Y;var n=(i&1)!==0,a=!Mr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=pp(()=>t[e]):p=t[e];var m=Bo in t||dl in t,y=s&&((Y=(W=Vn(t,e))==null?void 0:W.set)!=null?Y:m&&e in t&&(F=>t[e]=F))||void 0,u=o,$=!0,w=!1,b=()=>(w=!0,$&&($=!1,d?u=xt(o):u=o),u);p===void 0&&o!==void 0&&(y&&a&&dv(e),p=b(),y&&y(p));var C;if(a)C=()=>{var F=t[e];return F===void 0?b():($=!0,w=!1,F)};else{var T=(n?v:_r)(()=>t[e]);T.f|=131072,C=()=>{var F=r(T);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0)return C;if(y){var I=t.$$legacy;return function(F,Q){return arguments.length>0?((!a||!Q||I||l)&&y(Q?C():F),F):C()}}var M=!1,P=!1,k=Gr(p),R=v(()=>{var F=C(),Q=r(k);return M?(M=!1,P=!0,Q):(P=!1,k.v=F)});return s&&r(R),n||(R.equals=wa),function(F,Q){if(fl!==null&&(M=P,C(),r(k)),arguments.length>0){let oe=Q?r(R):a&&s?pe(F):F;if(!R.equals(oe)){if(M=!0,D(k,oe),w&&u!==void 0&&(u=oe),wg(R))return F;xt(()=>r(R))}return F}return wg(R)?R.v:r(R)}}var q0;typeof HTMLElement=="function"&&(q0=class extends HTMLElement{constructor(e,i,o){super();Ln(this,"$$ctor");Ln(this,"$$s");Ln(this,"$$c");Ln(this,"$$cn",!1);Ln(this,"$$d",{});Ln(this,"$$r",!1);Ln(this,"$$p_d",{});Ln(this,"$$l",{});Ln(this,"$$l_u",new Map);Ln(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),_(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=W0(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=fp(s,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=og({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=sc(()=>{$o(()=>{var a;this.$$r=!0;for(let s of xu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=fp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=fp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return xu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function fp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function W0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Sg="5";var Cg,Tg,Ig;typeof window!="undefined"&&((Ig=(Tg=(Cg=window.__svelte)!=null?Cg:window.__svelte={}).v)!=null?Ig:Tg.v=new Set).add(Sg);import{clientChecker as km}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as x1,safeStorage as Ex,throttleFn as Px}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ax}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as Q0,fillWithDefault as G0,VideoQuality as kg}from"@vkontakte/videoplayer-shared/es2018";var Y0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Q0.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:kg.Q_480P,highQualityLimit:kg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,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,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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},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}},Eg=t=>G0(t,Y0),Pg=t=>Ra("ui-config",t),Ft=()=>Va("ui-config");var Ml="vk_player_debug_panel_opened";var Ag="videoplayer",Mg="videoplayer";var Nr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Lg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Vg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Rg=new Set(["ShiftRight","ShiftLeft"]);var Bg=["TIMELINE"],Ll=[...Bg,"GRAPH_BUTTON"],mp=[...Bg,"PLAY_BUTTON"],Vl=[...Ll,"PLAY_BUTTON"];var Dr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Dr||{}),Ws={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ng,VERSION as j0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as Z0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as X0}from"@vkontakte/videoplayer-statistics/es2018";var hc="prod",za="1.1.64-dev.dc6a30a0.0";var Ks=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Dg=Symbol("storeContext"),Og=Symbol("microStoresContext"),Hg=(t,e)=>{Ra(Dg,t),Ra(Og,e),hc==="dev"&&(window.app={store:t,microStores:e})},Ce=()=>{let t=Va(Dg);return Ng(t,"Store context is empty!"),t},no=()=>{let t=Va(Og);return Ng(t,"MicroStores context is empty!"),t},Xt=(t,e)=>bc(t,t.getValue(),e),bc=(t,e,i)=>sr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Fg=(t,e,i,o)=>{var P,k,R,W,Y,F;let n=t.info,{width:a,height:s}=Se(i.ui.playerSize),d=(k=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?k:0,l=(W=(R=n.rttEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?W:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${za} (core: ${Z0}, stat: ${X0}, shared: ${j0})`,y=Se(i.state.errorLog$),u=y.length?`
49
+ `+y.map((Q,oe)=>{var Ae;let Z=`${oe}) Type: ${Q.id}
50
+ `,re=`Message: ${Q.message} (${Q.thrown})
51
+ `,de=`Trace: ${(Ae=Q.thrown)==null?void 0:Ae.stack}
52
+ `;return Z+re+de}).join(`
53
+ `):void 0,$=i.state.isAudioDisabled?"disabled":Se(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),b=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(Y=w==null?void 0:w.codec)!=null?Y:""}`+(w!=null&&w.hdr?" (HDR)":"")),b&&C.push(`Audio: ${(F=b==null?void 0:b.codec)!=null?F:""}`+(b!=null&&b.language?` (${b.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let Q=n.availableQualitiesFps$.getValue()[T];I=Q?`${Q}fps`:""}let M={Version:m,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:Se(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${l}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${p} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${Se(i.state.positionExact$)}s`,State:`${Se(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${a}x${s}`,URL:window.location.href,Errors:u};return Object.entries(M).filter(([Q,oe])=>oe!==void 0).map(([Q,oe])=>`${Q}: ${oe}`).join(`
54
+ `)},Ug=(t,e,i)=>{var W,Y,F,Q;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s={version:za,viewport:`${n}x${a}`,volume:Math.round(Se(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(s.videoSize=`${p.width}x${p.height}`);let m=o.currentBuffer$.getValue(),y=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();m&&(y&&u?s.buffer=m.end-u:s.buffer=Math.max(m.end-Se(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);let w=o.videoBitrate$.getValue();w&&(s.bitrate=w);let b=o.liveLatency$.getValue();b&&(s.liveLatency=b);let C=o.currentVideoSegmentLength$.getValue();C&&(s.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(s.currentAudioSegmentLength=T);let I=Se(i.vsid);typeof I=="string"&&(s.vsid=I);let M=(W=t.info.currentVideoStream$.getValue())==null?void 0:W.codec;M&&(s.videoCodec=M);let P=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;P&&(s.audioCodec=P),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(s.hdr=!0);let R=(Q=t.info.currentAudioStream$.getValue())==null?void 0:Q.language;return R&&(s.audioLanguage=R),s},zg=(t,e)=>Ks(t,e,"mp4"),qg=t=>!t.type,Wg=t=>!!t.type,Kg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},_c=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 hp,safeStorage as xo}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Qg="vk_player_prefer_traffic_saving_enabled",Gg="vk_player_preferred_volume",Yg="vk_player_prefer_volume_mute",_p="vk_player_preferred_quality",vp="vk_player_preferred_default_quality_settings",gp="vk_player_preferred_quality_settings_by_video",jg="vk_player_preferred_stream_language",Zg="vk_player_preferred_rate",Xg="vk_player_preferred_autoplay_next",Jg=t=>t>1?1:t<0?0:t,bp=t=>xo.set(Gg,Jg(t).toString(10)),$c=()=>{let t=xo.get(Gg);return hp(t)?void 0:Jg(parseFloat(t))},$p=(t,e)=>xo.set(_p,JSON.stringify({videoId:t,value:e})),Bl=()=>xo.remove(_p),yp=t=>{let e=xo.get(_p);if(hp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Bl();return}return o},xp=(t,e)=>{e?xo.set(t,"true"):xo.remove(t)},wp=t=>xo.get(t)==="true",Sp=t=>xp(Yg,t),eh=()=>wp(Yg),Rl=t=>xp(Qg,t),Cp=()=>wp(Qg),th=()=>xo.get(jg),Tp=t=>xo.set(jg,t),ih=t=>xo.set(Zg,JSON.stringify({rate:t})),oh=()=>{let t=xo.get(Zg);if(hp(t))return;let{rate:e}=JSON.parse(t);return e},nh=t=>xp(Xg,t),rh=()=>wp(Xg),J0=()=>{let t=m=>{xo.set(vp,JSON.stringify(m))},e=()=>{try{let m=xo.get(vp);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=xo.get(gp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{xo.set(gp,JSON.stringify(m))},n=m=>{p(m);let y=m?i():null;if(y&&(y==null?void 0:y.videoId)===m)return{...y,appliesTo:"to-video"};y&&a();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{xo.remove(gp)},s=()=>{xo.remove(vp)},d=(m,y="as-default")=>{m.type==="exact_quality"?o(m):y==="as-default"?t(m):o(m)},l=m=>{let y=n(m);if(y){switch(y.type){case"traffic_saving":Rl(!0);break;case"exact_quality":$p(m,y.quality)}a(),s()}},p=m=>{let y=yp(m);if(y){o({type:"exact_quality",videoId:m,quality:y});return}Cp()&&t({type:"traffic_saving",videoId:m}),Rl(!1),Bl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:sh,migrateSettingsToLegacyWay:ah,savePreferredQualitySettings:yc,savePreferredDefaultQualitySettings:YP,removePreferredQualitySettingsByVideo:jP,getPreferredDefaultQualitySettings:xc}=J0();import{PlaybackState as b1}from"@vkontakte/videoplayer-core/es2018";var e_=ye('<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 Nl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=e_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),_(t,o)}import{isNullable as ch,InterfaceLanguage as uh}from"@vkontakte/videoplayer-shared/es2018";var t_={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_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",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",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_on:"\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_volume:"\u0417\u0432\u0443\u043A",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",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,
55
55
  \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 -
56
- \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`},rh=X0;var J0={mobile_unmute:"Unmute",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_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}",aria_open_settings:"Open video player settings",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_disable:"Disabled",traffic_saving_enable:"Enabled",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:"Turn 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",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_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",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_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable 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_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",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,
56
+ \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`},lh=t_;var i_={mobile_unmute:"Unmute",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_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_on:"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_volume:"Volume",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",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,
57
57
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
58
- Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh);Jr.set(lh.RU,rh);var dh=new Map,Sp=({language:t,pack:e,fallback:i})=>{if(Jr.has(t)){let o=Jr.get(t);Jr.set(t,{...o,...e})}else Jr.set(t,e);dh.set(t,i)},Cp=t=>Jr.has(t),Tp=(t,e,i,o)=>{var s;let n=Jr.get(t),a=n==null?void 0:n[e];if(ah(a)){let d=(s=dh.get(t))!=null?s:o,l=d?Jr.get(d):void 0;a=l==null?void 0:l[e]}return ah(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},F=(t,e)=>{let{interfaceLanguage$:i}=Se(),o=we(i),n=Ht();return Tp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Fa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Fa||(Fa={}));var e_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,t_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,i_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wc="?",o_="X-Sentry-Auth",n_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function r_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
59
- `),o,n;for(let a=0;a<i.length;++a){if(o=e_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=i_.exec(i[a]))n={filename:o[2],function:o[1]||wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=t_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=wc),e.push(n)}return e.length?{value:ch(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function ch(t){return(t&&t.message||"No error message").split(`
60
- `).filter(i=>!!i)[0]}function s_(t){try{let e=r_(t);if(e)return e}catch(e){}return{value:ch(t),type:t&&t.name,stacktrace:{frames:[]}}}function a_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Sc=class{constructor(e){if(e&&e.dsn){let i=n_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[s_(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(o_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:a_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function uh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function l_(){return window}var Cc=class t extends Sc{constructor(e,i=l_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}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=>uh(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=>uh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Tc,Subscription as d_}from"@vkontakte/videoplayer-shared/es2018";var Ic=null,Gs=class{constructor(e,i,o={}){!Ic&&e.dsn&&(this.sentryClient=new Cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new d_,this.options=e,this.context=o,Ic=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ic=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:m,blackErrorCategoryList:$}=s,{errorType:u,category:_}=i;if(Tc(_)&&$.includes(_)||Tc(u)&&m.includes(u))return;if(Math.random()<=d||Tc(_)&&p.includes(_)||Tc(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?Fa.fatal:Fa.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Ic}};var es=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(es||{});var kc=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.reject()},Ec=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),ph=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Ol=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},vs=()=>!!Ol(),Pc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Ac=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},fh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as mh}from"@vkontakte/videoplayer-core/es2018";var vh=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:mh.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:mh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as c_,ValueSubject as Ip}from"@vkontakte/videoplayer-shared/es2018";var js=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:c_(this.onResize.bind(this),300)};this.info={isActive$:new Ip(!1),isEnabled$:new Ip(!1),type:0};this.info.isEnabled$=new Ip(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}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 remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){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.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ys(t){return t instanceof js}import{devNull as gh,now as hh}from"@vkontakte/videoplayer-shared/es2018";fv();function Pp(t,e){U(e,!1);let i=Se();Ot(()=>{i.getAdmanWrapper().startPostroll()}),hr(),z()}import{noop as u_}from"@vkontakte/videoplayer-shared/es2018";var p_=(t,e)=>{t.stopPropagation(),e()()},f_=L('<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>'),m_=L("<div><!></div>"),v_={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 Ap(t,e){U(e,!0),q(t,v_);let[i,o]=Be(),n=()=>S(p,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,u_),p=Se().ui.isMobile,m=v(()=>a()>0&&a()>=s());var $=m_();let u;var _=h($);{var w=C=>{var T=f_();T.__click=[p_,d];var E=h(T);_e(),g(T),k(P=>ge(E,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),b(C,T)},y=C=>{var T=Nr();k(E=>ge(T,E),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(C,T)};R(_,C=>{r(m)?C(w):C(y,!1)})}g($),k(C=>u=ee($,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(m)})]),b(t,$),z(),o()}st(["click"]);var g_=L('<button class="svelte-1wy3dql"> </button>'),h_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Mp(t,e){U(e,!1),q(t,h_),hr();var i=g_(),o=h(i,!0);g(i),k(n=>ge(o,n),[()=>F("visit_advertiser")],mr),b(t,i),z()}var __=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),b_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),$_={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(
58
+ Try switching the\xA0quality to\xA0Auto.`},dh=i_;var es=new Map;es.set(uh.EN,dh);es.set(uh.RU,lh);var ph=new Map,Ip=({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);ph.set(t,i)},kp=t=>es.has(t),Ep=(t,e,i,o)=>{var s;let n=es.get(t),a=n==null?void 0:n[e];if(ch(a)){let d=(s=ph.get(t))!=null?s:o,l=d?es.get(d):void 0;a=l==null?void 0:l[e]}return ch(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},q=(t,e)=>{let{interfaceLanguage$:i}=Ce(),o=Se(i),n=Ft();return Ep(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var qa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(qa||(qa={}));var o_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,n_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,r_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wc="?",s_="X-Sentry-Auth",a_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function l_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
59
+ `),o,n;for(let a=0;a<i.length;++a){if(o=o_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||wc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=r_.exec(i[a]))n={filename:o[2],function:o[1]||wc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=n_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||wc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=wc),e.push(n)}return e.length?{value:fh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function fh(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function d_(t){try{let e=l_(t);if(e)return e}catch(e){}return{value:fh(t),type:t&&t.name,stacktrace:{frames:[]}}}function c_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Sc=class{constructor(e){if(e&&e.dsn){let i=a_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[d_(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(s_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:c_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function mh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function u_(){return window}var Cc=class t extends Sc{constructor(e,i=u_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:a=p=>p,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}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=>mh(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=>mh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Tc,Subscription as p_}from"@vkontakte/videoplayer-shared/es2018";var Ic=null,Qs=class{constructor(e,i,o={}){!Ic&&e.dsn&&(this.sentryClient=new Cc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new p_,this.options=e,this.context=o,Ic=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Ic=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:a,options:s}=this,{sampleRate:d=0,whiteErrorIdList:l,whiteErrorCategoryList:p=[],blackErrorIdList:m,blackErrorCategoryList:y}=s,{errorType:u,category:$}=i;if(Tc($)&&y.includes($)||Tc(u)&&m.includes(u))return;if(Math.random()<=d||Tc($)&&p.includes($)||Tc(u)&&l.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{u&&n.captureMessage(u,i.fatal?qa.fatal:qa.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return Ic}};var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var kc=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.reject()},Ec=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),vh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Dl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},vs=()=>!!Dl(),Pc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Ac=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},gh=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as hh}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:hh.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:hh.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as f_,ValueSubject as Pp}from"@vkontakte/videoplayer-shared/es2018";var Gs=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:f_(this.onResize.bind(this),300)};this.info={isActive$:new Pp(!1),isEnabled$:new Pp(!1),type:0};this.info.isEnabled$=new Pp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}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 remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){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.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){var n,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).enterpictureinpicture)==null||a.call(n,e))}onLeavePictureInPicture(e){var n,a,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(n=this.externalEventHandlers).leavepictureinpicture)==null||a.call(n,e),(s=this.playerDummyElement)==null||s.$destroy()}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ys(t){return t instanceof Gs}import{devNull as bh,now as $h}from"@vkontakte/videoplayer-shared/es2018";gv();function Lp(t,e){U(e,!1);let i=Ce();Ht(()=>{i.getAdmanWrapper().startPostroll()}),yr(),z()}import{noop as m_}from"@vkontakte/videoplayer-shared/es2018";var v_=(t,e)=>{t.stopPropagation(),e()()},g_=L('<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>'),h_=L("<div><!></div>"),__={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 Vp(t,e){U(e,!0),K(t,__);let[i,o]=Ne(),n=()=>S(p,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"secondsToWatchBeforeSkip",3,0),d=f(e,"skipAd",3,m_),p=Ce().ui.isMobile,m=v(()=>a()>0&&a()>=s());var y=h_();let u;var $=h(y);{var w=C=>{var T=g_();T.__click=[v_,d];var I=h(T);$e(),g(T),E(M=>me(I,`${M!=null?M:""} `),[()=>q("skip_ads_now")]),_(C,T)},b=C=>{var T=Rr();E(I=>me(T,I),[()=>q("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),_(C,T)};B($,C=>{r(m)?C(w):C(b,!1)})}g(y),E(C=>u=J(y,1,"container svelte-1k4i25s",null,u,C),[()=>({"container-mobile":n(),skippable:r(m)})]),_(t,y),z(),o()}st(["click"]);var b_=L('<button class="svelte-1wy3dql"> </button>'),$_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function Rp(t,e){U(e,!1),K(t,$_),yr();var i=b_(),o=h(i,!0);g(i),E(n=>me(o,n),[()=>q("visit_advertiser")],_r),_(t,i),z()}var y_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),x_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),w_={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(
61
61
  360deg,
62
62
  rgba(0, 0, 0, 0) 0%,
63
63
  rgba(0, 0, 0, 0.05) 12%,
@@ -67,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
67
67
  rgba(0, 0, 0, 0.5) 77%,
68
68
  rgba(0, 0, 0, 0.55) 88%,
69
69
  rgba(0, 0, 0, 0.65) 100%
70
- );}`};function Hl(t,e){U(e,!0),q(t,$_);let[i,o]=Be(),n=()=>S(j,"$canSkipAd",i),a=()=>S(H,"$adPlaybackState",i),s=()=>S(E,"$isMobile",i),d=()=>S(O,"$adPosition",i),l=()=>S(X,"$secondsToWatchBeforeSkipAd",i),p=()=>S(T,"$isVideoEnded",i),m=f(e,"adsSlotId",3,void 0),$=f(e,"adsParams",3,void 0),u=f(e,"adsPreviewParam",3,void 0),_=f(e,"adsAutoplayParam",3,void 0),w=f(e,"duration",3,0),y=Se(),C=Ht(),T=y.state.isEnded$,E=y.ui.isMobile,P=C.ads.isMobileGoToSiteButton,A=J(void 0),I=J(void 0),V=!1,H=y.ads.playbackState,j=y.ads.canSkip,O=y.ads.position,X=y.ads.secondsToWatchBeforeSkip,ne=v(()=>n()&&a()!=="inactive"),Y=v(()=>s()&&a()!=="inactive"&&P);Ot(()=>{var xe;let te=y.getAdmanWrapper();if(gh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[hh(),m()]}),!m()){te.onAdmanLoadingError();return}let Qe=De=>{te.initAdman(De),V=!0},ie=new AbortController,Q=()=>{ie.abort()},{width:W,height:Le}=we(y.ui.playerSize),Ne=we(y.ui.isFullscreen),Xe=(xe=_())!=null?xe:we(y.ui.isAutoplay),ye={width:W,height:Le,isFullscreen:Ne,isAutoplay:Xe,adsContainer:r(A),adsVideoElement:r(I),slotId:m(),params:$(),previewParam:u(),duration:w()};return window.AdmanHTML?Qe(ye):te.loadAdman(ie.signal).then(()=>{Qe(ye)}).catch(()=>{te.onAdmanLoadingError()}),()=>{gh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[hh(),m()]}),!V&&Q()}});var fe=b_(),le=h(fe);{var Me=te=>{var Qe=__();b(te,Qe)};R(le,te=>{s()&&te(Me)})}var Ae=M(le,2);pt(Ae,te=>B(I,te),()=>r(I));var me=M(Ae,2);{var ae=te=>{Ap(te,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(me,te=>{r(ne)&&te(ae)})}var Pe=M(me,2);{var re=te=>{Pp(te,{})};R(Pe,te=>{p()&&te(re)})}var D=M(Pe,2);{var Ve=te=>{Mp(te,{})};R(D,te=>{r(Y)&&te(Ve)})}g(fe),pt(fe,te=>B(A,te),()=>r(A)),b(t,fe),z(),o()}var ln=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var y_=be('<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 Lp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=y_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),b(t,o)}var x_=be('<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 Vp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=x_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),b(t,o)}function Fl(t,e){let i=f(e,"isActive",3,!1);var o=Fe(),n=ue(o);{var a=d=>{Vp(d,{})},s=d=>{Lp(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var w_=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),S_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),C_=L('<span class="text svelte-1s15d2i"> </span>'),T_=L("<div><!> <!></div>"),I_={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),
70
+ );}`};function Ol(t,e){U(e,!0),K(t,w_);let[i,o]=Ne(),n=()=>S(Y,"$canSkipAd",i),a=()=>S(W,"$adPlaybackState",i),s=()=>S(I,"$isMobile",i),d=()=>S(F,"$adPosition",i),l=()=>S(Q,"$secondsToWatchBeforeSkipAd",i),p=()=>S(T,"$isVideoEnded",i),m=f(e,"adsSlotId",3,void 0),y=f(e,"adsParams",3,void 0),u=f(e,"adsPreviewParam",3,void 0),$=f(e,"adsAutoplayParam",3,void 0),w=f(e,"duration",3,0),b=Ce(),C=Ft(),T=b.state.isEnded$,I=b.ui.isMobile,M=C.ads.isMobileGoToSiteButton,P=X(void 0),k=X(void 0),R=!1,W=b.ads.playbackState,Y=b.ads.canSkip,F=b.ads.position,Q=b.ads.secondsToWatchBeforeSkip,oe=v(()=>n()&&a()!=="inactive"),Z=v(()=>s()&&a()!=="inactive"&&M);Ht(()=>{var Ve;let _e=b.getAdmanWrapper();if(bh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[$h(),m()]}),!m()){_e.onAdmanLoadingError();return}let ze=Ie=>{_e.initAdman(Ie),R=!0},H=new AbortController,le=()=>{H.abort()},{width:he,height:ee}=Se(b.ui.playerSize),De=Se(b.ui.isFullscreen),je=(Ve=$())!=null?Ve:Se(b.ui.isAutoplay),we={width:he,height:ee,isFullscreen:De,isAutoplay:je,adsContainer:r(P),adsVideoElement:r(k),slotId:m(),params:y(),previewParam:u(),duration:w()};return window.AdmanHTML?ze(we):_e.loadAdman(H.signal).then(()=>{ze(we)}).catch(()=>{_e.onAdmanLoadingError()}),()=>{bh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[$h(),m()]}),!R&&le()}});var re=x_(),de=h(re);{var Ae=_e=>{var ze=y_();_(_e,ze)};B(de,_e=>{s()&&_e(Ae)})}var Me=A(de,2);vt(Me,_e=>D(k,_e),()=>r(k));var ge=A(Me,2);{var se=_e=>{Vp(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return b.actions.internal.skipAd}})};B(ge,_e=>{r(oe)&&_e(se)})}var Ee=A(ge,2);{var ne=_e=>{Lp(_e,{})};B(Ee,_e=>{p()&&_e(ne)})}var V=A(Ee,2);{var xe=_e=>{Rp(_e,{})};B(V,_e=>{r(Z)&&_e(xe)})}g(re),vt(re,_e=>D(P,_e),()=>r(P)),_(t,re),z(),o()}var ln=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var S_=ye('<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 Bp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=S_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),_(t,o)}var C_=ye('<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 Np(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=C_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),_(t,o)}function Hl(t,e){let i=f(e,"isActive",3,!1);var o=Oe(),n=ue(o);{var a=d=>{Np(d,{})},s=d=>{Bp(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var T_=L('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),I_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),k_=L('<span class="text svelte-1s15d2i"> </span>'),E_=L("<div><!> <!></div>"),P_={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),
71
71
  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%;
72
72
  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;
73
73
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -138,10 +138,10 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
138
138
  100% {
139
139
  transform: scaleY(0.6);
140
140
  }
141
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Ul(t,e){q(t,I_);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=T_();let s;var d=h(a);{var l=u=>{var _=w_();b(u,_)};R(d,u=>{i()&&u(l)})}var p=M(d,2);{var m=u=>{var _=S_(),w=h(_);Fl(w,{isActive:!0}),g(_),b(u,_)},$=u=>{var _=C_(),w=h(_,!0);g(_),k(()=>ge(w,e.time)),b(u,_)};R(p,u=>{o()?u(m):u($,!1)})}g(a),k(u=>s=ee(a,1,"wrapper svelte-1s15d2i",null,s,u),[()=>({live:o(),playing:n()})]),b(t,a)}var k_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),E_={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
142
- opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function zl(t,e){U(e,!0),q(t,E_);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>ln(e.duration-e.position));var s=k_();let d;var l=h(s);Ul(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),k(p=>d=ee(s,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),b(t,s),z()}var Ua=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 _h}from"@vkontakte/videoplayer-core/es2018";var nr=t=>{t.stopPropagation(),t.preventDefault()},A_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},M_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},L_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},V_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},bh=t=>t.code==="Escape",R_=t=>t.code==="ArrowLeft",ql=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},$h=t=>{if(L_(t)){nr(t),M_(t.target);return}V_(t)&&(nr(t),A_(t.target))},_s=t=>!_h.device.isAndroid&&(t==null?void 0:t.detail)===0||_h.device.isAndroid&&(t==null?void 0:t.pointerType)==="",za=async(t,e,i)=>{await _o(),t&&!t.classList.contains("opened")&&!e&&we(i)&&(await _o(),i.set(!1),t.focus())},yh=async(t,e,i)=>{await _o(),t&&!e&&we(i)&&(i.set(!1),t.focus())},qa=async(t,e,i)=>{var n;await _o(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},xh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Mc=(t,e)=>{$h(t),bh(t)&&(nr(t),e())},Lc=async(t,e)=>{ql(t,["ArrowRight"])&&(nr(t),e())},wh=async(t,e,i)=>{if($h(t),R_(t)){nr(t),e();return}bh(t)&&(nr(t),i())},Wa=(t,e)=>{ql(t)&&(nr(t),e())},Sh=(t,e,i)=>{if(ql(t))nr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),nr(t);return}o==="ArrowRight"&&!e&&(i(!0),nr(t))}},Ch=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Th=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Vc,isValidURL as F_}from"@vkontakte/videoplayer-shared/es2018";var _r={"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 Ih}from"@vkontakte/videoplayer-shared/es2018";var D_=(t,e)=>{Wa(t,()=>e())},B_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),O_={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 Rp(t,e){U(e,!0),q(t,O_);let i=f(e,"onClick",3,Ih),o=f(e,"closeContextMenu",3,Ih),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=B_();a.__click=n,a.__keydown=[D_,n];var s=h(a,!0);g(a),k(()=>{var d;He(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),He(a,"data-testid",e.id),ge(s,e.label)}),b(t,a),z()}st(["click","keydown"]);var Xs=(t,e)=>t.weight-e.weight;var Wl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Wl||{});var U_=(t,e)=>{Mc(t,e)},z_=t=>{t.preventDefault()},q_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),W_={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 Np(t,e){U(e,!0),q(t,W_);let[i,o]=Be(),n=()=>S(Y,"$isLive$",i),a=()=>S(Ae,"$isPiPEnabled$",i),s=()=>S(ne,"$chromecastState$",i),d=()=>S(me,"$pictureInPictureApiIsActive$",i),l=()=>S(Me,"$isLooped$",i),p=()=>S(fe,"$positionExact$",i),m=()=>S(H,"$debugPanelVisible",i),$=()=>S(j,"$additionalContextMenuItems$",i),u=f(e,"visible",3,!1),_=f(e,"position",19,()=>({top:0,left:0})),w=f(e,"playerContainerRef",3,void 0),y=f(e,"controlsContainerRef",3,void 0),C=f(e,"menuElementRef",15,void 0),T=J(0),E=J(0),P=Se(),{pictureInPicture$:A}=lo(),I=Ht(),V=P.ui.contextMenu.visible$,H=P.ui.debugPanelVisible,j=P.ui.additionalContextMenuItems$,O=P.ui.t,X=P.actions.internal.togglePictureInPicture,ne=P.state.chromecastState$,Y=P.state.isLive$,fe=P.state.positionExact$,le=P.state.isInteractive,Me=P.state.looped$,{isEnabled$:Ae,isActive$:me}=A,ae=v(()=>{var je;return I.features.copyVideoLink&&((je=P.callbacks)==null?void 0:je.onCopyVideoLink)}),Pe=v(()=>r(ae)&&!n()&&!le),re=v(()=>{var je;return!!((je=P.callbacks)!=null&&je.onCopyEmbedCodeClicked)}),D=v(()=>a()&&s()!==H_.CONNECTED&&!le),Ve=v(()=>I.features.videoRotate&&!le),te=v(()=>I.showSupport&&!d()),Qe=v(()=>I.features.saveTraceInfoToFile),ie=()=>{var je;V.set(!1),(je=e.returnFocus)==null||je.call(e)},Q=(je,Ze)=>{if(!C()||!w()||!y())return;let lt=C().getBoundingClientRect(),Re=w().getBoundingClientRect();B(T,je-Re.left),B(E,Ze-Re.top),r(T)+lt.width>Re.width&&B(T,Re.width-lt.width),r(E)+lt.height>Re.height&&B(E,Re.height-lt.height),B(T,pe(Math.max(r(T),0))),B(E,pe(Math.max(r(E),0)))};Ue(()=>{(async()=>{if(C()&&w()&&y()){await _o();let{top:Ze,left:lt,bottom:Re,right:_t}=_(),qe=lt!=null?lt:0,kt=Ze!=null?Ze:0,ni=C().getBoundingClientRect();Vc(lt)&&!Vc(_t)&&(qe=_t-ni.width),Vc(Ze)&&!Vc(Re)&&(kt=Re-ni.height),qe=Math.max(qe,0),kt=Math.max(kt,0),Q(qe,kt)}})()});let W=()=>{P.actions.internal.videoRotate()},Le=()=>{F_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Ne=()=>{let je=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Ze=new Blob([...je],{type:"plain/text"}),lt=window.URL.createObjectURL(Ze);Qs(lt,"vk_player_debug_info","txt")}else Ua(P.actions.internal.getDebugTextData())},Xe=()=>{let je=P.actions.internal.getTraceTextData(),Ze=new Blob([...je],{type:"application/json"}),lt=window.URL.createObjectURL(Ze);Qs(lt,"vk_player_trace_info","json")},ye=()=>{H.set(!0)},xe=async()=>{var je;try{X()}finally{(je=e.returnFocus)==null||je.call(e)}},De=()=>{P.actions.internal.setLooped(!l())},Ye=()=>{var je,Ze;if(r(re)){let lt=(Ze=(je=P.callbacks)==null?void 0:je.onCopyEmbedCodeClicked)==null?void 0:Ze.call(je);lt&&Ua(lt)}},it=(je=!1)=>{var Ze,lt;if((Ze=P.callbacks)!=null&&Ze.onCopyVideoLink){let Re=(lt=P.callbacks)==null?void 0:lt.onCopyVideoLink(je,p());Re&&Ua(Re)}},vt=v(()=>I.features.saveDebugInfoToFile?O("menu_save_debug"):O("menu_copy_debug")),Je=v(()=>r(ae)?{id:"copy-link",weight:_r["copy-link"],label:O("menu_copy_video_link"),onClick:()=>it()}:void 0),ft=v(()=>r(Pe)?{id:"copy-link-timestamp",weight:_r["copy-link-timestamp"],label:O("menu_copy_video_link_with_timestamp"),onClick:()=>it(!0)}:void 0),It=v(()=>r(re)?{id:"copy-embed-code",weight:_r["copy-embed-code"],label:O("menu_copy_embed_code"),onClick:Ye}:void 0),Wt=v(()=>r(D)?{id:"pip",weight:_r.pip,label:O("menu_pip"),onClick:xe}:void 0),Ft=v(()=>({id:"video-loop",weight:_r["video-loop"],label:l()?O("menu_video_loop_off"):O("menu_video_loop_on"),ariaLabel:O("aria_label_menu_loop"),onClick:De})),qt=v(()=>r(Ve)?{id:"rotate",weight:_r.rotate,label:O("menu_video_rotate"),ariaLabel:O("aria_label_menu_rotate"),onClick:W}:void 0),ve=v(()=>r(te)?{id:"report",weight:_r.report,label:O("menu_report"),ariaLabel:`${O("menu_report")}. ${O("aria_label_new_tab_alert")}`,onClick:Le}:void 0),G=v(()=>({id:"save-debug",weight:_r["save-debug"],label:r(vt),onClick:Ne})),Te=v(()=>r(Qe)?{id:"save-trace",weight:_r["save-trace"],label:O("menu_save_debug"),onClick:Xe}:void 0),se=v(()=>({id:"debug-info",weight:_r["debug-info"],label:O("menu_debug_overlay"),ariaLabel:m()?O("aria_label_menu_debug_overlay_disable"):O("aria_label_menu_debug_overlay_enable"),onClick:ye})),Oe=v(()=>[r(Je),r(ft),r(It),r(Wt),r(Ft),r(qt),r(ve),r(G),r(Te),r(se),...$()].filter(je=>!!je).sort(Xs));var ze=Fe(),et=ue(ze);{var at=je=>{var Ze=q_();Ze.__contextmenu=[z_],Ze.__keydown=[U_,ie],Ci(Ze,21,()=>r(Oe),lt=>lt.id,(lt,Re)=>{Rp(lt,{get id(){return r(Re).id},get label(){return r(Re).label},get ariaLabel(){return r(Re).ariaLabel},get onClick(){return r(Re).onClick},closeContextMenu:ie})}),g(Ze),pt(Ze,lt=>C(lt),()=>C()),k(()=>{var lt,Re;return tt(Ze,`top: ${(lt=r(E))!=null?lt:""}px; left: ${(Re=r(T))!=null?Re:""}px;`)}),b(je,Ze)};R(et,je=>{u()&&je(at)})}b(t,ze),z(),o()}st(["contextmenu","keydown"]);var Rc=class{constructor(e){this.value=e,this.next=null}};var Ka=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Rc(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 K_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Q_={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 Kl(t,e){U(e,!0),q(t,Q_);let i=f(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,s=120,d=60,l=s/d;Ot(()=>{r(o).width=s,r(o).height=a,B(n,pe(r(o).getContext("2d")))});function p(u,_,w,y,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect(_,w,y,C)}Ue(()=>{let u="";if(r(n)){let _=i()[0];for(let y=1;y<i().length;y++)i()[y]>_&&(_=i()[y]);r(n).clearRect(0,0,s,a);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*l,T=_>0?a*(i()[y]/_):0;p(r(n),C,0,l,T),u=T+" "+u,w--}}});var m=K_(),$=h(m);pt($,u=>B(o,u),()=>r(o)),g(m),b(t,m),z()}import{safeStorage as kh}from"@vkontakte/videoplayer-shared/es2018";var G_=(t,e)=>{t.stopPropagation(),kh.remove(Ll),e.set(!1)},j_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),Y_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),Z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),lb=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),db={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Ql(t,e){U(e,!0),q(t,db);let[i,o]=Be(),n=()=>S(d,"$isMobile",i),a=Se(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=J(pe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),m=J(0),$=J(0),u=J(0),_=new Ka(60),w=new Ka(60),y=new Ka(60),C=J(pe([])),T=J(pe([])),E=J(pe([])),P=F("aria_label_debug_panel");Ot(()=>{kh.set(Ll,"true"),a.actions.internal.startLogging(),p&&(B($,pe(p.getVideoPlaybackQuality().droppedVideoFrames)),B(m,pe(p.getVideoPlaybackQuality().totalVideoFrames)));let G=window.setInterval(()=>{B(l,pe(a.actions.internal.getDebugPanelData()))},500),Te;return p&&(Te=window.setInterval(()=>{if(p){B($,pe(p.getVideoPlaybackQuality().droppedVideoFrames));let se=p.getVideoPlaybackQuality().totalVideoFrames;B(u,se-r(m)),B(m,pe(se)),_.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),B(C,pe(_.getValuesFromBottom())),B(T,pe(w.getValuesFromBottom())),B(E,pe(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(G),Te&&clearInterval(Te)}});var A=lb();let I;He(A,"aria-label",P);var V=h(A);V.__click=[G_,s];var H=M(V,2),j=h(H),O=M(h(j),2),X=h(O,!0);g(O),g(j);var ne=M(j,2);{var Y=G=>{var Te=j_(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).id)),b(G,Te)};R(ne,G=>{r(l).id&&G(Y)})}var fe=M(ne,2);{var le=G=>{var Te=Y_(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).vsid)),b(G,Te)};R(fe,G=>{r(l).vsid&&G(le)})}var Me=M(fe,2);{var Ae=G=>{var Te=Z_(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).provider)),b(G,Te)};R(Me,G=>{r(l).provider&&G(Ae)})}var me=M(Me,2);{var ae=G=>{var Te=X_(),se=M(h(Te),2),Oe=h(se);g(se),g(Te),k(()=>{var ze,et;return ge(Oe,`Video: ${r(l).videoCodec||""} ${(ze=r(l).hdr?"(HDR)":"")!=null?ze:""}
141
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Fl(t,e){K(t,P_);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=E_();let s;var d=h(a);{var l=u=>{var $=T_();_(u,$)};B(d,u=>{i()&&u(l)})}var p=A(d,2);{var m=u=>{var $=I_(),w=h($);Hl(w,{isActive:!0}),g($),_(u,$)},y=u=>{var $=k_(),w=h($,!0);g($),E(()=>me(w,e.time)),_(u,$)};B(p,u=>{o()?u(m):u(y,!1)})}g(a),E(u=>s=J(a,1,"wrapper svelte-1s15d2i",null,s,u),[()=>({live:o(),playing:n()})]),_(t,a)}var A_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),M_={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
142
+ opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function Ul(t,e){U(e,!0),K(t,M_);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>ln(e.duration-e.position));var s=A_();let d;var l=h(s);Fl(l,{get time(){return r(a)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(s),E(p=>d=J(s,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),_(t,s),z()}var Wa=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 z_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as yh}from"@vkontakte/videoplayer-core/es2018";var ar=t=>{t.stopPropagation(),t.preventDefault()},V_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},R_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},B_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},N_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},xh=t=>t.code==="Escape",D_=t=>t.code==="ArrowLeft",zl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},wh=t=>{if(B_(t)){ar(t),R_(t.target);return}N_(t)&&(ar(t),V_(t.target))},_s=t=>!yh.device.isAndroid&&(t==null?void 0:t.detail)===0||yh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Ka=async(t,e,i)=>{await bo(),t&&!t.classList.contains("opened")&&!e&&Se(i)&&(await bo(),i.set(!1),t.focus())},Sh=async(t,e,i)=>{await bo(),t&&!e&&Se(i)&&(i.set(!1),t.focus())},Qa=async(t,e,i)=>{var n;await bo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},Ch=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Mc=(t,e)=>{wh(t),xh(t)&&(ar(t),e())},Lc=async(t,e)=>{zl(t,["ArrowRight"])&&(ar(t),e())},Th=async(t,e,i)=>{if(wh(t),D_(t)){ar(t),e();return}xh(t)&&(ar(t),i())},Ga=(t,e)=>{zl(t)&&(ar(t),e())},Ih=(t,e,i)=>{if(zl(t))ar(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),ar(t);return}o==="ArrowRight"&&!e&&(i(!0),ar(t))}},kh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Eh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Vc,isValidURL as q_}from"@vkontakte/videoplayer-shared/es2018";var xr={"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 Ph}from"@vkontakte/videoplayer-shared/es2018";var H_=(t,e)=>{Ga(t,()=>e())},F_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),U_={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 Dp(t,e){U(e,!0),K(t,U_);let i=f(e,"onClick",3,Ph),o=f(e,"closeContextMenu",3,Ph),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=F_();a.__click=n,a.__keydown=[H_,n];var s=h(a,!0);g(a),E(()=>{var d;Be(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Be(a,"data-testid",e.id),me(s,e.label)}),_(t,a),z()}st(["click","keydown"]);var Zs=(t,e)=>t.weight-e.weight;var ql=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ql||{});var W_=(t,e)=>{Mc(t,e)},K_=t=>{t.preventDefault()},Q_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),G_={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 Op(t,e){U(e,!0),K(t,G_);let[i,o]=Ne(),n=()=>S(oe,"$isLive$",i),a=()=>S(Ae,"$isPiPEnabled$",i),s=()=>S(Q,"$chromecastState$",i),d=()=>S(Me,"$pictureInPictureApiIsActive$",i),l=()=>S(de,"$isLooped$",i),p=()=>S(Z,"$positionExact$",i),m=()=>S(W,"$additionalContextMenuItems$",i),y=f(e,"visible",3,!1),u=f(e,"position",19,()=>({top:0,left:0})),$=f(e,"playerContainerRef",3,void 0),w=f(e,"controlsContainerRef",3,void 0),b=f(e,"menuElementRef",15,void 0),C=X(0),T=X(0),I=Ce(),{pictureInPicture$:M}=no(),P=Ft(),k=I.ui.contextMenu.visible$,R=I.ui.debugPanelVisible,W=I.ui.additionalContextMenuItems$,Y=I.ui.t,F=I.actions.internal.togglePictureInPicture,Q=I.state.chromecastState$,oe=I.state.isLive$,Z=I.state.positionExact$,re=I.state.isInteractive,de=I.state.looped$,{isEnabled$:Ae,isActive$:Me}=M,ge=v(()=>{var Le;return P.features.copyVideoLink&&((Le=I.callbacks)==null?void 0:Le.onCopyVideoLink)}),se=v(()=>r(ge)&&!n()&&!re),Ee=v(()=>{var Le;return!!((Le=I.callbacks)!=null&&Le.onCopyEmbedCodeClicked)}),ne=v(()=>a()&&s()!==z_.CONNECTED&&!re),V=v(()=>P.features.videoRotate&&!re),xe=v(()=>P.showSupport&&!d()),_e=v(()=>P.features.saveTraceInfoToFile),ze=()=>{var Le;k.set(!1),(Le=e.returnFocus)==null||Le.call(e)},H=(Le,nt)=>{if(!b()||!$()||!w())return;let Je=b().getBoundingClientRect(),ht=$().getBoundingClientRect();D(C,Le-ht.left),D(T,nt-ht.top),r(C)+Je.width>ht.width&&D(C,ht.width-Je.width),r(T)+Je.height>ht.height&&D(T,ht.height-Je.height),D(C,pe(Math.max(r(C),0))),D(T,pe(Math.max(r(T),0)))};Fe(()=>{(async()=>{if(b()&&$()&&w()){await bo();let{top:nt,left:Je,bottom:ht,right:tt}=u(),Ze=Je!=null?Je:0,qt=nt!=null?nt:0,_t=b().getBoundingClientRect();Vc(Je)&&!Vc(tt)&&(Ze=tt-_t.width),Vc(nt)&&!Vc(ht)&&(qt=ht-_t.height),Ze=Math.max(Ze,0),qt=Math.max(qt,0),H(Ze,qt)}})()});let le=()=>{I.actions.internal.videoRotate()},he=()=>{q_(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},ee=()=>{let Le=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let nt=new Blob([...Le],{type:"plain/text"}),Je=window.URL.createObjectURL(nt);Ks(Je,"vk_player_debug_info","txt")}else Wa(I.actions.internal.getDebugTextData())},De=()=>{let Le=I.actions.internal.getTraceTextData(),nt=new Blob([...Le],{type:"application/json"}),Je=window.URL.createObjectURL(nt);Ks(Je,"vk_player_trace_info","json")},je=()=>{R.set(!0)},we=async()=>{var Le;try{F()}finally{(Le=e.returnFocus)==null||Le.call(e)}},Ve=()=>{I.actions.internal.setLooped(!l())},Ie=()=>{var Le,nt;if(r(Ee)){let Je=(nt=(Le=I.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:nt.call(Le);Je&&Wa(Je)}},Ue=(Le=!1)=>{var nt,Je;if((nt=I.callbacks)!=null&&nt.onCopyVideoLink){let ht=(Je=I.callbacks)==null?void 0:Je.onCopyVideoLink(Le,p());ht&&Wa(ht)}},dt=v(()=>P.features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug")),ct=v(()=>r(ge)?{id:"copy-link",weight:xr["copy-link"],label:Y("menu_copy_video_link"),onClick:()=>Ue()}:void 0),ot=v(()=>r(se)?{id:"copy-link-timestamp",weight:xr["copy-link-timestamp"],label:Y("menu_copy_video_link_with_timestamp"),onClick:()=>Ue(!0)}:void 0),wt=v(()=>r(Ee)?{id:"copy-embed-code",weight:xr["copy-embed-code"],label:Y("menu_copy_embed_code"),onClick:Ie}:void 0),ft=v(()=>r(ne)?{id:"pip",weight:xr.pip,label:Y("menu_pip"),onClick:we}:void 0),zt=v(()=>({id:"video-loop",weight:xr["video-loop"],label:l()?Y("menu_video_loop_off"):Y("menu_video_loop_on"),ariaLabel:Y("aria_label_menu_loop"),onClick:Ve})),ti=v(()=>r(V)?{id:"rotate",weight:xr.rotate,label:Y("menu_video_rotate"),ariaLabel:Y("aria_label_menu_rotate"),onClick:le}:void 0),At=v(()=>r(xe)?{id:"report",weight:xr.report,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,onClick:he}:void 0),Rt=v(()=>({id:"save-debug",weight:xr["save-debug"],label:r(dt),onClick:ee})),O=v(()=>r(_e)?{id:"save-trace",weight:xr["save-trace"],label:Y("menu_save_debug"),onClick:De}:void 0),be=v(()=>({id:"debug-info",weight:xr["debug-info"],label:Y("menu_debug_overlay"),ariaLabel:Y("aria_label_menu_debug_overlay"),onClick:je})),te=v(()=>[r(ct),r(ot),r(wt),r(ft),r(zt),r(ti),r(At),r(Rt),r(O),r(be),...m()].filter(Le=>!!Le).sort(Zs));var Re=Oe(),Ye=ue(Re);{var Ke=Le=>{var nt=Q_();nt.__contextmenu=[K_],nt.__keydown=[W_,ze],Si(nt,21,()=>r(te),Je=>Je.id,(Je,ht)=>{Dp(Je,{get id(){return r(ht).id},get label(){return r(ht).label},get ariaLabel(){return r(ht).ariaLabel},get onClick(){return r(ht).onClick},closeContextMenu:ze})}),g(nt),vt(nt,Je=>b(Je),()=>b()),E(()=>{var Je,ht;return rt(nt,`top: ${(Je=r(T))!=null?Je:""}px; left: ${(ht=r(C))!=null?ht:""}px;`)}),_(Le,nt)};B(Ye,Le=>{y()&&Le(Ke)})}_(t,Re),z(),o()}st(["contextmenu","keydown"]);var Rc=class{constructor(e){this.value=e,this.next=null}};var Ya=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Rc(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 Y_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),j_={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 Wl(t,e){U(e,!0),K(t,j_);let i=f(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,s=120,d=60,l=s/d;Ht(()=>{r(o).width=s,r(o).height=a,D(n,pe(r(o).getContext("2d")))});function p(u,$,w,b,C){C===0&&(C=1),u.fillStyle="#fff",u.fillRect($,w,b,C)}Fe(()=>{let u="";if(r(n)){let $=i()[0];for(let b=1;b<i().length;b++)i()[b]>$&&($=i()[b]);r(n).clearRect(0,0,s,a);let w=d-1;for(let b=i().length-1;b>=0;b--){let C=w*l,T=$>0?a*(i()[b]/$):0;p(r(n),C,0,l,T),u=T+" "+u,w--}}});var m=Y_(),y=h(m);vt(y,u=>D(o,u),()=>r(o)),g(m),_(t,m),z()}import{safeStorage as Ah}from"@vkontakte/videoplayer-shared/es2018";var Z_=(t,e)=>{t.stopPropagation(),Ah.remove(Ml),e.set(!1)},X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),ub=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),pb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Kl(t,e){U(e,!0),K(t,pb);let[i,o]=Ne(),n=()=>S(d,"$isMobile",i),a=Ce(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(pe(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),m=X(0),y=X(0),u=X(0),$=new Ya(60),w=new Ya(60),b=new Ya(60),C=X(pe([])),T=X(pe([])),I=X(pe([])),M=q("aria_label_debug_panel");Ht(()=>{Ah.set(Ml,"true"),a.actions.internal.startLogging(),p&&(D(y,pe(p.getVideoPlaybackQuality().droppedVideoFrames)),D(m,pe(p.getVideoPlaybackQuality().totalVideoFrames)));let O=window.setInterval(()=>{D(l,pe(a.actions.internal.getDebugPanelData()))},500),be;return p&&(be=window.setInterval(()=>{if(p){D(y,pe(p.getVideoPlaybackQuality().droppedVideoFrames));let te=p.getVideoPlaybackQuality().totalVideoFrames;D(u,te-r(m)),D(m,pe(te)),$.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&b.push(r(l).bitrate),D(C,pe($.getValuesFromBottom())),D(T,pe(w.getValuesFromBottom())),D(I,pe(b.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(O),be&&clearInterval(be)}});var P=ub();let k;Be(P,"aria-label",M);var R=h(P);R.__click=[Z_,s];var W=A(R,2),Y=h(W),F=A(h(Y),2),Q=h(F,!0);g(F),g(Y);var oe=A(Y,2);{var Z=O=>{var be=X_(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).id)),_(O,be)};B(oe,O=>{r(l).id&&O(Z)})}var re=A(oe,2);{var de=O=>{var be=J_(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).vsid)),_(O,be)};B(re,O=>{r(l).vsid&&O(de)})}var Ae=A(re,2);{var Me=O=>{var be=eb(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).provider)),_(O,be)};B(Ae,O=>{r(l).provider&&O(Me)})}var ge=A(Ae,2);{var se=O=>{var be=tb(),te=A(h(be),2),Re=h(te);g(te),g(be),E(()=>{var Ye,Ke;return me(Re,`Video: ${r(l).videoCodec||""} ${(Ye=r(l).hdr?"(HDR)":"")!=null?Ye:""}
143
143
  &
144
- Audio: ${r(l).audioCodec||""} ${(et=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?et:""}`)}),b(G,Te)};R(me,G=>{(r(l).videoCodec||r(l).audioCodec)&&G(ae)})}var Pe=M(me,2);{var re=G=>{var Te=J_(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).viewport)),b(G,Te)};R(Pe,G=>{r(l).viewport&&G(re)})}var D=M(Pe,2);{var Ve=G=>{var Te=eb(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).videoSize)),b(G,Te)};R(D,G=>{r(l).videoSize&&G(Ve)})}var te=M(D,2);{var Qe=G=>{var Te=tb(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(()=>ge(Oe,r(l).cdn)),b(G,Te)};R(te,G=>{r(l).cdn&&G(Qe)})}var ie=M(te,2);{var Q=G=>{var Te=ib(),se=M(h(Te),2),Oe=h(se);g(se),g(Te),k(()=>{var ze;return ge(Oe,`${(ze=r(l).volume)!=null?ze:""} %`)}),b(G,Te)};R(ie,G=>{r(l).volume&&G(Q)})}var W=M(ie,2);{var Le=G=>{var Te=ob(),se=M(h(Te),2),Oe=h(se);g(se),g(Te),k(ze=>ge(Oe,`${ze!=null?ze:""} s`),[()=>r(l).buffer.toFixed(2)]),b(G,Te)};R(W,G=>{r(l).buffer&&G(Le)})}var Ne=M(W,2);{var Xe=G=>{var Te=nb(),se=M(h(Te),2),Oe=h(se);g(se),g(Te),k(ze=>ge(Oe,`${ze!=null?ze:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(G,Te)};R(Ne,G=>{r(l).liveLatency&&G(Xe)})}var ye=M(Ne,2);{var xe=G=>{var Te=rb(),se=M(h(Te),2),Oe=h(se,!0);g(se),g(Te),k(ze=>ge(Oe,ze),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:et})=>`${et} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),b(G,Te)};R(ye,G=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&G(xe)})}var De=M(ye,2),Ye=M(h(De),2),it=h(Ye);g(Ye),g(De);var vt=M(De,2);{var Je=G=>{var Te=sb(),se=M(h(Te),2);Kl(se,{get values(){return r(T)}});var Oe=M(se,2),ze=h(Oe);g(Oe),g(Te),k(et=>ge(ze,`${et!=null?et:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(G,Te)};R(vt,G=>{r(l).speed&&G(Je)})}var ft=M(vt,2);{var It=G=>{var Te=ab(),se=M(h(Te),2);Kl(se,{get values(){return r(E)}});var Oe=M(se,2),ze=h(Oe);g(Oe),g(Te),k(et=>ge(ze,`${et!=null?et:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(G,Te)};R(ft,G=>{r(l).bitrate&&G(It)})}var Wt=M(ft,2),Ft=M(h(Wt),2);Kl(Ft,{get values(){return r(C)}});var qt=M(Ft,2),ve=h(qt,!0);g(qt),g(Wt),g(H),g(A),k(G=>{var Te,se;I=ee(A,1,"container svelte-4deykz",null,I,G),ge(X,r(l).version),ge(it,`${(Te=r($))!=null?Te:""} / ${(se=r(m))!=null?se:""} frames`),ge(ve,r(u))},[()=>({"container-mobile":n()})]),b(t,A),z(),o()}st(["click"]);import{noop as cb}from"@vkontakte/videoplayer-shared/es2018";var ub=(t,e)=>{t.stopPropagation(),e()()},pb=L('<div class="close svelte-1ome55p"></div>'),fb={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 Js(t,e){U(e,!0),q(t,fb);let i=f(e,"onClick",3,cb);var o=pb();o.__click=[ub,i],b(t,o),z()}st(["click"]);import{noop as mb}from"@vkontakte/videoplayer-shared/es2018";var vb=L('<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>'),gb={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 Gl(t,e){U(e,!0),q(t,gb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,mb),n=5e3,a=J(void 0),s,d,l=J(0),p;Ue(()=>{i()&&(d=Date.now(),B(l,pe(requestAnimationFrame($))))});let m=()=>{r(l)&&(cancelAnimationFrame(r(l)),B(l,0))},$=()=>{if(!i()){m();return}p=(Date.now()-d)/n,p<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),s==null||s.stroke(),B(l,pe(requestAnimationFrame($)))):o()()};Ot(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),$n(()=>{m()});var u=vb(),_=h(u);pt(_,w=>B(a,w),()=>r(a)),_e(2),g(u),b(t,u),z()}var hb=(t,e,i)=>{e(!1),i()},_b=L('<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),bb={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 Dp(t,e){U(e,!0),q(t,bb);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,$=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),_()};Ot(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Fe(),T=ue(C);{var E=P=>{var A=_b(),I=M(ue(A),2),V=h(I),H=h(V),j=h(H,!0);g(H);var O=M(H,2);Js(O,{onClick:y}),g(V);var X=M(V,2);X.__click=[hb,p,$];var ne=h(X),Y=h(ne),fe=h(Y);let le;var Me=M(fe,2);{var Ae=re=>{let D=v(()=>a()&&n());Gl(re,{get isRunning(){return r(D)},onTimerEnded:w})};R(Me,re=>{n()&&re(Ae)})}g(Y),g(ne);var me=M(ne,2),ae=h(me),Pe=h(ae,!0);g(ae),g(me),g(X),g(I),k((re,D)=>{ge(j,re),tt(Y,`background-image: url('${e.thumb}')`),le=ee(fe,1,"thumb-overlay svelte-jfbaax",null,le,D),ge(Pe,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),z(),o()}st(["click"]);import{PlaybackState as ea}from"@vkontakte/videoplayer-core/es2018";import{checkNever as yb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as yn}from"@vkontakte/videoplayer-statistics/es2018";var Bp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Op=(t,e)=>Math.max(+(t-e).toFixed(2),0),Nc=(t,e,i)=>{let o=Bp(e,i);e<1&&t.actions.internal.setVolume(o)},Dc=(t,e,i)=>{let o=Op(e,i);e>0&&t.actions.internal.setVolume(o)};var bs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var xb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),wb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Hp(t,e){var Ft,qt;U(e,!0),q(t,wb);let[i,o]=Be(),n=()=>S(j,"$playbackState$",i),a=()=>S(O,"$adPlaybackState",i),s=()=>S(fe,"$disabledControls$",i),d=()=>S(X,"$positionExact$",i),l=()=>S(ne,"$duration$",i),p=()=>S(Q,"$isAudioAvailable$",i),m=()=>S(Y,"$volume$",i),$=()=>S(me,"$availablePlaybackRates$",i),u=()=>S(Ae,"$currentPlaybackRate$",i),_=()=>S(Le,"$isInteractiveTime$",i),w=()=>S(Ne,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(Ve,"$isEnded$",i),C=()=>S(le,"$muted$",i),T=()=>S(Me,"$currentSubtitle$",i),E=()=>S(te,"$overlayContainer$",i),P=f(e,"nextButtonActive",3,!1),A=f(e,"prevButtonActive",3,!1),I=Se(),V=Ht(),H=I.getLogger().createComponentLog("KeyboardControls component"),j=I.state.playbackState$,O=I.ads.playbackState,X=I.state.positionExact$,ne=I.state.duration$,Y=I.state.volume$,fe=I.ui.controls.disabledControls$,le=I.state.muted$,Me=I.state.currentSubtitle$,Ae=I.state.currentPlaybackRate$,me=I.state.availablePlaybackRates$,ae=I.ui.contextMenu.openedByHotKey$,Pe=I.ui.contextMenu.lastActiveElem$,re=I.ui.contextMenu.visible$,D=I.ui.contextMenu.position$,Ve=I.state.isEnded$,te=I.ui.overlayContainer$,Qe=(Ft=I.callbacks)==null?void 0:Ft.onAudioDoesNotExistHint,ie=(qt=I.callbacks)==null?void 0:qt.onAudioDisabledHint,Q=I.state.isAudioAvailable$,W=I.state.isAudioDisabled,Le=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ne}=lo(),Xe=0,ye=!0,xe=J(void 0),De=()=>{var ve;return(ve=r(xe))==null?void 0:ve.focus()},Ye=ve=>(ve!==ye&&(ye=ve,Xe=0),Xe+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Xe)/1e3),it=ve=>{var Re,_t;let G=ve.target,Te=(Re=G==null?void 0:G.getAttribute("role"))==null?void 0:Re.includes("menuitem"),se=G.classList.contains("btn"),Oe=ve.code;if(se&&Oe==="Space")return;let ze=Ag.has(Oe);if(Te&&ze)return;let et=!Pg.has(Oe);if(ve.ctrlKey&&et||ve.altKey&&et||ve.metaKey)return;let at=Te&&Oe==="Escape";Mg.has(Oe)||at||e.hideContextMenu();let je=n()===ea.PLAYING||n()===ea.PAUSED,Ze=e.isAds&&(a()==="paused"||a()==="playing"),lt=!Ze&&!s().has("TIMELINE");if(je||Ze)switch(H({message:`key down, code: ${Oe}`}),Oe){case"KeyJ":case"ArrowLeft":{if(!lt)break;if(ve.ctrlKey||ve.altKey){let qe=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(qe),qe&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:qe.text}),ve.preventDefault()}else{let qe=ve.shiftKey?Ye(!1):V.controls.seekStepKeyboard/1e3,kt=Math.max(d()-qe,0);d()>0&&(I.actions.internal.seekTime(kt,yn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:qe.toString()}),ve.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!lt)break;if(ve.ctrlKey||ve.altKey){let qe=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(qe),qe&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:qe.text}),ve.preventDefault()}else{let qe=ve.shiftKey?Ye(!0):V.controls.seekStepKeyboard/1e3,kt=Math.min(d()+qe,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(kt,yn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:qe.toString()}),ve.preventDefault())}break}case"ArrowUp":{if(bs({isAudioDisabled:W,audioDisabledHintCallback:ie,isAudioAvailable:p(),audioIsNotExistHintCallback:Qe})){let qe=m(),kt=V.controls.volumeStepKeyboard,ni=qe<=1;if(Nc(I,qe,kt),ni){let Zt=Math.round(Bp(qe,kt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zt}})}}ve.preventDefault();break}case"ArrowDown":{if(bs({isAudioDisabled:W,audioDisabledHintCallback:ie,isAudioAvailable:p(),audioIsNotExistHintCallback:Qe})){let qe=m(),kt=V.controls.volumeStepKeyboard,ni=qe>=0;if(Dc(I,qe,kt),ni){let Zt=Math.round(Op(qe,kt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zt}})}}ve.preventDefault();break}case"Comma":{if(ve.shiftKey){I.actions.internal.decrementPlaybackRate();let qe=$().find(kt=>kt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:qe==null?void 0:qe.displayValue}),ve.preventDefault()}else{if(Ze||n()!==ea.PAUSED)break;let qe=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(qe,yn.DOUBLE_TAP),ve.preventDefault())}break}case"Period":{if(ve.shiftKey){I.actions.internal.incrementPlaybackRate();let qe=$().find(kt=>kt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:qe==null?void 0:qe.displayValue}),ve.preventDefault()}else{if(Ze||n()!==ea.PAUSED)break;let qe=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(qe,yn.DOUBLE_TAP),ve.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&Ne.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let qe="PLAY";n()===ea.PAUSED?qe="PAUSE":y()&&(qe="REPLAY"),e.showHotKeyHelpers({type:qe})}ve.preventDefault();break;case"KeyM":{bs({isAudioDisabled:W,audioDisabledHintCallback:ie,isAudioAvailable:p(),audioIsNotExistHintCallback:Qe})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),ve.preventDefault();break}case"KeyF":e.toggleFullscreen(),ve.preventDefault();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(_t=T())==null?void 0:_t.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ve.preventDefault();break;case"KeyI":I.actions.internal.togglePictureInPicture(),ve.preventDefault();break;case"Digit1":case"Numpad1":if(ve.shiftKey){let qe=Th(E());D.set(qe),Pe.set(G),ae.set(!0),re.set(!0),ve.preventDefault();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,yn.DOUBLE_TAP),ve.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,yn.DOUBLE_TAP),ve.preventDefault();break;case"Slash":{ve.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),ve.preventDefault());break}case"KeyN":ve.shiftKey&&P()&&I.actions.internal.nextVideoClick();break;case"KeyP":ve.shiftKey&&A()&&I.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":ve.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:yb(Oe);break}},vt=ve=>{let G=ve.code;if(ve.ctrlKey||ve.altKey||ve.metaKey)return;let Te=n()===ea.PLAYING||n()===ea.PAUSED,se=e.isAds&&(a()==="paused"||a()==="playing");if(Te||se)switch(G){case"ShiftLeft":case"ShiftRight":Xe=0;break}},Je=F("aria_label_video_player");var ft=xb();ft.__keyup=vt,ft.__keydown=it,He(ft,"aria-label",Je);var It=h(ft);he(It,()=>{var ve;return(ve=e.children)!=null?ve:oe}),g(ft),pt(ft,ve=>B(xe,ve),()=>r(xe)),b(t,ft);var Wt=z({focus:De});return o(),Wt}st(["keyup","keydown"]);var Sb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Cb={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);}
144
+ Audio: ${r(l).audioCodec||""} ${(Ke=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?Ke:""}`)}),_(O,be)};B(ge,O=>{(r(l).videoCodec||r(l).audioCodec)&&O(se)})}var Ee=A(ge,2);{var ne=O=>{var be=ib(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).viewport)),_(O,be)};B(Ee,O=>{r(l).viewport&&O(ne)})}var V=A(Ee,2);{var xe=O=>{var be=ob(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).videoSize)),_(O,be)};B(V,O=>{r(l).videoSize&&O(xe)})}var _e=A(V,2);{var ze=O=>{var be=nb(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(()=>me(Re,r(l).cdn)),_(O,be)};B(_e,O=>{r(l).cdn&&O(ze)})}var H=A(_e,2);{var le=O=>{var be=rb(),te=A(h(be),2),Re=h(te);g(te),g(be),E(()=>{var Ye;return me(Re,`${(Ye=r(l).volume)!=null?Ye:""} %`)}),_(O,be)};B(H,O=>{r(l).volume&&O(le)})}var he=A(H,2);{var ee=O=>{var be=sb(),te=A(h(be),2),Re=h(te);g(te),g(be),E(Ye=>me(Re,`${Ye!=null?Ye:""} s`),[()=>r(l).buffer.toFixed(2)]),_(O,be)};B(he,O=>{r(l).buffer&&O(ee)})}var De=A(he,2);{var je=O=>{var be=ab(),te=A(h(be),2),Re=h(te);g(te),g(be),E(Ye=>me(Re,`${Ye!=null?Ye:""} s`),[()=>r(l).liveLatency.toFixed(2)]),_(O,be)};B(De,O=>{r(l).liveLatency&&O(je)})}var we=A(De,2);{var Ve=O=>{var be=lb(),te=A(h(be),2),Re=h(te,!0);g(te),g(be),E(Ye=>me(Re,Ye),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ye})=>Ye).map(({value:Ye,title:Ke})=>`${Ke} ${((Ye!=null?Ye:0)/1e3).toFixed(2)} s`).join(" & ")]),_(O,be)};B(we,O=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&O(Ve)})}var Ie=A(we,2),Ue=A(h(Ie),2),dt=h(Ue);g(Ue),g(Ie);var ct=A(Ie,2);{var ot=O=>{var be=db(),te=A(h(be),2);Wl(te,{get values(){return r(T)}});var Re=A(te,2),Ye=h(Re);g(Re),g(be),E(Ke=>me(Ye,`${Ke!=null?Ke:""} Kbps`),[()=>r(l).speed.toFixed(2)]),_(O,be)};B(ct,O=>{r(l).speed&&O(ot)})}var wt=A(ct,2);{var ft=O=>{var be=cb(),te=A(h(be),2);Wl(te,{get values(){return r(I)}});var Re=A(te,2),Ye=h(Re);g(Re),g(be),E(Ke=>me(Ye,`${Ke!=null?Ke:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),_(O,be)};B(wt,O=>{r(l).bitrate&&O(ft)})}var zt=A(wt,2),ti=A(h(zt),2);Wl(ti,{get values(){return r(C)}});var At=A(ti,2),Rt=h(At,!0);g(At),g(zt),g(W),g(P),E(O=>{var be,te;k=J(P,1,"container svelte-4deykz",null,k,O),me(Q,r(l).version),me(dt,`${(be=r(y))!=null?be:""} / ${(te=r(m))!=null?te:""} frames`),me(Rt,r(u))},[()=>({"container-mobile":n()})]),_(t,P),z(),o()}st(["click"]);import{noop as fb}from"@vkontakte/videoplayer-shared/es2018";var mb=(t,e)=>{t.stopPropagation(),e()()},vb=L('<div class="close svelte-1ome55p"></div>'),gb={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 Xs(t,e){U(e,!0),K(t,gb);let i=f(e,"onClick",3,fb);var o=vb();o.__click=[mb,i],_(t,o),z()}st(["click"]);import{noop as hb}from"@vkontakte/videoplayer-shared/es2018";var _b=L('<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>'),bb={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 Ql(t,e){U(e,!0),K(t,bb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,hb),n=5e3,a=X(void 0),s,d,l=X(0),p;Fe(()=>{i()&&(d=Date.now(),D(l,pe(requestAnimationFrame(y))))});let m=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},y=()=>{if(!i()){m();return}p=(Date.now()-d)/n,p<1?(s==null||s.clearRect(0,0,100,100),s==null||s.beginPath(),s==null||s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),s==null||s.stroke(),D(l,pe(requestAnimationFrame(y)))):o()()};Ht(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),wn(()=>{m()});var u=_b(),$=h(u);vt($,w=>D(a,w),()=>r(a)),$e(2),g(u),_(t,u),z()}var $b=(t,e,i)=>{e(!1),i()},yb=L('<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),xb={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 Hp(t,e){U(e,!0),K(t,xb);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},b=()=>{e.clickCloseIcon(),$()};Ht(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=ue(C);{var I=M=>{var P=yb(),k=A(ue(P),2),R=h(k),W=h(R),Y=h(W,!0);g(W);var F=A(W,2);Xs(F,{onClick:b}),g(R);var Q=A(R,2);Q.__click=[$b,p,y];var oe=h(Q),Z=h(oe),re=h(Z);let de;var Ae=A(re,2);{var Me=ne=>{let V=v(()=>a()&&n());Ql(ne,{get isRunning(){return r(V)},onTimerEnded:w})};B(Ae,ne=>{n()&&ne(Me)})}g(Z),g(oe);var ge=A(oe,2),se=h(ge),Ee=h(se,!0);g(se),g(ge),g(Q),g(k),E((ne,V)=>{me(Y,ne),rt(Z,`background-image: url('${e.thumb}')`),de=J(re,1,"thumb-overlay svelte-jfbaax",null,de,V),me(Ee,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),_(M,P)};B(T,M=>{e.isHide||M(I)})}_(t,C),z(),o()}st(["click"]);import{PlaybackState as Js}from"@vkontakte/videoplayer-core/es2018";import{checkNever as Sb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Sn}from"@vkontakte/videoplayer-statistics/es2018";var Fp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Up=(t,e)=>Math.max(+(t-e).toFixed(2),0),Bc=(t,e,i)=>{let o=Fp(e,i);e<1?t.actions.internal.setVolume(o):Se(t.state.muted$)&&t.actions.external.setMuted(!1)},Nc=(t,e,i)=>{let o=Up(e,i);e>0&&t.actions.internal.setVolume(o)};var bs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Cb=(t,e)=>{e(t)},Tb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Ib={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function zp(t,e){var At,Rt;U(e,!0),K(t,Ib);let[i,o]=Ne(),n=()=>S(Y,"$playbackState$",i),a=()=>S(F,"$adPlaybackState",i),s=()=>S(re,"$disabledControls$",i),d=()=>S(Q,"$positionExact$",i),l=()=>S(oe,"$duration$",i),p=()=>S(le,"$isAudioAvailable$",i),m=()=>S(Z,"$volume$",i),y=()=>S(ge,"$availablePlaybackRates$",i),u=()=>S(Me,"$currentPlaybackRate$",i),$=()=>S(ee,"$isInteractiveTime$",i),w=()=>S(De,"$showInteractiveTimeIndicatorTooltip$",i),b=()=>S(xe,"$isEnded$",i),C=()=>S(de,"$muted$",i),T=()=>S(Ae,"$currentSubtitle$",i),I=()=>S(_e,"$overlayContainer$",i),M=f(e,"nextButtonActive",3,!1),P=f(e,"prevButtonActive",3,!1),k=Ce(),R=Ft(),W=k.getLogger().createComponentLog("KeyboardControls component"),Y=k.state.playbackState$,F=k.ads.playbackState,Q=k.state.positionExact$,oe=k.state.duration$,Z=k.state.volume$,re=k.ui.controls.disabledControls$,de=k.state.muted$,Ae=k.state.currentSubtitle$,Me=k.state.currentPlaybackRate$,ge=k.state.availablePlaybackRates$,se=k.ui.contextMenu.openedByHotKey$,Ee=k.ui.contextMenu.lastActiveElem$,ne=k.ui.contextMenu.visible$,V=k.ui.contextMenu.position$,xe=k.state.isEnded$,_e=k.ui.overlayContainer$,ze=(At=k.callbacks)==null?void 0:At.onAudioDoesNotExistHint,H=(Rt=k.callbacks)==null?void 0:Rt.onAudioDisabledHint,le=k.state.isAudioAvailable$,he=k.state.isAudioDisabled,ee=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:De}=no(),je=0,we=!0,Ve=X(void 0),Ie=O=>(O!==we&&(we=O,je=0),je+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*je)/1e3),Ue=(O,be=!1)=>{var $i,Jt;let te=O.target,Re=($i=te==null?void 0:te.getAttribute("role"))==null?void 0:$i.includes("menuitem"),Ye=te.classList.contains("btn"),Ke=O.code;if(Ye&&Ke==="Space")return!1;let Le=Vg.has(Ke);if(Re&&Le)return!1;let nt=!Lg.has(Ke);if(O.ctrlKey&&nt||O.altKey&&nt||O.metaKey)return!1;let Je=Re&&Ke==="Escape";Rg.has(Ke)||Je||e.hideContextMenu();let ht=n()===Js.PLAYING||n()===Js.PAUSED,tt=e.isAds&&(a()==="paused"||a()==="playing"),Ze=!tt&&!s().has("TIMELINE");if(!(ht||tt))return!1;W({message:`key down, code: ${Ke}, isExternal = ${be}`});let qt=!1,_t=()=>{qt=!0,be||O.preventDefault()};switch(Ke){case"KeyJ":case"ArrowLeft":{if(!Ze)break;if(O.ctrlKey||O.altKey){let Qe=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(Qe),Qe&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Qe.text}),_t()}else{let Qe=O.shiftKey?Ie(!1):R.controls.seekStepKeyboard/1e3,Yt=Math.max(d()-Qe,0);d()>0&&(k.actions.internal.seekTime(Yt,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Qe.toString()}),_t())}break}case"KeyL":case"ArrowRight":{if(!Ze)break;if(O.ctrlKey||O.altKey){let Qe=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(Qe),Qe&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Qe.text}),_t()}else{let Qe=O.shiftKey?Ie(!0):R.controls.seekStepKeyboard/1e3,Yt=Math.min(d()+Qe,l());Math.round(d())<Math.round(l())&&(k.actions.internal.seekTime(Yt,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Qe.toString()}),_t())}break}case"ArrowUp":{if(bs({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let Qe=m(),Yt=R.controls.volumeStepKeyboard,Mi=Qe<=1;if(Bc(k,Qe,Yt),Mi){let Ni=Math.round(Fp(Qe,Yt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ni}})}}_t();break}case"ArrowDown":{if(bs({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})){let Qe=m(),Yt=R.controls.volumeStepKeyboard,Mi=Qe>=0;if(Nc(k,Qe,Yt),Mi){let Ni=Math.round(Up(Qe,Yt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ni}})}}_t();break}case"Comma":{if(O.shiftKey){k.actions.internal.decrementPlaybackRate();let Qe=y().find(Yt=>Yt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Qe==null?void 0:Qe.displayValue}),_t()}else{if(tt||n()!==Js.PAUSED)break;let Qe=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(Qe,Sn.DOUBLE_TAP),_t())}break}case"Period":{if(O.shiftKey){k.actions.internal.incrementPlaybackRate();let Qe=y().find(Yt=>Yt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Qe==null?void 0:Qe.displayValue}),_t()}else{if(tt||n()!==Js.PAUSED)break;let Qe=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(Qe,Sn.DOUBLE_TAP),_t())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&De.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let Qe="PLAY";n()===Js.PAUSED?Qe="PAUSE":b()&&(Qe="REPLAY"),e.showHotKeyHelpers({type:Qe})}_t();break;case"KeyM":{bs({isAudioDisabled:he,audioDisabledHintCallback:H,isAudioAvailable:p(),audioIsNotExistHintCallback:ze,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),_t();break}case"KeyF":e.toggleFullscreen(),_t();break;case"KeyC":k.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Jt=T())==null?void 0:Jt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),_t();break;case"KeyI":k.actions.internal.togglePictureInPicture(),_t();break;case"Digit1":case"Numpad1":if(O.shiftKey){let Qe=Eh(I());V.set(Qe),Ee.set(te),se.set(!0),ne.set(!0),_t();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,Sn.DOUBLE_TAP),_t();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,Sn.DOUBLE_TAP),_t();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,Sn.DOUBLE_TAP),_t();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,Sn.DOUBLE_TAP),_t();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,Sn.DOUBLE_TAP),_t();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,Sn.DOUBLE_TAP),_t();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,Sn.DOUBLE_TAP),_t();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,Sn.DOUBLE_TAP),_t();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,Sn.DOUBLE_TAP),_t();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,Sn.DOUBLE_TAP),_t();break;case"Slash":{O.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),_t());break}case"KeyN":O.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),_t());break;case"KeyP":O.shiftKey&&P()&&(k.actions.internal.prevVideoClick(),_t());break;case"ShiftLeft":case"ShiftRight":_t();break;case"Tab":case"Escape":case"Enter":break;default:Sb(Ke);break}return qt},dt=O=>{let be=O.code;if(O.ctrlKey||O.altKey||O.metaKey)return;let te=n()===Js.PLAYING||n()===Js.PAUSED,Re=e.isAds&&(a()==="paused"||a()==="playing");if(te||Re)switch(be){case"ShiftLeft":case"ShiftRight":je=0;break}},ct=q("aria_label_video_player"),ot=()=>{var O;return(O=r(Ve))==null?void 0:O.focus()},wt=O=>O.type==="keydown"?Ue(O,!0):(O.type==="keyup"&&dt(O),!1);var ft=Tb();ft.__keyup=dt,ft.__keydown=[Cb,Ue],Be(ft,"aria-label",ct);var zt=h(ft);ve(zt,()=>{var O;return(O=e.children)!=null?O:ie}),g(ft),vt(ft,O=>D(Ve,O),()=>r(Ve)),_(t,ft);var ti=z({focus:ot,handleExternalKeyboardEvent:wt});return o(),ti}st(["keyup","keydown"]);var kb=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Eb={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);}
145
145
 
146
146
  @keyframes svelte-1dbnjb1-dot_animation {
147
147
  0% {
@@ -154,7 +154,7 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
154
154
  opacity: 0.2;
155
155
  }
156
156
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
157
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ta(t,e){q(t,Cb);let i=f(e,"style",3,"");var o=Sb();k(()=>tt(o,i())),b(t,o)}var Tb=be('<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 Fp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Tb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),b(t,o)}import{noop as Qa}from"@vkontakte/videoplayer-shared/es2018";var Ib=t=>{t.stopPropagation()},kb=L("<button><!></button>"),Eb={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
157
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ea(t,e){K(t,Eb);let i=f(e,"style",3,"");var o=kb();E(()=>rt(o,i())),_(t,o)}var Pb=ye('<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 qp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Pb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),_(t,o)}import{noop as ja}from"@vkontakte/videoplayer-shared/es2018";var Ab=t=>{t.stopPropagation()},Mb=L("<button><!></button>"),Lb={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
158
158
 
159
159
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
160
160
 
@@ -162,22 +162,22 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
162
162
  /* mobile */
163
163
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {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-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
164
164
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr: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;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Mt(t,e){U(e,!0),q(t,Eb);let i=f(e,"className",3,""),o=f(e,"style",3,""),n=f(e,"disabled",3,void 0),a=f(e,"testId",3,void 0),s=f(e,"ariaHidden",3,void 0),d=f(e,"ariaLabel",3,void 0),l=f(e,"ref",15,void 0),p=f(e,"ariaKeyShortCut",3,void 0),m=f(e,"ariaExpanded",3,void 0),$=f(e,"tabIndex",3,0),u=f(e,"click",3,Qa),_=f(e,"focus",3,Qa),w=f(e,"blur",3,Qa),y=v(()=>u()===Qa?null:A=>{A.stopPropagation(),u()(A)}),C=v(()=>_()===Qa?null:A=>{A.preventDefault(),_()()}),T=v(()=>w()===Qa?null:A=>{A.preventDefault(),w()()});var E=kb();E.__pointerdown=[Ib],E.__click=function(...A){var I;(I=r(y))==null||I.apply(this,A)};var P=h(E);he(P,()=>{var A;return(A=e.children)!=null?A:oe}),g(E),pt(E,A=>l(A),()=>l()),k(()=>{var A,I,V,H,j,O,X;ee(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-wr0kwr"),tt(E,o()||null),E.disabled=(I=n())!=null?I:null,He(E,"aria-hidden",(V=s())!=null?V:null),He(E,"aria-label",(H=d())!=null?H:null),He(E,"aria-keyshortcuts",(j=p())!=null?j:null),He(E,"aria-expanded",(O=m())!=null?O:null),He(E,"data-testid",(X=a())!=null?X:null),He(E,"tabindex",$())}),xt("focus",E,function(...A){var I;(I=r(C))==null||I.apply(this,A)}),xt("blur",E,function(...A){var I;(I=r(T))==null||I.apply(this,A)}),b(t,E),z()}st(["pointerdown","click"]);var Pb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Ab=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),Mb={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {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-1witlsj {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-1witlsj {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-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function Up(t,e){U(e,!0),q(t,Mb);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=Ab(),s=h(a),d=h(s);{var l=u=>{var _=Pb(),w=h(_),y=h(w,!0);g(w);var C=M(w,2);{var T=E=>{Mt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,A)=>{Fp(P,{})},$$slots:{default:!0}})};R(C,E=>{o()&&E(T)})}g(_),k(()=>ge(y,e.title)),b(u,_)};R(d,u=>{i()&&u(l)})}var p=M(d,2),m=h(p),$=h(m);he($,()=>{var u;return(u=e.children)!=null?u:oe}),g(m),g(p),g(s),g(a),b(t,a),z()}var Lb=new Set(["BR"]),Eh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;Lb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Vb=L('<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>'),Rb=L('<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>'),Nb=L('<div class="hot-key-map svelte-quklnq"></div>'),Db={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,
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;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Vt(t,e){U(e,!0),K(t,Lb);let i=f(e,"className",3,""),o=f(e,"style",3,""),n=f(e,"disabled",3,void 0),a=f(e,"testId",3,void 0),s=f(e,"ariaHidden",3,void 0),d=f(e,"ariaLabel",3,void 0),l=f(e,"ref",15,void 0),p=f(e,"ariaKeyShortCut",3,void 0),m=f(e,"ariaExpanded",3,void 0),y=f(e,"tabIndex",3,0),u=f(e,"click",3,ja),$=f(e,"focus",3,ja),w=f(e,"blur",3,ja),b=v(()=>u()===ja?null:P=>{P.stopPropagation(),u()(P)}),C=v(()=>$()===ja?null:P=>{P.preventDefault(),$()()}),T=v(()=>w()===ja?null:P=>{P.preventDefault(),w()()});var I=Mb();I.__pointerdown=[Ab],I.__click=function(...P){var k;(k=r(b))==null||k.apply(this,P)};var M=h(I);ve(M,()=>{var P;return(P=e.children)!=null?P:ie}),g(I),vt(I,P=>l(P),()=>l()),E(()=>{var P,k,R,W,Y,F,Q;J(I,1,`btn ${(P=i())!=null?P:""}`,"svelte-wr0kwr"),rt(I,o()||null),I.disabled=(k=n())!=null?k:null,Be(I,"aria-hidden",(R=s())!=null?R:null),Be(I,"aria-label",(W=d())!=null?W:null),Be(I,"aria-keyshortcuts",(Y=p())!=null?Y:null),Be(I,"aria-expanded",(F=m())!=null?F:null),Be(I,"data-testid",(Q=a())!=null?Q:null),Be(I,"tabindex",y()),Be(I,"role",e.role)}),Tt("focus",I,function(...P){var k;(k=r(C))==null||k.apply(this,P)}),Tt("blur",I,function(...P){var k;(k=r(T))==null||k.apply(this,P)}),_(t,I),z()}st(["pointerdown","click"]);var Vb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Rb=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),Bb={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {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-1witlsj {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-1witlsj {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-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function Wp(t,e){U(e,!0),K(t,Bb);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var a=Rb(),s=h(a),d=h(s);{var l=u=>{var $=Vb(),w=h($),b=h(w,!0);g(w);var C=A(w,2);{var T=I=>{Vt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,P)=>{qp(M,{})},$$slots:{default:!0}})};B(C,I=>{o()&&I(T)})}g($),E(()=>me(b,e.title)),_(u,$)};B(d,u=>{i()&&u(l)})}var p=A(d,2),m=h(p),y=h(m);ve(y,()=>{var u;return(u=e.children)!=null?u:ie}),g(m),g(p),g(s),g(a),_(t,a),z()}var Nb=new Set(["BR"]),Mh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;Nb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Db=L('<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>'),Ob=L('<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>'),Hb=L('<div class="hot-key-map svelte-quklnq"></div>'),Fb={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
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 zp(t,e){U(e,!1),q(t,Db);let[i,o]=Be(),n=()=>S(s,"$data",i),a=Se(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};hr(),Up(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var $=Nb();Ci($,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>r(_).title,y=()=>r(_).items;var C=Rb(),T=h(C),E=h(T,!0);g(T);var P=M(T,2);Ci(P,5,y,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,H=()=>r(I).value;var j=Vb(),O=h(j),X=h(O);El(X,()=>Eh(V()),!1,!1),g(O);var ne=M(O,2),Y=h(ne,!0);g(ne),g(j),k(()=>ge(Y,H())),b(A,j)}),g(P),g(C),k(()=>ge(E,w())),b(u,C)}),g($),b(p,$)},$$slots:{default:!0}}),z(),o()}import{noop as Xh}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Gh,PlaybackState as Ef}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Bb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Ob={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 qp(t,e){q(t,Ob);var i=Bb(),o=h(i);he(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),b(t,i)}import{VideoQuality as Zl}from"@vkontakte/videoplayer-shared/es2018";var Hb=be('<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 Wp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Hb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Fb=be('<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 Kp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Fb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Ub=be('<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 Qp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ub();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var zb=be('<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 jl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=zb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var qb=be('<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 Yl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=qb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var Bc=t=>{switch(t){case Zl.Q_720P:return Qp;case Zl.Q_1080P:return jl;case Zl.Q_1440P:return Yl;case Zl.Q_2160P:return Wp;case Zl.Q_4320P:return Kp}};var Wb=be('<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 Gp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var Kb=be('<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 jp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var Qb=L('<div aria-hidden="true"><!> <!></div>'),Gb={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 Xl(t,e){U(e,!0),q(t,Gb);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>Bc(o())),a=v(()=>!!r(n)&&[jl,Yl].includes(r(n)));var s=Fe(),d=ue(s);{var l=m=>{Gp(m,{})},p=m=>{var $=Qb();let u;var _=h($);{var w=T=>{qp(T,{children:(E,P)=>{var A=Fe(),I=ue(A);Ti(I,()=>r(n),(V,H)=>{H(V,{})}),b(E,A)},$$slots:{default:!0}})};R(_,T=>{r(n)&&T(w)})}var y=M(_,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");jp(y,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g($),k(T=>u=ee($,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),b(m,$)};R(d,m=>{i()?m(l):m(p,!1)})}b(t,s),z()}var jb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Yb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ga(t,e){U(e,!0),q(t,Yb);let[i,o]=Be(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(m,"$settingsMenuVisible",i),s=()=>S(_,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Se(),p=l.state.currentQuality$,m=l.ui.settingsMenu.visible$,$=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,_=l.ui.isMobile,w=l.ui.t,y=J(void 0);Ue(()=>{n()&&$t(()=>{e.ref$.set(r(y))})});let C=v(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function T(P){let A=_s(P);a()?u():$(A,_o)}let E=v(()=>a()?"opened":"");Mt(t,{get className(){return r(E)},testId:"btn-settings",click:T,get ariaLabel(){return r(C)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){B(y,pe(P))},children:(P,A)=>{var I=jb(),V=h(I);Xl(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),b(P,I)},$$slots:{default:!0}}),z(),o()}var Zb=be('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function Yp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Zb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var Xb=be('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function Jl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function Zp(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Se().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Mt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Br.KeyC},children:(s,d)=>{var l=Fe(),p=ue(l);{var m=u=>{Yp(u,{})},$=u=>{Jl(u,{})};R(p,u=>{i()?u(m):u($,!1)})}b(s,l)},$$slots:{default:!0}}),z()}var Jb=L('<span class="duration svelte-sz9er7"> </span>'),e$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),t$={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 ed(t,e){U(e,!0),q(t,t$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>ln(e.duration)),s=v(()=>ln(e.position));var d=e$();let l;var p=h(d),m=h(p,!0);g(p);var $=M(p,2);{var u=_=>{var w=Jb(),y=h(w,!0);g(w),k(()=>ge(y,r(a))),b(_,w)};R($,_=>{o()&&_(u)})}g(d),pt(d,_=>n(_),()=>n()),k(_=>{l=ee(d,1,"time svelte-sz9er7",null,l,_),ge(m,r(s))},[()=>({mobile:i()})]),b(t,d),z()}import{noop as Oc}from"@vkontakte/videoplayer-shared/es2018";var i$=be('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),o$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
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 Kp(t,e){U(e,!1),K(t,Fb);let[i,o]=Ne(),n=()=>S(s,"$data",i),a=Ce(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};yr(),Wp(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var y=Hb();Si(y,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,b=()=>r($).items;var C=Ob(),T=h(C),I=h(T,!0);g(T);var M=A(T,2);Si(M,5,b,({description:P,value:k})=>k,(P,k)=>{let R=()=>r(k).description,W=()=>r(k).value;var Y=Db(),F=h(Y),Q=h(F);kl(Q,()=>Mh(R()),!1,!1),g(F);var oe=A(F,2),Z=h(oe,!0);g(oe),g(Y),E(()=>me(Z,W())),_(P,Y)}),g(M),g(C),E(()=>me(I,w())),_(u,C)}),g(y),_(p,y)},$$slots:{default:!0}}),z(),o()}import{noop as t1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Zh,PlaybackState as Mf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Ub=L('<div class="pillow svelte-1oe0j8n"><!></div>'),zb={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 Qp(t,e){K(t,zb);var i=Ub(),o=h(i);ve(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),_(t,i)}import{VideoQuality as jl}from"@vkontakte/videoplayer-shared/es2018";var qb=ye('<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 Gp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=qb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var Wb=ye('<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 Yp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var Kb=ye('<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 jp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),_(t,o)}var Qb=ye('<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 Gl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),_(t,o)}var Gb=ye('<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 Yl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),_(t,o)}var Dc=t=>{switch(t){case jl.Q_720P:return jp;case jl.Q_1080P:return Gl;case jl.Q_1440P:return Yl;case jl.Q_2160P:return Gp;case jl.Q_4320P:return Yp}};var Yb=ye('<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 Zp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Yb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),_(t,o)}var jb=ye('<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 Xp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=jb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),_(t,o)}var Zb=L('<div aria-hidden="true"><!> <!></div>'),Xb={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 Zl(t,e){U(e,!0),K(t,Xb);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>Dc(o())),a=v(()=>!!r(n)&&[Gl,Yl].includes(r(n)));var s=Oe(),d=ue(s);{var l=m=>{Zp(m,{})},p=m=>{var y=Zb();let u;var $=h(y);{var w=T=>{Qp(T,{children:(I,M)=>{var P=Oe(),k=ue(P);Ci(k,()=>r(n),(R,W)=>{W(R,{})}),_(I,P)},$$slots:{default:!0}})};B($,T=>{r(n)&&T(w)})}var b=A($,2);let C=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Xp(b,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),g(y),E(T=>u=J(y,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(a)})]),_(m,y)};B(d,m=>{i()?m(l):m(p,!1)})}_(t,s),z()}var Jb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),e$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Za(t,e){U(e,!0),K(t,e$);let[i,o]=Ne(),n=()=>S(e.ref$,"$ref$",i),a=()=>S(m,"$settingsMenuVisible",i),s=()=>S($,"$isMobile",i),d=()=>S(p,"$currentQuality",i),l=Ce(),p=l.state.currentQuality$,m=l.ui.settingsMenu.visible$,y=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,b=X(void 0);Fe(()=>{n()&&xt(()=>{e.ref$.set(r(b))})});let C=w("aria_label_settings");async function T(M){let P=_s(M);a()?u():y(P,bo)}let I=v(()=>a()?"opened":"");Vt(t,{get className(){return r(I)},testId:"btn-settings",click:T,ariaLabel:C,get ariaExpanded(){return a()},get ref(){return r(b)},set ref(M){D(b,pe(M))},children:(M,P)=>{var k=Jb(),R=h(k);Zl(R,{get isMobile(){return s()},get currentQuality(){return d()}}),g(k),_(M,k)},$$slots:{default:!0}}),z(),o()}var t$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"></path></svg>');function Jp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),_(t,o)}var i$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"></path></svg>');function Xl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=i$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),_(t,o)}function ef(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Ce().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Nr.KeyC},children:(s,d)=>{var l=Oe(),p=ue(l);{var m=u=>{Jp(u,{})},y=u=>{Xl(u,{})};B(p,u=>{i()?u(m):u(y,!1)})}_(s,l)},$$slots:{default:!0}}),z()}var o$=L('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),n$=L('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),r$={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 Jl(t,e){U(e,!0),K(t,r$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>ln(e.duration)),s=v(()=>ln(e.position));var d=n$();let l;var p=h(d),m=h(p,!0);g(p);var y=A(p,2);{var u=$=>{var w=o$(),b=h(w,!0);g(w),E(()=>me(b,r(a))),_($,w)};B(y,$=>{o()&&$(u)})}g(d),vt(d,$=>n($),()=>n()),E($=>{l=J(d,1,"time svelte-sz9er7",null,l,$),me(m,r(s))},[()=>({mobile:i()})]),_(t,d),z()}import{noop as Oc}from"@vkontakte/videoplayer-shared/es2018";var s$=ye('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-1n5yyua" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path class="wave2 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"></path><path class="wave1 svelte-1n5yyua" d="M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"></path><path class="cross svelte-1n5yyua" d="m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"></path></g></svg>'),a$={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
168
168
  .icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
169
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function $s(t,e){q(t,o$);let i=f(e,"volume",3,1),o=f(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var s=i$();k(()=>{var d;He(s,"data-value",r(a)),He(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}import{isNonNullable as Ah,noop as On}from"@vkontakte/videoplayer-shared/es2018";import{noop as Jp}from"@vkontakte/videoplayer-shared/es2018";import{noop as r$}from"@vkontakte/videoplayer-shared/es2018";var n$=L('<div class="overlay"><!></div>');function Xp(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(s,"$overlayContainer$",i),s=Se().ui.overlayContainer$,d=J(void 0),l=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};Ue(()=>{p(n())}),Ot(()=>(p(n()),()=>l(n())));var m=n$(),$=h(m);he($,()=>{var u;return(u=e.children)!=null?u:oe}),g(m),pt(m,u=>B(d,u),()=>r(d)),b(t,m),z(),o()}var s$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),a$=L("<div><!></div> <!>",1),l$={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function ia(t,e){U(e,!0),q(t,l$);let[i,o]=Be(),n=()=>S(X,"$overlayContainer$",i),a=()=>S(O,"$containerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"content",3,""),l=f(e,"active",15,!1),p=f(e,"translateX",3,0),m=f(e,"translateY",3,0),$=f(e,"isFullWidthWrapper",3,!1),u=f(e,"maxTooltipWidth",3,void 0),_=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,r$),y=5,C=J(void 0),T=J(void 0),E,P=J(0),A=J(0),I=J(0),V=J(0),H=Ht(),j=Se(),O=j.ui.playerSize,X=j.ui.overlayContainer$;Ue(()=>{$t(()=>{w()(l())})});let ne=j.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n()||!r(T)||!r(C))return;B(A,y);let ye=n().getBoundingClientRect(),xe=r(C).getBoundingClientRect(),De=xe.width,Ye=r(T).clientWidth,it=a().width,vt=(De-Ye)/2,Je=xe.left+p()-ye.left,ft=Je+vt,It=xe.top+m()-ye.top,Wt=Ye/2-y,Ft=ft<8,qt=ft+Ye>it-8;Ft&&(ft=8,Wt=Je+xe.width/2-2.5*y),qt&&(ft=it-8-Ye,Wt=xe.left-ye.left+xe.width/2-ft-y),B(I,pe(ft)),B(V,It),B(P,pe(Wt))},fe=()=>{!n()||!r(T)||!r(C)||B(A,-y)},le=()=>{if(!n()||!r(T)||!r(C))return;B(P,y);let ye=n().getBoundingClientRect(),xe=r(C).getBoundingClientRect(),De=xe.height,Ye=r(T).clientHeight,it=(De-Ye)/2+Ye,vt=xe.left+p()-ye.left-r(T).clientWidth,Je=2,ft=vt-y;ft<8&&(ft=8);let Wt=xe.top+m()-ye.top+it,Ft=Je-it/2,qt=Je-y;B(I,pe(ft)),B(V,Wt),B(A,Ft),B(P,qt)},Me=()=>{!n()||!r(T)||!r(C)||B(P,-y)},Ae=()=>{switch(_()){case"top":Y();break;case"bottom":fe();break;case"left":le();break;default:Me()}},me=()=>{try{if(!n()||!r(C))return;Ae(),l(!0)}catch(ye){ne({message:String(ye)})}},ae=()=>{l(!1)},Pe=()=>{r(T)&&(E||(E=window.setTimeout(me,H.controls.hideTimeoutTooltips)),l()&&me())},re=()=>{ae(),window.clearTimeout(E),E=void 0},D=(ye,xe,De)=>{let Ye="";switch(_()){case"top":Ye=`transform: translate(${ye}px, ${xe}px);`;break;case"bottom":Ye=`transform: translate(${ye}px, ${xe}px); top: auto; bottom: 100%;`;break;case"left":Ye=`transform: translate(${ye}px, ${xe}px); left: 0; right: auto;`;break;default:Ye=`transform: translate(${ye}px, ${xe}px);`}return Ye+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ye+=` opacity: ${De?1:0}; visibility: ${De?"visible":"hidden"}`,Ye},Ve=(ye,xe)=>{let De="";switch(_()){case"top":De=`transform: translate(${ye}px, ${xe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":De=`transform: translate(${ye}px, ${xe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":De=`transform: translate(${ye}px, ${xe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:De=`transform: translate(${ye}px, ${xe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return De},te=v(()=>D(r(I),r(V),l())),Qe=v(()=>Ve(r(P),r(A)));Ot(Ae),$n(()=>window.clearTimeout(E));var ie=a$(),Q=ue(ie);let W;Q.__mousemove=Pe,Q.__mousedown=re,Q.__mouseup=Pe;var Le=h(Q);he(Le,()=>{var ye;return(ye=e.children)!=null?ye:oe}),g(Q),pt(Q,ye=>B(C,ye),()=>r(C));var Ne=M(Q,2);{var Xe=ye=>{Xp(ye,{children:(xe,De)=>{var Ye=s$(),it=h(Ye),vt=h(it,!0);g(it);var Je=M(it,2);g(Ye),pt(Ye,ft=>B(T,ft),()=>r(T)),k(()=>{tt(Ye,r(te)),ge(vt,d()),tt(Je,r(Qe))}),b(xe,Ye)},$$slots:{default:!0}})};R(Ne,ye=>{d()&&!s()&&ye(Xe)})}k(ye=>W=ee(Q,1,"tooltip-wrapper svelte-hxlyne",null,W,ye),[()=>({"full-width":$()})]),xt("mouseenter",Q,Pe),xt("mouseleave",Q,re),b(t,ie),z(),o()}st(["mousemove","mousedown","mouseup"]);var Ph=t=>{t.stopPropagation()},d$=L("<div><!></div>"),c$={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 Mo(t,e){U(e,!0),q(t,c$);let[i,o]=Be(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Se(),d=lo(),l=s.ui.isMobile,p=d.graphIsOpened$,m=s.ui.t,$=f(e,"className",3,""),u=f(e,"disabled",3,!1),_=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),y=f(e,"width",15,void 0),C=f(e,"isFullWidthTooltip",3,!0),T=f(e,"tooltipContent",3,""),E=f(e,"tooltipActive",3,!1),P=f(e,"tooltipPlacement",3,"top"),A=f(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),I=f(e,"isAriaHidden",3,!1),V=f(e,"onTooltipVisibilityChange",3,Jp),H=f(e,"initialTranslateXPx",3,0),j=f(e,"initialTranslateYPx",19,()=>-18),O=f(e,"mouseEnter",3,Jp),X=f(e,"mouseLeave",3,Jp),ne=v(()=>u()?n()?m("tooltip_disabled_when_graph_on"):A():T());var Y=d$();Y.__pointerdown=[Ph],Y.__click=[Ph];var fe=h(Y);{var le=Ae=>{ia(Ae,{get content(){return r(ne)},get translateX(){return H()},get translateY(){return j()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return P()},get onVisibilityChange(){return V()},children:(me,ae)=>{var Pe=Fe(),re=ue(Pe);he(re,()=>{var D;return(D=e.children)!=null?D:oe}),b(me,Pe)},$$slots:{default:!0}})},Me=Ae=>{var me=Fe(),ae=ue(me);he(ae,()=>{var Pe;return(Pe=e.children)!=null?Pe:oe}),b(Ae,me)};R(fe,Ae=>{_()&&r(ne)&&!a()?Ae(le):Ae(Me,!1)})}g(Y),pt(Y,Ae=>w(Ae),()=>w()),k(()=>{var Ae;ee(Y,1,`btn-container ${(Ae=$())!=null?Ae:""}`,"svelte-p9r045"),He(Y,"aria-hidden",I()||null)}),xt("mouseenter",Y,function(...Ae){var me;(me=O())==null||me.apply(this,Ae)}),xt("mouseleave",Y,function(...Ae){var me;(me=X())==null||me.apply(this,Ae)}),Dr(Y,"clientWidth",y),b(t,Y),z(),o()}st(["pointerdown","click"]);var u$=be('<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 td(t,e){"use strict";var i=u$(),o=h(i),n=M(o);g(i),k(()=>{He(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),He(o,"fill-opacity",e.completed?1:.24),He(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var p$=L("<div><!></div>"),f$={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 ef(t,e){U(e,!0),q(t,f$);let o=Se().ui.t,n=J(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=p$();let p;var m=h(l);let $=v(()=>!!e.videoEpisode.completed);td(m,{get completed(){return r($)}}),g(l),k(u=>{p=ee(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),tt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Dr(l,"clientWidth",u=>B(n,u)),b(s,l)},$$slots:{default:!0}}),z()}var m$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),v$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),g$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
169
+ .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function $s(t,e){K(t,a$);let i=f(e,"volume",3,1),o=f(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var s=s$();E(()=>{var d;Be(s,"data-value",r(a)),Be(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),_(t,s)}import{isNonNullable as Vh,noop as On}from"@vkontakte/videoplayer-shared/es2018";import{noop as of}from"@vkontakte/videoplayer-shared/es2018";import{noop as d$}from"@vkontakte/videoplayer-shared/es2018";var l$=L('<div class="overlay"><!></div>');function tf(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(s,"$overlayContainer$",i),s=Ce().ui.overlayContainer$,d=X(void 0),l=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};Fe(()=>{p(n())}),Ht(()=>(p(n()),()=>l(n())));var m=l$(),y=h(m);ve(y,()=>{var u;return(u=e.children)!=null?u:ie}),g(m),vt(m,u=>D(d,u),()=>r(d)),_(t,m),z(),o()}var c$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),u$=L("<div><!></div> <!>",1),p$={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 ta(t,e){U(e,!0),K(t,p$);let[i,o]=Ne(),n=()=>S(Q,"$overlayContainer$",i),a=()=>S(F,"$containerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"content",3,""),l=f(e,"active",15,!1),p=f(e,"translateX",3,0),m=f(e,"translateY",3,0),y=f(e,"isFullWidthWrapper",3,!1),u=f(e,"maxTooltipWidth",3,void 0),$=f(e,"placement",3,"top"),w=f(e,"onVisibilityChange",3,d$),b=5,C=X(void 0),T=X(void 0),I,M=X(0),P=X(0),k=X(0),R=X(0),W=Ft(),Y=Ce(),F=Y.ui.playerSize,Q=Y.ui.overlayContainer$;Fe(()=>{xt(()=>{w()(l())})});let oe=Y.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!n()||!r(T)||!r(C))return;D(P,b);let we=n().getBoundingClientRect(),Ve=r(C).getBoundingClientRect(),Ie=Ve.width,Ue=r(T).clientWidth,dt=a().width,ct=(Ie-Ue)/2,ot=Ve.left+p()-we.left,wt=ot+ct,ft=Ve.top+m()-we.top,zt=Ue/2-b,ti=wt<8,At=wt+Ue>dt-8;ti&&(wt=8,zt=ot+Ve.width/2-2.5*b),At&&(wt=dt-8-Ue,zt=Ve.left-we.left+Ve.width/2-wt-b),D(k,pe(wt)),D(R,ft),D(M,pe(zt))},re=()=>{!n()||!r(T)||!r(C)||D(P,-b)},de=()=>{if(!n()||!r(T)||!r(C))return;D(M,b);let we=n().getBoundingClientRect(),Ve=r(C).getBoundingClientRect(),Ie=Ve.height,Ue=r(T).clientHeight,dt=(Ie-Ue)/2+Ue,ct=Ve.left+p()-we.left-r(T).clientWidth,ot=2,wt=ct-b;wt<8&&(wt=8);let zt=Ve.top+m()-we.top+dt,ti=ot-dt/2,At=ot-b;D(k,pe(wt)),D(R,zt),D(P,ti),D(M,At)},Ae=()=>{!n()||!r(T)||!r(C)||D(M,-b)},Me=()=>{switch($()){case"top":Z();break;case"bottom":re();break;case"left":de();break;default:Ae()}},ge=()=>{try{if(!n()||!r(C))return;Me(),l(!0)}catch(we){oe({message:String(we)})}},se=()=>{l(!1)},Ee=()=>{r(T)&&(I||(I=window.setTimeout(ge,W.controls.hideTimeoutTooltips)),l()&&ge())},ne=()=>{se(),window.clearTimeout(I),I=void 0},V=(we,Ve,Ie)=>{let Ue="";switch($()){case"top":Ue=`transform: translate(${we}px, ${Ve}px);`;break;case"bottom":Ue=`transform: translate(${we}px, ${Ve}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${we}px, ${Ve}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${we}px, ${Ve}px);`}return Ue+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ue+=` opacity: ${Ie?1:0}; visibility: ${Ie?"visible":"hidden"}`,Ue},xe=(we,Ve)=>{let Ie="";switch($()){case"top":Ie=`transform: translate(${we}px, ${Ve}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ie=`transform: translate(${we}px, ${Ve}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ie=`transform: translate(${we}px, ${Ve}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ie=`transform: translate(${we}px, ${Ve}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ie},_e=v(()=>V(r(k),r(R),l())),ze=v(()=>xe(r(M),r(P)));Ht(Me),wn(()=>window.clearTimeout(I));var H=u$(),le=ue(H);let he;le.__mousemove=Ee,le.__mousedown=ne,le.__mouseup=Ee;var ee=h(le);ve(ee,()=>{var we;return(we=e.children)!=null?we:ie}),g(le),vt(le,we=>D(C,we),()=>r(C));var De=A(le,2);{var je=we=>{tf(we,{children:(Ve,Ie)=>{var Ue=c$(),dt=h(Ue),ct=h(dt,!0);g(dt);var ot=A(dt,2);g(Ue),vt(Ue,wt=>D(T,wt),()=>r(T)),E(()=>{rt(Ue,r(_e)),me(ct,d()),rt(ot,r(ze))}),_(Ve,Ue)},$$slots:{default:!0}})};B(De,we=>{d()&&!s()&&we(je)})}E(we=>he=J(le,1,"tooltip-wrapper svelte-hxlyne",null,he,we),[()=>({"full-width":y()})]),Tt("mouseenter",le,Ee),Tt("mouseleave",le,ne),_(t,H),z(),o()}st(["mousemove","mousedown","mouseup"]);var Lh=t=>{t.stopPropagation()},f$=L("<div><!></div>"),m$={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 Eo(t,e){U(e,!0),K(t,m$);let[i,o]=Ne(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Ce(),d=no(),l=s.ui.isMobile,p=d.graphIsOpened$,m=s.ui.t,y=f(e,"className",3,""),u=f(e,"disabled",3,!1),$=f(e,"hasTooltip",3,!0),w=f(e,"ref",15,void 0),b=f(e,"width",15,void 0),C=f(e,"isFullWidthTooltip",3,!0),T=f(e,"tooltipContent",3,""),I=f(e,"tooltipActive",3,!1),M=f(e,"tooltipPlacement",3,"top"),P=f(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),k=f(e,"isAriaHidden",3,!1),R=f(e,"onTooltipVisibilityChange",3,of),W=f(e,"initialTranslateXPx",3,0),Y=f(e,"initialTranslateYPx",19,()=>-18),F=f(e,"mouseEnter",3,of),Q=f(e,"mouseLeave",3,of),oe=v(()=>u()?n()?m("tooltip_disabled_when_graph_on"):P():T());var Z=f$();Z.__pointerdown=[Lh],Z.__click=[Lh];var re=h(Z);{var de=Me=>{ta(Me,{get content(){return r(oe)},get translateX(){return W()},get translateY(){return Y()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return R()},children:(ge,se)=>{var Ee=Oe(),ne=ue(Ee);ve(ne,()=>{var V;return(V=e.children)!=null?V:ie}),_(ge,Ee)},$$slots:{default:!0}})},Ae=Me=>{var ge=Oe(),se=ue(ge);ve(se,()=>{var Ee;return(Ee=e.children)!=null?Ee:ie}),_(Me,ge)};B(re,Me=>{$()&&r(oe)&&!a()?Me(de):Me(Ae,!1)})}g(Z),vt(Z,Me=>w(Me),()=>w()),E(()=>{var Me;J(Z,1,`btn-container ${(Me=y())!=null?Me:""}`,"svelte-p9r045"),Be(Z,"aria-hidden",k()||null)}),Tt("mouseenter",Z,function(...Me){var ge;(ge=F())==null||ge.apply(this,Me)}),Tt("mouseleave",Z,function(...Me){var ge;(ge=Q())==null||ge.apply(this,Me)}),Br(Z,"clientWidth",b),_(t,Z),z(),o()}st(["pointerdown","click"]);var v$=ye('<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 ed(t,e){"use strict";var i=v$(),o=h(i),n=A(o);g(i),E(()=>{Be(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Be(o,"fill-opacity",e.completed?1:.24),Be(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(t,i)}var g$=L("<div><!></div>"),h$={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 nf(t,e){U(e,!0),K(t,h$);let o=Ce().ui.t,n=X(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Eo(t,{get tooltipContent(){return r(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(s,d)=>{var l=g$();let p;var m=h(l);let y=v(()=>!!e.videoEpisode.completed);ed(m,{get completed(){return r(y)}}),g(l),E(u=>{p=J(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),rt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Br(l,"clientWidth",u=>D(n,u)),_(s,l)},$$slots:{default:!0}}),z()}var _$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),b$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),$$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
170
170
  .video-episode-loaded.svelte-1u6kv8l,
171
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function tf(t,e){q(t,g$);let i=f(e,"videoEpisodes",19,()=>[]);var o=v$();Ci(o,21,i,n=>n.from,(n,a)=>{var s=m$();let d;var l=h(s),p=h(l),m=M(p,2);let $;g(l),g(s),k((u,_)=>{d=ee(s,1,"video-episode svelte-1u6kv8l",null,d,u),tt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),tt(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),$=ee(m,1,"video-episode-filled svelte-1u6kv8l",null,$,_),tt(m,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function h$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&B(i,pe(e().getBoundingClientRect())),o()||r(n)||!e())return;B(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function _$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);n()(l,p,r(a).width),r(s)&&d()(l)}function b$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;B(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function $$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var y$=L("<div></div>"),x$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),w$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),S$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
171
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function rf(t,e){K(t,$$);let i=f(e,"videoEpisodes",19,()=>[]);var o=b$();Si(o,21,i,n=>n.from,(n,a)=>{var s=_$();let d;var l=h(s),p=h(l),m=A(p,2);let y;g(l),g(s),E((u,$)=>{d=J(s,1,"video-episode svelte-1u6kv8l",null,d,u),rt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),rt(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),y=J(m,1,"video-episode-filled svelte-1u6kv8l",null,y,$),rt(m,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),_(n,s)}),g(o),_(t,o)}function y$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&D(i,pe(e().getBoundingClientRect())),o()||r(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function x$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),p=o(t.clientX);n()(l,p,r(a).width),r(s)&&d()(l)}function w$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function S$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var C$=L("<div></div>"),T$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),I$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),k$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
172
172
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
173
173
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
174
174
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
175
175
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
176
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function oa(t,e){U(e,!0),q(t,S$);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),n=f(e,"testId",3,void 0),a=f(e,"isHidden",3,!1),s=f(e,"isVertical",3,!1),d=f(e,"isActiveLive",3,!1),l=f(e,"isMobile",3,!1),p=f(e,"squareBorders",3,!1),m=f(e,"videoEpisodes",19,()=>[]),$=f(e,"withWheelHandler",3,!1),u=f(e,"isInteractive",3,!1),_=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),y=f(e,"onPointerDown",3,On),C=f(e,"onHandleMove",3,On),T=f(e,"onPointerUp",3,On),E=f(e,"onPointerEnter",3,On),P=f(e,"onPointerMove",3,On),A=f(e,"onPointerLeave",3,On),I=f(e,"onMouseEnter",3,On),V=f(e,"onMouseLeave",3,On),H=f(e,"onWheelUp",3,On),j=f(e,"onWheelDown",3,On),O=f(e,"onWheelLeft",3,On),X=f(e,"onWheelRight",3,On),ne=f(e,"onDisabledClick",3,On),Y=f(e,"loadedProgress",3,0),fe=f(e,"filledProgress",3,0),le=f(e,"handleProgress",3,0),Me=f(e,"ariaLabel",3,""),Ae=f(e,"ariaValueMin",3,void 0),me=f(e,"ariaValueMax",3,void 0),ae=f(e,"ariaValueNow",3,void 0),Pe=f(e,"ariaValueText",3,""),re=Ht(),D=J(void 0),Ve=J(!1),te=v(()=>{var se;return(se=me())!=null?se:0}),Qe=v(()=>{var se;return Ah(m())&&((se=m()[m().length-1])==null?void 0:se.time)<r(te)}),ie=v(()=>Ah(m())&&m().length&&r(Qe)&&r(te)?De(Y()*100,fe()*100):[]);function Q(se){if(se.preventDefault(),i()&&B(D,pe(i().getBoundingClientRect())),_())return;let Oe=ye(se.clientX,se.clientY),ze=xe(se.clientX);E()(Oe,ze,r(D).width)}function W(se){se.preventDefault(),!_()&&A()()}function Le(){I()()}function Ne(){V()()}function Xe(se){_()||$()&&(se.preventDefault(),se.deltaY<0?H()():se.deltaY>0?j()():se.deltaX>0?X()():O()())}function ye(se,Oe){return s()?Math.max(0,Math.min(1,(r(D).height-(Oe-r(D).top))/r(D).height)):Math.min(Math.max(se-r(D).x,0),r(D).width)/r(D).width}function xe(se){return Math.min(Math.max(se-r(D).x,0),r(D).width)}function De(se,Oe){let ze=re.features.episodesClustering&&!u()?re.episodeMinWidthPc:0,et=[],at=m()[0].time/r(te)*100,je=0,Ze=0;for(let _t=1;_t<m().length;_t++)je=m()[_t].time/r(te)*100,je-at>ze&&(et.push({from:at,width:Math.max(0,je-at),loadedWidth:Math.max(0,Math.min(je,se)-at),filledWidth:Math.max(0,Math.min(je,Oe)-at),interactive:m()[_t-1].interactive,completed:m()[_t-1].completed}),at=m()[_t].time/r(te)*100,Ze++);let lt={from:at,width:Math.max(0,100-at),loadedWidth:Math.max(0,Math.min(se,100)-at),filledWidth:Math.max(0,Math.min(Oe,100)-at),interactive:m()[Ze].interactive,completed:m()[Ze].completed};100-at<ze?(Ze-=1,et[Ze].width+=100-at,et[Ze].loadedWidth+=Math.max(0,Math.min(se,100)-at),et[Ze].filledWidth+=Math.max(0,Math.min(Oe,100)-at)):et[Ze]=lt;let Re=m()[0].time;if(Re!==0){let _t=Re/r(te)*100;et.unshift({from:0,width:_t,loadedWidth:Math.min(_t,se),filledWidth:Math.min(_t,Oe)})}return et}var Ye=w$(),it=ue(Ye);{var vt=se=>{var Oe=y$();let ze;Ci(Oe,21,()=>r(ie),et=>et.from,(et,at)=>{var je=Fe(),Ze=ue(je);{var lt=Re=>{ef(Re,{get videoEpisode(){return r(at)},get disabled(){return _()}})};R(Ze,Re=>{r(at).interactive&&Re(lt)})}b(et,je)}),g(Oe),k(et=>ze=ee(Oe,1,"interactive-icons svelte-1tpemng",null,ze,et),[()=>({mobile:l(),hidden:l()&&!r(Ve)})]),b(se,Oe)};R(it,se=>{u()&&se(vt)})}var Je=M(it,2);let ft;Je.__pointerdown=[h$,i,D,_,Ve,ye,y],Je.__pointermove=[_$,_,ye,xe,P,D,Ve,C],Je.__pointerup=[b$,_,Ve,ye,T],Je.__click=[$$,_,ne,ye];var It=h(Je);{var Wt=se=>{tf(se,{get videoEpisodes(){return r(ie)},get disabled(){return _()},get isMobile(){return l()}})},Ft=se=>{var Oe=x$(),ze=h(Oe),et=M(ze,2);let at;g(Oe),k(je=>{tt(ze,`transform: translateX(${Y()*100}%);`),at=ee(et,1,"filled svelte-1tpemng",null,at,je),tt(et,`transform: translateX(${fe()*100}%);`)},[()=>({"active-live":d()})]),b(se,Oe)};R(It,se=>{r(ie).length?se(Wt):se(Ft,!1)})}var qt=M(It,2);let ve;var G=h(qt);let Te;g(qt),g(Je),pt(Je,se=>i(se),()=>i()),k((se,Oe,ze)=>{var et,at;ft=ee(Je,1,`slider ${(et=o())!=null?et:""}`,"svelte-1tpemng",ft,se),He(Je,"aria-label",Me()),He(Je,"aria-valuemin",Ae()),He(Je,"aria-valuemax",me()),He(Je,"aria-valuenow",ae()),He(Je,"aria-valuetext",Pe()),He(Je,"data-testid",(at=n())!=null?at:null),ve=ee(qt,1,"handleWrap svelte-1tpemng",null,ve,Oe),tt(qt,`transform: translateX(${le()*100}%);`),Te=ee(G,1,"handle svelte-1tpemng",null,Te,ze)},[()=>({disabled:_(),"slider-dragging":r(Ve),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),xt("pointerenter",Je,Q),xt("pointerleave",Je,W),xt("mouseenter",Je,Le),xt("mouseleave",Je,Ne),xt("wheel",Je,Xe),b(t,Ye),z()}st(["pointerdown","pointermove","pointerup","click"]);var Wi=(t,e)=>Ks[t]>=Ks[e],Mh=(t,e)=>Ks[t]<Ks[e],ys=(t,e)=>Ks[t]<=Ks[e],Lh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var C$=L("<div><!></div>"),T$=L("<div><!> <!></div>"),I$={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 of(t,e){var Xe,ye;U(e,!0),q(t,I$);let[i,o]=Be(),n=()=>S(E,"$isAudioAvailable$",i),a=()=>S($,"$muted$",i),s=()=>S(m,"$volume$",i),d=()=>S(y,"$currentGridType$",i),l=Se(),p=Ht(),m=l.state.volume$,$=l.state.muted$,{setVolume:u,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,C=(Xe=l.callbacks)==null?void 0:Xe.onAudioDoesNotExistHint,T=(ye=l.callbacks)==null?void 0:ye.onAudioDisabledHint,E=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,A=l.ui.t,I=J(!1),V,H=v(()=>!n()||a()||s()===0),j=v(()=>ys(d(),"s")),O=v(()=>r(j)?"":r(H)?!n()||P?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),X=v(()=>r(H)?A("tooltip_volume"):A("tooltip_volume_muted")),ne=v(()=>r(H)?0:s()),Y=!1,fe=v(()=>n()?P&&!T:!C);function le(xe){_(),u(xe)}function Me(){Nc(l,s(),p.controls.volumeStepWheel)}function Ae(){Dc(l,s(),p.controls.volumeStepWheel)}function me(xe){u(xe)}function ae(xe){u(xe),w()}function Pe(){Y=!0}function re(){Y=!1,te()}function D(){clearTimeout(V),B(I,!0)}function Ve(){te()}function te(){V=window.setTimeout(()=>{Y||B(I,!1)},p.controls.volumeBarTimeout)}function Qe(xe){xe.preventDefault(),xe.deltaY<0?Me():xe.deltaY>0&&Ae()}var ie=T$();let Q;var W=h(ie);ia(W,{get content(){return r(O)},translateY:-18,children:(xe,De)=>{let Ye=v(()=>r(j)?"btn-volume-vertical":"btn-volume-horizontal");Mt(xe,{className:"btn-full-opacity",get disabled(){return r(fe)},get testId(){return r(Ye)},get ariaLabel(){return r(X)},get click(){return e.click},get ariaKeyShortCut(){return Br.KeyM},children:(it,vt)=>{$s(it,{get volume(){return s()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Le=M(W,2);{var Ne=xe=>{var De=C$();let Ye;var it=h(De);let vt=v(()=>r(j)?"volumeBar-slider-vertical":""),Je=v(()=>r(j)&&!r(I)),ft=v(()=>r(j)?Pe:Oc),It=v(()=>r(j)?re:Oc),Wt=v(()=>Math.round(r(ne)*100)),Ft=v(()=>`${Math.round(r(ne)*100)}%`),qt=v(()=>r(j)?"volume-slider-vertical":"volume-slider");oa(it,{get className(){return r(vt)},get isHidden(){return r(Je)},get isVertical(){return r(j)},withWheelHandler:!0,onWheelUp:Me,onWheelDown:Ae,onPointerDown:le,onHandleMove:me,onPointerUp:ae,get onPointerEnter(){return r(ft)},get onPointerLeave(){return r(It)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Wt)},get ariaValueText(){return r(Ft)},get filledProgress(){return r(ne)},get handleProgress(){return r(ne)},get testId(){return r(qt)}}),g(De),k(ve=>Ye=ee(De,1,"volumeBar svelte-1auih1j",null,Ye,ve),[()=>({"volumeBar-vertical":r(j)})]),b(xe,De)};R(Le,xe=>{n()&&xe(Ne)})}g(ie),k(xe=>Q=ee(ie,1,"volumeBar-container svelte-1auih1j",null,Q,xe),[()=>({vertical:r(j)})]),xt("mouseenter",ie,function(...xe){var De;(De=r(j)?D:Oc)==null||De.apply(this,xe)}),xt("mouseleave",ie,function(...xe){var De;(De=r(j)?Ve:Oc)==null||De.apply(this,xe)}),xt("wheel",ie,Qe),b(t,ie),z(),o()}import{noop as P$}from"@vkontakte/videoplayer-shared/es2018";var k$=be('<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 nf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=k$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),b(t,o)}var E$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function rf(t,e){q(t,E$);let i=f(e,"isFullscreen",8,!1),o=mr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");nf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function id(t,e){U(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,P$),n=Se(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Mt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let m=_s(p);a.set(m),o()()},get ariaKeyShortCut(){return Br.KeyF},children:(p,m)=>{rf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var A$=be('<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 sf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=A$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),b(t,o)}var M$=be('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function af(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=M$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(4),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var L$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
176
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ia(t,e){U(e,!0),K(t,k$);let i=f(e,"ref",15,void 0),o=f(e,"className",3,""),n=f(e,"testId",3,void 0),a=f(e,"isHidden",3,!1),s=f(e,"isVertical",3,!1),d=f(e,"isActiveLive",3,!1),l=f(e,"isMobile",3,!1),p=f(e,"squareBorders",3,!1),m=f(e,"videoEpisodes",19,()=>[]),y=f(e,"withWheelHandler",3,!1),u=f(e,"isInteractive",3,!1),$=f(e,"disabled",3,!1),w=f(e,"hideHandel",3,!1),b=f(e,"onPointerDown",3,On),C=f(e,"onHandleMove",3,On),T=f(e,"onPointerUp",3,On),I=f(e,"onPointerEnter",3,On),M=f(e,"onPointerMove",3,On),P=f(e,"onPointerLeave",3,On),k=f(e,"onMouseEnter",3,On),R=f(e,"onMouseLeave",3,On),W=f(e,"onWheelUp",3,On),Y=f(e,"onWheelDown",3,On),F=f(e,"onWheelLeft",3,On),Q=f(e,"onWheelRight",3,On),oe=f(e,"onDisabledClick",3,On),Z=f(e,"loadedProgress",3,0),re=f(e,"filledProgress",3,0),de=f(e,"handleProgress",3,0),Ae=f(e,"ariaLabel",3,""),Me=f(e,"ariaValueMin",3,void 0),ge=f(e,"ariaValueMax",3,void 0),se=f(e,"ariaValueNow",3,void 0),Ee=f(e,"ariaValueText",3,""),ne=Ft(),V=X(void 0),xe=X(!1),_e=v(()=>{var te;return(te=ge())!=null?te:0}),ze=v(()=>{var te;return Vh(m())&&((te=m()[m().length-1])==null?void 0:te.time)<r(_e)}),H=v(()=>Vh(m())&&m().length&&r(ze)&&r(_e)?Ie(Z()*100,re()*100):[]);function le(te){if(te.preventDefault(),i()&&D(V,pe(i().getBoundingClientRect())),$())return;let Re=we(te.clientX,te.clientY),Ye=Ve(te.clientX);I()(Re,Ye,r(V).width)}function he(te){te.preventDefault(),!$()&&P()()}function ee(){k()()}function De(){R()()}function je(te){$()||y()&&(te.preventDefault(),te.deltaY<0?W()():te.deltaY>0?Y()():te.deltaX>0?Q()():F()())}function we(te,Re){return s()?Math.max(0,Math.min(1,(r(V).height-(Re-r(V).top))/r(V).height)):Math.min(Math.max(te-r(V).x,0),r(V).width)/r(V).width}function Ve(te){return Math.min(Math.max(te-r(V).x,0),r(V).width)}function Ie(te,Re){let Ye=ne.features.episodesClustering&&!u()?ne.episodeMinWidthPc:0,Ke=[],Le=m()[0].time/r(_e)*100,nt=0,Je=0;for(let Ze=1;Ze<m().length;Ze++)nt=m()[Ze].time/r(_e)*100,nt-Le>Ye&&(Ke.push({from:Le,width:Math.max(0,nt-Le),loadedWidth:Math.max(0,Math.min(nt,te)-Le),filledWidth:Math.max(0,Math.min(nt,Re)-Le),interactive:m()[Ze-1].interactive,completed:m()[Ze-1].completed}),Le=m()[Ze].time/r(_e)*100,Je++);let ht={from:Le,width:Math.max(0,100-Le),loadedWidth:Math.max(0,Math.min(te,100)-Le),filledWidth:Math.max(0,Math.min(Re,100)-Le),interactive:m()[Je].interactive,completed:m()[Je].completed};100-Le<Ye?(Je-=1,Ke[Je].width+=100-Le,Ke[Je].loadedWidth+=Math.max(0,Math.min(te,100)-Le),Ke[Je].filledWidth+=Math.max(0,Math.min(Re,100)-Le)):Ke[Je]=ht;let tt=m()[0].time;if(tt!==0){let Ze=tt/r(_e)*100;Ke.unshift({from:0,width:Ze,loadedWidth:Math.min(Ze,te),filledWidth:Math.min(Ze,Re)})}return Ke}var Ue=I$(),dt=ue(Ue);{var ct=te=>{var Re=C$();let Ye;Si(Re,21,()=>r(H),Ke=>Ke.from,(Ke,Le)=>{var nt=Oe(),Je=ue(nt);{var ht=tt=>{nf(tt,{get videoEpisode(){return r(Le)},get disabled(){return $()}})};B(Je,tt=>{r(Le).interactive&&tt(ht)})}_(Ke,nt)}),g(Re),E(Ke=>Ye=J(Re,1,"interactive-icons svelte-1tpemng",null,Ye,Ke),[()=>({mobile:l(),hidden:l()&&!r(xe)})]),_(te,Re)};B(dt,te=>{u()&&te(ct)})}var ot=A(dt,2);let wt;ot.__pointerdown=[y$,i,V,$,xe,we,b],ot.__pointermove=[x$,$,we,Ve,M,V,xe,C],ot.__pointerup=[w$,$,xe,we,T],ot.__click=[S$,$,oe,we];var ft=h(ot);{var zt=te=>{rf(te,{get videoEpisodes(){return r(H)},get disabled(){return $()},get isMobile(){return l()}})},ti=te=>{var Re=T$(),Ye=h(Re),Ke=A(Ye,2);let Le;g(Re),E(nt=>{rt(Ye,`transform: translateX(${Z()*100}%);`),Le=J(Ke,1,"filled svelte-1tpemng",null,Le,nt),rt(Ke,`transform: translateX(${re()*100}%);`)},[()=>({"active-live":d()})]),_(te,Re)};B(ft,te=>{r(H).length?te(zt):te(ti,!1)})}var At=A(ft,2);let Rt;var O=h(At);let be;g(At),g(ot),vt(ot,te=>i(te),()=>i()),E((te,Re,Ye)=>{var Ke,Le;wt=J(ot,1,`slider ${(Ke=o())!=null?Ke:""}`,"svelte-1tpemng",wt,te),Be(ot,"aria-label",Ae()),Be(ot,"aria-valuemin",Me()),Be(ot,"aria-valuemax",ge()),Be(ot,"aria-valuenow",se()),Be(ot,"aria-valuetext",Ee()),Be(ot,"data-testid",(Le=n())!=null?Le:null),Rt=J(At,1,"handleWrap svelte-1tpemng",null,Rt,Re),rt(At,`transform: translateX(${de()*100}%);`),be=J(O,1,"handle svelte-1tpemng",null,be,Ye)},[()=>({disabled:$(),"slider-dragging":r(xe),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Tt("pointerenter",ot,le),Tt("pointerleave",ot,he),Tt("mouseenter",ot,ee),Tt("mouseleave",ot,De),Tt("wheel",ot,je),_(t,Ue),z()}st(["pointerdown","pointermove","pointerup","click"]);var Wi=(t,e)=>Ws[t]>=Ws[e],Rh=(t,e)=>Ws[t]<Ws[e],ys=(t,e)=>Ws[t]<=Ws[e],Bh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var E$=L("<div><!></div>"),P$=L("<div><!> <!></div>"),A$={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 sf(t,e){var we,Ve;U(e,!0),K(t,A$);let[i,o]=Ne(),n=()=>S(I,"$isAudioAvailable$",i),a=()=>S(y,"$muted$",i),s=()=>S(m,"$volume$",i),d=()=>S(b,"$currentGridType$",i),l=Ce(),p=Ft(),m=l.state.volume$,y=l.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,b=l.ui.currentGridType$,C=(we=l.callbacks)==null?void 0:we.onAudioDoesNotExistHint,T=(Ve=l.callbacks)==null?void 0:Ve.onAudioDisabledHint,I=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,P=l.ui.t,k=X(!1),R,W=v(()=>e.isAds||n()),Y=v(()=>!r(W)||a()||s()===0),F=v(()=>ys(d(),"s")),Q=v(()=>r(F)?"":r(Y)?!n()||M?P("tooltip_sound_unavailable"):P("tooltip_volume_on"):P("tooltip_volume_muted")),oe=P("aria_label_volume"),Z=v(()=>r(Y)?0:s()),re=!1,de=v(()=>e.isAds?!1:M?!T:n()?!1:!C);function Ae(Ie){$(),u(Ie)}function Me(){Bc(l,s(),p.controls.volumeStepWheel)}function ge(){Nc(l,s(),p.controls.volumeStepWheel)}function se(Ie){u(Ie)}function Ee(Ie){u(Ie),w()}function ne(){re=!0}function V(){re=!1,ze()}function xe(){clearTimeout(R),D(k,!0)}function _e(){ze()}function ze(){R=window.setTimeout(()=>{re||D(k,!1)},p.controls.volumeBarTimeout)}function H(Ie){Ie.preventDefault(),Ie.deltaY<0?Me():Ie.deltaY>0&&ge()}var le=P$();let he;var ee=h(le);ta(ee,{get content(){return r(Q)},translateY:-18,children:(Ie,Ue)=>{let dt=v(()=>r(F)?"btn-volume-vertical":"btn-volume-horizontal");Vt(Ie,{className:"btn-full-opacity",get disabled(){return r(de)},get testId(){return r(dt)},ariaLabel:oe,get click(){return e.click},get ariaKeyShortCut(){return Nr.KeyM},role:"switch",children:(ct,ot)=>{$s(ct,{get volume(){return s()},get muted(){return r(Y)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var De=A(ee,2);{var je=Ie=>{var Ue=E$();let dt;var ct=h(Ue);let ot=v(()=>r(F)?"volumeBar-slider-vertical":""),wt=v(()=>r(F)&&!r(k)),ft=v(()=>r(F)?ne:Oc),zt=v(()=>r(F)?V:Oc),ti=v(()=>Math.round(r(Z)*100)),At=v(()=>`${Math.round(r(Z)*100)}%`),Rt=v(()=>r(F)?"volume-slider-vertical":"volume-slider");ia(ct,{get className(){return r(ot)},get isHidden(){return r(wt)},get isVertical(){return r(F)},withWheelHandler:!0,onWheelUp:Me,onWheelDown:ge,onPointerDown:Ae,onHandleMove:se,onPointerUp:Ee,get onPointerEnter(){return r(ft)},get onPointerLeave(){return r(zt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(ti)},get ariaValueText(){return r(At)},get filledProgress(){return r(Z)},get handleProgress(){return r(Z)},get testId(){return r(Rt)}}),g(Ue),E(O=>dt=J(Ue,1,"volumeBar svelte-1auih1j",null,dt,O),[()=>({"volumeBar-vertical":r(F)})]),_(Ie,Ue)};B(De,Ie=>{r(W)&&Ie(je)})}g(le),E(Ie=>he=J(le,1,"volumeBar-container svelte-1auih1j",null,he,Ie),[()=>({vertical:r(F)})]),Tt("mouseenter",le,function(...Ie){var Ue;(Ue=r(F)?xe:Oc)==null||Ue.apply(this,Ie)}),Tt("mouseleave",le,function(...Ie){var Ue;(Ue=r(F)?_e:Oc)==null||Ue.apply(this,Ie)}),Tt("wheel",le,H),_(t,le),z(),o()}import{noop as V$}from"@vkontakte/videoplayer-shared/es2018";var M$=ye('<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 af(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=M$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),_(t,o)}var L$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function lf(t,e){K(t,L$);let i=f(e,"isFullscreen",8,!1),o=_r(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");af(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function td(t,e){U(e,!0);let i=f(e,"isFullscreen",3,!1),o=f(e,"click",3,V$),n=Ce(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let m=_s(p);a.set(m),o()()},get ariaKeyShortCut(){return Nr.KeyF},children:(p,m)=>{lf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var R$=ye('<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 df(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=R$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),_(t,o)}var B$=ye('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function cf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=B$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(4),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}var N$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
178
178
  svg[data-testid="vk-video-logo-icon--short"] ._en,
179
179
  svg[data-testid="vk-video-logo-icon"] ._en,
180
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function lf(t,e){q(t,L$);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);af(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function od(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(_,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),s=()=>S(y,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),p=f(e,"targetUrl",3,""),m=Ht(),$=Se(),u=$.ui.currentGridType$,_=$.ui.isMobile,w=$.ui.t,y=$.isCyrillicRelatedInterface$,C=v(()=>m.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>m.logoType==="vk_video"||m.logoType==="vk_video_mobile"),E=v(()=>(n()||ys(a(),"l"))&&r(T)),P=()=>{var V,H;e.click(),(V=$.callbacks)!=null&&V.onLogoClicked?(H=$.callbacks)==null||H.onLogoClicked():p()&&window.open(p(),"_blank")},A=v(()=>!l()),I=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Mt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(I)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(V){d(V)},children:(V,H)=>{var j=Fe(),O=ue(j);{var X=Y=>{lf(Y,{get short(){return r(E)},get isCyrillic(){return s()}})},ne=Y=>{sf(Y,{})};R(O,Y=>{r(T)?Y(X):Y(ne,!1)})}b(V,j)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as B$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Vh}from"@vkontakte/videoplayer-core/es2018";var R$=be('<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>'),N$=be('<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>'),D$={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) {
180
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function uf(t,e){K(t,N$);let i=f(e,"short",3,!1),o=f(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);cf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function id(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S($,"$isMobile",i),a=()=>S(u,"$currentGridType$",i),s=()=>S(b,"$isCyrillicRelatedInterface$",i),d=f(e,"ref",15,void 0),l=f(e,"logoClickable",3,!1),p=f(e,"targetUrl",3,""),m=Ft(),y=Ce(),u=y.ui.currentGridType$,$=y.ui.isMobile,w=y.ui.t,b=y.isCyrillicRelatedInterface$,C=v(()=>m.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=v(()=>m.logoType==="vk_video"||m.logoType==="vk_video_mobile"),I=v(()=>(n()||ys(a(),"l"))&&r(T)),M=()=>{var R,W;e.click(),(R=y.callbacks)!=null&&R.onLogoClicked?(W=y.callbacks)==null||W.onLogoClicked():p()&&window.open(p(),"_blank")},P=v(()=>!l()),k=v(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return r(P)},click:M,get testId(){return r(k)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(R){d(R)},children:(R,W)=>{var Y=Oe(),F=ue(Y);{var Q=Z=>{uf(Z,{get short(){return r(I)},get isCyrillic(){return s()}})},oe=Z=>{df(Z,{})};B(F,Z=>{r(T)?Z(Q):Z(oe,!1)})}_(R,Y)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as U$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Nh}from"@vkontakte/videoplayer-core/es2018";var O$=ye('<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>'),H$=ye('<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>'),F$={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) {
181
181
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
182
182
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
183
183
  animation-name: svelte-8z1bf5-wave3;}
@@ -225,9 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
225
225
  100% {
226
226
  opacity: 1;
227
227
  }
228
- }`};function df(t,e){U(e,!0),q(t,D$);let i=f(e,"isMobile",3,!1),o=v(()=>e.iconState===Vh.CONNECTED),n=v(()=>e.iconState===Vh.CONNECTING);var a=Fe(),s=ue(a);{var d=p=>{var m=R$(),$=h(m),u=h($),_=h(u);_e(),g(u);var w=M(u);_e(),g($);var y=M($),C=h(y),T=h(C);g(C),_e(),g(y),g(m),k(()=>{He(_,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),He(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),He(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,m)},l=p=>{var m=N$();let $;var u=h(m),_=M(h(u),5);let w;g(u),g(m),k((y,C)=>{$=ee(m,0,"svelte-8z1bf5",null,$,y),w=ee(_,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(p,m)};R(s,p=>{i()?p(d):p(l,!1)})}b(t,a),z()}import{noop as O$}from"@vkontakte/videoplayer-shared/es2018";function nd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"click",3,O$),s=Se().ui.t,d=v(()=>e.state===B$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Mt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{df(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var H$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),F$={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function cf(t,e){q(t,F$);let i=f(e,"active",3,!1),o=f(e,"pointer",3,!1),n=f(e,"translateXPx",3,0),a=f(e,"translateYPx",3,0),s=f(e,"leftOffset",3,0),d=f(e,"rightOffset",3,0),l=J(void 0),p=J(void 0);function m(C){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),E=T/2;return C<E?E+s():C>e.containerWidth-E?e.containerWidth-E-d():C}let $=v(()=>m(n()));var u=H$(),_=h(u);let w;var y=h(_);he(y,()=>{var C;return(C=e.children)!=null?C:oe}),g(_),pt(_,C=>B(p,C),()=>r(p)),g(u),pt(u,C=>B(l,C),()=>r(l)),k(C=>{tt(u,`transform: translate(${r($)}px, ${a()}px);`),w=ee(_,1,"tooltip svelte-5ygsa2",null,w,C),tt(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var Hc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Rh=t=>!!(Math.round(Math.abs(t)/90)%2),Nh=t=>Math.abs(t)/90%4===1;var U$=L('<div class="preview svelte-1wqg760"></div>'),z$=L('<div class="time svelte-1wqg760"> </div>'),q$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),W$={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 uf(t,e){U(e,!0),q(t,W$);let[i,o]=Be(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=f(e,"time",3,""),l=f(e,"isMobile",3,!1),p=f(e,"videoEpisodes",19,()=>[]),m=f(e,"progress",3,0),$=f(e,"duration",3,0),u=f(e,"isInteractive",3,!1),_=Se(),w=_.ui.rotateAlpha,y=_.ui.playerSize,C=J(0),T=J(0),E=J(""),P=J(0),A=J(0),I=J(0),V=J(0),H=v(()=>Hc(m(),$(),p())),j=v(()=>Rh(n())),O=v(()=>Nh(n())),X=v(fe),ne=v(()=>(r(O)?1:-1)*(r(C)/2-r(T)/2)),Y=v(()=>r(ne)*-1);Ue(()=>{(Q=>(B(C,pe(Q.width)),B(T,pe(Q.height))))(Me())}),Ue(()=>{(Q=>(B(E,pe(Q.imgSrc)),B(P,pe(Q.imgWidth)),B(A,pe(Q.imgHeight)),B(I,pe(Q.imgOffsetX)),B(V,pe(Q.imgOffsetY))))(Ae(m()))});function fe(){var Ne;let Q=l()?s.MOBILE:s.DESKTOP,{isVertical:W}=le(),Le=30;return(Ne=r(H))!=null&&Ne.text&&(Le+=16),(W||r(j))&&(Le+=18,Le+=50),Math.min(Math.max(a().height-Le,0),Q)}function le(){let Q=e.previewThumbsData.frameWidth,W=e.previewThumbsData.frameHeight,Le=W>Q;return{width:Q,height:W,isHorizontal:!Le,isVertical:Le}}function Me(){let{height:Q,isHorizontal:W,isVertical:Le,width:Ne}=le();return W&&(Q=Q/Ne*r(X),Ne=r(X)),Le&&(Ne=Ne/Q*r(X),Q=r(X)),{width:Ne,height:Q}}function Ae(Q){let W;e.previewThumbsData.isUV?W=Math.floor($()*Q/e.previewThumbsData.frequency):W=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Q)));let Le=Math.floor(W/e.previewThumbsData.countPerImage),Ne=Math.floor(W%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Xe=W%e.previewThumbsData.countPerRow,ye=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Le===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ye=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ye++);let xe=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Le===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(xe=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let De=r(C)*xe,Ye=r(T)*ye,it=-Xe*r(C),vt=-Ne*r(T);return{imgSrc:e.previewThumbsData.links[Le],imgWidth:De,imgHeight:Ye,imgOffsetX:it,imgOffsetY:vt}}var me=q$();let ae;var Pe=h(me);{var re=Q=>{var W=U$();k(()=>tt(W,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(P)}px ${r(A)}px; background-position: ${r(I)}px ${r(V)}px;
229
- transform: rotate(${n()}deg) ${r(j)?`translate(${r(ne)}px, ${r(Y)}px)`:""};
230
- `)),b(Q,W)};R(Pe,Q=>{r(E)&&Q(re)})}var D=M(Pe,2),Ve=h(D);{var te=Q=>{var W=Fe(),Le=ue(W);{var Ne=ye=>{var xe=Nr();k(De=>ge(xe,De),[()=>F("tooltip_episode_unfinished")]),b(ye,xe)},Xe=ye=>{var xe=Nr();k(()=>ge(xe,r(H).text||"")),b(ye,xe)};R(Le,ye=>{u()&&r(H).completed===!1?ye(Ne):ye(Xe,!1)})}b(Q,W)};R(Ve,Q=>{r(H)&&Q(te)})}g(D);var Qe=M(D,2);{var ie=Q=>{var W=z$(),Le=h(W,!0);g(W),k(()=>ge(Le,d())),b(Q,W)};R(Qe,Q=>{u()||Q(ie)})}g(me),k(Q=>{ae=ee(me,1,"timeline-preview svelte-1wqg760",null,ae,Q),tt(me,`width: ${r(j)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),b(t,me),z(),o()}var K$=L('<span class="time svelte-1jr6obn"> </span>'),Q$=L("<!> <!>",1),G$={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 pf(t,e){var et,at,je,Ze,lt;U(e,!0),q(t,G$);let[i,o]=Be(),n=()=>S(ne,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(le,"$isInteractiveExpectation$",i),l=()=>S(fe,"$isInteractiveTime$",i),p=()=>S(V,"$isLive$",i),m=()=>S(j,"$isMobile",i),$=()=>S(H,"$isActiveLive$",i),u=()=>S(P,"$bufferedProgress$",i),_=()=>S(me,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),y=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Se(),E=Ht(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,H=T.state.isActiveLive$,j=T.ui.isMobile,O=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,X=T.actions.internal.getPreviewThumbsData(),ne=T.state.interactiveEpisodes$,Y=T.state.isInteractive,fe=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,Me=T.actions.internal.correctSeekTimeToInteractive,Ae=(et=T.callbacks)==null?void 0:et.onDisabledTimelineClick,me=T.ui.controls.disabledControls$,ae=(je=(at=T.callbacks)==null?void 0:at.uiInfo)==null?void 0:je.onTimelineMouseEnter,Pe=(lt=(Ze=T.callbacks)==null?void 0:Ze.uiInfo)==null?void 0:lt.onTimelineMouseLeave,re=T.ui.t,D=E.features.interactiveResponsiveUi,Ve=v(()=>Y?n():O),te=v(()=>ln(a())),Qe=v(()=>ln(s())),ie=v(()=>s()/a()),Q=v(()=>d()||l()),W=J(!1),Le=J(""),Ne=J(0),Xe=J(0),ye=J(0),xe=v(()=>({containerWidth:r(Xe),translateXPx:r(Ne),translateYPx:Y&&X?-36:-16,active:r(W)&&w()&&!r(Q)&&!D,pointer:!E.features.timelinePreview||!X||p()})),De=re("aria_timeline"),Ye=v(()=>re("aria_timeline_value",{position:r(Qe),duration:r(te)}));function it(Re){return!Me||!Y?Re:Me(Re*a())/a()}function vt(Re){T.actions.internal.startScrubbing(it(Re))}function Je(Re){l()||T.actions.internal.progressScrubbing(it(Re))}function ft(Re){T.actions.internal.completeScrubbing(it(Re)),B(W,!1)}function It(Re,_t,qe){qt(Re,_t,qe),B(W,!0)}function Wt(Re,_t,qe){qt(Re,_t,qe),B(W,!0)}function Ft(){B(W,!1)}function qt(Re,_t,qe){B(ye,pe(it(Re))),B(Ne,pe(_t)),qe&&B(Xe,pe(qe)),B(Le,pe(ve(Re)))}function ve(Re){let _t=ln((p()?1-Re:Re)*a());return p()?`-${_t}`:_t}var G=Q$(),Te=ue(G);cf(Te,Xr(()=>r(xe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,_t)=>{var qe=Fe(),kt=ue(qe);{var ni=ri=>{uf(ri,{get time(){return r(Le)},get isMobile(){return m()},get videoEpisodes(){return r(Ve)},previewThumbsData:X,get progress(){return r(ye)},get duration(){return a()},isInteractive:Y})},Zt=ri=>{var Bi=K$(),Ki=h(Bi,!0);g(Bi),k(()=>ge(Ki,r(Le))),b(ri,Bi)};R(kt,ri=>{E.features.timelinePreview&&X&&!p()?ri(ni):ri(Zt,!1)})}b(Re,qe)},$$slots:{default:!0}}));var se=M(Te,2);let Oe=v(()=>Math.round(r(ie)*100)),ze=v(()=>_().has("TIMELINE"));oa(se,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return m()},ariaLabel:De,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Oe)},get ariaValueText(){return r(Ye)},get loadedProgress(){return u()},get filledProgress(){return r(ie)},get handleProgress(){return r(ie)},get videoEpisodes(){return r(Ve)},onPointerDown:vt,onHandleMove:Je,onPointerMove:Wt,onPointerUp:ft,onPointerEnter:It,onPointerLeave:Ft,onMouseEnter:ae,onMouseLeave:Pe,onDisabledClick:Ae,isInteractive:Y,get disabled(){return r(ze)},get hideHandel(){return l()},get ref(){return C()},set ref(Re){C(Re)}}),b(t,G),z(),o()}var j$={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 rd(t,e){U(e,!0),q(t,j$);let[i,o]=Be(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Se(),l=d.ui.isMobile,p=d.ui.t,m=v(()=>ln(s())),$=v(()=>ln(a())),u=v(()=>a()/s()),_=v(()=>p("aria_timeline_value",{position:r($),duration:r(m)})),w=v(()=>Math.round(r(u)*100));oa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(_)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var Y$=L("<div><!></div>"),Z$=L("<div></div>"),X$={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function na(t,e){U(e,!0),q(t,X$);let[i,o]=Be(),n=()=>S(_,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(y,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=f(e,"isAds",3,!1),p=f(e,"isHidden",3,!1),m=f(e,"needPadding",3,!0),$=f(e,"ref",15,void 0),u=Se(),_=u.state.isLive$,w=u.ads.duration,y=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var E=Fe(),P=ue(E);{var A=V=>{var H=Y$();let j;var O=h(H);{var X=Y=>{rd(Y,{get position(){return s()},get duration(){return d()}})},ne=Y=>{pf(Y,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return $()},set ref(fe){$(fe)}})};R(O,Y=>{l()?Y(X):Y(ne,!1)})}g(H),k(Y=>j=ee(H,1,"timeline svelte-1h5wsmk",null,j,Y),[()=>({withoutPadding:!m(),mobile:a()})]),b(V,H)},I=V=>{var H=Z$();let j;k(O=>j=ee(H,1,"timeline-stub svelte-1h5wsmk",null,j,O),[()=>({mobile:a()})]),b(V,H)};R(P,V=>{r(T)?V(A):V(I,!1)})}b(t,E),z(),o()}import{noop as t2}from"@vkontakte/videoplayer-shared/es2018";var J$=be('<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 ff(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=J$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(3),g(o),k(()=>n=Ce(o,n,{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})),b(t,o)}var e2=be('<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 mf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=e2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var i2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),o2=L('<span class="text svelte-1yhs2ga"> </span>'),n2=L('<span class="text count svelte-1yhs2ga"> </span>'),r2=L("<!> <!>",1),s2={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 sd(t,e){var le,Me,Ae;U(e,!0),q(t,s2);let[i,o]=Be(),n=()=>S(w,"$currentGridType$",i),a=()=>S(y,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=f(e,"position",3,0),p=f(e,"duration",3,0),m=f(e,"timeCodes",19,()=>[]),$=Se(),u=(Me=(le=$.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Me:t2,_=!!((Ae=$.callbacks)!=null&&Ae.onEpisodeClicked),w=$.ui.currentGridType$,y=$.ui.episodes.openedByKeyboard$,C=$.ui.episodes.panelOpened$,T=$.ui.isMobile,E=$.ui.t,P=J(void 0),A=me=>{var Pe,re,D;if(!!((Pe=$.callbacks)!=null&&Pe.onEpisodeClicked)){let Ve=_s(me);y.set(Ve),C.set(!0),(D=(re=$.callbacks)==null?void 0:re.onEpisodeClicked)==null||D.call(re,Ve)}},I=J(null),V=v(()=>l()/p());Ue(()=>{var ae;let me=Hc(r(V),p(),m());me?((ae=r(I))==null?void 0:ae.time)!==me.time&&(u(me),B(I,pe(me))):B(I,null)});let H=v(()=>{var me;return((me=r(I))==null?void 0:me.text)||""}),j=v(()=>Wi(n(),"xl")?"FULL":Wi(n(),"m")&&Mh(n(),"xl")?"COUNT":"SHORT"),O=v(()=>`${E("tooltip_episodes")}: ${r(H)}`),X=async(me,ae,Pe)=>{await _o(),(me==null?void 0:me.getAttribute("aria-expanded"))==="false"&&ae&&!Pe&&$t(()=>{y.set(!1),me.focus()})};Ue(()=>{X(r(P),a(),s())});var ne=Fe(),Y=ue(ne);{var fe=me=>{let ae=v(()=>d()?"px-0":"");Mt(me,{get className(){var Pe;return`w-max btn-full-opacity btn-jc-l ${(Pe=r(ae))!=null?Pe:""}`},testId:"btn-episodes",click:A,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(O)},get ref(){return r(P)},set ref(Pe){B(P,pe(Pe))},children:(Pe,re)=>{var D=Fe(),Ve=ue(D);{var te=ie=>{var Q=i2(),W=ue(Q),Le=h(W,!0);g(W);var Ne=M(W,2),Xe=h(Ne);mf(Xe,{}),g(Ne),k(()=>ge(Le,r(H))),b(ie,Q)},Qe=ie=>{var Q=r2(),W=ue(Q);ff(W,{});var Le=M(W,2);{var Ne=ye=>{var xe=o2(),De=h(xe,!0);g(xe),k(()=>ge(De,r(H))),b(ye,xe)},Xe=(ye,xe)=>{{var De=Ye=>{var it=n2(),vt=h(it,!0);g(it),k(()=>ge(vt,m().length)),b(Ye,it)};R(ye,Ye=>{r(j)==="COUNT"&&Ye(De)},xe)}};R(Le,ye=>{r(j)==="FULL"?ye(Ne):ye(Xe,!1)})}b(ie,Q)};R(Ve,ie=>{d()?ie(te):ie(Qe,!1)})}b(Pe,D)},$$slots:{default:!0}})};R(Y,me=>{r(I)&&me(fe)})}b(t,ne),z(),o()}import{debounceFn as sy}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as m2,PlaybackState as ad,Player as v2,PredefinedQualityLimits as Fr,VideoFormat as ld,clientChecker as g2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Hn,getHighestQuality as h2,InterfaceLanguage as _2,isInvariantQuality as b2,isNonNullable as $2,loadVKLangPack as y2,Logger as x2,map as zh,merge as w2,Observable as S2,Subject as Gc,Subscription as $f,Tracer as C2,ValueSubject as T2,VideoQuality as I2,devNull as k2,now as E2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as ts}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as a2,devNull as Kt,now as Qt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as l2,Subject as Ho,clearVideoElement as d2}from"@vkontakte/videoplayer-shared/es2018";var Dh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var c2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Fc=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 Ho,loadStarted$:new Ho,loadEnded$:new Ho,loadError$:new Ho,ready$:new Ho,slotRequested$:new Ho,started$:new Ho,timeRemained$:new Ho,paused$:new Ho,resumed$:new Ho,ended$:new Ho,empty$:new Ho,skipped$:new Ho,clicked$:new Ho,closed$:new Ho,error$:new Ho};this.loadAdman=e=>(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Qt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Qt()]}),i(),this.events.loadEnded$.next()):(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Qt()]}),o())};l2(c2,e,this.loadTimeout).then(()=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Qt()]}),window.AdmanHTML?(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Qt()]}),i(),this.events.loadEnded$.next()):(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Qt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Qt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Qt()]}),i(),this.events.loadEnded$.next()):(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Qt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Qt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Qt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Qt()]}),!d&&(window.AdmanHTML?(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Qt()]}),i(),this.events.loadEnded$.next()):(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Qt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Qt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Qt(),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"}),we(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{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;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),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;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),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(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Qt()]}),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;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),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")=>{Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Qt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Qt()]}),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")}initAdman(e){var P;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Qt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:p={},duration:m,previewParam:$}=e,u,_=this.playerState&&we(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=a2(),C=(P=w?y:window.location.href)!=null?P:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:$,...u?{request_id:u}:{},duration:m,puid10:Dh(i,o),puid11:n?0:1};$||delete T.preview;let E={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let A=new window.AdmanHTML;A.setDebug(!1),A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.init(E),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(A){Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[Qt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Qt()]}),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.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),this.adsState){this.log({message:"toggle play"});let i=we(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Qt()]}),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(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),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&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),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(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),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(Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Qt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,p,m,$,u;Kt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Qt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),($=this.adman)==null||$.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&d2(this.videoElement),this.isDestroyed=!0}};var Bh=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 vf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let p=new Uc,{startTime:m,endTime:$}=p.parse(l);s.startTime=m,s.endTime=$}else if(l.trim()!==""){let p=new gf,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Uc=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},gf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let p=["<",">"].reduce((m,$)=>{let u=s.indexOf($,d);return m===-1||m>u?u:m},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new Uc;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},Oh=vf;import{isNonNullable as hf}from"@vkontakte/videoplayer-shared/es2018";var ra,Ii,_f=0,bf=!1,Hh="",Fh=(t,e=0,i=0)=>t<e&&t<i,zc=(t,e=0,i=0)=>t>=e&&t<=i,u2=(t,e=0,i=0)=>t>e&&t>i,Uh=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:m})=>zc(t,p,m));let a=t>=_f,s=t<_f;if(_f=t,s&&(bf=!1),hf(ra)&&zc(t,ra.startTime,ra.endTime)&&Hh===e.value)return ra;if(!hf(Ii)&&(n!=null&&n.length)&&!bf){Ii=n.find(({startTime:p,endTime:m})=>zc(t,p,m)||a&&Fh(t,p,m)),ra=void 0,!hf(Ii)&&n[n.length-1].endTime<t&&(bf=!0);return}else{if(zc(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))return ra=Ii,Ii=void 0,Hh=e.value,ra;(a&&u2(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime)||s&&Fh(t,Ii==null?void 0:Ii.startTime,Ii==null?void 0:Ii.endTime))&&(Ii=void 0)}};var qc={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"},p2={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"},Wc=t=>{var e,i;return(i=(e=qc[t])!=null?e:qc[p2[t]])!=null?i:void 0};import{Subscription as f2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Kc=class{constructor(e,i,o=new f2){this.oneStat=e;this.thinOneStat=i;this.statSubscription=o}destroy(){var e,i;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),this.statSubscription.unsubscribe()}};var Qc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qc||{});var Hr=t=>t!=null?t:0,ja=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(Hr(i==null?void 0:i.top)-Hr(o==null?void 0:o.top)),left:Math.round(Hr(i==null?void 0:i.left)-Hr(o==null?void 0:o.left)),bottom:Math.round(Hr(i==null?void 0:i.bottom)-Hr(o==null?void 0:o.top)),right:Math.round(Hr(i==null?void 0:i.right)-Hr(o==null?void 0:o.left))}},Ya=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Hr(e==null?void 0:e.width),height:Hr(e==null?void 0:e.height)}};var qh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:m,previewThumbsData:$,uiConfig:u,coreConfig:_,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,additionalButtons:H,additionalSettingsMenuItems:j,additionalContextMenuItems:O,playPrevVideo:X,playNextVideo:ne,looped:Y=!1,statistics:fe,saveRate:le,internalsExposure:Me,playerView:Ae})=>{var Dm,Bm,Om;let me={..._,configName:[...(Dm=_.configName)!=null?Dm:[],"ui"],isAudioDisabled:s,live:{...(Bm=_.live)!=null?Bm:{},isLiveCatchUpMode:!!n}},ae=u,Pe=C2.createRootTracer(ae.features.saveTraceInfoToFile),re=Pe.createComponentTracer("Store"),D=w||new v2(me,Pe);Me==null||Me.expose({corePlayer:D});let Ve=new x2,te=new Fc(Ve,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal}),Qe=Gs.getInstance(),ie=p==null?void 0:p.pictureInPictureApi,Q=p==null?void 0:p.annotationsApi,W=Ve.createComponentLog("Store"),Le,Ne,Xe={},ye=new _c,xe=fe&&fe.oneStat?Gt(fe.oneStat.vsid$):or(void 0),De=ce(vs()),Ye=ce(!1),it=(Om=ie==null?void 0:ie.info.isActive$)!=null?Om:new T2(!1),vt=ce(0),Je=ce([]),ft=w2(D.events.fatalError$,D.events.managedError$).subscribe(c=>Je.update(x=>[...x,c])),It=or(!1,c=>{let x=D.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Wt=async c=>{var de;let x=Object.values(_2).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!Cp(c))){let Ke;try{Ke=await y2(c,kg,Eg)}catch(yt){(de=fe==null?void 0:fe.oneStat)==null||de.logError({errorType:"VKLangPack",fatal:!1}),Qe==null||Qe.report(yt,{errorType:"VKLangPack",fatal:!1})}Ke&&(Sp({language:c,pack:Ke,fallback:ae.defaultLanguage}),Ft.set(c))}Cp(c)&&Ft.set(c)},Ft=ce(t),qt=ce(e);Wt(t);let ve=(c,x)=>{let N=we(Ft);return Tp(N,c,x,ae.defaultLanguage)},G=ce("thumb"),Te=(()=>{let c=bi([It,G],([x,N])=>x?"crashed":N);return{...c,is:x=>we(c)===x}})(),se=(()=>{let c=ce(new Set(y));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let de=[...N];return new Set(Array.isArray(x)?de.filter(Ke=>!x.includes(Ke)):de.filter(Ke=>Ke!==x))})},includes:x=>{let N=we(c);return Array.isArray(x)?x.every(de=>N.has(de)):N.has(x)}}})();re.log("create store"),W({message:"create store"});let Oe=c=>{let x=c.container;x.append(D.experimental.element$.getValue()),Re=new MutationObserver(N=>{let{removedNodes:de}=N[0];de.length&&x.append(D.experimental.element$.getValue())}),Re.observe(x,{childList:!0})},ze=c=>{W({message:`init video, config: ${JSON.stringify(c)}`}),C?Oe(c):(k2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[E2()]}),D.initVideo(c)),re.log("init video",{isInteractive:C}),c.subtitles&&D.setExternalTextTracks(c.subtitles),Le=c},et=new Gc,at=c=>et.next(c),je=new Gc,Ze=new Gc,lt=new Gc,Re=null,_t={actionRewind$:je,actionSeek$:Ze,inPiP$:it,inFullscreen$:new S2(c=>De.subscribe(x=>c.next(x))),actionSetSubtitle$:lt,nextMovie$:et},qe={actionSeek$:Ze};if(fe){let{oneStat:c,thinOneStat:x,statSubscription:N}=fe;c&&(C||N.add(c.attachTo(D)),N.add(c.attachToUi(_t)),N.add(c.attachToAds(te.events)),c.authorize(a).catch(de=>{W({message:`onestat auth error ${String(de)}`})})),x&&(N.add(x.attachTo(D)),N.add(x.attachToUi(qe)),x.authorize(a))}if(Qe){let c=new $f,x=(N,de)=>c.add(N.subscribe(de));if(x(D.events.managedError$,N=>{Qe.logIError(N)}),x(D.events.fatalError$,N=>{Qe.logIError(N,!0)}),fe){let{oneStat:N}=fe;N&&x(N.experimental.error$,de=>{Qe.logIError(de)})}Qe.sentrySubscription.add(c)}let kt=()=>{g2.device.isIOS&&Ne&&ph(Ne).catch(c=>{W({message:`exitIosSafariFullscreen failed: ${c}`})})},ni=new $f().add(D.experimental.element$.subscribe(c=>{c&&(Ne=c,c.classList.add("player-media"),Ys(ie)&&(ie.updateVideoElement(),ie.registryEventHandlers()),C&&c.setAttribute("pip","false"),Ae==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(D.events.ended$.subscribe(()=>{var c;kt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(D.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(D.events.started$.subscribe(async()=>{var x,N;Ys(ie)&&await(ie==null?void 0:ie.revealPictureInPicture());let c=D.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=Xe.onStarted)==null||N.call(Xe,c)})).add(D.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(D.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(D.info.position$.subscribe(c=>{var N;let x=D.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),te.setPosition(c,x))})).add(D.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.loadedMetadata$.subscribe(()=>{Pt.state.loadedMetadata$.set(!0)})).add(D.info.is3DVideo$.subscribe(c=>{Pt.ui.is3DVideo.set(c)})).add(D.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&se.add(Rl),se.add("PLAY_BUTTON")):se.remove("PLAY_BUTTON"))})).add(D.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(D.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(D.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(te.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(te.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(te.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(te.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(te.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(te.events.started$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:N.call(x,c)})).add(te.events.timeRemained$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:N.call(x,c)})).add(te.events.ended$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:N.call(x,c)})).add(te.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(te.events.clicked$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:N.call(x,c)})).add(te.events.closed$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:N.call(x,c)})).add(te.events.error$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:N.call(x,c)})).add(te.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(te.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),Zt=new $f,ri=()=>{var yt,Vt,zt;let{debugLog:c}=ae,x,N="#9df7b7",de="#efd169";if(c&&c!==!0){let{colors:Rt}=c;x=c.tag,N=(yt=Rt==null?void 0:Rt[0])!=null?yt:N,de=(zt=(Vt=Rt==null?void 0:Rt[1])!=null?Vt:Rt==null?void 0:Rt[0])!=null?zt:de}let Ke=x?`: ${x}`:"";Zt.add(D.events.log$.subscribe(Rt=>{console.debug(`%c sdk${Ke} `,`background:${N};`,`sdk component: ${Rt.component}`,Rt.message)})).add(Ve.log$.subscribe(Rt=>{console.debug(`%c ui${Ke} `,`background:${de};`,`ui component: ${Rt.component}.`,Rt.message)}))},Bi=()=>{Zt.unsubscribe()},Ki=(c,x)=>{re.log("start camera manual rotation",{mx:c,my:x}),D.startCameraManualRotation(c,x)},Oi=(c=!1)=>{re.log("stop camera manual rotation",{immediate:c}),D.stopCameraManualRotation(c)},co=(c,x,N)=>{re.log("move camera focus px",{xpx:c,ypx:x,dt:N}),D.moveCameraFocusPX(c,x,N)},Lo=()=>{D.holdCamera()},ot=()=>{D.releaseCamera()},gt=or(D.info.position$.getValue(),c=>{let x,N,de=()=>{let Ke=D.info.playbackState$.getValue(),yt=D.info.isLive$.getValue(),Vt=D.info.duration$.getValue(),zt=D.info.position$.getValue();if(Ke&&[ad.PLAYING,ad.PAUSED].includes(Ke)){let Rt=yt?zt-Vt:D.getExactTime();Rt!==N&&c(Rt),N=Rt}x=requestAnimationFrame(de)};return de(),()=>cancelAnimationFrame(x)}),xi=Gt(D.info.playbackState$),Z=Gt(D.info.currentBuffer$),Xt=Gt(D.info.isEnded$),si=Gt(D.info.isLive$),Hi=ae.features.playbackRate?Gt(D.info.canChangePlaybackSpeed$):or(!1),ti=Gt(D.info.liveBufferTime$),fi=Gt(D.info.volume$),ai=Gt(D.info.muted$),ct=bc(D.info.predefinedQualityLimitType$.pipe(zh(c=>c===Fr.TRAFFIC_SAVING)),D.info.predefinedQualityLimitType$.getValue()===Fr.TRAFFIC_SAVING),uo=bc(D.info.predefinedQualityLimitType$.pipe(zh(c=>c===Fr.HIGH_QUALITY)),D.info.predefinedQualityLimitType$.getValue()===Fr.HIGH_QUALITY),wt=Gt(D.info.autoQualityLimitingAvailable$),Ut=Gt(D.info.availableQualities$),Jt=Gt(D.info.availableQualitiesFps$),Gi=Gt(D.info.chromecastState$),Un=Gt(D.info.chromecastDeviceName$),Fi=Gt(D.info.currentFormat$),xo=Gt(D.info.throughputEstimation$),li=Gt(D.info.videoBitrate$),St=Gt(D.info.intrinsicVideoSize$),po=Gt(D.info.duration$),Vo=Gt(D.info.isAudioAvailable$),di=null,wo=D.info.isBuffering$,ji=or(wo.getValue(),c=>{let x=wo.subscribe(N=>{N&&di===null?di=window.setTimeout(()=>{c(wo.getValue()),di=null},ae.loaderDelay):c(N)});return()=>{x.unsubscribe(),di&&clearTimeout(di)}}),So=()=>{di&&clearTimeout(di),di=null},Ro=bi([po,si],([c,x])=>x?-c:c),wn=bi([xi],([c])=>c===ad.PLAYING),Vi=Gt(D.info.atLiveEdge$),Sn=Gt(D.info.atLiveDurationEdge$),Yi=Gt(D.info.position$),Co=bi([Yi,po],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),yr=bi([Gi],([c])=>c===m2.CONNECTED),rr=Gt(D.info.availableVideoStreams$),Cn=ae.features.audioLanguages?Gt(D.info.availableAudioStreams$):or([]),zn=Gt(D.info.currentVideoStream$),qn=Gt(D.info.currentAudioStream$),fo=c=>{c.language&&wp(c.language),D.setVideoStream(c)},dn=c=>{c.language&&wp(c.language),D.setAudioStream(c)},Tn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(de=>"isDefault"in de&&de.isDefault)),x)return x;let N=Xg();return N&&(x=c.find(({language:de})=>N===de)),x!=null||(x=c.at(0)),x},nt=!1;ni.add(D.info.availableAudioStreams$.subscribe(c=>{if(!nt&&c.length){let x=Tn(c);x&&(D.setAudioStream(x),nt=!0)}}));let In=!1;ni.add(D.info.availableVideoStreams$.subscribe(c=>{if(!In&&c.length){let x=Tn(c);x&&(D.setVideoStream(x),In=!0)}}));let Uo=ce(void 0),zo=Gt(D.info.isAutoQualityEnabled$,c=>c&&Uo.set(void 0)),xr=Gt(D.info.currentQuality$,()=>Uo.set(void 0)),qo=bi([Uo,xr],([c,x])=>c!=null?c:x),kn=bi(Fi,c=>c!==ld.MPEG),Wn=bi([Ut,Jt,zo,qo,kn],([c,x,N,de,Ke])=>{let yt=[];Ke&&yt.push({value:"auto",displayValue:ve("auto_quality_option"),selected:N});let Vt=c.filter(zt=>!b2(zt));for(let zt of Vt){let Rt=x[zt];yt.push({value:zt,displayValue:`${zt}${Rt?Bh(Rt):""}`,selected:N?!1:zt===de})}return yt}),En=Gt(D.info.currentPlaybackRate$),Wo=bi([En,Vi,Sn],([c,x,N])=>{let de=N||C?1:ae.controls.playbackRateMin,Ke=x?1:ae.controls.playbackRateMax,yt=ae.controls.playbackRateStep,Vt=[];for(let zt=de;zt<=Ke;zt+=yt)Vt.push({value:zt,displayValue:zt===1?ve("playback_rate_1"):ve("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Vt}),Ui={displayValue:ve("subtitles_off"),value:"off"},Zi=ce({...Ui}),To=ae.features.subtitles?Gt(D.info.availableTextTracks$):or([]),cn=zg(),Ko=bi([To,Zi],([c,x],N)=>{var yt;let de=[],Ke=c.find(({id:Vt})=>Vt===x.value);if(Ke!=null&&Ke.url){let[,Vt]=(yt=cn.find(Ke.url))!=null?yt:[];if(Vt){N(Vt);return}ye.download(Ke.url).then(zt=>{if(!zt||ye.isDestroyed())return;let Rt=new Oh,ss=Ke.language;if(ss){let M1=!!Ke.isAuto,L1=Rt.parse(zt,ss);de.push({lang:ss,subtitles:L1,isAuto:M1,id:Ke.id})}cn.add(Ke.url,de),we(Zi).value===x.value&&N(de)}).catch(zt=>{var Rt;(Rt=fe==null?void 0:fe.oneStat)==null||Rt.logError({errorType:"Subtitles download",fatal:!1}),Qe==null||Qe.report(zt,{errorType:"Subtitles download",fatal:!1})})}N(de)}),Qo=bi([En,wn,Zi],([c,x,N],de)=>{let Vt;if(D.info.isLive$.getValue()&&x&&N.value!==Ui.value){let Rt=()=>{let ss=1e3/(3*c);Vt=setTimeout(Rt,ss),de(Date.now())};return Rt(),()=>clearTimeout(Vt)}}),ki=bi([To,Zi],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:de,isAuto:Ke,id:yt}of c){let Vt=de&&Wc(de);de&&Vt&&N.push({displayValue:Ke?ve("subtitles_auto",{language:Vt}):Vt,value:yt,selected:(x==null?void 0:x.value)===yt,isAuto:Ke})}return N.length?(N.unshift({...Ui,selected:(x==null?void 0:x.value)===Ui.value}),N):[]}),No={available:[],prev:[]},Io=()=>{var x,N;let c=D.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ne==null?void 0:Ne.currentTime)!=null?N:0},sr=bi([gt,Zi,Ko,Qo],([c,x,N,de])=>{var yt;let Ke=D.info.isLive$.getValue();if(Ke&&No.prev!==N){let Vt=N.find(({id:Rt})=>Rt===x.value),zt=No.prev.find(({id:Rt})=>Rt===x.value);if(Vt){let Rt={...Vt,subtitles:[...(yt=zt==null?void 0:zt.subtitles)!=null?yt:[],...Vt.subtitles]};No.available=[Rt],No.prev=N}}if(x&&x.value!==Ui.value){let Vt=Ke?Io():c,zt=Ke?No.available:N;return Uh(Vt,x,zt,Ke)}}),un=bi([sr],([c])=>c!=null&&c.texts?c.texts:[]);ni.add(Zi.subscribe(c=>{var x,N;if(c.value===Ui.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let de=Object.entries(qc).find(([Ke,yt])=>yt===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,de?de[0]:"")}}));let pn=ce(!0),wr=bi([Z,Ro,Yi,ti],([c,x,N,de])=>{var zt;let Ke=(zt=c==null?void 0:c.end)!=null?zt:0;if(!de)return Ke/x;let Vt=-N+de-x;return(Ke-Vt)/x}),Do=Gt(D.info.availableSources$),Sr=bi([Do],([c])=>Object.keys((c==null?void 0:c[ld.MPEG])||{}).length>0),Pn=()=>{var N,de,Ke;let c=Object.keys(((de=(N=D.info.availableSources$)==null?void 0:N.getValue())==null?void 0:de[ld.MPEG])||{}),x=h2(c)||I2.Q_144P;return(Ke=Le.sources[ld.MPEG])==null?void 0:Ke[x]},Kn=()=>{var x;let c=Pn();if(c)re.log("download video",{url:c}),Hg(c,((x=Le==null?void 0:Le.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";re.log("download video",{message:N}),W({message:N})}},ar=()=>{W({message:"toggle muted"});let c=D.info.muted$.getValue();D.info.volume$.getValue()===0&&!c?ko(ci()):wi(!c)},Cr=()=>{var c;if(Pt.ui.settingsMenu.visible$.set(!1),!we(Pt.ui.settingsSubMenu.visible$)){let x=we(Pt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let de=Ya(x),Ke={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:de,position:Ke,name:"settings"})}}re.log("close settings menu")},Qn=async(c,x=()=>Promise.resolve())=>{var Ke;Pt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Pt.ui.settingsMenu.visible$.set(!0),await x();let N=we(Pt.ui.settingsMenu.ref$),de=ks();if((Ke=l==null?void 0:l.uiInfo)!=null&&Ke.onSettingsMenu&&N&&de){let Vt=Ya(N),zt=ja(N,de);l.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:zt,name:"settings"})}re.log("open settings menu",{wasOpenedByKeyboard:c})},fn=(c,x=!1)=>{var yt;Pt.ui.settingsSubMenu.visible$.set(!1);let N=we(Pt.ui.settingsMenu.ref$),de=ks(),Ke=we(Pt.ui.settingsMenu.visible$);if((yt=l==null?void 0:l.uiInfo)!=null&&yt.onSettingsMenu&&N&&de)if(Ke&&!x){let zt=Ya(N),Rt=ja(N,de);l.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Rt,name:"settings"})}else{let zt=Ya(c),Rt={top:0,left:0,bottom:0,right:0},ss=we(Pt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Rt,name:ss})}re.log("close settings sub menu")},Tr=(c,x)=>{var de;Pt.ui.settingsSubMenu.visible$.set(!0),Pt.ui.settingsSubMenu.ref$.set(x),Pt.ui.settingsSubMenu.name$.set(c);let N=ks();if((de=l==null?void 0:l.uiInfo)!=null&&de.onSettingsMenu&&x&&N){let yt=Ya(x),Vt=ja(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:yt,position:Vt})}re.log("open settings sub menu",{name:c})},ci=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=$c())!=null?x:0);return c===0?ae.volumeDefault:c},ko=c=>{let x=c===0?ci():c,N=D.info.muted$.getValue();W({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,yp(!1)),D.setVolume(c,N),te.setVolume(c),gp(x)},wi=c=>{let x=D.info.volume$.getValue();if(W({message:`set muted, currentVolume: ${x}, mute: ${c}`}),D.setMuted(c),te.setVolume(c?0:x),yp(c),!c&&x===0){let N=ci();D.setVolume(N),gp(N),te.setVolume(N)}},Gn=ce(!1),ut=c=>{var x,N;re.log("set looped",{isLooped:c}),Gn.set(c),D.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};ut(Y);let Dt=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Ei=(c,x=!1)=>{var N;W({message:`set autoplayNextEnabled, value: ${c}`}),re.log("set autoplay next enabled",{autoplayNextEnabled:c}),Pt.ui.autoplayNextEnabled$.set(c),th(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Eo=c=>{W({message:`set timerNextVideoRunning, value: ${c}`}),re.log("set timer next video running",{timerNextVideoRunning:c}),Pt.ui.timerNextVideoRunning$.set(c)},rt=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(de=l==null?void 0:l.onPrevVideoClick)==null?void 0:de.call(l)}catch(Ke){W({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&ui("prev")||X()},Lt=(c=!0)=>{var de;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(de=l==null?void 0:l.onNextVideoClick)==null?void 0:de.call(l)}catch(Ke){W({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&ui("next")||ne()},ui=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:de}}=ae;return N&&de&&!x?(Pt.ui.aboutToGoNextVideo.set(c),Pt.ui.userActionsDisabled.set(!0),!0):!1},Ri=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},mo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},$i=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Pi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},vi=()=>{D.prepare()},Po=()=>{Hn(Pt);let c=we(Pt.ui.controls.disabledControls$),x=we(Pt.playerPhase),N={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(W({message:"toggle play"}),x==="ads"){N.action="play",re.log("toggle adman play",N),te.togglePlay();return}let de=()=>{var yt;W({message:"toggle play, call player.play"}),N.action="play",D.play(),(yt=l==null?void 0:l.onPlay)==null||yt.call(l)},Ke=()=>{var yt;W({message:"toggle play, call player.pause"}),N.action="pause",D.pause(),(yt=l==null?void 0:l.onPause)==null||yt.call(l)};if(D.info.isEnded$.getValue()){if(W({message:"toggle play, video ended, seek to 0"}),je.next(),Ze.next(ts.REWIND),C){P==null||P();return}D.seekTime(0),de()}else D.info.playbackState$.getValue()!==ad.PLAYING?de():Ke();re.log("toggle play",N)},Xi=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{W({message:`set quality, quality: ${c}`}),re.log("set quality",{quality:c}),D.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(yc({type:"exact_quality",quality:c,videoId:i},N),Dl(),D.setPredefinedQualityLimits(Fr.UNKNOWN)):hp(i,c),Uo.set(c),D.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(lr("auto_quality",N),we(ct)&&Ji(!1),we(uo)&&mn(!1)):Dl()},Ji=(c,x="as-default")=>{W({message:`set trafficSavingEnabled, value: ${c}`}),re.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?Fr.TRAFFIC_SAVING:Fr.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(jn(N,x),Nl(!1)):(D.setPredefinedQualityLimits(N),Nl(c))},mn=(c,x="as-default")=>{W({message:`set highQualityEnabled, value: ${c}`}),re.log("set high quality enabled",{highQualityEnabled:c}),jn(c?Fr.HIGH_QUALITY:Fr.UNKNOWN,x)},jn=(c,x)=>{c!==Fr.UNKNOWN&&(we(wt)&&!we(zo)&&Xi("auto",{appliesTo:x,changeReason:"limit-changed"}),lr(c,x)),D.setPredefinedQualityLimits(c)},lr=(c,x)=>{yc({type:c,videoId:i},x),x==="as-default"&&yc({type:c,videoId:i},"to-video")},Yn=c=>{re.log("set playback rate",{playbackRate:c}),D.setPlaybackRate(c),ae.features.saveRate&&le&&!D.info.isLive$.getValue()&&Jg(c)},Ir=()=>{let c=we(Wo),x=c.findIndex(({selected:de})=>de);if(x===c.length-1)return;let N=c[x+1];Yn(N.value)},dr=()=>{let c=we(Wo),x=c.findIndex(({selected:de})=>de);if(x===0)return;let N=c[x-1];Yn(N.value)},vn=(c={...Ui,selected:!1})=>{re.log("set subtitles",{...c}),c&&c.value!==Ui.value&&lt.next(c.isAuto?c.value+"_auto":c.value),Zi.set(c)},An=()=>{re.log("toggle subtitles");let c=we(ki),x=we(Zi),N=we(Ft);if((x==null?void 0:x.value)===Ui.value){let de=c.filter(Ke=>Ke.value!==Ui.value).find(Ke=>Ke.value===N)||c[1];vn(de)}else vn()},Go=(c,x,N=!0)=>{var de;if(W({message:`seek to time, time: ${c}`}),re.log("seek to time",{time:c,action:x,forcePrecise:N}),Ze.next(x),D.info.isLive$.getValue()){let Ke=D.info.duration$.getValue(),yt=Math.min(0,Ke+c);D.seekTime(yt,N)}else{if(E!=null&&E.getValue())return;D.info.isEnded$.getValue()&&(W({message:"seek after ended, call callbacks.onPlay"}),(de=l==null?void 0:l.onPlay)==null||de.call(l)),D.seekTime(Nm(c),N)}},jo=c=>{W({message:`seek to episode start time: ${c}`}),re.log("seek to episode start time",{time:c}),Go(c,ts.EPISODE,!0)},Zn=(c,x)=>{W({message:`seek to percent, percent: ${c}`}),re.log("seek to percent",{percent:c,action:x});let N=we(Ro)*c;Go(N,x,!1)},kr=c=>{W({message:`seek external, time: ${c}`}),re.log("seek external",{time:c}),Ze.next(ts.UNKNOWN),D.seekTime(D.info.isLive$.getValue()?-c:c)},Er=c=>{var de,Ke;let x=(de=c.max)!=null?de:"none",N=(Ke=c.min)!=null?Ke:"none";W({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),re.log("set auto quality limits",{max:x,min:N}),D.setAutoQualityLimits(c)},cr=c=>{W({message:`seek external to episode start time: ${c}`}),re.log("seek external to episode start time",{time:c}),Go(c,ts.EPISODE,!0)},vo=c=>{W({message:`set playback rate to: ${c}`}),re.log("set playback rate external",{playbackRate:c}),D.setPlaybackRate(c)},Mn=ce(void 0),Xn=ce(!1),Pr=c=>{W({message:`start scrubbing, progress: ${c}`}),re.log("start scrubbing",{progress:c}),Xn.set(!0),dt(c)},dt=c=>{Mn.set(c)},Bt,Ai,$e=()=>{Mn.set(void 0),Xn.set(!1)},Ct=()=>{clearTimeout(Ai),clearTimeout(Bt),Bt=window.setTimeout(()=>{$e()},500),Ne==null||Ne.removeEventListener("seeked",Ct)},mi=c=>{W({message:`complete scrubbing, progress: ${c}`}),re.log("complete scrubbing",{progress:c}),Zn(c,ts.SLIDER),we(Pt.ui.isMobile)&&we(Pt.state.currentFormat$)===ld.HLS?(Ne==null||Ne.addEventListener("seeked",Ct),Ai=window.setTimeout(()=>{Ct()},300)):$e()},Si=bi([gt,Ro,Mn],([c,x,N],de)=>{de($2(N)?N*x:c)}),eo=ce(!1),pi=()=>{eo.set(!0)},Ie=()=>{eo.set(!1)},Et=ce({width:0,height:0}),jt=bi([Et],([{width:c}],x)=>{let N=Lh(c);x(N)}),yi=ce(!1),ei=H.filter(c=>Fg(c)),Ar=bi([jt,yi],([c,x])=>x?ei.filter(N=>!N.hideOnMobile):ei.filter(N=>{var de;return!((de=N.hideOnDesktopGridTypes)!=null&&de.includes(c))})),Qi=ce(H.filter(c=>Ug(c))),Mr=bi([Qi,jt],([c,x])=>c.filter(N=>{var de;return!((de=N.hideOnDesktopGridTypes)!=null&&de.includes(x))})),Ss=bi([Mr,Ar],([c,x])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?x.map((N,de)=>{var Ke;return{id:de,weight:de,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(Ke=N.ariaLabel)!=null?Ke:N.tooltip,tooltipText:N.tooltip}}):[]]),Yo=ce(j),va=bi([Yo],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Cs=(c,x)=>{let N=we(Qi).map(de=>de.id!==c?de:{...de,...x});Qi.set(N)},ol=c=>{let x=we(Qi);if(x.some(N=>N.id===c.id)){W({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Qi.set(x)},ga=c=>{let x=we(Qi);if(!x.some(N=>N.id===c)){W({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Qi.set(x)},nl=c=>{Ze.next(ts.LIVE),W({message:"live switch to low latency "+c}),re.log("live switch to low latency "+c),D.setLiveLowLatency(c)},Ts=(c,x)=>{let N=we(Yo).map(de=>de.id!==c?de:{...de,...x});Yo.set(N)},rl=c=>{let x=we(Yo);if(x.some(N=>N.id===c.id)){W({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Yo.set(x)},ha=c=>{let x=we(Yo);if(!x.some(N=>N.id===c)){W({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Yo.set(x)},Jn=ce(O),Is=bi([Jn],([c])=>ae.features.additionalContextMenuItems?c:[]),bt=(c,x)=>{let N=we(Jn).map(de=>de.id!==c?de:{...de,...x});Jn.set(N)},ht=c=>{let x=we(Jn);if(x.some(N=>N.id===c.id)){W({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Jn.set(x)},to=c=>{let x=we(Jn);if(!x.some(N=>N.id===c)){W({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Jn.set(x)},Bo=bi([yi,It],([c,x],N)=>{N(c&&x)}),io=()=>{Ze.next(ts.LIVE),W({message:"switch to active live"}),re.log("switch to active live"),D.seekTime(0),D.info.playbackState$.getValue()!==ad.PLAYING&&Pt.actions.internal.togglePlay()},ii=()=>{re.log("skip adman"),te.skip()},Ni=(c=!0)=>{Hn(Pt),W({message:`switch from ads to video, callPlay: ${c}`}),re.log("switch from ads to video",{callPlay:c}),G.set("video"),c&&D.play()},rs=()=>{Hn(Pt),W({message:"switch from video to ads"}),re.log("switch from video to ads"),Pt.actions.internal.pause(),kt(),G.set("ads")},sl=c=>{Hn(Pt);let x=c?"LiveWaitingStart":"thumb";re.log("set live waiting start",{state:c,playerPhase:x}),G.set(x)},Bd=c=>{Hn(Pt);let x=c?"LiveWaitingRecover":"thumb";re.log("set live waiting recover",{state:c,playerPhase:x}),G.set(x)},fu=c=>{Hn(Pt);let x=c?"LiveWaitingRecord":"thumb";re.log("set live waiting record",{state:c,playerPhase:x}),G.set(x)},Od=()=>(Hn(Pt),re.log("get debug text data"),Bg(D,Le,Pt)),mu=()=>(Hn(Pt),JSON.stringify(Pe.getFinishedSpans())),Hd=()=>(Hn(Pt),Og(D,Le,Pt)),ks=()=>Ne,Fd=()=>{W({message:"toggle chromecast"}),re.log("toggle chromecast"),D.toggleChromecast()},Ud=c=>{var N;if(Hn(Pt),D.info.isEnded$.getValue())return;let x=!c;if(we(Pt.playerPhase)==="ads"){W({message:`pause ads, internalCall: ${x}`}),re.log("pause ads",{internalCall:x}),te.pause();return}W({message:`pause video, internalCall: ${x}`}),re.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),D.pause()},al=c=>{var N;Hn(Pt);let x=!c;if(we(Pt.playerPhase)==="ads"){W({message:`play ads, internalCall: ${x}`}),re.log("play ads",{internalCall:x}),te.play();return}W({message:`play video, internalCall: ${x}`}),re.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),D.play()},vu=c=>{Hn(Pt);let x=!c;if(we(Pt.playerPhase)==="ads"){W({message:"player cannot be stopped during ads via external method"});return}W({message:`player will be stopped, internalCall: ${x}`}),A==null||A()},ll=(c,x)=>{Hn(Pt),W({message:`first start, show ads: ${c}, internalCall: ${!x}`}),re.log("first start",{showAds:c,external:x}),c?G.set("ads"):(G.set("video"),x?D.play():Pt.actions.internal.togglePlay())},dl=()=>(W({message:"getting time codes"}),m),zd=()=>{let c=dl();if(!c||[0,1].includes(c.length))return;let x=D.info.position$.getValue();return c.find(N=>N.time>x)},gu=c=>{let x=c;x||(x=zd());let N=D.info.position$.getValue();re.log("seek to next episode",{currentTime:N,...x}),x&&(W({message:"seek to next episode"}),Go(x.time,ts.EPISODE,!0))},We=()=>{let c=dl();if(!c||[0,1].includes(c.length))return;let x=D.info.position$.getValue(),N=c.findIndex(Ke=>Ke.time>x),de=N===-1?c.length-2:N-2;if(!(de<0))return c[de]},oi=c=>{let x=c;x||(x=We());let N=D.info.position$.getValue();re.log("seek to prev episode",{currentTime:N,...x}),x&&(W({message:"seek to prev episode"}),Go(x.time,ts.EPISODE,!0))},Zo=()=>(W({message:"getting preview thumbs data"}),re.log("get preview thumbs data",{...$}),$),Es=async()=>{let c=ie==null?void 0:ie.isActive(),x="none";ie!=null&&ie.isActive()?(x="remove",await(ie==null?void 0:ie.remove())):(x="request",await(ie==null?void 0:ie.request())),re.log("toggle picture in picture",{isActive:c,action:x})},Xo=(c=-90)=>{re.log("rotate video",{alphaDiff:c}),vt.update(x=>x+c)},qd=ce([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[de,Ke],subjects:yt}=c[N];N===0&&de!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:de/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!yt.length||yt.every(Vt=>Vt.isRemoved):!yt.length}),Ke!==1/0&&x.push({time:Ke/1e3,text:"",interactive:!1,completed:!0})}qd.set(x)});let E1=ce(!1);E==null||E.subscribe(c=>{c&&we(Xn)&&$e()});let Nm=c=>{if(!C)return c;let x=we(qd),N=we(Ro),Ke=we(Yi)/N,yt=x.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Ke);return typeof(yt==null?void 0:yt.time)=="number"?Math.min(c,yt.time-.05):c},P1=()=>{Pt.ui.episodes.panelOpened$.set(!1)},A1=()=>{re.log("destroy store"),clearTimeout(Ai),clearTimeout(Bt),ni.unsubscribe(),Zt.unsubscribe(),D.destroy(),te.destroy(),fe==null||fe.destroy(),Qe==null||Qe.destroy(),ft.unsubscribe(),Re==null||Re.disconnect(),Re=null,ye.destroy()},Pt={interfaceLanguage$:Ft,isCyrillicRelatedInterface$:qt,initVideo:ze,videoId:i,isClip:o,playerPhase:Te,vsid:xe,state:{positionExact$:gt,positionWithScrubbing$:Si,duration$:Ro,playbackState$:xi,isPlaying$:wn,isLoaderVisible:ji,bufferedProgress$:wr,isLive$:si,canChangePlaybackSpeed$:Hi,isActiveLive$:Vi,isOldestAvailableLive$:Sn,isRewindableLive$:Co,isEnded$:Xt,muted$:ai,volume$:fi,trafficSavingEnabled$:ct,highQualityEnabled$:uo,autoQualityLimitingAvailable$:wt,availableVideoStreams$:rr,availableAudioStreams$:Cn,videoStream$:zn,audioStream$:qn,currentQuality$:qo,isAutoQualityEnabled$:zo,availableQualities$:Wn,currentPlaybackRate$:En,availablePlaybackRates$:Wo,currentSubtitle$:Zi,availableTextTracks$:To,availableSubtitlesList$:ki,currentSubtitleCaptions$:un,isAutoSubtitleCaptionVisible$:pn,chromecastState$:Gi,chromecastDeviceName$:Un,chromecastConnected$:yr,currentFormat$:Fi,throughputEstimation$:xo,videoBitrate$:li,videoSize$:St,errorLog$:Je,crashed$:It,isAudioAvailable$:Vo,isAudioDisabled:!!s,canDownload:ae.features.download&&!!d,availableSources$:Do,hasMpegSources$:Sr,isInteractive:C,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!we(qd).length,interactiveEpisodes$:qd,isInteractiveTime$:E?Gt(E):ce(!1),isInteractiveExpectation$:E1,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:Gn,loadedMetadata$:ce(!1),isAutoQualityAvailable$:kn},ui:{t:ve,controlsVisible:ce(!1),touched:ce(!1),controls:{prevButton:ce(void 0),playButton:ce(void 0),replayButton:ce(void 0),nextButton:ce(void 0),playPrevChapterButton:ce(void 0),seekToInteractiveButton:ce(void 0),interactiveGraphButton:ce(void 0),liveButton:ce(void 0),time:ce(void 0),episodes:ce(void 0),volume:ce(void 0),subtitles:ce(void 0),settings:ce(void 0),context:ce(void 0),chromecast:ce(void 0),pip:ce(void 0),fullscreen:ce(void 0),vkLogo:ce(void 0),interactiveTimeIndicator:ce(void 0),timeline:ce(void 0),autoplayNextToggle:ce(void 0),additionalButtons:H.length?H.reduce(c=>[...c,ce(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:ce(!1),data:ce({title:"",closeBtnText:"",groups:[]})}},isFullscreen:De,isFullscreenOpenedByKeyboard:Ye,rotateAlpha:vt,isAutoplay:ce(!1),debugPanelVisible:ce(!1),episodes:{panelOpened$:ce(!1),openedByKeyboard$:ce(!1)},contextMenu:{visible$:ce(!1),btnRef$:ce(void 0),openedByBtnKeyboard$:ce(!1),openedByHotKey$:ce(!1),lastActiveElem$:ce(void 0),showContextMenuBtn$:ce(!1),position$:ce({top:0,left:0})},playerSize:Et,isMobile:yi,mobileNotReportControlHidden$:Bo,mobileUnmuteButtonExpanded:ce(!1),mobileUnmuteButtonVisible:ce(!1),icon3DVideoVisible:ce(!1),scrubbingInProgress:Xn,volumeChangingInProgress:eo,is3DVideo:ce(!1),currentGridType$:jt,additionalButtonsDeprecated$:Ar,additionalDesktopControlPanelRightButtons$:Ss,additionalSettingsMenuItems$:va,additionalContextMenuItems$:Is,interactiveHideMobileControls:ce(!1),overlayContainer$:ce(void 0),startedByKeyboard$:ce(!1),autoplayNextEnabled$:ce(!1),timerNextVideoRunning$:ce(!0),settingsMenu:{visible$:ce(!1),ref$:ce(void 0),openedByBtnKeyboard$:ce(!1)},settingsSubMenu:{visible$:ce(!1),ref$:ce(void 0),name$:ce(void 0)},aboutToGoNextVideo:ce(void 0),userActionsDisabled:ce(!1)},ads:{position:ce(0),duration:ce(0),playbackState:ce("inactive"),canSkip:ce(!1),secondsToWatchBeforeSkip:ce(0),postrollPassed:ce(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Q},actions:{internal:{preload:vi,firstStart:c=>ll(c,!1),play:()=>al(!1),pause:()=>Ud(!1),togglePlay:Po,toggleMuted:ar,openSettingsMenu:Qn,closeSettingsMenu:Cr,openSettingsSubMenu:Tr,closeSettingsSubMenu:fn,setVolume:ko,startVolumeChanging:pi,stopVolumeChanging:Ie,setVideoStream:fo,setAudioStream:dn,setQuality:Xi,setTrafficSavingEnabled:Ji,setHighQualityEnabled:mn,setPlaybackRate:Yn,incrementPlaybackRate:Ir,decrementPlaybackRate:dr,setSubtitle:vn,toggleSubtitle:An,togglePictureInPicture:Es,startScrubbing:Pr,progressScrubbing:dt,completeScrubbing:mi,toggleChromecast:Fd,switchToActiveLive:io,switchFromAdsToVideo:Ni,switchFromVideoToAds:rs,skipAd:ii,setLiveWaitingStart:sl,setLiveWaitingRecover:Bd,setLiveWaitingRecord:fu,getDebugTextData:Od,getTraceTextData:mu,getDebugPanelData:Hd,getVideoElement:ks,seekTime:(c,x,N)=>Go(c,x,N),clearDelayedBufferingCheckTimeout:So,seekEpisodeStartTime:jo,seekToPercent:Zn,getNextEpisode:zd,seekToNextEpisode:gu,getPrevEpisode:We,seekToPrevEpisode:oi,startLogging:ri,stopLogging:Bi,startCameraManualRotation:Ki,stopCameraManualRotation:Oi,moveCameraFocusPX:co,holdCamera:Lo,releaseCamera:ot,getVideoEpisodes:dl,getPreviewThumbsData:Zo,downloadVideo:Kn,addLanguage:Sp,setLanguage:Wt,nextMovie:at,videoRotate:Xo,correctSeekTimeToInteractive:Nm,replayInteractive:P,setLooped:ut,reportProblem:Dt,setAutoplayNextEnabled:Ei,setTimerNextVideoRunning:Eo,prevVideoClick:rt,nextVideoClick:Lt,nextVideoAnnouncementShow:Ri,nextVideoAnnouncementClick:mo,nextVideoAnnouncementAuto:$i,nextVideoAnnouncementCancel:Pi},external:{firstStart:c=>ll(c,!0),play:()=>al(!0),pause:()=>Ud(!0),stop:()=>vu(!0),seekTime:c=>kr(c),seekEpisodeStartTime:c=>cr(c),setPlaybackRate:c=>vo(c),setAutoQualityLimits:c=>Er(c),setMuted:wi,toggleSubtitle:An,setVolume:ko,returnFocusToEpisodes:P1,updateAdditionalSettingsItem:Ts,addAdditionalSettingsItem:rl,removeAdditionalSettingsItem:ha,updateAdditionalContextItem:bt,addAdditionalContextItem:ht,removeAdditionalContextItem:to,updateAdditionalButton:Cs,addAdditionalButton:ol,removeAdditionalButton:ga,setLiveLowLatency:nl}},callbacks:l,setUiCallbacks:c=>{Xe={...c}},getAdmanWrapper:()=>te,getLogger:()=>Ve,getPlayer:()=>D,destroy:A1};return Pt};function sa(t,e,i,o){var $;let n=["interactiveTimeIndicator"],a=($=e[i])==null?void 0:$.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:m}=ja(e[i],t||void 0);return{left:s?l:0,right:s?m:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var Za=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(sa(t,i,n,o))};var jc=async(t,e,i)=>{await _o(),e&&i&&(i.focus(),t.set(!1))};var P2=be('<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 yf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=P2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function xf(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Se(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,$=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,_=J(void 0);Ue(()=>{r(_)&&$t(()=>{u.set(r(_))})});let w=E=>{let P=_s(E),A=Ch(r(_));$.set(A),p.set(P),l.set(!n())},y=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Mt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:C,get ariaExpanded(){return n()},get ref(){return r(_)},set ref(E){B(_,pe(E))},children:(E,P)=>{yf(E,{})},$$slots:{default:!0}}),z(),o()}var A2=t=>{t.stopPropagation()},M2=L("<div><!> <div></div> <div></div></div>"),L2={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;}
228
+ }`};function pf(t,e){U(e,!0),K(t,F$);let i=f(e,"isMobile",3,!1),o=v(()=>e.iconState===Nh.CONNECTED),n=v(()=>e.iconState===Nh.CONNECTING);var a=Oe(),s=ue(a);{var d=p=>{var m=O$(),y=h(m),u=h(y),$=h(u);$e(),g(u);var w=A(u);$e(),g(y);var b=A(y),C=h(b),T=h(C);g(C),$e(),g(b),g(m),E(()=>{Be($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Be(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Be(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),_(p,m)},l=p=>{var m=H$();let y;var u=h(m),$=A(h(u),5);let w;g(u),g(m),E((b,C)=>{y=J(m,0,"svelte-8z1bf5",null,y,b),w=J($,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),_(p,m)};B(s,p=>{i()?p(d):p(l,!1)})}_(t,a),z()}import{noop as z$}from"@vkontakte/videoplayer-shared/es2018";function od(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"click",3,z$),s=Ce().ui.t,d=v(()=>e.state===U$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Vt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,p)=>{pf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var q$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),W$={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-5ygsa2 {opacity:1;visibility:visible;}'};function ff(t,e){K(t,W$);let i=f(e,"active",3,!1),o=f(e,"pointer",3,!1),n=f(e,"translateXPx",3,0),a=f(e,"translateYPx",3,0),s=f(e,"leftOffset",3,0),d=f(e,"rightOffset",3,0),l=X(void 0),p=X(void 0);function m(C){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),I=T/2;return C<I?I+s():C>e.containerWidth-I?e.containerWidth-I-d():C}let y=v(()=>m(n()));var u=q$(),$=h(u);let w;var b=h($);ve(b,()=>{var C;return(C=e.children)!=null?C:ie}),g($),vt($,C=>D(p,C),()=>r(p)),g(u),vt(u,C=>D(l,C),()=>r(l)),E(C=>{rt(u,`transform: translate(${r(y)}px, ${a()}px);`),w=J($,1,"tooltip svelte-5ygsa2",null,w,C),rt($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,u)}var Hc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Dh=t=>!!(Math.round(Math.abs(t)/90)%2),Oh=t=>Math.abs(t)/90%4===1;var K$=L('<div class="preview svelte-1wqg760"></div>'),Q$=L('<div class="time svelte-1wqg760"> </div>'),G$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),Y$={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 mf(t,e){U(e,!0),K(t,Y$);let[i,o]=Ne(),n=()=>S(w,"$rotateAlpha",i),a=()=>S(b,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=f(e,"time",3,""),l=f(e,"isMobile",3,!1),p=f(e,"videoEpisodes",19,()=>[]),m=f(e,"progress",3,0),y=f(e,"duration",3,0),u=f(e,"isInteractive",3,!1),$=Ce(),w=$.ui.rotateAlpha,b=$.ui.playerSize,C=X(0),T=X(0),I=X(""),M=X(0),P=X(0),k=X(0),R=X(0),W=v(()=>Hc(m(),y(),p())),Y=v(()=>Dh(n())),F=v(()=>Oh(n())),Q=v(re),oe=v(()=>(r(F)?1:-1)*(r(C)/2-r(T)/2)),Z=v(()=>r(oe)*-1);Fe(()=>{(le=>(D(C,pe(le.width)),D(T,pe(le.height))))(Ae())}),Fe(()=>{(le=>(D(I,pe(le.imgSrc)),D(M,pe(le.imgWidth)),D(P,pe(le.imgHeight)),D(k,pe(le.imgOffsetX)),D(R,pe(le.imgOffsetY))))(Me(m()))});function re(){var De;let le=l()?s.MOBILE:s.DESKTOP,{isVertical:he}=de(),ee=30;return(De=r(W))!=null&&De.text&&(ee+=16),(he||r(Y))&&(ee+=18,ee+=50),Math.min(Math.max(a().height-ee,0),le)}function de(){let le=e.previewThumbsData.frameWidth,he=e.previewThumbsData.frameHeight,ee=he>le;return{width:le,height:he,isHorizontal:!ee,isVertical:ee}}function Ae(){let{height:le,isHorizontal:he,isVertical:ee,width:De}=de();return he&&(le=le/De*r(Q),De=r(Q)),ee&&(De=De/le*r(Q),le=r(Q)),{width:De,height:le}}function Me(le){let he;e.previewThumbsData.isUV?he=Math.floor(y()*le/e.previewThumbsData.frequency):he=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*le)));let ee=Math.floor(he/e.previewThumbsData.countPerImage),De=Math.floor(he%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),je=he%e.previewThumbsData.countPerRow,we=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(we=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&we++);let Ve=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ve=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ie=r(C)*Ve,Ue=r(T)*we,dt=-je*r(C),ct=-De*r(T);return{imgSrc:e.previewThumbsData.links[ee],imgWidth:Ie,imgHeight:Ue,imgOffsetX:dt,imgOffsetY:ct}}var ge=G$();let se;var Ee=h(ge);{var ne=le=>{var he=K$();E(()=>rt(he,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(I)}); background-size: ${r(M)}px ${r(P)}px; background-position: ${r(k)}px ${r(R)}px;
229
+ transform: rotate(${n()}deg) ${r(Y)?`translate(${r(oe)}px, ${r(Z)}px)`:""};
230
+ `)),_(le,he)};B(Ee,le=>{r(I)&&le(ne)})}var V=A(Ee,2),xe=h(V);{var _e=le=>{var he=Oe(),ee=ue(he);{var De=we=>{var Ve=Rr();E(Ie=>me(Ve,Ie),[()=>q("tooltip_episode_unfinished")]),_(we,Ve)},je=we=>{var Ve=Rr();E(()=>me(Ve,r(W).text||"")),_(we,Ve)};B(ee,we=>{u()&&r(W).completed===!1?we(De):we(je,!1)})}_(le,he)};B(xe,le=>{r(W)&&le(_e)})}g(V);var ze=A(V,2);{var H=le=>{var he=Q$(),ee=h(he,!0);g(he),E(()=>me(ee,d())),_(le,he)};B(ze,le=>{u()||le(H)})}g(ge),E(le=>{se=J(ge,1,"timeline-preview svelte-1wqg760",null,se,le),rt(ge,`width: ${r(Y)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),_(t,ge),z(),o()}var j$=L('<span class="time svelte-1jr6obn"> </span>'),Z$=L("<!> <!>",1),X$={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 vf(t,e){var Ke,Le,nt,Je,ht;U(e,!0),K(t,X$);let[i,o]=Ne(),n=()=>S(oe,"$interactiveEpisodes$",i),a=()=>S(k,"$duration$",i),s=()=>S(P,"$position$",i),d=()=>S(de,"$isInteractiveExpectation$",i),l=()=>S(re,"$isInteractiveTime$",i),p=()=>S(R,"$isLive$",i),m=()=>S(Y,"$isMobile",i),y=()=>S(W,"$isActiveLive$",i),u=()=>S(M,"$bufferedProgress$",i),$=()=>S(ge,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),b=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Ce(),I=Ft(),M=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,k=T.state.duration$,R=T.state.isLive$,W=T.state.isActiveLive$,Y=T.ui.isMobile,F=I.features.episodes&&b()?T.actions.internal.getVideoEpisodes():void 0,Q=T.actions.internal.getPreviewThumbsData(),oe=T.state.interactiveEpisodes$,Z=T.state.isInteractive,re=T.state.isInteractiveTime$,de=T.state.isInteractiveExpectation$,Ae=T.actions.internal.correctSeekTimeToInteractive,Me=(Ke=T.callbacks)==null?void 0:Ke.onDisabledTimelineClick,ge=T.ui.controls.disabledControls$,se=(nt=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:nt.onTimelineMouseEnter,Ee=(ht=(Je=T.callbacks)==null?void 0:Je.uiInfo)==null?void 0:ht.onTimelineMouseLeave,ne=T.ui.t,V=I.features.interactiveResponsiveUi,xe=v(()=>Z?n():F),_e=v(()=>ln(a())),ze=v(()=>ln(s())),H=v(()=>s()/a()),le=v(()=>d()||l()),he=X(!1),ee=X(""),De=X(0),je=X(0),we=X(0),Ve=v(()=>({containerWidth:r(je),translateXPx:r(De),translateYPx:Z&&Q?-36:-16,active:r(he)&&w()&&!r(le)&&!V,pointer:!I.features.timelinePreview||!Q||p()})),Ie=ne("aria_timeline"),Ue=v(()=>ne("aria_timeline_value",{position:r(ze),duration:r(_e)}));function dt(tt){return!Ae||!Z?tt:Ae(tt*a())/a()}function ct(tt){T.actions.internal.startScrubbing(dt(tt))}function ot(tt){l()||T.actions.internal.progressScrubbing(dt(tt))}function wt(tt){T.actions.internal.completeScrubbing(dt(tt)),D(he,!1)}function ft(tt,Ze,qt){At(tt,Ze,qt),D(he,!0)}function zt(tt,Ze,qt){At(tt,Ze,qt),D(he,!0)}function ti(){D(he,!1)}function At(tt,Ze,qt){D(we,pe(dt(tt))),D(De,pe(Ze)),qt&&D(je,pe(qt)),D(ee,pe(Rt(tt)))}function Rt(tt){let Ze=ln((p()?1-tt:tt)*a());return p()?`-${Ze}`:Ze}var O=Z$(),be=ue(O);ff(be,Jr(()=>r(Ve),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(tt,Ze)=>{var qt=Oe(),_t=ue(qt);{var $i=Qe=>{mf(Qe,{get time(){return r(ee)},get isMobile(){return m()},get videoEpisodes(){return r(xe)},previewThumbsData:Q,get progress(){return r(we)},get duration(){return a()},isInteractive:Z})},Jt=Qe=>{var Yt=j$(),Mi=h(Yt,!0);g(Yt),E(()=>me(Mi,r(ee))),_(Qe,Yt)};B(_t,Qe=>{I.features.timelinePreview&&Q&&!p()?Qe($i):Qe(Jt,!1)})}_(tt,qt)},$$slots:{default:!0}}));var te=A(be,2);let Re=v(()=>Math.round(r(H)*100)),Ye=v(()=>$().has("TIMELINE"));ia(te,{className:"timeline-slider",get isActiveLive(){return y()},get isMobile(){return m()},ariaLabel:Ie,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Re)},get ariaValueText(){return r(Ue)},get loadedProgress(){return u()},get filledProgress(){return r(H)},get handleProgress(){return r(H)},get videoEpisodes(){return r(xe)},onPointerDown:ct,onHandleMove:ot,onPointerMove:zt,onPointerUp:wt,onPointerEnter:ft,onPointerLeave:ti,onMouseEnter:se,onMouseLeave:Ee,onDisabledClick:Me,isInteractive:Z,get disabled(){return r(Ye)},get hideHandel(){return l()},testId:"progress_bar",get ref(){return C()},set ref(tt){C(tt)}}),_(t,O),z(),o()}var J$={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 nd(t,e){U(e,!0),K(t,J$);let[i,o]=Ne(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Ce(),l=d.ui.isMobile,p=d.ui.t,m=v(()=>ln(s())),y=v(()=>ln(a())),u=v(()=>a()/s()),$=v(()=>p("aria_timeline_value",{position:r(y),duration:r(m)})),w=v(()=>Math.round(r(u)*100));ia(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var e2=L("<div><!></div>"),t2=L("<div></div>"),i2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function oa(t,e){U(e,!0),K(t,i2);let[i,o]=Ne(),n=()=>S($,"$isLive$",i),a=()=>S(C,"$isMobile",i),s=()=>S(b,"$adPosition",i),d=()=>S(w,"$adDuration",i),l=f(e,"isAds",3,!1),p=f(e,"isHidden",3,!1),m=f(e,"needPadding",3,!0),y=f(e,"ref",15,void 0),u=Ce(),$=u.state.isLive$,w=u.ads.duration,b=u.ads.position,C=u.ui.isMobile,T=v(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Oe(),M=ue(I);{var P=R=>{var W=e2();let Y;var F=h(W);{var Q=Z=>{nd(Z,{get position(){return s()},get duration(){return d()}})},oe=Z=>{vf(Z,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(re){y(re)}})};B(F,Z=>{l()?Z(Q):Z(oe,!1)})}g(W),E(Z=>Y=J(W,1,"timeline svelte-41cp6d",null,Y,Z),[()=>({withoutPadding:!m(),mobile:a()})]),_(R,W)},k=R=>{var W=t2();let Y;E(F=>Y=J(W,1,"timeline-stub svelte-41cp6d",null,Y,F),[()=>({mobile:a()})]),_(R,W)};B(M,R=>{r(T)?R(P):R(k,!1)})}_(t,I),z(),o()}import{noop as r2}from"@vkontakte/videoplayer-shared/es2018";var o2=ye('<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 gf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=o2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(3),g(o),E(()=>n=Te(o,n,{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})),_(t,o)}var n2=ye('<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 hf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=n2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),_(t,o)}var s2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),a2=L('<span class="text svelte-1yhs2ga"> </span>'),l2=L('<span class="text count svelte-1yhs2ga"> </span>'),d2=L("<!> <!>",1),c2={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 rd(t,e){var de,Ae,Me;U(e,!0),K(t,c2);let[i,o]=Ne(),n=()=>S(w,"$currentGridType$",i),a=()=>S(b,"$openedByKeyboard$",i),s=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),l=f(e,"position",3,0),p=f(e,"duration",3,0),m=f(e,"timeCodes",19,()=>[]),y=Ce(),u=(Ae=(de=y.callbacks)==null?void 0:de.onEpisodeChanged)!=null?Ae:r2,$=!!((Me=y.callbacks)!=null&&Me.onEpisodeClicked),w=y.ui.currentGridType$,b=y.ui.episodes.openedByKeyboard$,C=y.ui.episodes.panelOpened$,T=y.ui.isMobile,I=y.ui.t,M=X(void 0),P=ge=>{var Ee,ne,V;if(!!((Ee=y.callbacks)!=null&&Ee.onEpisodeClicked)){let xe=_s(ge);b.set(xe),C.set(!0),(V=(ne=y.callbacks)==null?void 0:ne.onEpisodeClicked)==null||V.call(ne,xe)}},k=X(null),R=v(()=>l()/p());Fe(()=>{var se;let ge=Hc(r(R),p(),m());ge?((se=r(k))==null?void 0:se.time)!==ge.time&&(u(ge),D(k,pe(ge))):D(k,null)});let W=v(()=>{var ge;return((ge=r(k))==null?void 0:ge.text)||""}),Y=v(()=>Wi(n(),"xl")?"FULL":Wi(n(),"m")&&Rh(n(),"xl")?"COUNT":"SHORT"),F=v(()=>`${I("tooltip_episodes")}: ${r(W)}`),Q=async(ge,se,Ee)=>{await bo(),(ge==null?void 0:ge.getAttribute("aria-expanded"))==="false"&&se&&!Ee&&xt(()=>{b.set(!1),ge.focus()})};Fe(()=>{Q(r(M),a(),s())});var oe=Oe(),Z=ue(oe);{var re=ge=>{let se=v(()=>d()?"px-0":"");Vt(ge,{get className(){var Ee;return`w-max btn-full-opacity btn-jc-l ${(Ee=r(se))!=null?Ee:""}`},testId:"btn-episodes",click:P,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(F)},get ref(){return r(M)},set ref(Ee){D(M,pe(Ee))},children:(Ee,ne)=>{var V=Oe(),xe=ue(V);{var _e=H=>{var le=s2(),he=ue(le),ee=h(he,!0);g(he);var De=A(he,2),je=h(De);hf(je,{}),g(De),E(()=>me(ee,r(W))),_(H,le)},ze=H=>{var le=d2(),he=ue(le);gf(he,{});var ee=A(he,2);{var De=we=>{var Ve=a2(),Ie=h(Ve,!0);g(Ve),E(()=>me(Ie,r(W))),_(we,Ve)},je=(we,Ve)=>{{var Ie=Ue=>{var dt=l2(),ct=h(dt,!0);g(dt),E(()=>me(ct,m().length)),_(Ue,dt)};B(we,Ue=>{r(Y)==="COUNT"&&Ue(Ie)},Ve)}};B(ee,we=>{r(Y)==="FULL"?we(De):we(je,!1)})}_(H,le)};B(xe,H=>{d()?H(_e):H(ze,!1)})}_(Ee,V)},$$slots:{default:!0}})};B(Z,ge=>{r(k)&&ge(re)})}_(t,oe),z(),o()}import{debounceFn as cy}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as _2,PlaybackState as sd,Player as b2,PredefinedQualityLimits as Hr,VideoFormat as ad,clientChecker as $2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Hn,getHighestQuality as y2,InterfaceLanguage as x2,isInvariantQuality as w2,isNonNullable as S2,loadVKLangPack as C2,Logger as T2,map as Kh,merge as I2,Observable as k2,Subject as Yc,Subscription as wf,TracerFactory as E2,ValueSubject as P2,VideoQuality as A2,devNull as M2,now as L2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as is}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as u2,devNull as Qt,now as Gt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as p2,Subject as No,clearVideoElement as f2}from"@vkontakte/videoplayer-shared/es2018";var Hh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var m2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Fc=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new No,loadStarted$:new No,loadEnded$:new No,loadError$:new No,ready$:new No,slotRequested$:new No,started$:new No,timeRemained$:new No,paused$:new No,resumed$:new No,ended$:new No,empty$:new No,skipped$:new No,clicked$:new No,closed$:new No,error$:new No};this.loadAdman=e=>(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Gt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Gt()]}),o())};p2(m2,e,this.loadTimeout).then(()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Gt()]}),window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Gt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Gt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Gt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Gt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Gt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Gt()]}),!d&&(window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Gt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Gt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Gt(),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"}),Se(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{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;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Gt()]}),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;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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")=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Gt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Gt()]}),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")}initAdman(e){var M;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Gt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:a,adsContainer:s,adsVideoElement:d,slotId:l,params:p={},duration:m,previewParam:y}=e,u,$=this.playerState&&Se(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:b}=u2(),C=(M=w?b:window.location.href)!=null?M:window.location.href,T={...p,dl:encodeURIComponent(C),autoplay:a?1:0,player_width:i,player_height:o,preview:y,...u?{request_id:u}:{},duration:m,puid10:Hh(i,o),puid11:n?0:1};y||delete T.preview;let I={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),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.init(I),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[Gt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Gt()]}),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.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let s="Switch to video: Adman state was not updated correctly";this.log({message:s}),this.events.error$.next(s)}(a=(n=this.actions).switchFromAdsToVideo)==null||a.call(n,!i)}}togglePlay(){var e;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.adsState){this.log({message:"toggle play"});let i=Se(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(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Gt()]}),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(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),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(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,p,m,y,u;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Gt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(s=this.adman)==null||s.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(l=this.adman)==null||l.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(y=this.adman)==null||y.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&f2(this.videoElement),this.isDestroyed=!0}};var Fh=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 _f=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let a of n){let s={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let l of d)if(!s.startTime&&!s.endTime){let p=new Uc,{startTime:m,endTime:y}=p.parse(l);s.startTime=m,s.endTime=y}else if(l.trim()!==""){let p=new bf,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Uc=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},bf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let p=["<",">"].reduce((m,y)=>{let u=s.indexOf(y,d);return m===-1||m>u?u:m},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new Uc;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},Uh=_f;import{isNonNullable as $f}from"@vkontakte/videoplayer-shared/es2018";var na,Ti,yf=0,xf=!1,zh="",qh=(t,e=0,i=0)=>t<e&&t<i,zc=(t,e=0,i=0)=>t>=e&&t<=i,v2=(t,e=0,i=0)=>t>e&&t>i,Wh=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:l})=>l===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:m})=>zc(t,p,m));let a=t>=yf,s=t<yf;if(yf=t,s&&(xf=!1),$f(na)&&zc(t,na.startTime,na.endTime)&&zh===e.value)return na;if(!$f(Ti)&&(n!=null&&n.length)&&!xf){Ti=n.find(({startTime:p,endTime:m})=>zc(t,p,m)||a&&qh(t,p,m)),na=void 0,!$f(Ti)&&n[n.length-1].endTime<t&&(xf=!0);return}else{if(zc(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))return na=Ti,Ti=void 0,zh=e.value,na;(a&&v2(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime)||s&&qh(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))&&(Ti=void 0)}};var qc={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"},g2={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"},Wc=t=>{var e,i;return(i=(e=qc[t])!=null?e:qc[g2[t]])!=null?i:void 0};import{Subscription as h2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Kc=class{constructor(e,i,o=new h2){this.oneStat=e;this.mediascopePixel=i;this.statSubscription=o}destroy(){var e;this.oneStat.destroy(),(e=this.mediascopePixel)==null||e.destroy(),this.statSubscription.unsubscribe()}};var Qc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Qc||{});var Or=t=>t!=null?t:0,Xa=(t,e)=>{var n,a;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(Or(i==null?void 0:i.top)-Or(o==null?void 0:o.top)),left:Math.round(Or(i==null?void 0:i.left)-Or(o==null?void 0:o.left)),bottom:Math.round(Or(i==null?void 0:i.bottom)-Or(o==null?void 0:o.top)),right:Math.round(Or(i==null?void 0:i.right)-Or(o==null?void 0:o.left))}},Ja=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Or(e==null?void 0:e.width),height:Or(e==null?void 0:e.height)}};var Gc="off";var Qh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:m,previewThumbsData:y,uiConfig:u,coreConfig:$,player:w,disabledControls:b,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:P,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:R,additionalButtons:W,additionalSettingsMenuItems:Y,additionalContextMenuItems:F,playPrevVideo:Q,playNextVideo:oe,looped:Z=!1,statistics:re,saveRate:de,internalsExposure:Ae,playerView:Me})=>{var Hm,Fm,Um;let ge={...$,configName:[...(Hm=$.configName)!=null?Hm:[],"ui"],isAudioDisabled:s,live:{...(Fm=$.live)!=null?Fm:{},isLiveCatchUpMode:!!n}},se=u,Ee=E2.createRootTracer(se.features.tracer),ne=Ee.createComponentTracer("Store"),V=w||new b2(ge,Ee);Ae==null||Ae.expose({corePlayer:V});let xe=new T2,_e=new Fc(xe,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal}),ze=Qs.getInstance(),H=p==null?void 0:p.pictureInPictureApi,le=p==null?void 0:p.annotationsApi,he=p==null?void 0:p.slotsApi,ee=xe.createComponentLog("Store"),De,je,we={},Ve=new _c,Ie=re?Xt(re.oneStat.vsid$):sr(void 0),Ue=ce(vs()),dt=ce(!1),ct=(Um=H==null?void 0:H.info.isActive$)!=null?Um:new P2(!1),ot=ce(0),wt=ce([]),ft=I2(V.events.fatalError$,V.events.managedError$).subscribe(c=>wt.update(x=>[...x,c])),zt=sr(!1,c=>{let x=V.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),ti=async c=>{var ae;let x=Object.values(x2).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!kp(c))){let We;try{We=await C2(c,Ag,Mg)}catch(Ct){(ae=re==null?void 0:re.oneStat)==null||ae.logError({errorType:"VKLangPack",fatal:!1}),ze==null||ze.report(Ct,{errorType:"VKLangPack",fatal:!1})}We&&(Ip({language:c,pack:We,fallback:se.defaultLanguage}),At.set(c))}kp(c)&&At.set(c)},At=ce(t),Rt=ce(e);ti(t);let O=(c,x)=>{let N=Se(At);return Ep(N,c,x,se.defaultLanguage)},be=ce("thumb"),te=(()=>{let c=bi([zt,be],([x,N])=>x?"crashed":N);return{...c,is:x=>Se(c)===x}})(),Re=(()=>{let c=ce(new Set(b));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let ae=[...N];return new Set(Array.isArray(x)?ae.filter(We=>!x.includes(We)):ae.filter(We=>We!==x))})},includes:x=>{let N=Se(c);return Array.isArray(x)?x.every(ae=>N.has(ae)):N.has(x)}}})();ne.log("create store"),ee({message:"create store"});let Ye=c=>{let x=c.container;x.append(V.experimental.element$.getValue()),Ze=new MutationObserver(N=>{let{removedNodes:ae}=N[0];ae.length&&x.append(V.experimental.element$.getValue())}),Ze.observe(x,{childList:!0})},Ke=c=>{ee({message:`init video, config: ${JSON.stringify(c)}`}),C?Ye(c):(M2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[L2()]}),V.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&V.setExternalTextTracks(c.subtitles),De=c},Le=new Yc,nt=c=>Le.next(c),Je=new Yc,ht=new Yc,tt=new Yc,Ze=null,qt={actionRewind$:Je,actionSeek$:ht,inPiP$:ct,inFullscreen$:new k2(c=>Ue.subscribe(x=>c.next(x))),actionSetSubtitle$:tt,nextMovie$:Le};if(re){let{oneStat:c,mediascopePixel:x,statSubscription:N}=re;C||N.add(c.attachTo(V)),N.add(c.attachToUi(qt)),N.add(c.attachToAds(_e.events)),c.authorize(a).catch(ae=>{ee({message:`onestat auth error ${String(ae)}`})}),x&&x.attachTo(V)}if(ze){let c=new wf,x=(N,ae)=>c.add(N.subscribe(ae));if(x(V.events.managedError$,N=>{ze.logIError(N)}),x(V.events.fatalError$,N=>{ze.logIError(N,!0)}),re){let{oneStat:N}=re;x(N.experimental.error$,ae=>{ze.logIError(ae)})}ze.sentrySubscription.add(c)}let _t=()=>{$2.device.isIOS&&je&&vh(je).catch(c=>{ee({message:`exitIosSafariFullscreen failed: ${c}`})})},$i=new wf().add(V.experimental.element$.subscribe(c=>{c&&(je=c,c.classList.add("player-media"),Ys(H)&&(H.updateVideoElement(),H.registryEventHandlers()),C&&c.setAttribute("pip","false"),Me==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(V.events.ended$.subscribe(()=>{var c;_t(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(V.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(V.events.started$.subscribe(async()=>{var x,N;Ys(H)&&await(H==null?void 0:H.revealPictureInPicture());let c=V.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=we.onStarted)==null||N.call(we,c)})).add(V.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(V.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(V.info.position$.subscribe(c=>{var N;let x=V.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),_e.setPosition(c,x))})).add(V.events.fatalError$.subscribe(c=>{var x;(x=l==null?void 0:l.onCrashed)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(V.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=l==null?void 0:l.onRecoverableError)==null||x.call(l,c?`${c.id}: ${c.message}`:void 0)})).add(V.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(V.info.is3DVideo$.subscribe(c=>{kt.ui.is3DVideo.set(c)})).add(V.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Re.add(Vl),Re.add("PLAY_BUTTON")):Re.remove("PLAY_BUTTON"))})).add(V.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(V.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(V.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(_e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(_e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(_e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(_e.events.init$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(_e.events.ready$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(_e.events.started$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:N.call(x,c)})).add(_e.events.timeRemained$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:N.call(x,c)})).add(_e.events.ended$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:N.call(x,c)})).add(_e.events.empty$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(_e.events.clicked$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:N.call(x,c)})).add(_e.events.closed$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:N.call(x,c)})).add(_e.events.error$.subscribe(c=>{var x,N;return(N=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:N.call(x,c)})).add(_e.events.paused$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(_e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=l==null?void 0:l.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)})),Jt=new wf,Qe=()=>{var Ct,Nt,Ut;let{debugLog:c}=se,x,N="#9df7b7",ae="#efd169";if(c&&c!==!0){let{colors:Dt}=c;x=c.tag,N=(Ct=Dt==null?void 0:Dt[0])!=null?Ct:N,ae=(Ut=(Nt=Dt==null?void 0:Dt[1])!=null?Nt:Dt==null?void 0:Dt[0])!=null?Ut:ae}let We=x?`: ${x}`:"";Jt.add(V.events.log$.subscribe(Dt=>{console.debug(`%c sdk${We} `,`background:${N};`,`sdk component: ${Dt.component}`,Dt.message)})).add(xe.log$.subscribe(Dt=>{console.debug(`%c ui${We} `,`background:${ae};`,`ui component: ${Dt.component}.`,Dt.message)}))},Yt=()=>{Jt.unsubscribe()},Mi=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),V.startCameraManualRotation(c,x)},Ni=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),V.stopCameraManualRotation(c)},so=(c,x,N)=>{ne.log("move camera focus px",{xpx:c,ypx:x,dt:N}),V.moveCameraFocusPX(c,x,N)},Ki=()=>{V.holdCamera()},it=()=>{V.releaseCamera()},bt=sr(V.info.position$.getValue(),c=>{let x,N,ae=()=>{let We=V.info.playbackState$.getValue(),Ct=V.info.isLive$.getValue(),Nt=V.info.duration$.getValue(),Ut=V.info.position$.getValue();if(We&&[sd.PLAYING,sd.PAUSED].includes(We)){let Dt=Ct?Ut-Nt:V.getExactTime();Dt!==N&&c(Dt),N=Dt}x=requestAnimationFrame(ae)};return ae(),()=>cancelAnimationFrame(x)}),Ii=Xt(V.info.playbackState$),ji=Xt(V.info.currentBuffer$),wo=Xt(V.info.isEnded$),j=Xt(V.info.isLive$),jt=se.features.playbackRate?Xt(V.info.canChangePlaybackSpeed$):sr(!1),vi=Xt(V.info.liveBufferTime$),Li=Xt(V.info.volume$),si=Xt(V.info.muted$),ut=bc(V.info.predefinedQualityLimitType$.pipe(Kh(c=>c===Hr.TRAFFIC_SAVING)),V.info.predefinedQualityLimitType$.getValue()===Hr.TRAFFIC_SAVING),fi=bc(V.info.predefinedQualityLimitType$.pipe(Kh(c=>c===Hr.HIGH_QUALITY)),V.info.predefinedQualityLimitType$.getValue()===Hr.HIGH_QUALITY),Xe=Xt(V.info.autoQualityLimitingAvailable$),Mt=Xt(V.info.availableQualities$),ao=Xt(V.info.availableQualitiesFps$),Zt=Xt(V.info.chromecastState$),Fn=Xt(V.info.chromecastDeviceName$),Zi=Xt(V.info.currentFormat$),Po=Xt(V.info.throughputEstimation$),ci=Xt(V.info.videoBitrate$),St=Xt(V.info.intrinsicVideoSize$),Vi=Xt(V.info.duration$),Oo=Xt(V.info.isAudioAvailable$),ui=null,Ho=V.info.isBuffering$,Di=sr(Ho.getValue(),c=>{let x=Ho.subscribe(N=>{N&&ui===null?ui=window.setTimeout(()=>{c(Ho.getValue()),ui=null},se.loaderDelay):c(N)});return()=>{x.unsubscribe(),ui&&clearTimeout(ui)}}),So=()=>{ui&&clearTimeout(ui),ui=null},Oi=bi([Vi,j],([c,x])=>x?-c:c),Un=bi([Ii],([c])=>c===sd.PLAYING),lo=Xt(V.info.atLiveEdge$),Tn=Xt(V.info.atLiveDurationEdge$),Ao=Xt(V.info.position$),Mo=bi([Ao,Vi],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),In=bi([Zt],([c])=>c===_2.CONNECTED),Cr=Xt(V.info.availableVideoStreams$),lr=se.features.audioLanguages?Xt(V.info.availableAudioStreams$):sr([]),kn=Xt(V.info.currentVideoStream$),dn=Xt(V.info.currentAudioStream$),zn=c=>{c.language&&Tp(c.language),V.setVideoStream(c)},pt=c=>{c.language&&Tp(c.language),V.setAudioStream(c)},co=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ae=>"isDefault"in ae&&ae.isDefault)),x)return x;let N=th();return N&&(x=c.find(({language:ae})=>N===ae)),x!=null||(x=c.at(0)),x},Fo=!1;$i.add(V.info.availableAudioStreams$.subscribe(c=>{if(!Fo&&c.length){let x=co(c);x&&(V.setAudioStream(x),Fo=!0)}}));let En=!1;$i.add(V.info.availableVideoStreams$.subscribe(c=>{if(!En&&c.length){let x=co(c);x&&(V.setVideoStream(x),En=!0)}}));let Lo=ce(void 0),Uo=Xt(V.info.isAutoQualityEnabled$,c=>c&&Lo.set(void 0)),qn=Xt(V.info.currentQuality$,()=>Lo.set(void 0)),Vo=bi([Lo,qn],([c,x])=>c!=null?c:x),Wn=bi(Zi,c=>c!==ad.MPEG),cn=bi([Mt,ao,Uo,Vo,Wn],([c,x,N,ae,We])=>{let Ct=[];We&&Ct.push({value:"auto",displayValue:O("auto_quality_option"),selected:N});let Nt=c.filter(Ut=>!w2(Ut));for(let Ut of Nt){let Dt=x[Ut];Ct.push({value:Ut,displayValue:`${Ut}${Dt?Fh(Dt):""}`,selected:N?!1:Ut===ae})}return Ct}),Kn=Xt(V.info.currentPlaybackRate$),zo=bi([Kn,lo,Tn],([c,x,N])=>{let ae=N||C?1:se.controls.playbackRateMin,We=x?1:se.controls.playbackRateMax,Ct=se.controls.playbackRateStep,Nt=[];for(let Ut=ae;Ut<=We;Ut+=Ct)Nt.push({value:Ut,displayValue:Ut===1?O("playback_rate_1"):O("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Nt}),uo={displayValue:O("subtitles_off"),value:Gc},wi=ce({...uo}),un=se.features.subtitles?Xt(V.info.availableTextTracks$):sr([]),pn=Kg(),qo=bi([un,wi],([c,x],N)=>{var Ct;let ae=[],We=c.find(({id:Nt})=>Nt===x.value);if(We!=null&&We.url){let[,Nt]=(Ct=pn.find(We.url))!=null?Ct:[];if(Nt){N(Nt);return}Ve.download(We.url).then(Ut=>{if(!Ut||Ve.isDestroyed())return;let Dt=new Uh,ss=We.language;if(ss){let R1=!!We.isAuto,B1=Dt.parse(Ut,ss);ae.push({lang:ss,subtitles:B1,isAuto:R1,id:We.id})}pn.add(We.url,ae),Se(wi).value===x.value&&N(ae)}).catch(Ut=>{var Dt;(Dt=re==null?void 0:re.oneStat)==null||Dt.logError({errorType:"Subtitles download",fatal:!1}),ze==null||ze.report(Ut,{errorType:"Subtitles download",fatal:!1})})}N(ae)}),po=bi([Kn,Un,wi],([c,x,N],ae)=>{let Nt;if(V.info.isLive$.getValue()&&x&&N.value!==uo.value){let Dt=()=>{let ss=1e3/(3*c);Nt=setTimeout(Dt,ss),ae(Date.now())};return Dt(),()=>clearTimeout(Nt)}}),Pn=bi([un,wi],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:ae,isAuto:We,id:Ct}of c){let Nt=ae&&Wc(ae);ae&&Nt&&N.push({displayValue:We?O("subtitles_auto",{language:Nt}):Nt,value:Ct,selected:(x==null?void 0:x.value)===Ct,isAuto:We})}return N.length?(N.unshift({...uo,selected:(x==null?void 0:x.value)===uo.value}),N):[]}),Co={available:[],prev:[]},Hi=()=>{var x,N;let c=V.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:je==null?void 0:je.currentTime)!=null?N:0},dr=bi([bt,wi,qo,po],([c,x,N,ae])=>{var Ct;let We=V.info.isLive$.getValue();if(We&&Co.prev!==N){let Nt=N.find(({id:Dt})=>Dt===x.value),Ut=Co.prev.find(({id:Dt})=>Dt===x.value);if(Nt){let Dt={...Nt,subtitles:[...(Ct=Ut==null?void 0:Ut.subtitles)!=null?Ct:[],...Nt.subtitles]};Co.available=[Dt],Co.prev=N}}if(x&&x.value!==uo.value){let Nt=We?Hi():c,Ut=We?Co.available:N;return Wh(Nt,x,Ut,We)}}),Ro=bi([dr],([c])=>c!=null&&c.texts?c.texts:[]);$i.add(wi.subscribe(c=>{var x,N;if(c.value===uo.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let ae=Object.entries(qc).find(([We,Ct])=>Ct===c.displayValue);(N=l==null?void 0:l.onSubtitleOn)==null||N.call(l,ae?ae[0]:"")}}));let Qn=ce(!0),An=bi([ji,Oi,Ao,vi],([c,x,N,ae])=>{var Ut;let We=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!ae)return We/x;let Nt=-N+ae-x;return(We-Nt)/x}),Gn=Xt(V.info.availableSources$),cr=bi([Gn],([c])=>Object.keys((c==null?void 0:c[ad.MPEG])||{}).length>0),fn=()=>{var N,ae,We;let c=Object.keys(((ae=(N=V.info.availableSources$)==null?void 0:N.getValue())==null?void 0:ae[ad.MPEG])||{}),x=y2(c)||A2.Q_144P;return(We=De.sources[ad.MPEG])==null?void 0:We[x]},Tr=()=>{var x;let c=fn();if(c)ne.log("download video",{url:c}),zg(c,((x=De==null?void 0:De.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";ne.log("download video",{message:N}),ee({message:N})}},ur=()=>{ee({message:"toggle muted"});let c=V.info.muted$.getValue();V.info.volume$.getValue()===0&&!c?mt(Kt()):Bt(!c)},Yn=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!Se(kt.ui.settingsSubMenu.visible$)){let x=Se(kt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ae=Ja(x),We={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ae,position:We,name:"settings"})}}ne.log("close settings menu")},Ir=async(c,x=()=>Promise.resolve())=>{var We;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),await x();let N=Se(kt.ui.settingsMenu.ref$),ae=Is();if((We=l==null?void 0:l.uiInfo)!=null&&We.onSettingsMenu&&N&&ae){let Nt=Ja(N),Ut=Xa(N,ae);l.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:Ut,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},kr=(c,x=!1)=>{var Ct;kt.ui.settingsSubMenu.visible$.set(!1);let N=Se(kt.ui.settingsMenu.ref$),ae=Is(),We=Se(kt.ui.settingsMenu.visible$);if((Ct=l==null?void 0:l.uiInfo)!=null&&Ct.onSettingsMenu&&N&&ae)if(We&&!x){let Ut=Ja(N),Dt=Xa(N,ae);l.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Dt,name:"settings"})}else{let Ut=Ja(c),Dt={top:0,left:0,bottom:0,right:0},ss=Se(kt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Dt,name:ss})}ne.log("close settings sub menu")},mn=(c,x)=>{var ae;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(x),kt.ui.settingsSubMenu.name$.set(c);let N=Is();if((ae=l==null?void 0:l.uiInfo)!=null&&ae.onSettingsMenu&&x&&N){let Ct=Ja(x),Nt=Xa(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:Ct,position:Nt})}ne.log("open settings sub menu",{name:c})},Kt=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=$c())!=null?x:0);return c===0?se.volumeDefault:c},mt=c=>{let x=c===0?Kt():c,N=V.info.muted$.getValue();ee({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ae=!s||te.is("ads");N&&c>0&&ae&&(N=!1,Sp(!1)),V.setVolume(c,N),_e.setVolume(c),bp(x)},Bt=c=>{let x=V.info.volume$.getValue();if(ee({message:`set muted, currentVolume: ${x}, mute: ${c}`}),V.setMuted(c,te.is("ads")),_e.setVolume(c?0:x),Sp(c),!c&&x===0){let N=Kt();V.setVolume(N),bp(N),_e.setVolume(N)}},ai=ce(!1),ni=c=>{var x,N;ne.log("set looped",{isLooped:c}),ai.set(c),V.setLooped(c),(N=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||N.call(x,c)};ni(Z);let fo=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},To=(c,x=!1)=>{var N;ee({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),nh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},Io=c=>{ee({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},Wo=(c=!0)=>{var ae;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ae=l==null?void 0:l.onPrevVideoClick)==null?void 0:ae.call(l)}catch(We){ee({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&et("prev")||Q()},Ko=(c=!0)=>{var ae;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ae=l==null?void 0:l.onNextVideoClick)==null?void 0:ae.call(l)}catch(We){ee({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&et("next")||oe()},et=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:ae}}=se;return N&&ae&&!x?(kt.ui.aboutToGoNextVideo.set(c),kt.ui.userActionsDisabled.set(!0),!0):!1},Pt=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},mi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Fi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Qi=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},vn=()=>{V.prepare()},gn=()=>{Hn(kt);let c=Se(kt.ui.controls.disabledControls$),x=Se(kt.playerPhase),N={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ee({message:"toggle play"}),x==="ads"){N.action="play",ne.log("toggle adman play",N),_e.togglePlay();return}let ae=()=>{var Ct;ee({message:"toggle play, call player.play"}),N.action="play",V.play(),(Ct=l==null?void 0:l.onPlay)==null||Ct.call(l)},We=()=>{var Ct;ee({message:"toggle play, call player.pause"}),N.action="pause",V.pause(),(Ct=l==null?void 0:l.onPause)==null||Ct.call(l)};if(V.info.isEnded$.getValue()){if(ee({message:"toggle play, video ended, seek to 0"}),Je.next(),ht.next(is.REWIND),C){M==null||M();return}V.seekTime(0),ae()}else V.info.playbackState$.getValue()!==sd.PLAYING?ae():We();ne.log("toggle play",N)},Ui=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{ee({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),V.setAutoQuality(c==="auto"),c!=="auto"?(se.features.qualityDetailsSubMenuEnabled?(yc({type:"exact_quality",quality:c,videoId:i},N),Bl(),V.setPredefinedQualityLimits(Hr.UNKNOWN)):$p(i,c),Lo.set(c),V.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(Er("auto_quality",N),Se(ut)&&ki(!1),Se(fi)&&Qo(!1)):Bl()},ki=(c,x="as-default")=>{ee({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?Hr.TRAFFIC_SAVING:Hr.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(jn(N,x),Rl(!1)):(V.setPredefinedQualityLimits(N),Rl(c))},Qo=(c,x="as-default")=>{ee({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),jn(c?Hr.HIGH_QUALITY:Hr.UNKNOWN,x)},jn=(c,x)=>{c!==Hr.UNKNOWN&&(Se(Xe)&&!Se(Uo)&&Ui("auto",{appliesTo:x,changeReason:"limit-changed"}),Er(c,x)),V.setPredefinedQualityLimits(c)},Er=(c,x)=>{yc({type:c,videoId:i},x),x==="as-default"&&yc({type:c,videoId:i},"to-video")},Go=c=>{ne.log("set playback rate",{playbackRate:c}),V.setPlaybackRate(c),se.features.saveRate&&de&&!V.info.isLive$.getValue()&&ih(c)},pr=()=>{let c=Se(zo),x=c.findIndex(({selected:ae})=>ae);if(x===c.length-1)return;let N=c[x+1];Go(N.value)},Zn=()=>{let c=Se(zo),x=c.findIndex(({selected:ae})=>ae);if(x===0)return;let N=c[x-1];Go(N.value)},fr=(c={...uo,selected:!1})=>{ne.log("set subtitles",{...c}),c&&c.value!==uo.value&&tt.next(c.isAuto?c.value+"_auto":c.value),wi.set(c)},Xn=()=>{ne.log("toggle subtitles");let c=Se(Pn),x=Se(wi),N=Se(At);if((x==null?void 0:x.value)===uo.value){let ae=c.filter(We=>We.value!==uo.value).find(We=>We.value===N)||c[1];fr(ae)}else fr()},Pr=ce(!0),Jn=c=>{Pr.set(c)},Yo=(c,x,N=!0)=>{var ae;if(ee({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:x,forcePrecise:N}),ht.next(x),V.info.isLive$.getValue()){let We=V.info.duration$.getValue(),Ct=Math.min(0,We+c);V.seekTime(Ct,N)}else{if(I!=null&&I.getValue())return;V.info.isEnded$.getValue()&&(ee({message:"seek after ended, call callbacks.onPlay"}),(ae=l==null?void 0:l.onPlay)==null||ae.call(l)),V.seekTime(Om(c),N)}},Ar=c=>{ee({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),Yo(c,is.EPISODE,!0)},jo=(c,x)=>{ee({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let N=Se(Oi)*c;Yo(N,x,!1)},mr=c=>{ee({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),ht.next(is.UNKNOWN),V.seekTime(V.info.isLive$.getValue()?-c:c)},Fr=c=>{var ae,We;let x=(ae=c.max)!=null?ae:"none",N=(We=c.min)!=null?We:"none";ee({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),ne.log("set auto quality limits",{max:x,min:N}),V.setAutoQualityLimits(c)},at=c=>{ee({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),Yo(c,is.EPISODE,!0)},Wt=c=>{ee({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),V.setPlaybackRate(c)},ii=ce(void 0),mo=ce(!1),hn=c=>{ee({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),mo.set(!0),er(c)},er=c=>{ii.set(c)},_n,Mn,yi=()=>{ii.set(void 0),mo.set(!1)},fe=()=>{clearTimeout(Mn),clearTimeout(_n),_n=window.setTimeout(()=>{yi()},500),je==null||je.removeEventListener("seeked",fe)},yt=c=>{ee({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),jo(c,is.SLIDER),Se(kt.ui.isMobile)&&Se(kt.state.currentFormat$)===ad.HLS?(je==null||je.addEventListener("seeked",fe),Mn=window.setTimeout(()=>{fe()},300)):yi()},li=bi([bt,Oi,ii],([c,x,N],ae)=>{ae(S2(N)?N*x:c)}),pi=ce(!1),xi=()=>{pi.set(!0)},He=()=>{pi.set(!1)},Lt=ce({width:0,height:0}),oi=bi([Lt],([{width:c}],x)=>{let N=Bh(c);x(N)}),Xi=ce(!1),vo=W.filter(c=>qg(c)),Ur=bi([oi,Xi],([c,x])=>x?vo.filter(N=>!N.hideOnMobile):vo.filter(N=>{var ae;return!((ae=N.hideOnDesktopGridTypes)!=null&&ae.includes(c))})),Ri=ce(W.filter(c=>Wg(c))),tr=bi([Ri,oi],([c,x])=>c.filter(N=>{var ae;return!((ae=N.hideOnDesktopGridTypes)!=null&&ae.includes(x))})),Ss=bi([tr,Ur],([c,x])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?x.map((N,ae)=>{var We;return{id:ae,weight:ae,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(We=N.ariaLabel)!=null?We:N.tooltip,tooltipText:N.tooltip}}):[]]),ir=ce(Y),ma=bi([ir],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),sl=(c,x)=>{let N=Se(Ri).map(ae=>ae.id!==c?ae:{...ae,...x});Ri.set(N)},va=c=>{let x=Se(Ri);if(x.some(N=>N.id===c.id)){ee({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ri.set(x)},ga=c=>{let x=Se(Ri);if(!x.some(N=>N.id===c)){ee({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),Ri.set(x)},ha=c=>{ht.next(is.LIVE),ee({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),V.setLiveLowLatency(c)},al=(c,x)=>{let N=Se(ir).map(ae=>ae.id!==c?ae:{...ae,...x});ir.set(N)},Cs=c=>{let x=Se(ir);if(x.some(N=>N.id===c.id)){ee({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ir.set(x)},_a=c=>{let x=Se(ir);if(!x.some(N=>N.id===c)){ee({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),ir.set(x)},lt=ce(F),$t=bi([lt],([c])=>se.features.additionalContextMenuItems?c:[]),Gi=(c,x)=>{let N=Se(lt).map(ae=>ae.id!==c?ae:{...ae,...x});lt.set(N)},Zo=c=>{let x=Se(lt);if(x.some(N=>N.id===c.id)){ee({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),lt.set(x)},Yi=c=>{let x=Se(lt);if(!x.some(N=>N.id===c)){ee({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),lt.set(x)},di=bi([Xi,zt],([c,x],N)=>{N(c&&x)}),Ei=()=>{ht.next(is.LIVE),ee({message:"switch to active live"}),ne.log("switch to active live"),V.seekTime(0),V.info.playbackState$.getValue()!==sd.PLAYING&&kt.actions.internal.togglePlay()},Ts=()=>{ne.log("skip adman"),_e.skip()},ba=(c=!0)=>{Hn(kt),ee({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&V.play(),s&&Bt(!0)},vu=()=>{Hn(kt),ee({message:"switch from video to ads"}),ne.log("switch from video to ads"),kt.actions.internal.pause(),_t(),be.set("ads")},Bd=c=>{Hn(kt);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),be.set(x)},gu=c=>{Hn(kt);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),be.set(x)},Nd=c=>{Hn(kt);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),be.set(x)},hu=()=>(Hn(kt),ne.log("get debug text data"),Fg(V,De,kt,Ee.getTraceId())),Dd=()=>(Hn(kt),JSON.stringify(Ee.getFinishedSpans())),_u=()=>(Hn(kt),Ug(V,De,kt)),Is=()=>je,Od=()=>{ee({message:"toggle chromecast"}),ne.log("toggle chromecast"),V.toggleChromecast()},ll=c=>{var N;if(Hn(kt),V.info.isEnded$.getValue())return;let x=!c;if(Se(kt.playerPhase)==="ads"){ee({message:`pause ads, internalCall: ${x}`}),ne.log("pause ads",{internalCall:x}),_e.pause();return}ee({message:`pause video, internalCall: ${x}`}),ne.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),V.pause()},Hd=c=>{var N;Hn(kt);let x=!c;if(Se(kt.playerPhase)==="ads"){ee({message:`play ads, internalCall: ${x}`}),ne.log("play ads",{internalCall:x}),_e.play();return}ee({message:`play video, internalCall: ${x}`}),ne.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),V.play()},Fd=c=>{Hn(kt);let x=!c;if(Se(kt.playerPhase)==="ads"){ee({message:"player cannot be stopped during ads via external method"});return}ee({message:`player will be stopped, internalCall: ${x}`}),P==null||P()},Ud=(c,x)=>{Hn(kt),ee({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ne.log("first start",{showAds:c,external:x}),c?be.set("ads"):(be.set("video"),x?V.play():kt.actions.internal.togglePlay())},$a=()=>(ee({message:"getting time codes"}),m),zd=()=>{let c=$a();if(!c||[0,1].includes(c.length))return;let x=V.info.position$.getValue();return c.find(N=>N.time>x)},bu=c=>{let x=c;x||(x=zd());let N=V.info.position$.getValue();ne.log("seek to next episode",{currentTime:N,...x}),x&&(ee({message:"seek to next episode"}),Yo(x.time,is.EPISODE,!0))},qd=()=>{let c=$a();if(!c||[0,1].includes(c.length))return;let x=V.info.position$.getValue(),N=c.findIndex(We=>We.time>x),ae=N===-1?c.length-2:N-2;if(!(ae<0))return c[ae]},qe=c=>{let x=c;x||(x=qd());let N=V.info.position$.getValue();ne.log("seek to prev episode",{currentTime:N,...x}),x&&(ee({message:"seek to prev episode"}),Yo(x.time,is.EPISODE,!0))},ri=()=>(ee({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...y}),y),Xo=async()=>{let c=H==null?void 0:H.isActive(),x="none";H!=null&&H.isActive()?(x="remove",await(H==null?void 0:H.remove())):(x="request",await(H==null?void 0:H.request())),ne.log("toggle picture in picture",{isActive:c,action:x})},ks=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),ot.update(x=>x+c)},go=ce([]);T==null||T.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[ae,We],subjects:Ct}=c[N];N===0&&ae!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ae/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!Ct.length||Ct.every(Nt=>Nt.isRemoved):!Ct.length}),We!==1/0&&x.push({time:We/1e3,text:"",interactive:!1,completed:!0})}go.set(x)});let M1=ce(!1);I==null||I.subscribe(c=>{c&&Se(mo)&&yi()});let Om=c=>{if(!C)return c;let x=Se(go),N=Se(Oi),We=Se(Ao)/N,Ct=x.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>We);return typeof(Ct==null?void 0:Ct.time)=="number"?Math.min(c,Ct.time-.05):c},L1=()=>{kt.ui.episodes.panelOpened$.set(!1)},V1=()=>{ne.log("destroy store"),clearTimeout(Mn),clearTimeout(_n),$i.unsubscribe(),Jt.unsubscribe(),V.destroy(),_e.destroy(),re==null||re.destroy(),ze==null||ze.destroy(),ft.unsubscribe(),Ze==null||Ze.disconnect(),Ze=null,Ve.destroy()},kt={interfaceLanguage$:At,isCyrillicRelatedInterface$:Rt,initVideo:Ke,videoId:i,isClip:o,playerPhase:te,vsid:Ie,state:{positionExact$:bt,positionWithScrubbing$:li,duration$:Oi,playbackState$:Ii,isPlaying$:Un,isLoaderVisible:Di,bufferedProgress$:An,isLive$:j,canChangePlaybackSpeed$:jt,isActiveLive$:lo,isOldestAvailableLive$:Tn,isRewindableLive$:Mo,isEnded$:wo,muted$:si,volume$:Li,trafficSavingEnabled$:ut,highQualityEnabled$:fi,autoQualityLimitingAvailable$:Xe,availableVideoStreams$:Cr,availableAudioStreams$:lr,videoStream$:kn,audioStream$:dn,currentQuality$:Vo,isAutoQualityEnabled$:Uo,availableQualities$:cn,currentPlaybackRate$:Kn,availablePlaybackRates$:zo,currentSubtitle$:wi,availableTextTracks$:un,availableSubtitlesList$:Pn,currentSubtitleCaptions$:Ro,isAutoSubtitleCaptionVisible$:Qn,chromecastState$:Zt,chromecastDeviceName$:Fn,chromecastConnected$:In,currentFormat$:Zi,throughputEstimation$:Po,videoBitrate$:ci,videoSize$:St,errorLog$:wt,crashed$:zt,isAudioAvailable$:Oo,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:Gn,hasMpegSources$:cr,isInteractive:C,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!Se(go).length,interactiveEpisodes$:go,isInteractiveTime$:I?Xt(I):ce(!1),isInteractiveExpectation$:M1,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:R,looped$:ai,loadedMetadata$:ce(!1),isAutoQualityAvailable$:Wn},ui:{t:O,controlsVisible:ce(!1),touched:ce(!1),controls:{prevButton:ce(void 0),playButton:ce(void 0),replayButton:ce(void 0),nextButton:ce(void 0),playPrevChapterButton:ce(void 0),seekToInteractiveButton:ce(void 0),interactiveGraphButton:ce(void 0),liveButton:ce(void 0),time:ce(void 0),episodes:ce(void 0),volume:ce(void 0),subtitles:ce(void 0),settings:ce(void 0),context:ce(void 0),chromecast:ce(void 0),pip:ce(void 0),fullscreen:ce(void 0),vkLogo:ce(void 0),interactiveTimeIndicator:ce(void 0),timeline:ce(void 0),autoplayNextToggle:ce(void 0),additionalButtons:W.length?W.reduce(c=>[...c,ce(void 0)],[]):[],disabledControls$:Re},modals:{hotKeyMap:{show:ce(!1),data:ce({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ue,isFullscreenOpenedByKeyboard:dt,rotateAlpha:ot,isAutoplay:ce(!1),debugPanelVisible:ce(!1),episodes:{panelOpened$:ce(!1),openedByKeyboard$:ce(!1)},contextMenu:{visible$:ce(!1),btnRef$:ce(void 0),openedByBtnKeyboard$:ce(!1),openedByHotKey$:ce(!1),lastActiveElem$:ce(void 0),showContextMenuBtn$:ce(!1),position$:ce({top:0,left:0})},playerSize:Lt,isMobile:Xi,mobileNotReportControlHidden$:di,mobileUnmuteButtonExpanded:ce(!1),mobileUnmuteButtonVisible:ce(!1),icon3DVideoVisible:ce(!1),scrubbingInProgress:mo,volumeChangingInProgress:pi,is3DVideo:ce(!1),currentGridType$:oi,additionalButtonsDeprecated$:Ur,additionalDesktopControlPanelRightButtons$:Ss,additionalSettingsMenuItems$:ma,additionalContextMenuItems$:$t,interactiveHideMobileControls:ce(!1),overlayContainer$:ce(void 0),startedByKeyboard$:ce(!1),autoplayNextEnabled$:ce(!1),timerNextVideoRunning$:ce(!0),settingsMenu:{visible$:ce(!1),ref$:ce(void 0),openedByBtnKeyboard$:ce(!1)},settingsSubMenu:{visible$:ce(!1),ref$:ce(void 0),name$:ce(void 0)},aboutToGoNextVideo:ce(void 0),userActionsDisabled:ce(!1),isControlsAvailable:Pr},ads:{position:ce(0),duration:ce(0),playbackState:ce("inactive"),canSkip:ce(!1),secondsToWatchBeforeSkip:ce(0),postrollPassed:ce(!1)},webApi:{pictureInPictureApi:H,annotationsApi:le,slotsApi:he},actions:{internal:{preload:vn,firstStart:c=>Ud(c,!1),play:()=>Hd(!1),pause:()=>ll(!1),togglePlay:gn,toggleMuted:ur,openSettingsMenu:Ir,closeSettingsMenu:Yn,openSettingsSubMenu:mn,closeSettingsSubMenu:kr,setVolume:mt,startVolumeChanging:xi,stopVolumeChanging:He,setVideoStream:zn,setAudioStream:pt,setQuality:Ui,setTrafficSavingEnabled:ki,setHighQualityEnabled:Qo,setPlaybackRate:Go,incrementPlaybackRate:pr,decrementPlaybackRate:Zn,setSubtitle:fr,toggleSubtitle:Xn,togglePictureInPicture:Xo,startScrubbing:hn,progressScrubbing:er,completeScrubbing:yt,toggleChromecast:Od,switchToActiveLive:Ei,switchFromAdsToVideo:ba,switchFromVideoToAds:vu,skipAd:Ts,setLiveWaitingStart:Bd,setLiveWaitingRecover:gu,setLiveWaitingRecord:Nd,getDebugTextData:hu,getTraceTextData:Dd,getDebugPanelData:_u,getVideoElement:Is,seekTime:(c,x,N)=>Yo(c,x,N),clearDelayedBufferingCheckTimeout:So,seekEpisodeStartTime:Ar,seekToPercent:jo,getNextEpisode:zd,seekToNextEpisode:bu,getPrevEpisode:qd,seekToPrevEpisode:qe,startLogging:Qe,stopLogging:Yt,startCameraManualRotation:Mi,stopCameraManualRotation:Ni,moveCameraFocusPX:so,holdCamera:Ki,releaseCamera:it,getVideoEpisodes:$a,getPreviewThumbsData:ri,downloadVideo:Tr,addLanguage:Ip,setLanguage:ti,nextMovie:nt,videoRotate:ks,correctSeekTimeToInteractive:Om,replayInteractive:M,setLooped:ni,reportProblem:fo,setAutoplayNextEnabled:To,setTimerNextVideoRunning:Io,prevVideoClick:Wo,nextVideoClick:Ko,nextVideoAnnouncementShow:Pt,nextVideoAnnouncementClick:mi,nextVideoAnnouncementAuto:Fi,nextVideoAnnouncementCancel:Qi},external:{firstStart:c=>Ud(c,!0),play:()=>Hd(!0),pause:()=>ll(!0),stop:()=>Fd(!0),seekTime:c=>mr(c),seekEpisodeStartTime:c=>at(c),setPlaybackRate:c=>Wt(c),setAutoQualityLimits:c=>Fr(c),setMuted:Bt,toggleSubtitle:Xn,setVolume:mt,returnFocusToEpisodes:L1,updateAdditionalSettingsItem:al,addAdditionalSettingsItem:Cs,removeAdditionalSettingsItem:_a,updateAdditionalContextItem:Gi,addAdditionalContextItem:Zo,removeAdditionalContextItem:Yi,updateAdditionalButton:sl,addAdditionalButton:va,removeAdditionalButton:ga,setLiveLowLatency:ha,hideControls:()=>Jn(!1),showControls:()=>Jn(!0)}},callbacks:l,setUiCallbacks:c=>{we={...c}},getAdmanWrapper:()=>_e,getLogger:()=>xe,getPlayer:()=>V,destroy:V1};return kt};function ra(t,e,i,o){var y;let n=["interactiveTimeIndicator"],a=(y=e[i])==null?void 0:y.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:p,right:m}=Xa(e[i],t||void 0);return{left:s?l:0,right:s?m:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var el=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(ra(t,i,n,o))};var jc=async(t,e,i)=>{await bo(),e&&i&&(i.focus(),t.set(!1))};var V2=ye('<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 Sf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=V2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),_(t,o)}function Cf(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(l,"$contextMenuVisible$",i),a=f(e,"disabled",3,!1),s=f(e,"ariaLabel",3,""),d=Ce(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,y=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=X(void 0);Fe(()=>{r($)&&xt(()=>{u.set(r($))})});let w=I=>{let M=_s(I),P=kh(r($));y.set(P),p.set(M),l.set(!n())},b=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Vt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:b,blur:C,get ariaExpanded(){return n()},get ref(){return r($)},set ref(I){D($,pe(I))},children:(I,M)=>{Sf(I,{})},$$slots:{default:!0}}),z(),o()}var R2=t=>{t.stopPropagation()},B2=L("<div><!> <div></div> <div></div></div>"),N2={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;}
231
231
 
232
232
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
233
233
  }
@@ -252,8 +252,8 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
252
252
  opacity: 0;
253
253
  }
254
254
  }.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);
255
- 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 cd(t,e){var Q;U(e,!0),q(t,L2);let[i,o]=Be(),n=()=>S(C,"$isMobile",i),a=()=>S(A,"$areControlsVisible",i),s=()=>S(V,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),l=()=>S(y,"$interactiveControlsOpacity$",i),p=()=>S(P,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>S(T,"$isFullscreen",i),$=f(e,"ref",15,void 0),u=J(void 0),_=Se(),w=lo(),{interactiveControlsOpacity$:y}=w,C=_.ui.isMobile,T=_.ui.isFullscreen,E=_.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,I=(Q=_.callbacks)==null?void 0:Q.onInteractiveTimeIndicatorClick,V=_.ui.currentGridType$,H=v(()=>!n()&&a()),j=v(()=>ys(s(),"s")),O=v(()=>!d()||!!l()||r(H)),X=J(!1);Ue(()=>{B(X,pe(r(O)))});let ne=()=>{B(X,!0)},Y=()=>{var W;fe(),(W=r(u))==null||W.addEventListener("animationiteration",ne,{once:!0})},fe=()=>{var W;B(X,!1),(W=r(u))==null||W.removeEventListener("animationiteration",ne)},le=W=>{P.set(W)},Me=v(()=>p()&&!r(O));Ue(()=>{p()?Y():fe()});let Ae=()=>{r(O)||(P.set(!0),I==null||I())};$n(()=>{P.clearTimeout(),fe()});let me=()=>{P.set(!1)},ae=F("tooltip_interactive_interaction_time_indicator");var Pe=M2();let re;Pe.__mousemove=[A2],Pe.__click=Ae;var D=h(Pe);Mo(D,{tooltipContent:ae,get tooltipActive(){return r(Me)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return $()},set ref(W){$(W)},children:(W,Le)=>{td(W,{completed:!0})},$$slots:{default:!0}});var Ve=M(D,2);let te;pt(Ve,W=>$(W),()=>$());var Qe=M(Ve,2);let ie;pt(Qe,W=>B(u,W),()=>r(u)),g(Pe),k((W,Le,Ne)=>{re=ee(Pe,1,"interactive-episode-icon-animated svelte-od3veb",null,re,W),te=ee(Ve,1,"ref-block svelte-od3veb",null,te,Le),ie=ee(Qe,1,"pulse svelte-od3veb",null,ie,Ne)},[()=>({mobile:n(),fullscreen:m(),invisible:r(O),"icon-small":r(j)}),()=>({hidden:r(O)}),()=>({paused:r(X)})]),xt("mouseleave",Pe,me),b(t,Pe),z(),o()}st(["mousemove","click"]);function Yc(t,e){U(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),n=f(e,"className",3,void 0),a=f(e,"ref",15);Mo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=Fe();let p=v(()=>e.buttonComponent);var m=ue(l);Ti(m,()=>r(p),($,u)=>{u($,Xr(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),b(s,l)},$$slots:{default:!0}}),z()}var is={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var R2=be('<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 wf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=R2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function xs(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),n=f(e,"width",3,"24"),a=f(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");wf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var N2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),D2=L("<!> <!>",1),B2={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function aa(t,e){U(e,!0),q(t,B2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Se().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Mt(t,{get className(){return r(p)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(m){i(m)},children:(m,$)=>{var u=D2(),_=ue(u);{var w=T=>{var E=N2();b(T,E)};R(_,T=>{o()&&T(w)})}var y=M(_,2);let C=v(()=>e.type==="prev");xs(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),b(m,u)},$$slots:{default:!0}}),z()}var O2=be('<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 ud(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=O2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}import{noop as H2}from"@vkontakte/videoplayer-shared/es2018";var F2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),U2=L("<!> <div><!></div>",1),z2={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 Xa(t,e){U(e,!0),q(t,z2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),a=f(e,"className",3,""),s=f(e,"click",3,H2),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Mt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Br.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var $=U2(),u=ue($);{var _=T=>{var E=F2();b(T,E)};R(u,T=>{o()&&T(_)})}var w=M(u,2);let y;var C=h(w);ud(C,{}),g(w),k(T=>y=ee(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,$)},$$slots:{default:!0}}),z()}var q2=be('<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 br(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=q2(),d=h(s);g(s),k(()=>{He(s,"width",i()),He(s,"height",o()),He(s,"viewBox",n()),He(d,"fill",a())}),b(t,s)}var W2=be('<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 os(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=W2(),d=h(s);g(s),k(()=>{He(s,"width",i()),He(s,"height",o()),He(s,"viewBox",n()),He(d,"fill",a())}),b(t,s)}import{noop as K2}from"@vkontakte/videoplayer-shared/es2018";var Q2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),G2=L("<!> <div><!></div>",1),j2={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 Ja(t,e){U(e,!0),q(t,j2);let[i,o]=Be(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=lo(),s=f(e,"ref",15,void 0),d=f(e,"isMobile",3,!1),l=f(e,"isPlaying",3,!1),p=f(e,"disabled",3,!1),m=f(e,"className",3,""),$=f(e,"click",3,K2),_=Se().ui.t,{toggle:w}=a,y=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),E=v(()=>r(T)?_("tooltip_pause"):_("tooltip_play")),P=v(()=>r(T)?os:br),A=v(()=>`${d()?"btn-m--play":""} ${m()}`),I=v(()=>r(C)?r(y):$());Mt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(I)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return Br.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,H)=>{var j=G2();let O=v(()=>r(P));var X=ue(j);{var ne=Me=>{var Ae=Q2();b(Me,Ae)};R(X,Me=>{d()&&Me(ne)})}var Y=M(X,2);let fe;var le=h(Y);Ti(le,()=>r(O),(Me,Ae)=>{Ae(Me,{})}),g(Y),k(Me=>fe=ee(Y,1,"svelte-1ot3duq",null,fe,Me),[()=>({mobile:d()})]),b(V,j)},$$slots:{default:!0}}),z(),o()}var Y2=be('<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 Sf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function pd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Mt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Sf(d,{})},$$slots:{default:!0}}),z()}var Z2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),X2={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 fd(t,e){U(e,!0),q(t,X2);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Mt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,$)=>{var u=Z2(),_=h(u);let w;var y=h(_);{var C=E=>{br(E,{width:"14",height:"14",fill:"#000"})},T=E=>{os(E,{width:"14",height:"14",fill:"#000"})};R(y,E=>{n()?E(C):E(T,!1)})}g(_),g(u),k(E=>w=ee(_,1,"toggler svelte-et3q1q",null,w,E),[()=>({enabled:n()})]),b(m,u)},$$slots:{default:!0}}),z(),o()}var J2=be('<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 Cf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=J2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{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})),b(t,o)}function md(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Mt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Cf(d,{})},$$slots:{default:!0}}),z()}var ey=be('<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 Tf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=ey();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var ty={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function If(t,e){q(t,ty);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Tf(t,{get"data-testid"(){return r(o)}})}function vd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=f(e,"graphIsOpened",3,!1),d=Se().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Mt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,$)=>{let u=v(()=>!!a());If(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}import{PlaybackState as Wh}from"@vkontakte/videoplayer-core/es2018";function gd(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(p,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Se(),p=l.state.playbackState$,m=l.actions.internal.switchToActiveLive,$=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){m();return}n()===Wh.PAUSED&&$()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),y=v(()=>s()&&n()===Wh.PLAYING);Mt(t,{get className(){return r(_)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{Fl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}import{noop as Kh}from"@vkontakte/videoplayer-shared/es2018";var iy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),oy=L('<img class="icon" aria-hidden="true">');function la(t,e){"use strict";let i=J(!1),o=()=>{B(i,!0)};var n=Fe(),a=ue(n);{var s=l=>{var p=iy();b(l,p)},d=l=>{var p=oy();k(()=>He(p,"src",e.icon)),xt("error",p,o),Fs(p),b(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function kf(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Kh),n=f(e,"ref",15),a=v(()=>o()===Kh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Mo(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,p)=>{let m=v(()=>{var $;return($=e.testId)!=null?$:e.id});Mt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(m)},children:($,u)=>{la($,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var Qh=t=>!!t.buttonComponent;var ns={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var ay=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),ly={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function Pf(t,e){var Jn,Is;U(e,!0),q(t,ly);let[i,o]=Be(),n=()=>S(si,"$disabledControls$",i),a=()=>S(Ut,"$adPlaybackState",i),s=()=>S(_t,"$playbackState$",i),d=()=>S(Xt,"$currentSubtitle$",i),l=()=>S(ni,"$isEnded$",i),p=()=>S(Un,"$currentGridType$",i),m=()=>S(Zt,"$isLive$",i),$=()=>S(xi,"$chromecastState$",i),u=()=>S(Ki,"$isPictureInPictureActive",i),_=()=>S(Oi,"$pictureInPictureType$",i),w=()=>S(Z,"$availableSubtitlesList$",i),y=()=>S(fi,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ti,"$showContextMenuBtn$",i),T=()=>S(Gi,"$playerSize",i),E=()=>S(Bi,"$isRewindableLive$",i),P=()=>S(ri,"$isActiveLive$",i),A=()=>S(Yi,"$graphIsOpened$",i),I=()=>S(Hi,"$contextMenuVisible$",i),V=()=>S(Jt,"$isFullscreen",i),H=()=>S(xo,"$autoplayNextEnabled",i),j=()=>S(r(ko),"$prevButton",i),O=()=>S(r(wi),"$replayButton",i),X=()=>S(r(Gn),"$playButton",i),ne=()=>S(r(ut),"$nextButton",i),Y=()=>S(r(Dt),"$playPrevChapterButton",i),fe=()=>S(r(Ei),"$seekToInteractiveButton",i),le=()=>S(r(Eo),"$interactiveGraphButton",i),Me=()=>S(r(rt),"$liveButton",i),Ae=()=>S(r(Lt),"$time",i),me=()=>S(r(ui),"$episodes",i),ae=()=>S(r(Ri),"$vkLogo",i),Pe=()=>S(r(mo),"$volume",i),re=()=>S(r($i),"$subtitles",i),D=()=>S(r(Pi),"$settings",i),Ve=()=>S(r(vi),"$context",i),te=()=>S(r(Po),"$fullscreen",i),Qe=()=>S(r(Xi),"$chromecast",i),ie=()=>S(Fi,"$additionalDesktopControlPanelRightButtons$",i),Q=()=>S(wo,"$isInteractiveTime$",i),W=()=>S(co,"$settingsMenuVisible",i),Le=()=>S(Ir,"$settingButtonRef$",i),Ne=()=>S(ai,"$startedByKeyboard$",i),Xe=()=>S(qe,"$isAudioAvailable$",i),ye=()=>S(ve,"$fakeIsPlaying$",i),xe=()=>S(Sn,"$seekToInteractiveDisabledTooltip$",i),De=()=>S(wt,"$adPosition",i),Ye=()=>S(Re,"$position$",i),it=()=>S(uo,"$adDuration",i),vt=()=>S(lt,"$duration$",i),Je=f(e,"playerControlsWrapperRef",15,void 0),ft=f(e,"playerControlsRef",15,void 0),It=f(e,"isAds",3,!1),Wt=f(e,"logoTargetUrl",3,""),Ft=f(e,"isOneVideoPlaylist",3,!1),qt=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:ve}=lo(),G=Se(),Te=lo(),se=Ht(),Oe=G.actions.internal.toggleMuted,ze=G.actions.internal.togglePlay,et=G.actions.internal.pause,at=G.actions.internal.toggleSubtitle,je=(Jn=G.callbacks)==null?void 0:Jn.onAudioDoesNotExistHint,Ze=(Is=G.callbacks)==null?void 0:Is.onAudioDisabledHint,lt=G.state.duration$,Re=G.state.positionWithScrubbing$,_t=G.state.playbackState$,qe=G.state.isAudioAvailable$,kt=G.state.isAudioDisabled,ni=G.state.isEnded$,Zt=G.state.isLive$,ri=G.state.isActiveLive$,Bi=G.state.isRewindableLive$,{isActive$:Ki,type$:Oi}=Te.pictureInPicture$,co=G.ui.settingsMenu.visible$,Lo=G.ui.settingsMenu.openedByBtnKeyboard$,ot=G.ui.controls,gt=G.actions.internal.getVideoEpisodes(),xi=G.state.chromecastState$,Z=G.state.availableSubtitlesList$,Xt=G.state.currentSubtitle$,si=ot.disabledControls$,Hi=G.ui.contextMenu.visible$,ti=G.ui.contextMenu.showContextMenuBtn$,fi=G.ui.contextMenu.openedByBtnKeyboard$,ai=G.ui.startedByKeyboard$,ct=G.ui.t,uo=G.ads.duration,wt=G.ads.position,Ut=G.ads.playbackState,Jt=G.ui.isFullscreen,Gi=G.ui.playerSize,Un=G.ui.currentGridType$,Fi=G.ui.additionalDesktopControlPanelRightButtons$,xo=G.ui.autoplayNextEnabled$,li=G.actions.internal.getVideoElement,St=G.actions.internal.replayInteractive,po=G.actions.internal.prevVideoClick,Vo=G.actions.internal.nextVideoClick,di=G.state.isInteractive,wo=G.state.isInteractiveTime$,ji=G.state.showInteractiveGraph,So=G.state.showSeekToInteractive,Ro=G.state.showPlayPrevChapter,wn=G.state.showInteractiveTimeIndicator,Vi=G.state.playPrevChapterDisabledTooltip,Sn=Te.seekToInteractiveDisabledTooltip$,Yi=Te.graphIsOpened$,Co=se.features.interactiveResponsiveUi,yr=v(()=>n().has("EPISODE_BUTTON")),rr=v(()=>n().has("GRAPH_BUTTON")),Cn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),zn=v(()=>n().has("PLAY_BUTTON")),qn=v(()=>n().has("REPLAY_BUTTON")),fo=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),dn=()=>G.actions.internal.toggleChromecast(),Tn=v(()=>It()?a()==="playing":s()===Ef.PLAYING),nt=v(()=>d().value!=="off"),In=v(()=>l()&&!It()||di),Uo=v(()=>Co?r(In)&&Wi(p(),"m"):r(In)),zo=v(()=>!l()||di||It()),xr=v(()=>Wi(p(),"m")),qo=v(()=>e.showNextPrevButtons&&Wi(p(),"m")&&!It()&&e.nextButtonActive),kn=v(()=>e.showNextPrevButtons&&Wi(p(),"m")&&!It()&&e.prevButtonActive),Wn=v(()=>!It()&&!!m()),En=v(()=>$()!==Gh.NOT_AVAILABLE&&!(u()&&_()===1)&&Wi(p(),"m")&&!di),Wo=v(()=>e.showAutoplayNext&&!Ft()&&Wi(p(),"s")),Ui=v(()=>w().length>0&&Wi(p(),"m")),Zi=v(()=>y()||C()),To=v(()=>Wi(p(),"s")&&!It()),cn=v(()=>!e.logoHidden&&!It()),Ko=v(()=>se.features.fullscreen&&(e.logoHidden||Wi(p(),Co?"xs":"s"))&&!(u()&&_()===1)&&(di?qt():!0)),Qo=v(()=>(!m()||It())&&!(se.features.interactiveHideTime&&di)),ki=v(()=>T().width>100),No=v(()=>ji&&Wi(p(),"m")),Io=v(()=>Co?So&&Wi(p(),"s"):So),sr=v(()=>Co?Ro&&Wi(p(),"s"):Ro),un=v(()=>!It()&&!m()&&!!(gt!=null&&gt.length)&&r(xr)&&!r(yr)),pn=v(()=>!E()||!!P()),wr=v(()=>A()?ct("tooltip_interactive_graph_on"):ct("tooltip_interactive_graph_off")),Do=v(()=>I()?ct("aria_label_context_menu_close"):ct("aria_label_context_menu_open")),Sr=(bt,ht)=>bt?ht&&ht===Ef.PAUSED?ct("tooltip_play"):"":ct("tooltip_live"),Pn=v(()=>Sr(r(pn),s())),Kn=v(()=>se.logoType==="vk_video"?ct("tooltip_vk_video_logo"):ct("tooltip_vk_logo")),ar=v(()=>r(nt)?ct("tooltip_subtitles_on"):ct("tooltip_subtitles_off")),Cr=v(()=>V()?ct("tooltip_fullscreen_on"):ct("tooltip_fullscreen_off")),Qn=v(()=>$()===Gh.CONNECTED?ct("tooltip_chromecast_on"):ct("tooltip_chromecast_off")),fn=v(()=>H()?ct("tooltip_autoplay_on"):ct("tooltip_autoplay_off")),Tr=J(0),ci=pe({}),ko=v(()=>ot.prevButton),wi=v(()=>ot.replayButton),Gn=v(()=>ot.playButton),ut=v(()=>ot.nextButton),Dt=v(()=>ot.playPrevChapterButton),Ei=v(()=>ot.seekToInteractiveButton),Eo=v(()=>ot.interactiveGraphButton),rt=v(()=>ot.liveButton),Lt=v(()=>ot.time),ui=v(()=>ot.episodes),Ri=v(()=>ot.vkLogo),mo=v(()=>ot.volume),$i=v(()=>ot.subtitles),Pi=v(()=>ot.settings),vi=v(()=>ot.context),Po=v(()=>ot.fullscreen),Xi=v(()=>ot.chromecast),Ji=v(()=>({prevButton:j()?j().right-j().left:0,replayButton:O()?O().right-O().left:0,playButton:X()?X().right-X().left:0,nextButton:ne()?ne().right-ne().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:fe()?fe().right-fe().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Me()?Me().right-Me().left:0,time:Ae()?Ae().right-Ae().left:0,episodes:me()?me().right-me().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Pe()?Pe().right-Pe().left:0,subtitles:re()?re().right-re().left:0,settings:D()?D().right-D().left:0,context:Ve()?Ve().right-Ve().left:0,fullscreen:te()?te().right-te().left:0,chromecast:Qe()?Qe().right-Qe().left:0,additionalButtons:ie().length?ie().reduce(bt=>[...bt,40],[]):[]})),mn=J(0);Ue(()=>{(!r(mn)||r(mn)<r(Ji).time)&&$t(()=>B(mn,pe(r(Ji).time)))});let jn=J(!1);Ue(()=>{let bt=0;r(un)&&(Wi(p(),"xl")?bt=r(Ji).time:bt=60);let ht=r(Ji).prevButton+r(Ji).playButton+r(Ji).nextButton+r(Ji).seekToInteractiveButton+r(Ji).interactiveGraphButton+r(Ji).liveButton+r(mn)+bt;B(jn,pe(r(Qo)&&r(Tr)>=ht))});let lr=v(()=>r(jn)&&Wi(p(),"m")),Yn=sy(Za,260);Ue(()=>{T(),Q(),Yn(li(),ot,ci,e.showControls)});let Ir=ce();Ue(()=>{W(),Le()&&$t(()=>za(Le(),W(),Lo))});let dr;Ue(()=>{Ne(),$t(()=>jc(ai,Ne(),dr))});function vn(){bs({isAudioDisabled:kt,audioDisabledHintCallback:Ze,isAudioAvailable:Xe(),audioIsNotExistHintCallback:je})&&Oe()}let An=di?St:ze,Go=v(()=>ye()!==null),jo=v(()=>r(Go)?ye():r(Tn)),Zn=v(()=>r(jo)?ct("tooltip_pause"):ct("tooltip_play")),kr=ct("tooltip_episodes"),Er=v(()=>{var bt,ht,to,Bo;return r(kn)?{id:"prevButton",type:"desktop-control-panel-left",weight:is.prevButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:po.bind(null,!0)},tooltipEnabled:!((ht=(bt=G.callbacks)==null?void 0:bt.uiInfo)!=null&&ht.onPrevButtonMouseEnter)&&!((Bo=(to=G.callbacks)==null?void 0:to.uiInfo)!=null&&Bo.onPrevButtonMouseLeave),mouseEnter:()=>{var io,ii,Ni;(Ni=(ii=(io=G.callbacks)==null?void 0:io.uiInfo)==null?void 0:ii.onPrevButtonMouseEnter)==null||Ni.call(ii,sa(li(),ci,"prevButton",e.showControls))},mouseLeave:()=>{var io,ii,Ni;(Ni=(ii=(io=G.callbacks)==null?void 0:io.uiInfo)==null?void 0:ii.onPrevButtonMouseLeave)==null||Ni.call(ii,sa(li(),ci,"prevButton",e.showControls))},tooltipText:ct("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),cr=v(()=>r(Uo)?{id:"replayButton",type:"desktop-control-panel-left",weight:is.replayButton,buttonComponent:Xa,buttonComponentProps:{disabled:r(qn),click:An},tooltipText:ct("tooltip_restart"),disabled:r(qn)}:void 0),vo=v(()=>r(zo)?{id:"playButton",type:"desktop-control-panel-left",weight:is.playButton,buttonComponent:Ja,buttonComponentProps:{disabled:r(zn),isPlaying:r(Tn),click:ze},tooltipText:r(Zn),disabled:r(zn)}:void 0),Mn=v(()=>{var bt,ht,to,Bo;return r(qo)?{id:"nextButton",type:"desktop-control-panel-left",weight:is.nextButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Vo.bind(null,!0)},tooltipEnabled:!((ht=(bt=G.callbacks)==null?void 0:bt.uiInfo)!=null&&ht.onNextButtonMouseEnter)&&!((Bo=(to=G.callbacks)==null?void 0:to.uiInfo)!=null&&Bo.onNextButtonMouseLeave),mouseEnter:()=>{var io,ii,Ni;(Ni=(ii=(io=G.callbacks)==null?void 0:io.uiInfo)==null?void 0:ii.onNextButtonMouseEnter)==null||Ni.call(ii,sa(li(),ci,"nextButton",e.showControls))},mouseLeave:()=>{var io,ii,Ni;(Ni=(ii=(io=G.callbacks)==null?void 0:io.uiInfo)==null?void 0:ii.onNextButtonMouseLeave)==null||Ni.call(ii,sa(li(),ci,"nextButton",e.showControls))},tooltipText:ct("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Xn=v(()=>di&&r(sr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:is.playPrevChapterButton,buttonComponent:pd,buttonComponentProps:{disabled:r(fo),click:e.playPrevChapter},tooltipText:ct("tooltip_interactive_go_back"),disabledTooltipContent:ct(Vi),disabled:r(fo)}:void 0),Pr=v(()=>di&&r(Io)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:is.seekToInteractiveButton,buttonComponent:md,buttonComponentProps:{disabled:r(Cn),click:e.seekToInteractive},tooltipText:ct("tooltip_interactive_seek"),disabled:r(Cn),disabledTooltipContent:ct(xe())}:void 0),dt=v(()=>di&&r(No)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:is.interactiveGraphButton,buttonComponent:vd,buttonComponentProps:{disabled:r(rr),click:Yi.toggle,graphIsOpened:A()},tooltipText:r(wr)}:void 0),Bt=v(()=>r(Wn)?{id:"liveButton",type:"desktop-control-panel-left",weight:is.liveButton,buttonComponent:gd,buttonComponentProps:{isLiveActive:r(pn),ariaLabel:r(Pn)},tooltipText:r(Pn),disabled:r(pn)&&s()===Ef.PLAYING}:void 0),Ai=v(()=>[r(Er),r(cr),r(vo),r(Mn),r(Xn),r(Pr),r(dt),r(Bt)].filter(bt=>!!bt).sort(Xs)),$e=v(()=>r(cn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ns.vkLogo,buttonComponent:od,buttonComponentProps:{targetUrl:Wt(),logoClickable:e.logoClickable,click:et},tooltipText:r(Kn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Ct=v(()=>r(Wo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ns.autoplayNext,buttonComponent:fd,tooltipText:r(fn)}:void 0),mi=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ns.volume,buttonComponent:of,buttonComponentProps:{click:vn}})),Si=v(()=>r(Ui)?{id:"subtitles",type:"desktop-control-panel-right",weight:ns.subtitles,buttonComponent:Zp,buttonComponentProps:{isSubtitlesEnabled:r(nt),click:at},tooltipText:r(ar)}:void 0),eo=v(()=>r(To)?{id:"settings",type:"desktop-control-panel-right",weight:ns.settings,buttonComponent:Ga,buttonComponentProps:{ref$:Ir},tooltipText:W()?void 0:ct("tooltip_settings_off")}:void 0),pi=v(()=>se.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ns.context,buttonComponent:xf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Do)},className:r(Zi)?"":"out-of-view",tooltipText:r(Do)}:void 0),Ie=v(()=>r(Ko)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ns.fullscreen,buttonComponent:id,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Cr)}:void 0),Et=v(()=>r(En)?{id:"chromecast",type:"desktop-control-panel-right",weight:ns.chromecast,buttonComponent:nd,buttonComponentProps:{state:$(),click:dn},tooltipText:r(Qn)}:void 0),jt=v(()=>[r($e),r(Ct),r(mi),r(Si),r(eo),r(pi),r(Ie),r(Et),...ie()].filter(bt=>!!bt).sort(Xs));var yi=ay(),ei=ue(yi);let Ar;var Qi=h(ei);let Mr=v(()=>!r(ki));na(Qi,{get isHidden(){return r(Mr)},get isAds(){return It()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ci.timeline},set ref(bt){ci.timeline=bt}});var Ss=M(Qi,2),Yo=h(Ss),va=h(Yo);Ci(va,17,()=>r(Ai),bt=>bt.id,(bt,ht)=>{Yc(bt,{get buttonComponent(){return r(ht).buttonComponent},get buttonComponentProps(){return r(ht).buttonComponentProps},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ht).disabled},get className(){return r(ht).className},get tooltipEnabled(){return r(ht).tooltipEnabled},get mouseEnter(){return r(ht).mouseEnter},get mouseLeave(){return r(ht).mouseLeave},get ref(){return ci[r(ht).id]},set ref(to){ci[r(ht).id]=to}})});var Cs=M(va,2);{var ol=bt=>{let ht=v(()=>It()?De():Ye()),to=v(()=>It()?it():vt());ed(bt,{isMobile:!1,get showDuration(){return r(lr)},get position(){return r(ht)},get duration(){return r(to)},get ref(){return ci.time},set ref(Bo){ci.time=Bo}})};R(Cs,bt=>{r(Qo)&&bt(ol)})}var ga=M(Cs,2);let nl=v(()=>!r(un));Mo(ga,{className:"w-max",get disabled(){return r(nl)},tooltipContent:kr,get ref(){return ci.episodes},set ref(bt){ci.episodes=bt},children:(bt,ht)=>{var to=Fe(),Bo=ue(to);{var io=ii=>{sd(ii,{get position(){return Ye()},get duration(){return vt()},timeCodes:gt})};R(Bo,ii=>{r(un)&&ii(io)})}b(bt,to)},$$slots:{default:!0}}),g(Yo);var Ts=M(Yo,2);Ci(Ts,21,()=>r(jt),bt=>bt.id,(bt,ht)=>{var to=Fe(),Bo=ue(to);{var io=Ni=>{Yc(Ni,{get buttonComponent(){return r(ht).buttonComponent},get buttonComponentProps(){return r(ht).buttonComponentProps},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ht).disabled},get className(){return r(ht).className},get ref(){return ci[r(ht).id]},set ref(rs){ci[r(ht).id]=rs}})},ii=Ni=>{let rs=v(()=>!!r(ht).disabled);kf(Ni,{get id(){return r(ht).id},get testId(){return r(ht).testId},get icon(){return r(ht).icon},get ariaLabel(){return r(ht).ariaLabel},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(rs)},get onClick(){return r(ht).onClick},get ref(){return ci[r(ht).id]},set ref(sl){ci[r(ht).id]=sl}})};R(Bo,Ni=>{Qh(r(ht))?Ni(io):Ni(ii,!1)})}b(bt,to)}),g(Ts),g(Ss),pt(Ss,bt=>ft(bt),()=>ft()),g(ei),pt(ei,bt=>Je(bt),()=>Je());var rl=M(ei,2);{var ha=bt=>{cd(bt,{get ref(){return ci.interactiveTimeIndicator},set ref(ht){ci.interactiveTimeIndicator=ht}})};R(rl,bt=>{wn&&bt(ha)})}k(bt=>Ar=ee(ei,1,"wrapper-bottom svelte-1iedtj3",null,Ar,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Dr(Yo,"clientWidth",bt=>B(Tr,bt)),b(t,yi),z(),o()}import{ChromecastState as Yh,PlaybackState as Zh}from"@vkontakte/videoplayer-core/es2018";import{noop as jh}from"@vkontakte/videoplayer-shared/es2018";var dy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),cy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),uy={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 Af(t,e){q(t,uy);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,jh),n=v(()=>o()===jh),a=v(()=>r(n)||i()),s=J(!1),d=()=>{B(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Mt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(p,m)=>{var $=Fe(),u=ue($);{var _=y=>{var C=dy();b(y,C)},w=y=>{var C=cy();k(()=>He(C,"src",e.iconUrl)),xt("error",C,d),Fs(C),b(y,C)};R(u,y=>{r(s)?y(_):y(w,!1)})}b(p,$)},$$slots:{default:!0}})}var py=be('<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 Mf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=py();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}import{noop as fy}from"@vkontakte/videoplayer-shared/es2018";var my=L('<span class="text svelte-6gmlbk"> </span>'),vy=L('<div aria-hidden="true"><!> <!></div>'),gy={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Zc(t,e){U(e,!0),q(t,gy);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),n=f(e,"click",3,fy),a=f(e,"ref",15,void 0),d=Se().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=v(()=>o()?$s:Mf),m=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Mt(t,{get testId(){return r(m)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref($){a($)},children:($,u)=>{var _=vy();let w=v(()=>r(p)),y;var C=h(_);Ti(C,()=>r(w),(P,A)=>{A(P,{})});var T=M(C,2);{var E=P=>{var A=my(),I=h(A,!0);g(A),k(V=>ge(I,V),[()=>d("mobile_unmute")]),b(P,A)};R(T,P=>{o()&&P(E)})}g(_),k(P=>y=ee(_,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b($,_)},$$slots:{default:!0}}),z()}var hy=be('<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 Lf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=hy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(3),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var _y={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
256
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Vf(t,e){q(t,_y);let i=f(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");Lf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as by}from"@vkontakte/videoplayer-shared/es2018";function Rf(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,by),a=F("menu_pip");Mt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Vf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as $y}from"@vkontakte/videoplayer-shared/es2018";var yy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},xy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},wy=L("<div><!></div>"),Sy=L("<div><!></div>"),Cy=L("<div><!></div>"),Ty=L("<!> <!> <!>",1),Iy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),ky=L("<div><!></div>"),Ey=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Py=L("<!> <!> <div><!></div>",1),Ay=L('<div aria-hidden="true">\xB7</div> <!>',1),My=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ly={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {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-1afsgkw {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-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
255
+ 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 dd(t,e){var le;U(e,!0),K(t,N2);let[i,o]=Ne(),n=()=>S(C,"$isMobile",i),a=()=>S(P,"$areControlsVisible",i),s=()=>S(R,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),l=()=>S(b,"$interactiveControlsOpacity$",i),p=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>S(T,"$isFullscreen",i),y=f(e,"ref",15,void 0),u=X(void 0),$=Ce(),w=no(),{interactiveControlsOpacity$:b}=w,C=$.ui.isMobile,T=$.ui.isFullscreen,I=$.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,P=$.ui.controlsVisible,k=(le=$.callbacks)==null?void 0:le.onInteractiveTimeIndicatorClick,R=$.ui.currentGridType$,W=v(()=>!n()&&a()),Y=v(()=>ys(s(),"s")),F=v(()=>!d()||!!l()||r(W)),Q=X(!1);Fe(()=>{D(Q,pe(r(F)))});let oe=()=>{D(Q,!0)},Z=()=>{var he;re(),(he=r(u))==null||he.addEventListener("animationiteration",oe,{once:!0})},re=()=>{var he;D(Q,!1),(he=r(u))==null||he.removeEventListener("animationiteration",oe)},de=he=>{M.set(he)},Ae=v(()=>p()&&!r(F));Fe(()=>{p()?Z():re()});let Me=()=>{r(F)||(M.set(!0),k==null||k())};wn(()=>{M.clearTimeout(),re()});let ge=()=>{M.set(!1)},se=q("tooltip_interactive_interaction_time_indicator");var Ee=B2();let ne;Ee.__mousemove=[R2],Ee.__click=Me;var V=h(Ee);Eo(V,{tooltipContent:se,get tooltipActive(){return r(Ae)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return y()},set ref(he){y(he)},children:(he,ee)=>{ed(he,{completed:!0})},$$slots:{default:!0}});var xe=A(V,2);let _e;vt(xe,he=>y(he),()=>y());var ze=A(xe,2);let H;vt(ze,he=>D(u,he),()=>r(u)),g(Ee),E((he,ee,De)=>{ne=J(Ee,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,he),_e=J(xe,1,"ref-block svelte-od3veb",null,_e,ee),H=J(ze,1,"pulse svelte-od3veb",null,H,De)},[()=>({mobile:n(),fullscreen:m(),invisible:r(F),"icon-small":r(Y)}),()=>({hidden:r(F)}),()=>({paused:r(Q)})]),Tt("mouseleave",Ee,ge),_(t,Ee),z(),o()}st(["mousemove","click"]);function Zc(t,e){U(e,!0);let i=f(e,"tooltipEnabled",3,!0),o=f(e,"disabled",3,!1),n=f(e,"className",3,void 0),a=f(e,"ref",15);Eo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=Oe();let p=v(()=>e.buttonComponent);var m=ue(l);Ci(m,()=>r(p),(y,u)=>{u(y,Jr(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),_(s,l)},$$slots:{default:!0}}),z()}var os={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var O2=ye('<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 Tf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=O2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}function xs(t,e){let i=f(e,"isPrev",3,!1),o=f(e,"isMobile",3,!1),n=f(e,"width",3,"24"),a=f(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");Tf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var H2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),F2=L("<!> <!>",1),U2={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 sa(t,e){U(e,!0),K(t,U2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Ce().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Vt(t,{get className(){return r(p)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(m){i(m)},children:(m,y)=>{var u=F2(),$=ue(u);{var w=T=>{var I=H2();_(T,I)};B($,T=>{o()&&T(w)})}var b=A($,2);let C=v(()=>e.type==="prev");xs(b,{get isMobile(){return o()},get isPrev(){return r(C)}}),_(m,u)},$$slots:{default:!0}}),z()}var z2=ye('<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 cd(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=z2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),_(t,o)}import{noop as q2}from"@vkontakte/videoplayer-shared/es2018";var W2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),K2=L("<!> <div><!></div>",1),Q2={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 tl(t,e){U(e,!0),K(t,Q2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),a=f(e,"className",3,""),s=f(e,"click",3,q2),d=q("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Vt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Nr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var y=K2(),u=ue(y);{var $=T=>{var I=W2();_(T,I)};B(u,T=>{o()&&T($)})}var w=A(u,2);let b;var C=h(w);cd(C,{}),g(w),E(T=>b=J(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),_(p,y)},$$slots:{default:!0}}),z()}var G2=ye('<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 wr(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=G2(),d=h(s);g(s),E(()=>{Be(s,"width",i()),Be(s,"height",o()),Be(s,"viewBox",n()),Be(d,"fill",a())}),_(t,s)}var Y2=ye('<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 ns(t,e){"use strict";let i=f(e,"width",3,"24"),o=f(e,"height",3,"24"),n=f(e,"viewBox",3,"0 0 24 24"),a=f(e,"fill",3,"var(--btn-color)");var s=Y2(),d=h(s);g(s),E(()=>{Be(s,"width",i()),Be(s,"height",o()),Be(s,"viewBox",n()),Be(d,"fill",a())}),_(t,s)}import{noop as j2}from"@vkontakte/videoplayer-shared/es2018";var Z2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),X2=L("<!> <div><!></div>",1),J2={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 il(t,e){U(e,!0),K(t,J2);let[i,o]=Ne(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=no(),s=f(e,"ref",15,void 0),d=f(e,"isMobile",3,!1),l=f(e,"isPlaying",3,!1),p=f(e,"disabled",3,!1),m=f(e,"className",3,""),y=f(e,"click",3,j2),$=Ce().ui.t,{toggle:w}=a,b=v(()=>w),C=v(()=>n()!==null),T=v(()=>r(C)?n():l()),I=v(()=>r(T)?$("tooltip_pause"):$("tooltip_play")),M=v(()=>r(T)?ns:wr),P=v(()=>`${d()?"btn-m--play":""} ${m()}`),k=v(()=>r(C)?r(b):y());Vt(t,{get className(){return r(P)},testId:"btn-play",get click(){return r(k)},get disabled(){return p()},get ariaLabel(){return r(I)},get ariaKeyShortCut(){return Nr.KeyK},get ref(){return s()},set ref(R){s(R)},children:(R,W)=>{var Y=X2();let F=v(()=>r(M));var Q=ue(Y);{var oe=Ae=>{var Me=Z2();_(Ae,Me)};B(Q,Ae=>{d()&&Ae(oe)})}var Z=A(Q,2);let re;var de=h(Z);Ci(de,()=>r(F),(Ae,Me)=>{Me(Ae,{})}),g(Z),E(Ae=>re=J(Z,1,"svelte-1ot3duq",null,re,Ae),[()=>({mobile:d()})]),_(R,Y)},$$slots:{default:!0}}),z(),o()}var ey=ye('<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 If(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ey();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),_(t,o)}function ud(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=q("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{If(d,{})},$$slots:{default:!0}}),z()}var ty=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),iy={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 pd(t,e){U(e,!0),K(t,iy);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Vt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,y)=>{var u=ty(),$=h(u);let w;var b=h($);{var C=I=>{wr(I,{width:"14",height:"14",fill:"#000"})},T=I=>{ns(I,{width:"14",height:"14",fill:"#000"})};B(b,I=>{n()?I(C):I(T,!1)})}g($),g(u),E(I=>w=J($,1,"toggler svelte-et3q1q",null,w,I),[()=>({enabled:n()})]),_(m,u)},$$slots:{default:!0}}),z(),o()}var oy=ye('<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 kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=oy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{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})),_(t,o)}function fd(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=q("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{kf(d,{})},$$slots:{default:!0}}),z()}var ny=ye('<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 Ef(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ny();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),_(t,o)}var ry={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Pf(t,e){K(t,ry);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Ef(t,{get"data-testid"(){return r(o)}})}function md(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"hidden",3,!1),n=f(e,"disabled",3,!1),a=f(e,"graphIsOpened",3,!1),d=Ce().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Vt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,y)=>{let u=v(()=>!!a());Pf(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}import{PlaybackState as Gh}from"@vkontakte/videoplayer-core/es2018";function vd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(p,"$playbackState$",i),a=f(e,"isMobile",3,!1),s=f(e,"isLiveActive",3,!1),d=f(e,"ariaLabel",3,""),l=Ce(),p=l.state.playbackState$,m=l.actions.internal.switchToActiveLive,y=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){m();return}n()===Gh.PAUSED&&y()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),b=v(()=>s()&&n()===Gh.PLAYING);Vt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(b)},get ariaLabel(){return d()},get click(){return r(u)},children:(C,T)=>{Hl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}import{noop as Yh}from"@vkontakte/videoplayer-shared/es2018";var sy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ay=L('<img class="icon" aria-hidden="true">');function aa(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=Oe(),a=ue(n);{var s=l=>{var p=sy();_(l,p)},d=l=>{var p=ay();E(()=>Be(p,"src",e.icon)),Tt("error",p,o),Hs(p),_(l,p)};B(a,l=>{r(i)?l(s):l(d,!1)})}_(t,n)}function Af(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Yh),n=f(e,"ref",15),a=v(()=>o()===Yh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Eo(t,{get disabled(){return r(s)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get ref(){return n()},set ref(l){n(l)},children:(l,p)=>{let m=v(()=>{var y;return(y=e.testId)!=null?y:e.id});Vt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(m)},children:(y,u)=>{aa(y,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var jh=t=>!!t.buttonComponent;var rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var uy=L('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),py={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function Lf(t,e){var Cs,_a;U(e,!0),K(t,py);let[i,o]=Ne(),n=()=>S(j,"$disabledControls$",i),a=()=>S(Mt,"$adPlaybackState",i),s=()=>S(Ze,"$playbackState$",i),d=()=>S(wo,"$currentSubtitle$",i),l=()=>S($i,"$isEnded$",i),p=()=>S(Fn,"$currentGridType$",i),m=()=>S(Jt,"$isLive$",i),y=()=>S(Ii,"$chromecastState$",i),u=()=>S(Mi,"$isPictureInPictureActive",i),$=()=>S(Ni,"$pictureInPictureType$",i),w=()=>S(ji,"$availableSubtitlesList$",i),b=()=>S(Li,"$contextMenuOpenedByKeyboard$",i),C=()=>S(vi,"$showContextMenuBtn$",i),T=()=>S(Zt,"$playerSize",i),I=()=>S(Yt,"$isRewindableLive$",i),M=()=>S(Qe,"$isActiveLive$",i),P=()=>S(Ao,"$graphIsOpened$",i),k=()=>S(jt,"$contextMenuVisible$",i),R=()=>S(ao,"$isFullscreen",i),W=()=>S(Po,"$autoplayNextEnabled",i),Y=()=>S(r(mt),"$prevButton",i),F=()=>S(r(Bt),"$replayButton",i),Q=()=>S(r(ai),"$playButton",i),oe=()=>S(r(ni),"$nextButton",i),Z=()=>S(r(fo),"$playPrevChapterButton",i),re=()=>S(r(To),"$seekToInteractiveButton",i),de=()=>S(r(Io),"$interactiveGraphButton",i),Ae=()=>S(r(Wo),"$liveButton",i),Me=()=>S(r(Ko),"$time",i),ge=()=>S(r(et),"$episodes",i),se=()=>S(r(Pt),"$vkLogo",i),Ee=()=>S(r(mi),"$volume",i),ne=()=>S(r(Fi),"$subtitles",i),V=()=>S(r(Qi),"$settings",i),xe=()=>S(r(vn),"$context",i),_e=()=>S(r(gn),"$fullscreen",i),ze=()=>S(r(Ui),"$chromecast",i),H=()=>S(Zi,"$additionalDesktopControlPanelRightButtons$",i),le=()=>S(Ho,"$isInteractiveTime$",i),he=()=>S(so,"$settingsMenuVisible",i),ee=()=>S(pr,"$settingButtonRef$",i),De=()=>S(si,"$startedByKeyboard$",i),je=()=>S(qt,"$isAudioAvailable$",i),we=()=>S(Rt,"$fakeIsPlaying$",i),Ve=()=>S(Tn,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>S(Xe,"$adPosition",i),Ue=()=>S(tt,"$position$",i),dt=()=>S(fi,"$adDuration",i),ct=()=>S(ht,"$duration$",i),ot=f(e,"playerControlsWrapperRef",15,void 0),wt=f(e,"playerControlsRef",15,void 0),ft=f(e,"isAds",3,!1),zt=f(e,"logoTargetUrl",3,""),ti=f(e,"isOneVideoPlaylist",3,!1),At=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Rt}=no(),O=Ce(),be=no(),te=Ft(),Re=O.actions.internal.toggleMuted,Ye=O.actions.internal.togglePlay,Ke=O.actions.internal.pause,Le=O.actions.internal.toggleSubtitle,nt=(Cs=O.callbacks)==null?void 0:Cs.onAudioDoesNotExistHint,Je=(_a=O.callbacks)==null?void 0:_a.onAudioDisabledHint,ht=O.state.duration$,tt=O.state.positionWithScrubbing$,Ze=O.state.playbackState$,qt=O.state.isAudioAvailable$,_t=O.state.isAudioDisabled,$i=O.state.isEnded$,Jt=O.state.isLive$,Qe=O.state.isActiveLive$,Yt=O.state.isRewindableLive$,{isActive$:Mi,type$:Ni}=be.pictureInPicture$,so=O.ui.settingsMenu.visible$,Ki=O.ui.settingsMenu.openedByBtnKeyboard$,it=O.ui.controls,bt=O.actions.internal.getVideoEpisodes(),Ii=O.state.chromecastState$,ji=O.state.availableSubtitlesList$,wo=O.state.currentSubtitle$,j=it.disabledControls$,jt=O.ui.contextMenu.visible$,vi=O.ui.contextMenu.showContextMenuBtn$,Li=O.ui.contextMenu.openedByBtnKeyboard$,si=O.ui.startedByKeyboard$,ut=O.ui.t,fi=O.ads.duration,Xe=O.ads.position,Mt=O.ads.playbackState,ao=O.ui.isFullscreen,Zt=O.ui.playerSize,Fn=O.ui.currentGridType$,Zi=O.ui.additionalDesktopControlPanelRightButtons$,Po=O.ui.autoplayNextEnabled$,ci=O.actions.internal.getVideoElement,St=O.actions.internal.replayInteractive,Vi=O.actions.internal.prevVideoClick,Oo=O.actions.internal.nextVideoClick,ui=O.state.isInteractive,Ho=O.state.isInteractiveTime$,Di=O.state.showInteractiveGraph,So=O.state.showSeekToInteractive,Oi=O.state.showPlayPrevChapter,Un=O.state.showInteractiveTimeIndicator,lo=O.state.playPrevChapterDisabledTooltip,Tn=be.seekToInteractiveDisabledTooltip$,Ao=be.graphIsOpened$,Mo=te.features.interactiveResponsiveUi,In=v(()=>n().has("EPISODE_BUTTON")),Cr=v(()=>n().has("GRAPH_BUTTON")),lr=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),kn=v(()=>n().has("PLAY_BUTTON")),dn=v(()=>n().has("REPLAY_BUTTON")),zn=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),pt=()=>O.actions.internal.toggleChromecast(),co=v(()=>ft()?a()==="playing":s()===Mf.PLAYING),Fo=v(()=>d().value!=="off"),En=v(()=>l()&&!ft()||ui),Lo=v(()=>Mo?r(En)&&Wi(p(),"m"):r(En)),Uo=v(()=>!l()||ui||ft()),qn=v(()=>Wi(p(),"m")),Vo=v(()=>e.showNextPrevButtons&&Wi(p(),"m")&&!ft()&&e.nextButtonActive),Wn=v(()=>e.showNextPrevButtons&&Wi(p(),"m")&&!ft()&&e.prevButtonActive),cn=v(()=>!ft()&&!!m()),Kn=v(()=>y()!==Zh.NOT_AVAILABLE&&!(u()&&$()===1)&&Wi(p(),"m")&&!ui),zo=v(()=>e.showAutoplayNext&&!ti()&&Wi(p(),"s")),uo=v(()=>w().length>0&&Wi(p(),"m")),wi=v(()=>b()||C()),un=v(()=>Wi(p(),"s")&&!ft()),pn=v(()=>!e.logoHidden&&!ft()),qo=v(()=>te.features.fullscreen&&(e.logoHidden||Wi(p(),Mo?"xs":"s"))&&!(u()&&$()===1)&&(ui?At():!0)),po=v(()=>(!m()||ft())&&!(te.features.interactiveHideTime&&ui)),Pn=v(()=>T().width>100),Co=v(()=>Di&&Wi(p(),"m")),Hi=v(()=>Mo?So&&Wi(p(),"s"):So),dr=v(()=>Mo?Oi&&Wi(p(),"s"):Oi),Ro=v(()=>!ft()&&!m()&&!!(bt!=null&&bt.length)&&r(qn)&&!r(In)),Qn=v(()=>!I()||!!M()),An=v(()=>P()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Gn=v(()=>k()?ut("tooltip_context_menu_close"):ut("tooltip_context_menu_open")),cr=(lt,$t)=>lt?$t&&$t===Mf.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),fn=v(()=>cr(r(Qn),s())),Tr=v(()=>te.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),ur=v(()=>r(Fo)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),Yn=v(()=>R()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),Ir=v(()=>y()===Zh.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),kr=v(()=>W()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),mn=X(0),Kt=pe({}),mt=v(()=>it.prevButton),Bt=v(()=>it.replayButton),ai=v(()=>it.playButton),ni=v(()=>it.nextButton),fo=v(()=>it.playPrevChapterButton),To=v(()=>it.seekToInteractiveButton),Io=v(()=>it.interactiveGraphButton),Wo=v(()=>it.liveButton),Ko=v(()=>it.time),et=v(()=>it.episodes),Pt=v(()=>it.vkLogo),mi=v(()=>it.volume),Fi=v(()=>it.subtitles),Qi=v(()=>it.settings),vn=v(()=>it.context),gn=v(()=>it.fullscreen),Ui=v(()=>it.chromecast),ki=v(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:F()?F().right-F().left:0,playButton:Q()?Q().right-Q().left:0,nextButton:oe()?oe().right-oe().left:0,playPrevChapterButton:Z()?Z().right-Z().left:0,seekToInteractiveButton:re()?re().right-re().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:Ae()?Ae().right-Ae().left:0,time:Me()?Me().right-Me().left:0,episodes:ge()?ge().right-ge().left:0,vkLogo:se()?se().right-se().left:0,volume:Ee()?Ee().right-Ee().left:0,subtitles:ne()?ne().right-ne().left:0,settings:V()?V().right-V().left:0,context:xe()?xe().right-xe().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:ze()?ze().right-ze().left:0,additionalButtons:H().length?H().reduce(lt=>[...lt,40],[]):[]})),Qo=X(0);Fe(()=>{(!r(Qo)||r(Qo)<r(ki).time)&&xt(()=>D(Qo,pe(r(ki).time)))});let jn=X(!1);Fe(()=>{let lt=0;r(Ro)&&(Wi(p(),"xl")?lt=r(ki).time:lt=60);let $t=r(ki).prevButton+r(ki).playButton+r(ki).nextButton+r(ki).seekToInteractiveButton+r(ki).interactiveGraphButton+r(ki).liveButton+r(Qo)+lt;D(jn,pe(r(po)&&r(mn)>=$t))});let Er=v(()=>r(jn)&&Wi(p(),"m")),Go=cy(el,260);Fe(()=>{T(),le(),Go(ci(),it,Kt,e.showControls)});let pr=ce();Fe(()=>{he(),ee()&&xt(()=>Ka(ee(),he(),Ki))});let Zn;Fe(()=>{De(),xt(()=>jc(si,De(),Zn))});function fr(){bs({isAudioDisabled:_t,isAudioAvailable:je(),isAds:ft(),audioIsNotExistHintCallback:nt,audioDisabledHintCallback:Je})&&Re()}let Xn=ui?St:Ye,Pr=v(()=>we()!==null),Jn=v(()=>r(Pr)?we():r(co)),Yo=v(()=>r(Jn)?ut("tooltip_pause"):ut("tooltip_play")),Ar=ut("tooltip_episodes"),jo=v(()=>{var lt,$t,Gi,Zo;return r(Wn)?{id:"prevButton",type:"desktop-control-panel-left",weight:os.prevButton,buttonComponent:sa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Vi.bind(null,!0)},tooltipEnabled:!(($t=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&$t.onPrevButtonMouseEnter)&&!((Zo=(Gi=O.callbacks)==null?void 0:Gi.uiInfo)!=null&&Zo.onPrevButtonMouseLeave),mouseEnter:()=>{var Yi,di,Ei;(Ei=(di=(Yi=O.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:di.onPrevButtonMouseEnter)==null||Ei.call(di,ra(ci(),Kt,"prevButton",e.showControls))},mouseLeave:()=>{var Yi,di,Ei;(Ei=(di=(Yi=O.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:di.onPrevButtonMouseLeave)==null||Ei.call(di,ra(ci(),Kt,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),mr=v(()=>r(Lo)?{id:"replayButton",type:"desktop-control-panel-left",weight:os.replayButton,buttonComponent:tl,buttonComponentProps:{disabled:r(dn),click:Xn},tooltipText:ut("tooltip_restart"),disabled:r(dn)}:void 0),Fr=v(()=>r(Uo)?{id:"playButton",type:"desktop-control-panel-left",weight:os.playButton,buttonComponent:il,buttonComponentProps:{disabled:r(kn),isPlaying:r(co),click:Ye},tooltipText:r(Yo),disabled:r(kn)}:void 0),at=v(()=>{var lt,$t,Gi,Zo;return r(Vo)?{id:"nextButton",type:"desktop-control-panel-left",weight:os.nextButton,buttonComponent:sa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Oo.bind(null,!0)},tooltipEnabled:!(($t=(lt=O.callbacks)==null?void 0:lt.uiInfo)!=null&&$t.onNextButtonMouseEnter)&&!((Zo=(Gi=O.callbacks)==null?void 0:Gi.uiInfo)!=null&&Zo.onNextButtonMouseLeave),mouseEnter:()=>{var Yi,di,Ei;(Ei=(di=(Yi=O.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:di.onNextButtonMouseEnter)==null||Ei.call(di,ra(ci(),Kt,"nextButton",e.showControls))},mouseLeave:()=>{var Yi,di,Ei;(Ei=(di=(Yi=O.callbacks)==null?void 0:Yi.uiInfo)==null?void 0:di.onNextButtonMouseLeave)==null||Ei.call(di,ra(ci(),Kt,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Wt=v(()=>ui&&r(dr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:os.playPrevChapterButton,buttonComponent:ud,buttonComponentProps:{disabled:r(zn),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(lo),disabled:r(zn)}:void 0),ii=v(()=>ui&&r(Hi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:os.seekToInteractiveButton,buttonComponent:fd,buttonComponentProps:{disabled:r(lr),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:r(lr),disabledTooltipContent:ut(Ve())}:void 0),mo=v(()=>ui&&r(Co)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:os.interactiveGraphButton,buttonComponent:md,buttonComponentProps:{disabled:r(Cr),click:Ao.toggle,graphIsOpened:P()},tooltipText:r(An)}:void 0),hn=v(()=>r(cn)?{id:"liveButton",type:"desktop-control-panel-left",weight:os.liveButton,buttonComponent:vd,buttonComponentProps:{isLiveActive:r(Qn),ariaLabel:r(fn)},tooltipText:r(fn),disabled:r(Qn)&&s()===Mf.PLAYING}:void 0),er=v(()=>[r(jo),r(mr),r(Fr),r(at),r(Wt),r(ii),r(mo),r(hn)].filter(lt=>!!lt).sort(Zs)),_n=v(()=>r(pn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:rs.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:Ke},tooltipText:r(Tr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Mn=v(()=>r(zo)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:rs.autoplayNext,buttonComponent:pd,tooltipText:r(kr)}:void 0),yi=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:rs.volume,buttonComponent:sf,buttonComponentProps:{click:fr,isAds:ft()}})),fe=v(()=>r(uo)?{id:"subtitles",type:"desktop-control-panel-right",weight:rs.subtitles,buttonComponent:ef,buttonComponentProps:{isSubtitlesEnabled:r(Fo),click:Le},tooltipText:r(ur)}:void 0),yt=v(()=>r(un)?{id:"settings",type:"desktop-control-panel-right",weight:rs.settings,buttonComponent:Za,buttonComponentProps:{ref$:pr},tooltipText:he()?void 0:ut("tooltip_settings_off")}:void 0),li=v(()=>te.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:rs.context,buttonComponent:Cf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:ut("aria_label_context_menu")},className:r(wi)?"":"out-of-view",tooltipText:r(Gn)}:void 0),pi=v(()=>r(qo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:rs.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Yn)}:void 0),xi=v(()=>r(Kn)?{id:"chromecast",type:"desktop-control-panel-right",weight:rs.chromecast,buttonComponent:od,buttonComponentProps:{state:y(),click:pt},tooltipText:r(Ir)}:void 0),He=v(()=>[r(_n),r(Mn),r(yi),r(fe),r(yt),r(li),r(pi),r(xi),...H()].filter(lt=>!!lt).sort(Zs));var Lt=uy(),oi=ue(Lt);let Xi;var vo=h(oi);let Ur=v(()=>!r(Pn));oa(vo,{get isHidden(){return r(Ur)},get isAds(){return ft()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return Kt.timeline},set ref(lt){Kt.timeline=lt}});var Ri=A(vo,2),tr=h(Ri),Ss=h(tr);Si(Ss,17,()=>r(er),lt=>lt.id,(lt,$t)=>{Zc(lt,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get tooltipEnabled(){return r($t).tooltipEnabled},get mouseEnter(){return r($t).mouseEnter},get mouseLeave(){return r($t).mouseLeave},get ref(){return Kt[r($t).id]},set ref(Gi){Kt[r($t).id]=Gi}})});var ir=A(Ss,2);{var ma=lt=>{let $t=v(()=>ft()?Ie():Ue()),Gi=v(()=>ft()?dt():ct());Jl(lt,{isMobile:!1,get showDuration(){return r(Er)},get position(){return r($t)},get duration(){return r(Gi)},get ref(){return Kt.time},set ref(Zo){Kt.time=Zo}})};B(ir,lt=>{r(po)&&lt(ma)})}var sl=A(ir,2);let va=v(()=>!r(Ro));Eo(sl,{className:"w-max",get disabled(){return r(va)},tooltipContent:Ar,get ref(){return Kt.episodes},set ref(lt){Kt.episodes=lt},children:(lt,$t)=>{var Gi=Oe(),Zo=ue(Gi);{var Yi=di=>{rd(di,{get position(){return Ue()},get duration(){return ct()},timeCodes:bt})};B(Zo,di=>{r(Ro)&&di(Yi)})}_(lt,Gi)},$$slots:{default:!0}}),g(tr);var ga=A(tr,2);Si(ga,21,()=>r(He),lt=>lt.id,(lt,$t)=>{var Gi=Oe(),Zo=ue(Gi);{var Yi=Ei=>{Zc(Ei,{get buttonComponent(){return r($t).buttonComponent},get buttonComponentProps(){return r($t).buttonComponentProps},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r($t).disabled},get className(){return r($t).className},get ref(){return Kt[r($t).id]},set ref(Ts){Kt[r($t).id]=Ts}})},di=Ei=>{let Ts=v(()=>!!r($t).disabled);Af(Ei,{get id(){return r($t).id},get testId(){return r($t).testId},get icon(){return r($t).icon},get ariaLabel(){return r($t).ariaLabel},get tooltipText(){return r($t).tooltipText},get disabledTooltipContent(){return r($t).disabledTooltipContent},get disabled(){return r(Ts)},get onClick(){return r($t).onClick},get ref(){return Kt[r($t).id]},set ref(ba){Kt[r($t).id]=ba}})};B(Zo,Ei=>{jh(r($t))?Ei(Yi):Ei(di,!1)})}_(lt,Gi)}),g(ga),g(Ri),vt(Ri,lt=>wt(lt),()=>wt()),g(oi),vt(oi,lt=>ot(lt),()=>ot());var ha=A(oi,2);{var al=lt=>{dd(lt,{get ref(){return Kt.interactiveTimeIndicator},set ref($t){Kt.interactiveTimeIndicator=$t}})};B(ha,lt=>{Un&&lt(al)})}E(lt=>Xi=J(oi,1,"wrapper-bottom svelte-f6e8ix",null,Xi,lt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Br(tr,"clientWidth",lt=>D(mn,lt)),_(t,Lt),z(),o()}import{ChromecastState as Jh,PlaybackState as e1}from"@vkontakte/videoplayer-core/es2018";import{noop as Xh}from"@vkontakte/videoplayer-shared/es2018";var fy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),my=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),vy={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 Vf(t,e){K(t,vy);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Xh),n=v(()=>o()===Xh),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Vt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(p,m)=>{var y=Oe(),u=ue(y);{var $=b=>{var C=fy();_(b,C)},w=b=>{var C=my();E(()=>Be(C,"src",e.iconUrl)),Tt("error",C,d),Hs(C),_(b,C)};B(u,b=>{r(s)?b($):b(w,!1)})}_(p,y)},$$slots:{default:!0}})}var gy=ye('<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 Rf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=gy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),_(t,o)}import{noop as hy}from"@vkontakte/videoplayer-shared/es2018";var _y=L('<span class="text svelte-6gmlbk"> </span>'),by=L('<div aria-hidden="true"><!> <!></div>'),$y={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Xc(t,e){U(e,!0),K(t,$y);let i=f(e,"expanded",3,!1),o=f(e,"click",3,hy),n=f(e,"ref",15,void 0),s=Ce().ui.t,d=s("aria_label_volume"),l=v(()=>i()?$s:Rf),p=v(()=>i()?"btn-mobile-unmuted":"btn-mobile-muted");Vt(t,{get testId(){return r(p)},get click(){return o()},ariaLabel:d,role:"switch",get ref(){return n()},set ref(m){n(m)},children:(m,y)=>{var u=by();let $=v(()=>r(l)),w;var b=h(u);Ci(b,()=>r($),(I,M)=>{M(I,{})});var C=A(b,2);{var T=I=>{var M=_y(),P=h(M,!0);g(M),E(k=>me(P,k),[()=>s("mobile_unmute")]),_(I,M)};B(C,I=>{i()&&I(T)})}g(u),E(I=>w=J(u,1,"container svelte-6gmlbk",null,w,I),[()=>({expanded:i()})]),_(m,u)},$$slots:{default:!0}}),z()}var yy=ye('<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 Bf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=yy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(3),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),_(t,o)}var xy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
256
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Nf(t,e){K(t,xy);let i=f(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");Bf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as wy}from"@vkontakte/videoplayer-shared/es2018";function Df(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,wy),a=q("menu_pip");Vt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Nf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as Sy}from"@vkontakte/videoplayer-shared/es2018";var Cy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Ty=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Iy=L("<div><!></div>"),ky=L("<div><!></div>"),Ey=L("<div><!></div>"),Py=L("<!> <!> <!>",1),Ay=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),My=L("<div><!></div>"),Ly=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Vy=L("<!> <!> <div><!></div>",1),Ry=L('<div aria-hidden="true">\xB7</div> <!>',1),By=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ny={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {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-1afsgkw {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-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
257
257
  .wrapper-middle-left-second.svelte-1afsgkw,
258
258
  .wrapper-middle-right.svelte-1afsgkw {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-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {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;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
259
259
 
@@ -261,7 +261,7 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
261
261
  }
262
262
 
263
263
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
264
- }`};function Nf(t,e){var wi,Gn;U(e,!0),q(t,Ly);let[i,o]=Be(),n=()=>S(uo,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(ri,"$disabledControls$",i),s=()=>S(It,"$playbackState$",i),d=()=>S(Lo,"$adPlaybackState",i),l=()=>S(qt,"$isEnded$",i),p=()=>S(gt,"$playerSize",i),m=()=>S(Oe,"$scrubbingInProgress",i),$=()=>S(ni,"$chromecastState$",i),u=()=>S(et,"$isPictureInPictureActive",i),_=()=>S(at,"$pictureInPictureType$",i),w=()=>S(ze,"$mobileNotReportControlHidden$",i),y=()=>S(vt,"$playerPhase",i),C=()=>S(Ki,"$currentGridType$",i),T=()=>S(ve,"$isLive$",i),E=()=>S(lt,"$settingsMenuVisible",i),P=()=>S(se,"$isRewindableLive$",i),A=()=>S(Te,"$isActiveLive$",i),I=()=>S(Hi,"$isInteractiveTime$",i),V=()=>S(Wt,"$isAudioAvailable$",i),H=()=>S(En,"$settingButtonRef$",i),j=()=>S(Bi,"$startedByKeyboard$",i),O=()=>S(ot,"$isFullscreen",i),X=()=>S(Ze,"$mobileUnmuteButtonVisible",i),ne=()=>S(G,"$muted$",i),Y=()=>S(je,"$mobileUnmuteButtonExpanded",i),fe=()=>S(xi,"$additionalButtons$",i),le=()=>S(Zt,"$crashed$",i),Me=()=>S(wt,"$graphIsOpened$",i),Ae=()=>S(co,"$adPosition",i),me=()=>S(Oi,"$adDuration",i),ae=()=>S(ft,"$position$",i),Pe=()=>S(Je,"$duration$",i),re=f(e,"playerControlsWrapperRef",15,void 0),D=f(e,"playerControlsRef",15,void 0),Ve=f(e,"isAds",3,!1),te=f(e,"logoTargetUrl",3,""),Qe=f(e,"isOneVideoPlaylist",3,!1),ie=f(e,"customFullscreenSupported",3,!0),Q=Se(),W=lo(),Le=Ht(),Ne=Q.actions.internal.toggleMuted,Xe=Q.actions.internal.togglePlay,ye=Q.actions.internal.pause,xe=Q.actions.internal.prevVideoClick,De=Q.actions.internal.nextVideoClick,Ye=(wi=Q.callbacks)==null?void 0:wi.onAudioDoesNotExistHint,it=(Gn=Q.callbacks)==null?void 0:Gn.onAudioDisabledHint,vt=Q.playerPhase,Je=Q.state.duration$,ft=Q.state.positionWithScrubbing$,It=Q.state.playbackState$,Wt=Q.state.isAudioAvailable$,Ft=Q.state.isAudioDisabled,qt=Q.state.isEnded$,ve=Q.state.isLive$,G=Q.state.muted$,Te=Q.state.isActiveLive$,se=Q.state.isRewindableLive$,Oe=Q.ui.scrubbingInProgress,ze=Q.ui.mobileNotReportControlHidden$,{isActive$:et,type$:at}=W.pictureInPicture$,je=Q.ui.mobileUnmuteButtonExpanded,Ze=Q.ui.mobileUnmuteButtonVisible,lt=Q.ui.settingsMenu.visible$,Re=Q.ui.settingsMenu.openedByBtnKeyboard$,_t=Q.ui.controls,qe=Q.actions.internal.getVideoEpisodes(),kt=Q.webApi.pictureInPictureApi,ni=Q.state.chromecastState$,Zt=Q.state.crashed$,ri=_t.disabledControls$,Bi=Q.ui.startedByKeyboard$,Ki=Q.ui.currentGridType$,Oi=Q.ads.duration,co=Q.ads.position,Lo=Q.ads.playbackState,ot=Q.ui.isFullscreen,gt=Q.ui.playerSize,xi=Q.ui.additionalButtonsDeprecated$,Z=Q.actions.internal.getVideoElement,Xt=Q.actions.internal.replayInteractive,si=Q.state.isInteractive,Hi=Q.state.isInteractiveTime$,ti=Q.state.showInteractiveGraph,fi=Q.state.showSeekToInteractive,ai=Q.state.showPlayPrevChapter,ct=Q.state.showInteractiveTimeIndicator,uo=W.seekToInteractiveDisabledTooltip$,wt=W.graphIsOpened$,Ut=v(()=>F(Q.state.playPrevChapterDisabledTooltip)),Jt=v(()=>F(n())),Gi=v(()=>a().has("EPISODE_BUTTON")),Un=v(()=>a().has("GRAPH_BUTTON")),Fi=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),xo=v(()=>a().has("PLAY_BUTTON")),li=v(()=>a().has("REPLAY_BUTTON")),St=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),po=v(()=>s()===Zh.PLAYING),Vo=v(()=>d()==="paused"),di=v(()=>l()&&!Ve()&&!si),wo=v(()=>!l()||Ve()),ji=v(()=>e.showNextPrevButtons&&!Ve()&&e.prevButtonActive),So=v(()=>e.showNextPrevButtons&&!Ve()&&e.nextButtonActive),Ro=v(()=>p().width>300),wn=v(()=>p().width>400),Vi=v(m),Sn=v(()=>$()!==Yh.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!si),Yi=v(()=>y()==="LiveWaitingStart"),Co=v(()=>!!kt&&$()!==Yh.CONNECTED&&!w()&&(_()===1&&r(Yi)||!r(Yi))&&!r(Vi)&&!si),yr=v(()=>!r(Vi)&&Wi(C(),"s")),rr=v(()=>!e.logoHidden&&p().width>350),Cn=v(()=>Le.features.fullscreen&&!(u()&&_()===1)&&(si?ie():!0)&&!r(Vi)),zn=v(()=>(!T()||Ve())&&p().width>260&&!r(Vi)&&!(Le.features.interactiveHideTime&&si)),qn=v(()=>E()||e.showControls),fo=v(()=>!Ve()&&!T()&&!!(qe!=null&&qe.length)&&r(Ro)&&!r(Gi)&&!r(Vi)),dn=v(()=>!P()||!!A()),Tn=v(()=>ti&&Wi(C(),"m")),nt=pe({}),In=$y(Za,260);Ue(()=>{p(),I(),In(Z(),_t,nt,e.showControls)});let Uo=()=>Q.actions.internal.toggleChromecast();function zo(){bs({isAudioDisabled:Ft,audioDisabledHintCallback:it,isAudioAvailable:V(),audioIsNotExistHintCallback:Ye})&&Ne()}async function xr(){kt!=null&&kt.isActive()?await(kt==null?void 0:kt.remove()):await(kt==null?void 0:kt.request())}function qo(){!Ft&&V()&&Ze.set(!1),zo()}let kn=J(""),Wn=(ut,Dt)=>{if(!ut){B(kn,pe(F("tooltip_live")));return}Dt&&Dt===Zh.PAUSED&&B(kn,pe(F("tooltip_play")))};Ue(()=>{Wn(r(dn),s())});let En=ce();Ue(()=>{H()&&za(H(),E(),Re)}),Ue(()=>{jc(Bi,j(),nt.playButton)});var Wo=My(),Ui=ue(Wo);{var Zi=ut=>{var Dt=Iy(),Ei=ue(Dt);let Eo;var rt=M(Ei,2);let Lt;var ui=h(rt);{var Ri=dt=>{let Bt=v(()=>V()&&!Ft&&Y());Zc(dt,{get muted(){return ne()},get expanded(){return r(Bt)},click:qo,get ref(){return nt.volume},set ref(Ai){nt.volume=Ai}})};R(ui,dt=>{(!V()||X())&&dt(Ri)})}g(rt);var mo=M(rt,2);let $i;var Pi=h(mo);Ci(Pi,1,fe,({iconUrl:dt,ariaLabel:Bt,testId:Ai,onClick:$e,tooltip:Ct})=>dt,(dt,Bt)=>{let Ai=()=>r(Bt).iconUrl,$e=()=>r(Bt).ariaLabel,Ct=()=>r(Bt).testId,mi=()=>r(Bt).onClick,Si=()=>r(Bt).tooltip,eo=v(()=>{var pi;return(pi=$e())!=null?pi:Si()});Af(dt,{get iconUrl(){return Ai()},get ariaLabel(){return r(eo)},get testId(){return Ct()},get onClick(){return mi()}})});var vi=M(Pi,2);{var Po=dt=>{fd(dt,{get ref(){return nt.autoplayNextToggle},set ref(Bt){nt.autoplayNextToggle=Bt}})};R(vi,dt=>{e.showAutoplayNext&&!Qe()&&dt(Po)})}var Xi=M(vi,2);{var Ji=dt=>{nd(dt,{isMobile:!0,click:Uo,get state(){return $()},get ref(){return nt.chromecast},set ref(Bt){nt.chromecast=Bt}})};R(Xi,dt=>{r(Sn)&&dt(Ji)})}var mn=M(Xi,2);{var jn=dt=>{Rf(dt,{click:xr,get isPictureInPictureActive(){return u()},get ref(){return nt.pip},set ref(Bt){nt.pip=Bt}})};R(mn,dt=>{r(Co)&&dt(jn)})}var lr=M(mn,2);{var Yn=dt=>{Ga(dt,{ref$:En})};R(lr,dt=>{le()&&dt(Yn)})}var Ir=M(lr,2);{var dr=dt=>{od(dt,{click:ye,get targetUrl(){return te()},get logoClickable(){return e.logoClickable},get ref(){return nt.vkLogo},set ref(Bt){nt.vkLogo=Bt}})};R(Ir,dt=>{r(rr)&&dt(dr)})}g(mo);var vn=M(mo,2);let An;var Go=h(vn);{var jo=dt=>{let Bt=v(()=>xe.bind(null,!0));aa(dt,{get click(){return r(Bt)},type:"prev",isMobile:!0,get ref(){return nt.prevButton},set ref(Ai){nt.prevButton=Ai}})};R(Go,dt=>{r(ji)&&dt(jo)})}var Zn=M(Go,2);{var kr=dt=>{Ja(dt,{get disabled(){return r(xo)},click:Xe,isMobile:!0,get isPlaying(){return r(po)},get ref(){return nt.playButton},set ref(Bt){nt.playButton=Bt}})};R(Zn,dt=>{r(wo)&&dt(kr)})}var Er=M(Zn,2);{var cr=dt=>{Xa(dt,{get disabled(){return r(li)},click:Xe,isMobile:!0,get ref(){return nt.replayButton},set ref(Bt){nt.replayButton=Bt}})};R(Er,dt=>{r(di)&&dt(cr)})}var vo=M(Er,2);{var Mn=dt=>{let Bt=v(()=>De.bind(null,!0));aa(dt,{get click(){return r(Bt)},type:"next",isMobile:!0,get ref(){return nt.nextButton},set ref(Ai){nt.nextButton=Ai}})};R(vo,dt=>{r(So)&&dt(Mn)})}g(vn);var Xn=M(vn,2);{var Pr=dt=>{var Bt=Ty(),Ai=ue(Bt);{var $e=pi=>{var Ie=wy();let Et;Ie.__click=[yy,St,e,Ut];var jt=h(Ie);let yi=v(()=>!e.showControls);pd(jt,{get hidden(){return r(yi)},get disabled(){return r(St)},get click(){return e.playPrevChapter},get ref(){return nt.playPrevChapterButton},set ref(ei){nt.playPrevChapterButton=ei}}),g(Ie),k(ei=>Et=ee(Ie,1,"wrapper-middle-left svelte-1afsgkw",null,Et,ei),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(pi,Ie)};R(Ai,pi=>{ai&&pi($e)})}var Ct=M(Ai,2);{var mi=pi=>{var Ie=Sy();let Et;var jt=h(Ie);let yi=v(()=>!e.showControls&&!Me());vd(jt,{get hidden(){return r(yi)},get disabled(){return r(Un)},get click(){return wt.toggle},get graphIsOpened(){return Me()},get ref(){return nt.interactiveGraphButton},set ref(ei){nt.interactiveGraphButton=ei}}),g(Ie),k(ei=>Et=ee(Ie,1,Pl(ai?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Et,ei),[()=>({fullscreen:O(),hidden:!e.showControls&&!Me()})]),b(pi,Ie)};R(Ct,pi=>{r(Tn)&&pi(mi)})}var Si=M(Ct,2);{var eo=pi=>{var Ie=Cy();let Et;Ie.__click=[xy,Fi,e,Jt];var jt=h(Ie);let yi=v(()=>!e.showControls);md(jt,{get hidden(){return r(yi)},get disabled(){return r(Fi)},get click(){return e.seekToInteractive},get ref(){return nt.seekToInteractiveButton},set ref(ei){nt.seekToInteractiveButton=ei}}),g(Ie),k(ei=>Et=ee(Ie,1,"wrapper-middle-right svelte-1afsgkw",null,Et,ei),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(pi,Ie)};R(Si,pi=>{fi&&pi(eo)})}b(dt,Bt)};R(Xn,dt=>{si&&!m()&&dt(Pr)})}k((dt,Bt,Ai,$e)=>{Eo=ee(Ei,1,"overlay-mobile svelte-1afsgkw",null,Eo,dt),Lt=ee(rt,1,"wrapper-top-left svelte-1afsgkw",null,Lt,Bt),$i=ee(mo,1,"wrapper-top-right svelte-1afsgkw",null,$i,Ai),An=ee(vn,1,"wrapper-middle svelte-1afsgkw",null,An,$e)},[()=>({hidden:!r(qn)}),()=>({hidden:!e.showControls,fullscreen:O()}),()=>({hidden:!e.showControls&&!w(),fullscreen:O()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(ut,Dt)};R(Ui,ut=>{Ve()||ut(Zi)})}var To=M(Ui,2);{var cn=ut=>{var Dt=Py(),Ei=ue(Dt);{var Eo=$i=>{var Pi=ky();let vi;var Po=h(Pi);Zc(Po,{get muted(){return ne()},expanded:!1,click:qo,get ref(){return nt.volume},set ref(Xi){nt.volume=Xi}}),g(Pi),k(Xi=>vi=ee(Pi,1,"wrapper-top-right svelte-1afsgkw",null,vi,Xi),[()=>({fullscreen:O()})]),b($i,Pi)};R(Ei,$i=>{X()&&$i(Eo)})}var rt=M(Ei,2);{var Lt=$i=>{var Pi=Ey(),vi=h(Pi);let Po=v(()=>!r(Vo));Ja(vi,{get disabled(){return r(xo)},click:Xe,isMobile:!0,get isPlaying(){return r(Po)},get ref(){return nt.playButton},set ref(Xi){nt.playButton=Xi}}),g(Pi),b($i,Pi)};R(rt,$i=>{r(Vo)&&$i(Lt)})}var ui=M(rt,2);let Ri;var mo=h(ui);rd(mo,{get position(){return Ae()},get duration(){return me()}}),g(ui),k($i=>Ri=ee(ui,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Ri,$i),[()=>({fullscreen:O()})]),b(ut,Dt)};R(To,ut=>{Ve()&&d()!=="inactive"&&ut(cn)})}var Ko=M(To,2);let Qo;var ki=h(Ko);let No;var Io=h(ki);ee(Io,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var sr=h(Io);{var un=ut=>{Mo(ut,{get disabled(){return r(li)},get ref(){return nt.replayButton},set ref(Dt){nt.replayButton=Dt},children:(Dt,Ei)=>{Xa(Dt,{get disabled(){return r(li)},click:Xt})},$$slots:{default:!0}})};R(sr,ut=>{si&&ut(un)})}var pn=M(sr,2);{var wr=ut=>{Mo(ut,{get ref(){return nt.liveButton},set ref(Dt){nt.liveButton=Dt},children:(Dt,Ei)=>{gd(Dt,{get isLiveActive(){return r(dn)},isMobile:!0,get ariaLabel(){return r(kn)}})},$$slots:{default:!0}})};R(pn,ut=>{!Ve()&&T()&&ut(wr)})}var Do=M(pn,2);{var Sr=ut=>{let Dt=v(()=>Ve()?Ae():ae()),Ei=v(()=>Ve()?me():Pe());ed(ut,{get showDuration(){return r(wn)},get position(){return r(Dt)},get duration(){return r(Ei)},isMobile:!0,get ref(){return nt.time},set ref(Eo){nt.time=Eo}})};R(Do,ut=>{r(zn)&&ut(Sr)})}var Pn=M(Do,2);let Kn=v(()=>!r(fo));Mo(Pn,{className:"w-max",get disabled(){return r(Kn)},get ref(){return nt.episodes},set ref(ut){nt.episodes=ut},children:(ut,Dt)=>{var Ei=Fe(),Eo=ue(Ei);{var rt=Lt=>{var ui=Ay(),Ri=M(ue(ui),2);sd(Ri,{get position(){return ae()},get duration(){return Pe()},timeCodes:qe}),b(Lt,ui)};R(Eo,Lt=>{r(fo)&&Lt(rt)})}b(ut,Ei)},$$slots:{default:!0}});var ar=M(Pn,2);{var Cr=ut=>{Mo(ut,{get ref(){return nt.settings},set ref(Dt){nt.settings=Dt},children:(Dt,Ei)=>{Ga(Dt,{ref$:En})},$$slots:{default:!0}})};R(ar,ut=>{r(yr)&&ut(Cr)})}var Qn=M(ar,2);{var fn=ut=>{Mo(ut,{get ref(){return nt.fullscreen},set ref(Dt){nt.fullscreen=Dt},children:(Dt,Ei)=>{id(Dt,{get click(){return e.toggleFullscreen},get isFullscreen(){return O()}})},$$slots:{default:!0}})};R(Qn,ut=>{r(Cn)&&ut(fn)})}g(Io),pt(Io,ut=>D(ut),()=>D());var Tr=M(Io,2);na(Tr,{get isAds(){return Ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return nt.timeline},set ref(ut){nt.timeline=ut}}),g(ki),g(Ko),pt(Ko,ut=>re(ut),()=>re());var ci=M(Ko,2);{var ko=ut=>{cd(ut,{get ref(){return nt.interactiveTimeIndicator},set ref(Dt){nt.interactiveTimeIndicator=Dt}})};R(ci,ut=>{ct&&ut(ko)})}k((ut,Dt)=>{Qo=ee(Ko,1,"wrapper-bottom svelte-1afsgkw",null,Qo,ut),No=ee(ki,1,"controls-wrapper svelte-1afsgkw",null,No,Dt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:O()})]),b(t,Wo),z(),o()}st(["click"]);function _d(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(T,"$isMobile",i),a=f(e,"bottomNoSmooth",3,!1),s=f(e,"playerControlsWrapperRef",15,void 0),d=f(e,"playerControlsRef",15,void 0),l=f(e,"isAds",3,!1),p=f(e,"logoTargetUrl",3,""),m=f(e,"showAutoplayNext",3,!1),$=f(e,"isOneVideoPlaylist",3,!1),u=f(e,"customFullscreenSupported",3,!0),_=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,Xh),y=f(e,"onDisabledSeekToInteractiveClick",3,Xh),T=Se().ui.isMobile,E=J(!1);Ot(()=>{let V=setTimeout(()=>B(E,!0),0);return()=>clearTimeout(V)});var P=Fe(),A=ue(P);{var I=V=>{var H=Fe(),j=ue(H);{var O=ne=>{Nf(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return $()},get customFullscreenSupported(){return u()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Y){s(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},X=ne=>{Pf(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return $()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Y){s(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};R(j,ne=>{n()?ne(O):ne(X,!1)})}b(V,H)};R(A,V=>{r(E)&&V(I)})}b(t,P),z(),o()}var Vy=be('<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 Df(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function Bf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Df(t,{get style(){return r(o)}})}var Ry=be('<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 Of(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var Ny=be('<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 Hf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function Xc(t,e){let i=f(e,"isOff",3,!1);var o=Fe(),n=ue(o);{var a=d=>{Hf(d,{})},s=d=>{Of(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Dy=be('<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 Ff(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function Uf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Ff(t,{get style(){return r(o)}})}var By=be('<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 zf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(2),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function qf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);zf(t,{get style(){return r(o)}})}var Oy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Hy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Fy=L("<div><!></div>"),Uy={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;
264
+ }`};function Of(t,e){var mn,Kt;U(e,!0),K(t,Ny);let[i,o]=Ne(),n=()=>S(si,"$seekToInteractiveDisabledTooltip$",i),a=()=>S($i,"$disabledControls$",i),s=()=>S(wt,"$playbackState$",i),d=()=>S(Ni,"$adPlaybackState",i),l=()=>S(ti,"$isEnded$",i),p=()=>S(Ki,"$playerSize",i),m=()=>S(be,"$scrubbingInProgress",i),y=()=>S(qt,"$chromecastState$",i),u=()=>S(Re,"$isPictureInPictureActive",i),$=()=>S(Ye,"$pictureInPictureType$",i),w=()=>S(te,"$mobileNotReportControlHidden$",i),b=()=>S(dt,"$playerPhase",i),C=()=>S(Qe,"$currentGridType$",i),T=()=>S(At,"$isLive$",i),I=()=>S(nt,"$settingsMenuVisible",i),M=()=>S(O,"$isRewindableLive$",i),P=()=>S(Rt,"$isActiveLive$",i),k=()=>S(wo,"$isInteractiveTime$",i),R=()=>S(ft,"$isAudioAvailable$",i),W=()=>S(Vo,"$settingButtonRef$",i),Y=()=>S(Jt,"$startedByKeyboard$",i),F=()=>S(so,"$isFullscreen",i),Q=()=>S(Le,"$mobileUnmuteButtonVisible",i),oe=()=>S(Ke,"$mobileUnmuteButtonExpanded",i),Z=()=>S(it,"$additionalButtons$",i),re=()=>S(_t,"$crashed$",i),de=()=>S(ut,"$graphIsOpened$",i),Ae=()=>S(Mi,"$adPosition",i),Me=()=>S(Yt,"$adDuration",i),ge=()=>S(ot,"$position$",i),se=()=>S(ct,"$duration$",i),Ee=f(e,"playerControlsWrapperRef",15,void 0),ne=f(e,"playerControlsRef",15,void 0),V=f(e,"isAds",3,!1),xe=f(e,"logoTargetUrl",3,""),_e=f(e,"isOneVideoPlaylist",3,!1),ze=f(e,"customFullscreenSupported",3,!0),H=Ce(),le=no(),he=Ft(),ee=H.actions.internal.toggleMuted,De=H.actions.internal.togglePlay,je=H.actions.internal.pause,we=H.actions.internal.prevVideoClick,Ve=H.actions.internal.nextVideoClick,Ie=(mn=H.callbacks)==null?void 0:mn.onAudioDoesNotExistHint,Ue=(Kt=H.callbacks)==null?void 0:Kt.onAudioDisabledHint,dt=H.playerPhase,ct=H.state.duration$,ot=H.state.positionWithScrubbing$,wt=H.state.playbackState$,ft=H.state.isAudioAvailable$,zt=H.state.isAudioDisabled,ti=H.state.isEnded$,At=H.state.isLive$,Rt=H.state.isActiveLive$,O=H.state.isRewindableLive$,be=H.ui.scrubbingInProgress,te=H.ui.mobileNotReportControlHidden$,{isActive$:Re,type$:Ye}=le.pictureInPicture$,Ke=H.ui.mobileUnmuteButtonExpanded,Le=H.ui.mobileUnmuteButtonVisible,nt=H.ui.settingsMenu.visible$,Je=H.ui.settingsMenu.openedByBtnKeyboard$,ht=H.ui.controls,tt=H.actions.internal.getVideoEpisodes(),Ze=H.webApi.pictureInPictureApi,qt=H.state.chromecastState$,_t=H.state.crashed$,$i=ht.disabledControls$,Jt=H.ui.startedByKeyboard$,Qe=H.ui.currentGridType$,Yt=H.ads.duration,Mi=H.ads.position,Ni=H.ads.playbackState,so=H.ui.isFullscreen,Ki=H.ui.playerSize,it=H.ui.additionalButtonsDeprecated$,bt=H.actions.internal.getVideoElement,Ii=H.actions.internal.replayInteractive,ji=H.state.isInteractive,wo=H.state.isInteractiveTime$,j=H.state.showInteractiveGraph,jt=H.state.showSeekToInteractive,vi=H.state.showPlayPrevChapter,Li=H.state.showInteractiveTimeIndicator,si=le.seekToInteractiveDisabledTooltip$,ut=le.graphIsOpened$,fi=v(()=>q(H.state.playPrevChapterDisabledTooltip)),Xe=v(()=>q(n())),Mt=v(()=>a().has("EPISODE_BUTTON")),ao=v(()=>a().has("GRAPH_BUTTON")),Zt=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Fn=v(()=>a().has("PLAY_BUTTON")),Zi=v(()=>a().has("REPLAY_BUTTON")),Po=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),ci=v(()=>s()===e1.PLAYING),St=v(()=>d()==="paused"),Vi=v(()=>l()&&!V()&&!ji),Oo=v(()=>!l()||V()),ui=v(()=>e.showNextPrevButtons&&!V()&&e.prevButtonActive),Ho=v(()=>e.showNextPrevButtons&&!V()&&e.nextButtonActive),Di=v(()=>p().width>300),So=v(()=>p().width>400),Oi=v(m),Un=v(()=>y()!==Jh.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!ji),lo=v(()=>b()==="LiveWaitingStart"),Tn=v(()=>!!Ze&&y()!==Jh.CONNECTED&&!w()&&($()===1&&r(lo)||!r(lo))&&!r(Oi)&&!ji),Ao=v(()=>!r(Oi)&&Wi(C(),"s")),Mo=v(()=>!e.logoHidden&&p().width>350),In=v(()=>he.features.fullscreen&&!(u()&&$()===1)&&(ji?ze():!0)&&!r(Oi)),Cr=v(()=>(!T()||V())&&p().width>260&&!r(Oi)&&!(he.features.interactiveHideTime&&ji)),lr=v(()=>I()||e.showControls),kn=v(()=>!V()&&!T()&&!!(tt!=null&&tt.length)&&r(Di)&&!r(Mt)&&!r(Oi)),dn=v(()=>!M()||!!P()),zn=v(()=>j&&Wi(C(),"m")),pt=pe({}),co=Sy(el,260);Fe(()=>{p(),k(),co(bt(),ht,pt,e.showControls)});let Fo=()=>H.actions.internal.toggleChromecast();async function En(){Ze!=null&&Ze.isActive()?await(Ze==null?void 0:Ze.remove()):await(Ze==null?void 0:Ze.request())}function Lo(){(!zt&&R()||V())&&Le.set(!1),bs({isAudioDisabled:zt,audioDisabledHintCallback:Ue,isAudioAvailable:R(),audioIsNotExistHintCallback:Ie,isAds:V()})&&ee()}let Uo=X(""),qn=(mt,Bt)=>{if(!mt){D(Uo,pe(q("tooltip_live")));return}Bt&&Bt===e1.PAUSED&&D(Uo,pe(q("tooltip_play")))};Fe(()=>{qn(r(dn),s())});let Vo=ce();Fe(()=>{W()&&Ka(W(),I(),Je)}),Fe(()=>{jc(Jt,Y(),pt.playButton)});var Wn=By(),cn=ue(Wn);{var Kn=mt=>{var Bt=Ay(),ai=ue(Bt);let ni;var fo=A(ai,2);let To;var Io=h(fo);{var Wo=at=>{let Wt=v(()=>R()&&!zt&&oe());Xc(at,{get expanded(){return r(Wt)},click:Lo,get ref(){return pt.volume},set ref(ii){pt.volume=ii}})};B(Io,at=>{(!R()||Q())&&at(Wo)})}g(fo);var Ko=A(fo,2);let et;var Pt=h(Ko);Si(Pt,1,Z,({iconUrl:at,ariaLabel:Wt,testId:ii,onClick:mo,tooltip:hn})=>at,(at,Wt)=>{let ii=()=>r(Wt).iconUrl,mo=()=>r(Wt).ariaLabel,hn=()=>r(Wt).testId,er=()=>r(Wt).onClick,_n=()=>r(Wt).tooltip,Mn=v(()=>{var yi;return(yi=mo())!=null?yi:_n()});Vf(at,{get iconUrl(){return ii()},get ariaLabel(){return r(Mn)},get testId(){return hn()},get onClick(){return er()}})});var mi=A(Pt,2);{var Fi=at=>{pd(at,{get ref(){return pt.autoplayNextToggle},set ref(Wt){pt.autoplayNextToggle=Wt}})};B(mi,at=>{e.showAutoplayNext&&!_e()&&at(Fi)})}var Qi=A(mi,2);{var vn=at=>{od(at,{isMobile:!0,click:Fo,get state(){return y()},get ref(){return pt.chromecast},set ref(Wt){pt.chromecast=Wt}})};B(Qi,at=>{r(Un)&&at(vn)})}var gn=A(Qi,2);{var Ui=at=>{Df(at,{click:En,get isPictureInPictureActive(){return u()},get ref(){return pt.pip},set ref(Wt){pt.pip=Wt}})};B(gn,at=>{r(Tn)&&at(Ui)})}var ki=A(gn,2);{var Qo=at=>{Za(at,{ref$:Vo})};B(ki,at=>{re()&&at(Qo)})}var jn=A(ki,2);{var Er=at=>{id(at,{click:je,get targetUrl(){return xe()},get logoClickable(){return e.logoClickable},get ref(){return pt.vkLogo},set ref(Wt){pt.vkLogo=Wt}})};B(jn,at=>{r(Mo)&&at(Er)})}g(Ko);var Go=A(Ko,2);let pr;var Zn=h(Go);{var fr=at=>{let Wt=v(()=>we.bind(null,!0));sa(at,{get click(){return r(Wt)},type:"prev",isMobile:!0,get ref(){return pt.prevButton},set ref(ii){pt.prevButton=ii}})};B(Zn,at=>{r(ui)&&at(fr)})}var Xn=A(Zn,2);{var Pr=at=>{il(at,{get disabled(){return r(Fn)},click:De,isMobile:!0,get isPlaying(){return r(ci)},get ref(){return pt.playButton},set ref(Wt){pt.playButton=Wt}})};B(Xn,at=>{r(Oo)&&at(Pr)})}var Jn=A(Xn,2);{var Yo=at=>{tl(at,{get disabled(){return r(Zi)},click:De,isMobile:!0,get ref(){return pt.replayButton},set ref(Wt){pt.replayButton=Wt}})};B(Jn,at=>{r(Vi)&&at(Yo)})}var Ar=A(Jn,2);{var jo=at=>{let Wt=v(()=>Ve.bind(null,!0));sa(at,{get click(){return r(Wt)},type:"next",isMobile:!0,get ref(){return pt.nextButton},set ref(ii){pt.nextButton=ii}})};B(Ar,at=>{r(Ho)&&at(jo)})}g(Go);var mr=A(Go,2);{var Fr=at=>{var Wt=Py(),ii=ue(Wt);{var mo=yi=>{var fe=Iy();let yt;fe.__click=[Cy,Po,e,fi];var li=h(fe);let pi=v(()=>!e.showControls);ud(li,{get hidden(){return r(pi)},get disabled(){return r(Po)},get click(){return e.playPrevChapter},get ref(){return pt.playPrevChapterButton},set ref(xi){pt.playPrevChapterButton=xi}}),g(fe),E(xi=>yt=J(fe,1,"wrapper-middle-left svelte-1afsgkw",null,yt,xi),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(yi,fe)};B(ii,yi=>{vi&&yi(mo)})}var hn=A(ii,2);{var er=yi=>{var fe=ky();let yt;var li=h(fe);let pi=v(()=>!e.showControls&&!de());md(li,{get hidden(){return r(pi)},get disabled(){return r(ao)},get click(){return ut.toggle},get graphIsOpened(){return de()},get ref(){return pt.interactiveGraphButton},set ref(xi){pt.interactiveGraphButton=xi}}),g(fe),E(xi=>yt=J(fe,1,El(vi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",yt,xi),[()=>({fullscreen:F(),hidden:!e.showControls&&!de()})]),_(yi,fe)};B(hn,yi=>{r(zn)&&yi(er)})}var _n=A(hn,2);{var Mn=yi=>{var fe=Ey();let yt;fe.__click=[Ty,Zt,e,Xe];var li=h(fe);let pi=v(()=>!e.showControls);fd(li,{get hidden(){return r(pi)},get disabled(){return r(Zt)},get click(){return e.seekToInteractive},get ref(){return pt.seekToInteractiveButton},set ref(xi){pt.seekToInteractiveButton=xi}}),g(fe),E(xi=>yt=J(fe,1,"wrapper-middle-right svelte-1afsgkw",null,yt,xi),[()=>({fullscreen:F(),hidden:!e.showControls})]),_(yi,fe)};B(_n,yi=>{jt&&yi(Mn)})}_(at,Wt)};B(mr,at=>{ji&&!m()&&at(Fr)})}E((at,Wt,ii,mo)=>{ni=J(ai,1,"overlay-mobile svelte-1afsgkw",null,ni,at),To=J(fo,1,"wrapper-top-left svelte-1afsgkw",null,To,Wt),et=J(Ko,1,"wrapper-top-right svelte-1afsgkw",null,et,ii),pr=J(Go,1,"wrapper-middle svelte-1afsgkw",null,pr,mo)},[()=>({hidden:!r(lr)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),_(mt,Bt)};B(cn,mt=>{V()||mt(Kn)})}var zo=A(cn,2);{var uo=mt=>{var Bt=Vy(),ai=ue(Bt);{var ni=et=>{var Pt=My();let mi;var Fi=h(Pt);Xc(Fi,{expanded:!1,click:Lo,get ref(){return pt.volume},set ref(Qi){pt.volume=Qi}}),g(Pt),E(Qi=>mi=J(Pt,1,"wrapper-top-right svelte-1afsgkw",null,mi,Qi),[()=>({fullscreen:F()})]),_(et,Pt)};B(ai,et=>{Q()&&et(ni)})}var fo=A(ai,2);{var To=et=>{var Pt=Ly(),mi=h(Pt);let Fi=v(()=>!r(St));il(mi,{get disabled(){return r(Fn)},click:De,isMobile:!0,get isPlaying(){return r(Fi)},get ref(){return pt.playButton},set ref(Qi){pt.playButton=Qi}}),g(Pt),_(et,Pt)};B(fo,et=>{r(St)&&et(To)})}var Io=A(fo,2);let Wo;var Ko=h(Io);nd(Ko,{get position(){return Ae()},get duration(){return Me()}}),g(Io),E(et=>Wo=J(Io,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Wo,et),[()=>({fullscreen:F()})]),_(mt,Bt)};B(zo,mt=>{V()&&d()!=="inactive"&&mt(uo)})}var wi=A(zo,2);let un;var pn=h(wi);let qo;var po=h(pn);J(po,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Pn=h(po);{var Co=mt=>{Eo(mt,{get disabled(){return r(Zi)},get ref(){return pt.replayButton},set ref(Bt){pt.replayButton=Bt},children:(Bt,ai)=>{tl(Bt,{get disabled(){return r(Zi)},click:Ii})},$$slots:{default:!0}})};B(Pn,mt=>{ji&&mt(Co)})}var Hi=A(Pn,2);{var dr=mt=>{Eo(mt,{get ref(){return pt.liveButton},set ref(Bt){pt.liveButton=Bt},children:(Bt,ai)=>{vd(Bt,{get isLiveActive(){return r(dn)},isMobile:!0,get ariaLabel(){return r(Uo)}})},$$slots:{default:!0}})};B(Hi,mt=>{!V()&&T()&&mt(dr)})}var Ro=A(Hi,2);{var Qn=mt=>{let Bt=v(()=>V()?Ae():ge()),ai=v(()=>V()?Me():se());Jl(mt,{get showDuration(){return r(So)},get position(){return r(Bt)},get duration(){return r(ai)},isMobile:!0,get ref(){return pt.time},set ref(ni){pt.time=ni}})};B(Ro,mt=>{r(Cr)&&mt(Qn)})}var An=A(Ro,2);let Gn=v(()=>!r(kn));Eo(An,{className:"w-max",get disabled(){return r(Gn)},get ref(){return pt.episodes},set ref(mt){pt.episodes=mt},children:(mt,Bt)=>{var ai=Oe(),ni=ue(ai);{var fo=To=>{var Io=Ry(),Wo=A(ue(Io),2);rd(Wo,{get position(){return ge()},get duration(){return se()},timeCodes:tt}),_(To,Io)};B(ni,To=>{r(kn)&&To(fo)})}_(mt,ai)},$$slots:{default:!0}});var cr=A(An,2);{var fn=mt=>{Eo(mt,{get ref(){return pt.settings},set ref(Bt){pt.settings=Bt},children:(Bt,ai)=>{Za(Bt,{ref$:Vo})},$$slots:{default:!0}})};B(cr,mt=>{r(Ao)&&mt(fn)})}var Tr=A(cr,2);{var ur=mt=>{Eo(mt,{get ref(){return pt.fullscreen},set ref(Bt){pt.fullscreen=Bt},children:(Bt,ai)=>{td(Bt,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};B(Tr,mt=>{r(In)&&mt(ur)})}g(po),vt(po,mt=>ne(mt),()=>ne());var Yn=A(po,2);oa(Yn,{get isAds(){return V()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return pt.timeline},set ref(mt){pt.timeline=mt}}),g(pn),g(wi),vt(wi,mt=>Ee(mt),()=>Ee());var Ir=A(wi,2);{var kr=mt=>{dd(mt,{get ref(){return pt.interactiveTimeIndicator},set ref(Bt){pt.interactiveTimeIndicator=Bt}})};B(Ir,mt=>{Li&&mt(kr)})}E((mt,Bt)=>{un=J(wi,1,"wrapper-bottom svelte-1afsgkw",null,un,mt),qo=J(pn,1,"controls-wrapper svelte-1afsgkw",null,qo,Bt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),_(t,Wn),z(),o()}st(["click"]);function hd(t,e){U(e,!0);let[i,o]=Ne(),n=()=>S(T,"$isMobile",i),a=f(e,"bottomNoSmooth",3,!1),s=f(e,"playerControlsWrapperRef",15,void 0),d=f(e,"playerControlsRef",15,void 0),l=f(e,"isAds",3,!1),p=f(e,"logoTargetUrl",3,""),m=f(e,"showAutoplayNext",3,!1),y=f(e,"isOneVideoPlaylist",3,!1),u=f(e,"customFullscreenSupported",3,!0),$=f(e,"endScreenShown",3,!1),w=f(e,"onDisabledPlayPrevChapterClick",3,t1),b=f(e,"onDisabledSeekToInteractiveClick",3,t1),T=Ce().ui.isMobile,I=X(!1);Ht(()=>{let R=setTimeout(()=>D(I,!0),0);return()=>clearTimeout(R)});var M=Oe(),P=ue(M);{var k=R=>{var W=Oe(),Y=ue(W);{var F=oe=>{Of(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return y()},get customFullscreenSupported(){return u()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return b()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},Q=oe=>{Lf(oe,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return y()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(Z){s(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};B(Y,oe=>{n()?oe(F):oe(Q,!1)})}_(R,W)};B(P,R=>{r(I)&&R(k)})}_(t,M),z(),o()}var Dy=ye('<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 Hf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),_(t,o)}function Ff(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Hf(t,{get style(){return r(o)}})}var Oy=ye('<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 Uf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),_(t,o)}var Hy=ye('<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 zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),_(t,o)}function Jc(t,e){let i=f(e,"isOff",3,!1);var o=Oe(),n=ue(o);{var a=d=>{zf(d,{})},s=d=>{Uf(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}_(t,o)}var Fy=ye('<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 qf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),_(t,o)}function Wf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);qf(t,{get style(){return r(o)}})}var Uy=ye('<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 Kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(2),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),_(t,o)}function Qf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Kf(t,{get style(){return r(o)}})}var zy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),qy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Wy=L("<div><!></div>"),Ky={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;
265
265
  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"],
266
266
  .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"],
267
267
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -276,23 +276,23 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
276
276
  @keyframes svelte-1ad3n06-fadeOut {
277
277
  0% {opacity:1;}
278
278
  100% {opacity:0;}
279
- }`};function Wf(t,e){U(e,!0),q(t,Uy);let[i,o]=Be(),n=()=>S(e.data,"$data",i),s=Se().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),m=v(()=>{var C;return(C=n())==null?void 0:C.type}),$=v(()=>{var C,T;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=Fy();let _;var w=h(u);{var y=C=>{var T=Hy(),E=ue(T),P=h(E);{var A=ie=>{let Q=v(()=>r(m)==="FORWARD_SEEK");Bf(ie,{get reversed(){return r(Q)}})};R(P,ie=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&ie(A)})}var I=M(P,2);{var V=ie=>{os(ie,{})};R(I,ie=>{r(m)==="PAUSE"&&ie(V)})}var H=M(I,2);{var j=ie=>{br(ie,{})};R(H,ie=>{r(m)==="PLAY"&&ie(j)})}var O=M(H,2);{var X=ie=>{ud(ie,{})};R(O,ie=>{r(m)==="REPLAY"&&ie(X)})}var ne=M(O,2);{var Y=ie=>{Xc(ie,{isOff:!0})};R(ne,ie=>{r(m)==="SUBTITLES_OFF"&&ie(Y)})}var fe=M(ne,2);{var le=ie=>{Xc(ie,{})};R(fe,ie=>{r(m)==="SUBTITLES_ON"&&ie(le)})}var Me=M(fe,2);{var Ae=ie=>{let Q=v(()=>r(m)==="RATE_UP");Uf(ie,{get reversed(){return r(Q)}})};R(Me,ie=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&ie(Ae)})}var me=M(Me,2);{var ae=ie=>{let Q=v(()=>r(m)==="EPISODE_NEXT");qf(ie,{get reversed(){return r(Q)}})};R(me,ie=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&ie(ae)})}var Pe=M(me,2);{var re=ie=>{$s(ie,{volume:0})};R(Pe,ie=>{r(m)==="MUTE"&&ie(re)})}var D=M(Pe,2);{var Ve=ie=>{$s(ie,{volume:1})};R(D,ie=>{r(m)==="VOLUME"&&ie(Ve)})}g(E);var te=M(E,2);{var Qe=ie=>{var Q=Oy(),W=h(Q,!0);g(Q),k(()=>ge(W,r($))),b(ie,Q)};R(te,ie=>{r($)&&ie(Qe)})}b(C,T)};R(w,C=>{!r(d)&&r(m)&&C(y)})}g(u),k(C=>_=ee(u,1,"hot-key-helpers-container svelte-1ad3n06",null,_,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(p)})]),b(t,u),z(),o()}var zy=be('<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 Kf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=zy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}var qy=be('<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 Qf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=qy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}function ws(t,e){U(e,!0);let i=f(e,"direction",3,"left"),o=f(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),s=v(()=>(()=>{let $="";return r(a)&&($+="transform: rotate(180deg);"),o()&&($+="color: var(--btn-color, #fff);"),$.length?$:void 0})());var d=Fe(),l=ue(d);{var p=$=>{let u=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Kf($,{get style(){return r(s)},get"data-testid"(){return r(u)}})},m=$=>{let u=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Qf($,{get style(){return r(s)},get"data-testid"(){return r(u)}})};R(l,$=>{r(n)?$(p):$(m,!1)})}b(t,d),z()}var Wy=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},Ky=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Qy=L('<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>'),Gy={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 bd(t,e){U(e,!0),q(t,Gy);let i=f(e,"isShifted",3,!1),o=Se(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),m=F("aria_label_spherical_control");var $=Qy();let u;$.__keydown=[Wy,n,a,s,l,d],$.__keyup=[Ky,n,p],He($,"aria-label",m);var _=h($),w=h(_),y=h(w);y.__mousedown=a,y.__mouseup=p;var C=h(y);ws(C,{direction:"up",useBtnColor:!0}),g(y);var T=M(y,2);T.__mousedown=d,T.__mouseup=p;var E=h(T);ws(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var P=M(w,2),A=h(P);A.__mousedown=l,A.__mouseup=p;var I=h(A);ws(I,{direction:"up",useBtnColor:!0}),g(A);var V=M(A,2);V.__mousedown=s,V.__mouseup=p;var H=h(V);ws(H,{direction:"up",useBtnColor:!0}),g(V),g(P),g(_),g($),k(j=>u=ee($,1,"immersive-controls svelte-1yzc86r",null,u,j),[()=>({"m-shifted":i()})]),xt("mouseleave",y,p),xt("mouseleave",T,p),xt("mouseleave",A,p),xt("mouseleave",V,p),b(t,$),z()}st(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as e1,Subscription as jy,filterChanged as Yy,filter as Zy}from"@vkontakte/videoplayer-shared/es2018";var Jh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Jc=class{constructor(){this.flickeringTimeout=Jh(1e3);this.subscriptions=new jy;this.isAuto=!1;this.isLive=!1;this.captions$=new e1([]);this.captionsPrepared$=new e1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(Zy(()=>this.isEnabled()),Yy()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:a,value:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var Xy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Jy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),e4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),t4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),i4=L("<div><!></div>"),o4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
280
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function da(t,e){U(e,!0),q(t,o4);let[i,o]=Be(),n=()=>S($,"$currentSubtitle$",i),a=()=>S(_,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),l=f(e,"isMobile",3,!1),p=Se(),m=Ht(),$=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,_=p.state.isLive$,w=p.ui.isFullscreen,y=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),E=v(()=>l()&&!s()||r(T)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:r(T)),P=J(null);Ue(()=>{var X,ne,Y;(X=r(P))==null||X.setIsAuto(r(y)),(ne=r(P))==null||ne.setIsLive(r(C)),(Y=r(P))==null||Y.setCaptions(e.captions)});let A=J(pe([[]]));Ot(()=>{B(P,pe(new Jc().subscribe()));let X=r(P).captionsPrepared$.subscribe(ne=>{B(A,pe(ne))});return()=>{var ne;(ne=r(P))==null||ne.destroy(),X.unsubscribe()}}),Ot(()=>{if(r(y)){let X=window.setTimeout(()=>{u.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else u.set(!1)});let I=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=i4();let H;var j=h(V);{var O=X=>{var ne=t4();let Y;var fe=h(ne),le=h(fe);{var Me=me=>{var ae=Xy(),Pe=h(ae),re=h(Pe,!0);g(Pe),g(ae),k(D=>{var Ve;tt(Pe,`font-size: ${(Ve=r(E))!=null?Ve:""}px`),ge(re,D)},[()=>F("subtitles_auto_caption")]),b(me,ae)},Ae=(me,ae)=>{{var Pe=D=>{var Ve=Fe(),te=ue(Ve);Ci(te,17,()=>r(A),kl,(Qe,ie)=>{var Q=Jy(),W=h(Q);Ci(W,21,()=>r(ie),({value:Le,timeAppeared:Ne})=>Ne,(Le,Ne)=>{let Xe=()=>r(Ne).value,ye=()=>r(Ne).timeAppeared;var xe=Fe(),De=ue(xe);{var Ye=it=>{var vt=Nr();k(()=>ge(vt,Xe())),b(it,vt)};R(De,it=>{(!ye()||ye()<=e.position)&&it(Ye)})}b(Le,xe)}),g(W),g(Q),k(()=>{var Le;return tt(W,`font-size: ${(Le=r(E))!=null?Le:""}px`)}),b(Qe,Q)}),b(D,Ve)},re=D=>{var Ve=Fe(),te=ue(Ve);Ci(te,17,()=>e.captions,({value:Qe})=>Qe,(Qe,ie)=>{let Q=()=>r(ie).value;var W=e4(),Le=h(W),Ne=h(Le,!0);g(Le),g(W),k(()=>{var Xe;tt(Le,`font-size: ${(Xe=r(E))!=null?Xe:""}px`),ge(Ne,Q())}),b(Qe,W)}),b(D,Ve)};R(me,D=>{var Ve;r(y)&&((Ve=r(A))!=null&&Ve.length)?D(Pe):D(re,!1)},ae)}};R(le,me=>{r(y)&&d()?me(Me):me(Ae,!1)})}g(fe),g(ne),k(me=>{var ae;Y=ee(ne,1,"subtitles-caption svelte-c2x749",null,Y,me),tt(ne,`--subtitles-caption-margin: ${(ae=r(I))!=null?ae:""}%`)},[()=>({mobile:l()})]),b(X,ne)};R(j,X=>{var ne;(e.captions.length||(ne=r(A))!=null&&ne.length)&&X(O)})}g(V),k(X=>H=ee(V,1,"subtitles-container svelte-c2x749",null,H,X),[()=>({shifted:e.shifted,auto:r(y)&&!r(C)&&!d()})]),b(t,V),z(),o()}var n4=L('<div class="text svelte-raurnb"> </div>'),r4=L('<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>'),s4={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 $d(t,e){U(e,!0),q(t,s4);let i=Ht();var o=r4();let n;var a=M(h(o),2);{var s=d=>{var l=n4(),p=h(l);g(l),k(()=>{var m;return ge(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(m=e.chromecastDeviceName)!=null?m:""}`)}),b(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=ee(o,1,"wrapper svelte-raurnb",null,n,d),tt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),z()}var a4=be('<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 Gf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=a4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{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})),b(t,o)}var l4=L('<div class="container svelte-13zpvm8"><!></div>'),d4={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 yd(t){q(t,d4);var e=l4(),i=h(e);Gf(i,{}),g(e),b(t,e)}var c4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),u4=L("<div><!></div>"),p4={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,
279
+ }`};function Gf(t,e){U(e,!0),K(t,Ky);let[i,o]=Ne(),n=()=>S(e.data,"$data",i),s=Ce().ui.t,d=v(()=>!n()),l=v(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),m=v(()=>{var C;return(C=n())==null?void 0:C.type}),y=v(()=>{var C,T;return(C=n())!=null&&C.t?s(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=Wy();let $;var w=h(u);{var b=C=>{var T=qy(),I=ue(T),M=h(I);{var P=H=>{let le=v(()=>r(m)==="FORWARD_SEEK");Ff(H,{get reversed(){return r(le)}})};B(M,H=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&H(P)})}var k=A(M,2);{var R=H=>{ns(H,{})};B(k,H=>{r(m)==="PAUSE"&&H(R)})}var W=A(k,2);{var Y=H=>{wr(H,{})};B(W,H=>{r(m)==="PLAY"&&H(Y)})}var F=A(W,2);{var Q=H=>{cd(H,{})};B(F,H=>{r(m)==="REPLAY"&&H(Q)})}var oe=A(F,2);{var Z=H=>{Jc(H,{isOff:!0})};B(oe,H=>{r(m)==="SUBTITLES_OFF"&&H(Z)})}var re=A(oe,2);{var de=H=>{Jc(H,{})};B(re,H=>{r(m)==="SUBTITLES_ON"&&H(de)})}var Ae=A(re,2);{var Me=H=>{let le=v(()=>r(m)==="RATE_UP");Wf(H,{get reversed(){return r(le)}})};B(Ae,H=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&H(Me)})}var ge=A(Ae,2);{var se=H=>{let le=v(()=>r(m)==="EPISODE_NEXT");Qf(H,{get reversed(){return r(le)}})};B(ge,H=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&H(se)})}var Ee=A(ge,2);{var ne=H=>{$s(H,{volume:0})};B(Ee,H=>{r(m)==="MUTE"&&H(ne)})}var V=A(Ee,2);{var xe=H=>{$s(H,{volume:1})};B(V,H=>{r(m)==="VOLUME"&&H(xe)})}g(I);var _e=A(I,2);{var ze=H=>{var le=zy(),he=h(le,!0);g(le),E(()=>me(he,r(y))),_(H,le)};B(_e,H=>{r(y)&&H(ze)})}_(C,T)};B(w,C=>{!r(d)&&r(m)&&C(b)})}g(u),E(C=>$=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(p)})]),_(t,u),z(),o()}var Qy=ye('<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 Yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),_(t,o)}var Gy=ye('<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 jf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),_(t,o)}function ws(t,e){U(e,!0);let i=f(e,"direction",3,"left"),o=f(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),s=v(()=>(()=>{let y="";return r(a)&&(y+="transform: rotate(180deg);"),o()&&(y+="color: var(--btn-color, #fff);"),y.length?y:void 0})());var d=Oe(),l=ue(d);{var p=y=>{let u=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Yf(y,{get style(){return r(s)},get"data-testid"(){return r(u)}})},m=y=>{let u=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");jf(y,{get style(){return r(s)},get"data-testid"(){return r(u)}})};B(l,y=>{r(n)?y(p):y(m,!1)})}_(t,d),z()}var Yy=(t,e,i,o,n,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":a();break}},jy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Zy=L('<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>'),Xy={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 _d(t,e){U(e,!0),K(t,Xy);let i=f(e,"isShifted",3,!1),o=Ce(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},l=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),m=q("aria_label_spherical_control");var y=Zy();let u;y.__keydown=[Yy,n,a,s,l,d],y.__keyup=[jy,n,p],Be(y,"aria-label",m);var $=h(y),w=h($),b=h(w);b.__mousedown=a,b.__mouseup=p;var C=h(b);ws(C,{direction:"up",useBtnColor:!0}),g(b);var T=A(b,2);T.__mousedown=d,T.__mouseup=p;var I=h(T);ws(I,{direction:"up",useBtnColor:!0}),g(T),g(w);var M=A(w,2),P=h(M);P.__mousedown=l,P.__mouseup=p;var k=h(P);ws(k,{direction:"up",useBtnColor:!0}),g(P);var R=A(P,2);R.__mousedown=s,R.__mouseup=p;var W=h(R);ws(W,{direction:"up",useBtnColor:!0}),g(R),g(M),g($),g(y),E(Y=>u=J(y,1,"immersive-controls svelte-1yzc86r",null,u,Y),[()=>({"m-shifted":i()})]),Tt("mouseleave",b,p),Tt("mouseleave",T,p),Tt("mouseleave",P,p),Tt("mouseleave",R,p),_(t,y),z()}st(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as o1,Subscription as Jy,filterChanged as e4,filter as t4}from"@vkontakte/videoplayer-shared/es2018";var i1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var eu=class{constructor(){this.flickeringTimeout=i1(1e3);this.subscriptions=new Jy;this.isAuto=!1;this.isLive=!1;this.captions$=new o1([]);this.captionsPrepared$=new o1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(t4(()=>this.isEnabled()),e4()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:a,value:s},d)=>(o&&!d||(a==="timestamp"?n.push({timeAppeared:Number(s),value:""}):n.length===0?n.push({value:String(s)}):n[n.length-1].value=String(s)),n),[])),this.captionsPrepared$.next(i)}};var i4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),o4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),n4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),r4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),s4=L("<div><!></div>"),a4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
280
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function la(t,e){U(e,!0),K(t,a4);let[i,o]=Ne(),n=()=>S(y,"$currentSubtitle$",i),a=()=>S($,"$isLive$",i),s=()=>S(w,"$isFullscreen",i),d=()=>S(u,"$isAutoSubtitleCaptionVisible$",i),l=f(e,"isMobile",3,!1),p=Ce(),m=Ft(),y=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,b=v(()=>!!n().isAuto),C=v(()=>!!a()),T=v(()=>e.playerSize.width*.02),I=v(()=>l()&&!s()||r(T)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:r(T)),M=X(null);Fe(()=>{var Q,oe,Z;(Q=r(M))==null||Q.setIsAuto(r(b)),(oe=r(M))==null||oe.setIsLive(r(C)),(Z=r(M))==null||Z.setCaptions(e.captions)});let P=X(pe([[]]));Ht(()=>{D(M,pe(new eu().subscribe()));let Q=r(M).captionsPrepared$.subscribe(oe=>{D(P,pe(oe))});return()=>{var oe;(oe=r(M))==null||oe.destroy(),Q.unsubscribe()}}),Ht(()=>{if(r(b)){let Q=window.setTimeout(()=>{u.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(Q)}}else u.set(!1)});let k=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=s4();let W;var Y=h(R);{var F=Q=>{var oe=r4();let Z;var re=h(oe),de=h(re);{var Ae=ge=>{var se=i4(),Ee=h(se),ne=h(Ee,!0);g(Ee),g(se),E(V=>{var xe;rt(Ee,`font-size: ${(xe=r(I))!=null?xe:""}px`),me(ne,V)},[()=>q("subtitles_auto_caption")]),_(ge,se)},Me=(ge,se)=>{{var Ee=V=>{var xe=Oe(),_e=ue(xe);Si(_e,17,()=>r(P),Il,(ze,H)=>{var le=o4(),he=h(le);Si(he,21,()=>r(H),({value:ee,timeAppeared:De})=>De,(ee,De)=>{let je=()=>r(De).value,we=()=>r(De).timeAppeared;var Ve=Oe(),Ie=ue(Ve);{var Ue=dt=>{var ct=Rr();E(()=>me(ct,je())),_(dt,ct)};B(Ie,dt=>{(!we()||we()<=e.position)&&dt(Ue)})}_(ee,Ve)}),g(he),g(le),E(()=>{var ee;return rt(he,`font-size: ${(ee=r(I))!=null?ee:""}px`)}),_(ze,le)}),_(V,xe)},ne=V=>{var xe=Oe(),_e=ue(xe);Si(_e,17,()=>e.captions,({value:ze})=>ze,(ze,H)=>{let le=()=>r(H).value;var he=n4(),ee=h(he),De=h(ee,!0);g(ee),g(he),E(()=>{var je;rt(ee,`font-size: ${(je=r(I))!=null?je:""}px`),me(De,le())}),_(ze,he)}),_(V,xe)};B(ge,V=>{var xe;r(b)&&((xe=r(P))!=null&&xe.length)?V(Ee):V(ne,!1)},se)}};B(de,ge=>{r(b)&&d()?ge(Ae):ge(Me,!1)})}g(re),g(oe),E(ge=>{var se;Z=J(oe,1,"subtitles-caption svelte-c2x749",null,Z,ge),rt(oe,`--subtitles-caption-margin: ${(se=r(k))!=null?se:""}%`)},[()=>({mobile:l()})]),_(Q,oe)};B(Y,Q=>{var oe;(e.captions.length||(oe=r(P))!=null&&oe.length)&&Q(F)})}g(R),E(Q=>W=J(R,1,"subtitles-container svelte-c2x749",null,W,Q),[()=>({shifted:e.shifted,auto:r(b)&&!r(C)&&!d()})]),_(t,R),z(),o()}var l4=L('<div class="text svelte-raurnb"> </div>'),d4=L('<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>'),c4={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 bd(t,e){U(e,!0),K(t,c4);let i=Ft();var o=d4();let n;var a=A(h(o),2);{var s=d=>{var l=l4(),p=h(l);g(l),E(()=>{var m;return me(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(m=e.chromecastDeviceName)!=null?m:""}`)}),_(d,l)};B(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),E(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),rt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),_(t,o),z()}var u4=ye('<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 Zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=u4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{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})),_(t,o)}var p4=L('<div class="container svelte-13zpvm8"><!></div>'),f4={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 $d(t){K(t,f4);var e=p4(),i=h(e);Zf(i,{}),g(e),_(t,e)}var m4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),v4=L("<div><!></div>"),g4={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,
281
281
  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,
282
- 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 ca(t,e){U(e,!0),q(t,p4);let i=f(e,"iconVisible",3,!0),o=Se(),n=Ht(),a=o.ui.startedByKeyboard$,s=F("tooltip_play"),d=_=>{var y;let w=_.code;["Enter","Space"].includes(w)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(y=e.startVideo)==null||y.call(e))},l=_=>{var w;_.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=u4();let m;p.__click=l;var $=h(p);{var u=_=>{var w=c4();w.__keydown=d,He(w,"aria-label",s);var y=M(h(w),2);br(y,{}),g(w),b(_,w)};R($,_=>{i()&&_(u)})}return g(p),k(_=>{m=ee(p,1,"container svelte-1ciju45",null,m,_),tt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,p),z({handlePressKey:d,handleClick:l})}st(["click","keydown"]);var f4=L("<div> </div>"),m4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {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(
282
+ 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 da(t,e){U(e,!0),K(t,g4);let i=f(e,"iconVisible",3,!0),o=Ce(),n=Ft(),a=o.ui.startedByKeyboard$,s=q("tooltip_play"),d=$=>{var b;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(b=e.startVideo)==null||b.call(e))},l=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=v4();let m;p.__click=l;var y=h(p);{var u=$=>{var w=m4();w.__keydown=d,Be(w,"aria-label",s);var b=A(h(w),2);wr(b,{}),g(w),_($,w)};B(y,$=>{i()&&$(u)})}return g(p),E($=>{m=J(p,1,"container svelte-1ciju45",null,m,$),rt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),_(t,p),z({handlePressKey:d,handleClick:l})}st(["click","keydown"]);var h4=L('<div data-testid="video_title"> </div>'),_4={hash:"svelte-1bcvcf2",code:`.title.svelte-1bcvcf2 {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(
283
283
  0deg,
284
284
  rgba(0, 0, 0, 0) 0%,
285
285
  rgba(0, 0, 0, 0.02) 19%,
286
286
  rgba(0, 0, 0, 0.10) 34%,
287
287
  rgba(0, 0, 0, 0.40) 60%,
288
288
  rgba(0, 0, 0, 0.60) 100%
289
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function jf(t,e){q(t,m4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=f4();let a;var s=h(n,!0);g(n),k(d=>{a=ee(n,1,"title svelte-1bcvcf2",null,a,d),ge(s,i())},[()=>({hidden:o()})]),b(t,n)}var v4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),g4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),h4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),_4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),b4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),$4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Yf(t,e){U(e,!0),q(t,$4);let i=J(""),o=J(""),n=J(""),a=J(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let A=Math.floor(P/86400);A&&(P-=A*86400,B(i,pe(d(A))));let I=Math.floor(P/3600);B(o,pe(d(I)));let V=Math.floor(P/60)%60;B(n,pe(d(V)));let H=P%60;B(a,pe(d(H)))},p=()=>{let P=Math.floor(Date.now()/1e3),A=e.startTime-P;l(A),A>=1?s=requestAnimationFrame(p):e.onTimerOver()};Ot(()=>{s=requestAnimationFrame(p)}),$n(()=>{cancelAnimationFrame(s)});var m=b4(),$=h(m);{var u=P=>{var A=v4(),I=ue(A),V=h(I),H=h(V,!0);g(V);var j=M(V,2),O=h(j,!0);g(j),g(I);var X=M(I,2),ne=h(X,!0);g(X),k((Y,fe)=>{ge(H,r(i)),ge(O,Y),ge(ne,fe)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(P,A)};R($,P=>{r(i)&&P(u)})}var _=M($,2);{var w=P=>{var A=g4(),I=ue(A),V=h(I),H=h(V,!0);g(V);var j=M(V,2),O=h(j,!0);g(j),g(I);var X=M(I,2),ne=h(X,!0);g(X),k((Y,fe)=>{ge(H,r(o)),ge(O,Y),ge(ne,fe)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(P,A)};R(_,P=>{r(o)&&P(w)})}var y=M(_,2);{var C=P=>{var A=h4(),I=ue(A),V=h(I),H=h(V,!0);g(V);var j=M(V,2),O=h(j,!0);g(j),g(I);var X=M(I,2),ne=h(X,!0);g(X),k((Y,fe)=>{ge(H,r(n)),ge(O,Y),ge(ne,fe)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(P,A)};R(y,P=>{r(n)&&P(C)})}var T=M(y,2);{var E=P=>{var A=_4(),I=h(A),V=h(I,!0);g(I);var H=M(I,2),j=h(H,!0);g(H),g(A),k(O=>{ge(V,r(a)),ge(j,O)},[()=>F("waiting_live_second_value")]),b(P,A)};R(T,P=>{r(a)&&P(E)})}g(m),b(t,m),z()}var y4=be('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function Zf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=y4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(4),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i})),b(t,o)}var x4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),w4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),S4=L('<div class="waiting-container svelte-15pewff"><!></div>'),C4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function xd(t,e){U(e,!0),q(t,C4);let i=J(!1);Ue(()=>{B(i,pe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=S4(),n=h(o);{var a=d=>{var l=x4(),p=h(l),m=h(p);Zf(m,{}),g(p);var $=M(p,2),u=h($,!0);g($),g(l),k(_=>ge(u,_),[()=>F("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=w4(),p=h(l),m=h(p,!0);g(p);var $=M(p,2);let u=v(()=>e.startTime||0);Yf($,{get startTime(){return r(u)},onTimerOver:()=>B(i,!0)}),g(l),k(_=>ge(m,_),[()=>F("waiting_live_timer_title")]),b(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),k(()=>tt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),z()}var T4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),I4={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 ua(t,e){U(e,!0),q(t,I4);let i=f(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=T4(),s=h(a),d=h(s);ta(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),p=h(l,!0);g(l),g(s),g(a),k(()=>{tt(a,`background-image: url('${i()}')`),ge(p,r(n))}),b(t,a),z()}var k4=be('<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 Xf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=k4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),b(t,o)}var E4=L('<div class="select-icon svelte-124aexk"><!></div>'),P4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function wd(t){q(t,P4);var e=E4(),i=h(e);Xf(i,{}),g(e),b(t,e)}var A4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},M4=(t,e)=>{Wa(t,()=>e.item.selectItem(e.item.value))},L4=L("<p> </p>"),V4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),R4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),N4={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;
289
+ );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Xf(t,e){K(t,_4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=h4();let a;var s=h(n,!0);g(n),E(d=>{a=J(n,1,"title svelte-1bcvcf2",null,a,d),me(s,i())},[()=>({hidden:o()})]),_(t,n)}var b4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),$4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),y4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),x4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),w4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),S4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function Jf(t,e){U(e,!0),K(t,S4);let i=X(""),o=X(""),n=X(""),a=X(""),s,d=M=>String(M).padStart(2,"0"),l=M=>{let P=Math.floor(M/86400);P&&(M-=P*86400,D(i,pe(d(P))));let k=Math.floor(M/3600);D(o,pe(d(k)));let R=Math.floor(M/60)%60;D(n,pe(d(R)));let W=M%60;D(a,pe(d(W)))},p=()=>{let M=Math.floor(Date.now()/1e3),P=e.startTime-M;l(P),P>=1?s=requestAnimationFrame(p):e.onTimerOver()};Ht(()=>{s=requestAnimationFrame(p)}),wn(()=>{cancelAnimationFrame(s)});var m=w4(),y=h(m);{var u=M=>{var P=b4(),k=ue(P),R=h(k),W=h(R,!0);g(R);var Y=A(R,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),oe=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(i)),me(F,Z),me(oe,re)},[()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),_(M,P)};B(y,M=>{r(i)&&M(u)})}var $=A(y,2);{var w=M=>{var P=$4(),k=ue(P),R=h(k),W=h(R,!0);g(R);var Y=A(R,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),oe=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(o)),me(F,Z),me(oe,re)},[()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),_(M,P)};B($,M=>{r(o)&&M(w)})}var b=A($,2);{var C=M=>{var P=y4(),k=ue(P),R=h(k),W=h(R,!0);g(R);var Y=A(R,2),F=h(Y,!0);g(Y),g(k);var Q=A(k,2),oe=h(Q,!0);g(Q),E((Z,re)=>{me(W,r(n)),me(F,Z),me(oe,re)},[()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),_(M,P)};B(b,M=>{r(n)&&M(C)})}var T=A(b,2);{var I=M=>{var P=x4(),k=h(P),R=h(k,!0);g(k);var W=A(k,2),Y=h(W,!0);g(W),g(P),E(F=>{me(R,r(a)),me(Y,F)},[()=>q("waiting_live_second_value")]),_(M,P)};B(T,M=>{r(a)&&M(I)})}g(m),_(t,m),z()}var C4=ye('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function em(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=C4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(4),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i})),_(t,o)}var T4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),I4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),k4=L('<div class="waiting-container svelte-15pewff"><!></div>'),E4={hash:"svelte-15pewff",code:".waiting-container.svelte-15pewff {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-15pewff::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;}.upcoming.svelte-15pewff {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0;}.upcoming-icon.svelte-15pewff {width:20%;max-width:200px;margin-bottom:20px;}.upcoming__title.svelte-15pewff {font-size:14px;line-height:1.2;font-weight:400;}.waiting-timer.svelte-15pewff {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-15pewff {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-15pewff {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400;}"};function yd(t,e){U(e,!0),K(t,E4);let i=X(!1);Fe(()=>{D(i,pe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=k4(),n=h(o);{var a=d=>{var l=T4(),p=h(l),m=h(p);em(m,{}),g(p);var y=A(p,2),u=h(y,!0);g(y),g(l),E($=>me(u,$),[()=>q("waiting_live_upcoming_title")]),_(d,l)},s=d=>{var l=I4(),p=h(l),m=h(p,!0);g(p);var y=A(p,2);let u=v(()=>e.startTime||0);Jf(y,{get startTime(){return r(u)},onTimerOver:()=>D(i,!0)}),g(l),E($=>me(m,$),[()=>q("waiting_live_timer_title")]),_(d,l)};B(n,d=>{r(i)?d(a):d(s,!1)})}g(o),E(()=>rt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),_(t,o),z()}var P4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),A4={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 ca(t,e){U(e,!0),K(t,A4);let i=f(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=P4(),s=h(a),d=h(s);ea(d,{style:"position: static; transform: translate(0, 0)"});var l=A(d,2),p=h(l,!0);g(l),g(s),g(a),E(()=>{rt(a,`background-image: url('${i()}')`),me(p,r(n))}),_(t,a),z()}var M4=ye('<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 tm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=M4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),_(t,o)}var L4=L('<div class="select-icon svelte-124aexk"><!></div>'),V4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function xd(t){K(t,V4);var e=L4(),i=h(e);tm(i,{}),g(e),_(t,e)}var R4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},B4=(t,e)=>{Ga(t,()=>e.item.selectItem(e.item.value))},N4=L("<p> </p>"),D4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),O4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),H4={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;
290
290
 
291
291
  /**
292
292
  * \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
293
293
  * \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.
294
294
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
295
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Jf(t,e){U(e,!0),q(t,N4);let i=f(e,"isMobile",3,!1);var o=R4();let n;o.__click=[A4,e],o.__keydown=[M4,e];var a=h(o);{var s=w=>{wd(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var p=h(d);{var m=w=>{var y=Fe(),C=ue(y);Ti(C,()=>e.item.valueComponent,(T,E)=>{E(T,Xr(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,y)},$=w=>{var y=L4();let C;var T=h(y,!0);g(y),k(E=>{var P;C=ee(y,1,"label svelte-1t7rx2m",null,C,E),ge(T,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(w,y)};R(p,w=>{e.item.valueComponent?w(m):w($,!1)})}var u=M(p,2);{var _=w=>{var y=V4(),C=h(y,!0);g(y),k(()=>ge(C,e.item.sublabel)),b(w,y)};R(u,w=>{e.item.sublabel&&w(_)})}g(d),g(o),k((w,y,C)=>{n=ee(o,1,"item",null,n,w),He(o,"data-value",e.item.value),He(o,"aria-label",y),l=ee(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),He(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),z()}st(["click","keydown"]);var D4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function em(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>y=>Lc(y,r(n)));var s=D4();let d;s.__click=function(...y){var C;(C=r(n))==null||C.apply(this,y)},s.__keydown=function(...y){var C;(C=r(a))==null||C.apply(this,y)};var l=h(s);{var p=y=>{wd(y,{})};R(l,y=>{e.item.selected&&y(p)})}var m=M(l,2);let $;var u=h(m);{var _=y=>{var C=Fe();let T=v(()=>e.item.valueComponent);var E=ue(C);Ti(E,()=>r(T),(P,A)=>{A(P,Xr(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(y,C)},w=y=>{var C=Nr();k(()=>ge(C,e.item.label)),b(y,C)};R(u,y=>{e.item.valueComponent?y(_):y(w,!1)})}g(m),g(s),pt(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,C)=>{var T;d=ee(s,1,"item",null,d,y),He(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),He(s,"data-testid",e.item.id),$=ee(m,1,"menu-item-value",null,$,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),z()}st(["click","keydown"]);var $r={"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 O4=(t,e)=>{wh(t,e.returnFromSubMenu,e.closeSettingsMenu)},H4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},F4=(t,e)=>{ql(t)&&(nr(t),e.returnFromSubMenu())},U4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),z4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
295
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function im(t,e){U(e,!0),K(t,H4);let i=f(e,"isMobile",3,!1);var o=O4();let n;o.__click=[R4,e],o.__keydown=[B4,e];var a=h(o);{var s=w=>{xd(w,{})};B(a,w=>{e.item.selected&&w(s)})}var d=A(a,2);let l;var p=h(d);{var m=w=>{var b=Oe(),C=ue(b);Ci(C,()=>e.item.valueComponent,(T,I)=>{I(T,Jr(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),_(w,b)},y=w=>{var b=N4();let C;var T=h(b,!0);g(b),E(I=>{var M;C=J(b,1,"label svelte-1t7rx2m",null,C,I),me(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),_(w,b)};B(p,w=>{e.item.valueComponent?w(m):w(y,!1)})}var u=A(p,2);{var $=w=>{var b=D4(),C=h(b,!0);g(b),E(()=>me(C,e.item.sublabel)),_(w,b)};B(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),E((w,b,C)=>{n=J(o,1,"item",null,n,w),Be(o,"data-value",e.item.value),Be(o,"aria-label",b),Be(o,"data-testid",e.item.dataTestid),l=J(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Be(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,b;return(b=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),_(t,o),z()}st(["click","keydown"]);var F4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function om(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>b=>Lc(b,r(n)));var s=F4();let d;s.__click=function(...b){var C;(C=r(n))==null||C.apply(this,b)},s.__keydown=function(...b){var C;(C=r(a))==null||C.apply(this,b)};var l=h(s);{var p=b=>{xd(b,{})};B(l,b=>{e.item.selected&&b(p)})}var m=A(l,2);let y;var u=h(m);{var $=b=>{var C=Oe();let T=v(()=>e.item.valueComponent);var I=ue(C);Ci(I,()=>r(T),(M,P)=>{P(M,Jr(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),_(b,C)},w=b=>{var C=Rr();E(()=>me(C,e.item.label)),_(b,C)};B(u,b=>{e.item.valueComponent?b($):b(w,!1)})}g(m),g(s),vt(s,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),E((b,C)=>{var T;d=J(s,1,"item",null,d,b),Be(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Be(s,"data-testid",e.item.id),y=J(m,1,"menu-item-value",null,y,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,s),z()}st(["click","keydown"]);var Sr={"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 z4=(t,e)=>{Th(t,e.returnFromSubMenu,e.closeSettingsMenu)},q4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},W4=(t,e)=>{zl(t)&&(ar(t),e.returnFromSubMenu())},K4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),Q4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
296
296
  /*\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 {
297
297
  /**
298
298
  * \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.
@@ -302,14 +302,14 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
302
302
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
303
303
  1px
304
304
  );}.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,
305
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function im(t,e){U(e,!0),q(t,z4);let[i,o]=Be(),n=()=>S($,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=f(e,"listRef",15);Ot(()=>{let Y=e.items.findIndex(fe=>fe.selected);p().children[Y+1].focus()});let m=Se(),$=m.ui.isFullscreen,u=m.ui.playerSize,_=J(void 0),w=J(0),y=J(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var E=U4();let P;var A=h(E);let I;A.__keydown=[O4,e];var V=h(A);let H;V.__click=[H4,e],V.__keydown=[F4,e];var j=h(V);ws(j,{direction:"left"});var O=M(j,2),X=h(O,!0);g(O),g(V),pt(V,Y=>B(_,Y),()=>r(_));var ne=M(V,2);Ci(ne,17,()=>e.items,kl,(Y,fe)=>{var le=Fe(),Me=ue(le);{var Ae=ae=>{Jf(ae,{get item(){return r(fe)},get isMobile(){return s()}})},me=(ae,Pe)=>{{var re=D=>{em(D,{get isMobile(){return s()},get item(){return r(fe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(ae,D=>{r(fe).type==="OPEN_SUB_MENU"&&D(re)},Pe)}};R(Me,ae=>{r(fe).type==="SELECT_VALUE"?ae(Ae):ae(me,!1)})}b(Y,le)}),g(A),pt(A,Y=>p(Y),()=>p()),g(E),k((Y,fe,le)=>{P=ee(E,1,"sub-menu menu svelte-7dfsuh",null,P,Y),He(E,"data-testid",`sub-menu-${e.id}`),tt(E,`min-width: ${r(T)}px`),I=ee(A,1,"items svelte-7dfsuh",null,I,fe),tt(A,r(C)),H=ee(V,1,"item header back svelte-7dfsuh",null,H,le),He(V,"aria-label",l()),ge(X,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Dr(V,"clientWidth",Y=>B(w,Y)),Dr(V,"clientHeight",Y=>B(y,Y)),b(t,E),z(),o()}st(["keydown","click"]);import{noop as q4}from"@vkontakte/videoplayer-shared/es2018";var W4=(t,e)=>Lc(t,e()),K4=(t,e)=>{t.stopPropagation(),e()()},Q4=L('<div class="value svelte-1ikfjte"> </div>'),G4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),j4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function om(t,e){U(e,!0),q(t,j4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,q4),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=G4();let d;s.__click=[K4,o],s.__keydown=[W4,o];var l=h(s),p=h(l);{var m=T=>{la(T,{get icon(){return e.icon}})},$=T=>{var E=Fe();let P=v(()=>e.icon);var A=ue(E);Ti(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)};R(p,T=>{typeof e.icon=="string"?T(m):T($,!1)})}g(l);var u=M(l,2),_=h(u,!0);g(u);var w=M(u,2);{var y=T=>{var E=Fe();let P=v(n);var A=ue(E);Ti(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)},C=T=>{var E=Q4(),P=h(E,!0);g(E),k(()=>ge(P,e.value)),b(T,E)};R(w,T=>{n()?T(y):T(C,!1)})}g(s),pt(s,T=>a(T),()=>a()),k(T=>{d=ee(s,1,"item",null,d,T),He(s,"aria-label",e.ariaLabel),He(s,"data-testid",e.id),ge(_,e.label)},[()=>({mobile:i()})]),b(t,s),z()}st(["click","keydown"]);import{noop as i1}from"@vkontakte/videoplayer-shared/es2018";var Y4=(t,e)=>{Wa(t,()=>e())},Z4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),X4=L('<img class="icon" aria-hidden="true">'),J4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),e3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function nm(t,e){U(e,!0),q(t,e3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,i1),n=f(e,"closeSettings",3,i1),a=J(!1),s=()=>{B(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=J4();let p;l.__click=d,l.__keydown=[Y4,d];var m=h(l),$=h(m);{var u=C=>{var T=Fe(),E=ue(T);{var P=I=>{var V=Z4();b(I,V)},A=I=>{var V=X4();k(()=>He(V,"src",e.icon)),xt("error",V,s),Fs(V),b(I,V)};R(E,I=>{r(a)?I(P):I(A,!1)})}b(C,T)},_=C=>{var T=Fe();let E=v(()=>e.icon);var P=ue(T);Ti(P,()=>r(E),(A,I)=>{I(A,{})}),b(C,T)};R($,C=>{typeof e.icon=="string"?C(u):C(_,!1)})}g(m);var w=M(m,2),y=h(w,!0);g(w),g(l),k(C=>{var T;p=ee(l,1,"item",null,p,C),He(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),He(l,"data-testid",e.id),ge(y,e.label)},[()=>({mobile:i()})]),b(t,l),z()}st(["click","keydown"]);import{noop as o3}from"@vkontakte/videoplayer-shared/es2018";var t3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),i3={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 rm(t,e){q(t,i3);let i=f(e,"enabled",3,!1);var o=t3(),n=h(o);let a;_e(2),g(o),k(s=>a=ee(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var n3=(t,e,i)=>{Sh(t,e(),o=>i()(o))},r3=(t,e,i)=>{t.stopPropagation(),e()(!i())},s3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),a3=L('<li role="menuitem" tabindex="0"><!></li>');function sm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,o3),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=a3();let l;d.__click=[r3,o,n],d.__keydown=[n3,n,o];var p=h(d);ia(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,$)=>{var u=s3();let _;var w=h(u),y=h(w);{var C=I=>{la(I,{get icon(){return e.icon}})},T=I=>{var V=Fe();let H=v(()=>e.icon);var j=ue(V);Ti(j,()=>r(H),(O,X)=>{X(O,{})}),b(I,V)};R(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=M(w,2),P=h(E,!0);g(E);var A=M(E,2);rm(A,{get enabled(){return n()}}),g(u),k(I=>{_=ee(u,1,"switch-wrapper",null,_,I),ge(P,e.label)},[()=>({mobile:i()})]),b(m,u)},$$slots:{default:!0}}),g(d),k(m=>{var $;l=ee(d,1,"item switch-item",null,l,m),He(d,"aria-label",($=e.ariaLabel)!=null?$:e.label),He(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),z()}st(["click","keydown"]);import{isValidURL as A3,VideoQuality as f1}from"@vkontakte/videoplayer-shared/es2018";var o1=()=>{let t=J(pe([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{B(t,pe(r(t).slice(0,-1)))},popAllSubMenus:()=>{B(t,pe([]))}}};var l3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),d3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),c3={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 pa(t,e){U(e,!0),q(t,c3);let i=f(e,"isSubCase",3,!1),o=v(()=>Bc(e.quality));var n=d3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=m=>{var $=l3();let u=v(()=>r(o));var _=h($);Ti(_,()=>r(u),(w,y)=>{y(w,{})}),g($),b(m,$)};R(l,m=>{r(o)&&!e.isMobile&&m(p)})}g(n),k(m=>{s=ee(a,1,"svelte-t2qk8t",null,s,m),ge(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),z()}import{VideoQuality as u3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as n1}from"@vkontakte/videoplayer-core/es2018";var r1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},s1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=r1({quality:t,availableQualities:e});return i?t===n1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},a1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===n1.INVARIANT?i:`${i}${r1({quality:t,availableQualities:e})}`:"...";var p3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),f3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function el(t,e){U(e,!0),q(t,f3);let[i,o]=Be(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(m,"$isMobile$",i),d=Se(),l=d.state.currentQuality$,p=d.state.availableQualities$,m=d.ui.isMobile,$=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==u3.INVARIANT?$:"")),_=v(()=>a1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=p3(),y=h(w);let C=v(()=>e.selected?n():void 0);pa(y,{get quality(){return r(C)},get label(){return r(_)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),z(),o()}var m3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},v3={br:!0,span:!0},am=(t,e={})=>{var d,l,p,m,$,u,_;if(!t)return t;let i={...v3,...e},o=Object.keys(i);if(!o.length)return t;let n=m3(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((m=w.groups)==null?void 0:m.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+y.length;continue}let E=($=w.groups)!=null&&$.childrenhtml?am(w.groups.childrenhtml,i):"",P=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp((_=w.groups)==null?void 0:_.childrenhtml),()=>E||""):y;a.push(t.slice(s,T),P),s=T+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Sd(t,e){U(e,!1);let i=f(e,"message",8),o=am(i());hr();var n=Fe(),a=ue(n);{var s=d=>{var l=Fe(),p=ue(l);El(p,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),z()}var g3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),h3={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 lm(t,e){U(e,!1),q(t,h3),hr();var i=g3(),o=h(i);let n=mr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Sd(o,{get message(){return r(n)}}),g(i),b(t,i),z()}var d1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:el,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},dm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?el:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),c1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:lm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),cm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?el:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),um=({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:F("traffic_saving_quality"),valueComponent:t?el:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var eu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),tu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Wc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let l=eu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=eu(t,d);return F("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=eu(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=eu(t,e);return F("audio_stream_display_unknown",{index:a})};var _3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:dm,selected:e&&!o&&!n||!1}),a.push({handler:um,selected:o},{handler:cm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[c1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),d1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:pa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:dm,selected:((i=xc())==null?void 0:i.type)==="auto_quality"},{handler:um,selected:((o=xc())==null?void 0:o.type)==="traffic_saving"},{handler:cm,selected:((n=xc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:tu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("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:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},u1=({subMenuId:t,context:e})=>t?[_3[t](e)]:[];var b3=be('<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 pm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=b3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var $3=be('<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 fm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=$3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var y3=be('<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 mm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=y3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var x3=be('<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 vm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=x3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var w3=be('<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 gm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var S3=be('<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 iu(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=S3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var C3=be('<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 hm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var T3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),I3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function _m(t,e){U(e,!0),q(t,I3);let[i,o]=Be(),n=()=>S(p,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S($,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Se(),p=l.state.currentQuality$,m=l.state.availableQualities$,$=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>s1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=T3(),y=h(w);pa(y,{get quality(){return n()},get label(){return r(_)},get isMobile(){return d()}}),g(w),b(t,w),z(),o()}var E3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:Xl,label:F("menu_quality"),value:e,valueComponent:_m,weight:$r["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:$r["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?F("aria_label_submenu_traffic_saving_off"):`${F("aria_label_submenu_traffic_saving_on")}. ${F("traffic_saving_helper_text")}`,icon:pm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=tu(t,e);return{id:"AUDIO_LANGUAGES",weight:$r["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:fm,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:$r["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:mm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:$r["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Jl,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:$r.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:vm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:$r.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:gm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:$r["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:iu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:$r["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:iu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:$r["debug-info"],type:"CLICK",onClick:t,label:e?F("aria_label_menu_debug_overlay_disable"):F("aria_label_menu_debug_overlay_enable"),ariaLabel:F("menu_debug_overlay"),icon:hm,isHiddenFor:["desktop"]})},p1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>E3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Xs)};var M3=(t,e)=>{Mc(t,e)},L3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),V3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),R3=L("<div><!> <!></div>"),N3={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 {
305
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function rm(t,e){U(e,!0),K(t,Q4);let[i,o]=Ne(),n=()=>S(y,"$isFullscreen",i),a=()=>S(u,"$playerSize",i),s=f(e,"isMobile",3,!1),d=f(e,"playerControlsHeight",3,0),l=f(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),p=f(e,"listRef",15);Ht(()=>{let Z=e.items.findIndex(re=>re.selected);p().children[Z+1].focus()});let m=Ce(),y=m.ui.isFullscreen,u=m.ui.playerSize,$=X(void 0),w=X(0),b=X(0),C=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(b)-d()}px; overflow: auto;`),T=v(()=>Math.max(e.minWidth,r(w)));var I=K4();let M;var P=h(I);let k;P.__keydown=[z4,e];var R=h(P);let W;R.__click=[q4,e],R.__keydown=[W4,e];var Y=h(R);ws(Y,{direction:"left"});var F=A(Y,2),Q=h(F,!0);g(F),g(R),vt(R,Z=>D($,Z),()=>r($));var oe=A(R,2);Si(oe,17,()=>e.items,Il,(Z,re)=>{var de=Oe(),Ae=ue(de);{var Me=se=>{im(se,{get item(){return r(re)},get isMobile(){return s()}})},ge=(se,Ee)=>{{var ne=V=>{om(V,{get isMobile(){return s()},get item(){return r(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};B(se,V=>{r(re).type==="OPEN_SUB_MENU"&&V(ne)},Ee)}};B(Ae,se=>{r(re).type==="SELECT_VALUE"?se(Me):se(ge,!1)})}_(Z,de)}),g(P),vt(P,Z=>p(Z),()=>p()),g(I),E((Z,re,de)=>{M=J(I,1,"sub-menu menu svelte-7dfsuh",null,M,Z),Be(I,"data-testid",`sub-menu-${e.id}`),rt(I,`min-width: ${r(T)}px`),k=J(P,1,"items svelte-7dfsuh",null,k,re),rt(P,r(C)),W=J(R,1,"item header back svelte-7dfsuh",null,W,de),Be(R,"aria-label",l()),me(Q,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Br(R,"clientWidth",Z=>D(w,Z)),Br(R,"clientHeight",Z=>D(b,Z)),_(t,I),z(),o()}st(["keydown","click"]);import{noop as G4}from"@vkontakte/videoplayer-shared/es2018";var Y4=(t,e)=>Lc(t,e()),j4=(t,e)=>{t.stopPropagation(),e()()},Z4=L('<div class="value svelte-1ikfjte"> </div>'),X4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),J4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function sm(t,e){U(e,!0),K(t,J4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,G4),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=X4();let d;s.__click=[j4,o],s.__keydown=[Y4,o];var l=h(s),p=h(l);{var m=T=>{aa(T,{get icon(){return e.icon}})},y=T=>{var I=Oe();let M=v(()=>e.icon);var P=ue(I);Ci(P,()=>r(M),(k,R)=>{R(k,{})}),_(T,I)};B(p,T=>{typeof e.icon=="string"?T(m):T(y,!1)})}g(l);var u=A(l,2),$=h(u,!0);g(u);var w=A(u,2);{var b=T=>{var I=Oe();let M=v(n);var P=ue(I);Ci(P,()=>r(M),(k,R)=>{R(k,{})}),_(T,I)},C=T=>{var I=Z4(),M=h(I,!0);g(I),E(()=>me(M,e.value)),_(T,I)};B(w,T=>{n()?T(b):T(C,!1)})}g(s),vt(s,T=>a(T),()=>a()),E(T=>{d=J(s,1,"item",null,d,T),Be(s,"aria-label",e.ariaLabel),Be(s,"data-testid",e.id),me($,e.label)},[()=>({mobile:i()})]),_(t,s),z()}st(["click","keydown"]);import{noop as r1}from"@vkontakte/videoplayer-shared/es2018";var e3=(t,e)=>{Ga(t,()=>e())},t3=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),i3=L('<img class="icon" aria-hidden="true">'),o3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),n3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function am(t,e){U(e,!0),K(t,n3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,r1),n=f(e,"closeSettings",3,r1),a=X(!1),s=()=>{D(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=o3();let p;l.__click=d,l.__keydown=[e3,d];var m=h(l),y=h(m);{var u=C=>{var T=Oe(),I=ue(T);{var M=k=>{var R=t3();_(k,R)},P=k=>{var R=i3();E(()=>Be(R,"src",e.icon)),Tt("error",R,s),Hs(R),_(k,R)};B(I,k=>{r(a)?k(M):k(P,!1)})}_(C,T)},$=C=>{var T=Oe();let I=v(()=>e.icon);var M=ue(T);Ci(M,()=>r(I),(P,k)=>{k(P,{})}),_(C,T)};B(y,C=>{typeof e.icon=="string"?C(u):C($,!1)})}g(m);var w=A(m,2),b=h(w,!0);g(w),g(l),E(C=>{var T;p=J(l,1,"item",null,p,C),Be(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Be(l,"data-testid",e.id),me(b,e.label)},[()=>({mobile:i()})]),_(t,l),z()}st(["click","keydown"]);import{noop as a3}from"@vkontakte/videoplayer-shared/es2018";var r3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),s3={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 lm(t,e){K(t,s3);let i=f(e,"enabled",3,!1);var o=r3(),n=h(o);let a;$e(2),g(o),E(s=>a=J(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),_(t,o)}var l3=(t,e,i)=>{Ih(t,e(),o=>i()(o))},d3=(t,e,i)=>{t.stopPropagation(),e()(!i())},c3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),u3=L('<li role="menuitem" tabindex="0"><!></li>');function dm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,a3),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=u3();let l;d.__click=[d3,o,n],d.__keydown=[l3,n,o];var p=h(d);ta(p,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(m,y)=>{var u=c3();let $;var w=h(u),b=h(w);{var C=k=>{aa(k,{get icon(){return e.icon}})},T=k=>{var R=Oe();let W=v(()=>e.icon);var Y=ue(R);Ci(Y,()=>r(W),(F,Q)=>{Q(F,{})}),_(k,R)};B(b,k=>{typeof e.icon=="string"?k(C):k(T,!1)})}g(w);var I=A(w,2),M=h(I,!0);g(I);var P=A(I,2);lm(P,{get enabled(){return n()}}),g(u),E(k=>{$=J(u,1,"switch-wrapper",null,$,k),me(M,e.label)},[()=>({mobile:i()})]),_(m,u)},$$slots:{default:!0}}),g(d),E(m=>{var y;l=J(d,1,"item switch-item",null,l,m),Be(d,"aria-label",(y=e.ariaLabel)!=null?y:e.label),Be(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),z()}st(["click","keydown"]);import{isValidURL as R3,VideoQuality as g1}from"@vkontakte/videoplayer-shared/es2018";var s1=()=>{let t=X(pe([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,pe(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,pe([]))}}};var p3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),f3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),m3={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 ua(t,e){U(e,!0),K(t,m3);let i=f(e,"isSubCase",3,!1),o=v(()=>Dc(e.quality));var n=f3(),a=h(n);let s;var d=h(a,!0);g(a);var l=A(a,2);{var p=m=>{var y=p3();let u=v(()=>r(o));var $=h(y);Ci($,()=>r(u),(w,b)=>{b(w,{})}),g(y),_(m,y)};B(l,m=>{r(o)&&!e.isMobile&&m(p)})}g(n),E(m=>{s=J(a,1,"svelte-t2qk8t",null,s,m),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,n),z()}import{VideoQuality as v3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as a1}from"@vkontakte/videoplayer-core/es2018";var l1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},d1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=l1({quality:t,availableQualities:e});return i?t===a1.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},c1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===a1.INVARIANT?i:`${i}${l1({quality:t,availableQualities:e})}`:"...";var g3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),h3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ol(t,e){U(e,!0),K(t,h3);let[i,o]=Ne(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(m,"$isMobile$",i),d=Ce(),l=d.state.currentQuality$,p=d.state.availableQualities$,m=d.ui.isMobile,y=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==v3.INVARIANT?y:"")),$=v(()=>c1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=g3(),b=h(w);let C=v(()=>e.selected?n():void 0);ua(b,{get quality(){return r(C)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),_(t,w),z(),o()}var _3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${a}`,"g")},b3={br:!0,span:!0},cm=(t,e={})=>{var d,l,p,m,y,u,$;if(!t)return t;let i={...b3,...e},o=Object.keys(i);if(!o.length)return t;let n=_3(o),a=[],s=0;for(let w of t.matchAll(n)){let b=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((m=w.groups)==null?void 0:m.keyi18nself)||"",{index:T}=w;if(!i[C]){a.push(t.slice(s,T)),s=T+b.length;continue}let I=(y=w.groups)!=null&&y.childrenhtml?cm(w.groups.childrenhtml,i):"",M=(u=w.groups)!=null&&u.childrenhtml?b.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>I||""):b;a.push(t.slice(s,T),M),s=T+b.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function wd(t,e){U(e,!1);let i=f(e,"message",8),o=cm(i());yr();var n=Oe(),a=ue(n);{var s=d=>{var l=Oe(),p=ue(l);kl(p,()=>o,!1,!1),_(d,l)};B(a,d=>{o&&d(s)})}_(t,n),z()}var $3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),y3={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 um(t,e){U(e,!1),K(t,y3),yr();var i=$3(),o=h(i);let n=_r(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));wd(o,{get message(){return r(n)}}),g(i),_(t,i),z()}var p1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ol,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},pm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?ol:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),f1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:um,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),fm=({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?ol:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),mm=({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?ol:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var tu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),iu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Wc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:n,label:o});{let l=tu(t,d);return q("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let d=e.filter(l=>l.label===o);if(d.length===1)return o;{let l=tu(t,d);return q("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let d=e.filter(l=>l.language===i);if(d.length===1)return n;{let l=tu(t,d);return q("audio_stream_display_language_index",{language:n,index:l})}}let a=tu(t,e);return q("audio_stream_display_unknown",{index:a})};var x3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:pm,selected:e&&!o&&!n||!1}),a.push({handler:mm,selected:o},{handler:fm,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[f1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),p1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:ua,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:pm,selected:((i=xc())==null?void 0:i.type)==="auto_quality"},{handler:mm,selected:((o=xc())==null?void 0:o.type)==="traffic_saving"},{handler:fm,selected:((n=xc())==null?void 0:n.type)==="high_quality"}].map(({handler:a,selected:s})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:s},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:iu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Gc?"sub_off":void 0}))})},m1=({subMenuId:t,context:e})=>t?[x3[t](e)]:[];var w3=ye('<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 vm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),_(t,o)}var S3=ye('<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 gm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=S3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),_(t,o)}var C3=ye('<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 hm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),_(t,o)}var T3=ye('<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 _m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=T3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),_(t,o)}var I3=ye('<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 bm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=I3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),_(t,o)}var k3=ye('<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 ou(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=k3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),_(t,o)}var E3=ye('<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 $m(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=E3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),_(t,o)}var P3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),A3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ym(t,e){U(e,!0),K(t,A3);let[i,o]=Ne(),n=()=>S(p,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S(y,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Ce(),p=l.state.currentQuality$,m=l.state.availableQualities$,y=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,$=v(()=>d1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=P3(),b=h(w);ua(b,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),_(t,w),z(),o()}var L3={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:Zl,label:q("menu_quality"),value:e,valueComponent:ym,weight:Sr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Sr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:vm,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=iu(t,e);return{id:"AUDIO_LANGUAGES",weight:Sr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:gm,label:q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Sr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:hm,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Sr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Xl,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Sr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:_m}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Sr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:bm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Sr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:ou,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Sr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:ou,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Sr["debug-info"],type:"CLICK",onClick:t,label:q("aria_label_menu_debug_overlay"),ariaLabel:q("menu_debug_overlay"),icon:$m,isHiddenFor:["desktop"]})},v1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>L3[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var a,s,d;return!((a=n==null?void 0:n.isHiddenFor)!=null&&a.length)||!((s=n==null?void 0:n.isHiddenFor)!=null&&s.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Zs)};var B3=(t,e)=>{Mc(t,e)},N3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),D3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),O3=L("<div><!> <!></div>"),H3={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 {
306
306
  /* \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),
307
307
  .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),
308
308
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
309
- .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 Cd(t,e){U(e,!0),q(t,N3);let[i,o]=Be(),n=()=>S(Ne,"$settingsMenuVisible",i),a=()=>S(Xe,"$settingsMenuOpenedByKeyboard",i),s=()=>S(ft,"$debugPanelVisible",i),d=()=>S(xe,"$isMobile",i),l=()=>S(Je,"$playerSize",i),p=()=>S(Le,"$hasMpegSources$",i),m=()=>S(De,"$mobileNotReportControlHidden$",i),$=()=>S(re,"$autoQualityLimitingAvailable$",i),u=()=>S(Q,"$availableSubtitlesList$",i),_=()=>S(Ye,"$isLiveWithPlaybackSpeed",i),w=()=>S(me,"$availableAudioStreams$",i),y=()=>S(Qe,"$availablePlaybackRates$",i),C=()=>S(Ae,"$currentAudioStream$",i),T=()=>S(te,"$currentPlaybackRate$",i),E=()=>S(it,"$trafficSavingEnabled",i),P=()=>S(ae,"$currentQuality$",i),A=()=>S(D,"$isAutoQualityEnabled$",i),I=()=>S(ie,"$currentSubtitle$",i),V=()=>S(Wt,"$additionalSettingsMenuItems$",i),H=()=>S(Ve,"$isAutoQualityAvailable$",i),j=()=>S(Pe,"$availableQualities$",i),O=()=>S(vt,"$highQualityEnabled",i),X=f(e,"ref",15,void 0),ne=f(e,"playerControlsHeight",3,0),Y=pe({}),fe=pe({}),le=Se(),Me=Ht(),Ae=le.state.audioStream$,me=le.state.availableAudioStreams$,ae=le.state.currentQuality$,Pe=le.state.availableQualities$,re=le.state.autoQualityLimitingAvailable$,D=le.state.isAutoQualityEnabled$,Ve=le.state.isAutoQualityAvailable$,te=le.state.currentPlaybackRate$,Qe=le.state.availablePlaybackRates$,ie=le.state.currentSubtitle$,Q=le.state.availableSubtitlesList$,W=le.state.canDownload,Le=le.state.hasMpegSources$,Ne=le.ui.settingsMenu.visible$,Xe=le.ui.settingsMenu.openedByBtnKeyboard$,ye=le.ui.settingsMenu.ref$,xe=le.ui.isMobile,De=le.ui.mobileNotReportControlHidden$,Ye=le.state.canChangePlaybackSpeed$,it=le.state.trafficSavingEnabled$,vt=le.state.highQualityEnabled$,Je=le.ui.playerSize,ft=le.ui.debugPanelVisible,It=le.state.isInteractiveTime$,Wt=le.ui.additionalSettingsMenuItems$,Ft=le.ui.t,qt=le.actions.internal.downloadVideo,ve=le.actions.internal.closeSettingsMenu,G=le.actions.internal.openSettingsSubMenu,Te=le.actions.internal.closeSettingsSubMenu,se=J(!1),Oe=J(void 0),ze=o1();Ue(()=>{!n()&&ze.current&&(Te(fe[ze.current]),ze.popAllSubMenus())}),Ue(()=>{n()||B(Oe,void 0)}),Ue(()=>{!ze.current&&r(Oe)&&xh(Y,r(Oe))}),Ue(()=>{X()&&ye.set(X())});async function et(wt){ze.pushSubMenu(wt),await _o(),G(wt,fe[wt])}function at(wt){var Ut;wt==null||wt.stopPropagation(),a()||(Ut=e.returnFocus)==null||Ut.call(e),ve(),B(se,!1)}function je(wt,Ut){le.actions.internal.setQuality(wt,{appliesTo:Ut}),at()}function Ze(wt){le.actions.internal.setAudioStream(wt),at()}function lt(wt,Ut){le.actions.internal.setTrafficSavingEnabled(wt,Ut),Me.features.qualityDetailsSubMenuEnabled&&at()}function Re(wt,Ut){le.actions.internal.setHighQualityEnabled(wt,Ut),at()}function _t(wt){le.actions.internal.setPlaybackRate(wt),at()}function qe(wt){le.actions.internal.setSubtitle(wt),at()}function kt(){qt()}function ni(){A3(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function Zt(){Ua(le.actions.internal.getDebugTextData())}let ri=()=>{let wt=le.actions.internal.getTraceTextData(),Ut=new Blob([...wt],{type:"application/json"}),Jt=window.URL.createObjectURL(Ut);Qs(Jt,"vk_player_trace_info","json")};function Bi(){ft.set(!s())}function Ki(){B(se,!0)}function Oi(){B(se,!1)}function co(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ne()}px; overflow: auto;`}let Lo=v(()=>W&&p()&&!m()),ot=v(()=>Me.features.trafficSaving&&!m()&&$()&&!Me.features.qualityDetailsSubMenuEnabled),gt=v(()=>u().length>0&&!m()),xi=v(()=>!!_()&&!m()),Z=v(()=>Me.features.audioLanguages&&w().length>=2&&!m()),Xt=v(()=>!m());Ot(()=>It.subscribe(wt=>{wt&&!d()&&!r(se)&&!a()&&at()}));let si=v(()=>{let wt=[r(Xt)&&"QUALITY_SETTINGS",r(Z)&&"AUDIO_LANGUAGES",r(xi)&&"PLAYBACK_RATE",r(gt)&&"SUBTITLES",r(ot)&&"TRAFFIC_SAVING_SWITCH",r(Lo)&&"DOWNLOAD",Me.showSupport&&"SHOW_SUPPORT","COPY_DATA",Me.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ut=>!!Ut);return p1({items:wt,context:{qualityDetailsSubMenuEnabled:Me.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:_t,trafficSavingEnabled:E(),toggleTrafficSaving:lt,currentQuality:P()||f1.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:kt,debugPanelVisible:s(),onCopyDataClick:Zt,onReportProblemClick:ni,onSaveTraceDataClick:ri,toggleShowDebugInfo:Bi},additionalSettingsMenuItems:V()})}),Hi=v(()=>u1({subMenuId:ze.current,context:{availablePlaybackRates:y(),selectPlaybackRate:_t,trafficSavingEnabled:E(),toggleTrafficSaving:lt,currentQuality:P()||f1.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:H()||!1,availableQualities:j(),highQualityEnabled:O(),toggleHighQuality:Re,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:ve,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Ze,selectQuality:je,selectSubtitle:qe}}));var ti=R3();let fi;var ai=h(ti);{var ct=wt=>{var Ut=V3();let Jt;Ut.__keydown=[M3,ve];var Gi=h(Ut);{var Un=li=>{var St=L3();let po;var Vo=h(St),di=h(Vo,!0);g(Vo);var wo=M(Vo,2);wo.__click=at,g(St),k((ji,So)=>{po=ee(St,1,"item header svelte-17or3al",null,po,ji),ge(di,So)},[()=>({mobile:d()}),()=>Ft("submenu_settings")]),b(li,St)};R(Gi,li=>{d()&&li(Un)})}var Fi=M(Gi,2);let xo;Ci(Fi,21,()=>r(si),li=>li.id,(li,St)=>{var po=Fe(),Vo=ue(po);{var di=ji=>{om(ji,{get isMobile(){return d()},get id(){return r(St).id},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get value(){return r(St).value},get valueComponent(){return r(St).valueComponent},onClick:()=>{et(r(St).children),B(Oe,pe(r(St).id))},get ref(){return Y[r(St).id]},set ref(So){Y[r(St).id]=So}})},wo=(ji,So)=>{{var Ro=Vi=>{nm(Vi,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},closeSettings:at})},wn=(Vi,Sn)=>{{var Yi=Co=>{sm(Co,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get enabled(){return r(St).enabled},get tooltipText(){return r(St).tooltipText},get maxTooltipWidth(){return r(St).maxTooltipWidth}})};R(Vi,Co=>{r(St).type==="SWITCH"&&Co(Yi)},Sn)}};R(ji,Vi=>{r(St).type==="CLICK"?Vi(Ro):Vi(wn,!1)},So)}};R(Vo,ji=>{r(St).type==="OPEN_SUB_MENU"?ji(di):ji(wo,!1)})}b(li,po)}),g(Fi),pt(Fi,li=>X(li),()=>X()),g(Ut),k((li,St,po)=>{Jt=ee(Ut,1,"settings-menu menu svelte-17or3al",null,Jt,li),xo=ee(Fi,1,"items",null,xo,St),tt(Fi,po)},[()=>({desktop:!d(),mobile:d(),hidden:!!ze.current}),()=>({mobile:d()}),co]),xt("mouseenter",Ut,Ki),xt("mouseleave",Ut,Oi),b(wt,Ut)};R(ai,wt=>{n()&&wt(ct)})}var uo=M(ai,2);Ci(uo,17,()=>r(Hi),wt=>wt.id,(wt,Ut)=>{let Jt=v(()=>{var Gi;return(Gi=r(Ut).minWidth)!=null?Gi:137});im(wt,{get isMobile(){return d()},get playerControlsHeight(){return ne()},get returnFromSubMenu(){return ze.popSubMenu},get id(){return r(Ut).id},get title(){return r(Ut).title},closeSettingsMenu:ve,openSubMenuList:et,get items(){return r(Ut).items},get minWidth(){return r(Jt)},get refMenuItems(){return Y},get listRef(){return fe[r(Ut).id]},set listRef(Gi){fe[r(Ut).id]=Gi}})}),g(ti),k(wt=>fi=ee(ti,1,"settings-menu-container svelte-17or3al",null,fi,wt),[()=>({mobile:d(),hidden:!n()})]),b(t,ti),z(),o()}st(["keydown","click"]);var D3=t=>t;function m1(t,{delay:e=0,duration:i=400,easing:o=D3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var B3=L('<button class="button svelte-1sbbskl"> </button>'),O3={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function bm(t,e){q(t,O3);var i=B3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>ge(o,e.label)),b(t,i)}st(["click"]);var H3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),F3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
309
+ .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 Sd(t,e){U(e,!0),K(t,H3);let[i,o]=Ne(),n=()=>S(De,"$settingsMenuVisible",i),a=()=>S(je,"$settingsMenuOpenedByKeyboard",i),s=()=>S(wt,"$debugPanelVisible",i),d=()=>S(Ve,"$isMobile",i),l=()=>S(ot,"$playerSize",i),p=()=>S(ee,"$hasMpegSources$",i),m=()=>S(Ie,"$mobileNotReportControlHidden$",i),y=()=>S(ne,"$autoQualityLimitingAvailable$",i),u=()=>S(le,"$availableSubtitlesList$",i),$=()=>S(Ue,"$isLiveWithPlaybackSpeed",i),w=()=>S(ge,"$availableAudioStreams$",i),b=()=>S(ze,"$availablePlaybackRates$",i),C=()=>S(Me,"$currentAudioStream$",i),T=()=>S(_e,"$currentPlaybackRate$",i),I=()=>S(dt,"$trafficSavingEnabled",i),M=()=>S(se,"$currentQuality$",i),P=()=>S(V,"$isAutoQualityEnabled$",i),k=()=>S(H,"$currentSubtitle$",i),R=()=>S(zt,"$additionalSettingsMenuItems$",i),W=()=>S(xe,"$isAutoQualityAvailable$",i),Y=()=>S(Ee,"$availableQualities$",i),F=()=>S(ct,"$highQualityEnabled",i),Q=f(e,"ref",15,void 0),oe=f(e,"playerControlsHeight",3,0),Z=pe({}),re=pe({}),de=Ce(),Ae=Ft(),Me=de.state.audioStream$,ge=de.state.availableAudioStreams$,se=de.state.currentQuality$,Ee=de.state.availableQualities$,ne=de.state.autoQualityLimitingAvailable$,V=de.state.isAutoQualityEnabled$,xe=de.state.isAutoQualityAvailable$,_e=de.state.currentPlaybackRate$,ze=de.state.availablePlaybackRates$,H=de.state.currentSubtitle$,le=de.state.availableSubtitlesList$,he=de.state.canDownload,ee=de.state.hasMpegSources$,De=de.ui.settingsMenu.visible$,je=de.ui.settingsMenu.openedByBtnKeyboard$,we=de.ui.settingsMenu.ref$,Ve=de.ui.isMobile,Ie=de.ui.mobileNotReportControlHidden$,Ue=de.state.canChangePlaybackSpeed$,dt=de.state.trafficSavingEnabled$,ct=de.state.highQualityEnabled$,ot=de.ui.playerSize,wt=de.ui.debugPanelVisible,ft=de.state.isInteractiveTime$,zt=de.ui.additionalSettingsMenuItems$,ti=de.ui.t,At=de.actions.internal.downloadVideo,Rt=de.actions.internal.closeSettingsMenu,O=de.actions.internal.openSettingsSubMenu,be=de.actions.internal.closeSettingsSubMenu,te=X(!1),Re=X(void 0),Ye=s1();Fe(()=>{!n()&&Ye.current&&(be(re[Ye.current]),Ye.popAllSubMenus())}),Fe(()=>{n()||D(Re,void 0)}),Fe(()=>{!Ye.current&&r(Re)&&Ch(Z,r(Re))}),Fe(()=>{Q()&&we.set(Q())});async function Ke(Xe){Ye.pushSubMenu(Xe),await bo(),O(Xe,re[Xe])}function Le(Xe){var Mt;Xe==null||Xe.stopPropagation(),a()||(Mt=e.returnFocus)==null||Mt.call(e),Rt(),D(te,!1)}function nt(Xe,Mt){de.actions.internal.setQuality(Xe,{appliesTo:Mt}),Le()}function Je(Xe){de.actions.internal.setAudioStream(Xe),Le()}function ht(Xe,Mt){de.actions.internal.setTrafficSavingEnabled(Xe,Mt),Ae.features.qualityDetailsSubMenuEnabled&&Le()}function tt(Xe,Mt){de.actions.internal.setHighQualityEnabled(Xe,Mt),Le()}function Ze(Xe){de.actions.internal.setPlaybackRate(Xe),Le()}function qt(Xe){de.actions.internal.setSubtitle(Xe),Le()}function _t(){At()}function $i(){R3(e.supportLink)&&window.open(e.supportLink,"_blank"),de.actions.internal.reportProblem(),de.actions.internal.pause()}function Jt(){Wa(de.actions.internal.getDebugTextData())}let Qe=()=>{let Xe=de.actions.internal.getTraceTextData(),Mt=new Blob([...Xe],{type:"application/json"}),ao=window.URL.createObjectURL(Mt);Ks(ao,"vk_player_trace_info","json")};function Yt(){wt.set(!s())}function Mi(){D(te,!0)}function Ni(){D(te,!1)}function so(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-oe()}px; overflow: auto;`}let Ki=v(()=>he&&p()&&!m()),it=v(()=>Ae.features.trafficSaving&&!m()&&y()&&!Ae.features.qualityDetailsSubMenuEnabled),bt=v(()=>u().length>0&&!m()),Ii=v(()=>!!$()&&!m()),ji=v(()=>Ae.features.audioLanguages&&w().length>=2&&!m()),wo=v(()=>!m());Ht(()=>ft.subscribe(Xe=>{Xe&&!d()&&!r(te)&&!a()&&Le()}));let j=v(()=>{let Xe=[r(wo)&&"QUALITY_SETTINGS",r(ji)&&"AUDIO_LANGUAGES",r(Ii)&&"PLAYBACK_RATE",r(bt)&&"SUBTITLES",r(it)&&"TRAFFIC_SAVING_SWITCH",r(Ki)&&"DOWNLOAD",Ae.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ae.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Mt=>!!Mt);return v1({items:Xe,context:{qualityDetailsSubMenuEnabled:Ae.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Ze,trafficSavingEnabled:I(),toggleTrafficSaving:ht,currentQuality:M()||g1.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:_t,onCopyDataClick:Jt,onReportProblemClick:$i,onSaveTraceDataClick:Qe,toggleShowDebugInfo:Yt},additionalSettingsMenuItems:R()})}),jt=v(()=>m1({subMenuId:Ye.current,context:{availablePlaybackRates:b(),selectPlaybackRate:Ze,trafficSavingEnabled:I(),toggleTrafficSaving:ht,currentQuality:M()||g1.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:W()||!1,availableQualities:Y(),highQualityEnabled:F(),toggleHighQuality:tt,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Rt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Je,selectQuality:nt,selectSubtitle:qt}}));var vi=O3();let Li;var si=h(vi);{var ut=Xe=>{var Mt=D3();let ao;Mt.__keydown=[B3,Rt];var Zt=h(Mt);{var Fn=ci=>{var St=N3();let Vi;var Oo=h(St),ui=h(Oo,!0);g(Oo);var Ho=A(Oo,2);Ho.__click=Le,g(St),E((Di,So)=>{Vi=J(St,1,"item header svelte-17or3al",null,Vi,Di),me(ui,So)},[()=>({mobile:d()}),()=>ti("submenu_settings")]),_(ci,St)};B(Zt,ci=>{d()&&ci(Fn)})}var Zi=A(Zt,2);let Po;Si(Zi,21,()=>r(j),ci=>ci.id,(ci,St)=>{var Vi=Oe(),Oo=ue(Vi);{var ui=Di=>{sm(Di,{get isMobile(){return d()},get id(){return r(St).id},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get value(){return r(St).value},get valueComponent(){return r(St).valueComponent},onClick:()=>{Ke(r(St).children),D(Re,pe(r(St).id))},get ref(){return Z[r(St).id]},set ref(So){Z[r(St).id]=So}})},Ho=(Di,So)=>{{var Oi=lo=>{am(lo,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},closeSettings:Le})},Un=(lo,Tn)=>{{var Ao=Mo=>{dm(Mo,{get isMobile(){return d()},get id(){return r(St).id},get onClick(){return r(St).onClick},get icon(){return r(St).icon},get label(){return r(St).label},get ariaLabel(){return r(St).ariaLabel},get enabled(){return r(St).enabled},get tooltipText(){return r(St).tooltipText},get maxTooltipWidth(){return r(St).maxTooltipWidth}})};B(lo,Mo=>{r(St).type==="SWITCH"&&Mo(Ao)},Tn)}};B(Di,lo=>{r(St).type==="CLICK"?lo(Oi):lo(Un,!1)},So)}};B(Oo,Di=>{r(St).type==="OPEN_SUB_MENU"?Di(ui):Di(Ho,!1)})}_(ci,Vi)}),g(Zi),vt(Zi,ci=>Q(ci),()=>Q()),g(Mt),E((ci,St,Vi)=>{ao=J(Mt,1,"settings-menu menu svelte-17or3al",null,ao,ci),Po=J(Zi,1,"items",null,Po,St),rt(Zi,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ye.current}),()=>({mobile:d()}),so]),Tt("mouseenter",Mt,Mi),Tt("mouseleave",Mt,Ni),_(Xe,Mt)};B(si,Xe=>{n()&&Xe(ut)})}var fi=A(si,2);Si(fi,17,()=>r(jt),Xe=>Xe.id,(Xe,Mt)=>{let ao=v(()=>{var Zt;return(Zt=r(Mt).minWidth)!=null?Zt:137});rm(Xe,{get isMobile(){return d()},get playerControlsHeight(){return oe()},get returnFromSubMenu(){return Ye.popSubMenu},get id(){return r(Mt).id},get title(){return r(Mt).title},closeSettingsMenu:Rt,openSubMenuList:Ke,get items(){return r(Mt).items},get minWidth(){return r(ao)},get refMenuItems(){return Z},get listRef(){return re[r(Mt).id]},set listRef(Zt){re[r(Mt).id]=Zt}})}),g(vi),E(Xe=>Li=J(vi,1,"settings-menu-container svelte-17or3al",null,Li,Xe),[()=>({mobile:d(),hidden:!n()})]),_(t,vi),z(),o()}st(["keydown","click"]);var F3=t=>t;function h1(t,{delay:e=0,duration:i=400,easing:o=F3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var U3=L('<button class="button svelte-1sbbskl"> </button>'),z3={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function xm(t,e){K(t,z3);var i=U3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),E(()=>me(o,e.label)),_(t,i)}st(["click"]);var q3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),W3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
310
310
  /**
311
311
  * \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.
312
- */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 Td(t,e){U(e,!0),q(t,F3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ht(),{ui:{t:n}}=Se(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=H3(),d=h(s),l=h(d),p=h(l),m=h(p);Sd(m,{message:a}),g(p);var $=M(p,2);{var u=w=>{let y=v(()=>n("slow_video_notification_button"));bm(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};R($,w=>{o||w(u)})}g(l);var _=M(l,2);Js(_,{get onClick(){return e.onClose}}),g(d),g(s),sp(3,d,()=>m1,()=>({duration:i})),b(t,s),z()}var fa="annotation",ou=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",fa),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}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"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var U3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),z3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
312
+ */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 Cd(t,e){U(e,!0),K(t,W3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ft(),{ui:{t:n}}=Ce(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=q3(),d=h(s),l=h(d),p=h(l),m=h(p);wd(m,{message:a}),g(p);var y=A(p,2);{var u=w=>{let b=v(()=>n("slow_video_notification_button"));xm(w,{get label(){return r(b)},get onClick(){return e.onSelectAutoQuality}})};B(y,w=>{o||w(u)})}g(l);var $=A(l,2);Xs($,{get onClick(){return e.onClose}}),g(d),g(s),dp(3,d,()=>h1,()=>({duration:i})),_(t,s),z()}var pa="annotation",nu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",pa),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}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"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var K3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),Q3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
313
313
 
314
314
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
315
315
 
@@ -340,8 +340,8 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
340
340
  opacity: 0;
341
341
  scale: 0;
342
342
  }
343
- }`};function $m(t,e){U(e,!0),q(t,z3);let[i,o]=Be(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Se(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:m,playbackStatusNextVideoAnimationDuration:$}}=Ht(),u=0,_=J(null),w=J(!1);Ue(()=>{B(_,pe(n()?br:os))}),Ue(()=>{B(_,pe(a()?xs:null))}),Ue(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r(_)===xs&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),B(_,null)},r(_)!==xs?m:$),()=>{u&&(window.clearTimeout(u),u=0)}}),Ue(()=>{n()&&!r(w)&&(B(w,!0),B(_,null))});var y=Fe(),C=ue(y);{var T=E=>{var P=Fe(),A=ue(P);zs(A,()=>r(_),I=>{var V=U3(),H=h(V),j=h(H);let O=v(()=>a()==="prev");Ti(j,()=>r(_),(X,ne)=>{ne(X,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(O)}})}),g(H),g(V),k(()=>tt(H,`animation-duration: ${r(_)!==xs?m:$}ms`)),b(I,V)}),b(E,P)};R(C,E=>{r(_)&&p&&E(T)})}b(t,y),z(),o()}var q3=L('<div><div data-testid="video-container"></div></div>'),W3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
344
- .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 ma(t,e){U(e,!0),q(t,W3);let[i,o]=Be(),n=()=>S(m,"$rotateAlpha",i),a=()=>S($,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:m,playerSize:$},state:{isPlaying$:u}}=Se(),{isSmoothVideoRotate:_}=Ht(),w=v(()=>l()&&n()%180?a().height/a().width:1);var y=q3();let C;y.__contextmenu=function(...E){var P;(P=e.onContextMenu)==null||P.apply(this,E)},y.__mousedown=function(...E){var P;(P=e.onMouseDown)==null||P.apply(this,E)},y.__mouseup=function(...E){var P;(P=e.onMouseUp)==null||P.apply(this,E)},y.__click=function(...E){var P;(P=e.onClick)==null||P.apply(this,E)};var T=h(y);ee(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!_}),pt(T,E=>l(E),()=>l()),g(y),k(E=>{C=ee(y,1,"video-wrapper svelte-1czns9r",null,C,E),tt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),He(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),b(t,y),z(),o()}st(["contextmenu","mousedown","mouseup","click"]);var K3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},Q3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},G3=L("<div><!></div>"),j3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Y3=L("<div><!></div>"),Z3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),X3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),J3=L("<!> <!> <!>",1),ex=L('<div class="blocked svelte-jtgjmv"></div>'),tx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),ix={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function ym(t,e){U(e,!0),q(t,ix);let[i,o]=Be(),n=()=>S(qo,"$notificationsToShow$",i),a=()=>S(Bi,"$playerPhase",i),s=()=>S(si,"$isLoaderVisible",i),d=()=>S(ni,"$adPlaybackState",i),l=()=>S(wt,"$crashed",i),p=()=>S(po,"$isInteractiveTime$",i),m=()=>S(Lo,"$settingsMenuVisible",i),$=()=>S(Vo,"$isInteractiveExpectation$",i),u=()=>S(co,"$controlsVisible",i),_=()=>S(wo,"$touched",i),w=()=>S(qn,"$graphIsOpened$",i),y=()=>S(Ki,"$isFullscreen",i),C=()=>S(yr,"$autoplayNextEnabled$",i),T=()=>S(ai,"$postrollPassed",i),E=()=>S(Hi,"$isEnded$",i),P=()=>S(Ko,"$cursorInside",i),A=()=>S(Cn,"$fakeIsPlaying$",i),I=()=>S(Ui,"$bottomNoSmooth",i),V=()=>S(wn,"$interactiveTimeIndicator",i),H=()=>S(Fi,"$playerSize",i),j=()=>S(xo,"$is3DVideo",i),O=()=>S(Z,"$contextMenuVisible$",i),X=()=>S(kt,"$playbackState$",i),ne=()=>S(ji,"$hotKeyMapData",i),Y=()=>S(gt,"$scrubbingInProgress",i),fe=()=>S(xi,"$volumeChangingInProgress",i),le=()=>S(ti,"$chromecastConnected$",i),Me=()=>S(To,"$controlsTimeoutActive",i),Ae=()=>S(ot,"$settingsMenuOpenedByKeyboard",i),me=()=>S(An,"$contextMenuOpenedByKeyboard$",i),ae=()=>S(Go,"$contextMenuButtonRef$",i),Pe=()=>S(Zn,"$contextMenuOpenedByHotKey$",i),re=()=>S(kr,"$contextMenuLastActiveElem$",i),D=()=>S(Oi,"$isFullscreenOpenedByKeyboard",i),Ve=()=>S(qe,"$language$",i),te=()=>S(li,"$icon3DVideoVisible",i),Qe=()=>S(fi,"$chromecastDeviceName$",i),ie=()=>S(Gi,"$currentSubtitle$",i),Q=()=>S(Un,"$currentSubtitleCaptions$",i),W=()=>S(Zt,"$position$",i),Le=()=>S(ri,"$duration$",i),Ne=()=>S(ct,"$isLive$",i),Xe=()=>S(uo,"$isPlaying$",i),ye=()=>S(Sn,"$contextMenuPosition$",i),xe=()=>S(So,"$showHotKeyMap",i),De=()=>S(Xt,"$debugPanelVisible",i),Ye=()=>S(rr,"$userActionsDisabled$",i),it=f(e,"videoContainer",15),vt=f(e,"adsSlotId",3,void 0),Je=f(e,"adsParams",3,void 0),ft=f(e,"adsPreviewParam",3,void 0),It=f(e,"adsAutoplayParam",3,void 0),Wt=f(e,"duration",3,void 0),Ft=f(e,"logoTargetUrl",3,""),qt=f(e,"showNextPrevButtons",3,!1),ve=f(e,"nextButtonActive",3,!1),G=f(e,"prevButtonActive",3,!1),Te=f(e,"endScreenVideoTitle",3,void 0),se=f(e,"endScreenVideoThumb",3,void 0),Oe=f(e,"isOneVideoPlaylist",3,!1),ze=f(e,"shadowRootContainer",3,void 0),et=f(e,"outerContainerRef",3,void 0),at=f(e,"playerStarted",3,!1),je=f(e,"fullScreenTarget",3,void 0),Ze=f(e,"showMiniTimer",3,!1),lt=f(e,"showEndScreen",3,!0),Re=f(e,"keyboardControls",15),_t=e.store.getLogger().createComponentLog("Root component"),qe=e.store.interfaceLanguage$,kt=e.store.state.playbackState$,ni=e.store.ads.playbackState,Zt=e.store.state.positionWithScrubbing$,ri=e.store.state.duration$,Bi=e.store.playerPhase,Ki=e.store.ui.isFullscreen,Oi=e.store.ui.isFullscreenOpenedByKeyboard,co=e.store.ui.controlsVisible,Lo=e.store.ui.settingsMenu.visible$,ot=e.store.ui.settingsMenu.openedByBtnKeyboard$,gt=e.store.ui.scrubbingInProgress,xi=e.store.ui.volumeChangingInProgress,Z=e.store.ui.contextMenu.visible$,Xt=e.store.ui.debugPanelVisible,si=e.store.state.isLoaderVisible,Hi=e.store.state.isEnded$,ti=e.store.state.chromecastConnected$,fi=e.store.state.chromecastDeviceName$,ai=e.store.ads.postrollPassed,ct=e.store.state.isLive$,uo=e.store.state.isPlaying$,wt=e.store.state.crashed$,Ut=e.store.webApi.annotationsApi,Jt=e.store.webApi.pictureInPictureApi,Gi=e.store.state.currentSubtitle$,Un=e.store.state.currentSubtitleCaptions$,Fi=e.store.ui.playerSize,xo=e.store.ui.is3DVideo,li=e.store.ui.icon3DVideoVisible,St=e.store.state.isInteractive,po=e.store.state.isInteractiveTime$,Vo=e.store.state.isInteractiveExpectation$,di=e.store.state.hasInteractiveBranches,wo=e.store.ui.touched,ji=e.store.ui.modals.hotKeyMap.data,So=e.store.ui.modals.hotKeyMap.show,Ro=e.store.ui.overlayContainer$,wn=e.store.ui.controls.interactiveTimeIndicator,Vi=e.store.state.showInteractiveTimeIndicator,Sn=e.store.ui.contextMenu.position$,Yi=e.store.actions.internal.setQuality,Co=e.store.actions.internal.closeSettingsMenu,yr=e.store.ui.autoplayNextEnabled$,rr=e.store.ui.userActionsDisabled,{fakeIsPlaying$:Cn,notifications$:zn,graphIsOpened$:qn}=lo(),fo=J(void 0),dn=J(void 0),Tn=J(void 0),nt=J(void 0),In,Uo,zo;ji.set(vh());let{closeNotification:xr,notificationsToShow$:qo}=zn,kn=v(()=>!!n().slow_video),Wn=()=>xr("slow_video"),En=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Wo=J(void 0),Ui=ce(!1),Zi,To=ce(!1),cn=ce(),Ko=ce(!1),Qo=J(!1),ki=J(!1),No=J(!1),Io=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),sr=v(()=>p()&&!m()&&!(r(Qo)||r(ki))&&!(r(No)&&!$())),un=!0,pn=v(()=>e.uiConfig.features.thumbTimer&&Ze()&&a()==="video"&&!u()&&!l()&&!St&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),wr=v(()=>a()==="video"&&!w()&&y()),Do=J(!1),Sr=v(()=>(lt()||e.showAutoplayNext&&C())&&!!Te()&&!!se()&&(e.showAds&&T()||!e.showAds)&&E()&&!l()&&!r(Do)),Pn=v(()=>P()&&!(u()||r(Sr))&&!p()),Kn=J(!1),ar=v(()=>A()!==null),{toggle:Cr}=Cn,Qn=!1,fn=null;Jt==null||Jt.setContext(Cl());let Tr=()=>{e.autoplay&&!St&&e.uiConfig.controls.showOnStartupAtAutoplay&&wi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Tr});let ci=()=>{window.clearTimeout(In),To.set(!1)},ko=()=>{window.clearTimeout(Uo),cn.set(null)},wi=$e=>{ci(),To.set(!0),In=window.setTimeout(()=>To.set(!1),$e);let Ct=$e-100;Zi=window.setTimeout(()=>{I()&&Ui.set(!1)},Ct>0?Ct:$e)},Gn=($e,Ct)=>{ko(),cn.set(Ct),Uo=window.setTimeout(()=>cn.set(null),$e)},ut=xo.subscribe($e=>{li.set($e),$e&&(window.clearTimeout(zo),zo=window.setTimeout(()=>li.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Dt=async()=>{var Ct,mi,Si,eo;let $e=vs();if($e){let pi=Ol(),Ie=rt();$e=pi===Ie||pi===ze()}if($e){wi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Jt==null?void 0:Jt.remove())}catch(pi){_t({message:String(pi)})}}Ki.set($e),e.store.getAdmanWrapper().setFullscreen($e),y()?(mi=(Ct=e.store.callbacks)==null?void 0:Ct.onFullscreenEnter)==null||mi.call(Ct):(eo=(Si=e.store.callbacks)==null?void 0:Si.onFullscreenExit)==null||eo.call(Si)},Ei=$e=>{let{width:Ct,height:mi}=$e.target;Fi.set({width:Ct,height:mi})},Eo=()=>{let{width:$e,height:Ct}=r(fo).getBoundingClientRect();Fi.set({width:$e,height:Ct})};Ot(()=>{var Ct;return Pc(Dt),e.uiConfig.features.annotationsInside&&(Ut==null||Ut.init(r(fo))),Ys(Jt)&&(Jt==null||Jt.assignPlayerContainer(r(fo)),Jt==null||Jt.registryExternalEventHandlers({resize:Ei,leavepictureinpicture:Eo})),e.interactiveContainer&&((Ct=it().parentElement)==null||Ct.insertBefore(e.interactiveContainer,it().nextSibling)),()=>{window.clearTimeout(In),window.clearTimeout(Zi),window.clearTimeout(Uo),window.clearTimeout(zo),ut(),Jt==null||Jt.dispose().catch(mi=>{_t({message:String(mi)})}),Ac(Dt)}});let rt=()=>{let $e=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!et()?r(fo):et(),Ct=$e.getRootNode(),mi=Ct instanceof ShadowRoot?Ct.host:Ct,Si=je()instanceof HTMLElement&&je().contains(mi);return e.uiConfig.allowChangingFullscreenTarget&&je()&&Si?je():$e},Lt=async()=>{vs()?(await Ec(document),_t({message:"exit fullscreen"})):(_t({message:"request fullscreen"}),await kc(rt()))},ui=()=>{Co(),Z.set(!1)},Ri=$e=>{w()||($e.preventDefault(),Z.set(!0),Sn.set({left:$e.clientX,top:$e.clientY}))};function mo(){Ko.set(!0),St||wi(e.uiConfig.controls.hideTimeoutCursor)}function $i(){St||(Ui.set(!0),wi(e.uiConfig.controls.hideTimeoutCursor))}function Pi(){Ko.set(!1),B(ki,!1),B(Qo,!1),Qn=!1,e.store.actions.internal.releaseCamera(),wi(e.uiConfig.controls.hideTimeout)}function vi($e){return $e?$e.offsetTop+vi($e.offsetParent):0}function Po($e){return $e?$e.offsetLeft+Po($e.offsetParent):0}function Xi($e){if(V()&&Vi){let Ct=$e.currentTarget,mi=vi(Ct),Si=Po(Ct),eo=$e.pageX-Si,pi=$e.pageY-mi,{left:Ie,bottom:Et,right:jt}=V(),yi=jt-Ie;return eo>=Ie-yi&&pi<=Et+yi}}function Ji($e){if(r(fo)){let Ct=vi($e.currentTarget),mi=H().height,Si=$e.pageY-Ct;if(Xi($e)){B(ki,!1);return}Si<40?B(ki,!0):Si>mi-40?B(Qo,!0):(B(ki,!1),m()||B(Qo,!1))}}function mn($e){Ji($e),r(sr)||wi(e.uiConfig.controls.hideTimeoutCursor),j()&&Qn&&fn&&e.store.actions.internal.moveCameraFocusPX(fn.clientX-$e.clientX,fn.clientY-$e.clientY,$e.timeStamp-fn.timeStamp),fn=$e}let jn=$e=>{$e.preventDefault(),$e.button===0&&(Qn=!0,e.store.actions.internal.holdCamera()),wi(e.uiConfig.controls.hideTimeoutCursor)},lr=$e=>{$e.preventDefault(),$e.button===0&&(fn=$e,Qn=!1,e.store.actions.internal.releaseCamera()),wi(e.uiConfig.controls.hideTimeoutCursor)},Yn=$e=>{var Ct;if($e.preventDefault(),O()||m()){ui();return}if(!(E()&&!di)){if(r(ar))return Cr();if((Ct=Re())==null||Ct.focus(),!at()){e.firstStart(),wi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==g1.PLAYING)&&e.store.actions.internal.togglePlay(),wi(e.uiConfig.controls.hideTimeoutCursor)}},Ir=$e=>{ui(),wo.set(!0),wi(e.uiConfig.controls.hideTimeout),$e&&Gn(e.uiConfig.controls.hideHotKeyHelpers,$e)},dr=()=>{var $e,Ct;ui(),($e=e.store.callbacks)!=null&&$e.onOpenHotKeyMap?(Ct=e.store.callbacks)==null||Ct.onOpenHotKeyMap(ne()):So.update(mi=>!mi)},vn=()=>{wo.set(!0)},An=e.store.ui.contextMenu.openedByBtnKeyboard$,Go=e.store.ui.contextMenu.btnRef$,jo=J(void 0),Zn=e.store.ui.contextMenu.openedByHotKey$,kr=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{Ro.set(r(Wo))}),Ue(()=>{B(No,pe(r(Io)&&X()!==g1.PLAYING)),r(Io)||$t(()=>B(Io,!0))}),Ue(()=>{co.set((r(No)||E()||m()||Y()||fe()||le()||Me())&&!r(sr)&&(a()==="video"||a()==="ads")&&!l())}),Ue(()=>{!Y()&&r(Kn)&&!p()&&wi(e.uiConfig.controls.hideTimeoutCursor),$t(()=>B(Kn,pe(Y())))}),Ue(()=>{r(nt),m(),Ae(),$t(()=>qa(r(nt),m(),Ae()))}),Ue(()=>{r(jo),O(),me(),$t(()=>qa(r(jo),O(),me()))}),Ue(()=>{let $e=ae();$e&&(O(),$t(()=>za($e,O(),An)))}),Ue(()=>{r(jo),O(),Pe(),$t(()=>qa(r(jo),O(),Pe()))}),Ue(()=>{let $e=re();$e&&(O(),$t(()=>yh($e,O(),Zn)))}),Ue(()=>{var $e;!D()&&y()&&($t(()=>Oi.set(!1)),($e=Re())==null||$e.focus())}),Ue(()=>{w()&&ui()});let Er=F("video360");var cr=tx();xt("blur",Bs,ui);var vo=ue(cr);vo.__mousemove=mn,vo.__dblclick=[K3,un,_t,Lt,wi,e];var Mn=h(vo);let Xn=v(()=>a()==="ads"),Pr=v(()=>r(ar)?Cr:void 0);pt(Hp(Mn,{toggleFullscreen:Lt,hideContextMenu:ui,showHotKeyHelpers:Ir,showKeyMap:dr,get isAds(){return r(Xn)},get fakePlayButtonHandler(){return r(Pr)},get nextButtonActive(){return ve()},get prevButtonActive(){return G()},children:($e,Ct)=>{var mi=J3(),Si=ue(mi);ma(Si,{get hideCursor(){return r(Pn)},onClick:Yn,onContextMenu:Ri,onMouseDown:jn,onMouseUp:lr,get videoContainer(){return it()},set videoContainer(Ie){it(Ie)}});var eo=M(Si,2);qs(eo,()=>"slot",!1,(Ie,Et)=>{Ce(Ie,null,{name:fa})});var pi=M(eo,2);zs(pi,Ve,Ie=>{var Et=X3(),jt=ue(Et);let yi=v(()=>a()!=="thumb"||l()||St&&e.autoplay);ca(jt,{get hidden(){return r(yi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ei=M(jt,2);$m(ei,{});var Ar=M(ei,2);{var Qi=We=>{let oi=v(()=>{var Zo;return(Zo=e.live)==null?void 0:Zo.startTime});xd(We,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(oi)}})};R(Ar,We=>{a()==="LiveWaitingStart"&&We(Qi)})}var Mr=M(Ar,2);{var Ss=We=>{ua(We,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Mr,We=>{a()==="LiveWaitingRecover"&&We(Ss)})}var Yo=M(Mr,2);{var va=We=>{ua(We,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Yo,We=>{a()==="LiveWaitingRecord"&&We(va)})}var Cs=M(Yo,2);{var ol=We=>{var oi=G3();let Zo;var Es=h(oi);Hl(Es,{get adsSlotId(){return vt()},get adsParams(){return Je()},get adsPreviewParam(){return ft()},get adsAutoplayParam(){return It()},get duration(){return Wt()}}),g(oi),k(Xo=>Zo=ee(oi,1,"ads-container svelte-jtgjmv",null,Zo,Xo),[()=>({hidden:a()!=="ads"})]),b(We,oi)};R(Cs,We=>{e.showAds&&at()&&We(ol)})}var ga=M(Cs,2);{var nl=We=>{let oi=v(()=>!lt()&&e.showAutoplayNext&&C());Dp(We,{get title(){return Te()},get thumb(){return se()},get isHide(){return r(oi)},clickCloseIcon:()=>B(Do,!0)})};R(ga,We=>{r(Sr)&&Te()&&se()&&We(nl)})}var Ts=M(ga,2);{var rl=We=>{let oi=v(()=>!u());jf(We,{get title(){return e.title},get isHidden(){return r(oi)}})};R(Ts,We=>{r(wr)&&We(rl)})}var ha=M(Ts,2);{var Jn=We=>{let oi=v(()=>a()==="video"&&u());bd(We,{get isShifted(){return r(oi)}})};R(ha,We=>{j()&&We(Jn)})}var Is=M(ha,2);{var bt=We=>{var oi=j3(),Zo=h(oi);Bl(Zo,{"aria-label":Er}),g(oi),b(We,oi)};R(Is,We=>{te()&&We(bt)})}var ht=M(Is,2);{var to=We=>{$d(We,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Qe()}})};R(ht,We=>{le()&&We(to)})}var Bo=M(ht,2);{var io=We=>{da(We,{get shifted(){return u()},get captions(){return Q()},get position(){return W()},get playerSize(){return H()}})};R(Bo,We=>{ie().value!=="off"&&We(io)})}var ii=M(Bo,2);{var Ni=We=>{var oi=Y3();oi.__contextmenu=Ri,oi.__click=[Q3,O,Z,m,Lo,ui];var Zo=h(oi);yd(Zo,{}),g(oi),b(We,oi)};R(ii,We=>{l()&&We(Ni)})}var rs=M(ii,2);{var sl=We=>{let oi=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Zo=v(()=>a()==="ads"),Es=v(()=>e.canRewindLive&&Le()!==0);_d(We,{get bottomHidden(){return r(oi)},get bottomNoSmooth(){return I()},get showControls(){return u()},get isAds(){return r(Zo)},get canRewindLive(){return r(Es)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ft()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return qt()},get nextButtonActive(){return ve()},get prevButtonActive(){return G()},get isOneVideoPlaylist(){return Oe()},customFullscreenSupported:un,toggleFullscreen:Lt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(dn)},set playerControlsWrapperRef(Xo){B(dn,pe(Xo))},get playerControlsRef(){return r(Tn)},set playerControlsRef(Xo){B(Tn,pe(Xo))}})};R(rs,We=>{at()&&We(sl)})}var Bd=M(rs,2);{var fu=We=>{var oi=Z3(),Zo=h(oi);let Es=v(()=>{var Xo;return(Xo=r(Tn))==null?void 0:Xo.clientHeight});Cd(Zo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Es)},returnFocus:()=>{var Xo;return(Xo=Re())==null?void 0:Xo.focus()},get ref(){return r(nt)},set ref(Xo){B(nt,pe(Xo))}}),g(oi),b(We,oi)};R(Bd,We=>{!le()&&a()!=="ads"&&We(fu)})}var Od=M(Bd,2);let mu=v(()=>!r(pn));zl(Od,{get isLive(){return Ne()},get isHidden(){return r(mu)},get isPlaying(){return Xe()},get position(){return W()},get duration(){return Le()}});var Hd=M(Od,2);Wf(Hd,{data:cn});var ks=M(Hd,2);Np(ks,{get supportLink(){return e.supportLink},returnFocus:()=>{var We;return(We=Re())==null?void 0:We.focus()},get visible(){return O()},get playerContainerRef(){return r(fo)},get controlsContainerRef(){return r(dn)},get position(){return ye()},get menuElementRef(){return r(jo)},set menuElementRef(We){B(jo,pe(We))}});var Fd=M(ks,2);{var Ud=We=>{Td(We,{onClose:Wn,onSelectAutoQuality:()=>{Yi("auto"),Wn()}})};R(Fd,We=>{r(kn)&&We(Ud)})}var al=M(Fd,2);{var vu=We=>{ta(We,{})};R(al,We=>{r(En)&&We(vu)})}var ll=M(al,2);{var dl=We=>{zp(We,{})};R(ll,We=>{xe()&&We(dl)})}var zd=M(ll,2);{var gu=We=>{Ql(We,{})};R(zd,We=>{De()&&We(gu)})}b(Ie,Et)}),b($e,mi)},$$slots:{default:!0}}),$e=>Re($e),()=>Re());var dt=M(Mn,2);pt(dt,$e=>B(Wo,$e),()=>r(Wo)),g(vo),pt(vo,$e=>B(fo,$e),()=>r(fo));var Bt=M(vo,2);{var Ai=$e=>{var Ct=ex();b($e,Ct)};R(Bt,$e=>{Ye()&&$e(Ai)})}xt("mouseenter",vo,mo),xt("mouseleave",vo,Pi),xt("click",vo,vn,!0),xt("focusin",vo,$i,!0),b(t,cr),z(),o()}st(["mousemove","dblclick","contextmenu","click"]);import{clientChecker as Id,PlaybackState as px}from"@vkontakte/videoplayer-core/es2018";import{noop as fx}from"@vkontakte/videoplayer-shared/es2018";var ox=L('<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),nx=L("<div><!></div>"),rx={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;
343
+ }`};function wm(t,e){U(e,!0),K(t,Q3);let[i,o]=Ne(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Ce(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:m,playbackStatusNextVideoAnimationDuration:y}}=Ft(),u=0,$=X(null),w=X(!1);Fe(()=>{D($,pe(n()?wr:ns))}),Fe(()=>{D($,pe(a()?xs:null))}),Fe(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r($)===xs&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D($,null)},r($)!==xs?m:y),()=>{u&&(window.clearTimeout(u),u=0)}}),Fe(()=>{n()&&!r(w)&&(D(w,!0),D($,null))});var b=Oe(),C=ue(b);{var T=I=>{var M=Oe(),P=ue(M);Us(P,()=>r($),k=>{var R=K3(),W=h(R),Y=h(W);let F=v(()=>a()==="prev");Ci(Y,()=>r($),(Q,oe)=>{oe(Q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),g(W),g(R),E(()=>rt(W,`animation-duration: ${r($)!==xs?m:y}ms`)),_(k,R)}),_(I,M)};B(C,I=>{r($)&&p&&I(T)})}_(t,b),z(),o()}var G3=L('<div><div data-testid="video-container"></div></div>'),Y3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
344
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function fa(t,e){U(e,!0),K(t,Y3);let[i,o]=Ne(),n=()=>S(m,"$rotateAlpha",i),a=()=>S(y,"$playerSize",i),s=()=>S(p,"$playerPhase",i),d=()=>S(u,"$isPlaying$",i),l=f(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:m,playerSize:y},state:{isPlaying$:u}}=Ce(),{isSmoothVideoRotate:$}=Ft(),w=v(()=>l()&&n()%180?a().height/a().width:1);var b=G3();let C;b.__contextmenu=function(...I){var M;(M=e.onContextMenu)==null||M.apply(this,I)},b.__mousedown=function(...I){var M;(M=e.onMouseDown)==null||M.apply(this,I)},b.__mouseup=function(...I){var M;(M=e.onMouseUp)==null||M.apply(this,I)},b.__click=function(...I){var M;(M=e.onClick)==null||M.apply(this,I)},b.__dblclick=function(...I){var M;(M=e.onDblClick)==null||M.apply(this,I)};var T=h(b);J(T,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!$}),vt(T,I=>l(I),()=>l()),g(b),E(I=>{C=J(b,1,"video-wrapper svelte-1czns9r",null,C,I),rt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),_(t,b),z(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var j3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},Z3=L("<div><!></div>"),X3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),J3=L("<div><!></div>"),ex=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),tx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ix=L("<!> <!> <!>",1),ox=L('<div class="blocked svelte-jtgjmv"></div>'),nx=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),rx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Sm(t,e){U(e,!0),K(t,rx);let[i,o]=Ne(),n=()=>S(cn,"$notificationsToShow$",i),a=()=>S(Mi,"$playerPhase",i),s=()=>S(jt,"$isLoaderVisible",i),d=()=>S(Jt,"$adPlaybackState",i),l=()=>S(Mt,"$crashed",i),p=()=>S(Oo,"$isInteractiveTime$",i),m=()=>S(it,"$settingsMenuVisible",i),y=()=>S(ui,"$isInteractiveExpectation$",i),u=()=>S(Ki,"$controlsVisible",i),$=()=>S(Di,"$touched",i),w=()=>S(pt,"$graphIsOpened$",i),b=()=>S(Ni,"$isFullscreen",i),C=()=>S(Cr,"$autoplayNextEnabled$",i),T=()=>S(ut,"$postrollPassed",i),I=()=>S(vi,"$isEnded$",i),M=()=>S(Pn,"$cursorInside",i),P=()=>S(kn,"$isControlsAvailable",i),k=()=>S(dn,"$fakeIsPlaying$",i),R=()=>S(un,"$bottomNoSmooth",i),W=()=>S(lo,"$interactiveTimeIndicator",i),Y=()=>S(Po,"$playerSize",i),F=()=>S(ci,"$is3DVideo",i),Q=()=>S(wo,"$contextMenuVisible$",i),oe=()=>S($i,"$playbackState$",i),Z=()=>S(So,"$hotKeyMapData",i),re=()=>S(Ii,"$scrubbingInProgress",i),de=()=>S(ji,"$volumeChangingInProgress",i),Ae=()=>S(Li,"$chromecastConnected$",i),Me=()=>S(qo,"$controlsTimeoutActive",i),ge=()=>S(bt,"$settingsMenuOpenedByKeyboard",i),se=()=>S(Yo,"$contextMenuOpenedByKeyboard$",i),Ee=()=>S(Ar,"$contextMenuButtonRef$",i),ne=()=>S(mr,"$contextMenuOpenedByHotKey$",i),V=()=>S(Fr,"$contextMenuLastActiveElem$",i),xe=()=>S(so,"$isFullscreenOpenedByKeyboard",i),_e=()=>S(_t,"$language$",i),ze=()=>S(St,"$icon3DVideoVisible",i),H=()=>S(si,"$chromecastDeviceName$",i),le=()=>S(Fn,"$currentSubtitle$",i),he=()=>S(Zi,"$currentSubtitleCaptions$",i),ee=()=>S(Qe,"$position$",i),De=()=>S(Yt,"$duration$",i),je=()=>S(fi,"$isLive$",i),we=()=>S(Xe,"$isPlaying$",i),Ve=()=>S(Ao,"$contextMenuPosition$",i),Ie=()=>S(Oi,"$showHotKeyMap",i),Ue=()=>S(j,"$debugPanelVisible",i),dt=()=>S(lr,"$userActionsDisabled$",i),ct=f(e,"videoContainer",15),ot=f(e,"adsSlotId",3,void 0),wt=f(e,"adsParams",3,void 0),ft=f(e,"adsPreviewParam",3,void 0),zt=f(e,"adsAutoplayParam",3,void 0),ti=f(e,"duration",3,void 0),At=f(e,"logoTargetUrl",3,""),Rt=f(e,"showNextPrevButtons",3,!1),O=f(e,"nextButtonActive",3,!1),be=f(e,"prevButtonActive",3,!1),te=f(e,"endScreenVideoTitle",3,void 0),Re=f(e,"endScreenVideoThumb",3,void 0),Ye=f(e,"isOneVideoPlaylist",3,!1),Ke=f(e,"shadowRootContainer",3,void 0),Le=f(e,"outerContainerRef",3,void 0),nt=f(e,"playerStarted",3,!1),Je=f(e,"fullScreenTarget",3,void 0),ht=f(e,"showMiniTimer",3,!1),tt=f(e,"showEndScreen",3,!0),Ze=f(e,"keyboardControls",15),qt=e.store.getLogger().createComponentLog("Root component"),_t=e.store.interfaceLanguage$,$i=e.store.state.playbackState$,Jt=e.store.ads.playbackState,Qe=e.store.state.positionWithScrubbing$,Yt=e.store.state.duration$,Mi=e.store.playerPhase,Ni=e.store.ui.isFullscreen,so=e.store.ui.isFullscreenOpenedByKeyboard,Ki=e.store.ui.controlsVisible,it=e.store.ui.settingsMenu.visible$,bt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ii=e.store.ui.scrubbingInProgress,ji=e.store.ui.volumeChangingInProgress,wo=e.store.ui.contextMenu.visible$,j=e.store.ui.debugPanelVisible,jt=e.store.state.isLoaderVisible,vi=e.store.state.isEnded$,Li=e.store.state.chromecastConnected$,si=e.store.state.chromecastDeviceName$,ut=e.store.ads.postrollPassed,fi=e.store.state.isLive$,Xe=e.store.state.isPlaying$,Mt=e.store.state.crashed$,ao=e.store.webApi.annotationsApi,Zt=e.store.webApi.pictureInPictureApi,Fn=e.store.state.currentSubtitle$,Zi=e.store.state.currentSubtitleCaptions$,Po=e.store.ui.playerSize,ci=e.store.ui.is3DVideo,St=e.store.ui.icon3DVideoVisible,Vi=e.store.state.isInteractive,Oo=e.store.state.isInteractiveTime$,ui=e.store.state.isInteractiveExpectation$,Ho=e.store.state.hasInteractiveBranches,Di=e.store.ui.touched,So=e.store.ui.modals.hotKeyMap.data,Oi=e.store.ui.modals.hotKeyMap.show,Un=e.store.ui.overlayContainer$,lo=e.store.ui.controls.interactiveTimeIndicator,Tn=e.store.state.showInteractiveTimeIndicator,Ao=e.store.ui.contextMenu.position$,Mo=e.store.actions.internal.setQuality,In=e.store.actions.internal.closeSettingsMenu,Cr=e.store.ui.autoplayNextEnabled$,lr=e.store.ui.userActionsDisabled,kn=e.store.ui.isControlsAvailable,{fakeIsPlaying$:dn,notifications$:zn,graphIsOpened$:pt}=no(),co=X(void 0),Fo=X(void 0),En=X(void 0),Lo=X(void 0),Uo,qn,Vo;So.set(_h());let{closeNotification:Wn,notificationsToShow$:cn}=zn,Kn=v(()=>!!n().slow_video),zo=()=>Wn("slow_video"),uo=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),wi=X(void 0),un=ce(!1),pn,qo=ce(!1),po=ce(),Pn=ce(!1),Co=X(!1),Hi=X(!1),dr=X(!1),Ro=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Qn=v(()=>p()&&!m()&&!(r(Co)||r(Hi))&&!(r(dr)&&!y())),An=!0,Gn=v(()=>e.uiConfig.features.thumbTimer&&ht()&&a()==="video"&&!u()&&!l()&&!Vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),cr=v(()=>a()==="video"&&!w()&&b()),fn=X(!1),Tr=v(()=>(tt()||e.showAutoplayNext&&C())&&!!te()&&!!Re()&&(e.showAds&&T()||!e.showAds)&&I()&&!l()&&!r(fn)),ur=v(()=>M()&&!(u()||r(Tr))&&!p()&&P()),Yn=X(!1),Ir=v(()=>k()!==null),{toggle:kr}=dn,mn=!1,Kt=null;Zt==null||Zt.setContext(Sl());let mt=()=>{e.autoplay&&!Vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&ni(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:mt});let Bt=()=>{window.clearTimeout(Uo),qo.set(!1)},ai=()=>{window.clearTimeout(qn),po.set(null)},ni=fe=>{Bt(),qo.set(!0),Uo=window.setTimeout(()=>qo.set(!1),fe);let yt=fe-100;pn=window.setTimeout(()=>{R()&&un.set(!1)},yt>0?yt:fe)},fo=(fe,yt)=>{ai(),po.set(yt),qn=window.setTimeout(()=>po.set(null),fe)},To=ci.subscribe(fe=>{St.set(fe),fe&&(window.clearTimeout(Vo),Vo=window.setTimeout(()=>St.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Io=async()=>{var yt,li,pi,xi;let fe=vs();if(fe){let He=Dl(),Lt=et();fe=He===Lt||He===Ke()}if(fe){ni(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Zt==null?void 0:Zt.remove())}catch(He){qt({message:String(He)})}}Ni.set(fe),e.store.getAdmanWrapper().setFullscreen(fe),b()?(li=(yt=e.store.callbacks)==null?void 0:yt.onFullscreenEnter)==null||li.call(yt):(xi=(pi=e.store.callbacks)==null?void 0:pi.onFullscreenExit)==null||xi.call(pi)},Wo=fe=>{let{width:yt,height:li}=fe.target;Po.set({width:yt,height:li})},Ko=()=>{let{width:fe,height:yt}=r(co).getBoundingClientRect();Po.set({width:fe,height:yt})};Ht(()=>{var yt;return Pc(Io),e.uiConfig.features.annotationsInside&&(ao==null||ao.init(r(co))),Ys(Zt)&&(Zt==null||Zt.assignPlayerContainer(r(co)),Zt==null||Zt.registryExternalEventHandlers({resize:Wo,leavepictureinpicture:Ko})),e.interactiveContainer&&((yt=ct().parentElement)==null||yt.insertBefore(e.interactiveContainer,ct().nextSibling)),()=>{window.clearTimeout(Uo),window.clearTimeout(pn),window.clearTimeout(qn),window.clearTimeout(Vo),To(),Zt==null||Zt.dispose().catch(li=>{qt({message:String(li)})}),Ac(Io)}});let et=()=>{let fe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Le()?r(co):Le(),yt=fe.getRootNode(),li=yt instanceof ShadowRoot?yt.host:yt,pi=Je()instanceof HTMLElement&&Je().contains(li);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&pi?Je():fe},Pt=async()=>{vs()?(await Ec(document),qt({message:"exit fullscreen"})):(qt({message:"request fullscreen"}),await kc(et()))},mi=()=>{In(),wo.set(!1)},Fi=fe=>{w()||(fe.preventDefault(),wo.set(!0),Ao.set({left:fe.clientX,top:fe.clientY}))};function Qi(){Pn.set(!0),Vi||ni(e.uiConfig.controls.hideTimeoutCursor)}function vn(){Vi||(un.set(!0),ni(e.uiConfig.controls.hideTimeoutCursor))}function gn(){Pn.set(!1),D(Hi,!1),D(Co,!1),mn=!1,e.store.actions.internal.releaseCamera(),ni(e.uiConfig.controls.hideTimeout)}function Ui(fe){return fe?fe.offsetTop+Ui(fe.offsetParent):0}function ki(fe){return fe?fe.offsetLeft+ki(fe.offsetParent):0}function Qo(fe){if(W()&&Tn){let yt=fe.currentTarget,li=Ui(yt),pi=ki(yt),xi=fe.pageX-pi,He=fe.pageY-li,{left:Lt,bottom:oi,right:Xi}=W(),vo=Xi-Lt;return xi>=Lt-vo&&He<=oi+vo}}function jn(fe){if(r(co)){let yt=Ui(fe.currentTarget),li=Y().height,pi=fe.pageY-yt;if(Qo(fe)){D(Hi,!1);return}pi<40?D(Hi,!0):pi>li-40?D(Co,!0):(D(Hi,!1),m()||D(Co,!1))}}function Er(fe){jn(fe),r(Qn)||ni(e.uiConfig.controls.hideTimeoutCursor),F()&&mn&&Kt&&e.store.actions.internal.moveCameraFocusPX(Kt.clientX-fe.clientX,Kt.clientY-fe.clientY,fe.timeStamp-Kt.timeStamp),Kt=fe}let Go=fe=>{fe.preventDefault(),fe.button===0&&(mn=!0,e.store.actions.internal.holdCamera()),ni(e.uiConfig.controls.hideTimeoutCursor)},pr=fe=>{fe.preventDefault(),fe.button===0&&(Kt=fe,mn=!1,e.store.actions.internal.releaseCamera()),ni(e.uiConfig.controls.hideTimeoutCursor)},Zn=fe=>{fe.preventDefault(),An&&(qt({message:"double click on video"}),Pt(),ni(e.uiConfig.controls.hideTimeoutCursor))},fr=fe=>{var yt;if(fe.preventDefault(),Q()||m()){mi();return}if(!(I()&&!Ho)){if(r(Ir))return kr();if((yt=Ze())==null||yt.focus(),!nt()){e.firstStart(),ni(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||oe()!==b1.PLAYING)&&e.store.actions.internal.togglePlay(),ni(e.uiConfig.controls.hideTimeoutCursor)}},Xn=fe=>{mi(),Di.set(!0),ni(e.uiConfig.controls.hideTimeout),fe&&fo(e.uiConfig.controls.hideHotKeyHelpers,fe)},Pr=()=>{var fe,yt;mi(),(fe=e.store.callbacks)!=null&&fe.onOpenHotKeyMap?(yt=e.store.callbacks)==null||yt.onOpenHotKeyMap(Z()):Oi.update(li=>!li)},Jn=()=>{Di.set(!0)},Yo=e.store.ui.contextMenu.openedByBtnKeyboard$,Ar=e.store.ui.contextMenu.btnRef$,jo=X(void 0),mr=e.store.ui.contextMenu.openedByHotKey$,Fr=e.store.ui.contextMenu.lastActiveElem$;Fe(()=>{Un.set(r(wi))}),Fe(()=>{D(dr,pe(r(Ro)&&oe()!==b1.PLAYING)),r(Ro)||xt(()=>D(Ro,!0))}),Fe(()=>{Ki.set((r(dr)||I()||m()||re()||de()||Ae()||Me())&&!r(Qn)&&(a()==="video"||a()==="ads")&&!l()&&P())}),Fe(()=>{!re()&&r(Yn)&&!p()&&ni(e.uiConfig.controls.hideTimeoutCursor),xt(()=>D(Yn,pe(re())))}),Fe(()=>{r(Lo),m(),ge(),xt(()=>Qa(r(Lo),m(),ge()))}),Fe(()=>{r(jo),Q(),se(),xt(()=>Qa(r(jo),Q(),se()))}),Fe(()=>{let fe=Ee();fe&&(Q(),xt(()=>Ka(fe,Q(),Yo)))}),Fe(()=>{r(jo),Q(),ne(),xt(()=>Qa(r(jo),Q(),ne()))}),Fe(()=>{let fe=V();fe&&(Q(),xt(()=>Sh(fe,Q(),mr)))}),Fe(()=>{var fe;!xe()&&b()&&(xt(()=>so.set(!1)),(fe=Ze())==null||fe.focus())}),Fe(()=>{w()&&mi()});let at=q("video360");var Wt=nx();Tt("blur",Ns,mi);var ii=ue(Wt);ii.__mousemove=Er;var mo=h(ii);let hn=v(()=>a()==="ads"),er=v(()=>r(Ir)?kr:void 0);vt(zp(mo,{toggleFullscreen:Pt,hideContextMenu:mi,showHotKeyHelpers:Xn,showKeyMap:Pr,get isAds(){return r(hn)},get fakePlayButtonHandler(){return r(er)},get nextButtonActive(){return O()},get prevButtonActive(){return be()},children:(fe,yt)=>{var li=ix(),pi=ue(li);fa(pi,{get hideCursor(){return r(ur)},onClick:fr,onContextMenu:Fi,onMouseDown:Go,onMouseUp:pr,onDblClick:Zn,get videoContainer(){return ct()},set videoContainer(Lt){ct(Lt)}});var xi=A(pi,2);zs(xi,()=>"slot",!1,(Lt,oi)=>{Te(Lt,null,{name:pa})});var He=A(xi,2);Us(He,_e,Lt=>{var oi=tx(),Xi=ue(oi);let vo=v(()=>a()!=="thumb"||l()||Vi&&e.autoplay);da(Xi,{get hidden(){return r(vo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ur=A(Xi,2);wm(Ur,{});var Ri=A(Ur,2);{var tr=qe=>{let ri=v(()=>{var Xo;return(Xo=e.live)==null?void 0:Xo.startTime});yd(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ri)}})};B(Ri,qe=>{a()==="LiveWaitingStart"&&qe(tr)})}var Ss=A(Ri,2);{var ir=qe=>{ca(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(Ss,qe=>{a()==="LiveWaitingRecover"&&qe(ir)})}var ma=A(Ss,2);{var sl=qe=>{ca(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(ma,qe=>{a()==="LiveWaitingRecord"&&qe(sl)})}var va=A(ma,2);{var ga=qe=>{var ri=Z3();let Xo;var ks=h(ri);Ol(ks,{get adsSlotId(){return ot()},get adsParams(){return wt()},get adsPreviewParam(){return ft()},get adsAutoplayParam(){return zt()},get duration(){return ti()}}),g(ri),E(go=>Xo=J(ri,1,"ads-container svelte-jtgjmv",null,Xo,go),[()=>({hidden:a()!=="ads"})]),_(qe,ri)};B(va,qe=>{e.showAds&&nt()&&qe(ga)})}var ha=A(va,2);{var al=qe=>{let ri=v(()=>!tt()&&e.showAutoplayNext&&C());Hp(qe,{get title(){return te()},get thumb(){return Re()},get isHide(){return r(ri)},clickCloseIcon:()=>D(fn,!0)})};B(ha,qe=>{r(Tr)&&te()&&Re()&&qe(al)})}var Cs=A(ha,2);{var _a=qe=>{let ri=v(()=>!u());Xf(qe,{get title(){return e.title},get isHidden(){return r(ri)}})};B(Cs,qe=>{r(cr)&&qe(_a)})}var lt=A(Cs,2);{var $t=qe=>{let ri=v(()=>a()==="video"&&u());_d(qe,{get isShifted(){return r(ri)}})};B(lt,qe=>{F()&&qe($t)})}var Gi=A(lt,2);{var Zo=qe=>{var ri=X3(),Xo=h(ri);Nl(Xo,{"aria-label":at}),g(ri),_(qe,ri)};B(Gi,qe=>{ze()&&qe(Zo)})}var Yi=A(Gi,2);{var di=qe=>{bd(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return H()}})};B(Yi,qe=>{Ae()&&qe(di)})}var Ei=A(Yi,2);{var Ts=qe=>{la(qe,{get shifted(){return u()},get captions(){return he()},get position(){return ee()},get playerSize(){return Y()}})};B(Ei,qe=>{le().value!=="off"&&qe(Ts)})}var ba=A(Ei,2);{var vu=qe=>{var ri=J3();ri.__contextmenu=Fi,ri.__click=[j3,Q,wo,m,it,mi];var Xo=h(ri);$d(Xo,{}),g(ri),_(qe,ri)};B(ba,qe=>{l()&&qe(vu)})}var Bd=A(ba,2);{var gu=qe=>{let ri=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Xo=v(()=>a()==="ads"),ks=v(()=>e.canRewindLive&&De()!==0);hd(qe,{get bottomHidden(){return r(ri)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return r(Xo)},get canRewindLive(){return r(ks)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return At()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Rt()},get nextButtonActive(){return O()},get prevButtonActive(){return be()},get isOneVideoPlaylist(){return Ye()},customFullscreenSupported:An,toggleFullscreen:Pt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Fo)},set playerControlsWrapperRef(go){D(Fo,pe(go))},get playerControlsRef(){return r(En)},set playerControlsRef(go){D(En,pe(go))}})};B(Bd,qe=>{nt()&&qe(gu)})}var Nd=A(Bd,2);{var hu=qe=>{var ri=ex(),Xo=h(ri);let ks=v(()=>{var go;return(go=r(En))==null?void 0:go.clientHeight});Sd(Xo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ks)},returnFocus:()=>{var go;return(go=Ze())==null?void 0:go.focus()},get ref(){return r(Lo)},set ref(go){D(Lo,pe(go))}}),g(ri),_(qe,ri)};B(Nd,qe=>{!Ae()&&a()!=="ads"&&qe(hu)})}var Dd=A(Nd,2);let _u=v(()=>!r(Gn));Ul(Dd,{get isLive(){return je()},get isHidden(){return r(_u)},get isPlaying(){return we()},get position(){return ee()},get duration(){return De()}});var Is=A(Dd,2);Gf(Is,{data:po});var Od=A(Is,2);Op(Od,{get supportLink(){return e.supportLink},returnFocus:()=>{var qe;return(qe=Ze())==null?void 0:qe.focus()},get visible(){return Q()},get playerContainerRef(){return r(co)},get controlsContainerRef(){return r(Fo)},get position(){return Ve()},get menuElementRef(){return r(jo)},set menuElementRef(qe){D(jo,pe(qe))}});var ll=A(Od,2);{var Hd=qe=>{Cd(qe,{onClose:zo,onSelectAutoQuality:()=>{Mo("auto"),zo()}})};B(ll,qe=>{r(Kn)&&qe(Hd)})}var Fd=A(ll,2);{var Ud=qe=>{ea(qe,{})};B(Fd,qe=>{r(uo)&&qe(Ud)})}var $a=A(Fd,2);{var zd=qe=>{Kp(qe,{})};B($a,qe=>{Ie()&&qe(zd)})}var bu=A($a,2);{var qd=qe=>{Kl(qe,{})};B(bu,qe=>{Ue()&&qe(qd)})}_(Lt,oi)}),_(fe,li)},$$slots:{default:!0}}),fe=>Ze(fe),()=>Ze());var _n=A(mo,2);vt(_n,fe=>D(wi,fe),()=>r(wi)),g(ii),vt(ii,fe=>D(co,fe),()=>r(co));var Mn=A(ii,2);{var yi=fe=>{var yt=ox();_(fe,yt)};B(Mn,fe=>{dt()&&fe(yi)})}Tt("mouseenter",ii,Qi),Tt("mouseleave",ii,gn),Tt("click",ii,Jn,!0),Tt("focusin",ii,vn,!0),_(t,Wt),z(),o()}st(["mousemove","contextmenu","click"]);import{clientChecker as Td,PlaybackState as vx}from"@vkontakte/videoplayer-core/es2018";import{noop as gx}from"@vkontakte/videoplayer-shared/es2018";var sx=L('<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),ax=L("<div><!></div>"),lx={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;
345
345
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
346
346
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
347
347
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -357,8 +357,7 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
357
357
  100% {
358
358
  opacity: 0;
359
359
  }
360
- }.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 nu(t,e){U(e,!0),q(t,rx);let i=f(e,"seekStep",3,0),o=J(!1),n=0,a=0,s=J(pe(i())),d=$=>{$.stopPropagation(),a+=1,B(s,i()*(a-1)),a===1?e.handleSingleFirstClick($):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,B(o,!1)},300)};$n(()=>{window.clearTimeout(n)});var l=nx();l.__click=d;var p=h(l);{var m=$=>{var u=ox(),_=ue(u),w=M(_,2),y=h(w),C=h(y),T=M(C,2),E=M(T,2);g(y);var P=M(y,2),A=h(P,!0);g(P),g(w),k(I=>{var V,H,j,O;ee(_,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),ee(C,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ee(T,1,`triangle ${(j=e.side)!=null?j:""}`,"svelte-nhq2ld"),ee(E,1,`triangle ${(O=e.side)!=null?O:""}`,"svelte-nhq2ld"),ge(A,I)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b($,u)};R(p,$=>{r(o)&&$(m)})}g(l),k(()=>{var $;return ee(l,1,`double-click-area ${($=e.side)!=null?$:""}`,"svelte-nhq2ld")}),b(t,l),z()}st(["click"]);var sx=(t,e,i)=>{e(!1),i()},ax=L('<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),lx={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 xm(t,e){U(e,!0),q(t,lx);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,$=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,_=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),_()};Ot(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Fe(),T=ue(C);{var E=P=>{var A=ax(),I=M(ue(A),2),V=h(I),H=h(V),j=h(H,!0);g(H);var O=M(H,2);Js(O,{onClick:y}),g(V);var X=M(V,2);X.__click=[sx,p,$];var ne=h(X),Y=h(ne),fe=h(Y);let le;var Me=M(fe,2);{var Ae=re=>{Gl(re,{get isRunning(){return a()},onTimerEnded:w})};R(Me,re=>{n()&&re(Ae)})}g(Y),g(ne);var me=M(ne,2),ae=h(me),Pe=h(ae,!0);g(ae),g(me),g(X),g(I),k((re,D)=>{ge(j,re),tt(Y,`background-image: url('${e.thumb}')`),le=ee(fe,1,"thumb-overlay svelte-1qdxi6t",null,le,D),ge(Pe,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),z(),o()}st(["click"]);import{clientChecker as dx}from"@vkontakte/videoplayer-core/es2018";var h1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ot(()=>{dx.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),$n(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as cx}from"@vkontakte/videoplayer-core/es2018";var ru=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 ux}from"@vkontakte/videoplayer-core/es2018";var _1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,p=()=>e().querySelector("video"),m=()=>ux.device.isIOS&&we(s)===cx.DASH_LIVE_CMAF,$=()=>{l==null||l(),l=null},u=_=>{if($(),!m()||!_)return;let w=p();if(!w)return;let y=new ru(w),C=we(d),T=we(a),E=we(n);for(let I of C)T.some(H=>H.value===I.id)&&y.attach(I,E.value===I.id);let P=d.subscribe(I=>{for(let V of I)y.updateSrc(V)}),A=()=>{let I=y.getCurrentShowingId();o(we(a).find(V=>V.value===I))};w.textTracks.addEventListener("change",A),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};Ot(()=>i.subscribe(u)),$n($)};var mx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},vx=L("<!> <!>",1),gx=L("<div><!></div>"),hx=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),_x=L("<div><!></div>"),bx=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),$x=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),yx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),xx={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .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-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}
361
- .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {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 wm(t,e){var Ei,Eo;U(e,!0),q(t,xx);let[i,o]=Be(),n=()=>S(Re,"$playerPhase",i),a=()=>S(Oi,"$isLoaderVisible",i),s=()=>S(je,"$adPlaybackState",i),d=()=>S(fi,"$crashed",i),l=()=>S(nt,"$notificationsToShow$",i),p=()=>S(at,"$playbackState$",i),m=()=>S(Oe,"$graphIsOpened$",i),$=()=>S(kt,"$interactiveHideMobileControls",i),u=()=>S(co,"$isEnded$",i),_=()=>S(St,"$isInteractiveExpectation$",i),w=()=>S(qe,"$controlsVisible",i),y=()=>S(di,"$touched",i),C=()=>S(ji,"$autoplayNextEnabled$",i),T=()=>S(gt,"$postrollPassed",i),E=()=>S(zo,"$bottomNoSmooth",i),P=()=>S(uo,"$videoSize",i),A=()=>S(Gi,"$playerSize",i),I=()=>S(_t,"$isFullscreen",i),V=()=>S(Ze,"$position$",i),H=()=>S(lt,"$duration$",i),j=()=>S(So,"$loadedMetadata",i),O=()=>S(ni,"$settingsMenuVisible",i),X=()=>S(ri,"$scrubbingInProgress",i),ne=()=>S(Bi,"$volumeChangingInProgress",i),Y=()=>S(Lo,"$chromecastConnected$",i),fe=()=>S(li,"$isInteractiveTime$",i),le=()=>S(Hi,"$isActiveLive",i),Me=()=>S(Zt,"$settingsMenuOpenedByKeyboard",i),Ae=()=>S(et,"$language$",i),me=()=>S(Vo,"$disabledControls$",i),ae=()=>S(Un,"$is3DVideo",i),Pe=()=>S(Fi,"$icon3DVideoVisible",i),re=()=>S(ot,"$chromecastDeviceName$",i),D=()=>S(wt,"$currentSubtitle$",i),Ve=()=>S(Ut,"$currentSubtitleCaptions$",i),te=()=>S(Jt,"$realDuration$",i),Qe=()=>S(Xt,"$isLive$",i),ie=()=>S(si,"$isPlaying$",i),Q=()=>S(Ki,"$debugPanelVisible",i),W=f(e,"videoContainer",15),Le=f(e,"adsSlotId",3,void 0),Ne=f(e,"adsParams",3,void 0),Xe=f(e,"adsPreviewParam",3,void 0),ye=f(e,"adsAutoplayParam",3,void 0),xe=f(e,"duration",3,void 0),De=f(e,"logoTargetUrl",3,""),Ye=f(e,"showNextPrevButtons",3,!1),it=f(e,"nextButtonActive",3,!1),vt=f(e,"prevButtonActive",3,!1),Je=f(e,"endScreenVideoTitle",3,void 0),ft=f(e,"endScreenVideoThumb",3,void 0),It=f(e,"isOneVideoPlaylist",3,!1),Wt=f(e,"shadowRootContainer",3,void 0),Ft=f(e,"outerContainerRef",3,void 0),qt=f(e,"showMiniTimer",3,!1),ve=f(e,"fullScreenTarget",3,void 0),G=f(e,"playerStarted",3,!1),Te=f(e,"showEndScreen",3,!0),{notifications$:se,graphIsOpened$:Oe}=lo(),ze=e.store.getLogger().createComponentLog("Root component"),et=e.store.interfaceLanguage$,at=e.store.state.playbackState$,je=e.store.ads.playbackState,Ze=e.store.state.positionWithScrubbing$,lt=e.store.state.duration$,Re=e.store.playerPhase,_t=e.store.ui.isFullscreen,qe=e.store.ui.controlsVisible,kt=e.store.ui.interactiveHideMobileControls,ni=e.store.ui.settingsMenu.visible$,Zt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ri=e.store.ui.scrubbingInProgress,Bi=e.store.ui.volumeChangingInProgress,Ki=e.store.ui.debugPanelVisible,Oi=e.store.state.isLoaderVisible,co=e.store.state.isEnded$,Lo=e.store.state.chromecastConnected$,ot=e.store.state.chromecastDeviceName$,gt=e.store.ads.postrollPassed,xi=e.store.ui.mobileUnmuteButtonExpanded,Z=e.store.ui.mobileUnmuteButtonVisible,Xt=e.store.state.isLive$,si=e.store.state.isPlaying$,Hi=e.store.state.isActiveLive$,ti=e.store.state.isRewindableLive$,fi=e.store.state.crashed$,ai=e.store.webApi.annotationsApi,ct=e.store.webApi.pictureInPictureApi,uo=e.store.state.videoSize$,wt=e.store.state.currentSubtitle$,Ut=e.store.state.currentSubtitleCaptions$,Jt=e.store.state.duration$,Gi=e.store.ui.playerSize,Un=e.store.ui.is3DVideo,Fi=e.store.ui.icon3DVideoVisible,xo=e.store.state.isInteractive,li=e.store.state.isInteractiveTime$,St=e.store.state.isInteractiveExpectation$,po=e.store.state.hasInteractiveBranches,Vo=e.store.ui.controls.disabledControls$,di=e.store.ui.touched,wo=e.store.ui.overlayContainer$,ji=e.store.ui.autoplayNextEnabled$,So=e.store.state.loadedMetadata$,Ro=e.store.actions.internal.closeSettingsMenu,wn=(Ei=e.store.callbacks)==null?void 0:Ei.onDisabledPlayPrevChapterClick,Vi=(Eo=e.store.callbacks)==null?void 0:Eo.onDisabledSeekToInteractiveClick,Sn=e.store.actions.internal.setQuality,Yi=J(void 0),Co=J(void 0),yr=J(void 0),rr=J(void 0),Cn,zn,qn,fo=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),dn=J(void 0),{closeNotification:Tn,notificationsToShow$:nt}=se,In=v(()=>!!l().slow_video),Uo=()=>Tn("slow_video"),zo=ce(!1),xr,qo=J(!1),kn=v(()=>p()!==px.PLAYING),Wn=J(!1),En=v(()=>m()||$()||!r(qo)&&(u()&&!!po||r(kn)&&_())),Wo=J(!0),Ui=v(()=>e.uiConfig.features.thumbTimer&&qt()&&n()==="video"&&!w()&&!d()&&!xo&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Zi=J(!1),To=v(()=>(Te()||e.showAutoplayNext&&C())&&!!Je()&&!!ft()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(Zi)),cn=J(!1);ct==null||ct.setContext(Cl());let Ko=rt=>{clearTimeout(zn),rt&&(Z.set(!0),xi.set(!0),zn=setTimeout(()=>{xi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),xo||ki(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Ko});let Qo=()=>{clearTimeout(Cn),B(qo,!1),$()&&kt.set(!1)},ki=rt=>{Qo(),B(qo,!0),Cn=setTimeout(()=>B(qo,!1),rt);let Lt=rt-100;xr=setTimeout(()=>{E()&&zo.set(!1)},Lt>0?Lt:rt)},No=Un.subscribe(rt=>{Fi.set(rt),rt&&(clearTimeout(qn),qn=setTimeout(()=>Fi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Io=async(rt=vs())=>{var Lt,ui,Ri,mo,$i,Pi;if(rt&&!Id.device.isIOS){let vi=Ol(),Po=Do(),Xi=Id.browser.isSamsungBrowser&&vi===Wt();rt=vi===Po||Xi}if(rt){ki(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ct==null?void 0:ct.remove())}catch(vi){ze({message:String(vi)})}try{let vi=(Lt=P())!=null&&Lt.width&&((ui=P())!=null&&ui.height)?P():A();await fh(vi)}catch(vi){ze({message:String(vi)})}}_t.set(rt),e.store.getAdmanWrapper().setFullscreen(rt),I()?(mo=(Ri=e.store.callbacks)==null?void 0:Ri.onFullscreenEnter)==null||mo.call(Ri):(Pi=($i=e.store.callbacks)==null?void 0:$i.onFullscreenExit)==null||Pi.call($i)},sr=rt=>{let Lt=rt;Gi.set({width:Lt.target.width,height:Lt.target.height})};Ot(()=>{var rt;return Pc(Io),e.uiConfig.features.annotationsInside&&(ai==null||ai.init(r(Yi))),Ys(ct)&&(ct==null||ct.assignPlayerContainer(r(Yi)),ct==null||ct.registryExternalEventHandlers({resize:sr})),B(Wo,!Id.device.isIphoneOrOldIpad),e.interactiveContainer&&((rt=W().parentElement)==null||rt.insertBefore(e.interactiveContainer,W().nextSibling)),()=>{clearTimeout(Cn),clearTimeout(xr),clearTimeout(zn),clearTimeout(qn),No(),ct==null||ct.dispose().catch(Lt=>{ze({message:String(Lt)})}),Ac(Io)}});let un=J(!0),pn=J(!0),wr=rt=>{let Lt=V()+(rt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Lt<0?(B(un,!1),Lt=0):Lt>=H()&&(B(pn,!1),Lt=H()),B(Wn,!0),e.seekTime(Lt)},Do=()=>{let rt=Id.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ft()?r(Yi):Ft(),Lt=rt.getRootNode(),ui=Lt instanceof ShadowRoot?Lt.host:Lt,Ri=ve()instanceof HTMLElement&&ve().contains(ui);return e.uiConfig.allowChangingFullscreenTarget&&ve()&&Ri?ve():rt},Sr=async()=>{try{if(vs())await Ec(document),ze({message:"exit fullscreen"});else{if(ze({message:"request fullscreen"}),Id.device.isIOS&&!j())return;await kc(Do())}}catch(rt){ze({message:String(rt)})}},Pn=()=>{Ro()},Kn=rt=>{if(rt.preventDefault(),O()){Pn();return}if(!G()){e.firstStart(),ki(e.uiConfig.controls.hideTimeoutCursor);return}B(Wn,!1),w()?Qo():ki(e.uiConfig.controls.hideTimeoutMobile)},ar=()=>{di.set(!0)},Cr=()=>{xo||(zo.set(!0),ki(e.uiConfig.controls.hideTimeoutCursor))},Qn=rt=>{wn&&(wn(rt),ki(e.uiConfig.controls.hideTimeoutMobile))},fn=rt=>{Vi&&(Vi(rt),ki(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{wo.set(r(dn))}),Ue(()=>{qe.set((r(kn)||O()||X()||ne()||Y()||!r(To)&&(u()||r(qo)&&!r(Wn)))&&!r(En)&&n()==="video"&&!d())}),Ue(()=>{!X()&&r(cn)&&!fe()&&ki(e.uiConfig.controls.hideTimeoutMobile),B(cn,pe(X()))}),Ue(()=>{B(un,V()>0),B(pn,pe(!le()&&V()<H()))}),Ue(()=>{qa(r(rr),O(),Me())});let Tr=F("aria_label_video_player"),ci=F("video360");h1({fullScreenChangeHandler:Io,getFullscreenTarget:Do}),_1({store:e.store,getFullscreenTarget:Do});var ko=yx();xt("blur",Bs,Pn),He(ko,"aria-label",Tr);var wi=h(ko);ma(wi,{onClick:Kn,get videoContainer(){return W()},set videoContainer(rt){W(rt)}});var Gn=M(wi,2);qs(Gn,()=>"slot",!1,(rt,Lt)=>{Ce(rt,null,{name:fa})});var ut=M(Gn,2);zs(ut,Ae,rt=>{var Lt=$x(),ui=ue(Lt);let Ri=v(()=>n()!=="thumb"||d()||xo&&e.autoplay);ca(ui,{get hidden(){return r(Ri)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var mo=M(ui,2);{var $i=Ie=>{var Et=vx(),jt=ue(Et);{var yi=Qi=>{let Mr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);nu(Qi,{side:"left",get seekStep(){return r(Mr)},handleSingleFirstClick:Kn,handleSecondClick:()=>wr("backward")})};R(jt,Qi=>{r(un)&&Qi(yi)})}var ei=M(jt,2);{var Ar=Qi=>{let Mr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);nu(Qi,{side:"right",get seekStep(){return r(Mr)},handleSingleFirstClick:Kn,handleSecondClick:()=>wr("forward")})};R(ei,Qi=>{r(pn)&&Qi(Ar)})}b(Ie,Et)};R(mo,Ie=>{e.canRewindLive&&ti&&!me().has("TIMELINE")&&Ie($i)})}var Pi=M(mo,2);{var vi=Ie=>{let Et=v(()=>{var jt;return(jt=e.live)==null?void 0:jt.startTime});xd(Ie,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Et)}})};R(Pi,Ie=>{n()==="LiveWaitingStart"&&Ie(vi)})}var Po=M(Pi,2);{var Xi=Ie=>{ua(Ie,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Po,Ie=>{n()==="LiveWaitingRecover"&&Ie(Xi)})}var Ji=M(Po,2);{var mn=Ie=>{ua(Ie,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ji,Ie=>{n()==="LiveWaitingRecord"&&Ie(mn)})}var jn=M(Ji,2);{var lr=Ie=>{var Et=gx();let jt;var yi=h(Et);Hl(yi,{get adsSlotId(){return Le()},get adsParams(){return Ne()},get adsPreviewParam(){return Xe()},get adsAutoplayParam(){return ye()},get duration(){return xe()}}),g(Et),k(ei=>jt=ee(Et,1,"ads-container svelte-dtyj47",null,jt,ei),[()=>({hidden:n()!=="ads"})]),b(Ie,Et)};R(jn,Ie=>{e.showAds&&G()&&Ie(lr)})}var Yn=M(jn,2);{var Ir=Ie=>{let Et=v(()=>!Te()&&e.showAutoplayNext&&C());xm(Ie,{get title(){return Je()},get thumb(){return ft()},get isHide(){return r(Et)},clickCloseIcon:()=>B(Zi,!0)})};R(Yn,Ie=>{r(To)&&Je()&&ft()&&Ie(Ir)})}var dr=M(Yn,2);{var vn=Ie=>{bd(Ie,{})};R(dr,Ie=>{ae()&&Ie(vn)})}var An=M(dr,2);{var Go=Ie=>{var Et=hx(),jt=h(Et);Bl(jt,{"aria-label":ci}),g(Et),b(Ie,Et)};R(An,Ie=>{Pe()&&Ie(Go)})}var jo=M(An,2);{var Zn=Ie=>{$d(Ie,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};R(jo,Ie=>{Y()&&Ie(Zn)})}var kr=M(jo,2);{var Er=Ie=>{da(Ie,{get shifted(){return w()},get captions(){return Ve()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(kr,Ie=>{D().value!=="off"&&Ie(Er)})}var cr=M(kr,2);{var vo=Ie=>{var Et=_x();Et.__click=[mx,O,ni,Pn];var jt=h(Et);yd(jt,{}),g(Et),b(Ie,Et)};R(cr,Ie=>{d()&&Ie(vo)})}var Mn=M(cr,2);{var Xn=Ie=>{let Et=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),jt=v(()=>n()==="ads"),yi=v(()=>e.canRewindLive&&te()!==0);_d(Ie,{get bottomHidden(){return r(Et)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(jt)},get canRewindLive(){return r(yi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return De()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ye()},get nextButtonActive(){return it()},get prevButtonActive(){return vt()},get isOneVideoPlaylist(){return It()},get customFullscreenSupported(){return r(Wo)},get endScreenShown(){return r(To)},toggleFullscreen:Sr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Qn,onDisabledSeekToInteractiveClick:fn,get playerControlsWrapperRef(){return r(Co)},set playerControlsWrapperRef(ei){B(Co,pe(ei))},get playerControlsRef(){return r(yr)},set playerControlsRef(ei){B(yr,pe(ei))}})};R(Mn,Ie=>{G()&&Ie(Xn)})}var Pr=M(Mn,2);{var dt=Ie=>{var Et=bx(),jt=h(Et);Cd(jt,{get supportLink(){return e.supportLink},returnFocus:fx,get ref(){return r(rr)},set ref(yi){B(rr,pe(yi))}}),g(Et),b(Ie,Et)};R(Pr,Ie=>{O()&&Ie(dt)})}var Bt=M(Pr,2);let Ai=v(()=>!r(Ui));zl(Bt,{get isLive(){return Qe()},get isHidden(){return r(Ai)},get isPlaying(){return ie()},get position(){return V()},get duration(){return H()}});var $e=M(Bt,2);{var Ct=Ie=>{ta(Ie,{})};R($e,Ie=>{r(fo)&&Ie(Ct)})}var mi=M($e,2);{var Si=Ie=>{Ql(Ie,{})};R(mi,Ie=>{Q()&&Ie(Si)})}var eo=M(mi,2);{var pi=Ie=>{Td(Ie,{onClose:Uo,onSelectAutoQuality:()=>{Sn("auto"),Uo()}})};R(eo,Ie=>{r(In)&&Ie(pi)})}b(rt,Lt)});var Dt=M(ut,2);pt(Dt,rt=>B(dn,rt),()=>r(dn)),g(ko),pt(ko,rt=>B(Yi,rt),()=>r(Yi)),xt("click",ko,ar,!0),xt("focusin",ko,Cr,!0),b(t,ko),z(),o()}st(["click"]);function su(t){let e="";return Fn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Fn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Fn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Fn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Fn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Fn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Fn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Fn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Fn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Fn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Fn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Fn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Fn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Fn(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as wx}from"@vkontakte/videoplayer-shared/es2018";var Sx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Cx={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 Sm(t,e){U(e,!0),q(t,Cx);let[i,o]=Be(),n=()=>S(ne,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(j,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(E,"$crashed$",i),m=()=>S(V,"$currentSubtitle$",i),$=()=>S(H,"$currentSubtitleCaptions$",i),u=()=>S(A,"$positionExact$",i),_=()=>S(O,"$isLive$",i),w=()=>S(X,"$isRewindableLive$",i),y=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:P,positionExact$:A,isPlaying$:I,currentSubtitle$:V,currentSubtitleCaptions$:H,positionWithScrubbing$:j,isLive$:O,isRewindableLive$:X},ui:{playerSize:ne,controls:Y},actions:{internal:{getVideoElement:fe}}}=Se(),le=8,Me=J(!1),Ae=pe({}),me=()=>{B(Me,!0)},ae=()=>{B(Me,!1)},Pe=wx(Za,260);Ue(()=>{n(),Pe(fe(),Y,Ae,r(Me))});let re=v(()=>a()?ln(s()-d()):ln(isFinite(s())?s():y()));var D=Sx(),Ve=h(D);ma(Ve,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(De){C(De)}});var te=M(Ve,2);qs(te,()=>"slot",!1,(De,Ye)=>{Ce(De,null,{name:fa})});var Qe=M(te,2);let ie=v(()=>l()!=="thumb"||p());ca(Qe,{get hidden(){return r(ie)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Q=M(Qe,2);{var W=De=>{da(De,{shifted:!1,get captions(){return $()},get position(){return u()},get playerSize(){return n()}})};R(Q,De=>{m().value!=="off"&&De(W)})}var Le=M(Q,2),Ne=h(Le);Ul(Ne,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(re)}}),g(Le);var Xe=M(Le,2);let ye;var xe=h(Xe);na(xe,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Ae.timeline},set ref(De){Ae.timeline=De}}),g(Xe),g(D),k(De=>ye=ee(Xe,1,"timeline svelte-1qfjf44",null,ye,De),[()=>({visible:r(Me)})]),xt("mouseenter",D,me),xt("mouseleave",D,ae),b(t,D),z(),o()}var Ex=L("<div><!></div>"),Px={hash:"svelte-7ed4yj",code:`.root.svelte-7ed4yj {--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;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px 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;
360
+ }.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 ru(t,e){U(e,!0),K(t,lx);let i=f(e,"seekStep",3,0),o=X(!1),n=0,a=0,s=X(pe(i())),d=y=>{y.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(y):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};wn(()=>{window.clearTimeout(n)});var l=ax();l.__click=d;var p=h(l);{var m=y=>{var u=sx(),$=ue(u),w=A($,2),b=h(w),C=h(b),T=A(C,2),I=A(T,2);g(b);var M=A(b,2),P=h(M,!0);g(M),g(w),E(k=>{var R,W,Y,F;J($,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),J(C,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),J(I,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),me(P,k)},[()=>q("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),_(y,u)};B(p,y=>{r(o)&&y(m)})}g(l),E(()=>{var y;return J(l,1,`double-click-area ${(y=e.side)!=null?y:""}`,"svelte-nhq2ld")}),_(t,l),z()}st(["click"]);var dx=(t,e,i)=>{e(!1),i()},cx=L('<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),ux={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 Cm(t,e){U(e,!0),K(t,ux);let[i,o]=Ne(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Ce(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,m=s.actions.internal.nextVideoAnnouncementShow,y=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},b=()=>{e.clickCloseIcon(),$()};Ht(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Oe(),T=ue(C);{var I=M=>{var P=cx(),k=A(ue(P),2),R=h(k),W=h(R),Y=h(W,!0);g(W);var F=A(W,2);Xs(F,{onClick:b}),g(R);var Q=A(R,2);Q.__click=[dx,p,y];var oe=h(Q),Z=h(oe),re=h(Z);let de;var Ae=A(re,2);{var Me=ne=>{Ql(ne,{get isRunning(){return a()},onTimerEnded:w})};B(Ae,ne=>{n()&&ne(Me)})}g(Z),g(oe);var ge=A(oe,2),se=h(ge),Ee=h(se,!0);g(se),g(ge),g(Q),g(k),E((ne,V)=>{me(Y,ne),rt(Z,`background-image: url('${e.thumb}')`),de=J(re,1,"thumb-overlay svelte-1qdxi6t",null,de,V),me(Ee,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),_(M,P)};B(T,M=>{e.isHide||M(I)})}_(t,C),z(),o()}st(["click"]);import{clientChecker as px}from"@vkontakte/videoplayer-core/es2018";var $1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ht(()=>{px.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),wn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as fx}from"@vkontakte/videoplayer-core/es2018";var su=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 mx}from"@vkontakte/videoplayer-core/es2018";var y1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,p=()=>e().querySelector("video"),m=()=>mx.device.isIOS&&Se(s)===fx.DASH_LIVE_CMAF,y=()=>{l==null||l(),l=null},u=$=>{if(y(),!m()||!$)return;let w=p();if(!w)return;let b=new su(w),C=Se(d),T=Se(a),I=Se(n);for(let k of C)T.some(W=>W.value===k.id)&&b.attach(k,I.value===k.id);let M=d.subscribe(k=>{for(let R of k)b.updateSrc(R)}),P=()=>{let k=b.getCurrentShowingId();o(Se(a).find(R=>R.value===k))};w.textTracks.addEventListener("change",P),l=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",P)}};Ht(()=>i.subscribe(u)),wn(y)};var hx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},_x=L("<!> <!>",1),bx=L("<div><!></div>"),$x=L('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),yx=L("<div><!></div>"),xx=L('<div class="settings-mobile svelte-7yl31d"><!></div>'),wx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Sx=L('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Cx={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 Tm(t,e){var Wo,Ko;U(e,!0),K(t,Cx);let[i,o]=Ne(),n=()=>S(Ze,"$playerPhase",i),a=()=>S(Ki,"$isLoaderVisible",i),s=()=>S(Je,"$adPlaybackState",i),d=()=>S(ut,"$crashed",i),l=()=>S(Lo,"$notificationsToShow$",i),p=()=>S(nt,"$playbackState$",i),m=()=>S(Ye,"$graphIsOpened$",i),y=()=>S(Jt,"$interactiveHideMobileControls",i),u=()=>S(it,"$isEnded$",i),$=()=>S(Oo,"$isInteractiveExpectation$",i),w=()=>S(_t,"$controlsVisible",i),b=()=>S(Di,"$touched",i),C=()=>S(Oi,"$autoplayNextEnabled$",i),T=()=>S(ji,"$postrollPassed",i),I=()=>S(Vo,"$bottomNoSmooth",i),M=()=>S(Mt,"$videoSize",i),P=()=>S(Zi,"$playerSize",i),k=()=>S(qt,"$isFullscreen",i),R=()=>S(ht,"$position$",i),W=()=>S(tt,"$duration$",i),Y=()=>S(Un,"$loadedMetadata",i),F=()=>S(Qe,"$settingsMenuVisible",i),Q=()=>S(Mi,"$scrubbingInProgress",i),oe=()=>S(Ni,"$volumeChangingInProgress",i),Z=()=>S(bt,"$chromecastConnected$",i),re=()=>S($i,"$isControlsAvailable",i),de=()=>S(Vi,"$isInteractiveTime$",i),Ae=()=>S(Li,"$isActiveLive",i),Me=()=>S(Yt,"$settingsMenuOpenedByKeyboard",i),ge=()=>S(Le,"$language$",i),se=()=>S(Ho,"$disabledControls$",i),Ee=()=>S(Po,"$is3DVideo",i),ne=()=>S(ci,"$icon3DVideoVisible",i),V=()=>S(Ii,"$chromecastDeviceName$",i),xe=()=>S(ao,"$currentSubtitle$",i),_e=()=>S(Zt,"$currentSubtitleCaptions$",i),ze=()=>S(Fn,"$realDuration$",i),H=()=>S(jt,"$isLive$",i),le=()=>S(vi,"$isPlaying$",i),he=()=>S(so,"$debugPanelVisible",i),ee=f(e,"videoContainer",15),De=f(e,"adsSlotId",3,void 0),je=f(e,"adsParams",3,void 0),we=f(e,"adsPreviewParam",3,void 0),Ve=f(e,"adsAutoplayParam",3,void 0),Ie=f(e,"duration",3,void 0),Ue=f(e,"logoTargetUrl",3,""),dt=f(e,"showNextPrevButtons",3,!1),ct=f(e,"nextButtonActive",3,!1),ot=f(e,"prevButtonActive",3,!1),wt=f(e,"endScreenVideoTitle",3,void 0),ft=f(e,"endScreenVideoThumb",3,void 0),zt=f(e,"isOneVideoPlaylist",3,!1),ti=f(e,"shadowRootContainer",3,void 0),At=f(e,"outerContainerRef",3,void 0),Rt=f(e,"showMiniTimer",3,!1),O=f(e,"fullScreenTarget",3,void 0),be=f(e,"playerStarted",3,!1),te=f(e,"showEndScreen",3,!0),{notifications$:Re,graphIsOpened$:Ye}=no(),Ke=e.store.getLogger().createComponentLog("Root component"),Le=e.store.interfaceLanguage$,nt=e.store.state.playbackState$,Je=e.store.ads.playbackState,ht=e.store.state.positionWithScrubbing$,tt=e.store.state.duration$,Ze=e.store.playerPhase,qt=e.store.ui.isFullscreen,_t=e.store.ui.controlsVisible,$i=e.store.ui.isControlsAvailable,Jt=e.store.ui.interactiveHideMobileControls,Qe=e.store.ui.settingsMenu.visible$,Yt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Mi=e.store.ui.scrubbingInProgress,Ni=e.store.ui.volumeChangingInProgress,so=e.store.ui.debugPanelVisible,Ki=e.store.state.isLoaderVisible,it=e.store.state.isEnded$,bt=e.store.state.chromecastConnected$,Ii=e.store.state.chromecastDeviceName$,ji=e.store.ads.postrollPassed,wo=e.store.ui.mobileUnmuteButtonExpanded,j=e.store.ui.mobileUnmuteButtonVisible,jt=e.store.state.isLive$,vi=e.store.state.isPlaying$,Li=e.store.state.isActiveLive$,si=e.store.state.isRewindableLive$,ut=e.store.state.crashed$,fi=e.store.webApi.annotationsApi,Xe=e.store.webApi.pictureInPictureApi,Mt=e.store.state.videoSize$,ao=e.store.state.currentSubtitle$,Zt=e.store.state.currentSubtitleCaptions$,Fn=e.store.state.duration$,Zi=e.store.ui.playerSize,Po=e.store.ui.is3DVideo,ci=e.store.ui.icon3DVideoVisible,St=e.store.state.isInteractive,Vi=e.store.state.isInteractiveTime$,Oo=e.store.state.isInteractiveExpectation$,ui=e.store.state.hasInteractiveBranches,Ho=e.store.ui.controls.disabledControls$,Di=e.store.ui.touched,So=e.store.ui.overlayContainer$,Oi=e.store.ui.autoplayNextEnabled$,Un=e.store.state.loadedMetadata$,lo=e.store.actions.internal.closeSettingsMenu,Tn=(Wo=e.store.callbacks)==null?void 0:Wo.onDisabledPlayPrevChapterClick,Ao=(Ko=e.store.callbacks)==null?void 0:Ko.onDisabledSeekToInteractiveClick,Mo=e.store.actions.internal.setQuality,In=X(void 0),Cr=X(void 0),lr=X(void 0),kn=X(void 0),dn,zn,pt,co=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Fo=X(void 0),{closeNotification:En,notificationsToShow$:Lo}=Re,Uo=v(()=>!!l().slow_video),qn=()=>En("slow_video"),Vo=ce(!1),Wn,cn=X(!1),Kn=v(()=>p()!==vx.PLAYING),zo=X(!1),uo=v(()=>m()||y()||!r(cn)&&(u()&&!!ui||r(Kn)&&$())),wi=X(!0),un=v(()=>e.uiConfig.features.thumbTimer&&Rt()&&n()==="video"&&!w()&&!d()&&!St&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),pn=X(!1),qo=v(()=>(te()||e.showAutoplayNext&&C())&&!!wt()&&!!ft()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(pn)),po=X(!1);Xe==null||Xe.setContext(Sl());let Pn=et=>{clearTimeout(zn),et&&(j.set(!0),wo.set(!0),zn=setTimeout(()=>{wo.set(!1)},e.uiConfig.controls.collapseMobileUnmute),St||Hi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Pn});let Co=()=>{clearTimeout(dn),D(cn,!1),y()&&Jt.set(!1)},Hi=et=>{Co(),D(cn,!0),dn=setTimeout(()=>D(cn,!1),et);let Pt=et-100;Wn=setTimeout(()=>{I()&&Vo.set(!1)},Pt>0?Pt:et)},dr=Po.subscribe(et=>{ci.set(et),et&&(clearTimeout(pt),pt=setTimeout(()=>ci.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ro=async(et=vs())=>{var Pt,mi,Fi,Qi,vn,gn;if(et&&!Td.device.isIOS){let Ui=Dl(),ki=fn(),Qo=Td.browser.isSamsungBrowser&&Ui===ti();et=Ui===ki||Qo}if(et){Hi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Xe==null?void 0:Xe.remove())}catch(Ui){Ke({message:String(Ui)})}try{let Ui=(Pt=M())!=null&&Pt.width&&((mi=M())!=null&&mi.height)?M():P();await gh(Ui)}catch(Ui){Ke({message:String(Ui)})}}qt.set(et),e.store.getAdmanWrapper().setFullscreen(et),k()?(Qi=(Fi=e.store.callbacks)==null?void 0:Fi.onFullscreenEnter)==null||Qi.call(Fi):(gn=(vn=e.store.callbacks)==null?void 0:vn.onFullscreenExit)==null||gn.call(vn)},Qn=et=>{let Pt=et;Zi.set({width:Pt.target.width,height:Pt.target.height})};Ht(()=>{var et;return Pc(Ro),e.uiConfig.features.annotationsInside&&(fi==null||fi.init(r(In))),Ys(Xe)&&(Xe==null||Xe.assignPlayerContainer(r(In)),Xe==null||Xe.registryExternalEventHandlers({resize:Qn})),D(wi,!Td.device.isIphoneOrOldIpad),e.interactiveContainer&&((et=ee().parentElement)==null||et.insertBefore(e.interactiveContainer,ee().nextSibling)),()=>{clearTimeout(dn),clearTimeout(Wn),clearTimeout(zn),clearTimeout(pt),dr(),Xe==null||Xe.dispose().catch(Pt=>{Ke({message:String(Pt)})}),Ac(Ro)}});let An=X(!0),Gn=X(!0),cr=et=>{let Pt=R()+(et==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Pt<0?(D(An,!1),Pt=0):Pt>=W()&&(D(Gn,!1),Pt=W()),D(zo,!0),e.seekTime(Pt)},fn=()=>{let et=Td.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!At()?r(In):At(),Pt=et.getRootNode(),mi=Pt instanceof ShadowRoot?Pt.host:Pt,Fi=O()instanceof HTMLElement&&O().contains(mi);return e.uiConfig.allowChangingFullscreenTarget&&O()&&Fi?O():et},Tr=async()=>{try{if(vs())await Ec(document),Ke({message:"exit fullscreen"});else{if(Ke({message:"request fullscreen"}),Td.device.isIOS&&!Y())return;await kc(fn())}}catch(et){Ke({message:String(et)})}},ur=()=>{lo()},Yn=et=>{if(et.preventDefault(),F()){ur();return}if(!be()){e.firstStart(),Hi(e.uiConfig.controls.hideTimeoutCursor);return}D(zo,!1),w()?Co():Hi(e.uiConfig.controls.hideTimeoutMobile)},Ir=()=>{Di.set(!0)},kr=()=>{St||(Vo.set(!0),Hi(e.uiConfig.controls.hideTimeoutCursor))},mn=et=>{Tn&&(Tn(et),Hi(e.uiConfig.controls.hideTimeoutMobile))},Kt=et=>{Ao&&(Ao(et),Hi(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{So.set(r(Fo))}),Fe(()=>{_t.set((r(Kn)||F()||Q()||oe()||Z()||!r(qo)&&(u()||r(cn)&&!r(zo)))&&!r(uo)&&n()==="video"&&!d()&&re())}),Fe(()=>{!Q()&&r(po)&&!de()&&Hi(e.uiConfig.controls.hideTimeoutMobile),D(po,pe(Q()))}),Fe(()=>{D(An,R()>0),D(Gn,pe(!Ae()&&R()<W()))}),Fe(()=>{Qa(r(kn),F(),Me())});let mt=q("aria_label_video_player"),Bt=q("video360");$1({fullScreenChangeHandler:Ro,getFullscreenTarget:fn}),y1({store:e.store,getFullscreenTarget:fn});var ai=Sx();Tt("blur",Ns,ur),Be(ai,"aria-label",mt);var ni=h(ai);fa(ni,{onClick:Yn,get videoContainer(){return ee()},set videoContainer(et){ee(et)}});var fo=A(ni,2);zs(fo,()=>"slot",!1,(et,Pt)=>{Te(et,null,{name:pa})});var To=A(fo,2);Us(To,ge,et=>{var Pt=wx(),mi=ue(Pt);let Fi=v(()=>n()!=="thumb"||d()||St&&e.autoplay);da(mi,{get hidden(){return r(Fi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Qi=A(mi,2);{var vn=He=>{var Lt=_x(),oi=ue(Lt);{var Xi=Ri=>{let tr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ru(Ri,{side:"left",get seekStep(){return r(tr)},handleSingleFirstClick:Yn,handleSecondClick:()=>cr("backward")})};B(oi,Ri=>{r(An)&&Ri(Xi)})}var vo=A(oi,2);{var Ur=Ri=>{let tr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ru(Ri,{side:"right",get seekStep(){return r(tr)},handleSingleFirstClick:Yn,handleSecondClick:()=>cr("forward")})};B(vo,Ri=>{r(Gn)&&Ri(Ur)})}_(He,Lt)};B(Qi,He=>{e.canRewindLive&&si&&!se().has("TIMELINE")&&He(vn)})}var gn=A(Qi,2);{var Ui=He=>{let Lt=v(()=>{var oi;return(oi=e.live)==null?void 0:oi.startTime});yd(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Lt)}})};B(gn,He=>{n()==="LiveWaitingStart"&&He(Ui)})}var ki=A(gn,2);{var Qo=He=>{ca(He,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(ki,He=>{n()==="LiveWaitingRecover"&&He(Qo)})}var jn=A(ki,2);{var Er=He=>{ca(He,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(jn,He=>{n()==="LiveWaitingRecord"&&He(Er)})}var Go=A(jn,2);{var pr=He=>{var Lt=bx();let oi;var Xi=h(Lt);Ol(Xi,{get adsSlotId(){return De()},get adsParams(){return je()},get adsPreviewParam(){return we()},get adsAutoplayParam(){return Ve()},get duration(){return Ie()}}),g(Lt),E(vo=>oi=J(Lt,1,"ads-container svelte-7yl31d",null,oi,vo),[()=>({hidden:n()!=="ads"})]),_(He,Lt)};B(Go,He=>{e.showAds&&be()&&He(pr)})}var Zn=A(Go,2);{var fr=He=>{let Lt=v(()=>!te()&&e.showAutoplayNext&&C());Cm(He,{get title(){return wt()},get thumb(){return ft()},get isHide(){return r(Lt)},clickCloseIcon:()=>D(pn,!0)})};B(Zn,He=>{r(qo)&&wt()&&ft()&&He(fr)})}var Xn=A(Zn,2);{var Pr=He=>{_d(He,{})};B(Xn,He=>{Ee()&&He(Pr)})}var Jn=A(Xn,2);{var Yo=He=>{var Lt=$x(),oi=h(Lt);Nl(oi,{"aria-label":Bt}),g(Lt),_(He,Lt)};B(Jn,He=>{ne()&&He(Yo)})}var Ar=A(Jn,2);{var jo=He=>{bd(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return V()}})};B(Ar,He=>{Z()&&He(jo)})}var mr=A(Ar,2);{var Fr=He=>{la(He,{get shifted(){return w()},get captions(){return _e()},get position(){return R()},get playerSize(){return P()},isMobile:!0})};B(mr,He=>{xe().value!=="off"&&He(Fr)})}var at=A(mr,2);{var Wt=He=>{var Lt=yx();Lt.__click=[hx,F,Qe,ur];var oi=h(Lt);$d(oi,{}),g(Lt),_(He,Lt)};B(at,He=>{d()&&He(Wt)})}var ii=A(at,2);{var mo=He=>{let Lt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),oi=v(()=>n()==="ads"),Xi=v(()=>e.canRewindLive&&ze()!==0);hd(He,{get bottomHidden(){return r(Lt)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(oi)},get canRewindLive(){return r(Xi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ue()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return dt()},get nextButtonActive(){return ct()},get prevButtonActive(){return ot()},get isOneVideoPlaylist(){return zt()},get customFullscreenSupported(){return r(wi)},get endScreenShown(){return r(qo)},toggleFullscreen:Tr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:mn,onDisabledSeekToInteractiveClick:Kt,get playerControlsWrapperRef(){return r(Cr)},set playerControlsWrapperRef(vo){D(Cr,pe(vo))},get playerControlsRef(){return r(lr)},set playerControlsRef(vo){D(lr,pe(vo))}})};B(ii,He=>{be()&&He(mo)})}var hn=A(ii,2);{var er=He=>{var Lt=xx(),oi=h(Lt);Sd(oi,{get supportLink(){return e.supportLink},returnFocus:gx,get ref(){return r(kn)},set ref(Xi){D(kn,pe(Xi))}}),g(Lt),_(He,Lt)};B(hn,He=>{F()&&He(er)})}var _n=A(hn,2);let Mn=v(()=>!r(un));Ul(_n,{get isLive(){return H()},get isHidden(){return r(Mn)},get isPlaying(){return le()},get position(){return R()},get duration(){return W()}});var yi=A(_n,2);{var fe=He=>{ea(He,{})};B(yi,He=>{r(co)&&He(fe)})}var yt=A(yi,2);{var li=He=>{Kl(He,{})};B(yt,He=>{he()&&He(li)})}var pi=A(yt,2);{var xi=He=>{Cd(He,{onClose:qn,onSelectAutoQuality:()=>{Mo("auto"),qn()}})};B(pi,He=>{r(Uo)&&He(xi)})}_(et,Pt)});var Io=A(To,2);vt(Io,et=>D(Fo,et),()=>r(Fo)),g(ai),vt(ai,et=>D(In,et),()=>r(In)),Tt("click",ai,Ir,!0),Tt("focusin",ai,kr,!0),_(t,ai),z(),o()}st(["click"]);function au(t){let e="";return ro(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ro(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ro(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ro(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ro(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ro(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ro(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ro(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ro(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ro(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ro(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ro(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ro(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ro(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ro(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ro(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ro(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ro(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ro(t.font)&&(e+=`--font:${t.font};`),e.length&&e||void 0}function ro(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Tx}from"@vkontakte/videoplayer-shared/es2018";var Ix=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),kx={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 Im(t,e){U(e,!0),K(t,kx);let[i,o]=Ne(),n=()=>S(oe,"$playerSize",i),a=()=>S(k,"$isPlaying$",i),s=()=>S(M,"$duration$",i),d=()=>S(Y,"$positionWithScrubbing$",i),l=()=>S(T,"$playerPhase",i),p=()=>S(I,"$crashed$",i),m=()=>S(R,"$currentSubtitle$",i),y=()=>S(W,"$currentSubtitleCaptions$",i),u=()=>S(P,"$positionExact$",i),$=()=>S(F,"$isLive$",i),w=()=>S(Q,"$isRewindableLive$",i),b=f(e,"outsideDuration",3,0),C=f(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:P,isPlaying$:k,currentSubtitle$:R,currentSubtitleCaptions$:W,positionWithScrubbing$:Y,isLive$:F,isRewindableLive$:Q},ui:{playerSize:oe,controls:Z},actions:{internal:{getVideoElement:re}}}=Ce(),de=8,Ae=X(!1),Me=pe({}),ge=()=>{D(Ae,!0)},se=()=>{D(Ae,!1)},Ee=Tx(el,260);Fe(()=>{n(),Ee(re(),Z,Me,r(Ae))});let ne=v(()=>a()?ln(s()-d()):ln(isFinite(s())?s():b()));var V=Ix(),xe=h(V);fa(xe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ie){C(Ie)}});var _e=A(xe,2);zs(_e,()=>"slot",!1,(Ie,Ue)=>{Te(Ie,null,{name:pa})});var ze=A(_e,2);let H=v(()=>l()!=="thumb"||p());da(ze,{get hidden(){return r(H)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var le=A(ze,2);{var he=Ie=>{la(Ie,{shifted:!1,get captions(){return y()},get position(){return u()},get playerSize(){return n()}})};B(le,Ie=>{m().value!=="off"&&Ie(he)})}var ee=A(le,2),De=h(ee);Fl(De,{get isLive(){return $()},get isPlaying(){return a()},get time(){return r(ne)}}),g(ee);var je=A(ee,2);let we;var Ve=h(je);oa(Ve,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:de,tooltipRightOffset:de,get ref(){return Me.timeline},set ref(Ie){Me.timeline=Ie}}),g(je),g(V),E(Ie=>we=J(je,1,"timeline svelte-1qfjf44",null,we,Ie),[()=>({visible:r(Ae)})]),Tt("mouseenter",V,ge),Tt("mouseleave",V,se),_(t,V),z(),o()}var Mx=L("<div><!></div>"),Lx={hash:"svelte-tw6yp4",code:`.root.svelte-tw6yp4 {--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;
362
361
 
363
362
  /* USER DEFINED COLORS */
364
363
 
@@ -385,12 +384,12 @@ Try switching the\xA0quality to\xA0Auto.`},sh=J0;var Jr=new Map;Jr.set(lh.EN,sh)
385
384
  rgba(0, 0, 0, 0.96) 86.67%,
386
385
  rgba(0, 0, 0, 0.99) 93.33%,
387
386
  #000 100%
388
- );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--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);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
389
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-7ed4yj {color-scheme:light dark;}.root.visible-outside.svelte-7ed4yj {overflow:visible;}
387
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--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);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
388
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root--miui-browser.svelte-tw6yp4 {color-scheme:light dark;}.root.visible-outside.svelte-tw6yp4 {overflow:visible;}
390
389
 
391
390
  /* css reset start */* {-webkit-tap-highlight-color:transparent;}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;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
392
- /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);}
391
+ /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}
393
392
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
394
393
 
395
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Tm(t,e){U(e,!0),q(t,Px);let[i,o]=Be(),n=()=>S(Wt,"$isLive$",i),a=f(e,"sources",7),s=f(e,"store",7),d=f(e,"microStoresRoot",7),l=f(e,"videoConfig",7),p=f(e,"uiConfig",7),m=f(e,"title",7),$=f(e,"thumbUrl",7),u=f(e,"interactiveContainer",7),_=f(e,"interactiveController",7),w=f(e,"subtitles",7),y=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),E=f(e,"volume",7,void 0),P=f(e,"muted",7,void 0),A=f(e,"fromTime",7),I=f(e,"canRewindLive",7),V=f(e,"showAds",7),H=f(e,"adsSlotId",7,void 0),j=f(e,"adsParams",7,void 0),O=f(e,"adsPreviewParam",7,void 0),X=f(e,"adsAutoplayParam",7,void 0),ne=f(e,"duration",7,void 0),Y=f(e,"logoClickable",7),fe=f(e,"logoHidden",7),le=f(e,"isMobile",7),Me=f(e,"showNextPrevButtons",7,!1),Ae=f(e,"nextButtonActive",7,!1),me=f(e,"prevButtonActive",7,!1),ae=f(e,"endScreenVideoTitle",7,void 0),Pe=f(e,"endScreenVideoThumb",7,void 0),re=f(e,"isOneVideoPlaylist",7,!1),D=f(e,"supportLink",7),Ve=f(e,"shadowRootContainer",7,void 0),te=f(e,"outerContainerRef",7,void 0),Qe=f(e,"fullScreenTarget",7,void 0),ie=f(e,"failoverHosts",7,void 0),Q=f(e,"showMiniTimer",7,!1),W=f(e,"saveRate",7),Le=f(e,"seekToInteractive",7,b1),Ne=f(e,"playPrevChapter",7,b1),Xe=f(e,"volumeMultiplier",7),ye=f(e,"showAutoplayNext",7),xe=f(e,"showEndScreen",7,!0),De=f(e,"keyboardControls",15,void 0),{subscribers:Ye,stores:it}=d();Ig(p());let vt=Ht(),Je=p().logoLink,ft=s().ui.debugPanelVisible,It=s().ui.playerSize,Wt=s().state.isLive$,qt=s().state.isInteractive&&Cm.device.isAndroid,ve=J(void 0),G=null,Te=J(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),Dg(s(),it),Ue(()=>{s().ui.isMobile.set(le())});let se=(Z=!1)=>{B(Te,!0),Z?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Oe=()=>{if(vt.features.qualityDetailsSubMenuEnabled){let Z=oh(s().videoId);if(Z)switch(Z.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,Z.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,Z.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(Z.quality);break}}else{nh(s().videoId),xp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Xt=_p(s().videoId);Xt&&s().actions.internal.setQuality(Xt)}};function ze(Z){var fi,ai,ct;let Xt=a()||Z;Xt&&s().initVideo({container:r(ve),sources:Xt,failoverHosts:ie(),subtitles:w(),volumeMultiplier:Xe()});let si=Tx.get(Ll)==="true";ft.set(si),A()>0&&s().actions.external.seekTime(A());let Hi=le()?vt.volumeDefault:(ai=(fi=E())!=null?fi:$c())!=null?ai:vt.volumeDefault,ti=(ct=P())!=null?ct:Zg();if(s().actions.external.setVolume(Hi),s().actions.external.setMuted(ti),s().getAdmanWrapper().setInitialVolume(ti?0:Hi),Oe(),vt.features.saveRate&&W()){let uo=eh();uo&&!n()&&s().actions.internal.setPlaybackRate(uo)}if(ye()){let uo=ih();uo&&s().actions.internal.setAutoplayNextEnabled(uo)}s().ui.isAutoplay.set(T()),T()?se():C()&&vt.features.preload&&s().actions.internal.preload()}let et=Z=>{if(window.ResizeObserver){let Xt,si;G=new ResizeObserver(Ix(Hi=>{let ti=Hi[0];if(ti.contentBoxSize){let fi=Array.isArray(ti.contentBoxSize)?ti.contentBoxSize[0]:ti.contentBoxSize;Xt=fi.inlineSize,si=fi.blockSize}else ti.contentRect&&(Xt=ti.contentRect.width,si=ti.contentRect.height);It.set({width:Xt,height:si})},300)),G.observe(Z)}It.set({width:Z.clientWidth,height:Z.clientHeight})},at=()=>{document.hidden&&s().actions.external.stop()};Ot(()=>{var si,Hi,ti,fi;qt&&document.addEventListener("visibilitychange",at),vt.debugLog&&s().actions.internal.startLogging(),et(r(ve));let Z=Ye.map(ai=>ai.init({store:s(),microStores:it,config:l(),interactiveController:_(),uiConfig:p()})),Xt=()=>{qt&&document.removeEventListener("visibilitychange",at),G==null||G.disconnect(),Z.forEach(ai=>ai.unsubscribe()),s().destroy()};return((si=y())==null?void 0:si.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Xt):((Hi=y())==null?void 0:Hi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Xt):(((ti=y())==null?void 0:ti.status)==="finished"||((fi=y())==null?void 0:fi.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Xt):(ze(),Xt)});function je(){r(Te)?s().actions.external.play():se(!0)}function Ze(){s().actions.external.pause()}function lt(Z){s().actions.external.setMuted(Z)}function Re(){s().actions.external.toggleSubtitle()}function _t(Z){le()||Z>=0&&Z<=1&&s().actions.external.setVolume(Z)}function qe(Z){s().actions.internal.seekTime(Z,kx.UNKNOWN)}function kt(Z){s().actions.external.seekEpisodeStartTime(Z)}function ni(){s().actions.external.returnFocusToEpisodes()}function Zt(Z){s().actions.external.setPlaybackRate(Z)}function ri(Z){s().actions.external.setAutoQualityLimits(Z)}let Bi=su(vt.view),Ki=l().playerView==="preview";var Oi=Ex();let co;tt(Oi,Bi);var Lo=h(Oi);{var ot=Z=>{wm(Z,{get store(){return s()},uiConfig:vt,get thumbUrl(){return $()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return H()},get adsParams(){return j()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return X()},get duration(){return ne()},get logoClickable(){return Y()},get logoHidden(){return fe()},logoTargetUrl:Je,get nextButtonActive(){return Ae()},get prevButtonActive(){return me()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return re()},get supportLink(){return D()},get shadowRootContainer(){return Ve()},get outerContainerRef(){return te()},get fullScreenTarget(){return Qe()},get showMiniTimer(){return Q()},get playerStarted(){return r(Te)},get seekToInteractive(){return Le()},get playPrevChapter(){return Ne()},firstStart:se,seekTime:qe,get showEndScreen(){return xe()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Me()},get videoContainer(){return r(ve)},set videoContainer(Xt){B(ve,pe(Xt))}})},gt=Z=>{var Xt=Fe(),si=ue(Xt);{var Hi=fi=>{Sm(fi,{get thumbUrl(){return $()},get outsideDuration(){return ne()},get canRewindLive(){return I()},get videoContainer(){return r(ve)},set videoContainer(ai){B(ve,pe(ai))}})},ti=fi=>{ym(fi,{get store(){return s()},uiConfig:vt,get title(){return m()},get thumbUrl(){return $()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return T()},get canRewindLive(){return I()},get showAds(){return V()},get adsSlotId(){return H()},get adsParams(){return j()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return X()},get duration(){return ne()},get logoClickable(){return Y()},get logoHidden(){return fe()},logoTargetUrl:Je,get nextButtonActive(){return Ae()},get prevButtonActive(){return me()},get endScreenVideoTitle(){return ae()},get endScreenVideoThumb(){return Pe()},get isOneVideoPlaylist(){return re()},get supportLink(){return D()},get shadowRootContainer(){return Ve()},get outerContainerRef(){return te()},get fullScreenTarget(){return Qe()},get showMiniTimer(){return Q()},get playerStarted(){return r(Te)},get seekToInteractive(){return Le()},get playPrevChapter(){return Ne()},firstStart:se,get showEndScreen(){return xe()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Me()},get videoContainer(){return r(ve)},set videoContainer(ai){B(ve,pe(ai))},get keyboardControls(){return De()},set keyboardControls(ai){De(ai)}})};R(si,fi=>{Ki?fi(Hi):fi(ti,!1)})}b(Z,Xt)};R(Lo,Z=>{le()?Z(ot):Z(gt,!1)})}g(Oi),k(Z=>co=ee(Oi,1,"root svelte-7ed4yj",null,co,Z),[()=>({"root--miui-browser":Cm.device.isMobile&&Cm.browser.isMiuiBrowser,"visible-outside":Ki})]),b(t,Oi);var xi=z({initVideo:ze,play:je,pause:Ze,setMuted:lt,toggleSubtitle:Re,setVolume:_t,seekTime:qe,seekEpisodeStartTime:kt,returnFocusToEpisodes:ni,setPlaybackRate:Zt,setAutoQualityLimits:ri,get sources(){return a()},set sources(Z){a(Z)},get store(){return s()},set store(Z){s(Z)},get microStoresRoot(){return d()},set microStoresRoot(Z){d(Z)},get videoConfig(){return l()},set videoConfig(Z){l(Z)},get uiConfig(){return p()},set uiConfig(Z){p(Z)},get title(){return m()},set title(Z){m(Z)},get thumbUrl(){return $()},set thumbUrl(Z){$(Z)},get interactiveContainer(){return u()},set interactiveContainer(Z){u(Z)},get interactiveController(){return _()},set interactiveController(Z){_(Z)},get subtitles(){return w()},set subtitles(Z){w(Z)},get live(){return y()},set live(Z){y(Z)},get preload(){return C()},set preload(Z){C(Z)},get autoplay(){return T()},set autoplay(Z){T(Z)},get volume(){return E()},set volume(Z){E(Z)},get muted(){return P()},set muted(Z){P(Z)},get fromTime(){return A()},set fromTime(Z){A(Z)},get canRewindLive(){return I()},set canRewindLive(Z){I(Z)},get showAds(){return V()},set showAds(Z){V(Z)},get adsSlotId(){return H()},set adsSlotId(Z){H(Z)},get adsParams(){return j()},set adsParams(Z){j(Z)},get adsPreviewParam(){return O()},set adsPreviewParam(Z){O(Z)},get adsAutoplayParam(){return X()},set adsAutoplayParam(Z){X(Z)},get duration(){return ne()},set duration(Z){ne(Z)},get logoClickable(){return Y()},set logoClickable(Z){Y(Z)},get logoHidden(){return fe()},set logoHidden(Z){fe(Z)},get isMobile(){return le()},set isMobile(Z){le(Z)},get showNextPrevButtons(){return Me()},set showNextPrevButtons(Z){Me(Z)},get nextButtonActive(){return Ae()},set nextButtonActive(Z){Ae(Z)},get prevButtonActive(){return me()},set prevButtonActive(Z){me(Z)},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(Z){ae(Z)},get endScreenVideoThumb(){return Pe()},set endScreenVideoThumb(Z){Pe(Z)},get isOneVideoPlaylist(){return re()},set isOneVideoPlaylist(Z){re(Z)},get supportLink(){return D()},set supportLink(Z){D(Z)},get shadowRootContainer(){return Ve()},set shadowRootContainer(Z){Ve(Z)},get outerContainerRef(){return te()},set outerContainerRef(Z){te(Z)},get fullScreenTarget(){return Qe()},set fullScreenTarget(Z){Qe(Z)},get failoverHosts(){return ie()},set failoverHosts(Z){ie(Z)},get showMiniTimer(){return Q()},set showMiniTimer(Z){Q(Z)},get saveRate(){return W()},set saveRate(Z){W(Z)},get showAutoplayNext(){return ye()},set showAutoplayNext(Z){ye(Z)},get seekToInteractive(){return Le()},set seekToInteractive(Z){Le(Z)},get playPrevChapter(){return Ne()},set playPrevChapter(Z){Ne(Z)},get volumeMultiplier(){return Xe()},set volumeMultiplier(Z){Xe(Z)},get showEndScreen(){return xe()},set showEndScreen(Z){xe(Z)},get keyboardControls(){return De()},set keyboardControls(Z){De(Z)}});return o(),xi}var Ax=be('<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 Im(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ax();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function km(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Im(t,{get style(){return r(o)}})}var Mx=L('<div class="title svelte-1y9fytq"> </div>'),Lx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Vx={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 Em(t,e){q(t,Vx);var i=Lx(),o=h(i);{var n=d=>{var l=Mx(),p=h(l,!0);g(l),k(()=>ge(p,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);km(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>tt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as s5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as a5,InterfaceLanguage as l5,isNonNullable as Rm,Logger as d5,Observable as c5,Subscription as I1,once as u5,InternalsExposure as p5,skip as f5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as k1,isMobile as m5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as v5,ThinOneStat as g5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Rx,Subscription as Nx}from"@vkontakte/videoplayer-shared/es2018";var au=class{constructor(){this.subscription=new Nx,this.logger=new Rx,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=we(e.state.currentPlaybackRate$),n=we(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Mm,detectEmbed as Ux}from"@vkontakte/videoplayer-shared/es2018";var Dx=be('<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 Pm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Dx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),_e(),g(o),k(()=>n=Ce(o,n,{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})),b(t,o)}var Bx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Ox={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 Am(t,e){U(e,!0),q(t,Ox);let[i,o]=Be(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Se(),d=Ht(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,$=s.ui.t,u=v(()=>n()&&$("pip_dummy_title")),_=su(d.view);var w=Bx();ee(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),tt(w,_);var y=h(w);let C;var T=h(y);Pm(T,{}),g(y);var E=M(y,2),P=h(E,!0);g(E),g(w),k(A=>{C=ee(y,1,"dummy-image svelte-1pbsod4",null,C,A),ge(P,r(u))},[()=>({desktop:!a()})]),b(t,w),z(),o()}var Hx=Object.defineProperty,Fx=(t,e,i)=>e in t?Hx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,tl=(t,e,i)=>Fx(t,typeof e!="symbol"?e+"":e,i),zx=460,qx=280,kd=class{constructor({enabled:e=!0}={enabled:!0}){tl(this,"playerDomElement"),tl(this,"playerParentShadowRoot"),tl(this,"playerDummyElement"),tl(this,"svelteContext"),tl(this,"pipWindow"),tl(this,"info",{isActive$:new Mm(!1),isEnabled$:new Mm(!1),type:1}),this.info.isEnabled$=new Mm(e)}isSupported(){let{isEmbed:e}=Ux();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}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:zx,height:qx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
396
- `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Yr(Am,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Us(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}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 $1(t){return t instanceof kd}var lu=class{static getLatestSupportedVersion(e){let i=new js(e),o=new kd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Ed(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var y1="Inner error. Unexpectedly root annotation container null reference exception",x1="Annotation with such name already exists",w1="Annotation with such name does not exist";var il=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Wx,Subscription as Kx,throttleFn as Qx}from"@vkontakte/videoplayer-shared/es2018";var Gx="1",jx=100,du=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Kx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Qx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},jx);this.subscriptions.add(Wx(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new il(y1);if(this.annotations.has(e))throw new il(x1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Gx,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 il(w1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as cu,Subscription as Yx}from"@vkontakte/videoplayer-shared/es2018";var Fo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return cu(e),cu(i),cu(n),n.interactiveData&&cu(o),this.subscription=new Yx,this.subscription}};var Pd=class extends Fo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ce(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Ad=class extends Fo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ce(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:p,isMobile:m}=a.ui,$=we(m),u=()=>$&&we(p);return o.add(p.subscribe(_=>{if(!$)return;let w=we(s);we(l)?this.state$.set(_):w!==null&&this.state$.set(!w||_)})),o.add(l.subscribe(_=>{this.state$.set(!_||u())})),o.add(s.subscribe(_=>{if(_===null)return;let w=we(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Md=class extends Fo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ce("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as Zx}from"@vkontakte/videoplayer-shared/es2018";var Lm=ce(!1),uu=null,Ld=class extends Fo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Lm,set:(i,o=!1)=>{i!==we(Lm)&&(this.clearTimeout(),Lm.set(i),!i&&uu&&(uu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe($=>{we(s)&&$&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(Zx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:$,isInteractiveTime$:u,interactiveTimeIndicator:_})=>{var w,y;if(!(!$||!(_!=null&&_.isDisplayed))){if(!u)return this.state$.set(!1);m.tooltipHelpHintActive&&uu===null&&(uu=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Xx,noop as Jx}from"@vkontakte/videoplayer-shared/es2018";var Vd=class extends Fo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ce(null),toggle:Jx};this.checkIfShouldHide=i=>ys(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(we(s)))return;let l=we(this.state$),{isEnded$:p,playbackState$:m}=n.state,{disabledControls$:$}=n.ui.controls,u=we(p),_=we(m);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),$.remove(up),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),$.add(up),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(Xx({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch($){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as S1}from"@vkontakte/videoplayer-shared/es2018";var Rd=class extends Fo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ce(!1),isEnabled$:ce(!1),type$:ce(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new S1(!1),isEnabled$:new S1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as i5,filterChanged as o5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Vm}from"@vkontakte/videoplayer-shared/es2018";var C1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?e5({maxCount:t}):void 0,e!==0?t5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},e5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Vm.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},t5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Vm.get(e)||"{}")}catch(a){return{}}},o=a=>Vm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var Nd=class extends Fo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ce({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=C1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(o5(),i5(m=>m)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var T1=()=>[Pd,Ad,Md,Ld,Vd,Rd,Nd].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 Dd}from"@vkontakte/videoplayer-shared/es2018";var n5=Object.defineProperty,r5=(t,e,i)=>e in t?n5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Yt=(t,e,i)=>r5(t,typeof e!="symbol"?e+"":e,i),h5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:l5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:m5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},xn=J(void 0),pu=class extends HTMLElement{constructor(){super(),Yt(this,"svelteStubComponent"),Yt(this,"svelteRootComponent"),Yt(this,"store"),Yt(this,"microStoresRoot"),Yt(this,"statistics"),Yt(this,"sentry"),Yt(this,"_shadowRoot"),Yt(this,"playerContainer"),Yt(this,"rootContainer"),Yt(this,"shadowRootContainer"),Yt(this,"uiConfig"),Yt(this,"coreConfig"),Yt(this,"statisticsConfig"),Yt(this,"interactiveController"),Yt(this,"interactiveContainer"),Yt(this,"graphMadePause"),Yt(this,"currentPlayingVideoIndex",0),Yt(this,"needToRepeatPlaylist",!1),Yt(this,"videoConfig"),Yt(this,"pictureInPictureApi"),Yt(this,"mediaSessionApi"),Yt(this,"unsubscribePlayerPhaseSubscription"),Yt(this,"logger"),Yt(this,"log"),Yt(this,"subscription"),Yt(this,"interactiveSubscription"),Yt(this,"annotationsApi"),Yt(this,"slotsApi"),Yt(this,"prevIsid"),Yt(this,"isInited",!1),Yt(this,"internalsExposure",null),Yt(this,"shadowDOMCallbacksDisabled",!1),Yt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:m,statVKAppId:$,refreshStatAuthToken:u,autoplay:_,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=Ed(this.videoConfig,i),P=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&I)return new v5({movieId:I,albumId:d,place:l,trackCode:m,vkAppId:$,autoplay:(s=_&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:C,deviceId:T,...P&&(!this.isInited||A)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),Dd.create("ui"),this.logger=new d5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new I1,this.interactiveSubscription=new I1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=pe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Yr(Em,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Dd.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={}){let{deviceId:o,preload:n,refreshStatAuthToken:a}=Ed(this.videoConfig,i),{unitedVideoId:s}=e;return new g5.ThinOneStat({deviceId:o,movieId:s,preload:n},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var n,a,s,d,l,p,m,$,u;if(!this.videoConfig)return;let{albumId:_,statPlace:w,statAuthToken:y,preload:C,autoplay:T,volume:E,muted:P,fromTime:A,canRewindLive:I,supportLink:V,showAds:H,adsSlotId:j,adsParams:O={},adsPreviewParam:X,adsAutoplayParam:ne,interfaceLanguage:Y,isCyrillicRelatedInterface:fe,logoClickable:le,logoHidden:Me,isMobile:Ae,isTouch:me,isAudioDisabled:ae,isLiveCatchUpMode:Pe,fullScreenTarget:re,failoverHosts:D,canDownload:Ve,callbacks:te,interactiveData:Qe,showThumbTimer:ie,additionalButtons:Q=[],additionalSettingsMenuItems:W=[],additionalContextMenuItems:Le=[],repeat:Ne,saveRate:Xe,volumeMultiplier:ye,showEndScreen:xe,showAutoplayNext:De}=Ed(this.videoConfig,i),{sources:Ye,title:it,thumbUrl:vt,unitedVideoId:Je,isClip:ft=!1,duration:It,adsParams:Wt={},videoEpisodes:Ft,previewThumbsData:qt,subtitles:ve,live:G}=e,Te={...O,...Wt},se=this.getNextVideoInfo(),Oe={sources:Ye,title:it,thumbUrl:vt,subtitles:ve,unitedVideoId:Je,isClip:ft,live:G,albumId:_,statPlace:w,autoplay:T,muted:P,volume:E,fromTime:A,canRewindLive:I,showAds:H,adsSlotId:j,adsParams:Te,adsPreviewParam:X,adsAutoplayParam:ne,duration:It,logoClickable:le,logoHidden:Me,isTouch:me!=null?me:Ae,repeat:Ne,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ze={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Oe)}`});let et=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),at,je=this.createThinOneStat(e,i);(at||je)&&(this.statistics=new Kc(at,je,et==null?void 0:et.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Gs(this.uiConfig.sentry,{version:Ha,env:hc},{movieId:Je,albumId:_,place:w,autoplay:(a=T&&!this.interactiveController)!=null?a:!1,mobile:me!=null?me:Ae,clip:ft}),this.interactiveController&&((l=this.prevIsid)!=null||(this.prevIsid=(d=(s=this.statistics)==null?void 0:s.oneStat)==null?void 0:d.isid$.getValue())),this.sentry={...this.sentry,...Gs.getInstance()};let lt=!!Qe,Re=[],_t="tooltip_interactive_go_back_disabled_first";if(lt&&this.interactiveController){let Zt=this.interactiveController.state.isInitialChapter$.getValue(),ri=this.interactiveController.getHistoryState();Zt&&Re.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Re.push("SEEK_TO_INTERACTIVE_BUTTON"),ri.hasPrevChapter$.getValue()||(Re.push("PLAY_PREV_CHAPTER_BUTTON"),Zt||(ri.isGoBackLimited$.getValue()?_t="tooltip_interactive_go_back_disabled_limit":_t="tooltip_interactive_go_back_disabled"))}let qe=()=>{var Zt;this.isInited=!1,this.prevIsid=void 0;let ri=(o==null?void 0:o.info.isEnded$.getValue())&&((Zt=this.interactiveController)==null?void 0:Zt.state.isEndChapter$.getValue());te.onReplayInteractiveVideo&&!ri?te.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=qh({player:o,interfaceLanguage:Y,isCyrillicRelatedInterface:fe,videoId:Je,isClip:ft,isLiveCatchUpMode:Pe,isAudioDisabled:ae,statAuthToken:y,callbacks:te,webApi:ze,videoEpisodes:Ft,previewThumbsData:qt,canDownload:Ve,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Re,isInteractive:lt,saveRate:Xe,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:qe,playPrevChapterDisabledTooltip:_t,hasInteractiveBranches:!!((u=($=this.interactiveController)==null?void 0:$.getChapterBranches())!=null&&u.length),additionalButtons:this.uiConfig.features.additionalButtons?Q:[],additionalSettingsMenuItems:W!=null?W:[],additionalContextMenuItems:Le!=null?Le:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ne&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:kt}=this.microStoresRoot=T1(),ni=()=>{var Zt,ri,Bi,Ki,Oi,co;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(ot=>{var gt;return(gt=te==null?void 0:te.onCurrentFormatChanged)==null?void 0:gt.call(te,ot)})),this.subscription.add(kt.interactiveControlsOpacity$.subscribe(ot=>{var gt;ot!==null&&((gt=this==null?void 0:this.interactiveController)==null||gt.setDisabledControls(ot))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ot=>{var gt;return(gt=te==null?void 0:te.onThroughputEstimationChanged)==null?void 0:gt.call(te,ot)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ot=>{var gt;return(gt=te==null?void 0:te.onTrafficSavingEnabledChanged)==null?void 0:gt.call(te,ot)})),this.subscription.add(new c5(ot=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(gt=>ot.next(gt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?f5(1):ot=>ot).subscribe(ot=>{var gt;return(gt=te==null?void 0:te.onCurrentPlaybackRateChanged)==null?void 0:gt.call(te,ot)})),this.subscription.add(this.store.state.volume$.subscribe(ot=>{var gt;return(gt=te==null?void 0:te.onVolumeChange)==null?void 0:gt.call(te,ot)})),this.subscription.add(this.store.state.muted$.subscribe(ot=>{var gt,xi;return ot?(gt=te==null?void 0:te.onMute)==null?void 0:gt.call(te):(xi=te==null?void 0:te.onUnmute)==null?void 0:xi.call(te)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(ot=>{var gt;return(gt=te==null?void 0:te.onVideoBitrateChanged)==null?void 0:gt.call(te,ot)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ot=>{var gt;let xi=(gt=this.store)==null?void 0:gt.ui.controls.disabledControls$;xi&&(ot&&!xi.includes(Vl)&&xi.add(Vl),ot||xi.remove(Vl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async ot=>{var gt;if(!k1.browser.isSamsungBrowser||!ot||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((gt=this.videoConfig)==null?void 0:gt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(ot=>{var gt;return(gt=te==null?void 0:te.onVSIDChanged)==null?void 0:gt.call(te,ot)})),this.initMediaSession(),B(xn,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ye,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:it,thumbUrl:vt,subtitles:ve,live:G,preload:C,autoplay:T,muted:P,volume:E,fromTime:A,canRewindLive:I,supportLink:V,showAds:H,adsSlotId:j,adsParams:Te,adsPreviewParam:X,adsAutoplayParam:ne,duration:It,logoClickable:le,logoHidden:Me,isMobile:me!=null?me:Ae,failoverHosts:D,fullScreenTarget:re,saveRate:Xe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ie,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:ye,showEndScreen:xe,showAutoplayNext:De}));let Lo={target:this.playerContainer,props:r(xn)};this.svelteRootComponent=Yr(Tm,Lo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Bi=(ri=(Zt=this.videoConfig)==null?void 0:Zt.callbacks)==null?void 0:ri.onInited)==null||Bi.call(ri)),(Ki=this.internalsExposure)==null||Ki.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((co=(Oi=this.videoConfig)==null?void 0:Oi.callbacks)!=null&&co.onDevNullLog)?Dd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Dd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?k1.isInited$.subscribe(Zt=>{Zt&&(console.log("UI SDK async start"),ni())}):ni()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&Rm(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=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$,d=s?we(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:m,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:m,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation}});let{isInteractiveExpectation$:u,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(y=>{if(!this.isInited)return;let C=this.store;y?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:(l==null?void 0:l.title)||y.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:C})=>{var T,E,P,A,I,V;if(!this.store||!this.microStoresRoot)return;let H=u.getValue();if(y==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Rl)),y==="action-choice-canceled"){let j=we(this.store.state.isPlaying$)||H;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(A=this.videoConfig)==null?void 0:(I=A.callbacks).onDisabledInteractiveClick)==null||V.call(I)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:C})=>{this.store&&y==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Rl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(C=>{var T,E,P;C.length&&((P=(E=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||P.call(E,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,C,T,E;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(y=>{this.log({message:y.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,m,$,u,_,w,y,C,T,E,P,A,I,V,H,j,O,X,ne,Y;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Ed(h5,a5(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.uiConfig=Tg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(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&&((d=this.internalsExposure)!=null||(this.internalsExposure=new p5("UI"))),Dd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[s5()]}),Rm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),Rm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!=null?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((I=this.uiConfig.showLogo)!=null?I:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(j=this.uiConfig.features.endScreen)!=null?j:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(O=this.uiConfig.features.autoplayNext)!=null?O:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(X=this.uiConfig.features.nextPrevButtons)!=null?X:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ne=this.videoConfig.videos)!=null&&ne[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let fe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=lu.getLatestSupportedVersion(fe):this.pictureInPictureApi=new js(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new au:void 0,this.slotsApi=this.uiConfig.features.slots?new ou:void 0,this.annotationsApi=this.uiConfig.features.annotations?new du(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(Y=this.slotsApi)==null||Y.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),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]),$1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(xn)&&(r(xn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(xn).nextButtonActive=this.isNextButtonActive(),r(xn).prevButtonActive=this.isPrevButtonActive(),r(xn).endScreenVideoTitle=o.nextVideoTitle,r(xn).endScreenVideoThumb=o.nextVideoThumb,r(xn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(xn)&&(r(xn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(xn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(xn).nextButtonActive=this.isNextButtonActive(),r(xn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}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;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}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 n=we(this.store.state.positionExact$),s=we(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(u5()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),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)}unmountComponent(e){e&&Us(e)}};import{InterfaceLanguage as iX,VKNumericLanguage as oX,loadVKLangPack as nX}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as sX,VideoFormat as aX}from"@vkontakte/videoplayer-core/es2018";var GZ=()=>{window.customElements.define("vk-video-player",pu)};export{Qc as ControlButtonType,Or as GridTypes,iX as InterfaceLanguage,Wl as MenuItemType,es as PlayerPhase,Ha as VERSION,oX as VKNumericLanguage,aX as VideoFormat,sX as VideoQuality,nX as loadVKLangPack,GZ as registerPlayerWebComponent};
394
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Em(t,e){U(e,!0),K(t,Lx);let[i,o]=Ne(),n=()=>S(zt,"$isLive$",i),a=f(e,"sources",7),s=f(e,"store",7),d=f(e,"microStoresRoot",7),l=f(e,"videoConfig",7),p=f(e,"uiConfig",7),m=f(e,"title",7),y=f(e,"thumbUrl",7),u=f(e,"interactiveContainer",7),$=f(e,"interactiveController",7),w=f(e,"subtitles",7),b=f(e,"live",7),C=f(e,"preload",7),T=f(e,"autoplay",7),I=f(e,"volume",7,void 0),M=f(e,"muted",7,void 0),P=f(e,"fromTime",7),k=f(e,"canRewindLive",7),R=f(e,"showAds",7),W=f(e,"adsSlotId",7,void 0),Y=f(e,"adsParams",7,void 0),F=f(e,"adsPreviewParam",7,void 0),Q=f(e,"adsAutoplayParam",7,void 0),oe=f(e,"duration",7,void 0),Z=f(e,"logoClickable",7),re=f(e,"logoHidden",7),de=f(e,"isMobile",7),Ae=f(e,"showNextPrevButtons",7,!1),Me=f(e,"nextButtonActive",7,!1),ge=f(e,"prevButtonActive",7,!1),se=f(e,"endScreenVideoTitle",7,void 0),Ee=f(e,"endScreenVideoThumb",7,void 0),ne=f(e,"isOneVideoPlaylist",7,!1),V=f(e,"supportLink",7),xe=f(e,"shadowRootContainer",7,void 0),_e=f(e,"outerContainerRef",7,void 0),ze=f(e,"fullScreenTarget",7,void 0),H=f(e,"failoverHosts",7,void 0),le=f(e,"showMiniTimer",7,!1),he=f(e,"saveRate",7),ee=f(e,"seekToInteractive",7,x1),De=f(e,"playPrevChapter",7,x1),je=f(e,"volumeMultiplier",7),we=f(e,"showAutoplayNext",7),Ve=f(e,"showEndScreen",7,!0),Ie=f(e,"keyboardControls",15,void 0),{subscribers:Ue,stores:dt}=d();Pg(p());let ct=Ft(),ot=p().logoLink,wt=s().ui.debugPanelVisible,ft=s().ui.playerSize,zt=s().state.isLive$,At=s().state.isInteractive&&km.device.isAndroid,Rt=X(void 0),O=null,be=X(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),Hg(s(),dt),Fe(()=>{var j,jt;s().ui.isMobile.set(de()),(jt=(j=l().callbacks)==null?void 0:j.onDomReady)==null||jt.call(j)});let te=(j=!1)=>{D(be,!0),j?s().actions.external.firstStart(R()):s().actions.internal.firstStart(R())},Re=()=>{if(ct.features.qualityDetailsSubMenuEnabled){let j=sh(s().videoId);if(j)switch(j.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,j.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,j.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(j.quality);break}}else{ah(s().videoId),Cp()&&s().actions.internal.setTrafficSavingEnabled(!0);let jt=yp(s().videoId);jt&&s().actions.internal.setQuality(jt)}};function Ye(j){var ut,fi,Xe;let jt=a()||j;jt&&s().initVideo({container:r(Rt),sources:jt,failoverHosts:H(),subtitles:w(),volumeMultiplier:je()});let vi=Ex.get(Ml)==="true";wt.set(vi),P()>0&&s().actions.external.seekTime(P());let Li=de()?ct.volumeDefault:(fi=(ut=I())!=null?ut:$c())!=null?fi:ct.volumeDefault,si=(Xe=M())!=null?Xe:eh();if(s().actions.external.setVolume(Li),s().actions.external.setMuted(si),s().getAdmanWrapper().setInitialVolume(si?0:Li),Re(),ct.features.saveRate&&he()){let Mt=oh();Mt&&!n()&&s().actions.internal.setPlaybackRate(Mt)}if(we()){let Mt=rh();Mt&&s().actions.internal.setAutoplayNextEnabled(Mt)}s().ui.isAutoplay.set(T()),T()?te():C()&&ct.features.preload&&s().actions.internal.preload()}let Ke=j=>{if(window.ResizeObserver){let jt,vi;O=new ResizeObserver(Px(Li=>{let si=Li[0];if(si.contentBoxSize){let ut=Array.isArray(si.contentBoxSize)?si.contentBoxSize[0]:si.contentBoxSize;jt=ut.inlineSize,vi=ut.blockSize}else si.contentRect&&(jt=si.contentRect.width,vi=si.contentRect.height);ft.set({width:jt,height:vi})},300)),O.observe(j)}ft.set({width:j.clientWidth,height:j.clientHeight})},Le=()=>{document.hidden&&s().actions.external.stop()};Ht(()=>{var vi,Li,si,ut;At&&document.addEventListener("visibilitychange",Le),ct.debugLog&&s().actions.internal.startLogging(),Ke(r(Rt));let j=Ue.map(fi=>fi.init({store:s(),microStores:dt,config:l(),interactiveController:$(),uiConfig:p()})),jt=()=>{At&&document.removeEventListener("visibilitychange",Le),O==null||O.disconnect(),j.forEach(fi=>fi.unsubscribe()),s().destroy()};return((vi=b())==null?void 0:vi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),jt):((Li=b())==null?void 0:Li.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),jt):(((si=b())==null?void 0:si.status)==="finished"||((ut=b())==null?void 0:ut.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),jt):(Ye(),jt)});function nt(){r(be)?s().actions.external.play():te(!0)}function Je(){s().actions.external.pause()}function ht(j){s().actions.external.setMuted(j)}function tt(){s().actions.external.toggleSubtitle()}function Ze(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.hideControls()}function qt(){var j;(j=s().webApi.slotsApi)!=null&&j.haveSlots()&&s().actions.external.showControls()}function _t(j){de()||j>=0&&j<=1&&s().actions.external.setVolume(j)}function $i(j){s().actions.internal.seekTime(j,Ax.UNKNOWN)}function Jt(j){s().actions.external.seekEpisodeStartTime(j)}function Qe(){s().actions.external.returnFocusToEpisodes()}function Yt(j){s().actions.external.setPlaybackRate(j)}function Mi(j){s().actions.external.setAutoQualityLimits(j)}let Ni=au(ct.view),so=l().playerView==="preview";var Ki=Mx();let it;rt(Ki,Ni);var bt=h(Ki);{var Ii=j=>{Tm(j,{get store(){return s()},uiConfig:ct,get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return R()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Q()},get duration(){return oe()},get logoClickable(){return Z()},get logoHidden(){return re()},logoTargetUrl:ot,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ee()},get isOneVideoPlaylist(){return ne()},get supportLink(){return V()},get shadowRootContainer(){return xe()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return le()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return De()},firstStart:te,seekTime:$i,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Rt)},set videoContainer(jt){D(Rt,pe(jt))}})},ji=j=>{var jt=Oe(),vi=ue(jt);{var Li=ut=>{Im(ut,{get thumbUrl(){return y()},get outsideDuration(){return oe()},get canRewindLive(){return k()},get videoContainer(){return r(Rt)},set videoContainer(fi){D(Rt,pe(fi))}})},si=ut=>{Sm(ut,{get store(){return s()},uiConfig:ct,get title(){return m()},get thumbUrl(){return y()},get interactiveContainer(){return u()},get live(){return b()},get autoplay(){return T()},get canRewindLive(){return k()},get showAds(){return R()},get adsSlotId(){return W()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Q()},get duration(){return oe()},get logoClickable(){return Z()},get logoHidden(){return re()},logoTargetUrl:ot,get nextButtonActive(){return Me()},get prevButtonActive(){return ge()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Ee()},get isOneVideoPlaylist(){return ne()},get supportLink(){return V()},get shadowRootContainer(){return xe()},get outerContainerRef(){return _e()},get fullScreenTarget(){return ze()},get showMiniTimer(){return le()},get playerStarted(){return r(be)},get seekToInteractive(){return ee()},get playPrevChapter(){return De()},firstStart:te,get showEndScreen(){return Ve()},get showAutoplayNext(){return we()},get showNextPrevButtons(){return Ae()},get videoContainer(){return r(Rt)},set videoContainer(fi){D(Rt,pe(fi))},get keyboardControls(){return Ie()},set keyboardControls(fi){Ie(fi)}})};B(vi,ut=>{so?ut(Li):ut(si,!1)})}_(j,jt)};B(bt,j=>{de()?j(Ii):j(ji,!1)})}g(Ki),E(j=>it=J(Ki,1,"root svelte-tw6yp4",null,it,j),[()=>({"root--miui-browser":km.device.isMobile&&km.browser.isMiuiBrowser,"visible-outside":so})]),_(t,Ki);var wo=z({initVideo:Ye,play:nt,pause:Je,setMuted:ht,toggleSubtitle:tt,hideControls:Ze,showControls:qt,setVolume:_t,seekTime:$i,seekEpisodeStartTime:Jt,returnFocusToEpisodes:Qe,setPlaybackRate:Yt,setAutoQualityLimits:Mi,get sources(){return a()},set sources(j){a(j)},get store(){return s()},set store(j){s(j)},get microStoresRoot(){return d()},set microStoresRoot(j){d(j)},get videoConfig(){return l()},set videoConfig(j){l(j)},get uiConfig(){return p()},set uiConfig(j){p(j)},get title(){return m()},set title(j){m(j)},get thumbUrl(){return y()},set thumbUrl(j){y(j)},get interactiveContainer(){return u()},set interactiveContainer(j){u(j)},get interactiveController(){return $()},set interactiveController(j){$(j)},get subtitles(){return w()},set subtitles(j){w(j)},get live(){return b()},set live(j){b(j)},get preload(){return C()},set preload(j){C(j)},get autoplay(){return T()},set autoplay(j){T(j)},get volume(){return I()},set volume(j){I(j)},get muted(){return M()},set muted(j){M(j)},get fromTime(){return P()},set fromTime(j){P(j)},get canRewindLive(){return k()},set canRewindLive(j){k(j)},get showAds(){return R()},set showAds(j){R(j)},get adsSlotId(){return W()},set adsSlotId(j){W(j)},get adsParams(){return Y()},set adsParams(j){Y(j)},get adsPreviewParam(){return F()},set adsPreviewParam(j){F(j)},get adsAutoplayParam(){return Q()},set adsAutoplayParam(j){Q(j)},get duration(){return oe()},set duration(j){oe(j)},get logoClickable(){return Z()},set logoClickable(j){Z(j)},get logoHidden(){return re()},set logoHidden(j){re(j)},get isMobile(){return de()},set isMobile(j){de(j)},get showNextPrevButtons(){return Ae()},set showNextPrevButtons(j){Ae(j)},get nextButtonActive(){return Me()},set nextButtonActive(j){Me(j)},get prevButtonActive(){return ge()},set prevButtonActive(j){ge(j)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(j){se(j)},get endScreenVideoThumb(){return Ee()},set endScreenVideoThumb(j){Ee(j)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(j){ne(j)},get supportLink(){return V()},set supportLink(j){V(j)},get shadowRootContainer(){return xe()},set shadowRootContainer(j){xe(j)},get outerContainerRef(){return _e()},set outerContainerRef(j){_e(j)},get fullScreenTarget(){return ze()},set fullScreenTarget(j){ze(j)},get failoverHosts(){return H()},set failoverHosts(j){H(j)},get showMiniTimer(){return le()},set showMiniTimer(j){le(j)},get saveRate(){return he()},set saveRate(j){he(j)},get showAutoplayNext(){return we()},set showAutoplayNext(j){we(j)},get seekToInteractive(){return ee()},set seekToInteractive(j){ee(j)},get playPrevChapter(){return De()},set playPrevChapter(j){De(j)},get volumeMultiplier(){return je()},set volumeMultiplier(j){je(j)},get showEndScreen(){return Ve()},set showEndScreen(j){Ve(j)},get keyboardControls(){return Ie()},set keyboardControls(j){Ie(j)}});return o(),wo}var Vx=ye('<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 Pm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Vx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),_(t,o)}function Am(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Pm(t,{get style(){return r(o)}})}var Rx=L('<div class="title svelte-1y9fytq"> </div>'),Bx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Nx={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 Mm(t,e){K(t,Nx);var i=Bx(),o=h(i);{var n=d=>{var l=Rx(),p=h(l,!0);g(l),E(()=>me(p,e.title)),_(d,l)};B(o,d=>{e.title&&d(n)})}var a=A(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);Am(d,{get isWhite(){return r(l)}})};B(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),E(()=>rt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}import{now as d5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as c5,InterfaceLanguage as u5,isNonNullable as Dm,Logger as p5,Observable as f5,Subscription as P1,once as m5,InternalsExposure as v5,skip as g5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as A1,isMobile as h5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as _5,MediascopePixel as b5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Dx,Subscription as Ox}from"@vkontakte/videoplayer-shared/es2018";var lu=class{constructor(){this.subscription=new Ox,this.logger=new Dx,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=Se(e.state.currentPlaybackRate$),n=Se(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Rm,detectEmbed as Wx}from"@vkontakte/videoplayer-shared/es2018";var Hx=ye('<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 Lm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Hx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),$e(),g(o),E(()=>n=Te(o,n,{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})),_(t,o)}var Fx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Ux={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 Vm(t,e){U(e,!0),K(t,Ux);let[i,o]=Ne(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Ce(),d=Ft(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,y=s.ui.t,u=v(()=>n()&&y("pip_dummy_title")),$=au(d.view);var w=Fx();J(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),rt(w,$);var b=h(w);let C;var T=h(b);Lm(T,{}),g(b);var I=A(b,2),M=h(I,!0);g(I),g(w),E(P=>{C=J(b,1,"dummy-image svelte-1pbsod4",null,C,P),me(M,r(u))},[()=>({desktop:!a()})]),_(t,w),z(),o()}var zx=Object.defineProperty,qx=(t,e,i)=>e in t?zx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,nl=(t,e,i)=>qx(t,typeof e!="symbol"?e+"":e,i),Kx=460,Qx=280,Id=class{constructor({enabled:e=!0}={enabled:!0}){nl(this,"playerDomElement"),nl(this,"playerParentShadowRoot"),nl(this,"playerDummyElement"),nl(this,"svelteContext"),nl(this,"pipWindow"),nl(this,"info",{isActive$:new Rm(!1),isEnabled$:new Rm(!1),type:1}),this.info.isEnabled$=new Rm(e)}isSupported(){let{isEmbed:e}=Wx();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}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:Kx,height:Qx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
395
+ `),n=document.createElement("style");n.textContent=o;let a=this.createStretchedContainer(),s=a.attachShadow({mode:"open"});s.append(n),s.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Zr(Vm,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Fs(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})}async dispose(){await this.remove()}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 w1(t){return t instanceof Id}var du=class{static getLatestSupportedVersion(e){let i=new Gs(e),o=new Id(e);if(o.isSupported())return o;if(i.isSupported())return i}};function cu(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var S1="Inner error. Unexpectedly root annotation container null reference exception",C1="Annotation with such name already exists",T1="Annotation with such name does not exist";var rl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Gx,Subscription as Yx,throttleFn as jx}from"@vkontakte/videoplayer-shared/es2018";var Zx="1",Xx=100,uu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Yx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=jx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Xx);this.subscriptions.add(Gx(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new rl(S1);if(this.annotations.has(e))throw new rl(C1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Zx,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 rl(T1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as pu,Subscription as Jx}from"@vkontakte/videoplayer-shared/es2018";var Do=class{init({store:e,microStores:i,interactiveController:o,config:n}){return pu(e),pu(i),pu(n),n.interactiveData&&pu(o),this.subscription=new Jx,this.subscription}};var kd=class extends Do{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ce(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Ed=class extends Do{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ce(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:p,isMobile:m}=a.ui,y=Se(m),u=()=>y&&Se(p);return o.add(p.subscribe($=>{if(!y)return;let w=Se(s);Se(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||u())})),o.add(s.subscribe($=>{if($===null)return;let w=Se(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Pd=class extends Do{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ce("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as e5}from"@vkontakte/videoplayer-shared/es2018";var Bm=ce(!1),fu=null,Ad=class extends Do{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Bm,set:(i,o=!1)=>{i!==Se(Bm)&&(this.clearTimeout(),Bm.set(i),!i&&fu&&(fu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:a}=i,{isInteractiveTime$:s,isPlaying$:d}=n.state,l=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(l.subscribe(y=>{Se(s)&&y&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(e5({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:y,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,b;if(!(!y||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);m.tooltipHelpHintActive&&fu===null&&(fu=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as t5,noop as i5}from"@vkontakte/videoplayer-shared/es2018";var Md=class extends Do{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ce(null),toggle:i5};this.checkIfShouldHide=i=>ys(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(Se(s)))return;let l=Se(this.state$),{isEnded$:p,playbackState$:m}=n.state,{disabledControls$:y}=n.ui.controls,u=Se(p),$=Se(m);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),y.remove(mp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),y.add(mp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(t5({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(y){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as I1}from"@vkontakte/videoplayer-shared/es2018";var Ld=class extends Do{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ce(!1),isEnabled$:ce(!1),type$:ce(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new I1(!1),isEnabled$:new I1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as r5,filterChanged as s5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Nm}from"@vkontakte/videoplayer-shared/es2018";var k1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?o5({maxCount:t}):void 0,e!==0?n5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},o5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Nm.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},n5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Nm.get(e)||"{}")}catch(a){return{}}},o=a=>Nm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var Vd=class extends Do{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ce({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=k1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(s5(),r5(m=>m)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var E1=()=>[kd,Ed,Pd,Ad,Md,Ld,Vd].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 Rd}from"@vkontakte/videoplayer-shared/es2018";var a5=Object.defineProperty,l5=(t,e,i)=>e in t?a5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ei=(t,e,i)=>l5(t,typeof e!="symbol"?e+"":e,i),$5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:u5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:h5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Cn=X(void 0),mu=class extends HTMLElement{constructor(){super(),ei(this,"svelteStubComponent"),ei(this,"svelteRootComponent"),ei(this,"store"),ei(this,"microStoresRoot"),ei(this,"statistics"),ei(this,"sentry"),ei(this,"_shadowRoot"),ei(this,"playerContainer"),ei(this,"rootContainer"),ei(this,"shadowRootContainer"),ei(this,"uiConfig"),ei(this,"coreConfig"),ei(this,"statisticsConfig"),ei(this,"interactiveController"),ei(this,"interactiveContainer"),ei(this,"graphMadePause"),ei(this,"currentPlayingVideoIndex",0),ei(this,"needToRepeatPlaylist",!1),ei(this,"videoConfig"),ei(this,"pictureInPictureApi"),ei(this,"mediaSessionApi"),ei(this,"unsubscribePlayerPhaseSubscription"),ei(this,"logger"),ei(this,"log"),ei(this,"subscription"),ei(this,"interactiveSubscription"),ei(this,"annotationsApi"),ei(this,"slotsApi"),ei(this,"prevIsid"),ei(this,"isInited",!1),ei(this,"internalsExposure",null),ei(this,"shadowDOMCallbacksDisabled",!1),ei(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:m,statVKAppId:y,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:b,refDomain:C,deviceId:T,interactiveData:I}=cu(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&k)return new _5({movieId:k,albumId:d,place:l,trackCode:m,vkAppId:y,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:b!=null?b:w,clip:R,refDomain:C,deviceId:T,...M&&(!this.isInited||P)&&{projectId:Number(M)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),Rd.create("ui"),this.logger=new p5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new P1,this.interactiveSubscription=new P1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=pe({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=Zr(Mm,s)}disconnectedCallback(){var e,i,o,n,a;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Rd.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}}createPlayer(e,i={},o){var n,a,s,d,l,p,m,y;if(!this.videoConfig)return;let{albumId:u,statPlace:$,statAuthToken:w,preload:b,autoplay:C,volume:T,muted:I,fromTime:M,canRewindLive:P,supportLink:k,showAds:R,adsSlotId:W,adsParams:Y={},adsPreviewParam:F,adsAutoplayParam:Q,interfaceLanguage:oe,isCyrillicRelatedInterface:Z,logoClickable:re,logoHidden:de,isMobile:Ae,isTouch:Me,isAudioDisabled:ge,isLiveCatchUpMode:se,fullScreenTarget:Ee,failoverHosts:ne,canDownload:V,callbacks:xe,interactiveData:_e,showThumbTimer:ze,additionalButtons:H=[],additionalSettingsMenuItems:le=[],additionalContextMenuItems:he=[],repeat:ee,saveRate:De,volumeMultiplier:je,showEndScreen:we,showAutoplayNext:Ve,mediascopePixels:Ie}=cu(this.videoConfig,i),{sources:Ue,title:dt,thumbUrl:ct,unitedVideoId:ot,isClip:wt=!1,duration:ft,adsParams:zt={},videoEpisodes:ti,previewThumbsData:At,subtitles:Rt,live:O}=e,be={...Y,...zt},te=this.getNextVideoInfo(),Re={sources:Ue,title:dt,thumbUrl:ct,subtitles:Rt,unitedVideoId:ot,isClip:wt,live:O,albumId:u,statPlace:$,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,showAds:R,adsSlotId:W,adsParams:be,adsPreviewParam:F,adsAutoplayParam:Q,duration:ft,logoClickable:re,logoHidden:de,isTouch:Me!=null?Me:Ae,repeat:ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:te.nextVideoTitle,endScreenVideoThumb:te.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ye={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Re)}`});let Ke=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Le=(Ke==null?void 0:Ke.oneStat)||this.createOneStat(e,i),nt;Ie&&(nt=new b5({pixels:Ie})),Le&&(this.statistics=new Kc(Le,nt,Ke==null?void 0:Ke.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Qs(this.uiConfig.sentry,{version:za,env:hc},{movieId:ot,albumId:u,place:$,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Me!=null?Me:Ae,clip:wt}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Qs.getInstance()};let ht=!!_e,tt=[],Ze="tooltip_interactive_go_back_disabled_first";if(ht&&this.interactiveController){let Jt=this.interactiveController.state.isInitialChapter$.getValue(),Qe=this.interactiveController.getHistoryState();Jt&&tt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||tt.push("SEEK_TO_INTERACTIVE_BUTTON"),Qe.hasPrevChapter$.getValue()||(tt.push("PLAY_PREV_CHAPTER_BUTTON"),Jt||(Qe.isGoBackLimited$.getValue()?Ze="tooltip_interactive_go_back_disabled_limit":Ze="tooltip_interactive_go_back_disabled"))}let qt=()=>{var Jt;this.isInited=!1,this.prevIsid=void 0;let Qe=(o==null?void 0:o.info.isEnded$.getValue())&&((Jt=this.interactiveController)==null?void 0:Jt.state.isEndChapter$.getValue());xe.onReplayInteractiveVideo&&!Qe?xe.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Qh({player:o,interfaceLanguage:oe,isCyrillicRelatedInterface:Z,videoId:ot,isClip:wt,isLiveCatchUpMode:se,isAudioDisabled:ge,statAuthToken:w,callbacks:xe,webApi:Ye,videoEpisodes:ti,previewThumbsData:At,canDownload:V,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:tt,isInteractive:ht,saveRate:De,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:qt,playPrevChapterDisabledTooltip:Ze,hasInteractiveBranches:!!((y=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?H:[],additionalSettingsMenuItems:le!=null?le:[],additionalContextMenuItems:he!=null?he:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:_t}=this.microStoresRoot=E1(),$i=()=>{var Jt,Qe,Yt,Mi,Ni,so;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(it=>{var bt;return(bt=xe==null?void 0:xe.onCurrentFormatChanged)==null?void 0:bt.call(xe,it)})),this.subscription.add(_t.interactiveControlsOpacity$.subscribe(it=>{var bt;it!==null&&((bt=this==null?void 0:this.interactiveController)==null||bt.setDisabledControls(it))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(it=>{var bt;return(bt=xe==null?void 0:xe.onThroughputEstimationChanged)==null?void 0:bt.call(xe,it)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(it=>{var bt;return(bt=xe==null?void 0:xe.onTrafficSavingEnabledChanged)==null?void 0:bt.call(xe,it)})),this.subscription.add(new f5(it=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(bt=>it.next(bt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?g5(1):it=>it).subscribe(it=>{var bt;return(bt=xe==null?void 0:xe.onCurrentPlaybackRateChanged)==null?void 0:bt.call(xe,it)})),this.subscription.add(this.store.state.volume$.subscribe(it=>{var bt;return(bt=xe==null?void 0:xe.onVolumeChange)==null?void 0:bt.call(xe,it)})),this.subscription.add(this.store.state.muted$.subscribe(it=>{var bt,Ii;return it?(bt=xe==null?void 0:xe.onMute)==null?void 0:bt.call(xe):(Ii=xe==null?void 0:xe.onUnmute)==null?void 0:Ii.call(xe)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(it=>{var bt;return(bt=xe==null?void 0:xe.onVideoBitrateChanged)==null?void 0:bt.call(xe,it)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(it=>{var bt;let Ii=(bt=this.store)==null?void 0:bt.ui.controls.disabledControls$;Ii&&(it&&!Ii.includes(Ll)&&Ii.add(Ll),it||Ii.remove(Ll))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async it=>{var bt;if(!A1.browser.isSamsungBrowser||!it||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((bt=this.videoConfig)==null?void 0:bt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(it=>{var bt;return(bt=xe==null?void 0:xe.onVSIDChanged)==null?void 0:bt.call(xe,it)})),this.initMediaSession(),D(Cn,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ue,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:dt,thumbUrl:ct,subtitles:Rt,live:O,preload:b,autoplay:C,muted:I,volume:T,fromTime:M,canRewindLive:P,supportLink:k,showAds:R,adsSlotId:W,adsParams:be,adsPreviewParam:F,adsAutoplayParam:Q,duration:ft,logoClickable:re,logoHidden:de,isMobile:Me!=null?Me:Ae,failoverHosts:ne,fullScreenTarget:Ee,saveRate:De,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ze,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:te.nextVideoTitle,endScreenVideoThumb:te.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:je,showEndScreen:we,showAutoplayNext:Ve}));let Ki={target:this.playerContainer,props:r(Cn)};this.svelteRootComponent=Zr(Em,Ki),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Yt=(Qe=(Jt=this.videoConfig)==null?void 0:Jt.callbacks)==null?void 0:Qe.onInited)==null||Yt.call(Qe)),(Mi=this.internalsExposure)==null||Mi.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((so=(Ni=this.videoConfig)==null?void 0:Ni.callbacks)!=null&&so.onDevNullLog)?Rd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?A1.isInited$.subscribe(Jt=>{Jt&&(console.log("UI SDK async start"),$i())}):$i()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var l;return(l=a.onPlayerPhaseChanged)==null?void 0:l.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var l;return d&&((l=a.onPlaybackStateChanged)==null?void 0:l.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var l;return(l=a.onIsLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var l;return(l=a.onIsActiveLiveChanged)==null?void 0:l.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var l;return(l=a.onIsAudioAvailableChanged)==null?void 0:l.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var l;return(l=a.onCurrentQualityChanged)==null?void 0:l.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var l;return(l=a.onAvailableQualitiesChanged)==null?void 0:l.call(a,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,p;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(p=a.onPiPExit)==null?void 0:p.call(a)}));let s=a==null?void 0:a.uiInfo;s&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var l;return(l=s.onControlsVisibleChanged)==null?void 0:l.call(s,d)})).add(o.ui.isMobile.subscribe(d=>{var l;return(l=s.onIsMobileChanged)==null?void 0:l.call(s,d)})).add(o.ui.playerSize.subscribe(d=>{var l;return(l=s.onPlayerSizeChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var l;return(l=s.onPrevButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playButton.subscribe(d=>{var l;return(l=s.onPlayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var l;return(l=s.onReplayButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var l;return(l=s.onNextButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var l;return(l=s.onPlayPrevChapterChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var l;return(l=s.onSeekToInteractiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var l;return(l=s.onGraphButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var l;return(l=s.onLiveButtonChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.time.subscribe(d=>{var l;return(l=s.onTimeUpdateChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.episodes.subscribe(d=>{var l;return(l=s.onEpisodesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var l;return(l=s.onSubtitlesChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.settings.subscribe(d=>{var l;return(l=s.onSettingsChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var l;return(l=s.onFullscreenChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var l;return(l=s.onChromecastChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.pip.subscribe(d=>{var l;return(l=s.onPipChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var l;return(l=s.onVkLogoChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var l;return(l=s.onInteractiveTimeIndicatorChanged)==null?void 0:l.call(s,d)})).add(o.ui.controls.timeline.subscribe(d=>{var l;return(l=s.onTimelineChanged)==null?void 0:l.call(s,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&Dm(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=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$,d=s?Se(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:m,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new a({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:d,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:p,historyApi:m,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}});let{isInteractiveExpectation$:u,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(b=>{if(!this.isInited)return;let C=this.store;b?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(u.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...b.config,title:(l==null?void 0:l.title)||b.config.title};let C=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,C),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:b,actionType:C})=>{var T,I,M,P,k,R;if(!this.store||!this.microStoresRoot)return;let W=u.getValue();if(b==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Vl)),b==="action-choice-canceled"){let Y=Se(this.store.state.isPlaying$)||W;if(((M=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?M:(I=this.videoConfig)!=null&&I.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(P=this.videoConfig)==null?void 0:(k=P.callbacks).onDisabledInteractiveClick)==null||R.call(k)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:b,removeAllOpenURI:C})=>{this.store&&b==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(Vl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(C=>{var T,I,M;C.length&&((M=(I=(T=this.videoConfig)==null?void 0:T.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||M.call(I,C))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var b,C,T,I;(b=this.microStoresRoot)==null||b.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(C=this.videoConfig)==null?void 0:(T=C.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(T)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(b=>{this.log({message:b.toString()})}))}catch(a){this.log({message:a.message})}}initPlayer(e,i={}){var o,n,a,s,d,l,p,m,y,u,$,w,b,C,T,I,M,P,k,R,W,Y,F,Q,oe,Z;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=cu($5,c5(e,re=>re instanceof HTMLElement?re:void 0)),this.uiConfig=Eg((o=i.ui)!=null?o:{}),this.coreConfig=(n=i.core)!=null?n:{configName:[]},this.statisticsConfig=(a=i.statistics)!=null?a:{},this.uiConfig.features.forcePlayerDisplayBlock&&(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&&((d=this.internalsExposure)!=null||(this.internalsExposure=new v5("UI"))),Rd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[d5()]}),Dm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),Dm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(u=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?u:!0,this.uiConfig.features.dpip=(w=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.videoConfig.isTouch=(C=(b=this.uiConfig.isMobile)!=null?b:this.videoConfig.isTouch)!=null?C:this.videoConfig.isMobile,(T=this.videoConfig).autoplay&&(T.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(M=this.uiConfig.ads.slot)!=null?M:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((k=this.uiConfig.showLogo)!=null?k:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(W=this.videoConfig.supportLink)!=null?W:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(F=this.uiConfig.features.autoplayNext)!=null?F:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Q=this.uiConfig.features.nextPrevButtons)!=null?Q:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((oe=this.videoConfig.videos)!=null&&oe[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let re={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=du.getLatestSupportedVersion(re):this.pictureInPictureApi=new Gs(re)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new lu:void 0,this.slotsApi=this.uiConfig.features.slots?new nu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new uu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(Z=this.slotsApi)==null||Z.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),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]),w1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Cn)&&(r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive(),r(Cn).endScreenVideoTitle=o.nextVideoTitle,r(Cn).endScreenVideoThumb=o.nextVideoThumb,r(Cn).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",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Cn)&&(r(Cn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}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;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}setLiveWaitingRecover(){var e;this.log({message:"live waiting recover"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!0),(o=this.store)==null||o.destroy()})}setLiveWaitingRecord(){var e;this.log({message:"post live"}),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var i,o;(i=this.store)==null||i.actions.internal.setLiveWaitingRecord(!0),(o=this.store)==null||o.destroy()})}setLiveEnd(e){var i;this.log({message:"live ended"}),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var o,n;(o=this.store)==null||o.actions.internal.setLiveWaitingRecover(!1),(n=this.store)==null||n.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}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;return(i=(e=this.statistics)==null?void 0:e.oneStat.getDeviceId())!=null?i: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 n=Se(this.store.state.positionExact$),s=Se(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(m5()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),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.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)}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}unmountComponent(e){e&&Fs(e)}};import{InterfaceLanguage as lX,VKNumericLanguage as dX,loadVKLangPack as cX}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as pX,VideoFormat as fX}from"@vkontakte/videoplayer-core/es2018";var eX=()=>{window.customElements.define("vk-video-player",mu)};export{Qc as ControlButtonType,Dr as GridTypes,lX as InterfaceLanguage,ql as MenuItemType,ts as PlayerPhase,za as VERSION,dX as VKNumericLanguage,fX as VideoFormat,pX as VideoQuality,cX as loadVKLangPack,eX as registerPlayerWebComponent};