@vkontakte/videoplayer 1.1.62-dev.4e27810f.0 → 1.1.62-dev.64d704f2.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.62-dev.4e27810f.0
3
- * Tue, 03 Jun 2025 11:55:19 GMT
2
+ * @vkontakte/videoplayer v1.1.62-dev.64d704f2.0
3
+ * Tue, 17 Jun 2025 09:00:28 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-62/doc/
5
5
  */
6
- var I1=Object.defineProperty;var Nm=t=>{throw TypeError(t)};var E1=(t,e,i)=>e in t?I1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Nn=(t,e,i)=>E1(t,typeof e!="symbol"?e+"":e,i),gu=(t,e,i)=>e.has(t)||Nm("Cannot "+i);var ki=(t,e,i)=>(gu(t,e,"read from private field"),i?i.call(t):e.get(t)),cs=(t,e,i)=>e.has(t)?Nm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ga=(t,e,i,o)=>(gu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Bm=(t,e,i)=>(gu(t,e,"access private method"),i);var us="[",As="[!",Ps="]",Kr={};var Ii=Symbol(),pi=Symbol("filename"),Dm=Symbol("hmr"),Om="http://www.w3.org/1999/xhtml",hu="http://www.w3.org/2000/svg";var Fd=!0;var Fm,Um,Hm=(Um=(Fm=globalThis.process)==null?void 0:Fm.env)==null?void 0:Um.NODE_ENV,Te=Hm&&!Hm.toLowerCase().startsWith("prod");var Do=Symbol("$state"),Qr=Symbol("$state metadata"),ol=Symbol("legacy props"),zm=Symbol("");var yr=Array.isArray,qm=Array.prototype.indexOf,nl=Array.from,_u=Object.keys,to=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,Ud=Object.getOwnPropertyDescriptors,bu=Object.prototype,Wm=Array.prototype,Gr=Object.getPrototypeOf;function ps(t){return typeof t=="function"}var ie=()=>{};function Km(t){return t()}function fs(t){for(var e=0;e<t.length;e++)t[e]()}var rl=[],$u=[];function Qm(){var t=rl;rl=[],fs(t)}function A1(){var t=$u;$u=[],fs(t)}function jo(t){rl.length===0&&queueMicrotask(Qm),rl.push(t)}function yu(){rl.length>0&&Qm(),$u.length>0&&A1()}function zd(t){return t===this.v}function ha(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Gm(t,e){return t!==e}function _a(t){return!ha(t,this.v)}function Ym(){if(Te){let t=new Error(`derived_references_self
6
+ var L1=Object.defineProperty;var Om=t=>{throw TypeError(t)};var V1=(t,e,i)=>e in t?L1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Vn=(t,e,i)=>V1(t,typeof e!="symbol"?e+"":e,i),gu=(t,e,i)=>e.has(t)||Om("Cannot "+i);var Mi=(t,e,i)=>(gu(t,e,"read from private field"),i?i.call(t):e.get(t)),ls=(t,e,i)=>e.has(t)?Om("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ba=(t,e,i,o)=>(gu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Hm=(t,e,i)=>(gu(t,e,"access private method"),i);var ds="[",Ps="[!",As="]",zr={};var Li=Symbol(),gi=Symbol("filename"),Fm=Symbol("hmr"),Um="http://www.w3.org/1999/xhtml",hu="http://www.w3.org/2000/svg";var qd=!0;var qm,Wm,zm=(Wm=(qm=globalThis.process)==null?void 0:qm.env)==null?void 0:Wm.NODE_ENV,Ee=zm&&!zm.toLowerCase().startsWith("prod");var No=Symbol("$state"),qr=Symbol("$state metadata"),dl=Symbol("legacy props"),Km=Symbol("");var fr=Array.isArray,Qm=Array.prototype.indexOf,cl=Array.from,_u=Object.keys,io=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,Wd=Object.getOwnPropertyDescriptors,bu=Object.prototype,Gm=Array.prototype,Wr=Object.getPrototypeOf;function cs(t){return typeof t=="function"}var ie=()=>{};function jm(t){return t()}function us(t){for(var e=0;e<t.length;e++)t[e]()}var ul=[],$u=[];function Ym(){var t=ul;ul=[],us(t)}function R1(){var t=$u;$u=[],us(t)}function Go(t){ul.length===0&&queueMicrotask(Ym),ul.push(t)}function yu(){ul.length>0&&Ym(),$u.length>0&&R1()}function Kd(t){return t===this.v}function $a(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Zm(t,e){return t!==e}function ya(t){return!$a(t,this.v)}function Xm(){if(Ee){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 jm(t){if(Te){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 Jm(t){if(Ee){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 Zm(){if(Te){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 Xm(t){if(Te){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 ev(){if(Ee){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 tv(t){if(Ee){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 Jm(){if(Te){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 iv(){if(Ee){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 ev(){if(Te){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 ov(){if(Ee){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 tv(){if(Te){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 iv(t){if(Te){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 nv(){if(Ee){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 rv(t){if(Ee){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 ov(t){if(Te){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 sv(t){if(Ee){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 nv(t){if(Te){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 av(t){if(Ee){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 rv(){if(Te){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 sv(){if(Te){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 av(){if(Te){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 lv(){if(Te){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 Br=!1,Dr=!1;function dv(){Br=!0}var sl=null;function Yr(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 lv(){if(Ee){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 dv(){if(Ee){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 cv(){if(Ee){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 uv(){if(Ee){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 pv(){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;to(e,"stack",{value:n.join(`
25
- `)}),to(e,"name",{value:`${t}Error`})}return e}var Ms=new Set,ba=new Map;function Cu(t){Ms=t}function Ni(t,e){var i={f:0,v:t,reactions:null,equals:zd,rv:0,wv:0};return Te&&Dr&&(i.created=e!=null?e:Yr("CreatedAt"),i.debug=null),i}function ee(t){return P1(Ni(t))}function Zr(t,e=!1){var o,n;let i=Ni(t);return e||(i.equals=_a),Br&&St!==null&&St.l!==null&&((n=(o=St.l).s)!=null?n:o.s=[]).push(i),i}function P1(t){return Vt!==null&&!On&&(Vt.f&2)!==0&&(xr===null?pv([t]):xr.push(t)),t}function O(t,e){return Vt!==null&&!On&&Or()&&(Vt.f&18)!==0&&(xr===null||!xr.includes(t))&&lv(),$a(t,e)}function $a(t,e){var o;if(!t.equals(e)){var i=t.v;if(Vs?ba.set(t,e):ba.set(t,i),t.v=e,t.wv=ll(),Te&&Dr&&(t.updated=Yr("UpdatedAt"),yt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),uv(t,2048),Or()&&yt!==null&&(yt.f&1024)!==0&&(yt.f&96)===0&&(Dn===null?fv([t]):Dn.push(t)),Te&&Ms.size>0){let n=Array.from(Ms);for(let a of n)(a.f&1024)!==0&&Jo(a,4096),ms(a)&&ya(a);Ms.clear()}}return e}function uv(t,e){var i=t.reactions;if(i!==null)for(var o=Or(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===yt)){if(Te&&(d&262144)!==0){Ms.add(s);continue}Jo(s,e),(d&1280)!==0&&((d&2)!==0?uv(s,4096):xa(s))}}}function m(t){var e=2050,i=Vt!==null&&(Vt.f&2)!==0?Vt:null;yt===null||i!==null&&(i.f&256)!==0?e|=256:yt.f|=1048576;let o={ctx:St,deps:null,effects:null,equals:zd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:yt};return Te&&Dr&&(o.created=Yr("CreatedAt")),o}function Sr(t){let e=m(t);return e.equals=_a,e}function qd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)oo(e[i])}}var Tu=[];function M1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function L1(t){var e,i=yt;if(io(M1(t)),Te){let o=Ms;Cu(new Set);try{Tu.includes(t)&&Ym(),Tu.push(t),qd(t),e=Wd(t)}finally{io(i),Cu(o),Tu.pop()}}else try{qd(t),e=Wd(t)}finally{io(i)}return e}function Iu(t){var e=L1(t),i=(Xr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Jo(t,i),t.equals(e)||(t.v=e,t.wv=ll())}var Rs="font-weight: bold",Ns="font-weight: normal";function mv(t,e,i){Te?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;io(e,"stack",{value:n.join(`
25
+ `)}),io(e,"name",{value:`${t}Error`})}return e}var Ms=new Set,xa=new Map;function Cu(t){Ms=t}function zi(t,e){var i={f:0,v:t,reactions:null,equals:Kd,rv:0,wv:0};return Ee&&Lr&&(i.created=e!=null?e:Kr("CreatedAt"),i.debug=null),i}function J(t){return D1(zi(t))}function Gr(t,e=!1){var o,n;let i=zi(t);return e||(i.equals=ya),Mr&&Et!==null&&Et.l!==null&&((n=(o=Et.l).s)!=null?n:o.s=[]).push(i),i}function D1(t){return Bt!==null&&!Nn&&(Bt.f&2)!==0&&(mr===null?vv([t]):mr.push(t)),t}function B(t,e){return Bt!==null&&!Nn&&Vr()&&(Bt.f&18)!==0&&(mr===null||!mr.includes(t))&&uv(),wa(t,e)}function wa(t,e){var o;if(!t.equals(e)){var i=t.v;if(Vs?xa.set(t,e):xa.set(t,i),t.v=e,t.wv=ml(),Ee&&Lr&&(t.updated=Kr("UpdatedAt"),St!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),mv(t,2048),Vr()&&St!==null&&(St.f&1024)!==0&&(St.f&96)===0&&(Dn===null?gv([t]):Dn.push(t)),Ee&&Ms.size>0){let n=Array.from(Ms);for(let a of n)(a.f&1024)!==0&&Zo(a,4096),ps(a)&&Sa(a);Ms.clear()}}return e}function mv(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===St)){if(Ee&&(d&262144)!==0){Ms.add(s);continue}Zo(s,e),(d&1280)!==0&&((d&2)!==0?mv(s,4096):Ca(s))}}}function v(t){var e=2050,i=Bt!==null&&(Bt.f&2)!==0?Bt:null;St===null||i!==null&&(i.f&256)!==0?e|=256:St.f|=1048576;let o={ctx:Et,deps:null,effects:null,equals:Kd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:St};return Ee&&Lr&&(o.created=Kr("CreatedAt")),o}function gr(t){let e=v(t);return e.equals=ya,e}function Qd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)no(e[i])}}var Tu=[];function N1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function B1(t){var e,i=St;if(oo(N1(t)),Ee){let o=Ms;Cu(new Set);try{Tu.includes(t)&&Xm(),Tu.push(t),Qd(t),e=Gd(t)}finally{oo(i),Cu(o),Tu.pop()}}else try{Qd(t),e=Gd(t)}finally{oo(i)}return e}function ku(t){var e=B1(t),i=(jr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Zo(t,i),t.equals(e)||(t.v=e,t.wv=ml())}var Rs="font-weight: bold",Ds="font-weight: normal";function hv(t,e,i){Ee?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 vv(t){Te?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Rs,Ds):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function _v(t){Ee?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 Bs(t){Te?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Rs,Ds):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ns(t){Ee?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 gv(){Te?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Rs,Ds):console.warn("https://svelte.dev/e/hydration_mismatch")}function bv(){Ee?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 hv(t,e,i){Te?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Rs,Ds):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function $v(t,e,i){Ee?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 Eu(t,e){Te?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Rs,Ds):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Eu(t,e){Ee?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 Kd(t){Te?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Rs,Ds):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function jd(t){Ee?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 Ye=!1;function no(t){Ye=t}var ft;function fi(t){if(t===null)throw Bs(),Kr;return ft=t}function Pi(){return fi(Ao(ft))}function g(t){if(Ye){if(Ao(ft)!==null)throw Bs(),Kr;ft=t}}function _e(t=1){if(Ye){for(var e=t,i=ft;e--;)i=Ao(i);ft=i}}function wa(){for(var t=0,e=ft;;){if(e.nodeType===8){var i=e.data;if(i===Ps){if(t===0)return e;t-=1}else(i===us||i===As)&&(t+=1)}var o=Ao(e);e.remove(),e=o}}function me(t,e=null,i){var p,f;var o=null;if(Te&&Dr&&(o=Yr("CreatedAt")),typeof t!="object"||t===null||Do in t)return t;let n=Gr(t);if(n!==bu&&n!==Wm)return t;var a=new Map,s=yr(t),d=Ni(0);s&&a.set("length",Ni(t.length,o));var l;if(Te)if(l={parent:e,owners:null},i){let _=(f=(p=i.v)==null?void 0:p[Qr])==null?void 0:f.owners;l.owners=_?new Set(_):null}else l.owners=e===null?St!==null?new Set([St.function]):null:new Set;return new Proxy(t,{defineProperty(_,u,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&rv();var w=a.get(u);return w===void 0?(w=Ni($.value,o),a.set(u,w)):O(w,me($.value,l)),!0},deleteProperty(_,u){var $=a.get(u);if($===void 0)u in _&&a.set(u,Ni(Ii,o));else{if(s&&typeof u=="string"){var w=a.get("length"),y=Number(u);Number.isInteger(y)&&y<w.v&&O(w,y)}O($,Ii),_v(d)}return!0},get(_,u,$){var A;if(Te&&u===Qr)return l;if(u===Do)return t;var w=a.get(u),y=u in _;if(w===void 0&&(!y||(A=Bn(_,u))!=null&&A.writable)&&(w=Ni(me(y?_[u]:Ii,l),o),a.set(u,w)),w!==void 0){var S=r(w);if(Te){var k=S==null?void 0:S[Qr];k&&(k==null?void 0:k.parent)!==l&&Au(l,k)}return S===Ii?void 0:S}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),S=y==null?void 0:y.v;if(y!==void 0&&S!==Ii)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return $},has(_,u){var S;if(Te&&u===Qr||u===Do)return!0;var $=a.get(u),w=$!==void 0&&$.v!==Ii||Reflect.has(_,u);if($!==void 0||yt!==null&&(!w||(S=Bn(_,u))!=null&&S.writable)){$===void 0&&($=Ni(w?me(_[u],l):Ii,o),a.set(u,$));var y=r($);if(y===Ii)return!1}return w},set(_,u,$,w){var z;var y=a.get(u),S=u in _;if(s&&u==="length")for(var k=$;k<y.v;k+=1){var A=a.get(k+"");A!==void 0?O(A,Ii):k in _&&(A=Ni(Ii,o),a.set(k+"",A))}if(y===void 0?(!S||(z=Bn(_,u))!=null&&z.writable)&&(y=Ni(void 0,o),O(y,me($,l)),a.set(u,y)):(S=y.v!==Ii,O(y,me($,l))),Te){var P=$==null?void 0:$[Qr];P&&(P==null?void 0:P.parent)!==l&&Au(l,P),bv(l)}var E=Reflect.getOwnPropertyDescriptor(_,u);if(E!=null&&E.set&&E.set.call(w,$),!S){if(s&&typeof u=="string"){var T=a.get("length"),V=Number(u);Number.isInteger(V)&&V>=T.v&&O(T,V+1)}_v(d)}return!0},ownKeys(_){r(d);var u=Reflect.ownKeys(_).filter(y=>{var S=a.get(y);return S===void 0||S.v!==Ii});for(var[$,w]of a)w.v!==Ii&&!($ in _)&&u.push($);return u},setPrototypeOf(){sv()}})}function _v(t,e=1){O(t,t.v+e)}function Qd(t){return t!==null&&typeof t=="object"&&Do in t?t[Do]:t}function $v(){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(Qd(this[l])===a){Kd("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(Qd(this[l])===a){Kd("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(Qd(this[l])===a){Kd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ds,yv,dl,xv,wv;function Gd(){if(Ds===void 0){Ds=window,yv=document,dl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;xv=Bn(e,"firstChild").get,wv=Bn(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,Te&&(t.__svelte_meta=null,$v())}}function en(t=""){return document.createTextNode(t)}function mi(t){return xv.call(t)}function Ao(t){return wv.call(t)}function h(t,e){if(!Ye)return mi(t);var i=mi(ft);if(i===null)i=ft.appendChild(en());else if(e&&i.nodeType!==3){var o=en();return i==null||i.before(o),fi(o),o}return fi(i),i}function ue(t,e){var n,a;if(!Ye){var i=mi(t);return i.nodeType===8&&i.data===""?Ao(i):i}if(e&&((n=ft)==null?void 0:n.nodeType)!==3){var o=en();return(a=ft)==null||a.before(o),fi(o),o}return ft}function M(t,e=1,i=!1){let o=Ye?ft:t;for(var n;e--;)n=o,o=Ao(o);if(!Ye)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=en();return o===null?n==null||n.after(s):o.before(s),fi(s),s}return fi(o),o}function cl(t){t.textContent=""}var Sv=new WeakSet,Yd=!1,fl=!1,ul=null,Os=!1,Vs=!1;function Lu(t){Vs=t}var pl=[],Zd=[],Vt=null,On=!1;function go(t){Vt=t}var yt=null;function io(t){yt=t}var xr=null;function pv(t){xr=t}var tn=null,Fn=0,Dn=null;function fv(t){Dn=t}var Ev=1,Xd=0,Xr=!1,al=null;function ll(){return++Ev}function ms(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&&yt!==null&&!Xr,l=i.length;if(s||d){var p=t,f=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&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<l;n++)if(a=i[n],ms(a)&&Iu(a),a.wv>t.wv)return!0}(!o||yt!==null&&!Xr)&&Jo(t,1024)}return!1}function Cv(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 Yd=!1,t}function Tv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ca(t,e,i,o){var f,_;if(Yd){if(i===null&&(Yd=!1),Tv(e))throw t;return}if(i!==null&&(Yd=!0),!Te||o===null||!(t instanceof Error)||Sv.has(t)){Cv(t,e);return}Sv.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Te){var d=(_=s.function)==null?void 0:_[pi];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=dl?" ":" ";to(t,"message",{value:t.message+`
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Rs,Ds):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ge=!1;function ro(t){Ge=t}var gt;function hi(t){if(t===null)throw Ns(),zr;return gt=t}function Oi(){return hi(Po(gt))}function g(t){if(Ge){if(Po(gt)!==null)throw Ns(),zr;gt=t}}function ye(t=1){if(Ge){for(var e=t,i=gt;e--;)i=Po(i);gt=i}}function Ta(){for(var t=0,e=gt;;){if(e.nodeType===8){var i=e.data;if(i===As){if(t===0)return e;t-=1}else(i===ds||i===Ps)&&(t+=1)}var o=Po(e);e.remove(),e=o}}function pe(t,e=null,i){var p,m;var o=null;if(Ee&&Lr&&(o=Kr("CreatedAt")),typeof t!="object"||t===null||No in t)return t;let n=Wr(t);if(n!==bu&&n!==Gm)return t;var a=new Map,s=fr(t),d=zi(0);s&&a.set("length",zi(t.length,o));var l;if(Ee)if(l={parent:e,owners:null},i){let $=(m=(p=i.v)==null?void 0:p[qr])==null?void 0:m.owners;l.owners=$?new Set($):null}else l.owners=e===null?Et!==null?new Set([Et.function]):null:new Set;return new Proxy(t,{defineProperty($,u,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&lv();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),yv(d)}return!0},get($,u,_){var E;if(Ee&&u===qr)return l;if(u===No)return t;var w=a.get(u),y=u in $;if(w===void 0&&(!y||(E=Rn($,u))!=null&&E.writable)&&(w=zi(pe(y?$[u]:Li,l),o),a.set(u,w)),w!==void 0){var C=r(w);if(Ee){var T=C==null?void 0:C[qr];T&&(T==null?void 0:T.parent)!==l&&Pu(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(Ee&&u===qr||u===No)return!0;var _=a.get(u),w=_!==void 0&&_.v!==Li||Reflect.has($,u);if(_!==void 0||St!==null&&(!w||(C=Rn($,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=Rn($,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))),Ee){var P=_==null?void 0:_[qr];P&&(P==null?void 0:P.parent)!==l&&Pu(l,P),xv(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)}yv(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(){dv()}})}function yv(t,e=1){B(t,t.v+e)}function Yd(t){return t!==null&&typeof t=="object"&&No in t?t[No]:t}function wv(){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(Yd(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(Yd(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(Yd(this[l])===a){jd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Bs,Sv,vl,Cv,Tv;function Zd(){if(Bs===void 0){Bs=window,Sv=document,vl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Cv=Rn(e,"firstChild").get,Tv=Rn(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,Ee&&(t.__svelte_meta=null,wv())}}function Xo(t=""){return document.createTextNode(t)}function _i(t){return Cv.call(t)}function Po(t){return Tv.call(t)}function h(t,e){if(!Ge)return _i(t);var i=_i(gt);if(i===null)i=gt.appendChild(Xo());else if(e&&i.nodeType!==3){var o=Xo();return i==null||i.before(o),hi(o),o}return hi(i),i}function ce(t,e){var n,a;if(!Ge){var i=_i(t);return i.nodeType===8&&i.data===""?Po(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==3){var o=Xo();return(a=gt)==null||a.before(o),hi(o),o}return gt}function M(t,e=1,i=!1){let o=Ge?gt:t;for(var n;e--;)n=o,o=Po(o);if(!Ge)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=Xo();return o===null?n==null||n.after(s):o.before(s),hi(s),s}return hi(o),o}function gl(t){t.textContent=""}var Iv=new WeakSet,Xd=!1,bl=!1,hl=null,Os=!1,Vs=!1;function Lu(t){Vs=t}var _l=[],ec=[],Bt=null,Nn=!1;function go(t){Bt=t}var St=null;function oo(t){St=t}var mr=null;function vv(t){mr=t}var Jo=null,On=0,Dn=null;function gv(t){Dn=t}var Mv=1,tc=0,jr=!1,fl=null;function ml(){return++Mv}function ps(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&&St!==null&&!jr,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],ps(a)&&ku(a),a.wv>t.wv)return!0}(!o||St!==null&&!jr)&&Zo(t,1024)}return!1}function kv(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 Xd=!1,t}function Ev(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function ka(t,e,i,o){var m,$;if(Xd){if(i===null&&(Xd=!1),Ev(e))throw t;return}if(i!==null&&(Xd=!0),!Ee||o===null||!(t instanceof Error)||Iv.has(t)){kv(t,e);return}Iv.add(t);let n=[],a=(m=e.fn)==null?void 0:m.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ee){var d=($=s.function)==null?void 0:$[gi];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=vl?" ":" ";io(t,"message",{value:t.message+`
40
40
  ${n.map(u=>`
41
41
  ${l}in ${u}`).join("")}
42
- `}),to(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)}to(t,"stack",{value:$.join(`
44
- `)})}if(Cv(t,e),Tv(e))throw t}function Av(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?Av(a,e,!1):e===a&&(i?Jo(a,2048):(a.f&1024)!==0&&Jo(a,4096),xa(a))}}function Wd(t){var $,w;var e=tn,i=Fn,o=Dn,n=Vt,a=Xr,s=xr,d=St,l=On,p=t.f;tn=null,Fn=0,Dn=null,Xr=(p&256)!==0&&(On||!Os||Vt===null),Vt=(p&96)===0?t:null,xr=null,vl(t.ctx),On=!1,Xd++;try{var f=(0,t.fn)(),_=t.deps;if(tn!==null){var u;if(ml(t,Fn),_!==null&&Fn>0)for(_.length=Fn+tn.length,u=0;u<tn.length;u++)_[Fn+u]=tn[u];else t.deps=_=tn;if(!Xr)for(u=Fn;u<_.length;u++)((w=($=_[u]).reactions)!=null?w:$.reactions=[]).push(t)}else _!==null&&Fn<_.length&&(ml(t,Fn),_.length=Fn);if(Or()&&Dn!==null&&!On&&_!==null&&(t.f&6146)===0)for(u=0;u<Dn.length;u++)Av(Dn[u],t);return n!==null&&(Xd++,Dn!==null&&(o===null?o=Dn:o.push(...Dn))),f}finally{tn=e,Fn=i,Dn=o,Vt=n,Xr=a,xr=s,vl(d),On=l}}function V1(t,e){let i=e.reactions;if(i!==null){var o=qm.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&&(tn===null||!tn.includes(e))&&(Jo(e,4096),(e.f&768)===0&&(e.f^=512),qd(e),ml(e,0))}function ml(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)V1(t,i[o])}function ya(t){var e=t.f;if((e&16384)===0){Jo(t,1024);var i=yt,o=St,n=Os;if(yt=t,Os=!0,Te){var a=on;gl(t.component_function)}try{(e&16)!==0?Pv(t):Ru(t),Vu(t);var s=Wd(t);t.teardown=typeof s=="function"?s:null,t.wv=Ev;var d=t.deps;if(Te&&Dr&&(t.f&2048)!==0&&d!==null)for(let p=0;p<d.length;p++){var l=d[p];l.trace_need_increase&&(l.wv=ll(),l.trace_need_increase=void 0,l.trace_v=void 0)}Te&&Zd.push(t)}catch(p){Ca(p,t,i,o||t.ctx)}finally{Os=n,yt=i,Te&&gl(a)}}}function kv(){console.error("Last ten effects were: ",Zd.slice(-10).map(t=>t.fn)),Zd=[]}function R1(){try{Jm()}catch(t){if(Te&&to(t,"stack",{value:""}),ul!==null)if(Te)try{Ca(t,ul,null,null)}catch(e){throw kv(),e}else Ca(t,ul,null,null);else throw Te&&kv(),t}}function Pu(){var t=Os;try{var e=0;for(Os=!0;pl.length>0;){e++>1e3&&R1();var i=pl,o=i.length;pl=[];for(var n=0;n<o;n++){var a=B1(i[n]);N1(a)}}}finally{fl=!1,Os=t,ul=null,Te&&(Zd=[]),ba.clear()}}function N1(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{ms(o)&&(ya(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Nu(o):o.fn=null))}catch(n){Ca(n,o,null,o.ctx)}}}function xa(t){fl||(fl=!0,queueMicrotask(Pu));for(var e=ul=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}pl.push(e)}function B1(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=Vt;try{Vt=i,ms(i)&&ya(i)}catch(p){Ca(p,i,null,i.ctx)}finally{Vt=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 Ta(t){var e;for(t&&(fl=!0,Pu(),e=t()),yu();pl.length>0;)fl=!0,Pu(),yu();return e}async function ho(){await Promise.resolve(),Ta()}function r(t){var e=t.f,i=(e&2)!==0;if(al!==null&&al.add(t),Vt!==null&&!On){xr!==null&&xr.includes(t)&&av();var o=Vt.deps;t.rv<Xd&&(t.rv=Xd,tn===null&&o!==null&&o[Fn]===t?Fn++:tn===null?tn=[t]:(!Xr||!tn.includes(t))&&tn.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,ms(n)&&Iu(n)),Te&&Dr&&sl!==null&&Vt!==null&&sl.reaction===Vt){if(t.debug)t.debug();else if(t.created){var s=sl.entries.get(t);s===void 0&&(s={read:[]},sl.entries.set(t,s)),s.read.push(Yr("TracedAt"))}}return Vs&&ba.has(t)?ba.get(t):t.v}function _t(t){var e=On;try{return On=!0,t()}finally{On=e}}var D1=-7169;function Jo(t,e){t.f=t.f&D1|e}function ec(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Do in t)Jd(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Do in i&&Jd(i)}}}function Jd(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{Jd(t[o],e)}catch(n){}let i=Gr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Ud(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Du(t){yt===null&&Vt===null&&Xm(t),Vt!==null&&(Vt.f&256)!==0&&yt===null&&Zm(),Vs&&jm(t)}function O1(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=yt;if(Te)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:St,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(Te&&(a.component_function=on),i)try{ya(a),a.f|=32768}catch(p){throw oo(a),p}else e!==null&&xa(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&&O1(a,n),Vt!==null&&(Vt.f&2)!==0)){var d=Vt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function nn(t){let e=Hs(8,null,!1);return Jo(e,1024),e.teardown=t,e}function qe(t){var n;Du("$effect");var e=yt!==null&&(yt.f&32)!==0&&St!==null&&!St.m;if(Te&&to(t,"name",{value:"$effect"}),e){var i=St;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:yt,reaction:Vt})}else{var o=vn(t);return o}}function ka(t){return Du("$effect.pre"),Te&&to(t,"name",{value:"$effect.pre"}),_o(t)}function ic(t){let e=Hs(64,t,!0);return()=>{oo(e)}}function Lv(t){let e=Hs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?gn(e,()=>{oo(e),o(void 0)}):(oo(e),o(void 0))})}function vn(t){return Hs(4,t,!1)}function _o(t){return Hs(8,t,!0)}function I(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Te&&to(n,"name",{value:"{expression}"}),ro(n)}function ro(t,e=0){return Hs(24|e,t,!0)}function Bi(t,e=!0){return Hs(40,t,!0,e)}function Vu(t){var e=t.teardown;if(e!==null){let i=Vs,o=Vt;Lu(!0),go(null);try{e.call(null)}finally{Lu(i),go(o)}}}function Ru(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:oo(i,e),i=o}}function Pv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&oo(e),e=i}}function oo(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}Ru(t,e&&!i),ml(t,0),Jo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Vu(t);var d=t.parent;d!==null&&d.first!==null&&Nu(t),Te&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Nu(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 gn(t,e){var i=[];oc(t,i,!0),Ou(i,()=>{oo(t),e&&e()})}function Ou(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function oc(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;oc(o,e,a?i:!1),o=n}}}function Jr(t){Vv(t,!0)}function Vv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ms(t)&&(Jo(t,2048),xa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Vv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var H1={},F1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,U1=/@(.+):(\d+):(\d+)$/;function z1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
- `)){let n=(i=F1.exec(o))!=null?i:U1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Rv(){var e;let t=(e=z1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=H1[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 nc=Symbol("ADD_OWNER");function Hu(t,e,i=!1,o=!1){if(t&&!i){let n=on,a=t[Qr];if(a&&!Fu(a,n)){let s=Uu(a);e&&e[pi]!==n[pi]&&!o&&hv(n[pi],e[pi],s[pi])}}rc(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 rc(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),nc in t&&t[nc])_o(()=>{t[nc](e)});else{var n=Gr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ii;_o(()=>{let l=t[s];d!==l&&(d=l,rc(l,e,i))})}else rc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)rc(t[s],e,i)}}}function Fu(t,e){return t.owners===null?!0:t.owners.has(e)||pi in e&&[...t.owners].some(i=>i[pi]===e[pi])||t.parent!==null&&Fu(t.parent,e)}function Uu(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Uu(t.parent)}var q1=!1;function bv(t){if(q1)return;let e=Rv();if(e&&!Fu(t,e)){let i=Uu(t);i[pi]!==e[pi]?Eu(e[pi],i[pi]):Eu()}}function Ia(t){if(Te){let e=new Error(`lifecycle_outside_component
42
+ `}),io(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)}io(t,"stack",{value:_.join(`
44
+ `)})}if(kv(t,e),Ev(e))throw t}function Lv(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?Lv(a,e,!1):e===a&&(i?Zo(a,2048):(a.f&1024)!==0&&Zo(a,4096),Ca(a))}}function Gd(t){var _,w;var e=Jo,i=On,o=Dn,n=Bt,a=jr,s=mr,d=Et,l=Nn,p=t.f;Jo=null,On=0,Dn=null,jr=(p&256)!==0&&(Nn||!Os||Bt===null),Bt=(p&96)===0?t:null,mr=null,yl(t.ctx),Nn=!1,tc++;try{var m=(0,t.fn)(),$=t.deps;if(Jo!==null){var u;if($l(t,On),$!==null&&On>0)for($.length=On+Jo.length,u=0;u<Jo.length;u++)$[On+u]=Jo[u];else t.deps=$=Jo;if(!jr)for(u=On;u<$.length;u++)((w=(_=$[u]).reactions)!=null?w:_.reactions=[]).push(t)}else $!==null&&On<$.length&&($l(t,On),$.length=On);if(Vr()&&Dn!==null&&!Nn&&$!==null&&(t.f&6146)===0)for(u=0;u<Dn.length;u++)Lv(Dn[u],t);return n!==null&&(tc++,Dn!==null&&(o===null?o=Dn:o.push(...Dn))),m}finally{Jo=e,On=i,Dn=o,Bt=n,jr=a,mr=s,yl(d),Nn=l}}function O1(t,e){let i=e.reactions;if(i!==null){var o=Qm.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&&(Jo===null||!Jo.includes(e))&&(Zo(e,4096),(e.f&768)===0&&(e.f^=512),Qd(e),$l(e,0))}function $l(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)O1(t,i[o])}function Sa(t){var e=t.f;if((e&16384)===0){Zo(t,1024);var i=St,o=Et,n=Os;if(St=t,Os=!0,Ee){var a=en;xl(t.component_function)}try{(e&16)!==0?Vv(t):Ru(t),Vu(t);var s=Gd(t);t.teardown=typeof s=="function"?s:null,t.wv=Mv;var d=t.deps;if(Ee&&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)}Ee&&ec.push(t)}catch(p){ka(p,t,i,o||t.ctx)}finally{Os=n,St=i,Ee&&xl(a)}}}function Pv(){console.error("Last ten effects were: ",ec.slice(-10).map(t=>t.fn)),ec=[]}function H1(){try{iv()}catch(t){if(Ee&&io(t,"stack",{value:""}),hl!==null)if(Ee)try{ka(t,hl,null,null)}catch(e){throw Pv(),e}else ka(t,hl,null,null);else throw Ee&&Pv(),t}}function Au(){var t=Os;try{var e=0;for(Os=!0;_l.length>0;){e++>1e3&&H1();var i=_l,o=i.length;_l=[];for(var n=0;n<o;n++){var a=U1(i[n]);F1(a)}}}finally{bl=!1,Os=t,hl=null,Ee&&(ec=[]),xa.clear()}}function F1(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{ps(o)&&(Sa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Du(o):o.fn=null))}catch(n){ka(n,o,null,o.ctx)}}}function Ca(t){bl||(bl=!0,queueMicrotask(Au));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 U1(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=Bt;try{Bt=i,ps(i)&&Sa(i)}catch(p){ka(p,i,null,i.ctx)}finally{Bt=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 Ea(t){var e;for(t&&(bl=!0,Au(),e=t()),yu();_l.length>0;)bl=!0,Au(),yu();return e}async function ho(){await Promise.resolve(),Ea()}function r(t){var e=t.f,i=(e&2)!==0;if(fl!==null&&fl.add(t),Bt!==null&&!Nn){mr!==null&&mr.includes(t)&&cv();var o=Bt.deps;t.rv<tc&&(t.rv=tc,Jo===null&&o!==null&&o[On]===t?On++:Jo===null?Jo=[t]:(!jr||!Jo.includes(t))&&Jo.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,ps(n)&&ku(n)),Ee&&Lr&&pl!==null&&Bt!==null&&pl.reaction===Bt){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 Vs&&xa.has(t)?xa.get(t):t.v}function $t(t){var e=Nn;try{return Nn=!0,t()}finally{Nn=e}}var z1=-7169;function Zo(t,e){t.f=t.f&z1|e}function oc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(No in t)ic(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&No in i&&ic(i)}}}function ic(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{ic(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=Wd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Bu(t){St===null&&Bt===null&&tv(t),Bt!==null&&(Bt.f&256)!==0&&St===null&&ev(),Vs&&Jm(t)}function q1(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=St;if(Ee)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(Ee&&(a.component_function=en),i)try{Sa(a),a.f|=32768}catch(p){throw no(a),p}else e!==null&&Ca(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&&q1(a,n),Bt!==null&&(Bt.f&2)!==0)){var d=Bt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function tn(t){let e=Hs(8,null,!1);return Zo(e,1024),e.teardown=t,e}function qe(t){var n;Bu("$effect");var e=St!==null&&(St.f&32)!==0&&Et!==null&&!Et.m;if(Ee&&io(t,"name",{value:"$effect"}),e){var i=Et;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:St,reaction:Bt})}else{var o=gn(t);return o}}function Pa(t){return Bu("$effect.pre"),Ee&&io(t,"name",{value:"$effect.pre"}),_o(t)}function rc(t){let e=Hs(64,t,!0);return()=>{no(e)}}function Dv(t){let e=Hs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?hn(e,()=>{no(e),o(void 0)}):(no(e),o(void 0))})}function gn(t){return Hs(4,t,!1)}function _o(t){return Hs(8,t,!0)}function k(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return Ee&&io(n,"name",{value:"{expression}"}),so(n)}function so(t,e=0){return Hs(24|e,t,!0)}function qi(t,e=!0){return Hs(40,t,!0,e)}function Vu(t){var e=t.teardown;if(e!==null){let i=Vs,o=Bt;Lu(!0),go(null);try{e.call(null)}finally{Lu(i),go(o)}}}function Ru(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:no(i,e),i=o}}function Vv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&no(e),e=i}}function no(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:Po(o);o.remove(),o=a}i=!0}Ru(t,e&&!i),$l(t,0),Zo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Vu(t);var d=t.parent;d!==null&&d.first!==null&&Du(t),Ee&&(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 hn(t,e){var i=[];sc(t,i,!0),Ou(i,()=>{no(t),e&&e()})}function Ou(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function sc(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;sc(o,e,a?i:!1),o=n}}}function Yr(t){Nv(t,!0)}function Nv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),ps(t)&&(Zo(t,2048),Ca(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Nv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var W1={},K1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,Q1=/@(.+):(\d+):(\d+)$/;function G1(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=K1.exec(o))!=null?i:Q1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Bv(){var e;let t=(e=G1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=W1[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 ac=Symbol("ADD_OWNER");function Hu(t,e,i=!1,o=!1){if(t&&!i){let n=en,a=t[qr];if(a&&!Fu(a,n)){let s=Uu(a);e&&e[gi]!==n[gi]&&!o&&$v(n[gi],e[gi],s[gi])}}lc(t,e,new Set)}function Pu(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 lc(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),ac in t&&t[ac])_o(()=>{t[ac](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=Li;_o(()=>{let l=t[s];d!==l&&(d=l,lc(l,e,i))})}else lc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)lc(t[s],e,i)}}}function Fu(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&&Fu(t.parent,e)}function Uu(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Uu(t.parent)}var j1=!1;function xv(t){if(j1)return;let e=Bv();if(e&&!Fu(t,e)){let i=Uu(t);i[gi]!==e[gi]?Eu(e[gi],i[gi]):Eu()}}function Aa(t){if(Ee){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 St=null;function vl(t){St=t}var on=null;function gl(t){on=t}function Ea(t){return zu("getContext").get(t)}function Aa(t,e){let i=zu("setContext");return Te&&_t(()=>Hu(e,null,!0)),i.set(t,e),e}function _l(){return zu("getAllContexts")}function q(t,e=!1,i){var o=St={p:St,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Br&&!e&&(St.l={s:null,u:null,r1:[],r2:Ni(!1)}),nn(()=>{o.d=!0}),Te&&(St.function=i,on=i)}function W(t){var s,d;let e=St;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=yt,o=Vt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];io(a.effect),go(a.reaction),vn(a.fn)}}finally{io(i),go(o)}}St=e.p,Te&&(on=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Or(){return!Br||St!==null&&St.l===null}function zu(t){var e;return St===null&&Ia(t),(e=St.c)!=null?e:St.c=new Map(K1(St)||void 0)}function K1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Q1=/\r/g;function Nv(t){t=t.replace(Q1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Bv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var G1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Dv(t){return G1.includes(t)}var Y1=["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 j1={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 Ov(t){var e;return t=t.toLowerCase(),(e=j1[t])!=null?e:t}var i6=[...Y1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Z1=["touchstart","touchmove"];function Hv(t){return Z1.includes(t)}var X1=["textarea","script","style","title"];function Fv(t){return X1.includes(t)}function qu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Uv=new Map;function zv(t,e){var i=Uv.get(t);i||(i=new Set,Uv.set(t,i)),i.add(e)}function Wu(t,e){if(e){let i=document.body;t.autofocus=!0,jo(()=>{document.activeElement===i&&t.focus()})}}function bl(t){var e=Vt,i=yt;go(null),io(null);try{return t()}finally{go(e),io(i)}}var Ku=new Set,sc=new Set;function Fs(t){if(!Ye)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 Qu(t,e,i,o={}){function n(a){if(o.capture||Pa.call(e,a),!a.cancelBubble)return bl(()=>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=Qu(t,e,i,a);(e===document.body||e===window||e===document)&&nn(()=>{e.removeEventListener(t,s,a)})}function rt(t){for(var e=0;e<t.length;e++)Ku.add(t[e]);for(var i of sc)i(t)}function Pa(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.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){to(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Vt,_=yt;go(null),io(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(yr(y)){var[S,...k]=y;S.apply(a,[t,...k])}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,go(f),io(_)}}}var e0;function qv(){e0=void 0}function Ma(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function bo(t,e){var i=yt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ye)return bo(ft,null),ft;n===void 0&&(n=Ma(a?t:"<!>"+t),i||(n=mi(n)));var s=o||dl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=mi(s),l=s.lastChild;bo(d,l)}else bo(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(Ye)return bo(ft,null),ft;if(!s){var d=Ma(a),l=mi(d);if(n)for(s=document.createDocumentFragment();mi(l);)s.appendChild(mi(l));else s=mi(l)}var p=s.cloneNode(!0);if(n){var f=mi(p),_=p.lastChild;bo(f,_)}else bo(p,p);return p}}function rr(t=""){if(!Ye){var e=en(t+"");return bo(e,e),e}var i=ft;return i.nodeType!==3&&(i.before(i=en()),fi(i)),bo(i,i),i}function Fe(){if(Ye)return bo(ft,null),ft;var t=document.createDocumentFragment(),e=document.createComment(""),i=en();return t.append(e,i),bo(e,i),t}function b(t,e){if(Ye){yt.nodes_end=ft,Pi();return}t!==null&&t.before(e)}var $l=!0;function ac(t){$l=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function es(t,e){return Kv(t,e)}function Yu(t,e){var s;Gd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=ft;try{for(var a=mi(i);a&&(a.nodeType!==8||a.data!==us);)a=Ao(a);if(!a)throw Kr;no(!0),fi(a),Pi();let d=Kv(t,{...e,anchor:a});if(ft===null||ft.nodeType!==8||ft.data!==Ps)throw Bs(),Kr;return no(!1),d}catch(d){if(d===Kr)return e.recover===!1&&ev(),Gd(),cl(i),no(!1),es(t,e);throw d}finally{no(o),fi(n),qv()}}var La=new Map;function Kv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Gd();var d=new Set,l=_=>{for(var u=0;u<_.length;u++){var $=_[u];if(!d.has($)){d.add($);var w=Hv($);e.addEventListener($,Pa,{passive:w});var y=La.get($);y===void 0?(document.addEventListener($,Pa,{passive:w}),La.set($,1)):La.set($,y+1)}}};l(nl(Ku)),sc.add(l);var p=void 0,f=Lv(()=>{var _=i!=null?i:e.appendChild(en());return Bi(()=>{if(a){q({});var u=St;u.c=a}n&&(o.$$events=n),Ye&&bo(_,null),$l=s,p=t(_,o)||{},$l=!0,Ye&&(yt.nodes_end=ft),a&&W()}),()=>{var w;for(var u of d){e.removeEventListener(u,Pa);var $=La.get(u);--$===0?(document.removeEventListener(u,Pa),La.delete(u)):La.set(u,$)}sc.delete(l),_!==i&&((w=_.parentNode)==null||w.removeChild(_))}});return Gu.set(p,f),p}var Gu=new WeakMap;function Us(t,e){let i=Gu.get(t);return i?(Gu.delete(t),i(e)):(Te&&gv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ye&&i===0&&Pi();var n=t,a=null,s=null,d=Ii,l=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,_($,u)},_=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ye&&o!==-1){if(i===0){let S=n.data;S===us?o=0:S===As?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=wa(),fi(n),no(!1),w=!0,o=-1)}d?(a?Jr(a):$&&(a=Bi(()=>$(n))),s&&gn(s,()=>{s=null})):(s?Jr(s):$&&(s=Bi(()=>$(n,[i+1,o]))),a&&gn(a,()=>{a=null})),w&&no(!0)};ro(()=>{p=!1,e(f),p||_(null,null)},l),Ye&&(n=ft)}function zs(t,e,i){Ye&&Pi();var o=t,n=Ii,a,s=Or()?Gm:ha;ro(()=>{s(n,n=e())&&(a&&gn(a),a=Bi(()=>i(o)))}),Ye&&(o=ft)}var gs=null;function Xu(t){gs=t}function yl(t,e){return e}function n0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)oc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;cl(l),l.append(i),o.clear(),vs(t,e[0].prev,e[a-1].next)}Ou(n,()=>{for(var p=0;p<a;p++){var f=e[p];d||(o.delete(f.k),vs(t,f.prev,f.next)),oo(f.e,!d)}})}function $i(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=Ye?fi(mi(p)):p.appendChild(en())}Ye&&Pi();var f=null,_=!1,u=Sr(()=>{var $=i();return yr($)?$:$==null?[]:nl($)});ro(()=>{var $=r(u),w=$.length;if(_&&w===0)return;_=w===0;let y=!1;if(Ye){var S=s.data===As;S!==(w===0)&&(s=wa(),fi(s),no(!1),y=!0)}if(Ye){for(var k=null,A,P=0;P<w;P++){if(ft.nodeType===8&&ft.data===Ps){s=ft,y=!0,no(!1);break}var E=$[P],T=o(E,P);A=Yv(ft,d,k,null,E,T,P,n,e,i),d.items.set(T,A),k=A}w>0&&fi(wa())}Ye||r0($,d,s,n,e,o,i),a!==null&&(w===0?f?Jr(f):f=Bi(()=>a(s)):f!==null&&gn(f,()=>{f=null})),y&&no(!0),r(u)}),Ye&&(s=ft)}function r0(t,e,i,o,n,a,s){var le,Ve,Pe,J;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,f=e.items,_=e.first,u=_,$,w=null,y,S=[],k=[],A,P,E,T;if(d)for(T=0;T<p;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((le=E.a)==null||le.measure(),(y!=null?y:y=new Set).add(E));for(T=0;T<p;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var V=u?u.e.nodes_start:i;w=Yv(V,e,w,w===null?e.first:w.next,A,P,T,o,n,s),f.set(P,w),S=[],k=[],u=w.next;continue}if(l&&s0(E,A,T,n),(E.e.f&8192)!==0&&(Jr(E.e),d&&((Ve=E.a)==null||Ve.unfix(),(y!=null?y:y=new Set).delete(E))),E!==u){if($!==void 0&&$.has(E)){if(S.length<k.length){var z=k[0],Y;w=z.prev;var F=S[0],j=S[S.length-1];for(Y=0;Y<S.length;Y+=1)Qv(S[Y],z,i);for(Y=0;Y<k.length;Y+=1)$.delete(k[Y]);vs(e,F.prev,j.next),vs(e,w,F),vs(e,j,z),u=z,w=j,T-=1,S=[],k=[]}else $.delete(E),Qv(E,u,i),vs(e,E.prev,E.next),vs(e,E,w===null?e.first:w.next),vs(e,w,E),w=E;continue}for(S=[],k=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),k.push(u),u=u.next;if(u===null)continue;E=u}S.push(E),w=E,u=E.next}if(u!==null||$!==void 0){for(var X=$===void 0?[]:nl($);u!==null;)(u.e.f&8192)===0&&X.push(u),u=u.next;var oe=X.length;if(oe>0){var pe=(n&4)!==0&&p===0?i:null;if(d){for(T=0;T<oe;T+=1)(Pe=X[T].a)==null||Pe.measure();for(T=0;T<oe;T+=1)(J=X[T].a)==null||J.fix()}n0(e,X,pe,f)}}d&&jo(()=>{var Me;if(y!==void 0)for(E of y)(Me=E.a)==null||Me.apply()}),yt.first=e.first&&e.first.e,yt.last=w&&w.e}function s0(t,e,i,o){(o&1)!==0&&$a(t.v,e),(o&2)!==0?$a(t.i,i):t.i=i}function Yv(t,e,i,o,n,a,s,d,l,p){var f=gs,_=(l&1)!==0,u=(l&16)===0,$=_?u?Zr(n):Ni(n):n,w=(l&2)===0?s:Ni(s);Te&&_&&($.debug=()=>{var S=typeof w=="number"?s:w.v;p()[S]});var y={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};gs=y;try{return y.e=Bi(()=>d(t,$,w,p),Ye),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{gs=f}}function Qv(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 vs(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 a0(t,e,i){var a,s;if(!e||e===Nv(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=on)!=null&&s[pi]&&(o=`in ${on[pi]}`),vv(qu(o))}function xl(t,e,i,o,n){var a=t,s="",d;ro(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Pi();return}d!==void 0&&(oo(d),d=void 0),s!==""&&(d=Bi(()=>{if(Ye){for(var p=ft.data,f=Pi(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=Ao(f);if(f===null)throw Bs(),Kr;Te&&!n&&a0(f.parentNode,p,s),bo(ft,_),a=fi(f);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var $=Ma(u);if((i||o)&&($=mi($)),bo(mi($),$.lastChild),i||o)for(;mi($);)a.before(mi($));else a.before($)}))})}function ge(t,e,...i){var o=t,n=ie,a;ro(()=>{n!==(n=e())&&(a&&(oo(a),a=null),Te&&n==null&&tv(),a=Bi(()=>n(o,...i)))},65536),Ye&&(o=ft)}function yi(t,e,i){Ye&&Pi();var o=t,n,a;ro(()=>{n!==(n=e())&&(a&&(gn(a),a=null),n&&(a=Bi(()=>i(o,n))))},65536),Ye&&(o=ft)}function wl(t,e,i,o,n,a){var w;let s=Ye;Ye&&Pi();var d=Te&&a&&((w=St)==null?void 0:w.function[pi]),l,p,f=null;Ye&&ft.nodeType===1&&(f=ft,Pi());var _=Ye?ft:t,u,$=gs;ro(()=>{let y=e()||null;var S=n?n():i||y==="svg"?hu:null;if(y!==l){var k=gs;Xu($),u&&(y===null?gn(u,()=>{u=null,p=null}):y===p?Jr(u):(oo(u),ac(!1))),y&&y!==p&&(u=Bi(()=>{if(f=Ye?f:S?document.createElementNS(S,y):document.createElement(y),Te&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),bo(f,f),o){Ye&&Fv(y)&&f.append(document.createComment(""));var A=Ye?mi(f):f.appendChild(en());Ye&&(A===null?no(!1):fi(A)),o(f,A)}yt.nodes_end=f,_.before(f)})),l=y,l&&(p=l),ac(!0),Xu(k)}},65536),s&&(no(!0),fi(_))}var ep;function jv(t){return ep=t.target,new Ju(t)}var ts,sr,Ju=class{constructor(e){cs(this,ts);cs(this,sr);var a,s;var i=new Map,o=(d,l)=>{var p=Zr(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===ol?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var f;return O((f=i.get(l))!=null?f:o(l,p),p),Reflect.set(d,l,p)}});ga(this,sr,(e.hydrate?Yu:es)(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)&&Ta(),ga(this,ts,n.$$events);for(let d of Object.keys(ki(this,sr)))d==="$set"||d==="$destroy"||d==="$on"||to(this,d,{get(){return ki(this,sr)[d]},set(l){ki(this,sr)[d]=l},enumerable:!0});ki(this,sr).$set=d=>{Object.assign(n,d)},ki(this,sr).$destroy=()=>{Us(ki(this,sr))}}$set(e){ki(this,sr).$set(e)}$on(e,i){ki(this,ts)[e]=ki(this,ts)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,ts)[e].push(o),()=>{ki(this,ts)[e]=ki(this,ts)[e].filter(n=>n!==o)}}$destroy(){ki(this,sr).$destroy()}};ts=new WeakMap,sr=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=ep)==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),Te&&zv(e.hash,d)}})}function Zv(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=Zv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Xv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Zv(t))&&(o&&(o+=" "),o+=e);return o}function Sl(t){return typeof t=="object"?Xv(t):t!=null?t:""}var Jv=[...`
48
- \r\f\xA0\v\uFEFF`];function tg(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||Jv.includes(o[s-1]))&&(d===o.length||Jv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function eg(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 tp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function ig(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(tp)),n&&l.push(...Object.keys(n).map(tp));var p=0,f=-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===":"&&f===-1)f=_;else if(u===";"||_===y-1){if(f!==-1){var $=tp(t.substring(p,f).trim());if(!l.includes($)){u!==";"&&_++;var w=t.substring(p,_).trim();i+=" "+w+";"}}p=_+1,f=-1}}}}return o&&(i+=eg(o)),n&&(i+=eg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=tg(i,o,a);(!Ye||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 ip(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 et(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=ig(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(ip(t,i==null?void 0:i[0],o[0]),ip(t,i==null?void 0:i[1],o[1],"important")):ip(t,i,o));return o}var Va=Symbol("class"),Ra=Symbol("style"),rg=Symbol("is custom element"),sg=Symbol("is html");function ag(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=lg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||m0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[zm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&dg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function we(t,e,i,o,n=!1){var E;var a=lg(t),s=a[rg],d=!a[sg];let l=Ye&&s;l&&no(!1);var p=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Sl(i.class):(o||i[Va])&&(i.class=null),i[Ra]&&((E=i.style)!=null||(i.style=null));var u=dg(t);for(let T in i){let V=i[T];if(f&&T==="value"&&V==null){t.value=t.__value="",p[T]=V;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,$,V,o,e==null?void 0:e[Va],i[Va]),p[T]=V,p[Va]=i[Va];continue}if(T==="style"){et(t,V,e==null?void 0:e[Ra],i[Ra]),p[T]=V,p[Ra]=i[Ra];continue}var w=p[T];if(V!==w){p[T]=V;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let z={},Y="$$"+T,F=T.slice(2);var S=Dv(F);if(Bv(F)&&(F=F.slice(0,-7),z.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(F,p[Y],z),p[Y]=null}if(V!=null)if(S)t[`__${F}`]=V,rt([F]);else{let j=function(X){p[T].call(this,X)};var P=j;p[Y]=Qu(F,t,j,z)}else S&&(t[`__${F}`]=void 0)}else if(T==="style")Oe(t,T,V);else if(T==="autofocus")Wu(t,!!V);else if(!s&&(T==="__value"||T==="value"&&V!=null))t.value=t.__value=V;else if(T==="selected"&&f)ag(t,V);else{var k=T;d||(k=Ov(k));var A=k==="defaultValue"||k==="defaultChecked";if(V==null&&!s&&!A)if(a[T]=null,k==="value"||k==="checked"){let z=t,Y=e===void 0;if(k==="value"){let F=z.defaultValue;z.removeAttribute(k),z.defaultValue=F,z.value=z.__value=Y?F:null}else{let F=z.defaultChecked;z.removeAttribute(k),z.defaultChecked=F,z.checked=Y?F:!1}}else t.removeAttribute(T);else A||u.includes(k)&&(s||typeof V!="string")?t[k]=V:typeof V!="function"&&Oe(t,k,V,n)}}}return l&&no(!0),p}function lg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[rg]:t.nodeName.includes("-"),[sg]:t.namespaceURI===Om}}var og=new Map;function dg(t){var e=og.get(t.nodeName);if(e)return e;og.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Ud(o);for(var a in i)i[a].set&&e.push(a);o=Gr(o)}return e}function m0(t,e,i){var o;Te&&(e==="srcset"&&v0(t,i)||op((o=t.getAttribute(e))!=null?o:"",i)||mv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function op(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ng(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function v0(t,e){var i=ng(t.srcset),o=ng(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(op(i[s][0],n)||op(n,i[s][0])))}var g0=Fd?()=>performance.now():()=>Date.now(),Tr={tick:t=>(Fd?requestAnimationFrame:ie)(t),now:()=>g0(),tasks:new Set};function cg(){let t=Tr.now();Tr.tasks.forEach(e=>{e.c(t)||(Tr.tasks.delete(e),e.f())}),Tr.tasks.size!==0&&Tr.tick(cg)}function ug(t){let e;return Tr.tasks.size===0&&Tr.tick(cg),{promise:new Promise(i=>{Tr.tasks.add(e={c:t,f:i})}),abort(){Tr.tasks.delete(e)}}}function lc(t,e){bl(()=>{t.dispatchEvent(new CustomEvent(e))})}function $0(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 pg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=$0(n.trim());e[s]=a.trim()}return e}var y0=t=>t;function rp(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,f=e.inert,_=e.style.overflow,u,$;function w(){var V;var E=Vt,T=yt;go(null),io(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{go(E),io(T)}}var y={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||u==null||u.abort(),lc(e,"introstart"),u=np(e,w(),$,1,()=>{lc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),p=void 0;return}e.inert=!0,lc(e,"outrostart"),$=np(e,w(),u,0,()=>{lc(e,"outroend"),E==null||E()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=yt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(y),n&&$l){var k=d;if(!k){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);k=!A||(A.f&32768)!==0}k&&vn(()=>{_t(()=>y.in())})}}function np(t,e,i,o,n){var a=o===1;if(ps(e)){var s,d=!1;return jo(()=>{if(!d){var S=e({direction:a?"in":"out"});s=np(t,S,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:f,easing:_=y0}=e;var u=[];if(a&&i===void 0&&(f&&f(0,1),p)){var $=pg(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var F;var S=(F=i==null?void 0:i.t())!=null?F:1-o;i==null||i.abort();var k=o-S,A=e.duration*Math.abs(k),P=[];if(A>0){var E=!1;if(p)for(var T=Math.ceil(A/16.666666666666668),V=0;V<=T;V+=1){var z=S+k*_(V/T),Y=pg(p(z,1-z));P.push(Y),E||(E=Y.overflow==="hidden")}E&&(t.style.overflow="hidden"),w=()=>{var j=y.currentTime;return S+k*_(j/A)},f&&ug(()=>{if(y.playState!=="running")return!1;var j=w();return f(j,1-j),!0})}y=t.animate(P,{duration:A,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var hs,Na,Cl,cc,fg,uc=class uc{constructor(e){cs(this,cc);cs(this,hs,new WeakMap);cs(this,Na);cs(this,Cl);ga(this,Cl,e)}observe(e,i){var o=ki(this,hs).get(e)||new Set;return o.add(i),ki(this,hs).set(e,o),Bm(this,cc,fg).call(this).observe(e,ki(this,Cl)),()=>{var n=ki(this,hs).get(e);n.delete(i),n.size===0&&(ki(this,hs).delete(e),ki(this,Na).unobserve(e))}}};hs=new WeakMap,Na=new WeakMap,Cl=new WeakMap,cc=new WeakSet,fg=function(){var e;return(e=ki(this,Na))!=null?e:ga(this,Na,new ResizeObserver(i=>{for(var o of i){uc.entries.set(o.target,o);for(var n of ki(this,hs).get(o.target)||[])n(o)}}))},Nn(uc,"entries",new WeakMap);var sp=uc;var S0=new sp({box:"border-box"});function Hr(t,e,i){var o=S0.observe(t,()=>i(t[e]));vn(()=>(_t(()=>i(t[e])),o))}function mg(t,e){return t===e||(t==null?void 0:t[Do])===e}function dt(t={},e,i,o){return vn(()=>{var n,a;return _o(()=>{n=a,a=(o==null?void 0:o())||[],_t(()=>{t!==i(...a)&&(e(t,...a),n&&mg(i(...n),t)&&e(null,...n))})}),()=>{jo(()=>{a&&mg(i(...a),t)&&e(null,...a)})}}),t}function kr(t=!1){let e=St,i=e.l.u;if(!i)return;let o=()=>ec(e.s);if(t){let n=0,a={},s=m(()=>{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&&ka(()=>{vg(e,o),fs(i.b)}),qe(()=>{let n=_t(()=>i.m.map(Km));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&qe(()=>{vg(e,o),fs(i.a)})}function vg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;nv(e)},set:o=>{i=o}})}};T0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var T0;function Dt(t){St===null&&Ia("onMount"),Br&&St.l!==null?C0(St).m.push(t):qe(()=>{let e=_t(t);if(typeof e=="function")return e})}function hn(t){St===null&&Ia("onDestroy"),Dt(()=>()=>_t(t))}function C0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Tl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=_t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ba=[];function ar(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ie){let i=null,o=new Set;function n(d){if(ha(t,d)&&(t=d,i)){let l=!Ba.length;for(let p of o)p[1](),Ba.push(p,t);if(l){for(let p=0;p<Ba.length;p+=2)Ba[p][0](Ba[p+1]);Ba.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 vi(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 ar(i,(s,d)=>{let l=!1,p=[],f=0,_=ie,u=()=>{if(f)return;_();let w=e(o?p[0]:p,s,d);a?s(w):_=typeof w=="function"?w:ie},$=n.map((w,y)=>Tl(w,S=>{p[y]=S,f&=~(1<<y),l&&u()},()=>{f|=1<<y}));return l=!0,u(),function(){fs($),_(),l=!1}})}function ye(t){let e;return Tl(t,i=>e=i)(),e}var pc=!1,ap=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Zr(void 0),unsubscribe:ie};if(o.store!==t&&!(ap 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=Tl(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&ap in i?ye(t):r(o.source)}function He(){let t={};function e(){nn(()=>{for(var i in t)t[i].unsubscribe();to(t,ap,{enumerable:!1,value:!0})})}return[t,e]}function lp(t){var e=pc;try{return pc=!1,[t(),pc]}finally{pc=e}}var L0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&ov(`${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 ke(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},L0)}var V0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ps(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];ps(n)&&(n=n());let a=Bn(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(ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Bn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Do||e===ol)return!1;for(let i of t.props)if(ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ps(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function is(...t){return new Proxy({props:t},V0)}function gg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,Y;var n=(i&1)!==0,a=!Br||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=lp(()=>t[e]):p=t[e];var f=Do in t||ol in t,_=s&&((Y=(z=Bn(t,e))==null?void 0:z.set)!=null?Y:f&&e in t&&(F=>t[e]=F))||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&&iv(e),p=y(),_&&_(p));var S;if(a)S=()=>{var F=t[e];return F===void 0?y():($=!0,w=!1,F)};else{var k=(n?m:Sr)(()=>t[e]);k.f|=131072,S=()=>{var F=r(k);return F!==void 0&&(u=void 0),F===void 0?u:F}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(F,j){return arguments.length>0?((!a||!j||A||l)&&_(j?S():F),F):S()}}var P=!1,E=!1,T=Zr(p),V=m(()=>{var F=S(),j=r(T);return P?(P=!1,E=!0,j):(E=!1,T.v=F)});return s&&r(V),n||(V.equals=_a),function(F,j){if(al!==null&&(P=E,S(),r(T)),arguments.length>0){let X=j?r(V):a&&s?me(F):F;if(!V.equals(X)){if(P=!0,O(T,X),w&&u!==void 0&&(u=X),gg(V))return F;_t(()=>r(V))}return F}return gg(V)?V.v:r(V)}}var R0;typeof HTMLElement=="function"&&(R0=class extends HTMLElement{constructor(e,i,o){super();Nn(this,"$$ctor");Nn(this,"$$s");Nn(this,"$$c");Nn(this,"$$cn",!1);Nn(this,"$$d",{});Nn(this,"$$r",!1);Nn(this,"$$p_d",{});Nn(this,"$$l",{});Nn(this,"$$l_u",new Map);Nn(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=N0(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]=dp(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=jv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=ic(()=>{_o(()=>{var a;this.$$r=!0;for(let s of _u(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=dp(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]=dp(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 _u(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function dp(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 N0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var hg="5";var _g,bg,$g;typeof window!="undefined"&&(($g=(bg=(_g=window.__svelte)!=null?_g:window.__svelte={}).v)!=null?$g:bg.v=new Set).add(hg);import{clientChecker as ux}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as g1,safeStorage as px,throttleFn as fx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as mx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as D0,fillWithDefault as O0,VideoQuality as yg}from"@vkontakte/videoplayer-shared/es2018";var H0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:D0.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:yg.Q_480P,highQualityLimit:yg.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,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}},xg=t=>O0(t,H0),wg=t=>Aa("ui-config",t),qt=()=>Ea("ui-config");var kl="vk_player_debug_panel_opened";var Sg="videoplayer",Cg="videoplayer";var Fr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Tg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),kg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Ig=new Set(["ShiftRight","ShiftLeft"]);var Eg=["TIMELINE"],Il=[...Eg,"GRAPH_BUTTON"],cp=[...Eg,"PLAY_BUTTON"],El=[...Il,"PLAY_BUTTON"];var Ur=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ur||{}),Ws={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ag,VERSION as F0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as U0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as z0}from"@vkontakte/videoplayer-statistics/es2018";var fc="prod",Da="1.1.62-dev.4e27810f.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 Pg=Symbol("storeContext"),Mg=Symbol("microStoresContext"),Lg=(t,e)=>{Aa(Pg,t),Aa(Mg,e),fc==="dev"&&(window.app={store:t,microStores:e})},Se=()=>{let t=Ea(Pg);return Ag(t,"Store context is empty!"),t},so=()=>{let t=Ea(Mg);return Ag(t,"MicroStores context is empty!"),t},Yt=(t,e)=>vc(t,t.getValue(),e),vc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Vg=(t,e,i)=>{var k,A,P,E,T,V;let o=t.info,{width:n,height:a}=ye(i.ui.playerSize),s=(A=(k=o.throughputEstimation$.getValue())==null?void 0:k.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Da} (core: ${U0}, stat: ${z0}, shared: ${F0})`,f=ye(i.state.errorLog$),_=f.length?`
49
- `+f.map((z,Y)=>{var oe;let F=`${Y}) Type: ${z.id}
50
- `,j=`Message: ${z.message} (${z.thrown})
51
- `,X=`Trace: ${(oe=z.thrown)==null?void 0:oe.stack}
52
- `;return F+j+X}).join(`
53
- `):void 0,u=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),y=[];$&&y.push(`Video: ${(T=$==null?void 0:$.codec)!=null?T:""}`+($!=null&&$.hdr?" (HDR)":"")),w&&y.push(`Audio: ${(V=w==null?void 0:w.codec)!=null?V:""}`+(w!=null&&w.language?` (${w.language})`:""));let S={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:ye(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:`${ye(i.state.positionExact$)}s`,State:`${ye(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([z,Y])=>Y!==void 0).map(([z,Y])=>`${z}: ${Y}`).join(`
54
- `)},Rg=(t,e,i)=>{var z,Y,F,j;let o=t.info,{width:n,height:a}=ye(i.ui.playerSize),s={version:Da,viewport:`${n}x${a}`,volume:Math.round(ye(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 f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(_&&u?s.buffer=f.end-u:s.buffer=Math.max(f.end-ye(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 S=o.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let k=o.currentAudioSegmentLength$.getValue();k&&(s.currentAudioSegmentLength=k);let A=ye(i.vsid);typeof A=="string"&&(s.vsid=A);let P=(z=t.info.currentVideoStream$.getValue())==null?void 0:z.codec;P&&(s.videoCodec=P);let E=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.codec;E&&(s.audioCodec=E),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(s.hdr=!0);let V=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.language;return V&&(s.audioLanguage=V),s},Ng=(t,e)=>Ks(t,e,"mp4"),Bg=t=>!t.type,Dg=t=>!!t.type,Og=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},mc=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 fp,safeStorage as $o}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var Hg="vk_player_prefer_traffic_saving_enabled",Fg="vk_player_preferred_volume",Ug="vk_player_prefer_volume_mute",mp="vk_player_preferred_quality",up="vk_player_preferred_default_quality_settings",pp="vk_player_preferred_quality_settings_by_video",zg="vk_player_preferred_stream_language",qg="vk_player_preferred_rate",Wg="vk_player_preferred_autoplay_next",Kg=t=>t>1?1:t<0?0:t,vp=t=>$o.set(Fg,Kg(t).toString(10)),gc=()=>{let t=$o.get(Fg);return fp(t)?void 0:Kg(parseFloat(t))},gp=(t,e)=>$o.set(mp,JSON.stringify({videoId:t,value:e})),Pl=()=>$o.remove(mp),hp=t=>{let e=$o.get(mp);if(fp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Pl();return}return o},_p=(t,e)=>{e?$o.set(t,"true"):$o.remove(t)},bp=t=>$o.get(t)==="true",$p=t=>_p(Ug,t),Qg=()=>bp(Ug),Al=t=>_p(Hg,t),yp=()=>bp(Hg),Gg=()=>$o.get(zg),xp=t=>$o.set(zg,t),Yg=t=>$o.set(qg,JSON.stringify({rate:t})),jg=()=>{let t=$o.get(qg);if(fp(t))return;let{rate:e}=JSON.parse(t);return e},Zg=t=>_p(Wg,t),Xg=()=>bp(Wg),q0=()=>{let t=f=>{$o.set(up,JSON.stringify(f))},e=()=>{try{let f=$o.get(up);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=$o.get(pp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{$o.set(pp,JSON.stringify(f))},n=f=>{p(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)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=()=>{$o.remove(pp)},s=()=>{$o.remove(up)},d=(f,_="as-default")=>{f.type==="exact_quality"?o(f):_==="as-default"?t(f):o(f)},l=f=>{let _=n(f);if(_){switch(_.type){case"traffic_saving":Al(!0);break;case"exact_quality":gp(f,_.quality)}a(),s()}},p=f=>{let _=hp(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}yp()&&t({type:"traffic_saving",videoId:f}),Al(!1),Pl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Jg,migrateSettingsToLegacyWay:eh,savePreferredQualitySettings:hc,savePreferredDefaultQualitySettings:PA,removePreferredQualitySettingsByVideo:MA,getPreferredDefaultQualitySettings:_c}=q0();import{PlaybackState as f1}from"@vkontakte/videoplayer-core/es2018";var W0=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 Ml(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=W0();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 oh,InterfaceLanguage as nh}from"@vkontakte/videoplayer-shared/es2018";var K0={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_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 en=null;function xl(t){en=t}function Ma(t){return zu("getContext").get(t)}function La(t,e){let i=zu("setContext");return Ee&&$t(()=>Hu(e,null,!0)),i.set(t,e),e}function Sl(){return zu("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)}),tn(()=>{o.d=!0}),Ee&&(Et.function=i,en=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=St,o=Bt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];oo(a.effect),go(a.reaction),gn(a.fn)}}finally{oo(i),go(o)}}Et=e.p,Ee&&(en=(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 zu(t){var e;return Et===null&&Aa(t),(e=Et.c)!=null?e:Et.c=new Map(Z1(Et)||void 0)}function Z1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var X1=/\r/g;function Ov(t){t=t.replace(X1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Hv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var J1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Fv(t){return J1.includes(t)}var e0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var t0={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 Uv(t){var e;return t=t.toLowerCase(),(e=t0[t])!=null?e:t}var h6=[...e0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var i0=["touchstart","touchmove"];function zv(t){return i0.includes(t)}var o0=["textarea","script","style","title"];function qv(t){return o0.includes(t)}function qu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Wv=new Map;function Kv(t,e){var i=Wv.get(t);i||(i=new Set,Wv.set(t,i)),i.add(e)}function Wu(t,e){if(e){let i=document.body;t.autofocus=!0,Go(()=>{document.activeElement===i&&t.focus()})}}function Cl(t){var e=Bt,i=St;go(null),oo(null);try{return t()}finally{go(e),oo(i)}}var Ku=new Set,dc=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 Qu(t,e,i,o={}){function n(a){if(o.capture||Va.call(e,a),!a.cancelBubble)return Cl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Go(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function wt(t,e,i,o,n){var a={capture:o,passive:n},s=Qu(t,e,i,a);(e===document.body||e===window||e===document)&&tn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)Ku.add(t[e]);for(var i of dc)i(t)}function Va(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){io(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Bt,$=St;go(null),oo(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(fr(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,go(m),oo($)}}}var r0;function Qv(){r0=void 0}function Ra(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function bo(t,e){var i=St;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 bo(gt,null),gt;n===void 0&&(n=Ra(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;bo(d,l)}else bo(s,s);return s}}function xe(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ge)return bo(gt,null),gt;if(!s){var d=Ra(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;bo(m,$)}else bo(p,p);return p}}function Rr(t=""){if(!Ge){var e=Xo(t+"");return bo(e,e),e}var i=gt;return i.nodeType!==3&&(i.before(i=Xo()),hi(i)),bo(i,i),i}function Ue(){if(Ge)return bo(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Xo();return t.append(e,i),bo(e,i),t}function b(t,e){if(Ge){St.nodes_end=gt,Oi();return}t!==null&&t.before(e)}var Tl=!0;function cc(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;Zd(),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!==ds);)a=Po(a);if(!a)throw zr;ro(!0),hi(a),Oi();let d=jv(t,{...e,anchor:a});if(gt===null||gt.nodeType!==8||gt.data!==As)throw Ns(),zr;return ro(!1),d}catch(d){if(d===zr)return e.recover===!1&&ov(),Zd(),gl(i),ro(!1),Zr(t,e);throw d}finally{ro(o),hi(n),Qv()}}var Da=new Map;function jv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Zd();var d=new Set,l=$=>{for(var u=0;u<$.length;u++){var _=$[u];if(!d.has(_)){d.add(_);var w=zv(_);e.addEventListener(_,Va,{passive:w});var y=Da.get(_);y===void 0?(document.addEventListener(_,Va,{passive:w}),Da.set(_,1)):Da.set(_,y+1)}}};l(cl(Ku)),dc.add(l);var p=void 0,m=Dv(()=>{var $=i!=null?i:e.appendChild(Xo());return qi(()=>{if(a){U({});var u=Et;u.c=a}n&&(o.$$events=n),Ge&&bo($,null),Tl=s,p=t($,o)||{},Tl=!0,Ge&&(St.nodes_end=gt),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,Va);var _=Da.get(u);--_===0?(document.removeEventListener(u,Va),Da.delete(u)):Da.set(u,_)}dc.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return Gu.set(p,m),p}var Gu=new WeakMap;function Us(t,e){let i=Gu.get(t);return i?(Gu.delete(t),i(e)):(Ee&&bv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ge&&i===0&&Oi();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===ds?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=Ta(),hi(n),ro(!1),w=!0,o=-1)}d?(a?Yr(a):_&&(a=qi(()=>_(n))),s&&hn(s,()=>{s=null})):(s?Yr(s):_&&(s=qi(()=>_(n,[i+1,o]))),a&&hn(a,()=>{a=null})),w&&ro(!0)};so(()=>{p=!1,e(m),p||$(null,null)},l),Ge&&(n=gt)}function zs(t,e,i){Ge&&Oi();var o=t,n=Li,a,s=Vr()?Zm:$a;so(()=>{s(n,n=e())&&(a&&hn(a),a=qi(()=>i(o)))}),Ge&&(o=gt)}var ms=null;function Xu(t){ms=t}function Il(t,e){return e}function d0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)sc(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(),fs(t,e[0].prev,e[a-1].next)}Ou(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),fs(t,m.prev,m.next)),no(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(Xo())}Ge&&Oi();var m=null,$=!1,u=gr(()=>{var _=i();return fr(_)?_:_==null?[]:cl(_)});so(()=>{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=Ta(),hi(s),ro(!1),y=!0)}if(Ge){for(var T=null,E,P=0;P<w;P++){if(gt.nodeType===8&&gt.data===As){s=gt,y=!0,ro(!1);break}var A=_[P],I=o(A,P);E=Xv(gt,d,T,null,A,I,P,n,e,i),d.items.set(I,E),T=E}w>0&&hi(Ta())}Ge||c0(_,d,s,n,e,o,i),a!==null&&(w===0?m?Yr(m):m=qi(()=>a(s)):m!==null&&hn(m,()=>{m=null})),y&&ro(!0),r(u)}),Ge&&(s=gt)}function c0(t,e,i,o,n,a,s){var ae,Le,Ae,he;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&&((ae=A.a)==null||ae.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=Xv(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&&u0(A,E,I,n),(A.e.f&8192)!==0&&(Yr(A.e),d&&((Le=A.a)==null||Le.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],G;w=H.prev;var O=C[0],X=C[C.length-1];for(G=0;G<C.length;G+=1)Yv(C[G],H,i);for(G=0;G<T.length;G+=1)_.delete(T[G]);fs(e,O.prev,X.next),fs(e,w,O),fs(e,X,H),u=H,w=X,I-=1,C=[],T=[]}else _.delete(A),Yv(A,u,i),fs(e,A.prev,A.next),fs(e,A,w===null?e.first:w.next),fs(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 oe=_===void 0?[]:cl(_);u!==null;)(u.e.f&8192)===0&&oe.push(u),u=u.next;var Y=oe.length;if(Y>0){var fe=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<Y;I+=1)(Ae=oe[I].a)==null||Ae.measure();for(I=0;I<Y;I+=1)(he=oe[I].a)==null||he.fix()}d0(e,oe,fe,m)}}d&&Go(()=>{var se;if(y!==void 0)for(A of y)(se=A.a)==null||se.apply()}),St.first=e.first&&e.first.e,St.last=w&&w.e}function u0(t,e,i,o){(o&1)!==0&&wa(t.v,e),(o&2)!==0?wa(t.i,i):t.i=i}function Xv(t,e,i,o,n,a,s,d,l,p){var m=ms,$=(l&1)!==0,u=(l&16)===0,_=$?u?Gr(n):zi(n):n,w=(l&2)===0?s:zi(s);Ee&&$&&(_.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};ms=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{ms=m}}function Yv(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=Po(a);n.before(a),a=s}}function fs(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 p0(t,e,i){var a,s;if(!e||e===Ov(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=en)!=null&&s[gi]&&(o=`in ${en[gi]}`),_v(qu(o))}function kl(t,e,i,o,n){var a=t,s="",d;so(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ge&&Oi();return}d!==void 0&&(no(d),d=void 0),s!==""&&(d=qi(()=>{if(Ge){for(var p=gt.data,m=Oi(),$=m;m!==null&&(m.nodeType!==8||m.data!=="");)$=m,m=Po(m);if(m===null)throw Ns(),zr;Ee&&!n&&p0(m.parentNode,p,s),bo(gt,$),a=hi(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Ra(u);if((i||o)&&(_=_i(_)),bo(_i(_),_.lastChild),i||o)for(;_i(_);)a.before(_i(_));else a.before(_)}))})}function ve(t,e,...i){var o=t,n=ie,a;so(()=>{n!==(n=e())&&(a&&(no(a),a=null),Ee&&n==null&&nv(),a=qi(()=>n(o,...i)))},65536),Ge&&(o=gt)}function Ci(t,e,i){Ge&&Oi();var o=t,n,a;so(()=>{n!==(n=e())&&(a&&(hn(a),a=null),n&&(a=qi(()=>i(o,n))))},65536),Ge&&(o=gt)}function qs(t,e,i,o,n,a){var w;let s=Ge;Ge&&Oi();var d=Ee&&a&&((w=Et)==null?void 0:w.function[gi]),l,p,m=null;Ge&&gt.nodeType===1&&(m=gt,Oi());var $=Ge?gt:t,u,_=ms;so(()=>{let y=e()||null;var C=n?n():i||y==="svg"?hu:null;if(y!==l){var T=ms;Xu(_),u&&(y===null?hn(u,()=>{u=null,p=null}):y===p?Yr(u):(no(u),cc(!1))),y&&y!==p&&(u=qi(()=>{if(m=Ge?m:C?document.createElementNS(C,y):document.createElement(y),Ee&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),bo(m,m),o){Ge&&qv(y)&&m.append(document.createComment(""));var E=Ge?_i(m):m.appendChild(Xo());Ge&&(E===null?ro(!1):hi(E)),o(m,E)}St.nodes_end=m,$.before(m)})),l=y,l&&(p=l),cc(!0),Xu(T)}},65536),s&&(ro(!0),hi($))}var ep;function Jv(t){return ep=t.target,new Ju(t)}var Xr,ir,Ju=class{constructor(e){ls(this,Xr);ls(this,ir);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 B((m=i.get(l))!=null?m:o(l,p),p),Reflect.set(d,l,p)}});ba(this,ir,(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)&&Ea(),ba(this,Xr,n.$$events);for(let d of Object.keys(Mi(this,ir)))d==="$set"||d==="$destroy"||d==="$on"||io(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,Xr)[e]=Mi(this,Xr)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,Xr)[e].push(o),()=>{Mi(this,Xr)[e]=Mi(this,Xr)[e].filter(n=>n!==o)}}$destroy(){Mi(this,ir).$destroy()}};Xr=new WeakMap,ir=new WeakMap;function q(t,e){Go(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=ep)==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),Ee&&Kv(e.hash,d)}})}function eg(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=eg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function tg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=eg(t))&&(o&&(o+=" "),o+=e);return o}function El(t){return typeof t=="object"?tg(t):t!=null?t:""}var ig=[...`
48
+ \r\f\xA0\v\uFEFF`];function ng(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||ig.includes(o[s-1]))&&(d===o.length||ig.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function og(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 tp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function rg(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(tp)),n&&l.push(...Object.keys(n).map(tp));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 _=tp(t.substring(p,m).trim());if(!l.includes(_)){u!==";"&&$++;var w=t.substring(p,$).trim();i+=" "+w+";"}}p=$+1,m=-1}}}}return o&&(i+=og(o)),n&&(i+=og(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=ng(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 ip(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=rg(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(ip(t,i==null?void 0:i[0],o[0]),ip(t,i==null?void 0:i[1],o[1],"important")):ip(t,i,o));return o}var Na=Symbol("class"),Ba=Symbol("style"),lg=Symbol("is custom element"),dg=Symbol("is html");function cg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=ug(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||b0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Km]=i),i==null?t.removeAttribute(e):typeof i!="string"&&pg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ie(t,e,i,o,n=!1){var A;var a=ug(t),s=a[lg],d=!a[dg];let l=Ge&&s;l&&ro(!1);var p=e||{},m=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=El(i.class):(o||i[Na])&&(i.class=null),i[Ba]&&((A=i.style)!=null||(i.style=null));var u=pg(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[Ba],i[Ba]),p[I]=V,p[Ba]=i[Ba];continue}var w=p[I];if(V!==w){p[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},G="$$"+I,O=I.slice(2);var C=Fv(O);if(Hv(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,p[G],H),p[G]=null}if(V!=null)if(C)t[`__${O}`]=V,at([O]);else{let X=function(oe){p[I].call(this,oe)};var P=X;p[G]=Qu(O,t,X,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")Oe(t,I,V);else if(I==="autofocus")Wu(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&m)cg(t,V);else{var T=I;d||(T=Uv(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,G=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=G?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=G?O:!1}}else t.removeAttribute(I);else E||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Oe(t,T,V,n)}}}return l&&ro(!0),p}function ug(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[lg]:t.nodeName.includes("-"),[dg]:t.namespaceURI===Um}}var sg=new Map;function pg(t){var e=sg.get(t.nodeName);if(e)return e;sg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Wd(o);for(var a in i)i[a].set&&e.push(a);o=Wr(o)}return e}function b0(t,e,i){var o;Ee&&(e==="srcset"&&$0(t,i)||op((o=t.getAttribute(e))!=null?o:"",i)||hv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function op(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ag(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function $0(t,e){var i=ag(t.srcset),o=ag(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(op(i[s][0],n)||op(n,i[s][0])))}var y0=qd?()=>performance.now():()=>Date.now(),_r={tick:t=>(qd?requestAnimationFrame:ie)(t),now:()=>y0(),tasks:new Set};function fg(){let t=_r.now();_r.tasks.forEach(e=>{e.c(t)||(_r.tasks.delete(e),e.f())}),_r.tasks.size!==0&&_r.tick(fg)}function mg(t){let e;return _r.tasks.size===0&&_r.tick(fg),{promise:new Promise(i=>{_r.tasks.add(e={c:t,f:i})}),abort(){_r.tasks.delete(e)}}}function uc(t,e){Cl(()=>{t.dispatchEvent(new CustomEvent(e))})}function C0(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 vg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=C0(n.trim());e[s]=a.trim()}return e}var T0=t=>t;function rp(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=Bt,I=St;go(null),oo(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{go(A),oo(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(),uc(e,"introstart"),u=np(e,w(),_,1,()=>{uc(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,uc(e,"outrostart"),_=np(e,w(),u,0,()=>{uc(e,"outroend"),A==null||A()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=St;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Tl){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&&gn(()=>{$t(()=>y.in())})}}function np(t,e,i,o,n){var a=o===1;if(cs(e)){var s,d=!1;return Go(()=>{if(!d){var C=e({direction:a?"in":"out"});s=np(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:$=T0}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var _=vg(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),G=vg(p(H,1-H));P.push(G),A||(A=G.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*$(X/E)},m&&mg(()=>{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=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var vs,Oa,Pl,fc,gg,mc=class mc{constructor(e){ls(this,fc);ls(this,vs,new WeakMap);ls(this,Oa);ls(this,Pl);ba(this,Pl,e)}observe(e,i){var o=Mi(this,vs).get(e)||new Set;return o.add(i),Mi(this,vs).set(e,o),Hm(this,fc,gg).call(this).observe(e,Mi(this,Pl)),()=>{var n=Mi(this,vs).get(e);n.delete(i),n.size===0&&(Mi(this,vs).delete(e),Mi(this,Oa).unobserve(e))}}};vs=new WeakMap,Oa=new WeakMap,Pl=new WeakMap,fc=new WeakSet,gg=function(){var e;return(e=Mi(this,Oa))!=null?e:ba(this,Oa,new ResizeObserver(i=>{for(var o of i){mc.entries.set(o.target,o);for(var n of Mi(this,vs).get(o.target)||[])n(o)}}))},Vn(mc,"entries",new WeakMap);var sp=mc;var E0=new sp({box:"border-box"});function Dr(t,e,i){var o=E0.observe(t,()=>i(t[e]));gn(()=>($t(()=>i(t[e])),o))}function hg(t,e){return t===e||(t==null?void 0:t[No])===e}function pt(t={},e,i,o){return gn(()=>{var n,a;return _o(()=>{n=a,a=(o==null?void 0:o())||[],$t(()=>{t!==i(...a)&&(e(t,...a),n&&hg(i(...n),t)&&e(null,...n))})}),()=>{Go(()=>{a&&hg(i(...a),t)&&e(null,...a)})}}),t}function br(t=!1){let e=Et,i=e.l.u;if(!i)return;let o=()=>oc(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&&Pa(()=>{_g(e,o),us(i.b)}),qe(()=>{let n=$t(()=>i.m.map(jm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&qe(()=>{_g(e,o),us(i.a)})}function _g(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ee){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;av(e)},set:o=>{i=o}})}};A0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var A0;function Ft(t){Et===null&&Aa("onMount"),Mr&&Et.l!==null?P0(Et).m.push(t):qe(()=>{let e=$t(t);if(typeof e=="function")return e})}function _n(t){Et===null&&Aa("onDestroy"),Ft(()=>()=>$t(t))}function P0(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=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ha=[];function or(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ie){let i=null,o=new Set;function n(d){if($a(t,d)&&(t=d,i)){let l=!Ha.length;for(let p of o)p[1](),Ha.push(p,t);if(l){for(let p=0;p<Ha.length;p+=2)Ha[p][0](Ha[p+1]);Ha.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 or(i,(s,d)=>{let l=!1,p=[],m=0,$=ie,u=()=>{if(m)return;$();let w=e(o?p[0]:p,s,d);a?s(w):$=typeof w=="function"?w:ie},_=n.map((w,y)=>Al(w,C=>{p[y]=C,m&=~(1<<y),l&&u()},()=>{m|=1<<y}));return l=!0,u(),function(){us(_),$(),l=!1}})}function Ce(t){let e;return Al(t,i=>e=i)(),e}var vc=!1,ap=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&&!(ap 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:B(o.source,s)}),n=!1}return t&&ap in i?Ce(t):r(o.source)}function Be(){let t={};function e(){tn(()=>{for(var i in t)t[i].unsubscribe();io(t,ap,{enumerable:!1,value:!0})})}return[t,e]}function lp(t){var e=vc;try{return vc=!1,[t(),vc]}finally{vc=e}}var B0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&sv(`${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(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},B0)}var O0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(cs(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];cs(n)&&(n=n());let a=Rn(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(cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Rn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===No||e===dl)return!1;for(let i of t.props)if(cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){cs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Jr(...t){return new Proxy({props:t},O0)}function bg(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,G;var n=(i&1)!==0,a=!Mr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=lp(()=>t[e]):p=t[e];var m=No in t||dl in t,$=s&&((G=(H=Rn(t,e))==null?void 0:H.set)!=null?G: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&&rv(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:gr)(()=>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=Gr(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=ya),function(O,X){if(fl!==null&&(P=A,C(),r(I)),arguments.length>0){let oe=X?r(V):a&&s?pe(O):O;if(!V.equals(oe)){if(P=!0,B(I,oe),w&&u!==void 0&&(u=oe),bg(V))return O;$t(()=>r(V))}return O}return bg(V)?V.v:r(V)}}var H0;typeof HTMLElement=="function"&&(H0=class extends HTMLElement{constructor(e,i,o){super();Vn(this,"$$ctor");Vn(this,"$$s");Vn(this,"$$c");Vn(this,"$$cn",!1);Vn(this,"$$d",{});Vn(this,"$$r",!1);Vn(this,"$$p_d",{});Vn(this,"$$l",{});Vn(this,"$$l_u",new Map);Vn(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=F0(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]=dp(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=Jv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=rc(()=>{_o(()=>{var a;this.$$r=!0;for(let s of _u(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=dp(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]=dp(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 _u(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function dp(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 F0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var $g="5";var yg,xg,wg;typeof window!="undefined"&&((wg=(xg=(yg=window.__svelte)!=null?yg:window.__svelte={}).v)!=null?wg:xg.v=new Set).add($g);import{clientChecker as Sm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as _1,safeStorage as Ix,throttleFn as kx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Ex}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as z0,fillWithDefault as q0,VideoQuality as Sg}from"@vkontakte/videoplayer-shared/es2018";var W0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:z0.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:Sg.Q_480P,highQualityLimit:Sg.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}},Cg=t=>q0(t,W0),Tg=t=>La("ui-config",t),Ut=()=>Ma("ui-config");var Ml="vk_player_debug_panel_opened";var Ig="videoplayer",kg="videoplayer";var Nr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Eg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Pg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Ag=new Set(["ShiftRight","ShiftLeft"]);var Mg=["TIMELINE"],Ll=[...Mg,"GRAPH_BUTTON"],cp=[...Mg,"PLAY_BUTTON"],Vl=[...Ll,"PLAY_BUTTON"];var Br=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Br||{}),Ks={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Lg,VERSION as K0}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as Q0}from"@vkontakte/videoplayer-core/es2018";import{VERSION as G0}from"@vkontakte/videoplayer-statistics/es2018";var gc="prod",Fa="1.1.62-dev.64d704f2.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 Vg=Symbol("storeContext"),Rg=Symbol("microStoresContext"),Dg=(t,e)=>{La(Vg,t),La(Rg,e),gc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ma(Vg);return Lg(t,"Store context is empty!"),t},ao=()=>{let t=Ma(Rg);return Lg(t,"MicroStores context is empty!"),t},Yt=(t,e)=>_c(t,t.getValue(),e),_c=(t,e,i)=>or(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Ng=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Ce(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=`${Fa} (core: ${Q0}, stat: ${G0}, shared: ${K0})`,m=Ce(i.state.errorLog$),$=m.length?`
49
+ `+m.map((H,G)=>{var Y;let O=`${G}) Type: ${H.id}
50
+ `,X=`Message: ${H.message} (${H.thrown})
51
+ `,oe=`Trace: ${(Y=H.thrown)==null?void 0:Y.stack}
52
+ `;return O+X+oe}).join(`
53
+ `):void 0,u=i.state.isAudioDisabled?"disabled":Ce(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:Ce(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:`${Ce(i.state.positionExact$)}s`,State:`${Ce(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:$};return Object.entries(C).filter(([H,G])=>G!==void 0).map(([H,G])=>`${H}: ${G}`).join(`
54
+ `)},Bg=(t,e,i)=>{var H,G,O,X;let o=t.info,{width:n,height:a}=Ce(i.ui.playerSize),s={version:Fa,viewport:`${n}x${a}`,volume:Math.round(Ce(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-Ce(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=Ce(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=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.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},Og=(t,e)=>Qs(t,e,"mp4"),Hg=t=>!t.type,Fg=t=>!!t.type,Ug=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},hc=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 fp,safeStorage as $o}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var zg="vk_player_prefer_traffic_saving_enabled",qg="vk_player_preferred_volume",Wg="vk_player_prefer_volume_mute",mp="vk_player_preferred_quality",up="vk_player_preferred_default_quality_settings",pp="vk_player_preferred_quality_settings_by_video",Kg="vk_player_preferred_stream_language",Qg="vk_player_preferred_rate",Gg="vk_player_preferred_autoplay_next",jg=t=>t>1?1:t<0?0:t,vp=t=>$o.set(qg,jg(t).toString(10)),bc=()=>{let t=$o.get(qg);return fp(t)?void 0:jg(parseFloat(t))},gp=(t,e)=>$o.set(mp,JSON.stringify({videoId:t,value:e})),Dl=()=>$o.remove(mp),hp=t=>{let e=$o.get(mp);if(fp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Dl();return}return o},_p=(t,e)=>{e?$o.set(t,"true"):$o.remove(t)},bp=t=>$o.get(t)==="true",$p=t=>_p(Wg,t),Yg=()=>bp(Wg),Rl=t=>_p(zg,t),yp=()=>bp(zg),Zg=()=>$o.get(Kg),xp=t=>$o.set(Kg,t),Xg=t=>$o.set(Qg,JSON.stringify({rate:t})),Jg=()=>{let t=$o.get(Qg);if(fp(t))return;let{rate:e}=JSON.parse(t);return e},eh=t=>_p(Gg,t),th=()=>bp(Gg),j0=()=>{let t=m=>{$o.set(up,JSON.stringify(m))},e=()=>{try{let m=$o.get(up);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=$o.get(pp);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{$o.set(pp,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=()=>{$o.remove(pp)},s=()=>{$o.remove(up)},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":Rl(!0);break;case"exact_quality":gp(m,$.quality)}a(),s()}},p=m=>{let $=hp(m);if($){o({type:"exact_quality",videoId:m,quality:$});return}yp()&&t({type:"traffic_saving",videoId:m}),Rl(!1),Dl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:ih,migrateSettingsToLegacyWay:oh,savePreferredQualitySettings:$c,savePreferredDefaultQualitySettings:KP,removePreferredQualitySettingsByVideo:QP,getPreferredDefaultQualitySettings:yc}=j0();import{PlaybackState as v1}from"@vkontakte/videoplayer-core/es2018";var Y0=xe('<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=Y0();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(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 sh,InterfaceLanguage as ah}from"@vkontakte/videoplayer-shared/es2018";var Z0={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,
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`},th=K0;var Q0={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_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`},nh=Z0;var X0={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,
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.`},ih=Q0;var os=new Map;os.set(nh.EN,ih);os.set(nh.RU,th);var rh=new Map,wp=({language:t,pack:e,fallback:i})=>{if(os.has(t)){let o=os.get(t);os.set(t,{...o,...e})}else os.set(t,e);rh.set(t,i)},Sp=t=>os.has(t),Cp=(t,e,i,o)=>{var s;let n=os.get(t),a=n==null?void 0:n[e];if(oh(a)){let d=(s=rh.get(t))!=null?s:o,l=d?os.get(d):void 0;a=l==null?void 0:l[e]}return oh(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var p;return(p=i[l])!=null?p:""}):a},H=(t,e)=>{let{interfaceLanguage$:i}=Se(),o=ye(i),n=qt();return Cp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Oa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Oa||(Oa={}));var G0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Y0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,j0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,bc="?",Z0="X-Sentry-Auth",X0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function J0(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=G0.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||bc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=j0.exec(i[a]))n={filename:o[2],function:o[1]||bc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=Y0.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||bc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=bc),e.push(n)}return e.length?{value:sh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function sh(t){return(t&&t.message||"No error message").split(`
60
- `).filter(i=>!!i)[0]}function e_(t){try{let e=J0(t);if(e)return e}catch(e){}return{value:sh(t),type:t&&t.name,stacktrace:{frames:[]}}}function t_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var $c=class{constructor(e){if(e&&e.dsn){let i=X0.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:[e_(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(Z0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:t_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function ah(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function i_(){return window}var yc=class t extends $c{constructor(e,i=i_()){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=>ah(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=>ah(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 xc,Subscription as o_}from"@vkontakte/videoplayer-shared/es2018";var wc=null,Qs=class{constructor(e,i,o={}){!wc&&e.dsn&&(this.sentryClient=new yc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new o_,this.options=e,this.context=o,wc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),wc=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:f,blackErrorCategoryList:_}=s,{errorType:u,category:$}=i;if(xc($)&&_.includes($)||xc(u)&&f.includes(u))return;if(Math.random()<=d||xc($)&&p.includes($)||xc(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?Oa.fatal:Oa.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return wc}};var Gs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Gs||{});var Sc=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()},Cc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),lh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Ll=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},_s=()=>!!Ll(),Tc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},kc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},dh=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 ch}from"@vkontakte/videoplayer-core/es2018";var uh=()=>({title:H("hotkey_map_modal_title"),closeBtnText:H("hotkey_map_modal_close_btn_text"),groups:[{title:H("hotkey_map_group_title_common"),items:[{description:H("hotkey_map_item_mute_description"),value:H("hotkey_map_item_mute_value")},{description:H("hotkey_map_item_volume_up_description"),value:H("hotkey_map_item_volume_up_value")},{description:H("hotkey_map_item_volume_down_description"),value:H("hotkey_map_item_volume_down_value")},{description:H("hotkey_map_item_pip_description"),value:H("hotkey_map_item_pip_value")},{description:H("hotkey_map_item_full_screen_description"),value:H("hotkey_map_item_full_screen_value")},{description:H("hotkey_map_item_show_context_menu_description"),value:H("hotkey_map_item_show_context_menu_value")},{description:H("hotkey_map_item_show_hotkey_map_description"),value:H("hotkey_map_item_show_hotkey_map_value")}]},{title:H("hotkey_map_group_title_playback"),items:[{description:H("hotkey_map_item_play_toggle_description"),value:H("hotkey_map_item_play_toggle_value")},{description:H("hotkey_map_item_seek_backward_description"),value:H("hotkey_map_item_seek_backward_value")},{description:H("hotkey_map_item_seek_forward_description"),value:H("hotkey_map_item_seek_forward_value")},{description:H("hotkey_map_item_fast_seek_backward_description"),value:H("hotkey_map_item_fast_seek_backward_value")},{description:H("hotkey_map_item_fast_seek_forward_description"),value:H("hotkey_map_item_fast_seek_forward_value")},{description:H("hotkey_map_item_rate_down_description"),value:H("hotkey_map_item_rate_down_value")},{description:H("hotkey_map_item_rate_up_description"),value:H("hotkey_map_item_rate_up_value")},{description:H("hotkey_map_item_prev_frame_description"),value:H("hotkey_map_item_prev_frame_value")},{description:H("hotkey_map_item_next_frame_description"),value:H("hotkey_map_item_next_frame_value")},{description:H("hotkey_map_item_jump_seek_description"),value:H("hotkey_map_item_jump_seek_value")},{description:H("hotkey_map_item_next_video_description"),value:H("hotkey_map_item_next_video_value")},{description:H("hotkey_map_item_prev_video_description"),value:H("hotkey_map_item_prev_video_value")}]},{title:H("hotkey_map_group_title_subtitles"),items:[{description:H("hotkey_map_item_subtitles_toggle_description"),value:H("hotkey_map_item_subtitles_toggle_value")}]},{title:H("hotkey_map_group_title_episodes"),items:[{description:H("hotkey_map_item_prev_episode_description"),value:ch.device.isApple?H("hotkey_map_item_prev_episode_mac_value"):H("hotkey_map_item_prev_episode_pc_value")},{description:H("hotkey_map_item_next_episode_description"),value:ch.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as n_,ValueSubject as Tp}from"@vkontakte/videoplayer-shared/es2018";var Ys=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:n_(this.onResize.bind(this),300)};this.info={isActive$:new Tp(!1),isEnabled$:new Tp(!1),type:0};this.info.isEnabled$=new Tp(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 js(t){return t instanceof Ys}import{devNull as ph,now as fh}from"@vkontakte/videoplayer-shared/es2018";dv();function Ep(t,e){q(e,!1);let i=Se();Dt(()=>{i.getAdmanWrapper().startPostroll()}),kr(),W()}import{noop as r_}from"@vkontakte/videoplayer-shared/es2018";var s_=(t,e)=>{t.stopPropagation(),e()()},a_=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>'),l_=L("<div><!></div>"),d_={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){q(e,!0),Q(t,d_);let[i,o]=He(),n=()=>C(p,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,r_),p=Se().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=l_();let u;var $=h(_);{var w=S=>{var k=a_();k.__click=[s_,d];var A=h(k);_e(),g(k),I(P=>ve(A,`${P!=null?P:""} `),[()=>H("skip_ads_now")]),b(S,k)},y=S=>{var k=rr();I(A=>ve(k,A),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,k)};R($,S=>{r(f)?S(w):S(y,!1)})}g(_),I(S=>u=te(_,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),W(),o()}rt(["click"]);var c_=L('<button class="svelte-1wy3dql"> </button>'),u_={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 Pp(t,e){q(e,!1),Q(t,u_),kr();var i=c_(),o=h(i,!0);g(i),I(n=>ve(o,n),[()=>H("visit_advertiser")],Sr),b(t,i),W()}var p_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),f_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),m_={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.`},rh=X0;var es=new Map;es.set(ah.EN,rh);es.set(ah.RU,nh);var lh=new Map,wp=({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);lh.set(t,i)},Sp=t=>es.has(t),Cp=(t,e,i,o)=>{var s;let n=es.get(t),a=n==null?void 0:n[e];if(sh(a)){let d=(s=lh.get(t))!=null?s:o,l=d?es.get(d):void 0;a=l==null?void 0:l[e]}return sh(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}=Te(),o=Ce(i),n=Ut();return Cp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var Ua;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ua||(Ua={}));var J0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,e_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,t_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xc="?",i_="X-Sentry-Auth",o_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function n_(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=J0.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||xc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=t_.exec(i[a]))n={filename:o[2],function:o[1]||xc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=e_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||xc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=xc),e.push(n)}return e.length?{value:dh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function dh(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function r_(t){try{let e=n_(t);if(e)return e}catch(e){}return{value:dh(t),type:t&&t.name,stacktrace:{frames:[]}}}function s_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var wc=class{constructor(e){if(e&&e.dsn){let i=o_.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:[r_(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(i_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:s_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function ch(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function a_(){return window}var Sc=class t extends wc{constructor(e,i=a_()){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=>ch(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=>ch(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 Cc,Subscription as l_}from"@vkontakte/videoplayer-shared/es2018";var Tc=null,Gs=class{constructor(e,i,o={}){!Tc&&e.dsn&&(this.sentryClient=new Sc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new l_,this.options=e,this.context=o,Tc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Tc=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(Cc(_)&&$.includes(_)||Cc(u)&&m.includes(u))return;if(Math.random()<=d||Cc(_)&&p.includes(_)||Cc(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?Ua.fatal:Ua.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Tc}};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 Ic=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()},kc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),uh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Bl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},gs=()=>!!Bl(),Ec=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Pc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},ph=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 fh}from"@vkontakte/videoplayer-core/es2018";var mh=()=>({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:fh.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:fh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as d_,ValueSubject as Tp}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:d_(this.onResize.bind(this),300)};this.info={isActive$:new Tp(!1),isEnabled$:new Tp(!1),type:0};this.info.isEnabled$=new Tp(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 vh,now as gh}from"@vkontakte/videoplayer-shared/es2018";pv();function Ep(t,e){U(e,!1);let i=Te();Ft(()=>{i.getAdmanWrapper().startPostroll()}),br(),z()}import{noop as c_}from"@vkontakte/videoplayer-shared/es2018";var u_=(t,e)=>{t.stopPropagation(),e()()},p_=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>'),f_=L("<div><!></div>"),m_={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 Pp(t,e){U(e,!0),q(t,m_);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,c_),p=Te().ui.isMobile,m=v(()=>a()>0&&a()>=s());var $=f_();let u;var _=h($);{var w=C=>{var T=p_();T.__click=[u_,d];var E=h(T);ye(),g(T),k(P=>me(E,`${P!=null?P:""} `),[()=>F("skip_ads_now")]),b(C,T)},y=C=>{var T=Rr();k(E=>me(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()}at(["click"]);var v_=L('<button class="svelte-1wy3dql"> </button>'),g_={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 Ap(t,e){U(e,!1),q(t,g_),br();var i=v_(),o=h(i,!0);g(i),k(n=>me(o,n),[()=>F("visit_advertiser")],gr),b(t,i),z()}var h_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),__=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),b_={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,14 +67,14 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
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 Vl(t,e){q(e,!0),Q(t,m_);let[i,o]=He(),n=()=>C(Y,"$canSkipAd",i),a=()=>C(z,"$adPlaybackState",i),s=()=>C(A,"$isMobile",i),d=()=>C(F,"$adPosition",i),l=()=>C(j,"$secondsToWatchBeforeSkipAd",i),p=()=>C(k,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),_=v(e,"adsParams",3,void 0),u=v(e,"adsPreviewParam",3,void 0),$=v(e,"adsAutoplayParam",3,void 0),w=v(e,"duration",3,0),y=Se(),S=qt(),k=y.state.isEnded$,A=y.ui.isMobile,P=S.ads.isMobileGoToSiteButton,E=ee(void 0),T=ee(void 0),V=!1,z=y.ads.playbackState,Y=y.ads.canSkip,F=y.ads.position,j=y.ads.secondsToWatchBeforeSkip,X=m(()=>n()&&a()!=="inactive"),oe=m(()=>s()&&a()!=="inactive"&&P);Dt(()=>{var $e;let Ie=y.getAdmanWrapper();if(ph.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[fh(),f()]}),!f()){Ie.onAdmanLoadingError();return}let Ne=Le=>{Ie.initAdman(Le),V=!0},fe=new AbortController,D=()=>{fe.abort()},{width:de,height:Ee}=ye(y.ui.playerSize),Qe=ye(y.ui.isFullscreen),st=($e=$())!=null?$e:ye(y.ui.isAutoplay),Ae={width:de,height:Ee,isFullscreen:Qe,isAutoplay:st,adsContainer:r(E),adsVideoElement:r(T),slotId:f(),params:_(),previewParam:u(),duration:w()};return window.AdmanHTML?Ne(Ae):Ie.loadAdman(fe.signal).then(()=>{Ne(Ae)}).catch(()=>{Ie.onAdmanLoadingError()}),()=>{ph.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[fh(),f()]}),!V&&D()}});var pe=f_(),le=h(pe);{var Ve=Ie=>{var Ne=p_();b(Ie,Ne)};R(le,Ie=>{s()&&Ie(Ve)})}var Pe=M(le,2);dt(Pe,Ie=>O(T,Ie),()=>r(T));var J=M(Pe,2);{var Me=Ie=>{Ap(Ie,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(J,Ie=>{r(X)&&Ie(Me)})}var Z=M(J,2);{var B=Ie=>{Ep(Ie,{})};R(Z,Ie=>{p()&&Ie(B)})}var Re=M(Z,2);{var ne=Ie=>{Pp(Ie,{})};R(Re,Ie=>{r(oe)&&Ie(ne)})}g(pe),dt(pe,Ie=>O(E,Ie),()=>r(E)),b(t,pe),W(),o()}var lr=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 v_=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 Mp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=v_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 g_=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 Lp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=g_();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 Rl(t,e){let i=v(e,"isActive",3,!1);var o=Fe(),n=ue(o);{var a=d=>{Lp(d,{})},s=d=>{Mp(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var h_=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),__=L('<div role="timer" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),b_={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
71
- /* safari fix */content:'';display:inline-block;vertical-align:middle;height:100%;}.thumb-timer-live-icon.svelte-opbced {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}.thumb-timer-equalizer.svelte-opbced {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) {margin-top:-2px;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
72
- animation: 1.5s infinite linear alternate;animation-play-state:paused;}.thumb-timer.playing.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) .col:where(.svelte-opbced) {animation-play-state:running;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(1) {left:0;
73
- animation-name: svelte-opbced-thumb-timer-equalizer-col1;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(2) {left:3px;
74
- animation-name: svelte-opbced-thumb-timer-equalizer-col2;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(3) {left:6px;
75
- animation-name: svelte-opbced-thumb-timer-equalizer-col3;}
76
-
77
- @keyframes svelte-opbced-thumb-timer-equalizer-col1 {
70
+ );}`};function Ol(t,e){U(e,!0),q(t,b_);let[i,o]=Be(),n=()=>S(G,"$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=Te(),C=Ut(),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,G=y.ads.canSkip,O=y.ads.position,X=y.ads.secondsToWatchBeforeSkip,oe=v(()=>n()&&a()!=="inactive"),Y=v(()=>s()&&a()!=="inactive"&&P);Ft(()=>{var $e;let ge=y.getAdmanWrapper();if(vh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[gh(),m()]}),!m()){ge.onAdmanLoadingError();return}let Qe=Ne=>{ge.initAdman(Ne),V=!0},te=new AbortController,Q=()=>{te.abort()},{width:W,height:Ve}=Ce(y.ui.playerSize),De=Ce(y.ui.isFullscreen),et=($e=_())!=null?$e:Ce(y.ui.isAutoplay),Se={width:W,height:Ve,isFullscreen:De,isAutoplay:et,adsContainer:r(A),adsVideoElement:r(I),slotId:m(),params:$(),previewParam:u(),duration:w()};return window.AdmanHTML?Qe(Se):ge.loadAdman(te.signal).then(()=>{Qe(Se)}).catch(()=>{ge.onAdmanLoadingError()}),()=>{vh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[gh(),m()]}),!V&&Q()}});var fe=__(),ae=h(fe);{var Le=ge=>{var Qe=h_();b(ge,Qe)};R(ae,ge=>{s()&&ge(Le)})}var Ae=M(ae,2);pt(Ae,ge=>B(I,ge),()=>r(I));var he=M(Ae,2);{var se=ge=>{Pp(ge,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(he,ge=>{r(oe)&&ge(se)})}var Me=M(he,2);{var ne=ge=>{Ep(ge,{})};R(Me,ge=>{p()&&ge(ne)})}var N=M(Me,2);{var ue=ge=>{Ap(ge,{})};R(N,ge=>{r(Y)&&ge(ue)})}g(fe),pt(fe,ge=>B(A,ge),()=>r(A)),b(t,fe),z(),o()}var on=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 $_=xe('<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 Mp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(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 y_=xe('<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 Lp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=y_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(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 Hl(t,e){let i=f(e,"isActive",3,!1);var o=Ue(),n=ce(o);{var a=d=>{Lp(d,{})},s=d=>{Mp(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var x_=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>'),w_=L('<div class="live-icon svelte-1s15d2i"><!></div>'),S_=L('<span class="text svelte-1s15d2i"> </span>'),C_=L("<div><!> <!></div>"),T_={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
+ 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
+ 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
+ animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
74
+ animation-name: svelte-1s15d2i-thumb-timer-equalizer-col2;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(3) {left:6px;
75
+ animation-name: svelte-1s15d2i-thumb-timer-equalizer-col3;}.live-icon.svelte-1s15d2i {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}
76
+
77
+ @keyframes svelte-1s15d2i-thumb-timer-equalizer-col1 {
78
78
  0% {
79
79
  transform: scaleY(0.1);
80
80
  }
@@ -96,7 +96,7 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
96
96
  }
97
97
  }
98
98
 
99
- @keyframes svelte-opbced-thumb-timer-equalizer-col2 {
99
+ @keyframes svelte-1s15d2i-thumb-timer-equalizer-col2 {
100
100
  0% {
101
101
  transform: scaleY(1);
102
102
  }
@@ -118,7 +118,7 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
118
118
  }
119
119
  }
120
120
 
121
- @keyframes svelte-opbced-thumb-timer-equalizer-col3 {
121
+ @keyframes svelte-1s15d2i-thumb-timer-equalizer-col3 {
122
122
  0% {
123
123
  transform: scaleY(0.6);
124
124
  }
@@ -138,9 +138,10 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
138
138
  100% {
139
139
  transform: scaleY(0.6);
140
140
  }
141
- }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function Nl(t,e){q(e,!0),Q(t,b_);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=__();let s;var d=M(h(a),2),l=h(d);{var p=_=>{var u=h_(),$=h(u);Rl($,{isActive:!0}),g(u),b(_,u)},f=_=>{var u=rr();I($=>ve(u,$),[()=>lr(e.duration-e.position)]),b(_,u)};R(l,_=>{o()?_(p):_(f,!1)})}g(d),g(a),I(_=>s=te(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),W()}var Ha=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 A_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as mh}from"@vkontakte/videoplayer-core/es2018";var dr=t=>{t.stopPropagation(),t.preventDefault()},y_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},x_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},w_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},S_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},vh=t=>t.code==="Escape",C_=t=>t.code==="ArrowLeft",Bl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},gh=t=>{if(w_(t)){dr(t),x_(t.target);return}S_(t)&&(dr(t),y_(t.target))},ys=t=>!mh.device.isAndroid&&(t==null?void 0:t.detail)===0||mh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Fa=async(t,e,i)=>{await ho(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await ho(),i.set(!1),t.focus())},hh=async(t,e,i)=>{await ho(),t&&!e&&ye(i)&&(i.set(!1),t.focus())},Ua=async(t,e,i)=>{var n;await ho(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},_h=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Ic=(t,e)=>{gh(t),vh(t)&&(dr(t),e())},Ec=async(t,e)=>{Bl(t,["ArrowRight"])&&(dr(t),e())},bh=async(t,e,i)=>{if(gh(t),C_(t)){dr(t),e();return}vh(t)&&(dr(t),i())},za=(t,e)=>{Bl(t)&&(dr(t),e())},$h=(t,e,i)=>{if(Bl(t))dr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),dr(t);return}o==="ArrowRight"&&!e&&(i(!0),dr(t))}},yh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},xh=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 Ac,isValidURL as P_}from"@vkontakte/videoplayer-shared/es2018";var Ir={"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 wh}from"@vkontakte/videoplayer-shared/es2018";var k_=(t,e)=>{za(t,()=>e())},I_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),E_={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 Vp(t,e){q(e,!0),Q(t,E_);let i=v(e,"onClick",3,wh),o=v(e,"closeContextMenu",3,wh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=I_();a.__click=n,a.__keydown=[k_,n];var s=h(a,!0);g(a),I(()=>{var d;Oe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Oe(a,"data-testid",e.id),ve(s,e.label)}),b(t,a),W()}rt(["click","keydown"]);var Xs=(t,e)=>t.weight-e.weight;var Dl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Dl||{});var M_=(t,e)=>{Ic(t,e)},L_=t=>{t.preventDefault()},V_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),R_={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 Rp(t,e){q(e,!0),Q(t,R_);let[i,o]=He(),n=()=>C(oe,"$isLive$",i),a=()=>C(Pe,"$isPiPEnabled$",i),s=()=>C(X,"$chromecastState$",i),d=()=>C(J,"$pictureInPictureApiIsActive$",i),l=()=>C(Ve,"$isLooped$",i),p=()=>C(pe,"$positionExact$",i),f=()=>C(z,"$debugPanelVisible",i),_=()=>C(Y,"$additionalContextMenuItems$",i),u=v(e,"visible",3,!1),$=v(e,"position",19,()=>({top:0,left:0})),w=v(e,"playerContainerRef",3,void 0),y=v(e,"controlsContainerRef",3,void 0),S=v(e,"menuElementRef",15,void 0),k=ee(0),A=ee(0),P=Se(),{pictureInPicture$:E}=so(),T=qt(),V=P.ui.contextMenu.visible$,z=P.ui.debugPanelVisible,Y=P.ui.additionalContextMenuItems$,F=P.ui.t,j=P.actions.internal.togglePictureInPicture,X=P.state.chromecastState$,oe=P.state.isLive$,pe=P.state.positionExact$,le=P.state.isInteractive,Ve=P.state.looped$,{isEnabled$:Pe,isActive$:J}=E,Me=m(()=>{var Ge;return T.features.copyVideoLink&&((Ge=P.callbacks)==null?void 0:Ge.onCopyVideoLink)}),Z=m(()=>r(Me)&&!n()&&!le),B=m(()=>{var Ge;return!!((Ge=P.callbacks)!=null&&Ge.onCopyEmbedCodeClicked)}),Re=m(()=>a()&&s()!==A_.CONNECTED&&!le),ne=m(()=>T.features.videoRotate&&!le),Ie=m(()=>T.showSupport&&!d()),Ne=m(()=>T.features.saveTraceInfoToFile),fe=()=>{var Ge;V.set(!1),(Ge=e.returnFocus)==null||Ge.call(e)},D=(Ge,at)=>{if(!S()||!w()||!y())return;let Xe=S().getBoundingClientRect(),Ct=w().getBoundingClientRect();O(k,Ge-Ct.left),O(A,at-Ct.top),r(k)+Xe.width>Ct.width&&O(k,Ct.width-Xe.width),r(A)+Xe.height>Ct.height&&O(A,Ct.height-Xe.height),O(k,me(Math.max(r(k),0))),O(A,me(Math.max(r(A),0)))};qe(()=>{(async()=>{if(S()&&w()&&y()){await ho();let{top:at,left:Xe,bottom:Ct,right:Jt}=$(),Ke=Xe!=null?Xe:0,lt=at!=null?at:0,ei=S().getBoundingClientRect();Ac(Xe)&&!Ac(Jt)&&(Ke=Jt-ei.width),Ac(at)&&!Ac(Ct)&&(lt=Ct-ei.height),Ke=Math.max(Ke,0),lt=Math.max(lt,0),D(Ke,lt)}})()});let de=()=>{P.actions.internal.videoRotate()},Ee=()=>{P_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},Qe=()=>{let Ge=P.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let at=new Blob([...Ge],{type:"plain/text"}),Xe=window.URL.createObjectURL(at);Ks(Xe,"vk_player_debug_info","txt")}else Ha(P.actions.internal.getDebugTextData())},st=()=>{let Ge=P.actions.internal.getTraceTextData(),at=new Blob([...Ge],{type:"application/json"}),Xe=window.URL.createObjectURL(at);Ks(Xe,"vk_player_trace_info","json")},Ae=()=>{z.set(!0)},$e=async()=>{var Ge;try{j()}finally{(Ge=e.returnFocus)==null||Ge.call(e)}},Le=()=>{P.actions.internal.setLooped(!l())},je=()=>{var Ge,at;if(r(B)){let Xe=(at=(Ge=P.callbacks)==null?void 0:Ge.onCopyEmbedCodeClicked)==null?void 0:at.call(Ge);Xe&&Ha(Xe)}},ct=(Ge=!1)=>{var at,Xe;if((at=P.callbacks)!=null&&at.onCopyVideoLink){let Ct=(Xe=P.callbacks)==null?void 0:Xe.onCopyVideoLink(Ge,p());Ct&&Ha(Ct)}},ot=m(()=>T.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Rt=m(()=>r(Me)?{id:"copy-link",weight:Ir["copy-link"],label:F("menu_copy_video_link"),onClick:()=>ct()}:void 0),nt=m(()=>r(Z)?{id:"copy-link-timestamp",weight:Ir["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>ct(!0)}:void 0),$t=m(()=>r(B)?{id:"copy-embed-code",weight:Ir["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:je}:void 0),Ft=m(()=>r(Re)?{id:"pip",weight:Ir.pip,label:F("menu_pip"),onClick:$e}:void 0),Wt=m(()=>({id:"video-loop",weight:Ir["video-loop"],label:l()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Le})),Be=m(()=>r(ne)?{id:"rotate",weight:Ir.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:de}:void 0),re=m(()=>r(Ie)?{id:"report",weight:Ir.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:Ee}:void 0),K=m(()=>({id:"save-debug",weight:Ir["save-debug"],label:r(ot),onClick:Qe})),se=m(()=>r(Ne)?{id:"save-trace",weight:Ir["save-trace"],label:F("menu_save_debug"),onClick:st}:void 0),he=m(()=>({id:"debug-info",weight:Ir["debug-info"],label:F("menu_debug_overlay"),ariaLabel:f()?F("aria_label_menu_debug_overlay_disable"):F("aria_label_menu_debug_overlay_enable"),onClick:Ae})),Ce=m(()=>[r(Rt),r(nt),r($t),r(Ft),r(Wt),r(Be),r(re),r(K),r(se),r(he),..._()].filter(Ge=>!!Ge).sort(Xs));var De=Fe(),ut=ue(De);{var Ut=Ge=>{var at=V_();at.__contextmenu=[L_],at.__keydown=[M_,fe],$i(at,21,()=>r(Ce),Xe=>Xe.id,(Xe,Ct)=>{Vp(Xe,{get id(){return r(Ct).id},get label(){return r(Ct).label},get ariaLabel(){return r(Ct).ariaLabel},get onClick(){return r(Ct).onClick},closeContextMenu:fe})}),g(at),dt(at,Xe=>S(Xe),()=>S()),I(()=>{var Xe,Ct;return et(at,`top: ${(Xe=r(A))!=null?Xe:""}px; left: ${(Ct=r(k))!=null?Ct:""}px;`)}),b(Ge,at)};R(ut,Ge=>{u()&&Ge(Ut)})}b(t,De),W(),o()}rt(["contextmenu","keydown"]);var Pc=class{constructor(e){this.value=e,this.next=null}};var qa=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Pc(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 N_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),B_={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 Ol(t,e){q(e,!0),Q(t,B_);let i=v(e,"values",19,()=>[]),o=ee(void 0),n=ee(null),a=16,s=120,d=60,l=s/d;Dt(()=>{r(o).width=s,r(o).height=a,O(n,me(r(o).getContext("2d")))});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}qe(()=>{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 S=w*l,k=$>0?a*(i()[y]/$):0;p(r(n),S,0,l,k),u=k+" "+u,w--}}});var f=N_(),_=h(f);dt(_,u=>O(o,u),()=>r(o)),g(f),b(t,f),W()}import{safeStorage as Sh}from"@vkontakte/videoplayer-shared/es2018";var D_=(t,e)=>{t.stopPropagation(),Sh.remove(kl),e.set(!1)},O_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),H_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),F_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),U_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),q_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),W_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),K_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Q_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),G_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Y_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),j_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),X_=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>'),J_={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 Hl(t,e){q(e,!0),Q(t,J_);let[i,o]=He(),n=()=>C(d,"$isMobile",i),a=Se(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=ee(me(a.actions.internal.getDebugPanelData())),p=a.actions.internal.getVideoElement(),f=ee(0),_=ee(0),u=ee(0),$=new qa(60),w=new qa(60),y=new qa(60),S=ee(me([])),k=ee(me([])),A=ee(me([])),P=H("aria_label_debug_panel");Dt(()=>{Sh.set(kl,"true"),a.actions.internal.startLogging(),p&&(O(_,me(p.getVideoPlaybackQuality().droppedVideoFrames)),O(f,me(p.getVideoPlaybackQuality().totalVideoFrames)));let K=window.setInterval(()=>{O(l,me(a.actions.internal.getDebugPanelData()))},500),se;return p&&(se=window.setInterval(()=>{if(p){O(_,me(p.getVideoPlaybackQuality().droppedVideoFrames));let he=p.getVideoPlaybackQuality().totalVideoFrames;O(u,he-r(f)),O(f,me(he)),$.push(r(u)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(S,me($.getValuesFromBottom())),O(k,me(w.getValuesFromBottom())),O(A,me(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(K),se&&clearInterval(se)}});var E=X_();let T;Oe(E,"aria-label",P);var V=h(E);V.__click=[D_,s];var z=M(V,2),Y=h(z),F=M(h(Y),2),j=h(F,!0);g(F),g(Y);var X=M(Y,2);{var oe=K=>{var se=O_(),he=M(h(se),2),Ce=h(he,!0);g(he),g(se),I(()=>ve(Ce,r(l).id)),b(K,se)};R(X,K=>{r(l).id&&K(oe)})}var pe=M(X,2);{var le=K=>{var se=H_(),he=M(h(se),2),Ce=h(he,!0);g(he),g(se),I(()=>ve(Ce,r(l).vsid)),b(K,se)};R(pe,K=>{r(l).vsid&&K(le)})}var Ve=M(pe,2);{var Pe=K=>{var se=F_(),he=M(h(se),2),Ce=h(he,!0);g(he),g(se),I(()=>ve(Ce,r(l).provider)),b(K,se)};R(Ve,K=>{r(l).provider&&K(Pe)})}var J=M(Ve,2);{var Me=K=>{var se=U_(),he=M(h(se),2),Ce=h(he);g(he),g(se),I(()=>{var De,ut;return ve(Ce,`Video: ${r(l).videoCodec||""} ${(De=r(l).hdr?"(HDR)":"")!=null?De:""}
141
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Fl(t,e){q(t,T_);let i=f(e,"withEqualizer",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1);var a=C_();let s;var d=h(a);{var l=u=>{var _=x_();b(u,_)};R(d,u=>{i()&&u(l)})}var p=M(d,2);{var m=u=>{var _=w_(),w=h(_);Hl(w,{isActive:!0}),g(_),b(u,_)},$=u=>{var _=S_(),w=h(_,!0);g(_),k(()=>me(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 I_=L('<div role="timer" data-testid="thumb-timer"><!></div>'),k_={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),q(t,k_);let i=f(e,"isHidden",3,!1),o=f(e,"isLive",3,!1),n=f(e,"isPlaying",3,!1),a=v(()=>on(e.duration-e.position));var s=I_();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),k(p=>d=ee(s,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),b(t,s),z()}var za=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 O_}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as hh}from"@vkontakte/videoplayer-core/es2018";var nr=t=>{t.stopPropagation(),t.preventDefault()},P_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},A_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},M_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},L_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},_h=t=>t.code==="Escape",V_=t=>t.code==="ArrowLeft",zl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},bh=t=>{if(M_(t)){nr(t),A_(t.target);return}L_(t)&&(nr(t),P_(t.target))},bs=t=>!hh.device.isAndroid&&(t==null?void 0:t.detail)===0||hh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",qa=async(t,e,i)=>{await ho(),t&&!t.classList.contains("opened")&&!e&&Ce(i)&&(await ho(),i.set(!1),t.focus())},$h=async(t,e,i)=>{await ho(),t&&!e&&Ce(i)&&(i.set(!1),t.focus())},Wa=async(t,e,i)=>{var n;await ho(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())},yh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Ac=(t,e)=>{bh(t),_h(t)&&(nr(t),e())},Mc=async(t,e)=>{zl(t,["ArrowRight"])&&(nr(t),e())},xh=async(t,e,i)=>{if(bh(t),V_(t)){nr(t),e();return}_h(t)&&(nr(t),i())},Ka=(t,e)=>{zl(t)&&(nr(t),e())},wh=(t,e,i)=>{if(zl(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))}},Sh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Ch=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 Lc,isValidURL as H_}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 Th}from"@vkontakte/videoplayer-shared/es2018";var D_=(t,e)=>{Ka(t,()=>e())},N_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),B_={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 Vp(t,e){U(e,!0),q(t,B_);let i=f(e,"onClick",3,Th),o=f(e,"closeContextMenu",3,Th),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=N_();a.__click=n,a.__keydown=[D_,n];var s=h(a,!0);g(a),k(()=>{var d;Oe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Oe(a,"data-testid",e.id),me(s,e.label)}),b(t,a),z()}at(["click","keydown"]);var Xs=(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 F_=(t,e)=>{Ac(t,e)},U_=t=>{t.preventDefault()},z_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),q_={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 Rp(t,e){U(e,!0),q(t,q_);let[i,o]=Be(),n=()=>S(Y,"$isLive$",i),a=()=>S(Ae,"$isPiPEnabled$",i),s=()=>S(oe,"$chromecastState$",i),d=()=>S(he,"$pictureInPictureApiIsActive$",i),l=()=>S(Le,"$isLooped$",i),p=()=>S(fe,"$positionExact$",i),m=()=>S(H,"$debugPanelVisible",i),$=()=>S(G,"$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=Te(),{pictureInPicture$:A}=ao(),I=Ut(),V=P.ui.contextMenu.visible$,H=P.ui.debugPanelVisible,G=P.ui.additionalContextMenuItems$,O=P.ui.t,X=P.actions.internal.togglePictureInPicture,oe=P.state.chromecastState$,Y=P.state.isLive$,fe=P.state.positionExact$,ae=P.state.isInteractive,Le=P.state.looped$,{isEnabled$:Ae,isActive$:he}=A,se=v(()=>{var Ye;return I.features.copyVideoLink&&((Ye=P.callbacks)==null?void 0:Ye.onCopyVideoLink)}),Me=v(()=>r(se)&&!n()&&!ae),ne=v(()=>{var Ye;return!!((Ye=P.callbacks)!=null&&Ye.onCopyEmbedCodeClicked)}),N=v(()=>a()&&s()!==O_.CONNECTED&&!ae),ue=v(()=>I.features.videoRotate&&!ae),ge=v(()=>I.showSupport&&!d()),Qe=v(()=>I.features.saveTraceInfoToFile),te=()=>{var Ye;V.set(!1),(Ye=e.returnFocus)==null||Ye.call(e)},Q=(Ye,Ze)=>{if(!C()||!w()||!y())return;let Xe=C().getBoundingClientRect(),We=w().getBoundingClientRect();B(T,Ye-We.left),B(E,Ze-We.top),r(T)+Xe.width>We.width&&B(T,We.width-Xe.width),r(E)+Xe.height>We.height&&B(E,We.height-Xe.height),B(T,pe(Math.max(r(T),0))),B(E,pe(Math.max(r(E),0)))};qe(()=>{(async()=>{if(C()&&w()&&y()){await ho();let{top:Ze,left:Xe,bottom:We,right:mt}=_(),ze=Xe!=null?Xe:0,dt=Ze!=null?Ze:0,jt=C().getBoundingClientRect();Lc(Xe)&&!Lc(mt)&&(ze=mt-jt.width),Lc(Ze)&&!Lc(We)&&(dt=We-jt.height),ze=Math.max(ze,0),dt=Math.max(dt,0),Q(ze,dt)}})()});let W=()=>{P.actions.internal.videoRotate()},Ve=()=>{H_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},De=()=>{let Ye=P.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Ze=new Blob([...Ye],{type:"plain/text"}),Xe=window.URL.createObjectURL(Ze);Qs(Xe,"vk_player_debug_info","txt")}else za(P.actions.internal.getDebugTextData())},et=()=>{let Ye=P.actions.internal.getTraceTextData(),Ze=new Blob([...Ye],{type:"application/json"}),Xe=window.URL.createObjectURL(Ze);Qs(Xe,"vk_player_trace_info","json")},Se=()=>{H.set(!0)},$e=async()=>{var Ye;try{X()}finally{(Ye=e.returnFocus)==null||Ye.call(e)}},Ne=()=>{P.actions.internal.setLooped(!l())},je=()=>{var Ye,Ze;if(r(ne)){let Xe=(Ze=(Ye=P.callbacks)==null?void 0:Ye.onCopyEmbedCodeClicked)==null?void 0:Ze.call(Ye);Xe&&za(Xe)}},it=(Ye=!1)=>{var Ze,Xe;if((Ze=P.callbacks)!=null&&Ze.onCopyVideoLink){let We=(Xe=P.callbacks)==null?void 0:Xe.onCopyVideoLink(Ye,p());We&&za(We)}},ht=v(()=>I.features.saveDebugInfoToFile?O("menu_save_debug"):O("menu_copy_debug")),Je=v(()=>r(se)?{id:"copy-link",weight:$r["copy-link"],label:O("menu_copy_video_link"),onClick:()=>it()}:void 0),ft=v(()=>r(Me)?{id:"copy-link-timestamp",weight:$r["copy-link-timestamp"],label:O("menu_copy_video_link_with_timestamp"),onClick:()=>it(!0)}:void 0),Pt=v(()=>r(ne)?{id:"copy-embed-code",weight:$r["copy-embed-code"],label:O("menu_copy_embed_code"),onClick:je}:void 0),Wt=v(()=>r(N)?{id:"pip",weight:$r.pip,label:O("menu_pip"),onClick:$e}:void 0),Kt=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:Ne})),At=v(()=>r(ue)?{id:"rotate",weight:$r.rotate,label:O("menu_video_rotate"),ariaLabel:O("aria_label_menu_rotate"),onClick:W}:void 0),_e=v(()=>r(ge)?{id:"report",weight:$r.report,label:O("menu_report"),ariaLabel:`${O("menu_report")}. ${O("aria_label_new_tab_alert")}`,onClick:Ve}:void 0),j=v(()=>({id:"save-debug",weight:$r["save-debug"],label:r(ht),onClick:De})),be=v(()=>r(Qe)?{id:"save-trace",weight:$r["save-trace"],label:O("menu_save_debug"),onClick:et}:void 0),re=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:Se})),Re=v(()=>[r(Je),r(ft),r(Pt),r(Wt),r(Kt),r(At),r(_e),r(j),r(be),r(re),...$()].filter(Ye=>!!Ye).sort(Xs));var He=Ue(),ot=ce(He);{var lt=Ye=>{var Ze=z_();Ze.__contextmenu=[U_],Ze.__keydown=[F_,te],Si(Ze,21,()=>r(Re),Xe=>Xe.id,(Xe,We)=>{Vp(Xe,{get id(){return r(We).id},get label(){return r(We).label},get ariaLabel(){return r(We).ariaLabel},get onClick(){return r(We).onClick},closeContextMenu:te})}),g(Ze),pt(Ze,Xe=>C(Xe),()=>C()),k(()=>{var Xe,We;return tt(Ze,`top: ${(Xe=r(E))!=null?Xe:""}px; left: ${(We=r(T))!=null?We:""}px;`)}),b(Ye,Ze)};R(ot,Ye=>{u()&&Ye(lt)})}b(t,He),z(),o()}at(["contextmenu","keydown"]);var Vc=class{constructor(e){this.value=e,this.next=null}};var Qa=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Vc(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var W_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),K_={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),q(t,K_);let i=f(e,"values",19,()=>[]),o=J(void 0),n=J(null),a=16,s=120,d=60,l=s/d;Ft(()=>{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)}qe(()=>{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=W_(),$=h(m);pt($,u=>B(o,u),()=>r(o)),g(m),b(t,m),z()}import{safeStorage as Ih}from"@vkontakte/videoplayer-shared/es2018";var Q_=(t,e)=>{t.stopPropagation(),Ih.remove(Ml),e.set(!1)},G_=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>'),Y_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),Z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),ab=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>'),lb={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),q(t,lb);let[i,o]=Be(),n=()=>S(d,"$isMobile",i),a=Te(),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 Qa(60),w=new Qa(60),y=new Qa(60),C=J(pe([])),T=J(pe([])),E=J(pe([])),P=F("aria_label_debug_panel");Ft(()=>{Ih.set(Ml,"true"),a.actions.internal.startLogging(),p&&(B($,pe(p.getVideoPlaybackQuality().droppedVideoFrames)),B(m,pe(p.getVideoPlaybackQuality().totalVideoFrames)));let j=window.setInterval(()=>{B(l,pe(a.actions.internal.getDebugPanelData()))},500),be;return p&&(be=window.setInterval(()=>{if(p){B($,pe(p.getVideoPlaybackQuality().droppedVideoFrames));let re=p.getVideoPlaybackQuality().totalVideoFrames;B(u,re-r(m)),B(m,pe(re)),_.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(j),be&&clearInterval(be)}});var A=ab();let I;Oe(A,"aria-label",P);var V=h(A);V.__click=[Q_,s];var H=M(V,2),G=h(H),O=M(h(G),2),X=h(O,!0);g(O),g(G);var oe=M(G,2);{var Y=j=>{var be=G_(),re=M(h(be),2),Re=h(re,!0);g(re),g(be),k(()=>me(Re,r(l).id)),b(j,be)};R(oe,j=>{r(l).id&&j(Y)})}var fe=M(oe,2);{var ae=j=>{var be=j_(),re=M(h(be),2),Re=h(re,!0);g(re),g(be),k(()=>me(Re,r(l).vsid)),b(j,be)};R(fe,j=>{r(l).vsid&&j(ae)})}var Le=M(fe,2);{var Ae=j=>{var be=Y_(),re=M(h(be),2),Re=h(re,!0);g(re),g(be),k(()=>me(Re,r(l).provider)),b(j,be)};R(Le,j=>{r(l).provider&&j(Ae)})}var he=M(Le,2);{var se=j=>{var be=Z_(),re=M(h(be),2),Re=h(re);g(re),g(be),k(()=>{var He,ot;return me(Re,`Video: ${r(l).videoCodec||""} ${(He=r(l).hdr?"(HDR)":"")!=null?He:""}
142
143
  &
143
- Audio: ${r(l).audioCodec||""} ${(ut=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?ut:""}`)}),b(K,se)};R(J,K=>{(r(l).videoCodec||r(l).audioCodec)&&K(Me)})}var Z=M(J,2);{var B=K=>{var se=z_(),he=M(h(se),2),Ce=h(he,!0);g(he),g(se),I(()=>ve(Ce,r(l).viewport)),b(K,se)};R(Z,K=>{r(l).viewport&&K(B)})}var Re=M(Z,2);{var ne=K=>{var se=q_(),he=M(h(se),2),Ce=h(he,!0);g(he),g(se),I(()=>ve(Ce,r(l).videoSize)),b(K,se)};R(Re,K=>{r(l).videoSize&&K(ne)})}var Ie=M(Re,2);{var Ne=K=>{var se=W_(),he=M(h(se),2),Ce=h(he,!0);g(he),g(se),I(()=>ve(Ce,r(l).cdn)),b(K,se)};R(Ie,K=>{r(l).cdn&&K(Ne)})}var fe=M(Ie,2);{var D=K=>{var se=K_(),he=M(h(se),2),Ce=h(he);g(he),g(se),I(()=>{var De;return ve(Ce,`${(De=r(l).volume)!=null?De:""} %`)}),b(K,se)};R(fe,K=>{r(l).volume&&K(D)})}var de=M(fe,2);{var Ee=K=>{var se=Q_(),he=M(h(se),2),Ce=h(he);g(he),g(se),I(De=>ve(Ce,`${De!=null?De:""} s`),[()=>r(l).buffer.toFixed(2)]),b(K,se)};R(de,K=>{r(l).buffer&&K(Ee)})}var Qe=M(de,2);{var st=K=>{var se=G_(),he=M(h(se),2),Ce=h(he);g(he),g(se),I(De=>ve(Ce,`${De!=null?De:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(K,se)};R(Qe,K=>{r(l).liveLatency&&K(st)})}var Ae=M(Qe,2);{var $e=K=>{var se=Y_(),he=M(h(se),2),Ce=h(he,!0);g(he),g(se),I(De=>ve(Ce,De),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:De})=>De).map(({value:De,title:ut})=>`${ut} ${((De!=null?De:0)/1e3).toFixed(2)} s`).join(" & ")]),b(K,se)};R(Ae,K=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&K($e)})}var Le=M(Ae,2),je=M(h(Le),2),ct=h(je);g(je),g(Le);var ot=M(Le,2);{var Rt=K=>{var se=j_(),he=M(h(se),2);Ol(he,{get values(){return r(k)}});var Ce=M(he,2),De=h(Ce);g(Ce),g(se),I(ut=>ve(De,`${ut!=null?ut:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(K,se)};R(ot,K=>{r(l).speed&&K(Rt)})}var nt=M(ot,2);{var $t=K=>{var se=Z_(),he=M(h(se),2);Ol(he,{get values(){return r(A)}});var Ce=M(he,2),De=h(Ce);g(Ce),g(se),I(ut=>ve(De,`${ut!=null?ut:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(K,se)};R(nt,K=>{r(l).bitrate&&K($t)})}var Ft=M(nt,2),Wt=M(h(Ft),2);Ol(Wt,{get values(){return r(S)}});var Be=M(Wt,2),re=h(Be,!0);g(Be),g(Ft),g(z),g(E),I(K=>{var se,he;T=te(E,1,"container svelte-4deykz",null,T,K),ve(j,r(l).version),ve(ct,`${(se=r(_))!=null?se:""} / ${(he=r(f))!=null?he:""} frames`),ve(re,r(u))},[()=>({"container-mobile":n()})]),b(t,E),W(),o()}rt(["click"]);import{noop as eb}from"@vkontakte/videoplayer-shared/es2018";var tb=(t,e)=>{t.stopPropagation(),e()()},ib=L('<div class="close svelte-1ome55p"></div>'),ob={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){q(e,!0),Q(t,ob);let i=v(e,"onClick",3,eb);var o=ib();o.__click=[tb,i],b(t,o),W()}rt(["click"]);import{noop as nb}from"@vkontakte/videoplayer-shared/es2018";var rb=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>'),sb={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 Fl(t,e){q(e,!0),Q(t,sb);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,nb),n=5e3,a=ee(void 0),s,d,l=ee(0),p;qe(()=>{i()&&(d=Date.now(),O(l,me(requestAnimationFrame(_))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),O(l,0))},_=()=>{if(!i()){f();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(),O(l,me(requestAnimationFrame(_)))):o()()};Dt(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),hn(()=>{f()});var u=rb(),$=h(u);dt($,w=>O(a,w),()=>r(a)),_e(2),g(u),b(t,u),W()}var ab=(t,e,i)=>{e(!1),i()},lb=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),db={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 Np(t,e){q(e,!0),Q(t,db);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=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(),$()};Dt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Fe(),k=ue(S);{var A=P=>{var E=lb(),T=M(ue(E),2),V=h(T),z=h(V),Y=h(z,!0);g(z);var F=M(z,2);Js(F,{onClick:y}),g(V);var j=M(V,2);j.__click=[ab,p,_];var X=h(j),oe=h(X),pe=h(oe);let le;var Ve=M(pe,2);{var Pe=B=>{let Re=m(()=>a()&&n());Fl(B,{get isRunning(){return r(Re)},onTimerEnded:w})};R(Ve,B=>{n()&&B(Pe)})}g(oe),g(X);var J=M(X,2),Me=h(J),Z=h(Me,!0);g(Me),g(J),g(j),g(T),I((B,Re)=>{ve(Y,B),et(oe,`background-image: url('${e.thumb}')`),le=te(pe,1,"thumb-overlay svelte-jfbaax",null,le,Re),ve(Z,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,E)};R(k,P=>{e.isHide||P(A)})}b(t,S),W(),o()}rt(["click"]);import{PlaybackState as ea}from"@vkontakte/videoplayer-core/es2018";import{checkNever as ub}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as _n}from"@vkontakte/videoplayer-statistics/es2018";var Bp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Dp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Mc=(t,e,i)=>{let o=Bp(e,i);e<1&&t.actions.internal.setVolume(o)},Lc=(t,e,i)=>{let o=Dp(e,i);e>0&&t.actions.internal.setVolume(o)};var xs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var pb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),fb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Op(t,e){var Wt,Be;q(e,!0),Q(t,fb);let[i,o]=He(),n=()=>C(Y,"$playbackState$",i),a=()=>C(F,"$adPlaybackState",i),s=()=>C(pe,"$disabledControls$",i),d=()=>C(j,"$positionExact$",i),l=()=>C(X,"$duration$",i),p=()=>C(D,"$isAudioAvailable$",i),f=()=>C(oe,"$volume$",i),_=()=>C(J,"$availablePlaybackRates$",i),u=()=>C(Pe,"$currentPlaybackRate$",i),$=()=>C(Ee,"$isInteractiveTime$",i),w=()=>C(Qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(ne,"$isEnded$",i),S=()=>C(le,"$muted$",i),k=()=>C(Ve,"$currentSubtitle$",i),A=()=>C(Ie,"$overlayContainer$",i),P=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=Se(),V=qt(),z=T.getLogger().createComponentLog("KeyboardControls component"),Y=T.state.playbackState$,F=T.ads.playbackState,j=T.state.positionExact$,X=T.state.duration$,oe=T.state.volume$,pe=T.ui.controls.disabledControls$,le=T.state.muted$,Ve=T.state.currentSubtitle$,Pe=T.state.currentPlaybackRate$,J=T.state.availablePlaybackRates$,Me=T.ui.contextMenu.openedByHotKey$,Z=T.ui.contextMenu.lastActiveElem$,B=T.ui.contextMenu.visible$,Re=T.ui.contextMenu.position$,ne=T.state.isEnded$,Ie=T.ui.overlayContainer$,Ne=(Wt=T.callbacks)==null?void 0:Wt.onAudioDoesNotExistHint,fe=(Be=T.callbacks)==null?void 0:Be.onAudioDisabledHint,D=T.state.isAudioAvailable$,de=T.state.isAudioDisabled,Ee=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Qe}=so(),st=0,Ae=!0,$e=ee(void 0),Le=()=>{var re;return(re=r($e))==null?void 0:re.focus()},je=re=>(re!==Ae&&(Ae=re,st=0),st+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*st)/1e3),ct=re=>{var Ct,Jt;let K=re.target,se=(Ct=K==null?void 0:K.getAttribute("role"))==null?void 0:Ct.includes("menuitem"),he=K.classList.contains("btn"),Ce=re.code;if(he&&Ce==="Space")return;let De=kg.has(Ce);if(se&&De)return;let ut=!Tg.has(Ce);if(re.ctrlKey&&ut||re.altKey&&ut||re.metaKey)return;let Ut=se&&Ce==="Escape";Ig.has(Ce)||Ut||e.hideContextMenu();let Ge=n()===ea.PLAYING||n()===ea.PAUSED,at=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!at&&!s().has("TIMELINE");if(Ge||at)switch(z({message:`key down, code: ${Ce}`}),Ce){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(re.ctrlKey||re.altKey){let Ke=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Ke),Ke&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ke.text}),re.preventDefault()}else{let Ke=re.shiftKey?je(!1):V.controls.seekStepKeyboard/1e3,lt=Math.max(d()-Ke,0);d()>0&&(T.actions.internal.seekTime(lt,_n.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ke.toString()}),re.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(re.ctrlKey||re.altKey){let Ke=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Ke),Ke&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ke.text}),re.preventDefault()}else{let Ke=re.shiftKey?je(!0):V.controls.seekStepKeyboard/1e3,lt=Math.min(d()+Ke,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(lt,_n.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ke.toString()}),re.preventDefault())}break}case"ArrowUp":{if(xs({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:p(),audioIsNotExistHintCallback:Ne})){let Ke=f(),lt=V.controls.volumeStepKeyboard,ei=Ke<=1;if(Mc(T,Ke,lt),ei){let Mi=Math.round(Bp(Ke,lt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Mi}})}}re.preventDefault();break}case"ArrowDown":{if(xs({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:p(),audioIsNotExistHintCallback:Ne})){let Ke=f(),lt=V.controls.volumeStepKeyboard,ei=Ke>=0;if(Lc(T,Ke,lt),ei){let Mi=Math.round(Dp(Ke,lt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Mi}})}}re.preventDefault();break}case"Comma":{if(re.shiftKey){T.actions.internal.decrementPlaybackRate();let Ke=_().find(lt=>lt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ke==null?void 0:Ke.displayValue}),re.preventDefault()}else{if(at||n()!==ea.PAUSED)break;let Ke=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ke,_n.DOUBLE_TAP),re.preventDefault())}break}case"Period":{if(re.shiftKey){T.actions.internal.incrementPlaybackRate();let Ke=_().find(lt=>lt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:Ke==null?void 0:Ke.displayValue}),re.preventDefault()}else{if(at||n()!==ea.PAUSED)break;let Ke=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ke,_n.DOUBLE_TAP),re.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Ke="PLAY";n()===ea.PAUSED?Ke="PAUSE":y()&&(Ke="REPLAY"),e.showHotKeyHelpers({type:Ke})}re.preventDefault();break;case"KeyM":{xs({isAudioDisabled:de,audioDisabledHintCallback:fe,isAudioAvailable:p(),audioIsNotExistHintCallback:Ne})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),re.preventDefault();break}case"KeyF":e.toggleFullscreen(),re.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),k().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Jt=k())==null?void 0:Jt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),re.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),re.preventDefault();break;case"Digit1":case"Numpad1":if(re.shiftKey){let Ke=xh(A());Re.set(Ke),Z.set(K),Me.set(!0),B.set(!0),re.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,_n.DOUBLE_TAP),re.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,_n.DOUBLE_TAP),re.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,_n.DOUBLE_TAP),re.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,_n.DOUBLE_TAP),re.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,_n.DOUBLE_TAP),re.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,_n.DOUBLE_TAP),re.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,_n.DOUBLE_TAP),re.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,_n.DOUBLE_TAP),re.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,_n.DOUBLE_TAP),re.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,_n.DOUBLE_TAP),re.preventDefault();break;case"Slash":{re.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),re.preventDefault());break}case"KeyN":re.shiftKey&&P()&&T.actions.internal.nextVideoClick();break;case"KeyP":re.shiftKey&&E()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":re.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:ub(Ce);break}},ot=re=>{let K=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;let se=n()===ea.PLAYING||n()===ea.PAUSED,he=e.isAds&&(a()==="paused"||a()==="playing");if(se||he)switch(K){case"ShiftLeft":case"ShiftRight":st=0;break}},Rt=H("aria_label_video_player");var nt=pb();nt.__keyup=ot,nt.__keydown=ct,Oe(nt,"aria-label",Rt);var $t=h(nt);ge($t,()=>{var re;return(re=e.children)!=null?re:ie}),g(nt),dt(nt,re=>O($e,re),()=>r($e)),b(t,nt);var Ft=W({focus:Le});return o(),Ft}rt(["keyup","keydown"]);var mb=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>'),vb={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||""} ${(ot=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?ot:""}`)}),b(j,be)};R(he,j=>{(r(l).videoCodec||r(l).audioCodec)&&j(se)})}var Me=M(he,2);{var ne=j=>{var be=X_(),re=M(h(be),2),Re=h(re,!0);g(re),g(be),k(()=>me(Re,r(l).viewport)),b(j,be)};R(Me,j=>{r(l).viewport&&j(ne)})}var N=M(Me,2);{var ue=j=>{var be=J_(),re=M(h(be),2),Re=h(re,!0);g(re),g(be),k(()=>me(Re,r(l).videoSize)),b(j,be)};R(N,j=>{r(l).videoSize&&j(ue)})}var ge=M(N,2);{var Qe=j=>{var be=eb(),re=M(h(be),2),Re=h(re,!0);g(re),g(be),k(()=>me(Re,r(l).cdn)),b(j,be)};R(ge,j=>{r(l).cdn&&j(Qe)})}var te=M(ge,2);{var Q=j=>{var be=tb(),re=M(h(be),2),Re=h(re);g(re),g(be),k(()=>{var He;return me(Re,`${(He=r(l).volume)!=null?He:""} %`)}),b(j,be)};R(te,j=>{r(l).volume&&j(Q)})}var W=M(te,2);{var Ve=j=>{var be=ib(),re=M(h(be),2),Re=h(re);g(re),g(be),k(He=>me(Re,`${He!=null?He:""} s`),[()=>r(l).buffer.toFixed(2)]),b(j,be)};R(W,j=>{r(l).buffer&&j(Ve)})}var De=M(W,2);{var et=j=>{var be=ob(),re=M(h(be),2),Re=h(re);g(re),g(be),k(He=>me(Re,`${He!=null?He:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(j,be)};R(De,j=>{r(l).liveLatency&&j(et)})}var Se=M(De,2);{var $e=j=>{var be=nb(),re=M(h(be),2),Re=h(re,!0);g(re),g(be),k(He=>me(Re,He),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:He})=>He).map(({value:He,title:ot})=>`${ot} ${((He!=null?He:0)/1e3).toFixed(2)} s`).join(" & ")]),b(j,be)};R(Se,j=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&j($e)})}var Ne=M(Se,2),je=M(h(Ne),2),it=h(je);g(je),g(Ne);var ht=M(Ne,2);{var Je=j=>{var be=rb(),re=M(h(be),2);Wl(re,{get values(){return r(T)}});var Re=M(re,2),He=h(Re);g(Re),g(be),k(ot=>me(He,`${ot!=null?ot:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(j,be)};R(ht,j=>{r(l).speed&&j(Je)})}var ft=M(ht,2);{var Pt=j=>{var be=sb(),re=M(h(be),2);Wl(re,{get values(){return r(E)}});var Re=M(re,2),He=h(Re);g(Re),g(be),k(ot=>me(He,`${ot!=null?ot:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(j,be)};R(ft,j=>{r(l).bitrate&&j(Pt)})}var Wt=M(ft,2),Kt=M(h(Wt),2);Wl(Kt,{get values(){return r(C)}});var At=M(Kt,2),_e=h(At,!0);g(At),g(Wt),g(H),g(A),k(j=>{var be,re;I=ee(A,1,"container svelte-4deykz",null,I,j),me(X,r(l).version),me(it,`${(be=r($))!=null?be:""} / ${(re=r(m))!=null?re:""} frames`),me(_e,r(u))},[()=>({"container-mobile":n()})]),b(t,A),z(),o()}at(["click"]);import{noop as db}from"@vkontakte/videoplayer-shared/es2018";var cb=(t,e)=>{t.stopPropagation(),e()()},ub=L('<div class="close svelte-1ome55p"></div>'),pb={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,pb);let i=f(e,"onClick",3,db);var o=ub();o.__click=[cb,i],b(t,o),z()}at(["click"]);import{noop as fb}from"@vkontakte/videoplayer-shared/es2018";var mb=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>'),vb={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),q(t,vb);let i=f(e,"isRunning",3,!0),o=f(e,"onTimerEnded",3,fb),n=5e3,a=J(void 0),s,d,l=J(0),p;qe(()=>{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()()};Ft(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{m()}}),_n(()=>{m()});var u=mb(),_=h(u);pt(_,w=>B(a,w),()=>r(a)),ye(2),g(u),b(t,u),z()}var gb=(t,e,i)=>{e(!1),i()},hb=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),_b={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,_b);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Te(),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(),_()};Ft(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Ue(),T=ce(C);{var E=P=>{var A=hb(),I=M(ce(A),2),V=h(I),H=h(V),G=h(H,!0);g(H);var O=M(H,2);Js(O,{onClick:y}),g(V);var X=M(V,2);X.__click=[gb,p,$];var oe=h(X),Y=h(oe),fe=h(Y);let ae;var Le=M(fe,2);{var Ae=ne=>{let N=v(()=>a()&&n());Ql(ne,{get isRunning(){return r(N)},onTimerEnded:w})};R(Le,ne=>{n()&&ne(Ae)})}g(Y),g(oe);var he=M(oe,2),se=h(he),Me=h(se,!0);g(se),g(he),g(X),g(I),k((ne,N)=>{me(G,ne),tt(Y,`background-image: url('${e.thumb}')`),ae=ee(fe,1,"thumb-overlay svelte-jfbaax",null,ae,N),me(Me,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,A)};R(T,P=>{e.isHide||P(E)})}b(t,C),z(),o()}at(["click"]);import{PlaybackState as ea}from"@vkontakte/videoplayer-core/es2018";import{checkNever as $b}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as bn}from"@vkontakte/videoplayer-statistics/es2018";var Np=(t,e)=>Math.min(+(t+e).toFixed(2),1),Bp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Rc=(t,e,i)=>{let o=Np(e,i);e<1&&t.actions.internal.setVolume(o)},Dc=(t,e,i)=>{let o=Bp(e,i);e>0&&t.actions.internal.setVolume(o)};var $s=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var yb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),xb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Op(t,e){var Kt,At;U(e,!0),q(t,xb);let[i,o]=Be(),n=()=>S(G,"$playbackState$",i),a=()=>S(O,"$adPlaybackState",i),s=()=>S(fe,"$disabledControls$",i),d=()=>S(X,"$positionExact$",i),l=()=>S(oe,"$duration$",i),p=()=>S(Q,"$isAudioAvailable$",i),m=()=>S(Y,"$volume$",i),$=()=>S(he,"$availablePlaybackRates$",i),u=()=>S(Ae,"$currentPlaybackRate$",i),_=()=>S(Ve,"$isInteractiveTime$",i),w=()=>S(De,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>S(ue,"$isEnded$",i),C=()=>S(ae,"$muted$",i),T=()=>S(Le,"$currentSubtitle$",i),E=()=>S(ge,"$overlayContainer$",i),P=f(e,"nextButtonActive",3,!1),A=f(e,"prevButtonActive",3,!1),I=Te(),V=Ut(),H=I.getLogger().createComponentLog("KeyboardControls component"),G=I.state.playbackState$,O=I.ads.playbackState,X=I.state.positionExact$,oe=I.state.duration$,Y=I.state.volume$,fe=I.ui.controls.disabledControls$,ae=I.state.muted$,Le=I.state.currentSubtitle$,Ae=I.state.currentPlaybackRate$,he=I.state.availablePlaybackRates$,se=I.ui.contextMenu.openedByHotKey$,Me=I.ui.contextMenu.lastActiveElem$,ne=I.ui.contextMenu.visible$,N=I.ui.contextMenu.position$,ue=I.state.isEnded$,ge=I.ui.overlayContainer$,Qe=(Kt=I.callbacks)==null?void 0:Kt.onAudioDoesNotExistHint,te=(At=I.callbacks)==null?void 0:At.onAudioDisabledHint,Q=I.state.isAudioAvailable$,W=I.state.isAudioDisabled,Ve=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:De}=ao(),et=0,Se=!0,$e=J(void 0),Ne=()=>{var _e;return(_e=r($e))==null?void 0:_e.focus()},je=_e=>(_e!==Se&&(Se=_e,et=0),et+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*et)/1e3),it=_e=>{var We,mt;let j=_e.target,be=(We=j==null?void 0:j.getAttribute("role"))==null?void 0:We.includes("menuitem"),re=j.classList.contains("btn"),Re=_e.code;if(re&&Re==="Space")return;let He=Pg.has(Re);if(be&&He)return;let ot=!Eg.has(Re);if(_e.ctrlKey&&ot||_e.altKey&&ot||_e.metaKey)return;let lt=be&&Re==="Escape";Ag.has(Re)||lt||e.hideContextMenu();let Ye=n()===ea.PLAYING||n()===ea.PAUSED,Ze=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!Ze&&!s().has("TIMELINE");if(Ye||Ze)switch(H({message:`key down, code: ${Re}`}),Re){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(_e.ctrlKey||_e.altKey){let ze=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(ze),ze&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:ze.text}),_e.preventDefault()}else{let ze=_e.shiftKey?je(!1):V.controls.seekStepKeyboard/1e3,dt=Math.max(d()-ze,0);d()>0&&(I.actions.internal.seekTime(dt,bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:ze.toString()}),_e.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(_e.ctrlKey||_e.altKey){let ze=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(ze),ze&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:ze.text}),_e.preventDefault()}else{let ze=_e.shiftKey?je(!0):V.controls.seekStepKeyboard/1e3,dt=Math.min(d()+ze,l());Math.round(d())<Math.round(l())&&(I.actions.internal.seekTime(dt,bn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:ze.toString()}),_e.preventDefault())}break}case"ArrowUp":{if($s({isAudioDisabled:W,audioDisabledHintCallback:te,isAudioAvailable:p(),audioIsNotExistHintCallback:Qe})){let ze=m(),dt=V.controls.volumeStepKeyboard,jt=ze<=1;if(Rc(I,ze,dt),jt){let Vi=Math.round(Np(ze,dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Vi}})}}_e.preventDefault();break}case"ArrowDown":{if($s({isAudioDisabled:W,audioDisabledHintCallback:te,isAudioAvailable:p(),audioIsNotExistHintCallback:Qe})){let ze=m(),dt=V.controls.volumeStepKeyboard,jt=ze>=0;if(Dc(I,ze,dt),jt){let Vi=Math.round(Bp(ze,dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Vi}})}}_e.preventDefault();break}case"Comma":{if(_e.shiftKey){I.actions.internal.decrementPlaybackRate();let ze=$().find(dt=>dt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:ze==null?void 0:ze.displayValue}),_e.preventDefault()}else{if(Ze||n()!==ea.PAUSED)break;let ze=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ze,bn.DOUBLE_TAP),_e.preventDefault())}break}case"Period":{if(_e.shiftKey){I.actions.internal.incrementPlaybackRate();let ze=$().find(dt=>dt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:ze==null?void 0:ze.displayValue}),_e.preventDefault()}else{if(Ze||n()!==ea.PAUSED)break;let ze=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(ze,bn.DOUBLE_TAP),_e.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(_()&&w()&&De.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let ze="PLAY";n()===ea.PAUSED?ze="PAUSE":y()&&(ze="REPLAY"),e.showHotKeyHelpers({type:ze})}_e.preventDefault();break;case"KeyM":{$s({isAudioDisabled:W,audioDisabledHintCallback:te,isAudioAvailable:p(),audioIsNotExistHintCallback:Qe})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),_e.preventDefault();break}case"KeyF":e.toggleFullscreen(),_e.preventDefault();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(mt=T())==null?void 0:mt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),_e.preventDefault();break;case"KeyI":I.actions.internal.togglePictureInPicture(),_e.preventDefault();break;case"Digit1":case"Numpad1":if(_e.shiftKey){let ze=Ch(E());N.set(ze),Me.set(j),se.set(!0),ne.set(!0),_e.preventDefault();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,bn.DOUBLE_TAP),_e.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,bn.DOUBLE_TAP),_e.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,bn.DOUBLE_TAP),_e.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,bn.DOUBLE_TAP),_e.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,bn.DOUBLE_TAP),_e.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,bn.DOUBLE_TAP),_e.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,bn.DOUBLE_TAP),_e.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,bn.DOUBLE_TAP),_e.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,bn.DOUBLE_TAP),_e.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,bn.DOUBLE_TAP),_e.preventDefault();break;case"Slash":{_e.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),_e.preventDefault());break}case"KeyN":_e.shiftKey&&P()&&I.actions.internal.nextVideoClick();break;case"KeyP":_e.shiftKey&&A()&&I.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":_e.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:$b(Re);break}},ht=_e=>{let j=_e.code;if(_e.ctrlKey||_e.altKey||_e.metaKey)return;let be=n()===ea.PLAYING||n()===ea.PAUSED,re=e.isAds&&(a()==="paused"||a()==="playing");if(be||re)switch(j){case"ShiftLeft":case"ShiftRight":et=0;break}},Je=F("aria_label_video_player");var ft=yb();ft.__keyup=ht,ft.__keydown=it,Oe(ft,"aria-label",Je);var Pt=h(ft);ve(Pt,()=>{var _e;return(_e=e.children)!=null?_e:ie}),g(ft),pt(ft,_e=>B($e,_e),()=>r($e)),b(t,ft);var Wt=z({focus:Ne});return o(),Wt}at(["keyup","keydown"]);var wb=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>'),Sb={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
145
 
145
146
  @keyframes svelte-1dbnjb1-dot_animation {
146
147
  0% {
@@ -153,7 +154,7 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
153
154
  opacity: 0.2;
154
155
  }
155
156
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
156
- 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,vb);let i=v(e,"style",3,"");var o=mb();I(()=>et(o,i())),b(t,o)}var gb=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 Hp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=gb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 Wa}from"@vkontakte/videoplayer-shared/es2018";var hb=t=>{t.stopPropagation()},_b=L("<button><!></button>"),bb={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 ta(t,e){q(t,Sb);let i=f(e,"style",3,"");var o=wb();k(()=>tt(o,i())),b(t,o)}var Cb=xe('<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 Hp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Cb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(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 Ga}from"@vkontakte/videoplayer-shared/es2018";var Tb=t=>{t.stopPropagation()},Ib=L("<button><!></button>"),kb={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
158
 
158
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;}
159
160
 
@@ -161,22 +162,22 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
161
162
  /* mobile */
162
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,
163
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;
164
- /* \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 It(t,e){q(e,!0),Q(t,bb);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),a=v(e,"testId",3,void 0),s=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),l=v(e,"ref",15,void 0),p=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),_=v(e,"tabIndex",3,0),u=v(e,"click",3,Wa),$=v(e,"focus",3,Wa),w=v(e,"blur",3,Wa),y=m(()=>u()===Wa?null:E=>{E.stopPropagation(),u()(E)}),S=m(()=>$()===Wa?null:E=>{E.preventDefault(),$()()}),k=m(()=>w()===Wa?null:E=>{E.preventDefault(),w()()});var A=_b();A.__pointerdown=[hb],A.__click=function(...E){var T;(T=r(y))==null||T.apply(this,E)};var P=h(A);ge(P,()=>{var E;return(E=e.children)!=null?E:ie}),g(A),dt(A,E=>l(E),()=>l()),I(()=>{var E,T,V,z,Y,F,j;te(A,1,`btn ${(E=i())!=null?E:""}`,"svelte-wr0kwr"),et(A,o()||null),A.disabled=(T=n())!=null?T:null,Oe(A,"aria-hidden",(V=s())!=null?V:null),Oe(A,"aria-label",(z=d())!=null?z:null),Oe(A,"aria-keyshortcuts",(Y=p())!=null?Y:null),Oe(A,"aria-expanded",(F=f())!=null?F:null),Oe(A,"data-testid",(j=a())!=null?j:null),Oe(A,"tabindex",_())}),Tt("focus",A,function(...E){var T;(T=r(S))==null||T.apply(this,E)}),Tt("blur",A,function(...E){var T;(T=r(k))==null||T.apply(this,E)}),b(t,A),W()}rt(["pointerdown","click"]);var $b=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),yb=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>'),xb={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 Fp(t,e){q(e,!0),Q(t,xb);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=H("hotkey_map_modal_close_btn_text");var a=yb(),s=h(a),d=h(s);{var l=u=>{var $=$b(),w=h($),y=h(w,!0);g(w);var S=M(w,2);{var k=A=>{It(A,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,E)=>{Hp(P,{})},$$slots:{default:!0}})};R(S,A=>{o()&&A(k)})}g($),I(()=>ve(y,e.title)),b(u,$)};R(d,u=>{i()&&u(l)})}var p=M(d,2),f=h(p),_=h(f);ge(_,()=>{var u;return(u=e.children)!=null?u:ie}),g(f),g(p),g(s),g(a),b(t,a),W()}var wb=new Set(["BR"]),Ch=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;wb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Sb=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>'),Cb=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>'),Tb=L('<div class="hot-key-map svelte-quklnq"></div>'),kb={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 Lt(t,e){U(e,!0),q(t,kb);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,Ga),_=f(e,"focus",3,Ga),w=f(e,"blur",3,Ga),y=v(()=>u()===Ga?null:A=>{A.stopPropagation(),u()(A)}),C=v(()=>_()===Ga?null:A=>{A.preventDefault(),_()()}),T=v(()=>w()===Ga?null:A=>{A.preventDefault(),w()()});var E=Ib();E.__pointerdown=[Tb],E.__click=function(...A){var I;(I=r(y))==null||I.apply(this,A)};var P=h(E);ve(P,()=>{var A;return(A=e.children)!=null?A:ie}),g(E),pt(E,A=>l(A),()=>l()),k(()=>{var A,I,V,H,G,O,X;ee(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-wr0kwr"),tt(E,o()||null),E.disabled=(I=n())!=null?I:null,Oe(E,"aria-hidden",(V=s())!=null?V:null),Oe(E,"aria-label",(H=d())!=null?H:null),Oe(E,"aria-keyshortcuts",(G=p())!=null?G:null),Oe(E,"aria-expanded",(O=m())!=null?O:null),Oe(E,"data-testid",(X=a())!=null?X:null),Oe(E,"tabindex",$())}),wt("focus",E,function(...A){var I;(I=r(C))==null||I.apply(this,A)}),wt("blur",E,function(...A){var I;(I=r(T))==null||I.apply(this,A)}),b(t,E),z()}at(["pointerdown","click"]);var Eb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Pb=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>'),Ab={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 Fp(t,e){U(e,!0),q(t,Ab);let i=f(e,"showHeader",3,!0),o=f(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=Pb(),s=h(a),d=h(s);{var l=u=>{var _=Eb(),w=h(_),y=h(w,!0);g(w);var C=M(w,2);{var T=E=>{Lt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,A)=>{Hp(P,{})},$$slots:{default:!0}})};R(C,E=>{o()&&E(T)})}g(_),k(()=>me(y,e.title)),b(u,_)};R(d,u=>{i()&&u(l)})}var p=M(d,2),m=h(p),$=h(m);ve($,()=>{var u;return(u=e.children)!=null?u:ie}),g(m),g(p),g(s),g(a),b(t,a),z()}var Mb=new Set(["BR"]),kh=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;Mb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Lb=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>'),Vb=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>'),Rb=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
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,
166
- .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 Up(t,e){q(e,!1),Q(t,kb);let[i,o]=He(),n=()=>C(s,"$data",i),a=Se(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};kr(),Fp(t,{get title(){return n().title},onClose:l,children:(p,f)=>{var _=Tb();$i(_,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>r($).title,y=()=>r($).items;var S=Cb(),k=h(S),A=h(k,!0);g(k);var P=M(k,2);$i(P,5,y,({description:E,value:T})=>T,(E,T)=>{let V=()=>r(T).description,z=()=>r(T).value;var Y=Sb(),F=h(Y),j=h(F);xl(j,()=>Ch(V()),!1,!1),g(F);var X=M(F,2),oe=h(X,!0);g(X),g(Y),I(()=>ve(oe,z())),b(E,Y)}),g(P),g(S),I(()=>ve(A,w())),b(u,S)}),g(_),b(p,_)},$$slots:{default:!0}}),W(),o()}import{noop as Yh}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Wh,PlaybackState as If}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Ib=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Eb={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 zp(t,e){Q(t,Eb);var i=Ib(),o=h(i);ge(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),b(t,i)}import{VideoQuality as ql}from"@vkontakte/videoplayer-shared/es2018";var Ab=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 qp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ab();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Pb=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 Wp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Pb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Mb=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 Kp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Mb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Lb=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 Ul(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Lb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Vb=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 zl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Vb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var Vc=t=>{switch(t){case ql.Q_720P:return Kp;case ql.Q_1080P:return Ul;case ql.Q_1440P:return zl;case ql.Q_2160P:return qp;case ql.Q_4320P:return Wp}};var Rb=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 Qp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Rb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 Nb=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 Gp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Nb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 Bb=L('<div aria-hidden="true"><!> <!></div>'),Db={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 Wl(t,e){q(e,!0),Q(t,Db);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>Vc(o())),a=m(()=>!!r(n)&&[Ul,zl].includes(r(n)));var s=Fe(),d=ue(s);{var l=f=>{Qp(f,{})},p=f=>{var _=Bb();let u;var $=h(_);{var w=k=>{zp(k,{children:(A,P)=>{var E=Fe(),T=ue(E);yi(T,()=>r(n),(V,z)=>{z(V,{})}),b(A,E)},$$slots:{default:!0}})};R($,k=>{r(n)&&k(w)})}var y=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");Gp(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),I(k=>u=te(_,1,"icon svelte-8t5w85",null,u,k),[()=>({triple:r(a)})]),b(f,_)};R(d,f=>{i()?f(l):f(p,!1)})}b(t,s),W()}var Ob=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Hb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ka(t,e){q(e,!0),Q(t,Hb);let[i,o]=He(),n=()=>C(e.ref$,"$ref$",i),a=()=>C(f,"$settingsMenuVisible",i),s=()=>C($,"$isMobile",i),d=()=>C(p,"$currentQuality",i),l=Se(),p=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,u=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,y=ee(void 0);qe(()=>{n()&&_t(()=>{e.ref$.set(r(y))})});let S=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));async function k(P){let E=ys(P);a()?u():_(E,ho)}let A=m(()=>a()?"opened":"");It(t,{get className(){return r(A)},testId:"btn-settings",click:k,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(P){O(y,me(P))},children:(P,E)=>{var T=Ob(),V=h(T);Wl(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(P,T)},$$slots:{default:!0}}),W(),o()}var Fb=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Fb();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 Ub=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 Kl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ub();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 jp(t,e){q(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=Se().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));It(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Fr.KeyC},children:(s,d)=>{var l=Fe(),p=ue(l);{var f=u=>{Yp(u,{})},_=u=>{Kl(u,{})};R(p,u=>{i()?u(f):u(_,!1)})}b(s,l)},$$slots:{default:!0}}),W()}var zb=L('<span class="duration svelte-sz9er7"> </span>'),qb=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),Wb={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 Ql(t,e){q(e,!0),Q(t,Wb);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>lr(e.duration)),s=m(()=>lr(e.position));var d=qb();let l;var p=h(d),f=h(p,!0);g(p);var _=M(p,2);{var u=$=>{var w=zb(),y=h(w,!0);g(w),I(()=>ve(y,r(a))),b($,w)};R(_,$=>{o()&&$(u)})}g(d),dt(d,$=>n($),()=>n()),I($=>{l=te(d,1,"time svelte-sz9er7",null,l,$),ve(f,r(s))},[()=>({mobile:i()})]),b(t,d),W()}import{noop as Rc}from"@vkontakte/videoplayer-shared/es2018";var Kb=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>'),Qb={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 Up(t,e){U(e,!1),q(t,Db);let[i,o]=Be(),n=()=>S(s,"$data",i),a=Te(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};br(),Fp(t,{get title(){return n().title},onClose:l,children:(p,m)=>{var $=Rb();Si($,5,()=>n().groups,({title:u,items:_})=>u,(u,_)=>{let w=()=>r(_).title,y=()=>r(_).items;var C=Vb(),T=h(C),E=h(T,!0);g(T);var P=M(T,2);Si(P,5,y,({description:A,value:I})=>I,(A,I)=>{let V=()=>r(I).description,H=()=>r(I).value;var G=Lb(),O=h(G),X=h(O);kl(X,()=>kh(V()),!1,!1),g(O);var oe=M(O,2),Y=h(oe,!0);g(oe),g(G),k(()=>me(Y,H())),b(A,G)}),g(P),g(C),k(()=>me(E,w())),b(u,C)}),g($),b(p,$)},$$slots:{default:!0}}),z(),o()}import{noop as Zh}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as Qh,PlaybackState as kf}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var Nb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Bb={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 zp(t,e){q(t,Bb);var i=Nb(),o=h(i);ve(o,()=>{var n;return(n=e.children)!=null?n:ie}),g(i),b(t,i)}import{VideoQuality as Yl}from"@vkontakte/videoplayer-shared/es2018";var Ob=xe('<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 qp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ob();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Hb=xe('<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 Wp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Hb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Fb=xe('<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 Kp(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Fb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var Ub=xe('<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=Ub();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var zb=xe('<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 jl(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=zb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var Nc=t=>{switch(t){case Yl.Q_720P:return Kp;case Yl.Q_1080P:return Gl;case Yl.Q_1440P:return jl;case Yl.Q_2160P:return qp;case Yl.Q_4320P:return Wp}};var qb=xe('<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 Qp(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}),ye(),g(o),k(()=>n=Ie(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 Wb=xe('<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 Gp(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}),ye(2),g(o),k(()=>n=Ie(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 Kb=L('<div aria-hidden="true"><!> <!></div>'),Qb={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),q(t,Qb);let i=f(e,"isMobile",3,!1),o=f(e,"currentQuality",3,void 0),n=v(()=>Nc(o())),a=v(()=>!!r(n)&&[Gl,jl].includes(r(n)));var s=Ue(),d=ce(s);{var l=m=>{Qp(m,{})},p=m=>{var $=Kb();let u;var _=h($);{var w=T=>{zp(T,{children:(E,P)=>{var A=Ue(),I=ce(A);Ci(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");Gp(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 Gb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),jb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ja(t,e){U(e,!0),q(t,jb);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=Te(),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);qe(()=>{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=bs(P);a()?u():$(A,ho)}let E=v(()=>a()?"opened":"");Lt(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=Gb(),V=h(I);Zl(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(I),b(P,I)},$$slots:{default:!0}}),z(),o()}var Yb=xe('<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=Yb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 Zb=xe('<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=Zb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 Yp(t,e){U(e,!0);let i=f(e,"isSubtitlesEnabled",3,!1),n=Te().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Lt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Nr.KeyC},children:(s,d)=>{var l=Ue(),p=ce(l);{var m=u=>{jp(u,{})},$=u=>{Xl(u,{})};R(p,u=>{i()?u(m):u($,!1)})}b(s,l)},$$slots:{default:!0}}),z()}var Xb=L('<span class="duration svelte-sz9er7"> </span>'),Jb=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),e$={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),q(t,e$);let i=f(e,"isMobile",3,!1),o=f(e,"showDuration",3,!0),n=f(e,"ref",15),a=v(()=>on(e.duration)),s=v(()=>on(e.position));var d=Jb();let l;var p=h(d),m=h(p,!0);g(p);var $=M(p,2);{var u=_=>{var w=Xb(),y=h(w,!0);g(w),k(()=>me(y,r(a))),b(_,w)};R($,_=>{o()&&_(u)})}g(d),pt(d,_=>n(_),()=>n()),k(_=>{l=ee(d,1,"time svelte-sz9er7",null,l,_),me(m,r(s))},[()=>({mobile:i()})]),b(t,d),z()}import{noop as Bc}from"@vkontakte/videoplayer-shared/es2018";var t$=xe('<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>'),i$={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
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),
168
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function ws(t,e){Q(t,Qb);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=m(()=>n(i(),o()));var s=Kb();I(()=>{var d;Oe(s,"data-value",r(a)),Oe(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}import{isNonNullable as kh,noop as Er}from"@vkontakte/videoplayer-shared/es2018";import{noop as Xp}from"@vkontakte/videoplayer-shared/es2018";import{noop as Yb}from"@vkontakte/videoplayer-shared/es2018";var Gb=L('<div class="overlay"><!></div>');function Zp(t,e){q(e,!0);let[i,o]=He(),n=()=>C(s,"$overlayContainer$",i),s=Se().ui.overlayContainer$,d=ee(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))};qe(()=>{p(n())}),Dt(()=>(p(n()),()=>l(n())));var f=Gb(),_=h(f);ge(_,()=>{var u;return(u=e.children)!=null?u:ie}),g(f),dt(f,u=>O(d,u),()=>r(d)),b(t,f),W(),o()}var jb=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),Zb=L("<div><!></div> <!>",1),Xb={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){q(e,!0),Q(t,Xb);let[i,o]=He(),n=()=>C(j,"$overlayContainer$",i),a=()=>C(F,"$containerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"content",3,""),l=v(e,"active",15,!1),p=v(e,"translateX",3,0),f=v(e,"translateY",3,0),_=v(e,"isFullWidthWrapper",3,!1),u=v(e,"maxTooltipWidth",3,void 0),$=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,Yb),y=5,S=ee(void 0),k=ee(void 0),A,P=ee(0),E=ee(0),T=ee(0),V=ee(0),z=qt(),Y=Se(),F=Y.ui.playerSize,j=Y.ui.overlayContainer$;qe(()=>{_t(()=>{w()(l())})});let X=Y.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n()||!r(k)||!r(S))return;O(E,y);let Ae=n().getBoundingClientRect(),$e=r(S).getBoundingClientRect(),Le=$e.width,je=r(k).clientWidth,ct=a().width,ot=(Le-je)/2,Rt=$e.left+p()-Ae.left,nt=Rt+ot,$t=$e.top+f()-Ae.top,Ft=je/2-y,Wt=nt<8,Be=nt+je>ct-8;Wt&&(nt=8,Ft=Rt+$e.width/2-2.5*y),Be&&(nt=ct-8-je,Ft=$e.left-Ae.left+$e.width/2-nt-y),O(T,me(nt)),O(V,$t),O(P,me(Ft))},pe=()=>{!n()||!r(k)||!r(S)||O(E,-y)},le=()=>{if(!n()||!r(k)||!r(S))return;O(P,y);let Ae=n().getBoundingClientRect(),$e=r(S).getBoundingClientRect(),Le=$e.height,je=r(k).clientHeight,ct=(Le-je)/2+je,ot=$e.left+p()-Ae.left-r(k).clientWidth,Rt=2,nt=ot-y;nt<8&&(nt=8);let Ft=$e.top+f()-Ae.top+ct,Wt=Rt-ct/2,Be=Rt-y;O(T,me(nt)),O(V,Ft),O(E,Wt),O(P,Be)},Ve=()=>{!n()||!r(k)||!r(S)||O(P,-y)},Pe=()=>{switch($()){case"top":oe();break;case"bottom":pe();break;case"left":le();break;default:Ve()}},J=()=>{try{if(!n()||!r(S))return;Pe(),l(!0)}catch(Ae){X({message:String(Ae)})}},Me=()=>{l(!1)},Z=()=>{r(k)&&(A||(A=window.setTimeout(J,z.controls.hideTimeoutTooltips)),l()&&J())},B=()=>{Me(),window.clearTimeout(A),A=void 0},Re=(Ae,$e,Le)=>{let je="";switch($()){case"top":je=`transform: translate(${Ae}px, ${$e}px);`;break;case"bottom":je=`transform: translate(${Ae}px, ${$e}px); top: auto; bottom: 100%;`;break;case"left":je=`transform: translate(${Ae}px, ${$e}px); left: 0; right: auto;`;break;default:je=`transform: translate(${Ae}px, ${$e}px);`}return je+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,je+=` opacity: ${Le?1:0}; visibility: ${Le?"visible":"hidden"}`,je},ne=(Ae,$e)=>{let Le="";switch($()){case"top":Le=`transform: translate(${Ae}px, ${$e}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Le=`transform: translate(${Ae}px, ${$e}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Le=`transform: translate(${Ae}px, ${$e}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Le=`transform: translate(${Ae}px, ${$e}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Le},Ie=m(()=>Re(r(T),r(V),l())),Ne=m(()=>ne(r(P),r(E)));Dt(Pe),hn(()=>window.clearTimeout(A));var fe=Zb(),D=ue(fe);let de;D.__mousemove=Z,D.__mousedown=B,D.__mouseup=Z;var Ee=h(D);ge(Ee,()=>{var Ae;return(Ae=e.children)!=null?Ae:ie}),g(D),dt(D,Ae=>O(S,Ae),()=>r(S));var Qe=M(D,2);{var st=Ae=>{Zp(Ae,{children:($e,Le)=>{var je=jb(),ct=h(je),ot=h(ct,!0);g(ct);var Rt=M(ct,2);g(je),dt(je,nt=>O(k,nt),()=>r(k)),I(()=>{et(je,r(Ie)),ve(ot,d()),et(Rt,r(Ne))}),b($e,je)},$$slots:{default:!0}})};R(Qe,Ae=>{d()&&!s()&&Ae(st)})}I(Ae=>de=te(D,1,"tooltip-wrapper svelte-hxlyne",null,de,Ae),[()=>({"full-width":_()})]),Tt("mouseenter",D,Z),Tt("mouseleave",D,B),b(t,fe),W(),o()}rt(["mousemove","mousedown","mouseup"]);var Th=t=>{t.stopPropagation()},Jb=L("<div><!></div>"),e$={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 Po(t,e){q(e,!0),Q(t,e$);let[i,o]=He(),n=()=>C(p,"$isGraphOpened$",i),a=()=>C(l,"$isMobile",i),s=Se(),d=so(),l=s.ui.isMobile,p=d.graphIsOpened$,f=s.ui.t,_=v(e,"className",3,""),u=v(e,"disabled",3,!1),$=v(e,"hasTooltip",3,!0),w=v(e,"ref",15,void 0),y=v(e,"width",15,void 0),S=v(e,"isFullWidthTooltip",3,!0),k=v(e,"tooltipContent",3,""),A=v(e,"tooltipActive",3,!1),P=v(e,"tooltipPlacement",3,"top"),E=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),T=v(e,"isAriaHidden",3,!1),V=v(e,"onTooltipVisibilityChange",3,Xp),z=v(e,"initialTranslateXPx",3,0),Y=v(e,"initialTranslateYPx",19,()=>-18),F=v(e,"mouseEnter",3,Xp),j=v(e,"mouseLeave",3,Xp),X=m(()=>u()?n()?f("tooltip_disabled_when_graph_on"):E():k());var oe=Jb();oe.__pointerdown=[Th],oe.__click=[Th];var pe=h(oe);{var le=Pe=>{ia(Pe,{get content(){return r(X)},get translateX(){return z()},get translateY(){return Y()},get isFullWidthWrapper(){return S()},get active(){return A()},get placement(){return P()},get onVisibilityChange(){return V()},children:(J,Me)=>{var Z=Fe(),B=ue(Z);ge(B,()=>{var Re;return(Re=e.children)!=null?Re:ie}),b(J,Z)},$$slots:{default:!0}})},Ve=Pe=>{var J=Fe(),Me=ue(J);ge(Me,()=>{var Z;return(Z=e.children)!=null?Z:ie}),b(Pe,J)};R(pe,Pe=>{$()&&r(X)&&!a()?Pe(le):Pe(Ve,!1)})}g(oe),dt(oe,Pe=>w(Pe),()=>w()),I(()=>{var Pe;te(oe,1,`btn-container ${(Pe=_())!=null?Pe:""}`,"svelte-p9r045"),Oe(oe,"aria-hidden",T()||null)}),Tt("mouseenter",oe,function(...Pe){var J;(J=F())==null||J.apply(this,Pe)}),Tt("mouseleave",oe,function(...Pe){var J;(J=j())==null||J.apply(this,Pe)}),Hr(oe,"clientWidth",y),b(t,oe),W(),o()}rt(["pointerdown","click"]);var t$=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 Gl(t,e){"use strict";var i=t$(),o=h(i),n=M(o);g(i),I(()=>{Oe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Oe(o,"fill-opacity",e.completed?1:.24),Oe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var i$=L("<div><!></div>"),o$={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 Jp(t,e){q(e,!0),Q(t,o$);let o=Se().ui.t,n=ee(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Po(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=i$();let p;var f=h(l);let _=m(()=>!!e.videoEpisode.completed);Gl(f,{get completed(){return r(_)}}),g(l),I(u=>{p=te(l,1,"interactive-episode-icon svelte-bklhpe",null,p,u),et(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Hr(l,"clientWidth",u=>O(n,u)),b(s,l)},$$slots:{default:!0}}),W()}var n$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),r$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),s$={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 ys(t,e){q(t,i$);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=t$();k(()=>{var d;Oe(s,"data-value",r(a)),Oe(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}import{isNonNullable as Ph,noop as Hn}from"@vkontakte/videoplayer-shared/es2018";import{noop as Xp}from"@vkontakte/videoplayer-shared/es2018";import{noop as n$}from"@vkontakte/videoplayer-shared/es2018";var o$=L('<div class="overlay"><!></div>');function Zp(t,e){U(e,!0);let[i,o]=Be(),n=()=>S(s,"$overlayContainer$",i),s=Te().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))};qe(()=>{p(n())}),Ft(()=>(p(n()),()=>l(n())));var m=o$(),$=h(m);ve($,()=>{var u;return(u=e.children)!=null?u:ie}),g(m),pt(m,u=>B(d,u),()=>r(d)),b(t,m),z(),o()}var r$=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),s$=L("<div><!></div> <!>",1),a$={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,a$);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,n$),y=5,C=J(void 0),T=J(void 0),E,P=J(0),A=J(0),I=J(0),V=J(0),H=Ut(),G=Te(),O=G.ui.playerSize,X=G.ui.overlayContainer$;qe(()=>{$t(()=>{w()(l())})});let oe=G.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n()||!r(T)||!r(C))return;B(A,y);let Se=n().getBoundingClientRect(),$e=r(C).getBoundingClientRect(),Ne=$e.width,je=r(T).clientWidth,it=a().width,ht=(Ne-je)/2,Je=$e.left+p()-Se.left,ft=Je+ht,Pt=$e.top+m()-Se.top,Wt=je/2-y,Kt=ft<8,At=ft+je>it-8;Kt&&(ft=8,Wt=Je+$e.width/2-2.5*y),At&&(ft=it-8-je,Wt=$e.left-Se.left+$e.width/2-ft-y),B(I,pe(ft)),B(V,Pt),B(P,pe(Wt))},fe=()=>{!n()||!r(T)||!r(C)||B(A,-y)},ae=()=>{if(!n()||!r(T)||!r(C))return;B(P,y);let Se=n().getBoundingClientRect(),$e=r(C).getBoundingClientRect(),Ne=$e.height,je=r(T).clientHeight,it=(Ne-je)/2+je,ht=$e.left+p()-Se.left-r(T).clientWidth,Je=2,ft=ht-y;ft<8&&(ft=8);let Wt=$e.top+m()-Se.top+it,Kt=Je-it/2,At=Je-y;B(I,pe(ft)),B(V,Wt),B(A,Kt),B(P,At)},Le=()=>{!n()||!r(T)||!r(C)||B(P,-y)},Ae=()=>{switch(_()){case"top":Y();break;case"bottom":fe();break;case"left":ae();break;default:Le()}},he=()=>{try{if(!n()||!r(C))return;Ae(),l(!0)}catch(Se){oe({message:String(Se)})}},se=()=>{l(!1)},Me=()=>{r(T)&&(E||(E=window.setTimeout(he,H.controls.hideTimeoutTooltips)),l()&&he())},ne=()=>{se(),window.clearTimeout(E),E=void 0},N=(Se,$e,Ne)=>{let je="";switch(_()){case"top":je=`transform: translate(${Se}px, ${$e}px);`;break;case"bottom":je=`transform: translate(${Se}px, ${$e}px); top: auto; bottom: 100%;`;break;case"left":je=`transform: translate(${Se}px, ${$e}px); left: 0; right: auto;`;break;default:je=`transform: translate(${Se}px, ${$e}px);`}return je+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,je+=` opacity: ${Ne?1:0}; visibility: ${Ne?"visible":"hidden"}`,je},ue=(Se,$e)=>{let Ne="";switch(_()){case"top":Ne=`transform: translate(${Se}px, ${$e}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ne=`transform: translate(${Se}px, ${$e}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ne=`transform: translate(${Se}px, ${$e}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ne=`transform: translate(${Se}px, ${$e}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ne},ge=v(()=>N(r(I),r(V),l())),Qe=v(()=>ue(r(P),r(A)));Ft(Ae),_n(()=>window.clearTimeout(E));var te=s$(),Q=ce(te);let W;Q.__mousemove=Me,Q.__mousedown=ne,Q.__mouseup=Me;var Ve=h(Q);ve(Ve,()=>{var Se;return(Se=e.children)!=null?Se:ie}),g(Q),pt(Q,Se=>B(C,Se),()=>r(C));var De=M(Q,2);{var et=Se=>{Zp(Se,{children:($e,Ne)=>{var je=r$(),it=h(je),ht=h(it,!0);g(it);var Je=M(it,2);g(je),pt(je,ft=>B(T,ft),()=>r(T)),k(()=>{tt(je,r(ge)),me(ht,d()),tt(Je,r(Qe))}),b($e,je)},$$slots:{default:!0}})};R(De,Se=>{d()&&!s()&&Se(et)})}k(Se=>W=ee(Q,1,"tooltip-wrapper svelte-hxlyne",null,W,Se),[()=>({"full-width":$()})]),wt("mouseenter",Q,Me),wt("mouseleave",Q,ne),b(t,te),z(),o()}at(["mousemove","mousedown","mouseup"]);var Eh=t=>{t.stopPropagation()},l$=L("<div><!></div>"),d$={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 Ao(t,e){U(e,!0),q(t,d$);let[i,o]=Be(),n=()=>S(p,"$isGraphOpened$",i),a=()=>S(l,"$isMobile",i),s=Te(),d=ao(),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,Xp),H=f(e,"initialTranslateXPx",3,0),G=f(e,"initialTranslateYPx",19,()=>-18),O=f(e,"mouseEnter",3,Xp),X=f(e,"mouseLeave",3,Xp),oe=v(()=>u()?n()?m("tooltip_disabled_when_graph_on"):A():T());var Y=l$();Y.__pointerdown=[Eh],Y.__click=[Eh];var fe=h(Y);{var ae=Ae=>{ia(Ae,{get content(){return r(oe)},get translateX(){return H()},get translateY(){return G()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return P()},get onVisibilityChange(){return V()},children:(he,se)=>{var Me=Ue(),ne=ce(Me);ve(ne,()=>{var N;return(N=e.children)!=null?N:ie}),b(he,Me)},$$slots:{default:!0}})},Le=Ae=>{var he=Ue(),se=ce(he);ve(se,()=>{var Me;return(Me=e.children)!=null?Me:ie}),b(Ae,he)};R(fe,Ae=>{_()&&r(oe)&&!a()?Ae(ae):Ae(Le,!1)})}g(Y),pt(Y,Ae=>w(Ae),()=>w()),k(()=>{var Ae;ee(Y,1,`btn-container ${(Ae=$())!=null?Ae:""}`,"svelte-p9r045"),Oe(Y,"aria-hidden",I()||null)}),wt("mouseenter",Y,function(...Ae){var he;(he=O())==null||he.apply(this,Ae)}),wt("mouseleave",Y,function(...Ae){var he;(he=X())==null||he.apply(this,Ae)}),Dr(Y,"clientWidth",y),b(t,Y),z(),o()}at(["pointerdown","click"]);var c$=xe('<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=c$(),o=h(i),n=M(o);g(i),k(()=>{Oe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Oe(o,"fill-opacity",e.completed?1:.24),Oe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var u$=L("<div><!></div>"),p$={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 Jp(t,e){U(e,!0),q(t,p$);let o=Te().ui.t,n=J(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ao(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=u$();let p;var m=h(l);let $=v(()=>!!e.videoEpisode.completed);ed(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 f$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),m$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),v$={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
170
  .video-episode-loaded.svelte-1u6kv8l,
170
- .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 ef(t,e){Q(t,s$);let i=v(e,"videoEpisodes",19,()=>[]);var o=r$();$i(o,21,i,n=>n.from,(n,a)=>{var s=n$();let d;var l=h(s),p=h(l),f=M(p,2);let _;g(l),g(s),I((u,$)=>{d=te(s,1,"video-episode svelte-1u6kv8l",null,d,u),et(s,`left: ${r(a).from}%; width: ${r(a).width}%`),et(p,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=te(f,1,"video-episode-filled svelte-1u6kv8l",null,_,$),et(f,`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 a$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&O(i,me(e().getBoundingClientRect())),o()||r(n)||!e())return;O(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function l$(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 d$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function c$(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var u$=L("<div></div>"),p$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),f$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),m$={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 ef(t,e){q(t,v$);let i=f(e,"videoEpisodes",19,()=>[]);var o=m$();Si(o,21,i,n=>n.from,(n,a)=>{var s=f$();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 g$(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 h$(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 _$(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 b$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}var $$=L("<div></div>"),y$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),x$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),w$={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
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,
172
173
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
173
174
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
174
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),
175
- .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){q(e,!0),Q(t,m$);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),a=v(e,"isHidden",3,!1),s=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),l=v(e,"isMobile",3,!1),p=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),_=v(e,"withWheelHandler",3,!1),u=v(e,"isInteractive",3,!1),$=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),y=v(e,"onPointerDown",3,Er),S=v(e,"onHandleMove",3,Er),k=v(e,"onPointerUp",3,Er),A=v(e,"onPointerEnter",3,Er),P=v(e,"onPointerMove",3,Er),E=v(e,"onPointerLeave",3,Er),T=v(e,"onWheelUp",3,Er),V=v(e,"onWheelDown",3,Er),z=v(e,"onWheelLeft",3,Er),Y=v(e,"onWheelRight",3,Er),F=v(e,"onDisabledClick",3,Er),j=v(e,"loadedProgress",3,0),X=v(e,"filledProgress",3,0),oe=v(e,"handleProgress",3,0),pe=v(e,"ariaLabel",3,""),le=v(e,"ariaValueMin",3,void 0),Ve=v(e,"ariaValueMax",3,void 0),Pe=v(e,"ariaValueNow",3,void 0),J=v(e,"ariaValueText",3,""),Me=qt(),Z=ee(void 0),B=ee(!1),Re=m(()=>{var Be;return(Be=Ve())!=null?Be:0}),ne=m(()=>{var Be;return kh(f())&&((Be=f()[f().length-1])==null?void 0:Be.time)<r(Re)}),Ie=m(()=>kh(f())&&f().length&&r(ne)&&r(Re)?Qe(j()*100,X()*100):[]);function Ne(Be){if(Be.preventDefault(),i()&&O(Z,me(i().getBoundingClientRect())),$())return;let re=de(Be.clientX,Be.clientY),K=Ee(Be.clientX);A()(re,K,r(Z).width)}function fe(Be){Be.preventDefault(),!$()&&E()()}function D(Be){$()||_()&&(Be.preventDefault(),Be.deltaY<0?T()():Be.deltaY>0?V()():Be.deltaX>0?Y()():z()())}function de(Be,re){return s()?Math.max(0,Math.min(1,(r(Z).height-(re-r(Z).top))/r(Z).height)):Math.min(Math.max(Be-r(Z).x,0),r(Z).width)/r(Z).width}function Ee(Be){return Math.min(Math.max(Be-r(Z).x,0),r(Z).width)}function Qe(Be,re){let K=Me.features.episodesClustering&&!u()?Me.episodeMinWidthPc:0,se=[],he=f()[0].time/r(Re)*100,Ce=0,De=0;for(let Ge=1;Ge<f().length;Ge++)Ce=f()[Ge].time/r(Re)*100,Ce-he>K&&(se.push({from:he,width:Math.max(0,Ce-he),loadedWidth:Math.max(0,Math.min(Ce,Be)-he),filledWidth:Math.max(0,Math.min(Ce,re)-he),interactive:f()[Ge-1].interactive,completed:f()[Ge-1].completed}),he=f()[Ge].time/r(Re)*100,De++);let ut={from:he,width:Math.max(0,100-he),loadedWidth:Math.max(0,Math.min(Be,100)-he),filledWidth:Math.max(0,Math.min(re,100)-he),interactive:f()[De].interactive,completed:f()[De].completed};100-he<K?(De-=1,se[De].width+=100-he,se[De].loadedWidth+=Math.max(0,Math.min(Be,100)-he),se[De].filledWidth+=Math.max(0,Math.min(re,100)-he)):se[De]=ut;let Ut=f()[0].time;if(Ut!==0){let Ge=Ut/r(Re)*100;se.unshift({from:0,width:Ge,loadedWidth:Math.min(Ge,Be),filledWidth:Math.min(Ge,re)})}return se}var st=f$(),Ae=ue(st);{var $e=Be=>{var re=u$();let K;$i(re,21,()=>r(Ie),se=>se.from,(se,he)=>{var Ce=Fe(),De=ue(Ce);{var ut=Ut=>{Jp(Ut,{get videoEpisode(){return r(he)},get disabled(){return $()}})};R(De,Ut=>{r(he).interactive&&Ut(ut)})}b(se,Ce)}),g(re),I(se=>K=te(re,1,"interactive-icons svelte-1tpemng",null,K,se),[()=>({mobile:l(),hidden:l()&&!r(B)})]),b(Be,re)};R(Ae,Be=>{u()&&Be($e)})}var Le=M(Ae,2);let je;Le.__pointerdown=[a$,i,Z,$,B,de,y],Le.__pointermove=[l$,$,de,Ee,P,Z,B,S],Le.__pointerup=[d$,$,B,de,k],Le.__click=[c$,$,F,de];var ct=h(Le);{var ot=Be=>{ef(Be,{get videoEpisodes(){return r(Ie)},get disabled(){return $()},get isMobile(){return l()}})},Rt=Be=>{var re=p$(),K=h(re),se=M(K,2);let he;g(re),I(Ce=>{et(K,`transform: translateX(${j()*100}%);`),he=te(se,1,"filled svelte-1tpemng",null,he,Ce),et(se,`transform: translateX(${X()*100}%);`)},[()=>({"active-live":d()})]),b(Be,re)};R(ct,Be=>{r(Ie).length?Be(ot):Be(Rt,!1)})}var nt=M(ct,2);let $t;var Ft=h(nt);let Wt;g(nt),g(Le),dt(Le,Be=>i(Be),()=>i()),I((Be,re,K)=>{var se,he;je=te(Le,1,`slider ${(se=o())!=null?se:""}`,"svelte-1tpemng",je,Be),Oe(Le,"aria-label",pe()),Oe(Le,"aria-valuemin",le()),Oe(Le,"aria-valuemax",Ve()),Oe(Le,"aria-valuenow",Pe()),Oe(Le,"aria-valuetext",J()),Oe(Le,"data-testid",(he=n())!=null?he:null),$t=te(nt,1,"handleWrap svelte-1tpemng",null,$t,re),et(nt,`transform: translateX(${oe()*100}%);`),Wt=te(Ft,1,"handle svelte-1tpemng",null,Wt,K)},[()=>({disabled:$(),"slider-dragging":r(B),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Tt("pointerenter",Le,Ne),Tt("pointerleave",Le,fe),Tt("wheel",Le,D),b(t,st),W()}rt(["pointerdown","pointermove","pointerup","click"]);var Di=(t,e)=>Ws[t]>=Ws[e],Ih=(t,e)=>Ws[t]<Ws[e],Ss=(t,e)=>Ws[t]<=Ws[e],Eh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var v$=L("<div><!></div>"),g$=L("<div><!> <!></div>"),h$={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 tf(t,e){var st,Ae;q(e,!0),Q(t,h$);let[i,o]=He(),n=()=>C(A,"$isAudioAvailable$",i),a=()=>C(_,"$muted$",i),s=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),l=Se(),p=qt(),f=l.state.volume$,_=l.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,S=(st=l.callbacks)==null?void 0:st.onAudioDoesNotExistHint,k=(Ae=l.callbacks)==null?void 0:Ae.onAudioDisabledHint,A=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,E=l.ui.t,T=ee(!1),V,z=m(()=>!n()||a()||s()===0),Y=m(()=>Ss(d(),"s")),F=m(()=>r(Y)?"":r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),j=m(()=>r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),X=m(()=>r(z)?0:s()),oe=!1,pe=m(()=>n()?P&&!k:!S);function le($e){$(),u($e)}function Ve(){Mc(l,s(),p.controls.volumeStepWheel)}function Pe(){Lc(l,s(),p.controls.volumeStepWheel)}function J($e){u($e)}function Me($e){u($e),w()}function Z(){oe=!0}function B(){oe=!1,Ie()}function Re(){clearTimeout(V),O(T,!0)}function ne(){Ie()}function Ie(){V=window.setTimeout(()=>{oe||O(T,!1)},p.controls.volumeBarTimeout)}function Ne($e){$e.preventDefault(),$e.deltaY<0?Ve():$e.deltaY>0&&Pe()}var fe=g$();let D;var de=h(fe);ia(de,{get content(){return r(F)},translateY:-18,children:($e,Le)=>{let je=m(()=>r(Y)?"btn-volume-vertical":"btn-volume-horizontal");It($e,{className:"btn-full-opacity",get disabled(){return r(pe)},get testId(){return r(je)},get ariaLabel(){return r(j)},get click(){return e.click},get ariaKeyShortCut(){return Fr.KeyM},children:(ct,ot)=>{ws(ct,{get volume(){return s()},get muted(){return r(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ee=M(de,2);{var Qe=$e=>{var Le=v$();let je;var ct=h(Le);let ot=m(()=>r(Y)?"volumeBar-slider-vertical":""),Rt=m(()=>r(Y)&&!r(T)),nt=m(()=>r(Y)?Z:Rc),$t=m(()=>r(Y)?B:Rc),Ft=m(()=>Math.round(r(X)*100)),Wt=m(()=>`${Math.round(r(X)*100)}%`),Be=m(()=>r(Y)?"volume-slider-vertical":"volume-slider");oa(ct,{get className(){return r(ot)},get isHidden(){return r(Rt)},get isVertical(){return r(Y)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:Pe,onPointerDown:le,onHandleMove:J,onPointerUp:Me,get onPointerEnter(){return r(nt)},get onPointerLeave(){return r($t)},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(Ft)},get ariaValueText(){return r(Wt)},get filledProgress(){return r(X)},get handleProgress(){return r(X)},get testId(){return r(Be)}}),g(Le),I(re=>je=te(Le,1,"volumeBar svelte-1auih1j",null,je,re),[()=>({"volumeBar-vertical":r(Y)})]),b($e,Le)};R(Ee,$e=>{n()&&$e(Qe)})}g(fe),I($e=>D=te(fe,1,"volumeBar-container svelte-1auih1j",null,D,$e),[()=>({vertical:r(Y)})]),Tt("mouseenter",fe,function(...$e){var Le;(Le=r(Y)?Re:Rc)==null||Le.apply(this,$e)}),Tt("mouseleave",fe,function(...$e){var Le;(Le=r(Y)?ne:Rc)==null||Le.apply(this,$e)}),Tt("wheel",fe,Ne),b(t,fe),W(),o()}import{noop as $$}from"@vkontakte/videoplayer-shared/es2018";var _$=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 of(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=_$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 b$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function nf(t,e){Q(t,b$);let i=v(e,"isFullscreen",8,!1),o=Sr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");of(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Yl(t,e){q(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,$$),n=Se(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));It(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=ys(p);a.set(f),o()()},get ariaKeyShortCut(){return Fr.KeyF},children:(p,f)=>{nf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),W()}var y$=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 rf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=y$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 x$=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 sf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=x$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),I(()=>n=we(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 w$={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 oa(t,e){U(e,!0),q(t,w$);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,Hn),C=f(e,"onHandleMove",3,Hn),T=f(e,"onPointerUp",3,Hn),E=f(e,"onPointerEnter",3,Hn),P=f(e,"onPointerMove",3,Hn),A=f(e,"onPointerLeave",3,Hn),I=f(e,"onMouseEnter",3,Hn),V=f(e,"onMouseLeave",3,Hn),H=f(e,"onWheelUp",3,Hn),G=f(e,"onWheelDown",3,Hn),O=f(e,"onWheelLeft",3,Hn),X=f(e,"onWheelRight",3,Hn),oe=f(e,"onDisabledClick",3,Hn),Y=f(e,"loadedProgress",3,0),fe=f(e,"filledProgress",3,0),ae=f(e,"handleProgress",3,0),Le=f(e,"ariaLabel",3,""),Ae=f(e,"ariaValueMin",3,void 0),he=f(e,"ariaValueMax",3,void 0),se=f(e,"ariaValueNow",3,void 0),Me=f(e,"ariaValueText",3,""),ne=Ut(),N=J(void 0),ue=J(!1),ge=v(()=>{var re;return(re=he())!=null?re:0}),Qe=v(()=>{var re;return Ph(m())&&((re=m()[m().length-1])==null?void 0:re.time)<r(ge)}),te=v(()=>Ph(m())&&m().length&&r(Qe)&&r(ge)?Ne(Y()*100,fe()*100):[]);function Q(re){if(re.preventDefault(),i()&&B(N,pe(i().getBoundingClientRect())),_())return;let Re=Se(re.clientX,re.clientY),He=$e(re.clientX);E()(Re,He,r(N).width)}function W(re){re.preventDefault(),!_()&&A()()}function Ve(){I()()}function De(){V()()}function et(re){_()||$()&&(re.preventDefault(),re.deltaY<0?H()():re.deltaY>0?G()():re.deltaX>0?X()():O()())}function Se(re,Re){return s()?Math.max(0,Math.min(1,(r(N).height-(Re-r(N).top))/r(N).height)):Math.min(Math.max(re-r(N).x,0),r(N).width)/r(N).width}function $e(re){return Math.min(Math.max(re-r(N).x,0),r(N).width)}function Ne(re,Re){let He=ne.features.episodesClustering&&!u()?ne.episodeMinWidthPc:0,ot=[],lt=m()[0].time/r(ge)*100,Ye=0,Ze=0;for(let mt=1;mt<m().length;mt++)Ye=m()[mt].time/r(ge)*100,Ye-lt>He&&(ot.push({from:lt,width:Math.max(0,Ye-lt),loadedWidth:Math.max(0,Math.min(Ye,re)-lt),filledWidth:Math.max(0,Math.min(Ye,Re)-lt),interactive:m()[mt-1].interactive,completed:m()[mt-1].completed}),lt=m()[mt].time/r(ge)*100,Ze++);let Xe={from:lt,width:Math.max(0,100-lt),loadedWidth:Math.max(0,Math.min(re,100)-lt),filledWidth:Math.max(0,Math.min(Re,100)-lt),interactive:m()[Ze].interactive,completed:m()[Ze].completed};100-lt<He?(Ze-=1,ot[Ze].width+=100-lt,ot[Ze].loadedWidth+=Math.max(0,Math.min(re,100)-lt),ot[Ze].filledWidth+=Math.max(0,Math.min(Re,100)-lt)):ot[Ze]=Xe;let We=m()[0].time;if(We!==0){let mt=We/r(ge)*100;ot.unshift({from:0,width:mt,loadedWidth:Math.min(mt,re),filledWidth:Math.min(mt,Re)})}return ot}var je=x$(),it=ce(je);{var ht=re=>{var Re=$$();let He;Si(Re,21,()=>r(te),ot=>ot.from,(ot,lt)=>{var Ye=Ue(),Ze=ce(Ye);{var Xe=We=>{Jp(We,{get videoEpisode(){return r(lt)},get disabled(){return _()}})};R(Ze,We=>{r(lt).interactive&&We(Xe)})}b(ot,Ye)}),g(Re),k(ot=>He=ee(Re,1,"interactive-icons svelte-1tpemng",null,He,ot),[()=>({mobile:l(),hidden:l()&&!r(ue)})]),b(re,Re)};R(it,re=>{u()&&re(ht)})}var Je=M(it,2);let ft;Je.__pointerdown=[g$,i,N,_,ue,Se,y],Je.__pointermove=[h$,_,Se,$e,P,N,ue,C],Je.__pointerup=[_$,_,ue,Se,T],Je.__click=[b$,_,oe,Se];var Pt=h(Je);{var Wt=re=>{ef(re,{get videoEpisodes(){return r(te)},get disabled(){return _()},get isMobile(){return l()}})},Kt=re=>{var Re=y$(),He=h(Re),ot=M(He,2);let lt;g(Re),k(Ye=>{tt(He,`transform: translateX(${Y()*100}%);`),lt=ee(ot,1,"filled svelte-1tpemng",null,lt,Ye),tt(ot,`transform: translateX(${fe()*100}%);`)},[()=>({"active-live":d()})]),b(re,Re)};R(Pt,re=>{r(te).length?re(Wt):re(Kt,!1)})}var At=M(Pt,2);let _e;var j=h(At);let be;g(At),g(Je),pt(Je,re=>i(re),()=>i()),k((re,Re,He)=>{var ot,lt;ft=ee(Je,1,`slider ${(ot=o())!=null?ot:""}`,"svelte-1tpemng",ft,re),Oe(Je,"aria-label",Le()),Oe(Je,"aria-valuemin",Ae()),Oe(Je,"aria-valuemax",he()),Oe(Je,"aria-valuenow",se()),Oe(Je,"aria-valuetext",Me()),Oe(Je,"data-testid",(lt=n())!=null?lt:null),_e=ee(At,1,"handleWrap svelte-1tpemng",null,_e,Re),tt(At,`transform: translateX(${ae()*100}%);`),be=ee(j,1,"handle svelte-1tpemng",null,be,He)},[()=>({disabled:_(),"slider-dragging":r(ue),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>({"active-live":d()})]),wt("pointerenter",Je,Q),wt("pointerleave",Je,W),wt("mouseenter",Je,Ve),wt("mouseleave",Je,De),wt("wheel",Je,et),b(t,je),z()}at(["pointerdown","pointermove","pointerup","click"]);var Wi=(t,e)=>Ks[t]>=Ks[e],Ah=(t,e)=>Ks[t]<Ks[e],xs=(t,e)=>Ks[t]<=Ks[e],Mh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var S$=L("<div><!></div>"),C$=L("<div><!> <!></div>"),T$={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 tf(t,e){var et,Se;U(e,!0),q(t,T$);let[i,o]=Be(),n=()=>S(E,"$isAudioAvailable$",i),a=()=>S($,"$muted$",i),s=()=>S(m,"$volume$",i),d=()=>S(y,"$currentGridType$",i),l=Te(),p=Ut(),m=l.state.volume$,$=l.state.muted$,{setVolume:u,startVolumeChanging:_,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,C=(et=l.callbacks)==null?void 0:et.onAudioDoesNotExistHint,T=(Se=l.callbacks)==null?void 0:Se.onAudioDisabledHint,E=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,A=l.ui.t,I=J(!1),V,H=v(()=>!n()||a()||s()===0),G=v(()=>xs(d(),"s")),O=v(()=>r(G)?"":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")),oe=v(()=>r(H)?0:s()),Y=!1,fe=v(()=>n()?P&&!T:!C);function ae($e){_(),u($e)}function Le(){Rc(l,s(),p.controls.volumeStepWheel)}function Ae(){Dc(l,s(),p.controls.volumeStepWheel)}function he($e){u($e)}function se($e){u($e),w()}function Me(){Y=!0}function ne(){Y=!1,ge()}function N(){clearTimeout(V),B(I,!0)}function ue(){ge()}function ge(){V=window.setTimeout(()=>{Y||B(I,!1)},p.controls.volumeBarTimeout)}function Qe($e){$e.preventDefault(),$e.deltaY<0?Le():$e.deltaY>0&&Ae()}var te=C$();let Q;var W=h(te);ia(W,{get content(){return r(O)},translateY:-18,children:($e,Ne)=>{let je=v(()=>r(G)?"btn-volume-vertical":"btn-volume-horizontal");Lt($e,{className:"btn-full-opacity",get disabled(){return r(fe)},get testId(){return r(je)},get ariaLabel(){return r(X)},get click(){return e.click},get ariaKeyShortCut(){return Nr.KeyM},children:(it,ht)=>{ys(it,{get volume(){return s()},get muted(){return r(H)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ve=M(W,2);{var De=$e=>{var Ne=S$();let je;var it=h(Ne);let ht=v(()=>r(G)?"volumeBar-slider-vertical":""),Je=v(()=>r(G)&&!r(I)),ft=v(()=>r(G)?Me:Bc),Pt=v(()=>r(G)?ne:Bc),Wt=v(()=>Math.round(r(oe)*100)),Kt=v(()=>`${Math.round(r(oe)*100)}%`),At=v(()=>r(G)?"volume-slider-vertical":"volume-slider");oa(it,{get className(){return r(ht)},get isHidden(){return r(Je)},get isVertical(){return r(G)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:Ae,onPointerDown:ae,onHandleMove:he,onPointerUp:se,get onPointerEnter(){return r(ft)},get onPointerLeave(){return r(Pt)},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(Kt)},get filledProgress(){return r(oe)},get handleProgress(){return r(oe)},get testId(){return r(At)}}),g(Ne),k(_e=>je=ee(Ne,1,"volumeBar svelte-1auih1j",null,je,_e),[()=>({"volumeBar-vertical":r(G)})]),b($e,Ne)};R(Ve,$e=>{n()&&$e(De)})}g(te),k($e=>Q=ee(te,1,"volumeBar-container svelte-1auih1j",null,Q,$e),[()=>({vertical:r(G)})]),wt("mouseenter",te,function(...$e){var Ne;(Ne=r(G)?N:Bc)==null||Ne.apply(this,$e)}),wt("mouseleave",te,function(...$e){var Ne;(Ne=r(G)?ue:Bc)==null||Ne.apply(this,$e)}),wt("wheel",te,Qe),b(t,te),z(),o()}import{noop as E$}from"@vkontakte/videoplayer-shared/es2018";var I$=xe('<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 of(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}),ye(),g(o),k(()=>n=Ie(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 k$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
177
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function nf(t,e){q(t,k$);let i=f(e,"isFullscreen",8,!1),o=gr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");of(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,E$),n=Te(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Lt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let m=bs(p);a.set(m),o()()},get ariaKeyShortCut(){return Nr.KeyF},children:(p,m)=>{nf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var P$=xe('<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 rf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=P$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 A$=xe('<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 sf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=A$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(4),g(o),k(()=>n=Ie(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 M$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
177
178
  svg[data-testid="vk-video-logo-icon--short"] ._en,
178
179
  svg[data-testid="vk-video-logo-icon"] ._en,
179
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function af(t,e){Q(t,w$);let i=v(e,"short",3,!1),o=v(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=m(()=>!o()&&!i()?91:i()?a:95),d=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=m(()=>`0 0 ${r(s)+1} 24`);sf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function jl(t,e){q(e,!0);let[i,o]=He(),n=()=>C($,"$isMobile",i),a=()=>C(u,"$currentGridType$",i),s=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),p=v(e,"targetUrl",3,""),f=qt(),_=Se(),u=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,y=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),k=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),A=m(()=>(n()||Ss(a(),"l"))&&r(k)),P=()=>{var V,z;e.click(),(V=_.callbacks)!=null&&V.onLogoClicked?(z=_.callbacks)==null||z.onLogoClicked():p()&&window.open(p(),"_blank")},E=m(()=>!l()),T=m(()=>r(k)?"btn-vk-video-logo":"btn-vk-logo");It(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:P,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(V){d(V)},children:(V,z)=>{var Y=Fe(),F=ue(Y);{var j=oe=>{af(oe,{get short(){return r(A)},get isCyrillic(){return s()}})},X=oe=>{rf(oe,{})};R(F,oe=>{r(k)?oe(j):oe(X,!1)})}b(V,Y)},$$slots:{default:!0}}),W(),o()}import{ChromecastState as I$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Ah}from"@vkontakte/videoplayer-core/es2018";var C$=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>'),T$=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>'),k$={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 af(t,e){q(t,M$);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`);sf(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]=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=Ut(),$=Te(),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()||xs(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");Lt(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 G=Ue(),O=ce(G);{var X=Y=>{af(Y,{get short(){return r(E)},get isCyrillic(){return s()}})},oe=Y=>{rf(Y,{})};R(O,Y=>{r(T)?Y(X):Y(oe,!1)})}b(V,G)},$$slots:{default:!0}}),z(),o()}import{ChromecastState as N$}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as Lh}from"@vkontakte/videoplayer-core/es2018";var V$=xe('<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>'),R$=xe('<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
181
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
181
182
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
182
183
  animation-name: svelte-8z1bf5-wave3;}
@@ -224,9 +225,9 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
224
225
  100% {
225
226
  opacity: 1;
226
227
  }
227
- }`};function lf(t,e){q(e,!0),Q(t,k$);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===Ah.CONNECTED),n=m(()=>e.iconState===Ah.CONNECTING);var a=Fe(),s=ue(a);{var d=p=>{var f=C$(),_=h(f),u=h(_),$=h(u);_e(),g(u);var w=M(u);_e(),g(_);var y=M(_),S=h(y),k=h(S);g(S),_e(),g(y),g(f),I(()=>{Oe($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(k,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},l=p=>{var f=T$();let _;var u=h(f),$=M(h(u),5);let w;g(u),g(f),I((y,S)=>{_=te(f,0,"svelte-8z1bf5",null,_,y),w=te($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(p,f)};R(s,p=>{i()?p(d):p(l,!1)})}b(t,a),W()}import{noop as E$}from"@vkontakte/videoplayer-shared/es2018";function Zl(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,E$),s=Se().ui.t,d=m(()=>e.state===I$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));It(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)=>{lf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),W()}var A$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),P$={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 df(t,e){Q(t,P$);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),a=v(e,"translateYPx",3,0),s=ee(void 0),d=ee(void 0);function l(w){if(!r(d))return 0;let{width:y}=r(d).getBoundingClientRect(),S=y/2;return w<S?S:w>e.containerWidth-S?e.containerWidth-S:w}let p=m(()=>l(n()));var f=A$(),_=h(f);let u;var $=h(_);ge($,()=>{var w;return(w=e.children)!=null?w:ie}),g(_),dt(_,w=>O(d,w),()=>r(d)),g(f),dt(f,w=>O(s,w),()=>r(s)),I(w=>{et(f,`transform: translate(${r(p)}px, ${a()}px);`),u=te(_,1,"tooltip svelte-5ygsa2",null,u,w),et(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,f)}var Nc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Ph=t=>!!(Math.round(Math.abs(t)/90)%2),Mh=t=>Math.abs(t)/90%4===1;var M$=L('<div class="preview svelte-1wqg760"></div>'),L$=L('<div class="time svelte-1wqg760"> </div>'),V$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),R$={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 cf(t,e){q(e,!0),Q(t,R$);let[i,o]=He(),n=()=>C(w,"$rotateAlpha",i),a=()=>C(y,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),l=v(e,"isMobile",3,!1),p=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),_=v(e,"duration",3,0),u=v(e,"isInteractive",3,!1),$=Se(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=ee(0),k=ee(0),A=ee(""),P=ee(0),E=ee(0),T=ee(0),V=ee(0),z=m(()=>Nc(f(),_(),p())),Y=m(()=>Ph(n())),F=m(()=>Mh(n())),j=m(pe),X=m(()=>(r(F)?1:-1)*(r(S)/2-r(k)/2)),oe=m(()=>r(X)*-1);qe(()=>{(D=>(O(S,me(D.width)),O(k,me(D.height))))(Ve())}),qe(()=>{(D=>(O(A,me(D.imgSrc)),O(P,me(D.imgWidth)),O(E,me(D.imgHeight)),O(T,me(D.imgOffsetX)),O(V,me(D.imgOffsetY))))(Pe(f()))});function pe(){var Qe;let D=l()?s.MOBILE:s.DESKTOP,{isVertical:de}=le(),Ee=30;return(Qe=r(z))!=null&&Qe.text&&(Ee+=16),(de||r(Y))&&(Ee+=18,Ee+=50),Math.min(Math.max(a().height-Ee,0),D)}function le(){let D=e.previewThumbsData.frameWidth,de=e.previewThumbsData.frameHeight,Ee=de>D;return{width:D,height:de,isHorizontal:!Ee,isVertical:Ee}}function Ve(){let{height:D,isHorizontal:de,isVertical:Ee,width:Qe}=le();return de&&(D=D/Qe*r(j),Qe=r(j)),Ee&&(Qe=Qe/D*r(j),D=r(j)),{width:Qe,height:D}}function Pe(D){let de;e.previewThumbsData.isUV?de=Math.floor(_()*D/e.previewThumbsData.frequency):de=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*D)));let Ee=Math.floor(de/e.previewThumbsData.countPerImage),Qe=Math.floor(de%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),st=de%e.previewThumbsData.countPerRow,Ae=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ae=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ae++);let $e=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ee===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&($e=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Le=r(S)*$e,je=r(k)*Ae,ct=-st*r(S),ot=-Qe*r(k);return{imgSrc:e.previewThumbsData.links[Ee],imgWidth:Le,imgHeight:je,imgOffsetX:ct,imgOffsetY:ot}}var J=V$();let Me;var Z=h(J);{var B=D=>{var de=M$();I(()=>et(de,`width: ${r(S)}px; height: ${r(k)}px; background-image: url(${r(A)}); background-size: ${r(P)}px ${r(E)}px; background-position: ${r(T)}px ${r(V)}px;
228
- transform: rotate(${n()}deg) ${r(Y)?`translate(${r(X)}px, ${r(oe)}px)`:""};
229
- `)),b(D,de)};R(Z,D=>{r(A)&&D(B)})}var Re=M(Z,2),ne=h(Re);{var Ie=D=>{var de=Fe(),Ee=ue(de);{var Qe=Ae=>{var $e=rr();I(Le=>ve($e,Le),[()=>H("tooltip_episode_unfinished")]),b(Ae,$e)},st=Ae=>{var $e=rr();I(()=>ve($e,r(z).text||"")),b(Ae,$e)};R(Ee,Ae=>{u()&&r(z).completed===!1?Ae(Qe):Ae(st,!1)})}b(D,de)};R(ne,D=>{r(z)&&D(Ie)})}g(Re);var Ne=M(Re,2);{var fe=D=>{var de=L$(),Ee=h(de,!0);g(de),I(()=>ve(Ee,d())),b(D,de)};R(Ne,D=>{u()||D(fe)})}g(J),I(D=>{Me=te(J,1,"timeline-preview svelte-1wqg760",null,Me,D),et(J,`width: ${r(Y)?r(k):r(S)}px;`)},[()=>({mobile:l()})]),b(t,J),W(),o()}var N$=L('<span class="time svelte-1jr6obn"> </span>'),B$=L("<!> <!>",1),D$={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 uf(t,e){var he;q(e,!0),Q(t,D$);let[i,o]=He(),n=()=>C(j,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(P,"$position$",i),d=()=>C(pe,"$isInteractiveExpectation$",i),l=()=>C(oe,"$isInteractiveTime$",i),p=()=>C(T,"$isLive$",i),f=()=>C(z,"$isMobile",i),_=()=>C(V,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(Pe,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"ref",15,void 0),S=Se(),k=qt(),A=S.state.bufferedProgress$,P=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,V=S.state.isActiveLive$,z=S.ui.isMobile,Y=k.features.episodes?S.actions.internal.getVideoEpisodes():void 0,F=S.actions.internal.getPreviewThumbsData(),j=S.state.interactiveEpisodes$,X=S.state.isInteractive,oe=S.state.isInteractiveTime$,pe=S.state.isInteractiveExpectation$,le=S.actions.internal.correctSeekTimeToInteractive,Ve=(he=S.callbacks)==null?void 0:he.onDisabledTimelineClick,Pe=S.ui.controls.disabledControls$,J=S.ui.t,Me=k.features.interactiveResponsiveUi,Z=m(()=>X?n():Y),B=m(()=>lr(a())),Re=m(()=>lr(s())),ne=m(()=>s()/a()),Ie=m(()=>d()||l()),Ne=ee(!1),fe=ee(""),D=ee(0),de=ee(0),Ee=ee(0),Qe=m(()=>({containerWidth:r(de),translateXPx:r(D),translateYPx:X&&F?-36:-16,active:r(Ne)&&w()&&!r(Ie)&&!Me,pointer:!k.features.timelinePreview||!F||p()})),st=J("aria_timeline"),Ae=m(()=>J("aria_timeline_value",{position:r(Re),duration:r(B)}));function $e(Ce){return!le||!X?Ce:le(Ce*a())/a()}function Le(Ce){S.actions.internal.startScrubbing($e(Ce))}function je(Ce){l()||S.actions.internal.progressScrubbing($e(Ce))}function ct(Ce){S.actions.internal.completeScrubbing($e(Ce)),O(Ne,!1)}function ot(Ce,De,ut){$t(Ce,De,ut),O(Ne,!0)}function Rt(Ce,De,ut){$t(Ce,De,ut),O(Ne,!0)}function nt(){O(Ne,!1)}function $t(Ce,De,ut){O(Ee,me($e(Ce))),O(D,me(De)),ut&&O(de,me(ut)),O(fe,me(Ft(Ce)))}function Ft(Ce){let De=lr((p()?1-Ce:Ce)*a());return p()?`-${De}`:De}var Wt=B$(),Be=ue(Wt);df(Be,is(()=>r(Qe),{children:(Ce,De)=>{var ut=Fe(),Ut=ue(ut);{var Ge=Xe=>{cf(Xe,{get time(){return r(fe)},get isMobile(){return f()},get videoEpisodes(){return r(Z)},previewThumbsData:F,get progress(){return r(Ee)},get duration(){return a()},isInteractive:X})},at=Xe=>{var Ct=N$(),Jt=h(Ct,!0);g(Ct),I(()=>ve(Jt,r(fe))),b(Xe,Ct)};R(Ut,Xe=>{k.features.timelinePreview&&F&&!p()?Xe(Ge):Xe(at,!1)})}b(Ce,ut)},$$slots:{default:!0}}));var re=M(Be,2);let K=m(()=>Math.round(r(ne)*100)),se=m(()=>$().has("TIMELINE"));oa(re,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:st,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(K)},get ariaValueText(){return r(Ae)},get loadedProgress(){return u()},get filledProgress(){return r(ne)},get handleProgress(){return r(ne)},get videoEpisodes(){return r(Z)},onPointerDown:Le,onHandleMove:je,onPointerMove:Rt,onPointerUp:ct,onPointerEnter:ot,onPointerLeave:nt,onDisabledClick:Ve,isInteractive:X,get disabled(){return r(se)},get hideHandel(){return l()},get ref(){return y()},set ref(Ce){y(Ce)}}),b(t,Wt),W(),o()}var O$={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 Xl(t,e){q(e,!0),Q(t,O$);let[i,o]=He(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=Se(),l=d.ui.isMobile,p=d.ui.t,f=m(()=>lr(s())),_=m(()=>lr(a())),u=m(()=>a()/s()),$=m(()=>p("aria_timeline_value",{position:r(_),duration:r(f)})),w=m(()=>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()}}),W(),o()}var H$=L("<div><!></div>"),F$=L("<div></div>"),U$={hash:"svelte-1gqonyf",code:".timeline.svelte-1gqonyf {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-1gqonyf {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1gqonyf {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1gqonyf {height:8px;}"};function Jl(t,e){q(e,!0),Q(t,U$);let[i,o]=He(),n=()=>C(u,"$isLive$",i),a=()=>C(y,"$isMobile",i),s=()=>C(w,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),p=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=Se(),u=_.state.isLive$,$=_.ads.duration,w=_.ads.position,y=_.ui.isMobile,S=m(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var k=Fe(),A=ue(k);{var P=T=>{var V=H$();let z;var Y=h(V);{var F=X=>{Xl(X,{get position(){return s()},get duration(){return d()}})},j=X=>{uf(X,{get showTimeline(){return r(S)},get ref(){return f()},set ref(oe){f(oe)}})};R(Y,X=>{l()?X(F):X(j,!1)})}g(V),I(X=>z=te(V,1,"timeline svelte-1gqonyf",null,z,X),[()=>({mobile:a()})]),b(T,V)},E=T=>{var V=F$();let z;I(Y=>z=te(V,1,"timeline-stub svelte-1gqonyf",null,z,Y),[()=>({mobile:a()})]),b(T,V)};R(A,T=>{r(S)?T(P):T(E,!1)})}b(t,k),W(),o()}import{noop as W$}from"@vkontakte/videoplayer-shared/es2018";var z$=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 pf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=z$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),I(()=>n=we(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 q$=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 ff(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=q$();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 K$=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Q$=L('<span class="text svelte-1yhs2ga"> </span>'),G$=L('<span class="text count svelte-1yhs2ga"> </span>'),Y$=L("<!> <!>",1),j$={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 ed(t,e){var le,Ve,Pe;q(e,!0),Q(t,j$);let[i,o]=He(),n=()=>C(w,"$currentGridType$",i),a=()=>C(y,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(k,"$isMobile",i),l=v(e,"position",3,0),p=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=Se(),u=(Ve=(le=_.callbacks)==null?void 0:le.onEpisodeChanged)!=null?Ve:W$,$=!!((Pe=_.callbacks)!=null&&Pe.onEpisodeClicked),w=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,k=_.ui.isMobile,A=_.ui.t,P=ee(void 0),E=J=>{var Z,B,Re;if(!!((Z=_.callbacks)!=null&&Z.onEpisodeClicked)){let ne=ys(J);y.set(ne),S.set(!0),(Re=(B=_.callbacks)==null?void 0:B.onEpisodeClicked)==null||Re.call(B,ne)}},T=ee(null),V=m(()=>l()/p());qe(()=>{var Me;let J=Nc(r(V),p(),f());J?((Me=r(T))==null?void 0:Me.time)!==J.time&&(u(J),O(T,me(J))):O(T,null)});let z=m(()=>{var J;return((J=r(T))==null?void 0:J.text)||""}),Y=m(()=>Di(n(),"xl")?"FULL":Di(n(),"m")&&Ih(n(),"xl")?"COUNT":"SHORT"),F=m(()=>`${A("tooltip_episodes")}: ${r(z)}`),j=async(J,Me,Z)=>{await ho(),(J==null?void 0:J.getAttribute("aria-expanded"))==="false"&&Me&&!Z&&_t(()=>{y.set(!1),J.focus()})};qe(()=>{j(r(P),a(),s())});var X=Fe(),oe=ue(X);{var pe=J=>{let Me=m(()=>d()?"px-0":"");It(J,{get className(){var Z;return`w-max btn-full-opacity btn-jc-l ${(Z=r(Me))!=null?Z:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(F)},get ref(){return r(P)},set ref(Z){O(P,me(Z))},children:(Z,B)=>{var Re=Fe(),ne=ue(Re);{var Ie=fe=>{var D=K$(),de=ue(D),Ee=h(de,!0);g(de);var Qe=M(de,2),st=h(Qe);ff(st,{}),g(Qe),I(()=>ve(Ee,r(z))),b(fe,D)},Ne=fe=>{var D=Y$(),de=ue(D);pf(de,{});var Ee=M(de,2);{var Qe=Ae=>{var $e=Q$(),Le=h($e,!0);g($e),I(()=>ve(Le,r(z))),b(Ae,$e)},st=(Ae,$e)=>{{var Le=je=>{var ct=G$(),ot=h(ct,!0);g(ct),I(()=>ve(ot,f().length)),b(je,ct)};R(Ae,je=>{r(Y)==="COUNT"&&je(Le)},$e)}};R(Ee,Ae=>{r(Y)==="FULL"?Ae(Qe):Ae(st,!1)})}b(fe,D)};R(ne,fe=>{d()?fe(Ie):fe(Ne,!1)})}b(Z,Re)},$$slots:{default:!0}})};R(oe,J=>{r(T)&&J(pe)})}b(t,X),W(),o()}import{debounceFn as j2}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as n2,PlaybackState as td,Player as r2,PredefinedQualityLimits as qr,VideoFormat as id,clientChecker as s2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Un,getHighestQuality as a2,InterfaceLanguage as l2,isInvariantQuality as d2,isNonNullable as c2,loadVKLangPack as u2,Logger as p2,map as Hh,merge as f2,Observable as m2,Subject as zc,Subscription as bf,Tracer as v2,ValueSubject as g2,VideoQuality as h2,devNull as _2,now as b2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as ns}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as Z$,devNull as Qt,now as Gt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as X$,Subject as Oo,clearVideoElement as J$}from"@vkontakte/videoplayer-shared/es2018";var Lh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var e2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Bc=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Oo,loadStarted$:new Oo,loadEnded$:new Oo,loadError$:new Oo,ready$:new Oo,slotRequested$:new Oo,started$:new Oo,timeRemained$:new Oo,paused$:new Oo,resumed$:new Oo,ended$:new Oo,empty$:new Oo,skipped$:new Oo,clicked$:new Oo,closed$:new Oo,error$:new Oo};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())};X$(e2,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"}),ye(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 P;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:f,previewParam:_}=e,u,$=this.playerState&&ye(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=Z$(),S=(P=w?y:window.location.href)!=null?P:window.location.href,k={...p,dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_,...u?{request_id:u}:{},duration:f,puid10:Lh(i,o),puid11:n?0:1};_||delete k.preview;let A={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:k,browser:{mobile:!1}};try{let E=new window.AdmanHTML;E.setDebug(!1),E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.init(A),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(A)}`})}catch(E){Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],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=ye(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,f,_,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),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&J$(this.videoElement),this.isDestroyed=!0}};var Vh=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 mf=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 Dc,{startTime:f,endTime:_}=p.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let p=new vf,{texts:f}=p.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Dc=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}},vf=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((f,_)=>{let u=s.indexOf(_,d);return f===-1||f>u?u:f},-1);if(p===-1){l.push(s.substring(d));break}l.push(s.substring(d,p)),d=p+1}return l}}),a=new Dc;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}},Rh=mf;import{isNonNullable as gf}from"@vkontakte/videoplayer-shared/es2018";var na,xi,hf=0,_f=!1,Nh="",Bh=(t,e=0,i=0)=>t<e&&t<i,Oc=(t,e=0,i=0)=>t>=e&&t<=i,t2=(t,e=0,i=0)=>t>e&&t>i,Dh=(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:f})=>Oc(t,p,f));let a=t>=hf,s=t<hf;if(hf=t,s&&(_f=!1),gf(na)&&Oc(t,na.startTime,na.endTime)&&Nh===e.value)return na;if(!gf(xi)&&(n!=null&&n.length)&&!_f){xi=n.find(({startTime:p,endTime:f})=>Oc(t,p,f)||a&&Bh(t,p,f)),na=void 0,!gf(xi)&&n[n.length-1].endTime<t&&(_f=!0);return}else{if(Oc(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))return na=xi,xi=void 0,Nh=e.value,na;(a&&t2(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime)||s&&Bh(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))&&(xi=void 0)}};var Oh={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"},i2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Hc=t=>{var e,i;return(i=(e=Oh[t])!=null?e:Oh[i2[t]])!=null?i:void 0};import{Subscription as o2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Fc=class{constructor(e,i=new o2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Uc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Uc||{});var zr=t=>t!=null?t:0,Qa=(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(zr(i==null?void 0:i.top)-zr(o==null?void 0:o.top)),left:Math.round(zr(i==null?void 0:i.left)-zr(o==null?void 0:o.left)),bottom:Math.round(zr(i==null?void 0:i.bottom)-zr(o==null?void 0:o.top)),right:Math.round(zr(i==null?void 0:i.right)-zr(o==null?void 0:o.left))}},Ga=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:zr(e==null?void 0:e.width),height:zr(e==null?void 0:e.height)}};var Fh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:p,videoEpisodes:f,previewThumbsData:_,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:k,isInteractiveTime$:A,replayInteractive:P,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,additionalButtons:z,additionalSettingsMenuItems:Y,additionalContextMenuItems:F,playPrevVideo:j,playNextVideo:X,looped:oe=!1,statistics:pe,saveRate:le,internalsExposure:Ve})=>{var Bo,Vm,Rm;let Pe={...$,configName:[...(Bo=$.configName)!=null?Bo:[],"ui"],isAudioDisabled:s,live:{...(Vm=$.live)!=null?Vm:{},isLiveCatchUpMode:!!n}},J=u,Me=v2.createRootTracer(J.features.saveTraceInfoToFile),Z=Me.createComponentTracer("Store"),B=w||new r2(Pe,Me);Ve==null||Ve.expose({corePlayer:B});let Re=new p2,ne=new Bc(Re,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),Ie=Qs.getInstance(),Ne=p==null?void 0:p.pictureInPictureApi,fe=p==null?void 0:p.annotationsApi,D=Re.createComponentLog("Store"),de,Ee,Qe={},st=new mc,Ae=pe?Yt(pe.oneStat.vsid$):ar(void 0),$e=ae(_s()),Le=ae(!1),je=(Rm=Ne==null?void 0:Ne.info.isActive$)!=null?Rm:new g2(!1),ct=ae(0),ot=ae([]),Rt=f2(B.events.fatalError$,B.events.managedError$).subscribe(c=>ot.update(x=>[...x,c])),nt=ar(!1,c=>{let x=B.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),$t=async c=>{var ce;let x=Object.values(l2).includes(c);if(J.downloadVKLanguages&&(x&&J.updateBuiltinLanguages||!Sp(c))){let We;try{We=await u2(c,Sg,Cg)}catch(wt){(ce=pe==null?void 0:pe.oneStat)==null||ce.logError({errorType:"VKLangPack",fatal:!1}),Ie==null||Ie.report(wt,{errorType:"VKLangPack",fatal:!1})}We&&(wp({language:c,pack:We,fallback:J.defaultLanguage}),Ft.set(c))}Sp(c)&&Ft.set(c)},Ft=ae(t),Wt=ae(e);$t(t);let Be=(c,x)=>{let N=ye(Ft);return Cp(N,c,x,J.defaultLanguage)},re=ae("thumb"),K=(()=>{let c=vi([nt,re],([x,N])=>x?"crashed":N);return{...c,is:x=>ye(c)===x}})(),se=(()=>{let c=ae(new Set(y));return{...c,add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let ce=[...N];return new Set(Array.isArray(x)?ce.filter(We=>!x.includes(We)):ce.filter(We=>We!==x))})},includes:x=>{let N=ye(c);return Array.isArray(x)?x.every(ce=>N.has(ce)):N.has(x)}}})();Z.log("create store"),D({message:"create store"});let he=c=>{let x=c.container;x.append(B.experimental.element$.getValue()),Xe=new MutationObserver(N=>{let{removedNodes:ce}=N[0];ce.length&&x.append(B.experimental.element$.getValue())}),Xe.observe(x,{childList:!0})},Ce=c=>{D({message:`init video, config: ${JSON.stringify(c)}`}),S?he(c):(_2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[b2()]}),B.initVideo(c)),Z.log("init video",{isInteractive:S}),c.subtitles&&B.setExternalTextTracks(c.subtitles),de=c},De=new zc,ut=c=>De.next(c),Ut=new zc,Ge=new zc,at=new zc,Xe=null,Ct={actionRewind$:Ut,actionSeek$:Ge,inPiP$:je,inFullscreen$:new m2(c=>$e.subscribe(x=>c.next(x))),actionSetSubtitle$:at,nextMovie$:De};if(pe){let{oneStat:c,statSubscription:x}=pe;S||x.add(c.attachTo(B)),x.add(c.attachToUi(Ct)),x.add(c.attachToAds(ne.events)),c.authorize(a).catch(N=>{D({message:`onestat auth error ${String(N)}`})})}if(Ie){let c=new bf,x=(N,ce)=>c.add(N.subscribe(ce));if(x(B.events.managedError$,N=>{Ie.logIError(N)}),x(B.events.fatalError$,N=>{Ie.logIError(N,!0)}),pe){let{oneStat:N}=pe;x(N.experimental.error$,ce=>{Ie.logIError(ce)})}Ie.sentrySubscription.add(c)}let Jt=()=>{s2.device.isIOS&&Ee&&lh(Ee).catch(c=>{D({message:`exitIosSafariFullscreen failed: ${c}`})})},Ke=new bf().add(B.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),js(Ne)&&(Ne.updateVideoElement(),Ne.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(B.events.ended$.subscribe(()=>{var c;Jt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(B.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(B.events.started$.subscribe(async()=>{var x,N;js(Ne)&&await(Ne==null?void 0:Ne.revealPictureInPicture());let c=B.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=Qe.onStarted)==null||N.call(Qe,c)})).add(B.events.willSeek$.subscribe(({from:c,to:x})=>{var N;(N=l==null?void 0:l.onSeek)==null||N.call(l,c,x)})).add(B.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(B.info.position$.subscribe(c=>{var N;let x=B.info.duration$.getValue();isFinite(x)&&x>0&&((N=l==null?void 0:l.onTimeupdate)==null||N.call(l,x,c),ne.setPosition(c,x))})).add(B.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(B.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(B.events.loadedMetadata$.subscribe(()=>{vt.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{vt.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{S&&(c?(A!=null&&A.getValue()&&se.add(El),se.add("PLAY_BUTTON")):se.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(B.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(B.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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(ne.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)})),lt=new bf,ei=()=>{var wt,Mt,Ht;let{debugLog:c}=J,x,N="#9df7b7",ce="#efd169";if(c&&c!==!0){let{colors:Lt}=c;x=c.tag,N=(wt=Lt==null?void 0:Lt[0])!=null?wt:N,ce=(Ht=(Mt=Lt==null?void 0:Lt[1])!=null?Mt:Lt==null?void 0:Lt[0])!=null?Ht:ce}let We=x?`: ${x}`:"";lt.add(B.events.log$.subscribe(Lt=>{console.debug(`%c sdk${We} `,`background:${N};`,`sdk component: ${Lt.component}`,Lt.message)})).add(Re.log$.subscribe(Lt=>{console.debug(`%c ui${We} `,`background:${ce};`,`ui component: ${Lt.component}.`,Lt.message)}))},Mi=()=>{lt.unsubscribe()},Mo=(c,x)=>{Z.log("start camera manual rotation",{mx:c,my:x}),B.startCameraManualRotation(c,x)},Oi=(c=!1)=>{Z.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},Lo=(c,x,N)=>{Z.log("move camera focus px",{xpx:c,ypx:x,dt:N}),B.moveCameraFocusPX(c,x,N)},Vo=()=>{B.holdCamera()},Et=()=>{B.releaseCamera()},gt=ar(B.info.position$.getValue(),c=>{let x,N,ce=()=>{let We=B.info.playbackState$.getValue(),wt=B.info.isLive$.getValue(),Mt=B.info.duration$.getValue(),Ht=B.info.position$.getValue();if(We&&[td.PLAYING,td.PAUSED].includes(We)){let Lt=wt?Ht-Mt:B.getExactTime();Lt!==N&&c(Lt),N=Lt}x=requestAnimationFrame(ce)};return ce(),()=>cancelAnimationFrame(x)}),U=Yt(B.info.playbackState$),Kt=Yt(B.info.currentBuffer$),Hi=Yt(B.info.isEnded$),Li=Yt(B.info.isLive$),ni=J.features.playbackRate?Yt(B.info.canChangePlaybackSpeed$):ar(!1),ci=Yt(B.info.liveBufferTime$),ao=Yt(B.info.volume$),lo=Yt(B.info.muted$),Gi=vc(B.info.predefinedQualityLimitType$.pipe(Hh(c=>c===qr.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===qr.TRAFFIC_SAVING),Fo=vc(B.info.predefinedQualityLimitType$.pipe(Hh(c=>c===qr.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===qr.HIGH_QUALITY),Nt=Yt(B.info.autoQualityLimitingAvailable$),ui=Yt(B.info.availableQualities$),xt=Yt(B.info.availableQualitiesFps$),zt=Yt(B.info.chromecastState$),co=Yt(B.info.chromecastDeviceName$),jt=Yt(B.info.currentFormat$),qn=Yt(B.info.throughputEstimation$),yo=Yt(B.info.videoBitrate$),xo=Yt(B.info.intrinsicVideoSize$),ri=Yt(B.info.duration$),bt=Yt(B.info.isAudioAvailable$),gi=null,Ei=B.info.isBuffering$,Vi=ar(Ei.getValue(),c=>{let x=Ei.subscribe(N=>{N&&gi===null?gi=window.setTimeout(()=>{c(Ei.getValue()),gi=null},J.loaderDelay):c(N)});return()=>{x.unsubscribe(),gi&&clearTimeout(gi)}}),$n=()=>{gi&&clearTimeout(gi),gi=null},wi=vi([ri,Li],([c,x])=>x?-c:c),Yi=vi([U],([c])=>c===td.PLAYING),rn=Yt(B.info.atLiveEdge$),yn=Yt(B.info.atLiveDurationEdge$),Ai=Yt(B.info.position$),Wn=vi([Ai,ri],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),sn=vi([zt],([c])=>c===n2.CONNECTED),wo=Yt(B.info.availableVideoStreams$),xn=J.features.audioLanguages?Yt(B.info.availableAudioStreams$):ar([]),Mr=Yt(B.info.currentVideoStream$),cr=Yt(B.info.currentAudioStream$),Kn=c=>{c.language&&xp(c.language),B.setVideoStream(c)},wn=c=>{c.language&&xp(c.language),B.setAudioStream(c)},an=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ce=>"isDefault"in ce&&ce.isDefault)),x)return x;let N=Gg();return N&&(x=c.find(({language:ce})=>N===ce)),x!=null||(x=c.at(0)),x},Sn=!1;Ke.add(B.info.availableAudioStreams$.subscribe(c=>{if(!Sn&&c.length){let x=an(c);x&&(B.setAudioStream(x),Sn=!0)}}));let uo=!1;Ke.add(B.info.availableVideoStreams$.subscribe(c=>{if(!uo&&c.length){let x=an(c);x&&(B.setVideoStream(x),uo=!0)}}));let Je=ae(void 0),ln=Yt(B.info.isAutoQualityEnabled$,c=>c&&Je.set(void 0)),Qn=Yt(B.info.currentQuality$,()=>Je.set(void 0)),Gn=vi([Je,Qn],([c,x])=>c!=null?c:x),Cn=vi(jt,c=>c!==id.MPEG),dn=vi([ui,xt,ln,Gn,Cn],([c,x,N,ce,We])=>{let wt=[];We&&wt.push({value:"auto",displayValue:Be("auto_quality_option"),selected:N});let Mt=c.filter(Ht=>!d2(Ht));for(let Ht of Mt){let Lt=x[Ht];wt.push({value:Ht,displayValue:`${Ht}${Lt?Vh(Lt):""}`,selected:N?!1:Ht===ce})}return wt}),cn=Yt(B.info.currentPlaybackRate$),Uo=vi([cn,rn,yn],([c,x,N])=>{let ce=N||S?1:J.controls.playbackRateMin,We=x?1:J.controls.playbackRateMax,wt=J.controls.playbackRateStep,Mt=[];for(let Ht=ce;Ht<=We;Ht+=wt)Mt.push({value:Ht,displayValue:Ht===1?Be("playback_rate_1"):Be("playback_rate",{multiplier:Ht.toString(10)}),selected:c===Ht});return Mt}),Fi={displayValue:Be("subtitles_off"),value:"off"},Ui=ae({...Fi}),Yn=J.features.subtitles?Yt(B.info.availableTextTracks$):ar([]),Tn=Og(),jn=vi([Yn,Ui],([c,x],N)=>{var wt;let ce=[],We=c.find(({id:Mt})=>Mt===x.value);if(We!=null&&We.url){let[,Mt]=(wt=Tn.find(We.url))!=null?wt:[];if(Mt){N(Mt);return}st.download(We.url).then(Ht=>{if(!Ht||st.isDestroyed())return;let Lt=new Rh,ds=We.language;if(ds){let T1=!!We.isAuto,k1=Lt.parse(Ht,ds);ce.push({lang:ds,subtitles:k1,isAuto:T1,id:We.id})}Tn.add(We.url,ce),ye(Ui).value===x.value&&N(ce)}).catch(Ht=>{var Lt;(Lt=pe==null?void 0:pe.oneStat)==null||Lt.logError({errorType:"Subtitles download",fatal:!1}),Ie==null||Ie.report(Ht,{errorType:"Subtitles download",fatal:!1})})}N(ce)}),ur=vi([cn,Yi,Ui],([c,x,N],ce)=>{let Mt;if(B.info.isLive$.getValue()&&x&&N.value!==Fi.value){let Lt=()=>{let ds=1e3/(3*c);Mt=setTimeout(Lt,ds),ce(Date.now())};return Lt(),()=>clearTimeout(Mt)}}),ji=vi([Yn,Ui],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:ce,isAuto:We,id:wt}of c){let Mt=ce&&Hc(ce);ce&&Mt&&N.push({displayValue:We?Be("subtitles_auto",{language:Mt}):Mt,value:wt,selected:(x==null?void 0:x.value)===wt,isAuto:We})}return N.length?(N.unshift({...Fi,selected:(x==null?void 0:x.value)===Fi.value}),N):[]}),Zi={available:[],prev:[]},kn=()=>{var x,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Ee==null?void 0:Ee.currentTime)!=null?N:0},In=vi([gt,Ui,jn,ur],([c,x,N,ce])=>{var wt;let We=B.info.isLive$.getValue();if(We&&Zi.prev!==N){let Mt=N.find(({id:Lt})=>Lt===x.value),Ht=Zi.prev.find(({id:Lt})=>Lt===x.value);if(Mt){let Lt={...Mt,subtitles:[...(wt=Ht==null?void 0:Ht.subtitles)!=null?wt:[],...Mt.subtitles]};Zi.available=[Lt],Zi.prev=N}}if(x&&x.value!==Fi.value){let Mt=We?kn():c,Ht=We?Zi.available:N;return Dh(Mt,x,Ht,We)}}),po=vi([In],([c])=>c!=null&&c.texts?c.texts:[]),Xi=ae(!0),En=vi([Kt,wi,Ai,ci],([c,x,N,ce])=>{var Ht;let We=(Ht=c==null?void 0:c.end)!=null?Ht:0;if(!ce)return We/x;let Mt=-N+ce-x;return(We-Mt)/x}),Ro=Yt(B.info.availableSources$),Lr=vi([Ro],([c])=>Object.keys((c==null?void 0:c[id.MPEG])||{}).length>0),An=()=>{var N,ce,We;let c=Object.keys(((ce=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:ce[id.MPEG])||{}),x=a2(c)||h2.Q_144P;return(We=de.sources[id.MPEG])==null?void 0:We[x]},pr=()=>{var x;let c=An();if(c)Z.log("download video",{url:c}),Ng(c,((x=de==null?void 0:de.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";Z.log("download video",{message:N}),D({message:N})}},Pn=()=>{D({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?Ln(Xn()):ti(!c)},Mn=()=>{var c;if(vt.ui.settingsMenu.visible$.set(!1),!ye(vt.ui.settingsSubMenu.visible$)){let x=ye(vt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ce=Ga(x),We={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ce,position:We,name:"settings"})}}Z.log("close settings menu")},Vr=async(c,x=()=>Promise.resolve())=>{var We;vt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),vt.ui.settingsMenu.visible$.set(!0),await x();let N=ye(vt.ui.settingsMenu.ref$),ce=Es();if((We=l==null?void 0:l.uiInfo)!=null&&We.onSettingsMenu&&N&&ce){let Mt=Ga(N),Ht=Qa(N,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Mt,position:Ht,name:"settings"})}Z.log("open settings menu",{wasOpenedByKeyboard:c})},Zn=(c,x=!1)=>{var wt;vt.ui.settingsSubMenu.visible$.set(!1);let N=ye(vt.ui.settingsMenu.ref$),ce=Es(),We=ye(vt.ui.settingsMenu.visible$);if((wt=l==null?void 0:l.uiInfo)!=null&&wt.onSettingsMenu&&N&&ce)if(We&&!x){let Ht=Ga(N),Lt=Qa(N,ce);l.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:Lt,name:"settings"})}else{let Ht=Ga(c),Lt={top:0,left:0,bottom:0,right:0},ds=ye(vt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Ht,position:Lt,name:ds})}Z.log("close settings sub menu")},fr=(c,x)=>{var ce;vt.ui.settingsSubMenu.visible$.set(!0),vt.ui.settingsSubMenu.ref$.set(x),vt.ui.settingsSubMenu.name$.set(c);let N=Es();if((ce=l==null?void 0:l.uiInfo)!=null&&ce.onSettingsMenu&&x&&N){let wt=Ga(x),Mt=Qa(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:wt,position:Mt})}Z.log("open settings sub menu",{name:c})},Xn=()=>{var x;let c=Math.max(J.volumeMinRestore,(x=gc())!=null?x:0);return c===0?J.volumeDefault:c},Ln=c=>{let x=c===0?Xn():c,N=B.info.muted$.getValue();D({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,$p(!1)),B.setVolume(c,N),ne.setVolume(c),vp(x)},ti=c=>{let x=B.info.volume$.getValue();if(D({message:`set muted, currentVolume: ${x}, mute: ${c}`}),B.setMuted(c),ne.setVolume(c?0:x),$p(c),!c&&x===0){let N=Xn();B.setVolume(N),vp(N),ne.setVolume(N)}},zo=ae(!1),mr=c=>{Z.log("set looped",{isLooped:c}),zo.set(c),B.setLooped(c)};mr(oe);let Rr=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},tt=(c,x=!1)=>{var N;D({message:`set autoplayNextEnabled, value: ${c}`}),Z.log("set autoplay next enabled",{autoplayNextEnabled:c}),vt.ui.autoplayNextEnabled$.set(c),Zg(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},pt=c=>{D({message:`set timerNextVideoRunning, value: ${c}`}),Z.log("set timer next video running",{timerNextVideoRunning:c}),vt.ui.timerNextVideoRunning$.set(c)},Si=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ce=l==null?void 0:l.onPrevVideoClick)==null?void 0:ce.call(l)}catch(We){D({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&zi("prev")||j()},Ji=(c=!0)=>{var ce;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ce=l==null?void 0:l.onNextVideoClick)==null?void 0:ce.call(l)}catch(We){D({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&zi("next")||X()},zi=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:ce}}=J;return N&&ce&&!x?(vt.ui.aboutToGoNextVideo.set(c),vt.ui.userActionsDisabled.set(!0),!0):!1},So=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Co=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},qo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},To=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},di=()=>{B.prepare()},Ze=()=>{Un(vt);let c=ye(vt.ui.controls.disabledControls$),x=ye(vt.playerPhase),N={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(D({message:"toggle play"}),x==="ads"){N.action="play",Z.log("toggle adman play",N),ne.togglePlay();return}let ce=()=>{var wt;D({message:"toggle play, call player.play"}),N.action="play",B.play(),(wt=l==null?void 0:l.onPlay)==null||wt.call(l)},We=()=>{var wt;D({message:"toggle play, call player.pause"}),N.action="pause",B.pause(),(wt=l==null?void 0:l.onPause)==null||wt.call(l)};if(B.info.isEnded$.getValue()){if(D({message:"toggle play, video ended, seek to 0"}),Ut.next(),Ge.next(ns.REWIND),S){P==null||P();return}B.seekTime(0),ce()}else B.info.playbackState$.getValue()!==td.PLAYING?ce():We();Z.log("toggle play",N)},At=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{D({message:`set quality, quality: ${c}`}),Z.log("set quality",{quality:c}),B.setAutoQuality(c==="auto"),c!=="auto"?(J.features.qualityDetailsSubMenuEnabled?(hc({type:"exact_quality",quality:c,videoId:i},N),Pl(),B.setPredefinedQualityLimits(qr.UNKNOWN)):gp(i,c),Je.set(c),B.setQuality(c)):J.features.qualityDetailsSubMenuEnabled?x==="default"&&(Wi("auto_quality",N),ye(Gi)&&qi(!1),ye(Fo)&&hi(!1)):Pl()},qi=(c,x="as-default")=>{D({message:`set trafficSavingEnabled, value: ${c}`}),Z.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?qr.TRAFFIC_SAVING:qr.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(_i(N,x),Al(!1)):(B.setPredefinedQualityLimits(N),Al(c))},hi=(c,x="as-default")=>{D({message:`set highQualityEnabled, value: ${c}`}),Z.log("set high quality enabled",{highQualityEnabled:c}),_i(c?qr.HIGH_QUALITY:qr.UNKNOWN,x)},_i=(c,x)=>{c!==qr.UNKNOWN&&(ye(Nt)&&!ye(ln)&&At("auto",{appliesTo:x,changeReason:"limit-changed"}),Wi(c,x)),B.setPredefinedQualityLimits(c)},Wi=(c,x)=>{hc({type:c,videoId:i},x),x==="as-default"&&hc({type:c,videoId:i},"to-video")},No=c=>{Z.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),J.features.saveRate&&le&&!B.info.isLive$.getValue()&&Yg(c)},eo=()=>{let c=ye(Uo),x=c.findIndex(({selected:ce})=>ce);if(x===c.length-1)return;let N=c[x+1];No(N.value)},Jn=()=>{let c=ye(Uo),x=c.findIndex(({selected:ce})=>ce);if(x===0)return;let N=c[x-1];No(N.value)},un=(c={...Fi,selected:!1})=>{Z.log("set subtitles",{...c}),c&&c.value!==Fi.value&&at.next(c.isAuto?c.value+"_auto":c.value),Ui.set(c)},vr=()=>{Z.log("toggle subtitles");let c=ye(ji),x=ye(Ui),N=ye(Ft);if((x==null?void 0:x.value)===Fi.value){let ce=c.filter(We=>We.value!==Fi.value).find(We=>We.value===N)||c[1];un(ce)}else un()},ko=(c,x,N=!0)=>{var ce;if(D({message:`seek to time, time: ${c}`}),Z.log("seek to time",{time:c,action:x,forcePrecise:N}),Ge.next(x),B.info.isLive$.getValue()){let We=B.info.duration$.getValue(),wt=Math.min(0,We+c);B.seekTime(wt,N)}else{if(A!=null&&A.getValue())return;B.info.isEnded$.getValue()&&(D({message:"seek after ended, call callbacks.onPlay"}),(ce=l==null?void 0:l.onPlay)==null||ce.call(l)),B.seekTime(Ue(c),N)}},gr=c=>{D({message:`seek to episode start time: ${c}`}),Z.log("seek to episode start time",{time:c}),ko(c,ns.EPISODE,!0)},hr=(c,x)=>{D({message:`seek to percent, percent: ${c}`}),Z.log("seek to percent",{percent:c,action:x});let N=ye(wi)*c;ko(N,x,!1)},_r=c=>{D({message:`seek external, time: ${c}`}),Z.log("seek external",{time:c}),Ge.next(ns.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},Nr=c=>{var ce,We;let x=(ce=c.max)!=null?ce:"none",N=(We=c.min)!=null?We:"none";D({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),Z.log("set auto quality limits",{max:x,min:N}),B.setAutoQualityLimits(c)},Wo=c=>{D({message:`seek external to episode start time: ${c}`}),Z.log("seek external to episode start time",{time:c}),ko(c,ns.EPISODE,!0)},br=c=>{D({message:`set playback rate to: ${c}`}),Z.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},er=ae(void 0),tr=ae(!1),$r=c=>{D({message:`start scrubbing, progress: ${c}`}),Z.log("start scrubbing",{progress:c}),tr.set(!0),fo(c)},fo=c=>{er.set(c)},Vn,it,Bt=()=>{er.set(void 0),tr.set(!1)},Ci=()=>{clearTimeout(it),clearTimeout(Vn),Vn=window.setTimeout(()=>{Bt()},500),Ee==null||Ee.removeEventListener("seeked",Ci)},Ko=c=>{D({message:`complete scrubbing, progress: ${c}`}),Z.log("complete scrubbing",{progress:c}),hr(c,ns.SLIDER),ye(vt.ui.isMobile)&&ye(vt.state.currentFormat$)===id.HLS?(Ee==null||Ee.addEventListener("seeked",Ci),it=window.setTimeout(()=>{Ci()},300)):Bt()},Rn=vi([gt,wi,er],([c,x,N],ce)=>{ce(c2(N)?N*x:c)}),xe=ae(!1),Pt=()=>{xe.set(!0)},ai=()=>{xe.set(!1)},kt=ae({width:0,height:0}),Zt=vi([kt],([{width:c}],x)=>{let N=Eh(c);x(N)}),li=ae(!1),Ri=z.filter(c=>Bg(c)),mo=vi([Zt,li],([c,x])=>x?Ri.filter(N=>!N.hideOnMobile):Ri.filter(N=>{var ce;return!((ce=N.hideOnDesktopGridTypes)!=null&&ce.includes(c))})),ii=ae(z.filter(c=>Dg(c))),Io=vi([ii,Zt],([c,x])=>c.filter(N=>{var ce;return!((ce=N.hideOnDesktopGridTypes)!=null&&ce.includes(x))})),ze=vi([Io,mo],([c,x])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?x.map((N,ce)=>{var We;return{id:ce,weight:ce,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}}):[]]),Ot=ae(Y),bi=vi([Ot],([c])=>J.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Eo=(c,x)=>{let N=ye(ii).map(ce=>ce.id!==c?ce:{...ce,...x});ii.set(N)},Qo=c=>{let x=ye(ii);if(x.some(N=>N.id===c.id)){D({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ii.set(x)},ls=c=>{let x=ye(ii);if(!x.some(N=>N.id===c)){D({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(N=>N.id!==c),ii.set(x)},pn=c=>{Ge.next(ns.LIVE),D({message:"live switch to low latency "+c}),Z.log("live switch to low latency "+c),B.setLiveLowLatency(c)},Wr=(c,x)=>{let N=ye(Ot).map(ce=>ce.id!==c?ce:{...ce,...x});Ot.set(N)},ca=c=>{let x=ye(Ot);if(x.some(N=>N.id===c.id)){D({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ot.set(x)},ua=c=>{let x=ye(Ot);if(!x.some(N=>N.id===c)){D({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),Ot.set(x)},ir=ae(F),el=vi([ir],([c])=>J.features.additionalContextMenuItems?c:[]),ks=(c,x)=>{let N=ye(ir).map(ce=>ce.id!==c?ce:{...ce,...x});ir.set(N)},pa=c=>{let x=ye(ir);if(x.some(N=>N.id===c.id)){D({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ir.set(x)},mt=c=>{let x=ye(ir);if(!x.some(N=>N.id===c)){D({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),ir.set(x)},ht=vi([li,nt],([c,x],N)=>{N(c&&x)}),Ki=()=>{Ge.next(ns.LIVE),D({message:"switch to active live"}),Z.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==td.PLAYING&&vt.actions.internal.togglePlay()},Go=()=>{Z.log("skip adman"),ne.skip()},Qi=(c=!0)=>{Un(vt),D({message:`switch from ads to video, callPlay: ${c}`}),Z.log("switch from ads to video",{callPlay:c}),re.set("video"),c&&B.play()},si=()=>{Un(vt),D({message:"switch from video to ads"}),Z.log("switch from video to ads"),vt.actions.internal.pause(),Jt(),re.set("ads")},Ti=c=>{Un(vt);let x=c?"LiveWaitingStart":"thumb";Z.log("set live waiting start",{state:c,playerPhase:x}),re.set(x)},Is=c=>{Un(vt);let x=c?"LiveWaitingRecover":"thumb";Z.log("set live waiting recover",{state:c,playerPhase:x}),re.set(x)},fa=c=>{Un(vt);let x=c?"LiveWaitingRecord":"thumb";Z.log("set live waiting record",{state:c,playerPhase:x}),re.set(x)},cu=()=>(Un(vt),Z.log("get debug text data"),Vg(B,de,vt)),Ld=()=>(Un(vt),JSON.stringify(Me.getFinishedSpans())),uu=()=>(Un(vt),Rg(B,de,vt)),Es=()=>Ee,pu=()=>{D({message:"toggle chromecast"}),Z.log("toggle chromecast"),B.toggleChromecast()},tl=c=>{var N;if(Un(vt),B.info.isEnded$.getValue())return;let x=!c;if(ye(vt.playerPhase)==="ads"){D({message:`pause ads, internalCall: ${x}`}),Z.log("pause ads",{internalCall:x}),ne.pause();return}D({message:`pause video, internalCall: ${x}`}),Z.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),B.pause()},Vd=c=>{var N;Un(vt);let x=!c;if(ye(vt.playerPhase)==="ads"){D({message:`play ads, internalCall: ${x}`}),Z.log("play ads",{internalCall:x}),ne.play();return}D({message:`play video, internalCall: ${x}`}),Z.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),B.play()},Rd=c=>{Un(vt);let x=!c;if(ye(vt.playerPhase)==="ads"){D({message:"player cannot be stopped during ads via external method"});return}D({message:`player will be stopped, internalCall: ${x}`}),E==null||E()},Nd=(c,x)=>{Un(vt),D({message:`first start, show ads: ${c}, internalCall: ${!x}`}),Z.log("first start",{showAds:c,external:x}),c?re.set("ads"):(re.set("video"),x?B.play():vt.actions.internal.togglePlay())},ma=()=>(D({message:"getting time codes"}),f),il=()=>{let c=ma();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue();return c.find(N=>N.time>x)},Bd=c=>{let x=c;x||(x=il());let N=B.info.position$.getValue();Z.log("seek to next episode",{currentTime:N,...x}),x&&(D({message:"seek to next episode"}),ko(x.time,ns.EPISODE,!0))},Dd=()=>{let c=ma();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue(),N=c.findIndex(We=>We.time>x),ce=N===-1?c.length-2:N-2;if(!(ce<0))return c[ce]},Od=c=>{let x=c;x||(x=Dd());let N=B.info.position$.getValue();Z.log("seek to prev episode",{currentTime:N,...x}),x&&(D({message:"seek to prev episode"}),ko(x.time,ns.EPISODE,!0))},fu=()=>(D({message:"getting preview thumbs data"}),Z.log("get preview thumbs data",{..._}),_),Hd=async()=>{let c=Ne==null?void 0:Ne.isActive(),x="none";Ne!=null&&Ne.isActive()?(x="remove",await(Ne==null?void 0:Ne.remove())):(x="request",await(Ne==null?void 0:Ne.request())),Z.log("toggle picture in picture",{isActive:c,action:x})},mu=(c=-90)=>{Z.log("rotate video",{alphaDiff:c}),ct.update(x=>x+c)},va=ae([]);k==null||k.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[ce,We],subjects:wt}=c[N];N===0&&ce!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ce/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!wt.length||wt.every(Mt=>Mt.isRemoved):!wt.length}),We!==1/0&&x.push({time:We/1e3,text:"",interactive:!1,completed:!0})}va.set(x)});let vu=ae(!1);A==null||A.subscribe(c=>{c&&ye(tr)&&Bt()});let Ue=c=>{if(!S)return c;let x=ye(va),N=ye(wi),We=ye(Ai)/N,wt=x.find(Mt=>Mt.interactive&&!Mt.completed&&Mt.time>We);return typeof(wt==null?void 0:wt.time)=="number"?Math.min(c,wt.time-.05):c},oi=()=>{vt.ui.episodes.panelOpened$.set(!1)},Yo=()=>{Z.log("destroy store"),clearTimeout(it),clearTimeout(Vn),Ke.unsubscribe(),lt.unsubscribe(),B.destroy(),ne.destroy(),pe==null||pe.destroy(),Ie==null||Ie.destroy(),Rt.unsubscribe(),Xe==null||Xe.disconnect(),Xe=null,st.destroy()},vt={interfaceLanguage$:Ft,isCyrillicRelatedInterface$:Wt,initVideo:Ce,videoId:i,isClip:o,playerPhase:K,vsid:Ae,state:{positionExact$:gt,positionWithScrubbing$:Rn,duration$:wi,playbackState$:U,isPlaying$:Yi,isLoaderVisible:Vi,bufferedProgress$:En,isLive$:Li,canChangePlaybackSpeed$:ni,isActiveLive$:rn,isOldestAvailableLive$:yn,isRewindableLive$:Wn,isEnded$:Hi,muted$:lo,volume$:ao,trafficSavingEnabled$:Gi,highQualityEnabled$:Fo,autoQualityLimitingAvailable$:Nt,availableVideoStreams$:wo,availableAudioStreams$:xn,videoStream$:Mr,audioStream$:cr,currentQuality$:Gn,isAutoQualityEnabled$:ln,availableQualities$:dn,currentPlaybackRate$:cn,availablePlaybackRates$:Uo,currentSubtitle$:Ui,availableTextTracks$:Yn,availableSubtitlesList$:ji,currentSubtitleCaptions$:po,isAutoSubtitleCaptionVisible$:Xi,chromecastState$:zt,chromecastDeviceName$:co,chromecastConnected$:sn,currentFormat$:jt,throughputEstimation$:qn,videoBitrate$:yo,videoSize$:xo,errorLog$:ot,crashed$:nt,isAudioAvailable$:bt,isAudioDisabled:!!s,canDownload:J.features.download&&!!d,availableSources$:Ro,hasMpegSources$:Lr,isInteractive:S,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!ye(va).length,interactiveEpisodes$:va,isInteractiveTime$:A?Yt(A):ae(!1),isInteractiveExpectation$:vu,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,looped$:zo,loadedMetadata$:ae(!1),isAutoQualityAvailable$:Cn},ui:{t:Be,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:z.length?z.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:$e,isFullscreenOpenedByKeyboard:Le,rotateAlpha:ct,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:kt,isMobile:li,mobileNotReportControlHidden$:ht,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:tr,volumeChangingInProgress:xe,is3DVideo:ae(!1),currentGridType$:Zt,additionalButtonsDeprecated$:mo,additionalDesktopControlPanelRightButtons$:ze,additionalSettingsMenuItems$:bi,additionalContextMenuItems$:el,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:Ne,annotationsApi:fe},actions:{internal:{preload:di,firstStart:c=>Nd(c,!1),play:()=>Vd(!1),pause:()=>tl(!1),togglePlay:Ze,toggleMuted:Pn,openSettingsMenu:Vr,closeSettingsMenu:Mn,openSettingsSubMenu:fr,closeSettingsSubMenu:Zn,setVolume:Ln,startVolumeChanging:Pt,stopVolumeChanging:ai,setVideoStream:Kn,setAudioStream:wn,setQuality:At,setTrafficSavingEnabled:qi,setHighQualityEnabled:hi,setPlaybackRate:No,incrementPlaybackRate:eo,decrementPlaybackRate:Jn,setSubtitle:un,toggleSubtitle:vr,togglePictureInPicture:Hd,startScrubbing:$r,progressScrubbing:fo,completeScrubbing:Ko,toggleChromecast:pu,switchToActiveLive:Ki,switchFromAdsToVideo:Qi,switchFromVideoToAds:si,skipAd:Go,setLiveWaitingStart:Ti,setLiveWaitingRecover:Is,setLiveWaitingRecord:fa,getDebugTextData:cu,getTraceTextData:Ld,getDebugPanelData:uu,getVideoElement:Es,seekTime:(c,x,N)=>ko(c,x,N),clearDelayedBufferingCheckTimeout:$n,seekEpisodeStartTime:gr,seekToPercent:hr,getNextEpisode:il,seekToNextEpisode:Bd,getPrevEpisode:Dd,seekToPrevEpisode:Od,startLogging:ei,stopLogging:Mi,startCameraManualRotation:Mo,stopCameraManualRotation:Oi,moveCameraFocusPX:Lo,holdCamera:Vo,releaseCamera:Et,getVideoEpisodes:ma,getPreviewThumbsData:fu,downloadVideo:pr,addLanguage:wp,setLanguage:$t,nextMovie:ut,videoRotate:mu,correctSeekTimeToInteractive:Ue,replayInteractive:P,setLooped:mr,reportProblem:Rr,setAutoplayNextEnabled:tt,setTimerNextVideoRunning:pt,prevVideoClick:Si,nextVideoClick:Ji,nextVideoAnnouncementShow:So,nextVideoAnnouncementClick:Co,nextVideoAnnouncementAuto:qo,nextVideoAnnouncementCancel:To},external:{firstStart:c=>Nd(c,!0),play:()=>Vd(!0),pause:()=>tl(!0),stop:()=>Rd(!0),seekTime:c=>_r(c),seekEpisodeStartTime:c=>Wo(c),setPlaybackRate:c=>br(c),setAutoQualityLimits:c=>Nr(c),setMuted:ti,setVolume:Ln,returnFocusToEpisodes:oi,updateAdditionalSettingsItem:Wr,addAdditionalSettingsItem:ca,removeAdditionalSettingsItem:ua,updateAdditionalContextItem:ks,addAdditionalContextItem:pa,removeAdditionalContextItem:mt,updateAdditionalButton:Eo,addAdditionalButton:Qo,removeAdditionalButton:ls,setLiveLowLatency:pn}},callbacks:l,setUiCallbacks:c=>{Qe={...c}},getAdmanWrapper:()=>ne,getLogger:()=>Re,getPlayer:()=>B,destroy:Yo};return vt};function ra(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:f}=Qa(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?p:0,isDisplayed:s}}var qc=(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 Wc=async(t,e,i)=>{await ho(),e&&i&&(i.focus(),t.set(!1))};var $2=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 $f(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=$2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 yf(t,e){q(e,!0);let[i,o]=He(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=Se(),l=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=ee(void 0);qe(()=>{r($)&&_t(()=>{u.set(r($))})});let w=A=>{let P=ys(A),E=yh(r($));_.set(E),p.set(P),l.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},k=m(()=>n()?"opened":"");It(t,{get className(){return r(k)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return r($)},set ref(A){O($,me(A))},children:(A,P)=>{$f(A,{})},$$slots:{default:!0}}),W(),o()}var y2=t=>{t.stopPropagation()},x2=L("<div><!> <div></div> <div></div></div>"),w2={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 lf(t,e){U(e,!0),q(t,D$);let i=f(e,"isMobile",3,!1),o=v(()=>e.iconState===Lh.CONNECTED),n=v(()=>e.iconState===Lh.CONNECTING);var a=Ue(),s=ce(a);{var d=p=>{var m=V$(),$=h(m),u=h($),_=h(u);ye(),g(u);var w=M(u);ye(),g($);var y=M($),C=h(y),T=h(C);g(C),ye(),g(y),g(m),k(()=>{Oe(_,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,m)},l=p=>{var m=R$();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 B$}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,B$),s=Te().ui.t,d=v(()=>e.state===N$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Lt(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)=>{lf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var O$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),H$={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 df(t,e){q(t,H$);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=O$(),_=h(u);let w;var y=h(_);ve(y,()=>{var C;return(C=e.children)!=null?C:ie}),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 Oc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Vh=t=>!!(Math.round(Math.abs(t)/90)%2),Rh=t=>Math.abs(t)/90%4===1;var F$=L('<div class="preview svelte-1wqg760"></div>'),U$=L('<div class="time svelte-1wqg760"> </div>'),z$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),q$={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 cf(t,e){U(e,!0),q(t,q$);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),_=Te(),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(()=>Oc(m(),$(),p())),G=v(()=>Vh(n())),O=v(()=>Rh(n())),X=v(fe),oe=v(()=>(r(O)?1:-1)*(r(C)/2-r(T)/2)),Y=v(()=>r(oe)*-1);qe(()=>{(Q=>(B(C,pe(Q.width)),B(T,pe(Q.height))))(Le())}),qe(()=>{(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 De;let Q=l()?s.MOBILE:s.DESKTOP,{isVertical:W}=ae(),Ve=30;return(De=r(H))!=null&&De.text&&(Ve+=16),(W||r(G))&&(Ve+=18,Ve+=50),Math.min(Math.max(a().height-Ve,0),Q)}function ae(){let Q=e.previewThumbsData.frameWidth,W=e.previewThumbsData.frameHeight,Ve=W>Q;return{width:Q,height:W,isHorizontal:!Ve,isVertical:Ve}}function Le(){let{height:Q,isHorizontal:W,isVertical:Ve,width:De}=ae();return W&&(Q=Q/De*r(X),De=r(X)),Ve&&(De=De/Q*r(X),Q=r(X)),{width:De,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 Ve=Math.floor(W/e.previewThumbsData.countPerImage),De=Math.floor(W%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),et=W%e.previewThumbsData.countPerRow,Se=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ve===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Se=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Se++);let $e=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ve===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&($e=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ne=r(C)*$e,je=r(T)*Se,it=-et*r(C),ht=-De*r(T);return{imgSrc:e.previewThumbsData.links[Ve],imgWidth:Ne,imgHeight:je,imgOffsetX:it,imgOffsetY:ht}}var he=z$();let se;var Me=h(he);{var ne=Q=>{var W=F$();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(G)?`translate(${r(oe)}px, ${r(Y)}px)`:""};
230
+ `)),b(Q,W)};R(Me,Q=>{r(E)&&Q(ne)})}var N=M(Me,2),ue=h(N);{var ge=Q=>{var W=Ue(),Ve=ce(W);{var De=Se=>{var $e=Rr();k(Ne=>me($e,Ne),[()=>F("tooltip_episode_unfinished")]),b(Se,$e)},et=Se=>{var $e=Rr();k(()=>me($e,r(H).text||"")),b(Se,$e)};R(Ve,Se=>{u()&&r(H).completed===!1?Se(De):Se(et,!1)})}b(Q,W)};R(ue,Q=>{r(H)&&Q(ge)})}g(N);var Qe=M(N,2);{var te=Q=>{var W=U$(),Ve=h(W,!0);g(W),k(()=>me(Ve,d())),b(Q,W)};R(Qe,Q=>{u()||Q(te)})}g(he),k(Q=>{se=ee(he,1,"timeline-preview svelte-1wqg760",null,se,Q),tt(he,`width: ${r(G)?r(T):r(C)}px;`)},[()=>({mobile:l()})]),b(t,he),z(),o()}var W$=L('<span class="time svelte-1jr6obn"> </span>'),K$=L("<!> <!>",1),Q$={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 uf(t,e){var ot,lt,Ye,Ze,Xe;U(e,!0),q(t,Q$);let[i,o]=Be(),n=()=>S(oe,"$interactiveEpisodes$",i),a=()=>S(I,"$duration$",i),s=()=>S(A,"$position$",i),d=()=>S(ae,"$isInteractiveExpectation$",i),l=()=>S(fe,"$isInteractiveTime$",i),p=()=>S(V,"$isLive$",i),m=()=>S(G,"$isMobile",i),$=()=>S(H,"$isActiveLive$",i),u=()=>S(P,"$bufferedProgress$",i),_=()=>S(he,"$disabledControls$",i),w=f(e,"showTimeline",3,!1),y=f(e,"withEpisodes",3,!0),C=f(e,"ref",15,void 0),T=Te(),E=Ut(),P=T.state.bufferedProgress$,A=T.state.positionWithScrubbing$,I=T.state.duration$,V=T.state.isLive$,H=T.state.isActiveLive$,G=T.ui.isMobile,O=E.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,X=T.actions.internal.getPreviewThumbsData(),oe=T.state.interactiveEpisodes$,Y=T.state.isInteractive,fe=T.state.isInteractiveTime$,ae=T.state.isInteractiveExpectation$,Le=T.actions.internal.correctSeekTimeToInteractive,Ae=(ot=T.callbacks)==null?void 0:ot.onDisabledTimelineClick,he=T.ui.controls.disabledControls$,se=(Ye=(lt=T.callbacks)==null?void 0:lt.uiInfo)==null?void 0:Ye.onTimelineMouseEnter,Me=(Xe=(Ze=T.callbacks)==null?void 0:Ze.uiInfo)==null?void 0:Xe.onTimelineMouseLeave,ne=T.ui.t,N=E.features.interactiveResponsiveUi,ue=v(()=>Y?n():O),ge=v(()=>on(a())),Qe=v(()=>on(s())),te=v(()=>s()/a()),Q=v(()=>d()||l()),W=J(!1),Ve=J(""),De=J(0),et=J(0),Se=J(0),$e=v(()=>({containerWidth:r(et),translateXPx:r(De),translateYPx:Y&&X?-36:-16,active:r(W)&&w()&&!r(Q)&&!N,pointer:!E.features.timelinePreview||!X||p()})),Ne=ne("aria_timeline"),je=v(()=>ne("aria_timeline_value",{position:r(Qe),duration:r(ge)}));function it(We){return!Le||!Y?We:Le(We*a())/a()}function ht(We){T.actions.internal.startScrubbing(it(We))}function Je(We){l()||T.actions.internal.progressScrubbing(it(We))}function ft(We){T.actions.internal.completeScrubbing(it(We)),B(W,!1)}function Pt(We,mt,ze){At(We,mt,ze),B(W,!0)}function Wt(We,mt,ze){At(We,mt,ze),B(W,!0)}function Kt(){B(W,!1)}function At(We,mt,ze){B(Se,pe(it(We))),B(De,pe(mt)),ze&&B(et,pe(ze)),B(Ve,pe(_e(We)))}function _e(We){let mt=on((p()?1-We:We)*a());return p()?`-${mt}`:mt}var j=K$(),be=ce(j);df(be,Jr(()=>r($e),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(We,mt)=>{var ze=Ue(),dt=ce(ze);{var jt=Ii=>{cf(Ii,{get time(){return r(Ve)},get isMobile(){return m()},get videoEpisodes(){return r(ue)},previewThumbsData:X,get progress(){return r(Se)},get duration(){return a()},isInteractive:Y})},Vi=Ii=>{var Hi=W$(),Ki=h(Hi,!0);g(Hi),k(()=>me(Ki,r(Ve))),b(Ii,Hi)};R(dt,Ii=>{E.features.timelinePreview&&X&&!p()?Ii(jt):Ii(Vi,!1)})}b(We,ze)},$$slots:{default:!0}}));var re=M(be,2);let Re=v(()=>Math.round(r(te)*100)),He=v(()=>_().has("TIMELINE"));oa(re,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return m()},ariaLabel:Ne,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Re)},get ariaValueText(){return r(je)},get loadedProgress(){return u()},get filledProgress(){return r(te)},get handleProgress(){return r(te)},get videoEpisodes(){return r(ue)},onPointerDown:ht,onHandleMove:Je,onPointerMove:Wt,onPointerUp:ft,onPointerEnter:Pt,onPointerLeave:Kt,onMouseEnter:se,onMouseLeave:Me,onDisabledClick:Ae,isInteractive:Y,get disabled(){return r(He)},get hideHandel(){return l()},get ref(){return C()},set ref(We){C(We)}}),b(t,j),z(),o()}var G$={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),q(t,G$);let[i,o]=Be(),n=()=>S(l,"$isMobile",i),a=f(e,"position",3,0),s=f(e,"duration",3,0),d=Te(),l=d.ui.isMobile,p=d.ui.t,m=v(()=>on(s())),$=v(()=>on(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 j$=L("<div><!></div>"),Y$=L("<div></div>"),Z$={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,Z$);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=Te(),_=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=Ue(),P=ce(E);{var A=V=>{var H=j$();let G;var O=h(H);{var X=Y=>{nd(Y,{get position(){return s()},get duration(){return d()}})},oe=Y=>{uf(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(oe,!1)})}g(H),k(Y=>G=ee(H,1,"timeline svelte-1h5wsmk",null,G,Y),[()=>({withoutPadding:!m(),mobile:a()})]),b(V,H)},I=V=>{var H=Y$();let G;k(O=>G=ee(H,1,"timeline-stub svelte-1h5wsmk",null,G,O),[()=>({mobile:a()})]),b(V,H)};R(P,V=>{r(T)?V(A):V(I,!1)})}b(t,E),z(),o()}import{noop as e2}from"@vkontakte/videoplayer-shared/es2018";var X$=xe('<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 pf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=X$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(3),g(o),k(()=>n=Ie(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 J$=xe('<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 ff(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=J$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 t2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),i2=L('<span class="text svelte-1yhs2ga"> </span>'),o2=L('<span class="text count svelte-1yhs2ga"> </span>'),n2=L("<!> <!>",1),r2={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 ae,Le,Ae;U(e,!0),q(t,r2);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,()=>[]),$=Te(),u=(Le=(ae=$.callbacks)==null?void 0:ae.onEpisodeChanged)!=null?Le:e2,_=!!((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=he=>{var Me,ne,N;if(!!((Me=$.callbacks)!=null&&Me.onEpisodeClicked)){let ue=bs(he);y.set(ue),C.set(!0),(N=(ne=$.callbacks)==null?void 0:ne.onEpisodeClicked)==null||N.call(ne,ue)}},I=J(null),V=v(()=>l()/p());qe(()=>{var se;let he=Oc(r(V),p(),m());he?((se=r(I))==null?void 0:se.time)!==he.time&&(u(he),B(I,pe(he))):B(I,null)});let H=v(()=>{var he;return((he=r(I))==null?void 0:he.text)||""}),G=v(()=>Wi(n(),"xl")?"FULL":Wi(n(),"m")&&Ah(n(),"xl")?"COUNT":"SHORT"),O=v(()=>`${E("tooltip_episodes")}: ${r(H)}`),X=async(he,se,Me)=>{await ho(),(he==null?void 0:he.getAttribute("aria-expanded"))==="false"&&se&&!Me&&$t(()=>{y.set(!1),he.focus()})};qe(()=>{X(r(P),a(),s())});var oe=Ue(),Y=ce(oe);{var fe=he=>{let se=v(()=>d()?"px-0":"");Lt(he,{get className(){var Me;return`w-max btn-full-opacity btn-jc-l ${(Me=r(se))!=null?Me:""}`},testId:"btn-episodes",click:A,disabled:!_,get ariaExpanded(){return s()},get ariaLabel(){return r(O)},get ref(){return r(P)},set ref(Me){B(P,pe(Me))},children:(Me,ne)=>{var N=Ue(),ue=ce(N);{var ge=te=>{var Q=t2(),W=ce(Q),Ve=h(W,!0);g(W);var De=M(W,2),et=h(De);ff(et,{}),g(De),k(()=>me(Ve,r(H))),b(te,Q)},Qe=te=>{var Q=n2(),W=ce(Q);pf(W,{});var Ve=M(W,2);{var De=Se=>{var $e=i2(),Ne=h($e,!0);g($e),k(()=>me(Ne,r(H))),b(Se,$e)},et=(Se,$e)=>{{var Ne=je=>{var it=o2(),ht=h(it,!0);g(it),k(()=>me(ht,m().length)),b(je,it)};R(Se,je=>{r(G)==="COUNT"&&je(Ne)},$e)}};R(Ve,Se=>{r(G)==="FULL"?Se(De):Se(et,!1)})}b(te,Q)};R(ue,te=>{d()?te(ge):te(Qe,!1)})}b(Me,N)},$$slots:{default:!0}})};R(Y,he=>{r(I)&&he(fe)})}b(t,oe),z(),o()}import{debounceFn as ay}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as f2,PlaybackState as sd,Player as m2,PredefinedQualityLimits as Hr,VideoFormat as ad,clientChecker as v2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Fn,getHighestQuality as g2,InterfaceLanguage as h2,isInvariantQuality as _2,isNonNullable as b2,loadVKLangPack as $2,Logger as y2,map as Uh,merge as x2,Observable as w2,Subject as Qc,Subscription as bf,Tracer as S2,ValueSubject as C2,VideoQuality as T2,devNull as I2,now as k2,filter as E2,once as P2}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as is}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as s2,devNull as Qt,now as Gt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as a2,Subject as Bo,clearVideoElement as l2}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 d2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Hc=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 Bo,loadStarted$:new Bo,loadEnded$:new Bo,loadError$:new Bo,ready$:new Bo,slotRequested$:new Bo,started$:new Bo,timeRemained$:new Bo,paused$:new Bo,resumed$:new Bo,ended$:new Bo,empty$:new Bo,skipped$:new Bo,clicked$:new Bo,closed$:new Bo,error$:new Bo};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())};a2(d2,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"}),Ce(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 P;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:$}=e,u,_=this.playerState&&Ce(this.playerState.vsid);_&&(this.isVsidOriginal?u=_:u=parseInt(_,36));let{isEmbed:w,immediateOrigin:y}=s2(),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){Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],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=Ce(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,$,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),($=this.adman)==null||$.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&l2(this.videoElement),this.isDestroyed=!0}};var Nh=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 mf=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 Fc,{startTime:m,endTime:$}=p.parse(l);s.startTime=m,s.endTime=$}else if(l.trim()!==""){let p=new vf,{texts:m}=p.parse(l);s.texts=[...s.texts,...m]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Fc=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}},vf=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 Fc;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}},Bh=mf;import{isNonNullable as gf}from"@vkontakte/videoplayer-shared/es2018";var ra,Ti,hf=0,_f=!1,Oh="",Hh=(t,e=0,i=0)=>t<e&&t<i,Uc=(t,e=0,i=0)=>t>=e&&t<=i,c2=(t,e=0,i=0)=>t>e&&t>i,Fh=(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})=>Uc(t,p,m));let a=t>=hf,s=t<hf;if(hf=t,s&&(_f=!1),gf(ra)&&Uc(t,ra.startTime,ra.endTime)&&Oh===e.value)return ra;if(!gf(Ti)&&(n!=null&&n.length)&&!_f){Ti=n.find(({startTime:p,endTime:m})=>Uc(t,p,m)||a&&Hh(t,p,m)),ra=void 0,!gf(Ti)&&n[n.length-1].endTime<t&&(_f=!0);return}else{if(Uc(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))return ra=Ti,Ti=void 0,Oh=e.value,ra;(a&&c2(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime)||s&&Hh(t,Ti==null?void 0:Ti.startTime,Ti==null?void 0:Ti.endTime))&&(Ti=void 0)}};var zc={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"},u2={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"},qc=t=>{var e,i;return(i=(e=zc[t])!=null?e:zc[u2[t]])!=null?i:void 0};import{Subscription as p2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var Wc=class{constructor(e,i=new p2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Kc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Kc||{});var Or=t=>t!=null?t:0,Ya=(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))}},Za=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 zh=({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:G,additionalContextMenuItems:O,playPrevVideo:X,playNextVideo:oe,looped:Y=!1,statistics:fe,saveRate:ae,internalsExposure:Le,playerView:Ae})=>{var Dm,Nm,Bm;let he={..._,configName:[...(Dm=_.configName)!=null?Dm:[],"ui"],isAudioDisabled:s,live:{...(Nm=_.live)!=null?Nm:{},isLiveCatchUpMode:!!n}},se=u,Me=S2.createRootTracer(se.features.saveTraceInfoToFile),ne=Me.createComponentTracer("Store"),N=w||new m2(he,Me);Le==null||Le.expose({corePlayer:N});let ue=new y2,ge=new Hc(ue,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal}),Qe=Gs.getInstance(),te=p==null?void 0:p.pictureInPictureApi,Q=p==null?void 0:p.annotationsApi,W=ue.createComponentLog("Store"),Ve,De,et={},Se=new hc,$e=new bf,Ne=fe?Yt(fe.oneStat.vsid$):or(void 0),je=de(gs()),it=de(!1),ht=(Bm=te==null?void 0:te.info.isActive$)!=null?Bm:new C2(!1),Je=de(0),ft=de([]),Pt=x2(N.events.fatalError$,N.events.managedError$).subscribe(c=>ft.update(x=>[...x,c])),Wt=or(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Kt=async c=>{var le;let x=Object.values(h2).includes(c);if(se.downloadVKLanguages&&(x&&se.updateBuiltinLanguages||!Sp(c))){let Fe;try{Fe=await $2(c,Ig,kg)}catch(ut){(le=fe==null?void 0:fe.oneStat)==null||le.logError({errorType:"VKLangPack",fatal:!1}),Qe==null||Qe.report(ut,{errorType:"VKLangPack",fatal:!1})}Fe&&(wp({language:c,pack:Fe,fallback:se.defaultLanguage}),At.set(c))}Sp(c)&&At.set(c)},At=de(t),_e=de(e);Kt(t);let j=(c,x)=>{let D=Ce(At);return Cp(D,c,x,se.defaultLanguage)},be=de("thumb"),re=(()=>{let c=bi([Wt,be],([x,D])=>x?"crashed":D);return{...c,is:x=>Ce(c)===x}})(),Re=(()=>{let c=de(new Set(y));return{...c,add:x=>{c.update(D=>new Set([...D].concat(x)))},remove:x=>{c.update(D=>{let le=[...D];return new Set(Array.isArray(x)?le.filter(Fe=>!x.includes(Fe)):le.filter(Fe=>Fe!==x))})},includes:x=>{let D=Ce(c);return Array.isArray(x)?x.every(le=>D.has(le)):D.has(x)}}})();ne.log("create store"),W({message:"create store"});let He=c=>{let x=c.container,D=()=>{mt=new MutationObserver(Fe=>{let{removedNodes:ut}=Fe[0];ut.length&&x.append(N.experimental.element$.getValue())}),mt.observe(x,{childList:!0})},le=N.experimental.element$.getValue();if(le)x.append(le),D();else{let Fe=N.experimental.element$.pipe(E2(ut=>!!ut),P2()).subscribe(ut=>{x.append(ut),D()});$e.add(Fe)}},ot=c=>{W({message:`init video, config: ${JSON.stringify(c)}`}),C?He(c):(I2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[k2()]}),N.initVideo(c)),ne.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Ve=c},lt=new Qc,Ye=c=>lt.next(c),Ze=new Qc,Xe=new Qc,We=new Qc,mt=null,ze={actionRewind$:Ze,actionSeek$:Xe,inPiP$:ht,inFullscreen$:new w2(c=>je.subscribe(x=>c.next(x))),actionSetSubtitle$:We,nextMovie$:lt};if(fe){let{oneStat:c,statSubscription:x}=fe;C||x.add(c.attachTo(N)),x.add(c.attachToUi(ze)),x.add(c.attachToAds(ge.events)),c.authorize(a).catch(D=>{W({message:`onestat auth error ${String(D)}`})})}if(Qe){let c=new bf,x=(D,le)=>c.add(D.subscribe(le));if(x(N.events.managedError$,D=>{Qe.logIError(D)}),x(N.events.fatalError$,D=>{Qe.logIError(D,!0)}),fe){let{oneStat:D}=fe;x(D.experimental.error$,le=>{Qe.logIError(le)})}Qe.sentrySubscription.add(c)}let dt=()=>{v2.device.isIOS&&De&&uh(De).catch(c=>{W({message:`exitIosSafariFullscreen failed: ${c}`})})};$e.add(N.experimental.element$.subscribe(c=>{c&&(De=c,c.classList.add("player-media"),Ys(te)&&(te.updateVideoElement(),te.registryEventHandlers()),C&&c.setAttribute("pip","false"),Ae==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;dt(),(c=l==null?void 0:l.onEnded)==null||c.call(l)})).add(N.events.looped$.subscribe(()=>{var c;(c=l==null?void 0:l.onLooped)==null||c.call(l)})).add(N.events.started$.subscribe(async()=>{var x,D;Ys(te)&&await(te==null?void 0:te.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(D=et.onStarted)==null||D.call(et,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var D;(D=l==null?void 0:l.onSeek)==null||D.call(l,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=l==null?void 0:l.onAutoplaySoundProhibited)==null||c.call(l)})).add(N.info.position$.subscribe(c=>{var D;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((D=l==null?void 0:l.onTimeupdate)==null||D.call(l,x,c),ge.setPosition(c,x))})).add(N.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(N.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(N.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{kt.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&Re.add(Vl),Re.add("PLAY_BUTTON")):Re.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=l==null?void 0:l.onLiveTime)==null||x.call(l,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=l==null?void 0:l.onStalledChanged)==null||x.call(l,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=l==null?void 0:l.onLiveEnded)==null?void 0:x.call(l))})).add(ge.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(ge.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(ge.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(ge.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(ge.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(ge.events.started$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:D.call(x,c)})).add(ge.events.timeRemained$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:D.call(x,c)})).add(ge.events.ended$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:D.call(x,c)})).add(ge.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(ge.events.clicked$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:D.call(x,c)})).add(ge.events.closed$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:D.call(x,c)})).add(ge.events.error$.subscribe(c=>{var x,D;return(D=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:D.call(x,c)})).add(ge.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(ge.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)}));let jt=new bf,Vi=()=>{var ut,Dt,qt;let{debugLog:c}=se,x,D="#9df7b7",le="#efd169";if(c&&c!==!0){let{colors:Nt}=c;x=c.tag,D=(ut=Nt==null?void 0:Nt[0])!=null?ut:D,le=(qt=(Dt=Nt==null?void 0:Nt[1])!=null?Dt:Nt==null?void 0:Nt[0])!=null?qt:le}let Fe=x?`: ${x}`:"";jt.add(N.events.log$.subscribe(Nt=>{console.debug(`%c sdk${Fe} `,`background:${D};`,`sdk component: ${Nt.component}`,Nt.message)})).add(ue.log$.subscribe(Nt=>{console.debug(`%c ui${Fe} `,`background:${le};`,`ui component: ${Nt.component}.`,Nt.message)}))},Ii=()=>{jt.unsubscribe()},Hi=(c,x)=>{ne.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Ki=(c=!1)=>{ne.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Qi=(c,x,D)=>{ne.log("move camera focus px",{xpx:c,ypx:x,dt:D}),N.moveCameraFocusPX(c,x,D)},Mt=()=>{N.holdCamera()},yt=()=>{N.releaseCamera()},Vt=or(N.info.position$.getValue(),c=>{let x,D,le=()=>{let Fe=N.info.playbackState$.getValue(),ut=N.info.isLive$.getValue(),Dt=N.info.duration$.getValue(),qt=N.info.position$.getValue();if(Fe&&[sd.PLAYING,sd.PAUSED].includes(Fe)){let Nt=ut?qt-Dt:N.getExactTime();Nt!==D&&c(Nt),D=Nt}x=requestAnimationFrame(le)};return le(),()=>cancelAnimationFrame(x)}),yo=Yt(N.info.playbackState$),nn=Yt(N.info.currentBuffer$),Z=Yt(N.info.isEnded$),Jt=Yt(N.info.isLive$),di=se.features.playbackRate?Yt(N.info.canChangePlaybackSpeed$):or(!1),Fi=Yt(N.info.liveBufferTime$),ii=Yt(N.info.volume$),ci=Yt(N.info.muted$),oi=_c(N.info.predefinedQualityLimitType$.pipe(Uh(c=>c===Hr.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===Hr.TRAFFIC_SAVING),ct=_c(N.info.predefinedQualityLimitType$.pipe(Uh(c=>c===Hr.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===Hr.HIGH_QUALITY),lo=Yt(N.info.autoQualityLimitingAvailable$),Ct=Yt(N.info.availableQualities$),zt=Yt(N.info.availableQualitiesFps$),ei=Yt(N.info.chromecastState$),co=Yt(N.info.chromecastDeviceName$),yn=Yt(N.info.currentFormat$),Gi=Yt(N.info.throughputEstimation$),xo=Yt(N.info.videoBitrate$),si=Yt(N.info.intrinsicVideoSize$),xt=Yt(N.info.duration$),wo=Yt(N.info.isAudioAvailable$),ki=null,yi=N.info.isBuffering$,Ho=or(yi.getValue(),c=>{let x=yi.subscribe(D=>{D&&ki===null?ki=window.setTimeout(()=>{c(yi.getValue()),ki=null},se.loaderDelay):c(D)});return()=>{x.unsubscribe(),ki&&clearTimeout(ki)}}),Zi=()=>{ki&&clearTimeout(ki),ki=null},Ui=bi([xt,Jt],([c,x])=>x?-c:c),xn=bi([yo],([c])=>c===sd.PLAYING),wn=Yt(N.info.atLiveEdge$),Ri=Yt(N.info.atLiveDurationEdge$),rn=Yt(N.info.position$),So=bi([rn,xt],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),Co=bi([ei],([c])=>c===f2.CONNECTED),wr=Yt(N.info.availableVideoStreams$),rr=se.features.audioLanguages?Yt(N.info.availableAudioStreams$):or([]),Sn=Yt(N.info.currentVideoStream$),zn=Yt(N.info.currentAudioStream$),qn=c=>{c.language&&xp(c.language),N.setVideoStream(c)},uo=c=>{c.language&&xp(c.language),N.setAudioStream(c)},Fo=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(le=>"isDefault"in le&&le.isDefault)),x)return x;let D=Zg();return D&&(x=c.find(({language:le})=>D===le)),x!=null||(x=c.at(0)),x},Cn=!1;$e.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Cn&&c.length){let x=Fo(c);x&&(N.setAudioStream(x),Cn=!0)}}));let nt=!1;$e.add(N.info.availableVideoStreams$.subscribe(c=>{if(!nt&&c.length){let x=Fo(c);x&&(N.setVideoStream(x),nt=!0)}}));let Uo=de(void 0),sn=Yt(N.info.isAutoQualityEnabled$,c=>c&&Uo.set(void 0)),Tn=Yt(N.info.currentQuality$,()=>Uo.set(void 0)),sr=bi([Uo,Tn],([c,x])=>c!=null?c:x),zo=bi(yn,c=>c!==ad.MPEG),Wn=bi([Ct,zt,sn,sr,zo],([c,x,D,le,Fe])=>{let ut=[];Fe&&ut.push({value:"auto",displayValue:j("auto_quality_option"),selected:D});let Dt=c.filter(qt=>!_2(qt));for(let qt of Dt){let Nt=x[qt];ut.push({value:qt,displayValue:`${qt}${Nt?Nh(Nt):""}`,selected:D?!1:qt===le})}return ut}),an=Yt(N.info.currentPlaybackRate$),In=bi([an,wn,Ri],([c,x,D])=>{let le=D||C?1:se.controls.playbackRateMin,Fe=x?1:se.controls.playbackRateMax,ut=se.controls.playbackRateStep,Dt=[];for(let qt=le;qt<=Fe;qt+=ut)Dt.push({value:qt,displayValue:qt===1?j("playback_rate_1"):j("playback_rate",{multiplier:qt.toString(10)}),selected:c===qt});return Dt}),Di={displayValue:j("subtitles_off"),value:"off"},ji=de({...Di}),kn=se.features.subtitles?Yt(N.info.availableTextTracks$):or([]),Mo=Ug(),En=bi([kn,ji],([c,x],D)=>{var ut;let le=[],Fe=c.find(({id:Dt})=>Dt===x.value);if(Fe!=null&&Fe.url){let[,Dt]=(ut=Mo.find(Fe.url))!=null?ut:[];if(Dt){D(Dt);return}Se.download(Fe.url).then(qt=>{if(!qt||Se.isDestroyed())return;let Nt=new Bh,as=Fe.language;if(as){let A1=!!Fe.isAuto,M1=Nt.parse(qt,as);le.push({lang:as,subtitles:M1,isAuto:A1,id:Fe.id})}Mo.add(Fe.url,le),Ce(ji).value===x.value&&D(le)}).catch(qt=>{var Nt;(Nt=fe==null?void 0:fe.oneStat)==null||Nt.logError({errorType:"Subtitles download",fatal:!1}),Qe==null||Qe.report(qt,{errorType:"Subtitles download",fatal:!1})})}D(le)}),qo=bi([an,xn,ji],([c,x,D],le)=>{let Dt;if(N.info.isLive$.getValue()&&x&&D.value!==Di.value){let Nt=()=>{let as=1e3/(3*c);Dt=setTimeout(Nt,as),le(Date.now())};return Nt(),()=>clearTimeout(Dt)}}),Lo=bi([kn,ji],([c,x])=>{if(!c.length)return[];let D=[];for(let{language:le,isAuto:Fe,id:ut}of c){let Dt=le&&qc(le);le&&Dt&&D.push({displayValue:Fe?j("subtitles_auto",{language:Dt}):Dt,value:ut,selected:(x==null?void 0:x.value)===ut,isAuto:Fe})}return D.length?(D.unshift({...Di,selected:(x==null?void 0:x.value)===Di.value}),D):[]}),fi={available:[],prev:[]},Kn=()=>{var x,D;let c=N.experimental.getCurrentTime$.getValue();return(D=(x=c==null?void 0:c())!=null?x:De==null?void 0:De.currentTime)!=null?D:0},To=bi([Vt,ji,En,qo],([c,x,D,le])=>{var ut;let Fe=N.info.isLive$.getValue();if(Fe&&fi.prev!==D){let Dt=D.find(({id:Nt})=>Nt===x.value),qt=fi.prev.find(({id:Nt})=>Nt===x.value);if(Dt){let Nt={...Dt,subtitles:[...(ut=qt==null?void 0:qt.subtitles)!=null?ut:[],...Dt.subtitles]};fi.available=[Nt],fi.prev=D}}if(x&&x.value!==Di.value){let Dt=Fe?Kn():c,qt=Fe?fi.available:D;return Fh(Dt,x,qt,Fe)}}),ar=bi([To],([c])=>c!=null&&c.texts?c.texts:[]);$e.add(ji.subscribe(c=>{var x,D;if(c.value===Di.value)(x=l==null?void 0:l.onSubtitleOff)==null||x.call(l);else{let le=Object.entries(zc).find(([Fe,ut])=>ut===c.displayValue);(D=l==null?void 0:l.onSubtitleOn)==null||D.call(l,le?le[0]:"")}}));let ln=de(!0),dn=bi([nn,Ui,rn,Fi],([c,x,D,le])=>{var qt;let Fe=(qt=c==null?void 0:c.end)!=null?qt:0;if(!le)return Fe/x;let Dt=-D+le-x;return(Fe-Dt)/x}),lr=Yt(N.info.availableSources$),Wo=bi([lr],([c])=>Object.keys((c==null?void 0:c[ad.MPEG])||{}).length>0),Sr=()=>{var D,le,Fe;let c=Object.keys(((le=(D=N.info.availableSources$)==null?void 0:D.getValue())==null?void 0:le[ad.MPEG])||{}),x=g2(c)||T2.Q_144P;return(Fe=Ve.sources[ad.MPEG])==null?void 0:Fe[x]},Pn=()=>{var x;let c=Sr();if(c)ne.log("download video",{url:c}),Og(c,((x=Ve==null?void 0:Ve.meta)==null?void 0:x.title)||"video");else{let D="There is no URL for download video";ne.log("download video",{message:D}),W({message:D})}},Qn=()=>{W({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?ai(jn()):Vo(!c)},dr=()=>{var c;if(kt.ui.settingsMenu.visible$.set(!1),!Ce(kt.ui.settingsSubMenu.visible$)){let x=Ce(kt.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let le=Za(x),Fe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:le,position:Fe,name:"settings"})}}ne.log("close settings menu")},Cr=async(c,x=()=>Promise.resolve())=>{var Fe;kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),kt.ui.settingsMenu.visible$.set(!0),await x();let D=Ce(kt.ui.settingsMenu.ref$),le=ks();if((Fe=l==null?void 0:l.uiInfo)!=null&&Fe.onSettingsMenu&&D&&le){let Dt=Za(D),qt=Ya(D,le);l.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:qt,name:"settings"})}ne.log("open settings menu",{wasOpenedByKeyboard:c})},Gn=(c,x=!1)=>{var ut;kt.ui.settingsSubMenu.visible$.set(!1);let D=Ce(kt.ui.settingsMenu.ref$),le=ks(),Fe=Ce(kt.ui.settingsMenu.visible$);if((ut=l==null?void 0:l.uiInfo)!=null&&ut.onSettingsMenu&&D&&le)if(Fe&&!x){let qt=Za(D),Nt=Ya(D,le);l.uiInfo.onSettingsMenu({visible:!0,size:qt,position:Nt,name:"settings"})}else{let qt=Za(c),Nt={top:0,left:0,bottom:0,right:0},as=Ce(kt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:qt,position:Nt,name:as})}ne.log("close settings sub menu")},cn=(c,x)=>{var le;kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(x),kt.ui.settingsSubMenu.name$.set(c);let D=ks();if((le=l==null?void 0:l.uiInfo)!=null&&le.onSettingsMenu&&x&&D){let ut=Za(x),Dt=Ya(x,D);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:ut,position:Dt})}ne.log("open settings sub menu",{name:c})},jn=()=>{var x;let c=Math.max(se.volumeMinRestore,(x=bc())!=null?x:0);return c===0?se.volumeDefault:c},ai=c=>{let x=c===0?jn():c,D=N.info.muted$.getValue();W({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),D&&c>0&&!s&&(D=!1,$p(!1)),N.setVolume(c,D),ge.setVolume(c),vp(x)},Vo=c=>{let x=N.info.volume$.getValue();if(W({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c),ge.setVolume(c?0:x),$p(c),!c&&x===0){let D=jn();N.setVolume(D),vp(D),ge.setVolume(D)}},xi=de(!1),Yn=c=>{var x,D;ne.log("set looped",{isLooped:c}),xi.set(c),N.setLooped(c),(D=(x=l==null?void 0:l.uiInfo)==null?void 0:x.onLoopedChanged)==null||D.call(x,c)};Yn(Y);let vt=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Ot=(c,x=!1)=>{var D;W({message:`set autoplayNextEnabled, value: ${c}`}),ne.log("set autoplay next enabled",{autoplayNextEnabled:c}),kt.ui.autoplayNextEnabled$.set(c),eh(c),x&&((D=l==null?void 0:l.onSetAutoplayNextEnabled)==null||D.call(l,c))},Ei=c=>{W({message:`set timerNextVideoRunning, value: ${c}`}),ne.log("set timer next video running",{timerNextVideoRunning:c}),kt.ui.timerNextVideoRunning$.set(c)},Io=(c=!0)=>{var le;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(le=l==null?void 0:l.onPrevVideoClick)==null?void 0:le.call(l)}catch(Fe){W({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Rt("prev")||X()},rt=(c=!0)=>{var le;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(le=l==null?void 0:l.onNextVideoClick)==null?void 0:le.call(l)}catch(Fe){W({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Rt("next")||oe()},Rt=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:D,playbackStatusShow:le}}=se;return D&&le&&!x?(kt.ui.aboutToGoNextVideo.set(c),kt.ui.userActionsDisabled.set(!0),!0):!1},ui=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Ni=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},po=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},$i=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Pi=()=>{N.prepare()},mi=()=>{Fn(kt);let c=Ce(kt.ui.controls.disabledControls$),x=Ce(kt.playerPhase),D={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(W({message:"toggle play"}),x==="ads"){D.action="play",ne.log("toggle adman play",D),ge.togglePlay();return}let le=()=>{var ut;W({message:"toggle play, call player.play"}),D.action="play",N.play(),(ut=l==null?void 0:l.onPlay)==null||ut.call(l)},Fe=()=>{var ut;W({message:"toggle play, call player.pause"}),D.action="pause",N.pause(),(ut=l==null?void 0:l.onPause)==null||ut.call(l)};if(N.info.isEnded$.getValue()){if(W({message:"toggle play, video ended, seek to 0"}),Ze.next(),Xe.next(is.REWIND),C){P==null||P();return}N.seekTime(0),le()}else N.info.playbackState$.getValue()!==sd.PLAYING?le():Fe();ne.log("toggle play",D)},fo=(c,{changeReason:x="default",appliesTo:D="to-video"}={})=>{W({message:`set quality, quality: ${c}`}),ne.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(se.features.qualityDetailsSubMenuEnabled?($c({type:"exact_quality",quality:c,videoId:i},D),Dl(),N.setPredefinedQualityLimits(Hr.UNKNOWN)):gp(i,c),Uo.set(c),N.setQuality(c)):se.features.qualityDetailsSubMenuEnabled?x==="default"&&(Zn("auto_quality",D),Ce(oi)&&Xi(!1),Ce(ct)&&Ji(!1)):Dl()},Xi=(c,x="as-default")=>{W({message:`set trafficSavingEnabled, value: ${c}`}),ne.log("set traffic saving enabled",{trafficSavingEnabled:c});let D=c?Hr.TRAFFIC_SAVING:Hr.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(un(D,x),Rl(!1)):(N.setPredefinedQualityLimits(D),Rl(c))},Ji=(c,x="as-default")=>{W({message:`set highQualityEnabled, value: ${c}`}),ne.log("set high quality enabled",{highQualityEnabled:c}),un(c?Hr.HIGH_QUALITY:Hr.UNKNOWN,x)},un=(c,x)=>{c!==Hr.UNKNOWN&&(Ce(lo)&&!Ce(sn)&&fo("auto",{appliesTo:x,changeReason:"limit-changed"}),Zn(c,x)),N.setPredefinedQualityLimits(c)},Zn=(c,x)=>{$c({type:c,videoId:i},x),x==="as-default"&&$c({type:c,videoId:i},"to-video")},Xn=c=>{ne.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),se.features.saveRate&&ae&&!N.info.isLive$.getValue()&&Xg(c)},Tr=()=>{let c=Ce(In),x=c.findIndex(({selected:le})=>le);if(x===c.length-1)return;let D=c[x+1];Xn(D.value)},Ir=()=>{let c=Ce(In),x=c.findIndex(({selected:le})=>le);if(x===0)return;let D=c[x-1];Xn(D.value)},An=(c={...Di,selected:!1})=>{ne.log("set subtitles",{...c}),c&&c.value!==Di.value&&We.next(c.isAuto?c.value+"_auto":c.value),ji.set(c)},Mn=()=>{ne.log("toggle subtitles");let c=Ce(Lo),x=Ce(ji),D=Ce(At);if((x==null?void 0:x.value)===Di.value){let le=c.filter(Fe=>Fe.value!==Di.value).find(Fe=>Fe.value===D)||c[1];An(le)}else An()},ko=(c,x,D=!0)=>{var le;if(W({message:`seek to time, time: ${c}`}),ne.log("seek to time",{time:c,action:x,forcePrecise:D}),Xe.next(x),N.info.isLive$.getValue()){let Fe=N.info.duration$.getValue(),ut=Math.min(0,Fe+c);N.seekTime(ut,D)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(W({message:"seek after ended, call callbacks.onPlay"}),(le=l==null?void 0:l.onPlay)==null||le.call(l)),N.seekTime(Rm(c),D)}},kr=c=>{W({message:`seek to episode start time: ${c}`}),ne.log("seek to episode start time",{time:c}),ko(c,is.EPISODE,!0)},Ro=(c,x)=>{W({message:`seek to percent, percent: ${c}`}),ne.log("seek to percent",{percent:c,action:x});let D=Ce(Ui)*c;ko(D,x,!1)},cr=c=>{W({message:`seek external, time: ${c}`}),ne.log("seek external",{time:c}),Xe.next(is.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Er=c=>{var le,Fe;let x=(le=c.max)!=null?le:"none",D=(Fe=c.min)!=null?Fe:"none";W({message:`set auto quality limitation. Max: ${x}. Min: ${D}`}),ne.log("set auto quality limits",{max:x,min:D}),N.setAutoQualityLimits(c)},Pr=c=>{W({message:`seek external to episode start time: ${c}`}),ne.log("seek external to episode start time",{time:c}),ko(c,is.EPISODE,!0)},ur=c=>{W({message:`set playback rate to: ${c}`}),ne.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Yi=de(void 0),pn=de(!1),Fr=c=>{W({message:`start scrubbing, progress: ${c}`}),ne.log("start scrubbing",{progress:c}),pn.set(!0),pr(c)},pr=c=>{Yi.set(c)},st,Ht,Ai=()=>{Yi.set(void 0),pn.set(!1)},we=()=>{clearTimeout(Ht),clearTimeout(st),st=window.setTimeout(()=>{Ai()},500),De==null||De.removeEventListener("seeked",we)},It=c=>{W({message:`complete scrubbing, progress: ${c}`}),ne.log("complete scrubbing",{progress:c}),Ro(c,is.SLIDER),Ce(kt.ui.isMobile)&&Ce(kt.state.currentFormat$)===ad.HLS?(De==null||De.addEventListener("seeked",we),Ht=window.setTimeout(()=>{we()},300)):Ai()},pi=bi([Vt,Ui,Yi],([c,x,D],le)=>{le(b2(D)?D*x:c)}),vi=de(!1),Eo=()=>{vi.set(!0)},li=()=>{vi.set(!1)},ke=de({width:0,height:0}),Tt=bi([ke],([{width:c}],x)=>{let D=Mh(c);x(D)}),Zt=de(!1),wi=H.filter(c=>Hg(c)),ti=bi([Tt,Zt],([c,x])=>x?wi.filter(D=>!D.hideOnMobile):wi.filter(D=>{var le;return!((le=D.hideOnDesktopGridTypes)!=null&&le.includes(c))})),Ko=de(H.filter(c=>Fg(c))),fn=bi([Ko,Tt],([c,x])=>c.filter(D=>{var le;return!((le=D.hideOnDesktopGridTypes)!=null&&le.includes(x))})),Ar=bi([fn,ti],([c,x])=>[...se.features.additionalButtonsDesktopControlPanelRight?c.filter(D=>D.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?x.map((D,le)=>{var Fe;return{id:le,weight:le,type:"desktop-control-panel-right",testId:D.testId,icon:D.iconUrl,onClick:D.onClick,ariaLabel:(Fe=D.ariaLabel)!=null?Fe:D.tooltip,tooltipText:D.tooltip}}):[]]),Ln=de(G),Ur=bi([Ln],([c])=>se.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),va=(c,x)=>{let D=Ce(Ko).map(le=>le.id!==c?le:{...le,...x});Ko.set(D)},Cs=c=>{let x=Ce(Ko);if(x.some(D=>D.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),Ko.set(x)},nl=c=>{let x=Ce(Ko);if(!x.some(D=>D.id===c)){W({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),Ko.set(x)},ga=c=>{Xe.next(is.LIVE),W({message:"live switch to low latency "+c}),ne.log("live switch to low latency "+c),N.setLiveLowLatency(c)},rl=(c,x)=>{let D=Ce(Ln).map(le=>le.id!==c?le:{...le,...x});Ln.set(D)},Ts=c=>{let x=Ce(Ln);if(x.some(D=>D.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),Ln.set(x)},sl=c=>{let x=Ce(Ln);if(!x.some(D=>D.id===c)){W({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),Ln.set(x)},Jn=de(O),ha=bi([Jn],([c])=>se.features.additionalContextMenuItems?c:[]),Is=(c,x)=>{let D=Ce(Jn).map(le=>le.id!==c?le:{...le,...x});Jn.set(D)},bt=c=>{let x=Ce(Jn);if(x.some(D=>D.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)},_t=c=>{let x=Ce(Jn);if(!x.some(D=>D.id===c)){W({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(D=>D.id!==c),Jn.set(x)},eo=bi([Zt,Wt],([c,x],D)=>{D(c&&x)}),Do=()=>{Xe.next(is.LIVE),W({message:"switch to active live"}),ne.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==sd.PLAYING&&kt.actions.internal.togglePlay()},to=()=>{ne.log("skip adman"),ge.skip()},ni=(c=!0)=>{Fn(kt),W({message:`switch from ads to video, callPlay: ${c}`}),ne.log("switch from ads to video",{callPlay:c}),be.set("video"),c&&N.play()},Bi=()=>{Fn(kt),W({message:"switch from video to ads"}),ne.log("switch from video to ads"),kt.actions.internal.pause(),dt(),be.set("ads")},ss=c=>{Fn(kt);let x=c?"LiveWaitingStart":"thumb";ne.log("set live waiting start",{state:c,playerPhase:x}),be.set(x)},al=c=>{Fn(kt);let x=c?"LiveWaitingRecover":"thumb";ne.log("set live waiting recover",{state:c,playerPhase:x}),be.set(x)},Dd=c=>{Fn(kt);let x=c?"LiveWaitingRecord":"thumb";ne.log("set live waiting record",{state:c,playerPhase:x}),be.set(x)},fu=()=>(Fn(kt),ne.log("get debug text data"),Ng(N,Ve,kt)),Nd=()=>(Fn(kt),JSON.stringify(Me.getFinishedSpans())),mu=()=>(Fn(kt),Bg(N,Ve,kt)),ks=()=>De,Bd=()=>{W({message:"toggle chromecast"}),ne.log("toggle chromecast"),N.toggleChromecast()},ll=c=>{var D;if(Fn(kt),N.info.isEnded$.getValue())return;let x=!c;if(Ce(kt.playerPhase)==="ads"){W({message:`pause ads, internalCall: ${x}`}),ne.log("pause ads",{internalCall:x}),ge.pause();return}W({message:`pause video, internalCall: ${x}`}),ne.log("pause video",{internalCall:x}),x&&((D=l==null?void 0:l.onPause)==null||D.call(l)),N.pause()},Od=c=>{var D;Fn(kt);let x=!c;if(Ce(kt.playerPhase)==="ads"){W({message:`play ads, internalCall: ${x}`}),ne.log("play ads",{internalCall:x}),ge.play();return}W({message:`play video, internalCall: ${x}`}),ne.log("play video",{internalCall:x}),x&&((D=l==null?void 0:l.onPlay)==null||D.call(l)),N.play()},Hd=c=>{Fn(kt);let x=!c;if(Ce(kt.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()},Fd=(c,x)=>{Fn(kt),W({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ne.log("first start",{showAds:c,external:x}),c?be.set("ads"):(be.set("video"),x?N.play():kt.actions.internal.togglePlay())},_a=()=>(W({message:"getting time codes"}),m),Ud=()=>{let c=_a();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(D=>D.time>x)},vu=c=>{let x=c;x||(x=Ud());let D=N.info.position$.getValue();ne.log("seek to next episode",{currentTime:D,...x}),x&&(W({message:"seek to next episode"}),ko(x.time,is.EPISODE,!0))},zd=()=>{let c=_a();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),D=c.findIndex(Fe=>Fe.time>x),le=D===-1?c.length-2:D-2;if(!(le<0))return c[le]},Ke=c=>{let x=c;x||(x=zd());let D=N.info.position$.getValue();ne.log("seek to prev episode",{currentTime:D,...x}),x&&(W({message:"seek to prev episode"}),ko(x.time,is.EPISODE,!0))},ri=()=>(W({message:"getting preview thumbs data"}),ne.log("get preview thumbs data",{...$}),$),Qo=async()=>{let c=te==null?void 0:te.isActive(),x="none";te!=null&&te.isActive()?(x="remove",await(te==null?void 0:te.remove())):(x="request",await(te==null?void 0:te.request())),ne.log("toggle picture in picture",{isActive:c,action:x})},Es=(c=-90)=>{ne.log("rotate video",{alphaDiff:c}),Je.update(x=>x+c)},mo=de([]);T==null||T.subscribe(c=>{let x=[];for(let D=0;D<c.length;D++){let{range:[le,Fe],subjects:ut}=c[D];D===0&&le!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:le/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!ut.length||ut.every(Dt=>Dt.isRemoved):!ut.length}),Fe!==1/0&&x.push({time:Fe/1e3,text:"",interactive:!1,completed:!0})}mo.set(x)});let k1=de(!1);E==null||E.subscribe(c=>{c&&Ce(pn)&&Ai()});let Rm=c=>{if(!C)return c;let x=Ce(mo),D=Ce(Ui),Fe=Ce(rn)/D,ut=x.find(Dt=>Dt.interactive&&!Dt.completed&&Dt.time>Fe);return typeof(ut==null?void 0:ut.time)=="number"?Math.min(c,ut.time-.05):c},E1=()=>{kt.ui.episodes.panelOpened$.set(!1)},P1=()=>{ne.log("destroy store"),clearTimeout(Ht),clearTimeout(st),$e.unsubscribe(),jt.unsubscribe(),N.destroy(),ge.destroy(),fe==null||fe.destroy(),Qe==null||Qe.destroy(),Pt.unsubscribe(),mt==null||mt.disconnect(),mt=null,Se.destroy()},kt={interfaceLanguage$:At,isCyrillicRelatedInterface$:_e,initVideo:ot,videoId:i,isClip:o,playerPhase:re,vsid:Ne,state:{positionExact$:Vt,positionWithScrubbing$:pi,duration$:Ui,playbackState$:yo,isPlaying$:xn,isLoaderVisible:Ho,bufferedProgress$:dn,isLive$:Jt,canChangePlaybackSpeed$:di,isActiveLive$:wn,isOldestAvailableLive$:Ri,isRewindableLive$:So,isEnded$:Z,muted$:ci,volume$:ii,trafficSavingEnabled$:oi,highQualityEnabled$:ct,autoQualityLimitingAvailable$:lo,availableVideoStreams$:wr,availableAudioStreams$:rr,videoStream$:Sn,audioStream$:zn,currentQuality$:sr,isAutoQualityEnabled$:sn,availableQualities$:Wn,currentPlaybackRate$:an,availablePlaybackRates$:In,currentSubtitle$:ji,availableTextTracks$:kn,availableSubtitlesList$:Lo,currentSubtitleCaptions$:ar,isAutoSubtitleCaptionVisible$:ln,chromecastState$:ei,chromecastDeviceName$:co,chromecastConnected$:Co,currentFormat$:yn,throughputEstimation$:Gi,videoBitrate$:xo,videoSize$:si,errorLog$:ft,crashed$:Wt,isAudioAvailable$:wo,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:lr,hasMpegSources$:Wo,isInteractive:C,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!Ce(mo).length,interactiveEpisodes$:mo,isInteractiveTime$:E?Yt(E):de(!1),isInteractiveExpectation$:k1,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:V,looped$:xi,loadedMetadata$:de(!1),isAutoQualityAvailable$:zo},ui:{t:j,controlsVisible:de(!1),touched:de(!1),controls:{prevButton:de(void 0),playButton:de(void 0),replayButton:de(void 0),nextButton:de(void 0),playPrevChapterButton:de(void 0),seekToInteractiveButton:de(void 0),interactiveGraphButton:de(void 0),liveButton:de(void 0),time:de(void 0),episodes:de(void 0),volume:de(void 0),subtitles:de(void 0),settings:de(void 0),context:de(void 0),chromecast:de(void 0),pip:de(void 0),fullscreen:de(void 0),vkLogo:de(void 0),interactiveTimeIndicator:de(void 0),timeline:de(void 0),autoplayNextToggle:de(void 0),additionalButtons:H.length?H.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:Re},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:je,isFullscreenOpenedByKeyboard:it,rotateAlpha:Je,isAutoplay:de(!1),debugPanelVisible:de(!1),episodes:{panelOpened$:de(!1),openedByKeyboard$:de(!1)},contextMenu:{visible$:de(!1),btnRef$:de(void 0),openedByBtnKeyboard$:de(!1),openedByHotKey$:de(!1),lastActiveElem$:de(void 0),showContextMenuBtn$:de(!1),position$:de({top:0,left:0})},playerSize:ke,isMobile:Zt,mobileNotReportControlHidden$:eo,mobileUnmuteButtonExpanded:de(!1),mobileUnmuteButtonVisible:de(!1),icon3DVideoVisible:de(!1),scrubbingInProgress:pn,volumeChangingInProgress:vi,is3DVideo:de(!1),currentGridType$:Tt,additionalButtonsDeprecated$:ti,additionalDesktopControlPanelRightButtons$:Ar,additionalSettingsMenuItems$:Ur,additionalContextMenuItems$:ha,interactiveHideMobileControls:de(!1),overlayContainer$:de(void 0),startedByKeyboard$:de(!1),autoplayNextEnabled$:de(!1),timerNextVideoRunning$:de(!0),settingsMenu:{visible$:de(!1),ref$:de(void 0),openedByBtnKeyboard$:de(!1)},settingsSubMenu:{visible$:de(!1),ref$:de(void 0),name$:de(void 0)},aboutToGoNextVideo:de(void 0),userActionsDisabled:de(!1)},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:te,annotationsApi:Q},actions:{internal:{preload:Pi,firstStart:c=>Fd(c,!1),play:()=>Od(!1),pause:()=>ll(!1),togglePlay:mi,toggleMuted:Qn,openSettingsMenu:Cr,closeSettingsMenu:dr,openSettingsSubMenu:cn,closeSettingsSubMenu:Gn,setVolume:ai,startVolumeChanging:Eo,stopVolumeChanging:li,setVideoStream:qn,setAudioStream:uo,setQuality:fo,setTrafficSavingEnabled:Xi,setHighQualityEnabled:Ji,setPlaybackRate:Xn,incrementPlaybackRate:Tr,decrementPlaybackRate:Ir,setSubtitle:An,toggleSubtitle:Mn,togglePictureInPicture:Qo,startScrubbing:Fr,progressScrubbing:pr,completeScrubbing:It,toggleChromecast:Bd,switchToActiveLive:Do,switchFromAdsToVideo:ni,switchFromVideoToAds:Bi,skipAd:to,setLiveWaitingStart:ss,setLiveWaitingRecover:al,setLiveWaitingRecord:Dd,getDebugTextData:fu,getTraceTextData:Nd,getDebugPanelData:mu,getVideoElement:ks,seekTime:(c,x,D)=>ko(c,x,D),clearDelayedBufferingCheckTimeout:Zi,seekEpisodeStartTime:kr,seekToPercent:Ro,getNextEpisode:Ud,seekToNextEpisode:vu,getPrevEpisode:zd,seekToPrevEpisode:Ke,startLogging:Vi,stopLogging:Ii,startCameraManualRotation:Hi,stopCameraManualRotation:Ki,moveCameraFocusPX:Qi,holdCamera:Mt,releaseCamera:yt,getVideoEpisodes:_a,getPreviewThumbsData:ri,downloadVideo:Pn,addLanguage:wp,setLanguage:Kt,nextMovie:Ye,videoRotate:Es,correctSeekTimeToInteractive:Rm,replayInteractive:P,setLooped:Yn,reportProblem:vt,setAutoplayNextEnabled:Ot,setTimerNextVideoRunning:Ei,prevVideoClick:Io,nextVideoClick:rt,nextVideoAnnouncementShow:ui,nextVideoAnnouncementClick:Ni,nextVideoAnnouncementAuto:po,nextVideoAnnouncementCancel:$i},external:{firstStart:c=>Fd(c,!0),play:()=>Od(!0),pause:()=>ll(!0),stop:()=>Hd(!0),seekTime:c=>cr(c),seekEpisodeStartTime:c=>Pr(c),setPlaybackRate:c=>ur(c),setAutoQualityLimits:c=>Er(c),setMuted:Vo,toggleSubtitle:Mn,setVolume:ai,returnFocusToEpisodes:E1,updateAdditionalSettingsItem:rl,addAdditionalSettingsItem:Ts,removeAdditionalSettingsItem:sl,updateAdditionalContextItem:Is,addAdditionalContextItem:bt,removeAdditionalContextItem:_t,updateAdditionalButton:va,addAdditionalButton:Cs,removeAdditionalButton:nl,setLiveLowLatency:ga}},callbacks:l,setUiCallbacks:c=>{et={...c}},getAdmanWrapper:()=>ge,getLogger:()=>ue,getPlayer:()=>N,destroy:P1};return kt};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}=Ya(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 Xa=(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 Gc=async(t,e,i)=>{await ho(),e&&i&&(i.focus(),t.set(!1))};var A2=xe('<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 $f(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=A2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 yf(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=Te(),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);qe(()=>{r(_)&&$t(()=>{u.set(r(_))})});let w=E=>{let P=bs(E),A=Sh(r(_));$.set(A),p.set(P),l.set(!n())},y=()=>{m.set(!0)},C=()=>{m.set(!1)},T=v(()=>n()?"opened":"");Lt(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)=>{$f(E,{})},$$slots:{default:!0}}),z(),o()}var M2=t=>{t.stopPropagation()},L2=L("<div><!> <div></div> <div></div></div>"),V2={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;}
230
231
 
231
232
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
232
233
  }
@@ -251,8 +252,8 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
251
252
  opacity: 0;
252
253
  }
253
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);
254
- 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 nd(t,e){var D;q(e,!0),Q(t,w2);let[i,o]=He(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(V,"$currentGridType$",i),d=()=>C(A,"$isInteractiveTime$",i),l=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(P,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(k,"$isFullscreen",i),_=v(e,"ref",15,void 0),u=ee(void 0),$=Se(),w=so(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,k=$.ui.isFullscreen,A=$.state.isInteractiveTime$,P=w.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(D=$.callbacks)==null?void 0:D.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,z=m(()=>!n()&&a()),Y=m(()=>Ss(s(),"s")),F=m(()=>!d()||!!l()||r(z)),j=ee(!1);qe(()=>{O(j,me(r(F)))});let X=()=>{O(j,!0)},oe=()=>{var de;pe(),(de=r(u))==null||de.addEventListener("animationiteration",X,{once:!0})},pe=()=>{var de;O(j,!1),(de=r(u))==null||de.removeEventListener("animationiteration",X)},le=de=>{P.set(de)},Ve=m(()=>p()&&!r(F));qe(()=>{p()?oe():pe()});let Pe=()=>{r(F)||(P.set(!0),T==null||T())};hn(()=>{P.clearTimeout(),pe()});let J=()=>{P.set(!1)},Me=H("tooltip_interactive_interaction_time_indicator");var Z=x2();let B;Z.__mousemove=[y2],Z.__click=Pe;var Re=h(Z);Po(Re,{tooltipContent:Me,get tooltipActive(){return r(Ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return _()},set ref(de){_(de)},children:(de,Ee)=>{Gl(de,{completed:!0})},$$slots:{default:!0}});var ne=M(Re,2);let Ie;dt(ne,de=>_(de),()=>_());var Ne=M(ne,2);let fe;dt(Ne,de=>O(u,de),()=>r(u)),g(Z),I((de,Ee,Qe)=>{B=te(Z,1,"interactive-episode-icon-animated svelte-od3veb",null,B,de),Ie=te(ne,1,"ref-block svelte-od3veb",null,Ie,Ee),fe=te(Ne,1,"pulse svelte-od3veb",null,fe,Qe)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(Y)}),()=>({hidden:r(F)}),()=>({paused:r(j)})]),Tt("mouseleave",Z,J),b(t,Z),W(),o()}rt(["mousemove","click"]);function Kc(t,e){q(e,!0);let i=v(e,"tooltipEnabled",3,!0),o=v(e,"disabled",3,!1),n=v(e,"className",3,void 0),a=v(e,"ref",15);Po(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=m(()=>e.buttonComponent);var f=ue(l);yi(f,()=>r(p),(_,u)=>{u(_,is(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(s,l)},$$slots:{default:!0}}),W()}var rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var C2=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 xf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=C2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 Cs(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),a=v(e,"height",3,"24"),s=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");xf(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 T2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),k2=L("<!> <!>",1),I2={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){q(e,!0),Q(t,I2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=Se().ui.t,d=m(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=m(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),p=m(()=>`btn-${o()?"m":"d"}--${e.type}`);It(t,{get className(){return r(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(l)},get ref(){return i()},set ref(f){i(f)},children:(f,_)=>{var u=k2(),$=ue(u);{var w=k=>{var A=T2();b(k,A)};R($,k=>{o()&&k(w)})}var y=M($,2);let S=m(()=>e.type==="prev");Cs(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,u)},$$slots:{default:!0}}),W()}var E2=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 rd(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=E2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 A2}from"@vkontakte/videoplayer-shared/es2018";var P2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),M2=L("<!> <div><!></div>",1),L2={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 Ya(t,e){q(e,!0),Q(t,L2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),a=v(e,"className",3,""),s=v(e,"click",3,A2),d=H("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);It(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var _=M2(),u=ue(_);{var $=k=>{var A=P2();b(k,A)};R(u,k=>{o()&&k($)})}var w=M(u,2);let y;var S=h(w);rd(S,{}),g(w),I(k=>y=te(w,1,"svelte-1ot3duq",null,y,k),[()=>({mobile:o()})]),b(p,_)},$$slots:{default:!0}}),W()}var V2=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 Ar(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=V2(),d=h(s);g(s),I(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}var R2=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 ss(t,e){"use strict";let i=v(e,"width",3,"24"),o=v(e,"height",3,"24"),n=v(e,"viewBox",3,"0 0 24 24"),a=v(e,"fill",3,"var(--btn-color)");var s=R2(),d=h(s);g(s),I(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}import{noop as N2}from"@vkontakte/videoplayer-shared/es2018";var B2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),D2=L("<!> <div><!></div>",1),O2={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){q(e,!0),Q(t,O2);let[i,o]=He(),n=()=>C(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=so(),s=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),l=v(e,"isPlaying",3,!1),p=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,N2),$=Se().ui.t,{toggle:w}=a,y=m(()=>w),S=m(()=>n()!==null),k=m(()=>r(S)?n():l()),A=m(()=>r(k)?$("tooltip_pause"):$("tooltip_play")),P=m(()=>r(k)?ss:Ar),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(y):_());It(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return p()},get ariaLabel(){return r(A)},get ariaKeyShortCut(){return Fr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,z)=>{var Y=D2();let F=m(()=>r(P));var j=ue(Y);{var X=Ve=>{var Pe=B2();b(Ve,Pe)};R(j,Ve=>{d()&&Ve(X)})}var oe=M(j,2);let pe;var le=h(oe);yi(le,()=>r(F),(Ve,Pe)=>{Pe(Ve,{})}),g(oe),I(Ve=>pe=te(oe,1,"svelte-1ot3duq",null,pe,Ve),[()=>({mobile:d()})]),b(V,Y)},$$slots:{default:!0}}),W(),o()}var H2=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 wf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=H2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 sd(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");It(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)=>{wf(d,{})},$$slots:{default:!0}}),W()}var F2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),U2={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 ad(t,e){q(e,!0),Q(t,U2);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;It(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var u=F2(),$=h(u);let w;var y=h($);{var S=A=>{Ar(A,{width:"14",height:"14",fill:"#000"})},k=A=>{ss(A,{width:"14",height:"14",fill:"#000"})};R(y,A=>{n()?A(S):A(k,!1)})}g($),g(u),I(A=>w=te($,1,"toggler svelte-et3q1q",null,w,A),[()=>({enabled:n()})]),b(f,u)},$$slots:{default:!0}}),W(),o()}var z2=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 Sf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=z2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 ld(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=H("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");It(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)=>{Sf(d,{})},$$slots:{default:!0}}),W()}var q2=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 Cf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=q2();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 W2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Tf(t,e){Q(t,W2);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Cf(t,{get"data-testid"(){return r(o)}})}function dd(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=v(e,"graphIsOpened",3,!1),d=Se().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=m(()=>o()?"hidden":"");It(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(f){i(f)},children:(f,_)=>{let u=m(()=>!!a());Tf(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),W()}import{PlaybackState as Uh}from"@vkontakte/videoplayer-core/es2018";function cd(t,e){q(e,!0);let[i,o]=He(),n=()=>C(p,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=Se(),p=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,u=m(()=>()=>{if(!s()){f();return}n()===Uh.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===Uh.PLAYING);It(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:(S,k)=>{Rl(S,{get isActive(){return s()}})},$$slots:{default:!0}}),W(),o()}import{noop as zh}from"@vkontakte/videoplayer-shared/es2018";var K2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Q2=L('<img class="icon" aria-hidden="true">');function aa(t,e){"use strict";let i=ee(!1),o=()=>{O(i,!0)};var n=Fe(),a=ue(n);{var s=l=>{var p=K2();b(l,p)},d=l=>{var p=Q2();I(()=>Oe(p,"src",e.icon)),Tt("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){q(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,zh),n=v(e,"ref",15),a=m(()=>o()===zh),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Po(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 f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});It(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(_,u)=>{aa(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),W()}var qh=t=>!!t.buttonComponent;var as={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Z2=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),X2={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 Af(t,e){var ks,pa;q(e,!0),Q(t,X2);let[i,o]=He(),n=()=>C(ci,"$disabledControls$",i),a=()=>C(zt,"$adPlaybackState",i),s=()=>C(Jt,"$playbackState$",i),d=()=>C(ni,"$currentSubtitle$",i),l=()=>C(ei,"$isEnded$",i),p=()=>C(qn,"$currentGridType$",i),f=()=>C(Mi,"$isLive$",i),_=()=>C(Hi,"$chromecastState$",i),u=()=>C(Lo,"$isPictureInPictureActive",i),$=()=>C(Vo,"$pictureInPictureType$",i),w=()=>C(Li,"$availableSubtitlesList$",i),y=()=>C(Gi,"$contextMenuOpenedByKeyboard$",i),S=()=>C(lo,"$showContextMenuBtn$",i),k=()=>C(jt,"$playerSize",i),A=()=>C(Oi,"$isRewindableLive$",i),P=()=>C(Mo,"$isActiveLive$",i),E=()=>C(sn,"$graphIsOpened$",i),T=()=>C(ao,"$contextMenuVisible$",i),V=()=>C(co,"$isFullscreen",i),z=()=>C(xo,"$autoplayNextEnabled",i),Y=()=>C(r(zo),"$prevButton",i),F=()=>C(r(mr),"$replayButton",i),j=()=>C(r(Rr),"$playButton",i),X=()=>C(r(tt),"$nextButton",i),oe=()=>C(r(pt),"$playPrevChapterButton",i),pe=()=>C(r(Si),"$seekToInteractiveButton",i),le=()=>C(r(Ji),"$interactiveGraphButton",i),Ve=()=>C(r(zi),"$liveButton",i),Pe=()=>C(r(So),"$time",i),J=()=>C(r(Co),"$episodes",i),Me=()=>C(r(qo),"$vkLogo",i),Z=()=>C(r(To),"$volume",i),B=()=>C(r(di),"$subtitles",i),Re=()=>C(r(Ze),"$settings",i),ne=()=>C(r(At),"$context",i),Ie=()=>C(r(qi),"$fullscreen",i),Ne=()=>C(r(hi),"$chromecast",i),fe=()=>C(yo,"$additionalDesktopControlPanelRightButtons$",i),D=()=>C($n,"$isInteractiveTime$",i),de=()=>C(Et,"$settingsMenuVisible",i),Ee=()=>C(un,"$settingButtonRef$",i),Qe=()=>C(Fo,"$startedByKeyboard$",i),st=()=>C(Ke,"$isAudioAvailable$",i),Ae=()=>C(re,"$fakeIsPlaying$",i),$e=()=>C(Wn,"$seekToInteractiveDisabledTooltip$",i),Le=()=>C(xt,"$adPosition",i),je=()=>C(Ct,"$position$",i),ct=()=>C(ui,"$adDuration",i),ot=()=>C(Xe,"$duration$",i),Rt=v(e,"playerControlsWrapperRef",15,void 0),nt=v(e,"playerControlsRef",15,void 0),$t=v(e,"isAds",3,!1),Ft=v(e,"logoTargetUrl",3,""),Wt=v(e,"isOneVideoPlaylist",3,!1),Be=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:re}=so(),K=Se(),se=so(),he=qt(),Ce=K.actions.internal.toggleMuted,De=K.actions.internal.togglePlay,ut=K.actions.internal.pause,Ut=K.actions.internal.toggleSubtitle,Ge=(ks=K.callbacks)==null?void 0:ks.onAudioDoesNotExistHint,at=(pa=K.callbacks)==null?void 0:pa.onAudioDisabledHint,Xe=K.state.duration$,Ct=K.state.positionWithScrubbing$,Jt=K.state.playbackState$,Ke=K.state.isAudioAvailable$,lt=K.state.isAudioDisabled,ei=K.state.isEnded$,Mi=K.state.isLive$,Mo=K.state.isActiveLive$,Oi=K.state.isRewindableLive$,{isActive$:Lo,type$:Vo}=se.pictureInPicture$,Et=K.ui.settingsMenu.visible$,gt=K.ui.settingsMenu.openedByBtnKeyboard$,U=K.ui.controls,Kt=K.actions.internal.getVideoEpisodes(),Hi=K.state.chromecastState$,Li=K.state.availableSubtitlesList$,ni=K.state.currentSubtitle$,ci=U.disabledControls$,ao=K.ui.contextMenu.visible$,lo=K.ui.contextMenu.showContextMenuBtn$,Gi=K.ui.contextMenu.openedByBtnKeyboard$,Fo=K.ui.startedByKeyboard$,Nt=K.ui.t,ui=K.ads.duration,xt=K.ads.position,zt=K.ads.playbackState,co=K.ui.isFullscreen,jt=K.ui.playerSize,qn=K.ui.currentGridType$,yo=K.ui.additionalDesktopControlPanelRightButtons$,xo=K.ui.autoplayNextEnabled$,ri=K.actions.internal.getVideoElement,bt=K.actions.internal.replayInteractive,gi=K.actions.internal.prevVideoClick,Ei=K.actions.internal.nextVideoClick,Vi=K.state.isInteractive,$n=K.state.isInteractiveTime$,wi=K.state.showInteractiveGraph,Yi=K.state.showSeekToInteractive,rn=K.state.showPlayPrevChapter,yn=K.state.showInteractiveTimeIndicator,Ai=K.state.playPrevChapterDisabledTooltip,Wn=se.seekToInteractiveDisabledTooltip$,sn=se.graphIsOpened$,wo=he.features.interactiveResponsiveUi,xn=m(()=>n().has("EPISODE_BUTTON")),Mr=m(()=>n().has("GRAPH_BUTTON")),cr=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Kn=m(()=>n().has("PLAY_BUTTON")),wn=m(()=>n().has("REPLAY_BUTTON")),an=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Sn=()=>K.actions.internal.toggleChromecast(),uo=m(()=>$t()?a()==="playing":s()===If.PLAYING),Je=m(()=>d().value!=="off"),ln=m(()=>l()&&!$t()||Vi),Qn=m(()=>wo?r(ln)&&Di(p(),"m"):r(ln)),Gn=m(()=>!l()||Vi||$t()),Cn=m(()=>Di(p(),"m")),dn=m(()=>e.showNextPrevButtons&&Di(p(),"m")&&!$t()&&e.nextButtonActive),cn=m(()=>e.showNextPrevButtons&&Di(p(),"m")&&!$t()&&e.prevButtonActive),Uo=m(()=>!$t()&&!!f()),Fi=m(()=>_()!==Wh.NOT_AVAILABLE&&!(u()&&$()===1)&&Di(p(),"m")&&!Vi),Ui=m(()=>e.showAutoplayNext&&!Wt()&&Di(p(),"s")),Yn=m(()=>w().length>0&&Di(p(),"m")),Tn=m(()=>y()||S()),jn=m(()=>Di(p(),"s")&&!$t()),ur=m(()=>!e.logoHidden&&!$t()),ji=m(()=>he.features.fullscreen&&(e.logoHidden||Di(p(),wo?"xs":"s"))&&!(u()&&$()===1)&&(Vi?Be():!0)),Zi=m(()=>(!f()||$t())&&!(he.features.interactiveHideTime&&Vi)),kn=m(()=>k().width>100),In=m(()=>wi&&Di(p(),"m")),po=m(()=>wo?Yi&&Di(p(),"s"):Yi),Xi=m(()=>wo?rn&&Di(p(),"s"):rn),En=m(()=>!$t()&&!f()&&!!(Kt!=null&&Kt.length)&&r(Cn)&&!r(xn)),Ro=m(()=>!A()||!!P()),Lr=m(()=>E()?Nt("tooltip_interactive_graph_on"):Nt("tooltip_interactive_graph_off")),An=m(()=>T()?Nt("aria_label_context_menu_close"):Nt("aria_label_context_menu_open")),pr=(mt,ht)=>mt?ht&&ht===If.PAUSED?Nt("tooltip_play"):"":Nt("tooltip_live"),Pn=m(()=>pr(r(Ro),s())),Mn=m(()=>he.logoType==="vk_video"?Nt("tooltip_vk_video_logo"):Nt("tooltip_vk_logo")),Vr=m(()=>r(Je)?Nt("tooltip_subtitles_on"):Nt("tooltip_subtitles_off")),Zn=m(()=>V()?Nt("tooltip_fullscreen_on"):Nt("tooltip_fullscreen_off")),fr=m(()=>_()===Wh.CONNECTED?Nt("tooltip_chromecast_on"):Nt("tooltip_chromecast_off")),Xn=m(()=>z()?Nt("tooltip_autoplay_on"):Nt("tooltip_autoplay_off")),Ln=ee(0),ti=me({}),zo=m(()=>U.prevButton),mr=m(()=>U.replayButton),Rr=m(()=>U.playButton),tt=m(()=>U.nextButton),pt=m(()=>U.playPrevChapterButton),Si=m(()=>U.seekToInteractiveButton),Ji=m(()=>U.interactiveGraphButton),zi=m(()=>U.liveButton),So=m(()=>U.time),Co=m(()=>U.episodes),qo=m(()=>U.vkLogo),To=m(()=>U.volume),di=m(()=>U.subtitles),Ze=m(()=>U.settings),At=m(()=>U.context),qi=m(()=>U.fullscreen),hi=m(()=>U.chromecast),_i=m(()=>({prevButton:Y()?Y().right-Y().left:0,replayButton:F()?F().right-F().left:0,playButton:j()?j().right-j().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:oe()?oe().right-oe().left:0,seekToInteractiveButton:pe()?pe().right-pe().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:Ve()?Ve().right-Ve().left:0,time:Pe()?Pe().right-Pe().left:0,episodes:J()?J().right-J().left:0,vkLogo:Me()?Me().right-Me().left:0,volume:Z()?Z().right-Z().left:0,subtitles:B()?B().right-B().left:0,settings:Re()?Re().right-Re().left:0,context:ne()?ne().right-ne().left:0,fullscreen:Ie()?Ie().right-Ie().left:0,chromecast:Ne()?Ne().right-Ne().left:0,additionalButtons:fe().length?fe().reduce(mt=>[...mt,40],[]):[]})),Wi=ee(0);qe(()=>{(!r(Wi)||r(Wi)<r(_i).time)&&_t(()=>O(Wi,me(r(_i).time)))});let No=ee(!1);qe(()=>{let mt=0;r(En)&&(Di(p(),"xl")?mt=r(_i).time:mt=60);let ht=r(_i).prevButton+r(_i).playButton+r(_i).nextButton+r(_i).seekToInteractiveButton+r(_i).interactiveGraphButton+r(_i).liveButton+r(Wi)+mt;O(No,me(r(Zi)&&r(Ln)>=ht))});let eo=m(()=>r(No)&&Di(p(),"m")),Jn=j2(qc,260);qe(()=>{k(),D(),Jn(ri(),U,ti,e.showControls)});let un=ae();qe(()=>{de(),Ee()&&_t(()=>Fa(Ee(),de(),gt))});let vr;qe(()=>{Qe(),_t(()=>Wc(Fo,Qe(),vr))});function ko(){xs({isAudioDisabled:lt,audioDisabledHintCallback:at,isAudioAvailable:st(),audioIsNotExistHintCallback:Ge})&&Ce()}let gr=Vi?bt:De,hr=m(()=>Ae()!==null),_r=m(()=>r(hr)?Ae():r(uo)),Nr=m(()=>r(_r)?Nt("tooltip_pause"):Nt("tooltip_play")),Wo=Nt("tooltip_episodes"),br=m(()=>{var mt,ht,Ki,Go;return r(cn)?{id:"prevButton",type:"desktop-control-panel-left",weight:rs.prevButton,buttonComponent:sa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:gi.bind(null,!0)},tooltipEnabled:!((ht=(mt=K.callbacks)==null?void 0:mt.uiInfo)!=null&&ht.onPrevButtonMouseEnter)&&!((Go=(Ki=K.callbacks)==null?void 0:Ki.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var Qi,si,Ti;(Ti=(si=(Qi=K.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:si.onPrevButtonMouseEnter)==null||Ti.call(si,ra(ri(),ti,"prevButton",e.showControls))},mouseLeave:()=>{var Qi,si,Ti;(Ti=(si=(Qi=K.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:si.onPrevButtonMouseLeave)==null||Ti.call(si,ra(ri(),ti,"prevButton",e.showControls))},tooltipText:Nt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),er=m(()=>r(Qn)?{id:"replayButton",type:"desktop-control-panel-left",weight:rs.replayButton,buttonComponent:Ya,buttonComponentProps:{disabled:r(wn),click:gr},tooltipText:Nt("tooltip_restart"),disabled:r(wn)}:void 0),tr=m(()=>r(Gn)?{id:"playButton",type:"desktop-control-panel-left",weight:rs.playButton,buttonComponent:ja,buttonComponentProps:{disabled:r(Kn),isPlaying:r(uo),click:De},tooltipText:r(Nr),disabled:r(Kn)}:void 0),$r=m(()=>{var mt,ht,Ki,Go;return r(dn)?{id:"nextButton",type:"desktop-control-panel-left",weight:rs.nextButton,buttonComponent:sa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Ei.bind(null,!0)},tooltipEnabled:!((ht=(mt=K.callbacks)==null?void 0:mt.uiInfo)!=null&&ht.onNextButtonMouseEnter)&&!((Go=(Ki=K.callbacks)==null?void 0:Ki.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var Qi,si,Ti;(Ti=(si=(Qi=K.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:si.onNextButtonMouseEnter)==null||Ti.call(si,ra(ri(),ti,"nextButton",e.showControls))},mouseLeave:()=>{var Qi,si,Ti;(Ti=(si=(Qi=K.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:si.onNextButtonMouseLeave)==null||Ti.call(si,ra(ri(),ti,"nextButton",e.showControls))},tooltipText:Nt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),fo=m(()=>Vi&&r(Xi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:rs.playPrevChapterButton,buttonComponent:sd,buttonComponentProps:{disabled:r(an),click:e.playPrevChapter},tooltipText:Nt("tooltip_interactive_go_back"),disabledTooltipContent:Nt(Ai),disabled:r(an)}:void 0),Vn=m(()=>Vi&&r(po)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:rs.seekToInteractiveButton,buttonComponent:ld,buttonComponentProps:{disabled:r(cr),click:e.seekToInteractive},tooltipText:Nt("tooltip_interactive_seek"),disabled:r(cr),disabledTooltipContent:Nt($e())}:void 0),it=m(()=>Vi&&r(In)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:rs.interactiveGraphButton,buttonComponent:dd,buttonComponentProps:{disabled:r(Mr),click:sn.toggle,graphIsOpened:E()},tooltipText:r(Lr)}:void 0),Bt=m(()=>r(Uo)?{id:"liveButton",type:"desktop-control-panel-left",weight:rs.liveButton,buttonComponent:cd,buttonComponentProps:{isLiveActive:r(Ro),ariaLabel:r(Pn)},tooltipText:r(Pn),disabled:r(Ro)&&s()===If.PLAYING}:void 0),Ci=m(()=>[r(br),r(er),r(tr),r($r),r(fo),r(Vn),r(it),r(Bt)].filter(mt=>!!mt).sort(Xs)),Ko=m(()=>r(ur)?{id:"vkLogo",type:"desktop-control-panel-right",weight:as.vkLogo,buttonComponent:jl,buttonComponentProps:{targetUrl:Ft(),logoClickable:e.logoClickable,click:ut},tooltipText:r(Mn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Rn=m(()=>r(Ui)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:as.autoplayNext,buttonComponent:ad,tooltipText:r(Xn)}:void 0),xe=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:as.volume,buttonComponent:tf,buttonComponentProps:{click:ko}})),Pt=m(()=>r(Yn)?{id:"subtitles",type:"desktop-control-panel-right",weight:as.subtitles,buttonComponent:jp,buttonComponentProps:{isSubtitlesEnabled:r(Je),click:Ut},tooltipText:r(Vr)}:void 0),ai=m(()=>r(jn)?{id:"settings",type:"desktop-control-panel-right",weight:as.settings,buttonComponent:Ka,buttonComponentProps:{ref$:un},tooltipText:de()?void 0:Nt("tooltip_settings_off")}:void 0),kt=m(()=>he.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:as.context,buttonComponent:yf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(An)},className:r(Tn)?"":"out-of-view",tooltipText:r(An)}:void 0),Zt=m(()=>r(ji)?{id:"fullscreen",type:"desktop-control-panel-right",weight:as.fullscreen,buttonComponent:Yl,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Zn)}:void 0),li=m(()=>r(Fi)?{id:"chromecast",type:"desktop-control-panel-right",weight:as.chromecast,buttonComponent:Zl,buttonComponentProps:{state:_(),click:Sn},tooltipText:r(fr)}:void 0),Ri=m(()=>[r(Ko),r(Rn),r(xe),r(Pt),r(ai),r(kt),r(Zt),r(li),...fe()].filter(mt=>!!mt).sort(Xs));var mo=Z2(),ii=ue(mo);let Io;var ze=h(ii);let Ot=m(()=>!r(kn));Jl(ze,{get isHidden(){return r(Ot)},get isAds(){return $t()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return ti.timeline},set ref(mt){ti.timeline=mt}});var bi=M(ze,2),Eo=h(bi),Qo=h(Eo);$i(Qo,17,()=>r(Ci),mt=>mt.id,(mt,ht)=>{Kc(mt,{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 ti[r(ht).id]},set ref(Ki){ti[r(ht).id]=Ki}})});var ls=M(Qo,2);{var pn=mt=>{let ht=m(()=>$t()?Le():je()),Ki=m(()=>$t()?ct():ot());Ql(mt,{isMobile:!1,get showDuration(){return r(eo)},get position(){return r(ht)},get duration(){return r(Ki)},get ref(){return ti.time},set ref(Go){ti.time=Go}})};R(ls,mt=>{r(Zi)&&mt(pn)})}var Wr=M(ls,2);let ca=m(()=>!r(En));Po(Wr,{className:"w-max",get disabled(){return r(ca)},tooltipContent:Wo,get ref(){return ti.episodes},set ref(mt){ti.episodes=mt},children:(mt,ht)=>{var Ki=Fe(),Go=ue(Ki);{var Qi=si=>{ed(si,{get position(){return je()},get duration(){return ot()},timeCodes:Kt})};R(Go,si=>{r(En)&&si(Qi)})}b(mt,Ki)},$$slots:{default:!0}}),g(Eo);var ua=M(Eo,2);$i(ua,21,()=>r(Ri),mt=>mt.id,(mt,ht)=>{var Ki=Fe(),Go=ue(Ki);{var Qi=Ti=>{Kc(Ti,{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 ti[r(ht).id]},set ref(Is){ti[r(ht).id]=Is}})},si=Ti=>{let Is=m(()=>!!r(ht).disabled);kf(Ti,{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(Is)},get onClick(){return r(ht).onClick},get ref(){return ti[r(ht).id]},set ref(fa){ti[r(ht).id]=fa}})};R(Go,Ti=>{qh(r(ht))?Ti(Qi):Ti(si,!1)})}b(mt,Ki)}),g(ua),g(bi),dt(bi,mt=>nt(mt),()=>nt()),g(ii),dt(ii,mt=>Rt(mt),()=>Rt());var ir=M(ii,2);{var el=mt=>{nd(mt,{get ref(){return ti.interactiveTimeIndicator},set ref(ht){ti.interactiveTimeIndicator=ht}})};R(ir,mt=>{yn&&mt(el)})}I(mt=>Io=te(ii,1,"wrapper-bottom svelte-1iedtj3",null,Io,mt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Hr(Eo,"clientWidth",mt=>O(Ln,mt)),b(t,mo),W(),o()}import{ChromecastState as Qh,PlaybackState as Gh}from"@vkontakte/videoplayer-core/es2018";import{noop as Kh}from"@vkontakte/videoplayer-shared/es2018";var J2=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),ey=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),ty={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 Pf(t,e){Q(t,ty);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Kh),n=m(()=>o()===Kh),a=m(()=>r(n)||i()),s=ee(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");It(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,f)=>{var _=Fe(),u=ue(_);{var $=y=>{var S=J2();b(y,S)},w=y=>{var S=ey();I(()=>Oe(S,"src",e.iconUrl)),Tt("error",S,d),Fs(S),b(y,S)};R(u,y=>{r(s)?y($):y(w,!1)})}b(p,_)},$$slots:{default:!0}})}var iy=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=iy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 oy}from"@vkontakte/videoplayer-shared/es2018";var ny=L('<span class="text svelte-6gmlbk"> </span>'),ry=L('<div aria-hidden="true"><!> <!></div>'),sy={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 Qc(t,e){q(e,!0),Q(t,sy);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,oy),a=v(e,"ref",15,void 0),d=Se().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=m(()=>o()?ws:Mf),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");It(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,u)=>{var $=ry();let w=m(()=>r(p)),y;var S=h($);yi(S,()=>r(w),(P,E)=>{E(P,{})});var k=M(S,2);{var A=P=>{var E=ny(),T=h(E,!0);g(E),I(V=>ve(T,V),[()=>d("mobile_unmute")]),b(P,E)};R(k,P=>{o()&&P(A)})}g($),I(P=>y=te($,1,"container svelte-6gmlbk",null,y,P),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),W()}var ay=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=ay();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(3),g(o),I(()=>n=we(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var ly={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
255
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Vf(t,e){Q(t,ly);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");Lf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as dy}from"@vkontakte/videoplayer-shared/es2018";function Rf(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,dy),a=H("menu_pip");It(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}}),W()}import{debounceFn as cy}from"@vkontakte/videoplayer-shared/es2018";var uy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},py=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},fy=L("<div><!></div>"),my=L("<div><!></div>"),vy=L("<div><!></div>"),gy=L("<!> <!> <!>",1),hy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),_y=L("<div><!></div>"),by=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),$y=L("<!> <!> <div><!></div>",1),yy=L('<div aria-hidden="true">\xB7</div> <!>',1),xy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),wy={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 Q;U(e,!0),q(t,V2);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),_=Te(),w=ao(),{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()),G=v(()=>xs(s(),"s")),O=v(()=>!d()||!!l()||r(H)),X=J(!1);qe(()=>{B(X,pe(r(O)))});let oe=()=>{B(X,!0)},Y=()=>{var W;fe(),(W=r(u))==null||W.addEventListener("animationiteration",oe,{once:!0})},fe=()=>{var W;B(X,!1),(W=r(u))==null||W.removeEventListener("animationiteration",oe)},ae=W=>{P.set(W)},Le=v(()=>p()&&!r(O));qe(()=>{p()?Y():fe()});let Ae=()=>{r(O)||(P.set(!0),I==null||I())};_n(()=>{P.clearTimeout(),fe()});let he=()=>{P.set(!1)},se=F("tooltip_interactive_interaction_time_indicator");var Me=L2();let ne;Me.__mousemove=[M2],Me.__click=Ae;var N=h(Me);Ao(N,{tooltipContent:se,get tooltipActive(){return r(Le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ae,get ref(){return $()},set ref(W){$(W)},children:(W,Ve)=>{ed(W,{completed:!0})},$$slots:{default:!0}});var ue=M(N,2);let ge;pt(ue,W=>$(W),()=>$());var Qe=M(ue,2);let te;pt(Qe,W=>B(u,W),()=>r(u)),g(Me),k((W,Ve,De)=>{ne=ee(Me,1,"interactive-episode-icon-animated svelte-od3veb",null,ne,W),ge=ee(ue,1,"ref-block svelte-od3veb",null,ge,Ve),te=ee(Qe,1,"pulse svelte-od3veb",null,te,De)},[()=>({mobile:n(),fullscreen:m(),invisible:r(O),"icon-small":r(G)}),()=>({hidden:r(O)}),()=>({paused:r(X)})]),wt("mouseleave",Me,he),b(t,Me),z(),o()}at(["mousemove","click"]);function jc(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);Ao(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=Ue();let p=v(()=>e.buttonComponent);var m=ce(l);Ci(m,()=>r(p),($,u)=>{u($,Jr(()=>{var _;return(_=e.buttonComponentProps)!=null?_:{}}))}),b(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 D2=xe('<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 xf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 ws(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");xf(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>'),B2=L("<!> <!>",1),O2={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,O2);let i=f(e,"ref",15,void 0),o=f(e,"isMobile",3,!1),n=f(e,"disabled",3,!1),s=Te().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}`);Lt(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=B2(),_=ce(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");ws(y,{get isMobile(){return o()},get isPrev(){return r(C)}}),b(m,u)},$$slots:{default:!0}}),z()}var H2=xe('<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=H2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 F2}from"@vkontakte/videoplayer-shared/es2018";var U2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),z2=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 Ja(t,e){U(e,!0),q(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,F2),d=F("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);Lt(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 $=z2(),u=ce($);{var _=T=>{var E=U2();b(T,E)};R(u,T=>{o()&&T(_)})}var w=M(u,2);let y;var C=h(w);cd(C,{}),g(w),k(T=>y=ee(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,$)},$$slots:{default:!0}}),z()}var W2=xe('<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 yr(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(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}var K2=xe('<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=K2(),d=h(s);g(s),k(()=>{Oe(s,"width",i()),Oe(s,"height",o()),Oe(s,"viewBox",n()),Oe(d,"fill",a())}),b(t,s)}import{noop as Q2}from"@vkontakte/videoplayer-shared/es2018";var G2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),j2=L("<!> <div><!></div>",1),Y2={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 el(t,e){U(e,!0),q(t,Y2);let[i,o]=Be(),n=()=>S(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=ao(),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,Q2),_=Te().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)?ns:yr),A=v(()=>`${d()?"btn-m--play":""} ${m()}`),I=v(()=>r(C)?r(y):$());Lt(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 Nr.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,H)=>{var G=j2();let O=v(()=>r(P));var X=ce(G);{var oe=Le=>{var Ae=G2();b(Le,Ae)};R(X,Le=>{d()&&Le(oe)})}var Y=M(X,2);let fe;var ae=h(Y);Ci(ae,()=>r(O),(Le,Ae)=>{Ae(Le,{})}),g(Y),k(Le=>fe=ee(Y,1,"svelte-1ot3duq",null,fe,Le),[()=>({mobile:d()})]),b(V,G)},$$slots:{default:!0}}),z(),o()}var Z2=xe('<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 wf(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}),ye(),g(o),k(()=>n=Ie(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 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=F("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");Lt(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)=>{wf(d,{})},$$slots:{default:!0}}),z()}var X2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),J2={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),q(t,J2);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=f(e,"ref",15,void 0),s=Te(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Lt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(m){a(m)},children:(m,$)=>{var u=X2(),_=h(u);let w;var y=h(_);{var C=E=>{yr(E,{width:"14",height:"14",fill:"#000"})},T=E=>{ns(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 ey=xe('<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 Sf(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}),ye(2),g(o),k(()=>n=Ie(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 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=F("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");Lt(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)=>{Sf(d,{})},$$slots:{default:!0}}),z()}var ty=xe('<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 Cf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=ty();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(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 iy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Tf(t,e){q(t,iy);let i=f(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Cf(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=Te().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=v(()=>o()?"hidden":"");Lt(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());Tf(m,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),z()}import{PlaybackState as qh}from"@vkontakte/videoplayer-core/es2018";function vd(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=Te(),p=l.state.playbackState$,m=l.actions.internal.switchToActiveLive,$=l.actions.internal.togglePlay,u=v(()=>()=>{if(!s()){m();return}n()===qh.PAUSED&&$()}),_=v(()=>a()?"":"btn--live btn-full-opacity"),w=v(()=>s()?"btn-live":"btn-live-offset"),y=v(()=>s()&&n()===qh.PLAYING);Lt(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)=>{Hl(C,{get isActive(){return s()}})},$$slots:{default:!0}}),z(),o()}import{noop as Wh}from"@vkontakte/videoplayer-shared/es2018";var oy=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ny=L('<img class="icon" aria-hidden="true">');function la(t,e){"use strict";let i=J(!1),o=()=>{B(i,!0)};var n=Ue(),a=ce(n);{var s=l=>{var p=oy();b(l,p)},d=l=>{var p=ny();k(()=>Oe(p,"src",e.icon)),wt("error",p,o),Fs(p),b(l,p)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function If(t,e){U(e,!0);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Wh),n=f(e,"ref",15),a=v(()=>o()===Wh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");Ao(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});Lt(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 Kh=t=>!!t.buttonComponent;var rs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var ly=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),dy={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 Ef(t,e){var ha,Is;U(e,!0),q(t,dy);let[i,o]=Be(),n=()=>S(di,"$disabledControls$",i),a=()=>S(zt,"$adPlaybackState",i),s=()=>S(mt,"$playbackState$",i),d=()=>S(Jt,"$currentSubtitle$",i),l=()=>S(jt,"$isEnded$",i),p=()=>S(yn,"$currentGridType$",i),m=()=>S(Vi,"$isLive$",i),$=()=>S(nn,"$chromecastState$",i),u=()=>S(Ki,"$isPictureInPictureActive",i),_=()=>S(Qi,"$pictureInPictureType$",i),w=()=>S(Z,"$availableSubtitlesList$",i),y=()=>S(ci,"$contextMenuOpenedByKeyboard$",i),C=()=>S(ii,"$showContextMenuBtn$",i),T=()=>S(co,"$playerSize",i),E=()=>S(Hi,"$isRewindableLive$",i),P=()=>S(Ii,"$isActiveLive$",i),A=()=>S(So,"$graphIsOpened$",i),I=()=>S(Fi,"$contextMenuVisible$",i),V=()=>S(ei,"$isFullscreen",i),H=()=>S(xo,"$autoplayNextEnabled",i),G=()=>S(r(Vo),"$prevButton",i),O=()=>S(r(xi),"$replayButton",i),X=()=>S(r(Yn),"$playButton",i),oe=()=>S(r(vt),"$nextButton",i),Y=()=>S(r(Ot),"$playPrevChapterButton",i),fe=()=>S(r(Ei),"$seekToInteractiveButton",i),ae=()=>S(r(Io),"$interactiveGraphButton",i),Le=()=>S(r(rt),"$liveButton",i),Ae=()=>S(r(Rt),"$time",i),he=()=>S(r(ui),"$episodes",i),se=()=>S(r(Ni),"$vkLogo",i),Me=()=>S(r(po),"$volume",i),ne=()=>S(r($i),"$subtitles",i),N=()=>S(r(Pi),"$settings",i),ue=()=>S(r(mi),"$context",i),ge=()=>S(r(fo),"$fullscreen",i),Qe=()=>S(r(Xi),"$chromecast",i),te=()=>S(Gi,"$additionalDesktopControlPanelRightButtons$",i),Q=()=>S(Ho,"$isInteractiveTime$",i),W=()=>S(Mt,"$settingsMenuVisible",i),Ve=()=>S(Ir,"$settingButtonRef$",i),De=()=>S(oi,"$startedByKeyboard$",i),et=()=>S(ze,"$isAudioAvailable$",i),Se=()=>S(_e,"$fakeIsPlaying$",i),$e=()=>S(rn,"$seekToInteractiveDisabledTooltip$",i),Ne=()=>S(Ct,"$adPosition",i),je=()=>S(We,"$position$",i),it=()=>S(lo,"$adDuration",i),ht=()=>S(Xe,"$duration$",i),Je=f(e,"playerControlsWrapperRef",15,void 0),ft=f(e,"playerControlsRef",15,void 0),Pt=f(e,"isAds",3,!1),Wt=f(e,"logoTargetUrl",3,""),Kt=f(e,"isOneVideoPlaylist",3,!1),At=f(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:_e}=ao(),j=Te(),be=ao(),re=Ut(),Re=j.actions.internal.toggleMuted,He=j.actions.internal.togglePlay,ot=j.actions.internal.pause,lt=j.actions.internal.toggleSubtitle,Ye=(ha=j.callbacks)==null?void 0:ha.onAudioDoesNotExistHint,Ze=(Is=j.callbacks)==null?void 0:Is.onAudioDisabledHint,Xe=j.state.duration$,We=j.state.positionWithScrubbing$,mt=j.state.playbackState$,ze=j.state.isAudioAvailable$,dt=j.state.isAudioDisabled,jt=j.state.isEnded$,Vi=j.state.isLive$,Ii=j.state.isActiveLive$,Hi=j.state.isRewindableLive$,{isActive$:Ki,type$:Qi}=be.pictureInPicture$,Mt=j.ui.settingsMenu.visible$,yt=j.ui.settingsMenu.openedByBtnKeyboard$,Vt=j.ui.controls,yo=j.actions.internal.getVideoEpisodes(),nn=j.state.chromecastState$,Z=j.state.availableSubtitlesList$,Jt=j.state.currentSubtitle$,di=Vt.disabledControls$,Fi=j.ui.contextMenu.visible$,ii=j.ui.contextMenu.showContextMenuBtn$,ci=j.ui.contextMenu.openedByBtnKeyboard$,oi=j.ui.startedByKeyboard$,ct=j.ui.t,lo=j.ads.duration,Ct=j.ads.position,zt=j.ads.playbackState,ei=j.ui.isFullscreen,co=j.ui.playerSize,yn=j.ui.currentGridType$,Gi=j.ui.additionalDesktopControlPanelRightButtons$,xo=j.ui.autoplayNextEnabled$,si=j.actions.internal.getVideoElement,xt=j.actions.internal.replayInteractive,wo=j.actions.internal.prevVideoClick,ki=j.actions.internal.nextVideoClick,yi=j.state.isInteractive,Ho=j.state.isInteractiveTime$,Zi=j.state.showInteractiveGraph,Ui=j.state.showSeekToInteractive,xn=j.state.showPlayPrevChapter,wn=j.state.showInteractiveTimeIndicator,Ri=j.state.playPrevChapterDisabledTooltip,rn=be.seekToInteractiveDisabledTooltip$,So=be.graphIsOpened$,Co=re.features.interactiveResponsiveUi,wr=v(()=>n().has("EPISODE_BUTTON")),rr=v(()=>n().has("GRAPH_BUTTON")),Sn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),zn=v(()=>n().has("PLAY_BUTTON")),qn=v(()=>n().has("REPLAY_BUTTON")),uo=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),Fo=()=>j.actions.internal.toggleChromecast(),Cn=v(()=>Pt()?a()==="playing":s()===kf.PLAYING),nt=v(()=>d().value!=="off"),Uo=v(()=>l()&&!Pt()||yi),sn=v(()=>Co?r(Uo)&&Wi(p(),"m"):r(Uo)),Tn=v(()=>!l()||yi||Pt()),sr=v(()=>Wi(p(),"m")),zo=v(()=>e.showNextPrevButtons&&Wi(p(),"m")&&!Pt()&&e.nextButtonActive),Wn=v(()=>e.showNextPrevButtons&&Wi(p(),"m")&&!Pt()&&e.prevButtonActive),an=v(()=>!Pt()&&!!m()),In=v(()=>$()!==Qh.NOT_AVAILABLE&&!(u()&&_()===1)&&Wi(p(),"m")&&!yi),Di=v(()=>e.showAutoplayNext&&!Kt()&&Wi(p(),"s")),ji=v(()=>w().length>0&&Wi(p(),"m")),kn=v(()=>y()||C()),Mo=v(()=>Wi(p(),"s")&&!Pt()),En=v(()=>!e.logoHidden&&!Pt()),qo=v(()=>re.features.fullscreen&&(e.logoHidden||Wi(p(),Co?"xs":"s"))&&!(u()&&_()===1)&&(yi?At():!0)),Lo=v(()=>(!m()||Pt())&&!(re.features.interactiveHideTime&&yi)),fi=v(()=>T().width>100),Kn=v(()=>Zi&&Wi(p(),"m")),To=v(()=>Co?Ui&&Wi(p(),"s"):Ui),ar=v(()=>Co?xn&&Wi(p(),"s"):xn),ln=v(()=>!Pt()&&!m()&&!!(yo!=null&&yo.length)&&r(sr)&&!r(wr)),dn=v(()=>!E()||!!P()),lr=v(()=>A()?ct("tooltip_interactive_graph_on"):ct("tooltip_interactive_graph_off")),Wo=v(()=>I()?ct("aria_label_context_menu_close"):ct("aria_label_context_menu_open")),Sr=(bt,_t)=>bt?_t&&_t===kf.PAUSED?ct("tooltip_play"):"":ct("tooltip_live"),Pn=v(()=>Sr(r(dn),s())),Qn=v(()=>re.logoType==="vk_video"?ct("tooltip_vk_video_logo"):ct("tooltip_vk_logo")),dr=v(()=>r(nt)?ct("tooltip_subtitles_on"):ct("tooltip_subtitles_off")),Cr=v(()=>V()?ct("tooltip_fullscreen_on"):ct("tooltip_fullscreen_off")),Gn=v(()=>$()===Qh.CONNECTED?ct("tooltip_chromecast_on"):ct("tooltip_chromecast_off")),cn=v(()=>H()?ct("tooltip_autoplay_on"):ct("tooltip_autoplay_off")),jn=J(0),ai=pe({}),Vo=v(()=>Vt.prevButton),xi=v(()=>Vt.replayButton),Yn=v(()=>Vt.playButton),vt=v(()=>Vt.nextButton),Ot=v(()=>Vt.playPrevChapterButton),Ei=v(()=>Vt.seekToInteractiveButton),Io=v(()=>Vt.interactiveGraphButton),rt=v(()=>Vt.liveButton),Rt=v(()=>Vt.time),ui=v(()=>Vt.episodes),Ni=v(()=>Vt.vkLogo),po=v(()=>Vt.volume),$i=v(()=>Vt.subtitles),Pi=v(()=>Vt.settings),mi=v(()=>Vt.context),fo=v(()=>Vt.fullscreen),Xi=v(()=>Vt.chromecast),Ji=v(()=>({prevButton:G()?G().right-G().left:0,replayButton:O()?O().right-O().left:0,playButton:X()?X().right-X().left:0,nextButton:oe()?oe().right-oe().left:0,playPrevChapterButton:Y()?Y().right-Y().left:0,seekToInteractiveButton:fe()?fe().right-fe().left:0,interactiveGraphButton:ae()?ae().right-ae().left:0,liveButton:Le()?Le().right-Le().left:0,time:Ae()?Ae().right-Ae().left:0,episodes:he()?he().right-he().left:0,vkLogo:se()?se().right-se().left:0,volume:Me()?Me().right-Me().left:0,subtitles:ne()?ne().right-ne().left:0,settings:N()?N().right-N().left:0,context:ue()?ue().right-ue().left:0,fullscreen:ge()?ge().right-ge().left:0,chromecast:Qe()?Qe().right-Qe().left:0,additionalButtons:te().length?te().reduce(bt=>[...bt,40],[]):[]})),un=J(0);qe(()=>{(!r(un)||r(un)<r(Ji).time)&&$t(()=>B(un,pe(r(Ji).time)))});let Zn=J(!1);qe(()=>{let bt=0;r(ln)&&(Wi(p(),"xl")?bt=r(Ji).time:bt=60);let _t=r(Ji).prevButton+r(Ji).playButton+r(Ji).nextButton+r(Ji).seekToInteractiveButton+r(Ji).interactiveGraphButton+r(Ji).liveButton+r(un)+bt;B(Zn,pe(r(Lo)&&r(jn)>=_t))});let Xn=v(()=>r(Zn)&&Wi(p(),"m")),Tr=ay(Xa,260);qe(()=>{T(),Q(),Tr(si(),Vt,ai,e.showControls)});let Ir=de();qe(()=>{W(),Ve()&&$t(()=>qa(Ve(),W(),yt))});let An;qe(()=>{De(),$t(()=>Gc(oi,De(),An))});function Mn(){$s({isAudioDisabled:dt,audioDisabledHintCallback:Ze,isAudioAvailable:et(),audioIsNotExistHintCallback:Ye})&&Re()}let ko=yi?xt:He,kr=v(()=>Se()!==null),Ro=v(()=>r(kr)?Se():r(Cn)),cr=v(()=>r(Ro)?ct("tooltip_pause"):ct("tooltip_play")),Er=ct("tooltip_episodes"),Pr=v(()=>{var bt,_t,eo,Do;return r(Wn)?{id:"prevButton",type:"desktop-control-panel-left",weight:os.prevButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:wo.bind(null,!0)},tooltipEnabled:!((_t=(bt=j.callbacks)==null?void 0:bt.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((Do=(eo=j.callbacks)==null?void 0:eo.uiInfo)!=null&&Do.onPrevButtonMouseLeave),mouseEnter:()=>{var to,ni,Bi;(Bi=(ni=(to=j.callbacks)==null?void 0:to.uiInfo)==null?void 0:ni.onPrevButtonMouseEnter)==null||Bi.call(ni,sa(si(),ai,"prevButton",e.showControls))},mouseLeave:()=>{var to,ni,Bi;(Bi=(ni=(to=j.callbacks)==null?void 0:to.uiInfo)==null?void 0:ni.onPrevButtonMouseLeave)==null||Bi.call(ni,sa(si(),ai,"prevButton",e.showControls))},tooltipText:ct("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),ur=v(()=>r(sn)?{id:"replayButton",type:"desktop-control-panel-left",weight:os.replayButton,buttonComponent:Ja,buttonComponentProps:{disabled:r(qn),click:ko},tooltipText:ct("tooltip_restart"),disabled:r(qn)}:void 0),Yi=v(()=>r(Tn)?{id:"playButton",type:"desktop-control-panel-left",weight:os.playButton,buttonComponent:el,buttonComponentProps:{disabled:r(zn),isPlaying:r(Cn),click:He},tooltipText:r(cr),disabled:r(zn)}:void 0),pn=v(()=>{var bt,_t,eo,Do;return r(zo)?{id:"nextButton",type:"desktop-control-panel-left",weight:os.nextButton,buttonComponent:aa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:ki.bind(null,!0)},tooltipEnabled:!((_t=(bt=j.callbacks)==null?void 0:bt.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((Do=(eo=j.callbacks)==null?void 0:eo.uiInfo)!=null&&Do.onNextButtonMouseLeave),mouseEnter:()=>{var to,ni,Bi;(Bi=(ni=(to=j.callbacks)==null?void 0:to.uiInfo)==null?void 0:ni.onNextButtonMouseEnter)==null||Bi.call(ni,sa(si(),ai,"nextButton",e.showControls))},mouseLeave:()=>{var to,ni,Bi;(Bi=(ni=(to=j.callbacks)==null?void 0:to.uiInfo)==null?void 0:ni.onNextButtonMouseLeave)==null||Bi.call(ni,sa(si(),ai,"nextButton",e.showControls))},tooltipText:ct("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Fr=v(()=>yi&&r(ar)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:os.playPrevChapterButton,buttonComponent:ud,buttonComponentProps:{disabled:r(uo),click:e.playPrevChapter},tooltipText:ct("tooltip_interactive_go_back"),disabledTooltipContent:ct(Ri),disabled:r(uo)}:void 0),pr=v(()=>yi&&r(To)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:os.seekToInteractiveButton,buttonComponent:fd,buttonComponentProps:{disabled:r(Sn),click:e.seekToInteractive},tooltipText:ct("tooltip_interactive_seek"),disabled:r(Sn),disabledTooltipContent:ct($e())}:void 0),st=v(()=>yi&&r(Kn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:os.interactiveGraphButton,buttonComponent:md,buttonComponentProps:{disabled:r(rr),click:So.toggle,graphIsOpened:A()},tooltipText:r(lr)}:void 0),Ht=v(()=>r(an)?{id:"liveButton",type:"desktop-control-panel-left",weight:os.liveButton,buttonComponent:vd,buttonComponentProps:{isLiveActive:r(dn),ariaLabel:r(Pn)},tooltipText:r(Pn),disabled:r(dn)&&s()===kf.PLAYING}:void 0),Ai=v(()=>[r(Pr),r(ur),r(Yi),r(pn),r(Fr),r(pr),r(st),r(Ht)].filter(bt=>!!bt).sort(Xs)),we=v(()=>r(En)?{id:"vkLogo",type:"desktop-control-panel-right",weight:rs.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:Wt(),logoClickable:e.logoClickable,click:ot},tooltipText:r(Qn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),It=v(()=>r(Di)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:rs.autoplayNext,buttonComponent:pd,tooltipText:r(cn)}:void 0),pi=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:rs.volume,buttonComponent:tf,buttonComponentProps:{click:Mn}})),vi=v(()=>r(ji)?{id:"subtitles",type:"desktop-control-panel-right",weight:rs.subtitles,buttonComponent:Yp,buttonComponentProps:{isSubtitlesEnabled:r(nt),click:lt},tooltipText:r(dr)}:void 0),Eo=v(()=>r(Mo)?{id:"settings",type:"desktop-control-panel-right",weight:rs.settings,buttonComponent:ja,buttonComponentProps:{ref$:Ir},tooltipText:W()?void 0:ct("tooltip_settings_off")}:void 0),li=v(()=>re.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:rs.context,buttonComponent:yf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Wo)},className:r(kn)?"":"out-of-view",tooltipText:r(Wo)}:void 0),ke=v(()=>r(qo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:rs.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Cr)}:void 0),Tt=v(()=>r(In)?{id:"chromecast",type:"desktop-control-panel-right",weight:rs.chromecast,buttonComponent:od,buttonComponentProps:{state:$(),click:Fo},tooltipText:r(Gn)}:void 0),Zt=v(()=>[r(we),r(It),r(pi),r(vi),r(Eo),r(li),r(ke),r(Tt),...te()].filter(bt=>!!bt).sort(Xs));var wi=ly(),ti=ce(wi);let Ko;var fn=h(ti);let Ar=v(()=>!r(fi));na(fn,{get isHidden(){return r(Ar)},get isAds(){return Pt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ai.timeline},set ref(bt){ai.timeline=bt}});var Ln=M(fn,2),Ur=h(Ln),va=h(Ur);Si(va,17,()=>r(Ai),bt=>bt.id,(bt,_t)=>{jc(bt,{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 ai[r(_t).id]},set ref(eo){ai[r(_t).id]=eo}})});var Cs=M(va,2);{var nl=bt=>{let _t=v(()=>Pt()?Ne():je()),eo=v(()=>Pt()?it():ht());Jl(bt,{isMobile:!1,get showDuration(){return r(Xn)},get position(){return r(_t)},get duration(){return r(eo)},get ref(){return ai.time},set ref(Do){ai.time=Do}})};R(Cs,bt=>{r(Lo)&&bt(nl)})}var ga=M(Cs,2);let rl=v(()=>!r(ln));Ao(ga,{className:"w-max",get disabled(){return r(rl)},tooltipContent:Er,get ref(){return ai.episodes},set ref(bt){ai.episodes=bt},children:(bt,_t)=>{var eo=Ue(),Do=ce(eo);{var to=ni=>{rd(ni,{get position(){return je()},get duration(){return ht()},timeCodes:yo})};R(Do,ni=>{r(ln)&&ni(to)})}b(bt,eo)},$$slots:{default:!0}}),g(Ur);var Ts=M(Ur,2);Si(Ts,21,()=>r(Zt),bt=>bt.id,(bt,_t)=>{var eo=Ue(),Do=ce(eo);{var to=Bi=>{jc(Bi,{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 ai[r(_t).id]},set ref(ss){ai[r(_t).id]=ss}})},ni=Bi=>{let ss=v(()=>!!r(_t).disabled);If(Bi,{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(ss)},get onClick(){return r(_t).onClick},get ref(){return ai[r(_t).id]},set ref(al){ai[r(_t).id]=al}})};R(Do,Bi=>{Kh(r(_t))?Bi(to):Bi(ni,!1)})}b(bt,eo)}),g(Ts),g(Ln),pt(Ln,bt=>ft(bt),()=>ft()),g(ti),pt(ti,bt=>Je(bt),()=>Je());var sl=M(ti,2);{var Jn=bt=>{dd(bt,{get ref(){return ai.interactiveTimeIndicator},set ref(_t){ai.interactiveTimeIndicator=_t}})};R(sl,bt=>{wn&&bt(Jn)})}k(bt=>Ko=ee(ti,1,"wrapper-bottom svelte-1iedtj3",null,Ko,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Dr(Ur,"clientWidth",bt=>B(jn,bt)),b(t,wi),z(),o()}import{ChromecastState as jh,PlaybackState as Yh}from"@vkontakte/videoplayer-core/es2018";import{noop as Gh}from"@vkontakte/videoplayer-shared/es2018";var cy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),uy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),py={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 Pf(t,e){q(t,py);let i=f(e,"disabled",3,!1),o=f(e,"onClick",3,Gh),n=v(()=>o()===Gh),a=v(()=>r(n)||i()),s=J(!1),d=()=>{B(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");Lt(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 $=Ue(),u=ce($);{var _=y=>{var C=cy();b(y,C)},w=y=>{var C=uy();k(()=>Oe(C,"src",e.iconUrl)),wt("error",C,d),Fs(C),b(y,C)};R(u,y=>{r(s)?y(_):y(w,!1)})}b(p,$)},$$slots:{default:!0}})}var fy=xe('<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 Af(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}),ye(),g(o),k(()=>n=Ie(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 my}from"@vkontakte/videoplayer-shared/es2018";var vy=L('<span class="text svelte-6gmlbk"> </span>'),gy=L('<div aria-hidden="true"><!> <!></div>'),hy={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 Yc(t,e){U(e,!0),q(t,hy);let i=f(e,"muted",3,!1),o=f(e,"expanded",3,!1),n=f(e,"click",3,my),a=f(e,"ref",15,void 0),d=Te().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=v(()=>o()?ys:Af),m=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Lt(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 _=gy();let w=v(()=>r(p)),y;var C=h(_);Ci(C,()=>r(w),(P,A)=>{A(P,{})});var T=M(C,2);{var E=P=>{var A=vy(),I=h(A,!0);g(A),k(V=>me(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 _y=xe('<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 Mf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=_y();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(3),g(o),k(()=>n=Ie(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var by={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 Lf(t,e){q(t,by);let i=f(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");Mf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as $y}from"@vkontakte/videoplayer-shared/es2018";function Vf(t,e){U(e,!0);let i=f(e,"ref",15,void 0),o=f(e,"isPictureInPictureActive",3,!1),n=f(e,"click",3,$y),a=F("menu_pip");Lt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Lf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}import{debounceFn as yy}from"@vkontakte/videoplayer-shared/es2018";var xy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},wy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Sy=L("<div><!></div>"),Cy=L("<div><!></div>"),Ty=L("<div><!></div>"),Iy=L("<!> <!> <!>",1),ky=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Ey=L("<div><!></div>"),Py=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Ay=L("<!> <!> <div><!></div>",1),My=L('<div aria-hidden="true">\xB7</div> <!>',1),Ly=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Vy={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,
256
257
  .wrapper-middle-left-second.svelte-1afsgkw,
257
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);}
258
259
 
@@ -260,7 +261,7 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
260
261
  }
261
262
 
262
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);}
263
- }`};function Nf(t,e){var mr,Rr;q(e,!0),Q(t,wy);let[i,o]=He(),n=()=>C(ui,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(Mo,"$disabledControls$",i),s=()=>C($t,"$playbackState$",i),d=()=>C(gt,"$adPlaybackState",i),l=()=>C(Be,"$isEnded$",i),p=()=>C(Kt,"$playerSize",i),f=()=>C(Ce,"$scrubbingInProgress",i),_=()=>C(ei,"$chromecastState$",i),u=()=>C(ut,"$isPictureInPictureActive",i),$=()=>C(Ut,"$pictureInPictureType$",i),w=()=>C(De,"$mobileNotReportControlHidden$",i),y=()=>C(ot,"$playerPhase",i),S=()=>C(Lo,"$currentGridType$",i),k=()=>C(re,"$isLive$",i),A=()=>C(Xe,"$settingsMenuVisible",i),P=()=>C(he,"$isRewindableLive$",i),E=()=>C(se,"$isActiveLive$",i),T=()=>C(ao,"$isInteractiveTime$",i),V=()=>C(Ft,"$isAudioAvailable$",i),z=()=>C(Fi,"$settingButtonRef$",i),Y=()=>C(Oi,"$startedByKeyboard$",i),F=()=>C(U,"$isFullscreen",i),j=()=>C(at,"$mobileUnmuteButtonVisible",i),X=()=>C(K,"$muted$",i),oe=()=>C(Ge,"$mobileUnmuteButtonExpanded",i),pe=()=>C(Hi,"$additionalButtons$",i),le=()=>C(Mi,"$crashed$",i),Ve=()=>C(xt,"$graphIsOpened$",i),Pe=()=>C(Et,"$adPosition",i),J=()=>C(Vo,"$adDuration",i),Me=()=>C(nt,"$position$",i),Z=()=>C(Rt,"$duration$",i),B=v(e,"playerControlsWrapperRef",15,void 0),Re=v(e,"playerControlsRef",15,void 0),ne=v(e,"isAds",3,!1),Ie=v(e,"logoTargetUrl",3,""),Ne=v(e,"isOneVideoPlaylist",3,!1),fe=v(e,"customFullscreenSupported",3,!0),D=Se(),de=so(),Ee=qt(),Qe=D.actions.internal.toggleMuted,st=D.actions.internal.togglePlay,Ae=D.actions.internal.pause,$e=D.actions.internal.prevVideoClick,Le=D.actions.internal.nextVideoClick,je=(mr=D.callbacks)==null?void 0:mr.onAudioDoesNotExistHint,ct=(Rr=D.callbacks)==null?void 0:Rr.onAudioDisabledHint,ot=D.playerPhase,Rt=D.state.duration$,nt=D.state.positionWithScrubbing$,$t=D.state.playbackState$,Ft=D.state.isAudioAvailable$,Wt=D.state.isAudioDisabled,Be=D.state.isEnded$,re=D.state.isLive$,K=D.state.muted$,se=D.state.isActiveLive$,he=D.state.isRewindableLive$,Ce=D.ui.scrubbingInProgress,De=D.ui.mobileNotReportControlHidden$,{isActive$:ut,type$:Ut}=de.pictureInPicture$,Ge=D.ui.mobileUnmuteButtonExpanded,at=D.ui.mobileUnmuteButtonVisible,Xe=D.ui.settingsMenu.visible$,Ct=D.ui.settingsMenu.openedByBtnKeyboard$,Jt=D.ui.controls,Ke=D.actions.internal.getVideoEpisodes(),lt=D.webApi.pictureInPictureApi,ei=D.state.chromecastState$,Mi=D.state.crashed$,Mo=Jt.disabledControls$,Oi=D.ui.startedByKeyboard$,Lo=D.ui.currentGridType$,Vo=D.ads.duration,Et=D.ads.position,gt=D.ads.playbackState,U=D.ui.isFullscreen,Kt=D.ui.playerSize,Hi=D.ui.additionalButtonsDeprecated$,Li=D.actions.internal.getVideoElement,ni=D.actions.internal.replayInteractive,ci=D.state.isInteractive,ao=D.state.isInteractiveTime$,lo=D.state.showInteractiveGraph,Gi=D.state.showSeekToInteractive,Fo=D.state.showPlayPrevChapter,Nt=D.state.showInteractiveTimeIndicator,ui=de.seekToInteractiveDisabledTooltip$,xt=de.graphIsOpened$,zt=m(()=>H(D.state.playPrevChapterDisabledTooltip)),co=m(()=>H(n())),jt=m(()=>a().has("EPISODE_BUTTON")),qn=m(()=>a().has("GRAPH_BUTTON")),yo=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),xo=m(()=>a().has("PLAY_BUTTON")),ri=m(()=>a().has("REPLAY_BUTTON")),bt=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),gi=m(()=>s()===Gh.PLAYING),Ei=m(()=>d()==="paused"),Vi=m(()=>l()&&!ne()&&!ci),$n=m(()=>!l()||ne()),wi=m(()=>e.showNextPrevButtons&&!ne()&&e.prevButtonActive),Yi=m(()=>e.showNextPrevButtons&&!ne()&&e.nextButtonActive),rn=m(()=>p().width>300),yn=m(()=>p().width>400),Ai=m(f),Wn=m(()=>_()!==Qh.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!ci),sn=m(()=>y()==="LiveWaitingStart"),wo=m(()=>!!lt&&_()!==Qh.CONNECTED&&!w()&&($()===1&&r(sn)||!r(sn))&&!r(Ai)&&!ci),xn=m(()=>!r(Ai)&&Di(S(),"s")),Mr=m(()=>!e.logoHidden&&p().width>350),cr=m(()=>Ee.features.fullscreen&&!(u()&&$()===1)&&(ci?fe():!0)&&!r(Ai)),Kn=m(()=>(!k()||ne())&&p().width>260&&!r(Ai)&&!(Ee.features.interactiveHideTime&&ci)),wn=m(()=>A()||e.showControls),an=m(()=>!ne()&&!k()&&!!(Ke!=null&&Ke.length)&&r(rn)&&!r(jt)&&!r(Ai)),Sn=m(()=>!P()||!!E()),uo=m(()=>lo&&Di(S(),"m")),Je=me({}),ln=cy(qc,260);qe(()=>{p(),T(),ln(Li(),Jt,Je,e.showControls)});let Qn=()=>D.actions.internal.toggleChromecast();function Gn(){xs({isAudioDisabled:Wt,audioDisabledHintCallback:ct,isAudioAvailable:V(),audioIsNotExistHintCallback:je})&&Qe()}async function Cn(){lt!=null&&lt.isActive()?await(lt==null?void 0:lt.remove()):await(lt==null?void 0:lt.request())}function dn(){!Wt&&V()&&at.set(!1),Gn()}let cn=ee(""),Uo=(tt,pt)=>{if(!tt){O(cn,me(H("tooltip_live")));return}pt&&pt===Gh.PAUSED&&O(cn,me(H("tooltip_play")))};qe(()=>{Uo(r(Sn),s())});let Fi=ae();qe(()=>{z()&&Fa(z(),A(),Ct)}),qe(()=>{Wc(Oi,Y(),Je.playButton)});var Ui=xy(),Yn=ue(Ui);{var Tn=tt=>{var pt=hy(),Si=ue(pt);let Ji;var zi=M(Si,2);let So;var Co=h(zi);{var qo=it=>{let Bt=m(()=>V()&&!Wt&&oe());Qc(it,{get muted(){return X()},get expanded(){return r(Bt)},click:dn,get ref(){return Je.volume},set ref(Ci){Je.volume=Ci}})};R(Co,it=>{(!V()||j())&&it(qo)})}g(zi);var To=M(zi,2);let di;var Ze=h(To);$i(Ze,1,pe,({iconUrl:it,ariaLabel:Bt,testId:Ci,onClick:Ko,tooltip:Rn})=>it,(it,Bt)=>{let Ci=()=>r(Bt).iconUrl,Ko=()=>r(Bt).ariaLabel,Rn=()=>r(Bt).testId,xe=()=>r(Bt).onClick,Pt=()=>r(Bt).tooltip,ai=m(()=>{var kt;return(kt=Ko())!=null?kt:Pt()});Pf(it,{get iconUrl(){return Ci()},get ariaLabel(){return r(ai)},get testId(){return Rn()},get onClick(){return xe()}})});var At=M(Ze,2);{var qi=it=>{ad(it,{get ref(){return Je.autoplayNextToggle},set ref(Bt){Je.autoplayNextToggle=Bt}})};R(At,it=>{e.showAutoplayNext&&!Ne()&&it(qi)})}var hi=M(At,2);{var _i=it=>{Zl(it,{isMobile:!0,click:Qn,get state(){return _()},get ref(){return Je.chromecast},set ref(Bt){Je.chromecast=Bt}})};R(hi,it=>{r(Wn)&&it(_i)})}var Wi=M(hi,2);{var No=it=>{Rf(it,{click:Cn,get isPictureInPictureActive(){return u()},get ref(){return Je.pip},set ref(Bt){Je.pip=Bt}})};R(Wi,it=>{r(wo)&&it(No)})}var eo=M(Wi,2);{var Jn=it=>{Ka(it,{ref$:Fi})};R(eo,it=>{le()&&it(Jn)})}var un=M(eo,2);{var vr=it=>{jl(it,{click:Ae,get targetUrl(){return Ie()},get logoClickable(){return e.logoClickable},get ref(){return Je.vkLogo},set ref(Bt){Je.vkLogo=Bt}})};R(un,it=>{r(Mr)&&it(vr)})}g(To);var ko=M(To,2);let gr;var hr=h(ko);{var _r=it=>{let Bt=m(()=>$e.bind(null,!0));sa(it,{get click(){return r(Bt)},type:"prev",isMobile:!0,get ref(){return Je.prevButton},set ref(Ci){Je.prevButton=Ci}})};R(hr,it=>{r(wi)&&it(_r)})}var Nr=M(hr,2);{var Wo=it=>{ja(it,{get disabled(){return r(xo)},click:st,isMobile:!0,get isPlaying(){return r(gi)},get ref(){return Je.playButton},set ref(Bt){Je.playButton=Bt}})};R(Nr,it=>{r($n)&&it(Wo)})}var br=M(Nr,2);{var er=it=>{Ya(it,{get disabled(){return r(ri)},click:st,isMobile:!0,get ref(){return Je.replayButton},set ref(Bt){Je.replayButton=Bt}})};R(br,it=>{r(Vi)&&it(er)})}var tr=M(br,2);{var $r=it=>{let Bt=m(()=>Le.bind(null,!0));sa(it,{get click(){return r(Bt)},type:"next",isMobile:!0,get ref(){return Je.nextButton},set ref(Ci){Je.nextButton=Ci}})};R(tr,it=>{r(Yi)&&it($r)})}g(ko);var fo=M(ko,2);{var Vn=it=>{var Bt=gy(),Ci=ue(Bt);{var Ko=kt=>{var Zt=fy();let li;Zt.__click=[uy,bt,e,zt];var Ri=h(Zt);let mo=m(()=>!e.showControls);sd(Ri,{get hidden(){return r(mo)},get disabled(){return r(bt)},get click(){return e.playPrevChapter},get ref(){return Je.playPrevChapterButton},set ref(ii){Je.playPrevChapterButton=ii}}),g(Zt),I(ii=>li=te(Zt,1,"wrapper-middle-left svelte-1afsgkw",null,li,ii),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(kt,Zt)};R(Ci,kt=>{Fo&&kt(Ko)})}var Rn=M(Ci,2);{var xe=kt=>{var Zt=my();let li;var Ri=h(Zt);let mo=m(()=>!e.showControls&&!Ve());dd(Ri,{get hidden(){return r(mo)},get disabled(){return r(qn)},get click(){return xt.toggle},get graphIsOpened(){return Ve()},get ref(){return Je.interactiveGraphButton},set ref(ii){Je.interactiveGraphButton=ii}}),g(Zt),I(ii=>li=te(Zt,1,Sl(Fo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",li,ii),[()=>({fullscreen:F(),hidden:!e.showControls&&!Ve()})]),b(kt,Zt)};R(Rn,kt=>{r(uo)&&kt(xe)})}var Pt=M(Rn,2);{var ai=kt=>{var Zt=vy();let li;Zt.__click=[py,yo,e,co];var Ri=h(Zt);let mo=m(()=>!e.showControls);ld(Ri,{get hidden(){return r(mo)},get disabled(){return r(yo)},get click(){return e.seekToInteractive},get ref(){return Je.seekToInteractiveButton},set ref(ii){Je.seekToInteractiveButton=ii}}),g(Zt),I(ii=>li=te(Zt,1,"wrapper-middle-right svelte-1afsgkw",null,li,ii),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(kt,Zt)};R(Pt,kt=>{Gi&&kt(ai)})}b(it,Bt)};R(fo,it=>{ci&&!f()&&it(Vn)})}I((it,Bt,Ci,Ko)=>{Ji=te(Si,1,"overlay-mobile svelte-1afsgkw",null,Ji,it),So=te(zi,1,"wrapper-top-left svelte-1afsgkw",null,So,Bt),di=te(To,1,"wrapper-top-right svelte-1afsgkw",null,di,Ci),gr=te(ko,1,"wrapper-middle svelte-1afsgkw",null,gr,Ko)},[()=>({hidden:!r(wn)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(tt,pt)};R(Yn,tt=>{ne()||tt(Tn)})}var jn=M(Yn,2);{var ur=tt=>{var pt=$y(),Si=ue(pt);{var Ji=di=>{var Ze=_y();let At;var qi=h(Ze);Qc(qi,{get muted(){return X()},expanded:!1,click:dn,get ref(){return Je.volume},set ref(hi){Je.volume=hi}}),g(Ze),I(hi=>At=te(Ze,1,"wrapper-top-right svelte-1afsgkw",null,At,hi),[()=>({fullscreen:F()})]),b(di,Ze)};R(Si,di=>{j()&&di(Ji)})}var zi=M(Si,2);{var So=di=>{var Ze=by(),At=h(Ze);let qi=m(()=>!r(Ei));ja(At,{get disabled(){return r(xo)},click:st,isMobile:!0,get isPlaying(){return r(qi)},get ref(){return Je.playButton},set ref(hi){Je.playButton=hi}}),g(Ze),b(di,Ze)};R(zi,di=>{r(Ei)&&di(So)})}var Co=M(zi,2);let qo;var To=h(Co);Xl(To,{get position(){return Pe()},get duration(){return J()}}),g(Co),I(di=>qo=te(Co,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,qo,di),[()=>({fullscreen:F()})]),b(tt,pt)};R(jn,tt=>{ne()&&d()!=="inactive"&&tt(ur)})}var ji=M(jn,2);let Zi;var kn=h(ji);let In;var po=h(kn);te(po,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Xi=h(po);{var En=tt=>{Po(tt,{get disabled(){return r(ri)},get ref(){return Je.replayButton},set ref(pt){Je.replayButton=pt},children:(pt,Si)=>{Ya(pt,{get disabled(){return r(ri)},click:ni})},$$slots:{default:!0}})};R(Xi,tt=>{ci&&tt(En)})}var Ro=M(Xi,2);{var Lr=tt=>{Po(tt,{get ref(){return Je.liveButton},set ref(pt){Je.liveButton=pt},children:(pt,Si)=>{cd(pt,{get isLiveActive(){return r(Sn)},isMobile:!0,get ariaLabel(){return r(cn)}})},$$slots:{default:!0}})};R(Ro,tt=>{!ne()&&k()&&tt(Lr)})}var An=M(Ro,2);{var pr=tt=>{let pt=m(()=>ne()?Pe():Me()),Si=m(()=>ne()?J():Z());Ql(tt,{get showDuration(){return r(yn)},get position(){return r(pt)},get duration(){return r(Si)},isMobile:!0,get ref(){return Je.time},set ref(Ji){Je.time=Ji}})};R(An,tt=>{r(Kn)&&tt(pr)})}var Pn=M(An,2);let Mn=m(()=>!r(an));Po(Pn,{className:"w-max",get disabled(){return r(Mn)},get ref(){return Je.episodes},set ref(tt){Je.episodes=tt},children:(tt,pt)=>{var Si=Fe(),Ji=ue(Si);{var zi=So=>{var Co=yy(),qo=M(ue(Co),2);ed(qo,{get position(){return Me()},get duration(){return Z()},timeCodes:Ke}),b(So,Co)};R(Ji,So=>{r(an)&&So(zi)})}b(tt,Si)},$$slots:{default:!0}});var Vr=M(Pn,2);{var Zn=tt=>{Po(tt,{get ref(){return Je.settings},set ref(pt){Je.settings=pt},children:(pt,Si)=>{Ka(pt,{ref$:Fi})},$$slots:{default:!0}})};R(Vr,tt=>{r(xn)&&tt(Zn)})}var fr=M(Vr,2);{var Xn=tt=>{Po(tt,{get ref(){return Je.fullscreen},set ref(pt){Je.fullscreen=pt},children:(pt,Si)=>{Yl(pt,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};R(fr,tt=>{r(cr)&&tt(Xn)})}g(po),dt(po,tt=>Re(tt),()=>Re());var Ln=M(po,2);Jl(Ln,{get isAds(){return ne()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return Je.timeline},set ref(tt){Je.timeline=tt}}),g(kn),g(ji),dt(ji,tt=>B(tt),()=>B());var ti=M(ji,2);{var zo=tt=>{nd(tt,{get ref(){return Je.interactiveTimeIndicator},set ref(pt){Je.interactiveTimeIndicator=pt}})};R(ti,tt=>{Nt&&tt(zo)})}I((tt,pt)=>{Zi=te(ji,1,"wrapper-bottom svelte-1afsgkw",null,Zi,tt),In=te(kn,1,"controls-wrapper svelte-1afsgkw",null,In,pt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),b(t,Ui),W(),o()}rt(["click"]);function ud(t,e){q(e,!0);let[i,o]=He(),n=()=>C(k,"$isMobile",i),a=v(e,"bottomNoSmooth",3,!1),s=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),l=v(e,"isAds",3,!1),p=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),u=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,Yh),y=v(e,"onDisabledSeekToInteractiveClick",3,Yh),k=Se().ui.isMobile,A=ee(!1);Dt(()=>{let V=setTimeout(()=>O(A,!0),0);return()=>clearTimeout(V)});var P=Fe(),E=ue(P);{var T=V=>{var z=Fe(),Y=ue(z);{var F=X=>{Nf(X,{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 f()},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(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})},j=X=>{Af(X,{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 f()},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(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})};R(Y,X=>{n()?X(F):X(j,!1)})}b(V,z)};R(E,V=>{r(A)&&V(T)})}b(t,P),W(),o()}var Sy=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 Bf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Sy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 Df(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Bf(t,{get style(){return r(o)}})}var Cy=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 Ty=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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 Gc(t,e){let i=v(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 ky=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=ky();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Ff(t,{get style(){return r(o)}})}var Iy=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(2),g(o),I(()=>n=we(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=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);zf(t,{get style(){return r(o)}})}var Ey=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Ay=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Py=L("<div><!></div>"),My={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 Rf(t,e){var xi,Yn;U(e,!0),q(t,Vy);let[i,o]=Be(),n=()=>S(lo,"$seekToInteractiveDisabledTooltip$",i),a=()=>S(Ii,"$disabledControls$",i),s=()=>S(Pt,"$playbackState$",i),d=()=>S(yt,"$adPlaybackState",i),l=()=>S(At,"$isEnded$",i),p=()=>S(yo,"$playerSize",i),m=()=>S(Re,"$scrubbingInProgress",i),$=()=>S(jt,"$chromecastState$",i),u=()=>S(ot,"$isPictureInPictureActive",i),_=()=>S(lt,"$pictureInPictureType$",i),w=()=>S(He,"$mobileNotReportControlHidden$",i),y=()=>S(ht,"$playerPhase",i),C=()=>S(Ki,"$currentGridType$",i),T=()=>S(_e,"$isLive$",i),E=()=>S(Xe,"$settingsMenuVisible",i),P=()=>S(re,"$isRewindableLive$",i),A=()=>S(be,"$isActiveLive$",i),I=()=>S(Fi,"$isInteractiveTime$",i),V=()=>S(Wt,"$isAudioAvailable$",i),H=()=>S(In,"$settingButtonRef$",i),G=()=>S(Hi,"$startedByKeyboard$",i),O=()=>S(Vt,"$isFullscreen",i),X=()=>S(Ze,"$mobileUnmuteButtonVisible",i),oe=()=>S(j,"$muted$",i),Y=()=>S(Ye,"$mobileUnmuteButtonExpanded",i),fe=()=>S(nn,"$additionalButtons$",i),ae=()=>S(Vi,"$crashed$",i),Le=()=>S(Ct,"$graphIsOpened$",i),Ae=()=>S(Mt,"$adPosition",i),he=()=>S(Qi,"$adDuration",i),se=()=>S(ft,"$position$",i),Me=()=>S(Je,"$duration$",i),ne=f(e,"playerControlsWrapperRef",15,void 0),N=f(e,"playerControlsRef",15,void 0),ue=f(e,"isAds",3,!1),ge=f(e,"logoTargetUrl",3,""),Qe=f(e,"isOneVideoPlaylist",3,!1),te=f(e,"customFullscreenSupported",3,!0),Q=Te(),W=ao(),Ve=Ut(),De=Q.actions.internal.toggleMuted,et=Q.actions.internal.togglePlay,Se=Q.actions.internal.pause,$e=Q.actions.internal.prevVideoClick,Ne=Q.actions.internal.nextVideoClick,je=(xi=Q.callbacks)==null?void 0:xi.onAudioDoesNotExistHint,it=(Yn=Q.callbacks)==null?void 0:Yn.onAudioDisabledHint,ht=Q.playerPhase,Je=Q.state.duration$,ft=Q.state.positionWithScrubbing$,Pt=Q.state.playbackState$,Wt=Q.state.isAudioAvailable$,Kt=Q.state.isAudioDisabled,At=Q.state.isEnded$,_e=Q.state.isLive$,j=Q.state.muted$,be=Q.state.isActiveLive$,re=Q.state.isRewindableLive$,Re=Q.ui.scrubbingInProgress,He=Q.ui.mobileNotReportControlHidden$,{isActive$:ot,type$:lt}=W.pictureInPicture$,Ye=Q.ui.mobileUnmuteButtonExpanded,Ze=Q.ui.mobileUnmuteButtonVisible,Xe=Q.ui.settingsMenu.visible$,We=Q.ui.settingsMenu.openedByBtnKeyboard$,mt=Q.ui.controls,ze=Q.actions.internal.getVideoEpisodes(),dt=Q.webApi.pictureInPictureApi,jt=Q.state.chromecastState$,Vi=Q.state.crashed$,Ii=mt.disabledControls$,Hi=Q.ui.startedByKeyboard$,Ki=Q.ui.currentGridType$,Qi=Q.ads.duration,Mt=Q.ads.position,yt=Q.ads.playbackState,Vt=Q.ui.isFullscreen,yo=Q.ui.playerSize,nn=Q.ui.additionalButtonsDeprecated$,Z=Q.actions.internal.getVideoElement,Jt=Q.actions.internal.replayInteractive,di=Q.state.isInteractive,Fi=Q.state.isInteractiveTime$,ii=Q.state.showInteractiveGraph,ci=Q.state.showSeekToInteractive,oi=Q.state.showPlayPrevChapter,ct=Q.state.showInteractiveTimeIndicator,lo=W.seekToInteractiveDisabledTooltip$,Ct=W.graphIsOpened$,zt=v(()=>F(Q.state.playPrevChapterDisabledTooltip)),ei=v(()=>F(n())),co=v(()=>a().has("EPISODE_BUTTON")),yn=v(()=>a().has("GRAPH_BUTTON")),Gi=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),xo=v(()=>a().has("PLAY_BUTTON")),si=v(()=>a().has("REPLAY_BUTTON")),xt=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),wo=v(()=>s()===Yh.PLAYING),ki=v(()=>d()==="paused"),yi=v(()=>l()&&!ue()&&!di),Ho=v(()=>!l()||ue()),Zi=v(()=>e.showNextPrevButtons&&!ue()&&e.prevButtonActive),Ui=v(()=>e.showNextPrevButtons&&!ue()&&e.nextButtonActive),xn=v(()=>p().width>300),wn=v(()=>p().width>400),Ri=v(m),rn=v(()=>$()!==jh.NOT_AVAILABLE&&!(u()&&_()===1)&&!w()&&!di),So=v(()=>y()==="LiveWaitingStart"),Co=v(()=>!!dt&&$()!==jh.CONNECTED&&!w()&&(_()===1&&r(So)||!r(So))&&!r(Ri)&&!di),wr=v(()=>!r(Ri)&&Wi(C(),"s")),rr=v(()=>!e.logoHidden&&p().width>350),Sn=v(()=>Ve.features.fullscreen&&!(u()&&_()===1)&&(di?te():!0)&&!r(Ri)),zn=v(()=>(!T()||ue())&&p().width>260&&!r(Ri)&&!(Ve.features.interactiveHideTime&&di)),qn=v(()=>E()||e.showControls),uo=v(()=>!ue()&&!T()&&!!(ze!=null&&ze.length)&&r(xn)&&!r(co)&&!r(Ri)),Fo=v(()=>!P()||!!A()),Cn=v(()=>ii&&Wi(C(),"m")),nt=pe({}),Uo=yy(Xa,260);qe(()=>{p(),I(),Uo(Z(),mt,nt,e.showControls)});let sn=()=>Q.actions.internal.toggleChromecast();function Tn(){$s({isAudioDisabled:Kt,audioDisabledHintCallback:it,isAudioAvailable:V(),audioIsNotExistHintCallback:je})&&De()}async function sr(){dt!=null&&dt.isActive()?await(dt==null?void 0:dt.remove()):await(dt==null?void 0:dt.request())}function zo(){!Kt&&V()&&Ze.set(!1),Tn()}let Wn=J(""),an=(vt,Ot)=>{if(!vt){B(Wn,pe(F("tooltip_live")));return}Ot&&Ot===Yh.PAUSED&&B(Wn,pe(F("tooltip_play")))};qe(()=>{an(r(Fo),s())});let In=de();qe(()=>{H()&&qa(H(),E(),We)}),qe(()=>{Gc(Hi,G(),nt.playButton)});var Di=Ly(),ji=ce(Di);{var kn=vt=>{var Ot=ky(),Ei=ce(Ot);let Io;var rt=M(Ei,2);let Rt;var ui=h(rt);{var Ni=st=>{let Ht=v(()=>V()&&!Kt&&Y());Yc(st,{get muted(){return oe()},get expanded(){return r(Ht)},click:zo,get ref(){return nt.volume},set ref(Ai){nt.volume=Ai}})};R(ui,st=>{(!V()||X())&&st(Ni)})}g(rt);var po=M(rt,2);let $i;var Pi=h(po);Si(Pi,1,fe,({iconUrl:st,ariaLabel:Ht,testId:Ai,onClick:we,tooltip:It})=>st,(st,Ht)=>{let Ai=()=>r(Ht).iconUrl,we=()=>r(Ht).ariaLabel,It=()=>r(Ht).testId,pi=()=>r(Ht).onClick,vi=()=>r(Ht).tooltip,Eo=v(()=>{var li;return(li=we())!=null?li:vi()});Pf(st,{get iconUrl(){return Ai()},get ariaLabel(){return r(Eo)},get testId(){return It()},get onClick(){return pi()}})});var mi=M(Pi,2);{var fo=st=>{pd(st,{get ref(){return nt.autoplayNextToggle},set ref(Ht){nt.autoplayNextToggle=Ht}})};R(mi,st=>{e.showAutoplayNext&&!Qe()&&st(fo)})}var Xi=M(mi,2);{var Ji=st=>{od(st,{isMobile:!0,click:sn,get state(){return $()},get ref(){return nt.chromecast},set ref(Ht){nt.chromecast=Ht}})};R(Xi,st=>{r(rn)&&st(Ji)})}var un=M(Xi,2);{var Zn=st=>{Vf(st,{click:sr,get isPictureInPictureActive(){return u()},get ref(){return nt.pip},set ref(Ht){nt.pip=Ht}})};R(un,st=>{r(Co)&&st(Zn)})}var Xn=M(un,2);{var Tr=st=>{ja(st,{ref$:In})};R(Xn,st=>{ae()&&st(Tr)})}var Ir=M(Xn,2);{var An=st=>{id(st,{click:Se,get targetUrl(){return ge()},get logoClickable(){return e.logoClickable},get ref(){return nt.vkLogo},set ref(Ht){nt.vkLogo=Ht}})};R(Ir,st=>{r(rr)&&st(An)})}g(po);var Mn=M(po,2);let ko;var kr=h(Mn);{var Ro=st=>{let Ht=v(()=>$e.bind(null,!0));aa(st,{get click(){return r(Ht)},type:"prev",isMobile:!0,get ref(){return nt.prevButton},set ref(Ai){nt.prevButton=Ai}})};R(kr,st=>{r(Zi)&&st(Ro)})}var cr=M(kr,2);{var Er=st=>{el(st,{get disabled(){return r(xo)},click:et,isMobile:!0,get isPlaying(){return r(wo)},get ref(){return nt.playButton},set ref(Ht){nt.playButton=Ht}})};R(cr,st=>{r(Ho)&&st(Er)})}var Pr=M(cr,2);{var ur=st=>{Ja(st,{get disabled(){return r(si)},click:et,isMobile:!0,get ref(){return nt.replayButton},set ref(Ht){nt.replayButton=Ht}})};R(Pr,st=>{r(yi)&&st(ur)})}var Yi=M(Pr,2);{var pn=st=>{let Ht=v(()=>Ne.bind(null,!0));aa(st,{get click(){return r(Ht)},type:"next",isMobile:!0,get ref(){return nt.nextButton},set ref(Ai){nt.nextButton=Ai}})};R(Yi,st=>{r(Ui)&&st(pn)})}g(Mn);var Fr=M(Mn,2);{var pr=st=>{var Ht=Iy(),Ai=ce(Ht);{var we=li=>{var ke=Sy();let Tt;ke.__click=[xy,xt,e,zt];var Zt=h(ke);let wi=v(()=>!e.showControls);ud(Zt,{get hidden(){return r(wi)},get disabled(){return r(xt)},get click(){return e.playPrevChapter},get ref(){return nt.playPrevChapterButton},set ref(ti){nt.playPrevChapterButton=ti}}),g(ke),k(ti=>Tt=ee(ke,1,"wrapper-middle-left svelte-1afsgkw",null,Tt,ti),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(li,ke)};R(Ai,li=>{oi&&li(we)})}var It=M(Ai,2);{var pi=li=>{var ke=Cy();let Tt;var Zt=h(ke);let wi=v(()=>!e.showControls&&!Le());md(Zt,{get hidden(){return r(wi)},get disabled(){return r(yn)},get click(){return Ct.toggle},get graphIsOpened(){return Le()},get ref(){return nt.interactiveGraphButton},set ref(ti){nt.interactiveGraphButton=ti}}),g(ke),k(ti=>Tt=ee(ke,1,El(oi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Tt,ti),[()=>({fullscreen:O(),hidden:!e.showControls&&!Le()})]),b(li,ke)};R(It,li=>{r(Cn)&&li(pi)})}var vi=M(It,2);{var Eo=li=>{var ke=Ty();let Tt;ke.__click=[wy,Gi,e,ei];var Zt=h(ke);let wi=v(()=>!e.showControls);fd(Zt,{get hidden(){return r(wi)},get disabled(){return r(Gi)},get click(){return e.seekToInteractive},get ref(){return nt.seekToInteractiveButton},set ref(ti){nt.seekToInteractiveButton=ti}}),g(ke),k(ti=>Tt=ee(ke,1,"wrapper-middle-right svelte-1afsgkw",null,Tt,ti),[()=>({fullscreen:O(),hidden:!e.showControls})]),b(li,ke)};R(vi,li=>{ci&&li(Eo)})}b(st,Ht)};R(Fr,st=>{di&&!m()&&st(pr)})}k((st,Ht,Ai,we)=>{Io=ee(Ei,1,"overlay-mobile svelte-1afsgkw",null,Io,st),Rt=ee(rt,1,"wrapper-top-left svelte-1afsgkw",null,Rt,Ht),$i=ee(po,1,"wrapper-top-right svelte-1afsgkw",null,$i,Ai),ko=ee(Mn,1,"wrapper-middle svelte-1afsgkw",null,ko,we)},[()=>({hidden:!r(qn)}),()=>({hidden:!e.showControls,fullscreen:O()}),()=>({hidden:!e.showControls&&!w(),fullscreen:O()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(vt,Ot)};R(ji,vt=>{ue()||vt(kn)})}var Mo=M(ji,2);{var En=vt=>{var Ot=Ay(),Ei=ce(Ot);{var Io=$i=>{var Pi=Ey();let mi;var fo=h(Pi);Yc(fo,{get muted(){return oe()},expanded:!1,click:zo,get ref(){return nt.volume},set ref(Xi){nt.volume=Xi}}),g(Pi),k(Xi=>mi=ee(Pi,1,"wrapper-top-right svelte-1afsgkw",null,mi,Xi),[()=>({fullscreen:O()})]),b($i,Pi)};R(Ei,$i=>{X()&&$i(Io)})}var rt=M(Ei,2);{var Rt=$i=>{var Pi=Py(),mi=h(Pi);let fo=v(()=>!r(ki));el(mi,{get disabled(){return r(xo)},click:et,isMobile:!0,get isPlaying(){return r(fo)},get ref(){return nt.playButton},set ref(Xi){nt.playButton=Xi}}),g(Pi),b($i,Pi)};R(rt,$i=>{r(ki)&&$i(Rt)})}var ui=M(rt,2);let Ni;var po=h(ui);nd(po,{get position(){return Ae()},get duration(){return he()}}),g(ui),k($i=>Ni=ee(ui,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Ni,$i),[()=>({fullscreen:O()})]),b(vt,Ot)};R(Mo,vt=>{ue()&&d()!=="inactive"&&vt(En)})}var qo=M(Mo,2);let Lo;var fi=h(qo);let Kn;var To=h(fi);ee(To,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var ar=h(To);{var ln=vt=>{Ao(vt,{get disabled(){return r(si)},get ref(){return nt.replayButton},set ref(Ot){nt.replayButton=Ot},children:(Ot,Ei)=>{Ja(Ot,{get disabled(){return r(si)},click:Jt})},$$slots:{default:!0}})};R(ar,vt=>{di&&vt(ln)})}var dn=M(ar,2);{var lr=vt=>{Ao(vt,{get ref(){return nt.liveButton},set ref(Ot){nt.liveButton=Ot},children:(Ot,Ei)=>{vd(Ot,{get isLiveActive(){return r(Fo)},isMobile:!0,get ariaLabel(){return r(Wn)}})},$$slots:{default:!0}})};R(dn,vt=>{!ue()&&T()&&vt(lr)})}var Wo=M(dn,2);{var Sr=vt=>{let Ot=v(()=>ue()?Ae():se()),Ei=v(()=>ue()?he():Me());Jl(vt,{get showDuration(){return r(wn)},get position(){return r(Ot)},get duration(){return r(Ei)},isMobile:!0,get ref(){return nt.time},set ref(Io){nt.time=Io}})};R(Wo,vt=>{r(zn)&&vt(Sr)})}var Pn=M(Wo,2);let Qn=v(()=>!r(uo));Ao(Pn,{className:"w-max",get disabled(){return r(Qn)},get ref(){return nt.episodes},set ref(vt){nt.episodes=vt},children:(vt,Ot)=>{var Ei=Ue(),Io=ce(Ei);{var rt=Rt=>{var ui=My(),Ni=M(ce(ui),2);rd(Ni,{get position(){return se()},get duration(){return Me()},timeCodes:ze}),b(Rt,ui)};R(Io,Rt=>{r(uo)&&Rt(rt)})}b(vt,Ei)},$$slots:{default:!0}});var dr=M(Pn,2);{var Cr=vt=>{Ao(vt,{get ref(){return nt.settings},set ref(Ot){nt.settings=Ot},children:(Ot,Ei)=>{ja(Ot,{ref$:In})},$$slots:{default:!0}})};R(dr,vt=>{r(wr)&&vt(Cr)})}var Gn=M(dr,2);{var cn=vt=>{Ao(vt,{get ref(){return nt.fullscreen},set ref(Ot){nt.fullscreen=Ot},children:(Ot,Ei)=>{td(Ot,{get click(){return e.toggleFullscreen},get isFullscreen(){return O()}})},$$slots:{default:!0}})};R(Gn,vt=>{r(Sn)&&vt(cn)})}g(To),pt(To,vt=>N(vt),()=>N());var jn=M(To,2);na(jn,{get isAds(){return ue()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return nt.timeline},set ref(vt){nt.timeline=vt}}),g(fi),g(qo),pt(qo,vt=>ne(vt),()=>ne());var ai=M(qo,2);{var Vo=vt=>{dd(vt,{get ref(){return nt.interactiveTimeIndicator},set ref(Ot){nt.interactiveTimeIndicator=Ot}})};R(ai,vt=>{ct&&vt(Vo)})}k((vt,Ot)=>{Lo=ee(qo,1,"wrapper-bottom svelte-1afsgkw",null,Lo,vt),Kn=ee(fi,1,"controls-wrapper svelte-1afsgkw",null,Kn,Ot)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:O()})]),b(t,Di),z(),o()}at(["click"]);function hd(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,Zh),y=f(e,"onDisabledSeekToInteractiveClick",3,Zh),T=Te().ui.isMobile,E=J(!1);Ft(()=>{let V=setTimeout(()=>B(E,!0),0);return()=>clearTimeout(V)});var P=Ue(),A=ce(P);{var I=V=>{var H=Ue(),G=ce(H);{var O=oe=>{Rf(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 $()},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=oe=>{Ef(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 $()},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(G,oe=>{n()?oe(O):oe(X,!1)})}b(V,H)};R(A,V=>{r(E)&&V(I)})}b(t,P),z(),o()}var Ry=xe('<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=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Ry();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(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 Nf(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 Dy=xe('<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 Bf(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}),ye(2),g(o),k(()=>n=Ie(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=xe('<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 Of(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}),ye(2),g(o),k(()=>n=Ie(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 Zc(t,e){let i=f(e,"isOff",3,!1);var o=Ue(),n=ce(o);{var a=d=>{Of(d,{})},s=d=>{Bf(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var By=xe('<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 Hf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(2),g(o),k(()=>n=Ie(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 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=xe('<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 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}),ye(2),g(o),k(()=>n=Ie(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 zf(t,e){let i=f(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Uf(t,{get style(){return r(o)}})}var Hy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Fy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Uy=L("<div><!></div>"),zy={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
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"],
265
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"],
266
267
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -275,21 +276,23 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
275
276
  @keyframes svelte-1ad3n06-fadeOut {
276
277
  0% {opacity:1;}
277
278
  100% {opacity:0;}
278
- }`};function Wf(t,e){q(e,!0),Q(t,My);let[i,o]=He(),n=()=>C(e.data,"$data",i),s=Se().ui.t,d=m(()=>!n()),l=m(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=m(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=m(()=>{var S;return(S=n())==null?void 0:S.type}),_=m(()=>{var S,k;return(S=n())!=null&&S.t?s(n().t.key,{value:n().t.value||""}):(k=n())==null?void 0:k.text});var u=Py();let $;var w=h(u);{var y=S=>{var k=Ay(),A=ue(k),P=h(A);{var E=fe=>{let D=m(()=>r(f)==="FORWARD_SEEK");Df(fe,{get reversed(){return r(D)}})};R(P,fe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&fe(E)})}var T=M(P,2);{var V=fe=>{ss(fe,{})};R(T,fe=>{r(f)==="PAUSE"&&fe(V)})}var z=M(T,2);{var Y=fe=>{Ar(fe,{})};R(z,fe=>{r(f)==="PLAY"&&fe(Y)})}var F=M(z,2);{var j=fe=>{rd(fe,{})};R(F,fe=>{r(f)==="REPLAY"&&fe(j)})}var X=M(F,2);{var oe=fe=>{Gc(fe,{isOff:!0})};R(X,fe=>{r(f)==="SUBTITLES_OFF"&&fe(oe)})}var pe=M(X,2);{var le=fe=>{Gc(fe,{})};R(pe,fe=>{r(f)==="SUBTITLES_ON"&&fe(le)})}var Ve=M(pe,2);{var Pe=fe=>{let D=m(()=>r(f)==="RATE_UP");Uf(fe,{get reversed(){return r(D)}})};R(Ve,fe=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&fe(Pe)})}var J=M(Ve,2);{var Me=fe=>{let D=m(()=>r(f)==="EPISODE_NEXT");qf(fe,{get reversed(){return r(D)}})};R(J,fe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&fe(Me)})}var Z=M(J,2);{var B=fe=>{ws(fe,{volume:0})};R(Z,fe=>{r(f)==="MUTE"&&fe(B)})}var Re=M(Z,2);{var ne=fe=>{ws(fe,{volume:1})};R(Re,fe=>{r(f)==="VOLUME"&&fe(ne)})}g(A);var Ie=M(A,2);{var Ne=fe=>{var D=Ey(),de=h(D,!0);g(D),I(()=>ve(de,r(_))),b(fe,D)};R(Ie,fe=>{r(_)&&fe(Ne)})}b(S,k)};R(w,S=>{!r(d)&&r(f)&&S(y)})}g(u),I(S=>$=te(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(p)})]),b(t,u),W(),o()}var Ly=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 Vy=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 Ts(t,e){q(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),s=m(()=>(()=>{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=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Kf(_,{get style(){return r(s)},get"data-testid"(){return r(u)}})},f=_=>{let u=m(()=>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):_(f,!1)})}b(t,d),W()}var Ry=(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}},Ny=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},By=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>'),Dy={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 pd(t,e){q(e,!0),Q(t,Dy);let i=v(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),f=H("aria_label_spherical_control");var _=By();let u;_.__keydown=[Ry,n,a,s,l,d],_.__keyup=[Ny,n,p],Oe(_,"aria-label",f);var $=h(_),w=h($),y=h(w);y.__mousedown=a,y.__mouseup=p;var S=h(y);Ts(S,{direction:"up",useBtnColor:!0}),g(y);var k=M(y,2);k.__mousedown=d,k.__mouseup=p;var A=h(k);Ts(A,{direction:"up",useBtnColor:!0}),g(k),g(w);var P=M(w,2),E=h(P);E.__mousedown=l,E.__mouseup=p;var T=h(E);Ts(T,{direction:"up",useBtnColor:!0}),g(E);var V=M(E,2);V.__mousedown=s,V.__mouseup=p;var z=h(V);Ts(z,{direction:"up",useBtnColor:!0}),g(V),g(P),g($),g(_),I(Y=>u=te(_,1,"immersive-controls svelte-1yzc86r",null,u,Y),[()=>({"m-shifted":i()})]),Tt("mouseleave",y,p),Tt("mouseleave",k,p),Tt("mouseleave",E,p),Tt("mouseleave",V,p),b(t,_),W()}rt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as Zh,Subscription as Oy,filterChanged as Hy,filter as Fy}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 Yc=class{constructor(){this.flickeringTimeout=jh(1e3);this.subscriptions=new Oy;this.isAuto=!1;this.isLive=!1;this.captions$=new Zh([]);this.captionsPrepared$=new Zh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(Fy(()=>this.isEnabled()),Hy()).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 Uy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),zy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),qy=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),Wy=L('<div><span class="caption svelte-c2x749"><!></span></div>'),Ky=L("<div><!></div>"),Qy={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;
279
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function fd(t,e){q(e,!0),Q(t,Qy);let[i,o]=He(),n=()=>C(_,"$currentSubtitle$",i),a=()=>C($,"$isLive$",i),s=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),p=Se(),f=qt(),_=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,y=m(()=>!!n().isAuto),S=m(()=>!!a()),k=m(()=>e.playerSize.width*.02),A=m(()=>l()&&!s()||r(k)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(k)),P=ee(null);qe(()=>{var j,X,oe;(j=r(P))==null||j.setIsAuto(r(y)),(X=r(P))==null||X.setIsLive(r(S)),(oe=r(P))==null||oe.setCaptions(e.captions)});let E=ee(me([[]]));Dt(()=>{O(P,me(new Yc().subscribe()));let j=r(P).captionsPrepared$.subscribe(X=>{O(E,me(X))});return()=>{var X;(X=r(P))==null||X.destroy(),j.unsubscribe()}}),Dt(()=>{if(r(y)){let j=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(j)}}else u.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=Ky();let z;var Y=h(V);{var F=j=>{var X=Wy();let oe;var pe=h(X),le=h(pe);{var Ve=J=>{var Me=Uy(),Z=h(Me),B=h(Z,!0);g(Z),g(Me),I(Re=>{var ne;et(Z,`font-size: ${(ne=r(A))!=null?ne:""}px`),ve(B,Re)},[()=>H("subtitles_auto_caption")]),b(J,Me)},Pe=(J,Me)=>{{var Z=Re=>{var ne=Fe(),Ie=ue(ne);$i(Ie,17,()=>r(E),yl,(Ne,fe)=>{var D=zy(),de=h(D);$i(de,21,()=>r(fe),({value:Ee,timeAppeared:Qe})=>Qe,(Ee,Qe)=>{let st=()=>r(Qe).value,Ae=()=>r(Qe).timeAppeared;var $e=Fe(),Le=ue($e);{var je=ct=>{var ot=rr();I(()=>ve(ot,st())),b(ct,ot)};R(Le,ct=>{(!Ae()||Ae()<=e.position)&&ct(je)})}b(Ee,$e)}),g(de),g(D),I(()=>{var Ee;return et(de,`font-size: ${(Ee=r(A))!=null?Ee:""}px`)}),b(Ne,D)}),b(Re,ne)},B=Re=>{var ne=Fe(),Ie=ue(ne);$i(Ie,17,()=>e.captions,({value:Ne})=>Ne,(Ne,fe)=>{let D=()=>r(fe).value;var de=qy(),Ee=h(de),Qe=h(Ee,!0);g(Ee),g(de),I(()=>{var st;et(Ee,`font-size: ${(st=r(A))!=null?st:""}px`),ve(Qe,D())}),b(Ne,de)}),b(Re,ne)};R(J,Re=>{var ne;r(y)&&((ne=r(E))!=null&&ne.length)?Re(Z):Re(B,!1)},Me)}};R(le,J=>{r(y)&&d()?J(Ve):J(Pe,!1)})}g(pe),g(X),I(J=>{var Me;oe=te(X,1,"subtitles-caption svelte-c2x749",null,oe,J),et(X,`--subtitles-caption-margin: ${(Me=r(T))!=null?Me:""}%`)},[()=>({mobile:l()})]),b(j,X)};R(Y,j=>{var X;(e.captions.length||(X=r(E))!=null&&X.length)&&j(F)})}g(V),I(j=>z=te(V,1,"subtitles-container svelte-c2x749",null,z,j),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),b(t,V),W(),o()}var Gy=L('<div class="text svelte-raurnb"> </div>'),Yy=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>'),jy={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 md(t,e){q(e,!0),Q(t,jy);let i=qt();var o=Yy();let n;var a=M(h(o),2);{var s=d=>{var l=Gy(),p=h(l);g(l),I(()=>{var f;return ve(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),I(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),et(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),W()}var Zy=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 Xy=L('<div class="container svelte-13zpvm8"><!></div>'),Jy={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 vd(t){Q(t,Jy);var e=Xy(),i=h(e);Gf(i,{}),g(e),b(t,e)}var e4=L('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),t4={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {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, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {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-1xnh9dd {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, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function gd(t,e){q(e,!0),Q(t,t4);let i=Se(),o=qt(),n=i.ui.startedByKeyboard$,a=H("tooltip_play"),s=u=>{let $=u.code;["Enter","Space"].includes($)&&(u.stopPropagation(),u.preventDefault(),n.set(!0),e.startVideo())},d=u=>{u.stopPropagation(),e.startVideo()};var l=e4();let p;l.__click=d;var f=h(l);f.__keydown=s,Oe(f,"aria-label",a);var _=M(h(f),2);return Ar(_,{}),g(f),g(l),I(u=>{p=te(l,1,"container svelte-1xnh9dd",null,p,u),et(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:o.features.previewNoEmptySpace})]),b(t,l),W({handlePressKey:s,handleClick:d})}rt(["click","keydown"]);var i4=L("<div> </div>"),o4={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(
279
+ }`};function qf(t,e){U(e,!0),q(t,zy);let[i,o]=Be(),n=()=>S(e.data,"$data",i),s=Te().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=Uy();let _;var w=h(u);{var y=C=>{var T=Fy(),E=ce(T),P=h(E);{var A=te=>{let Q=v(()=>r(m)==="FORWARD_SEEK");Nf(te,{get reversed(){return r(Q)}})};R(P,te=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(m))&&te(A)})}var I=M(P,2);{var V=te=>{ns(te,{})};R(I,te=>{r(m)==="PAUSE"&&te(V)})}var H=M(I,2);{var G=te=>{yr(te,{})};R(H,te=>{r(m)==="PLAY"&&te(G)})}var O=M(H,2);{var X=te=>{cd(te,{})};R(O,te=>{r(m)==="REPLAY"&&te(X)})}var oe=M(O,2);{var Y=te=>{Zc(te,{isOff:!0})};R(oe,te=>{r(m)==="SUBTITLES_OFF"&&te(Y)})}var fe=M(oe,2);{var ae=te=>{Zc(te,{})};R(fe,te=>{r(m)==="SUBTITLES_ON"&&te(ae)})}var Le=M(fe,2);{var Ae=te=>{let Q=v(()=>r(m)==="RATE_UP");Ff(te,{get reversed(){return r(Q)}})};R(Le,te=>{["RATE_DOWN","RATE_UP"].includes(r(m))&&te(Ae)})}var he=M(Le,2);{var se=te=>{let Q=v(()=>r(m)==="EPISODE_NEXT");zf(te,{get reversed(){return r(Q)}})};R(he,te=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(m))&&te(se)})}var Me=M(he,2);{var ne=te=>{ys(te,{volume:0})};R(Me,te=>{r(m)==="MUTE"&&te(ne)})}var N=M(Me,2);{var ue=te=>{ys(te,{volume:1})};R(N,te=>{r(m)==="VOLUME"&&te(ue)})}g(E);var ge=M(E,2);{var Qe=te=>{var Q=Hy(),W=h(Q,!0);g(Q),k(()=>me(W,r($))),b(te,Q)};R(ge,te=>{r($)&&te(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 qy=xe('<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 Wf(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}),ye(),g(o),k(()=>n=Ie(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 Wy=xe('<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 Kf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 Ss(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=Ue(),l=ce(d);{var p=$=>{let u=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Wf($,{get style(){return r(s)},get"data-testid"(){return r(u)}})},m=$=>{let u=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Kf($,{get style(){return r(s)},get"data-testid"(){return r(u)}})};R(l,$=>{r(n)?$(p):$(m,!1)})}b(t,d),z()}var Ky=(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}},Qy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Gy=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>'),jy={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),q(t,jy);let i=f(e,"isShifted",3,!1),o=Te(),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 $=Gy();let u;$.__keydown=[Ky,n,a,s,l,d],$.__keyup=[Qy,n,p],Oe($,"aria-label",m);var _=h($),w=h(_),y=h(w);y.__mousedown=a,y.__mouseup=p;var C=h(y);Ss(C,{direction:"up",useBtnColor:!0}),g(y);var T=M(y,2);T.__mousedown=d,T.__mouseup=p;var E=h(T);Ss(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);Ss(I,{direction:"up",useBtnColor:!0}),g(A);var V=M(A,2);V.__mousedown=s,V.__mouseup=p;var H=h(V);Ss(H,{direction:"up",useBtnColor:!0}),g(V),g(P),g(_),g($),k(G=>u=ee($,1,"immersive-controls svelte-1yzc86r",null,u,G),[()=>({"m-shifted":i()})]),wt("mouseleave",y,p),wt("mouseleave",T,p),wt("mouseleave",A,p),wt("mouseleave",V,p),b(t,$),z()}at(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as Jh,Subscription as Yy,filterChanged as Zy,filter as Xy}from"@vkontakte/videoplayer-shared/es2018";var Xh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Xc=class{constructor(){this.flickeringTimeout=Xh(1e3);this.subscriptions=new Yy;this.isAuto=!1;this.isLive=!1;this.captions$=new Jh([]);this.captionsPrepared$=new Jh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(Xy(()=>this.isEnabled()),Zy()).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 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('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),i4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),o4=L("<div><!></div>"),n4={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,n4);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=Te(),m=Ut(),$=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);qe(()=>{var X,oe,Y;(X=r(P))==null||X.setIsAuto(r(y)),(oe=r(P))==null||oe.setIsLive(r(C)),(Y=r(P))==null||Y.setCaptions(e.captions)});let A=J(pe([[]]));Ft(()=>{B(P,pe(new Xc().subscribe()));let X=r(P).captionsPrepared$.subscribe(oe=>{B(A,pe(oe))});return()=>{var oe;(oe=r(P))==null||oe.destroy(),X.unsubscribe()}}),Ft(()=>{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=o4();let H;var G=h(V);{var O=X=>{var oe=i4();let Y;var fe=h(oe),ae=h(fe);{var Le=he=>{var se=Jy(),Me=h(se),ne=h(Me,!0);g(Me),g(se),k(N=>{var ue;tt(Me,`font-size: ${(ue=r(E))!=null?ue:""}px`),me(ne,N)},[()=>F("subtitles_auto_caption")]),b(he,se)},Ae=(he,se)=>{{var Me=N=>{var ue=Ue(),ge=ce(ue);Si(ge,17,()=>r(A),Il,(Qe,te)=>{var Q=e4(),W=h(Q);Si(W,21,()=>r(te),({value:Ve,timeAppeared:De})=>De,(Ve,De)=>{let et=()=>r(De).value,Se=()=>r(De).timeAppeared;var $e=Ue(),Ne=ce($e);{var je=it=>{var ht=Rr();k(()=>me(ht,et())),b(it,ht)};R(Ne,it=>{(!Se()||Se()<=e.position)&&it(je)})}b(Ve,$e)}),g(W),g(Q),k(()=>{var Ve;return tt(W,`font-size: ${(Ve=r(E))!=null?Ve:""}px`)}),b(Qe,Q)}),b(N,ue)},ne=N=>{var ue=Ue(),ge=ce(ue);Si(ge,17,()=>e.captions,({value:Qe})=>Qe,(Qe,te)=>{let Q=()=>r(te).value;var W=t4(),Ve=h(W),De=h(Ve,!0);g(Ve),g(W),k(()=>{var et;tt(Ve,`font-size: ${(et=r(E))!=null?et:""}px`),me(De,Q())}),b(Qe,W)}),b(N,ue)};R(he,N=>{var ue;r(y)&&((ue=r(A))!=null&&ue.length)?N(Me):N(ne,!1)},se)}};R(ae,he=>{r(y)&&d()?he(Le):he(Ae,!1)})}g(fe),g(oe),k(he=>{var se;Y=ee(oe,1,"subtitles-caption svelte-c2x749",null,Y,he),tt(oe,`--subtitles-caption-margin: ${(se=r(I))!=null?se:""}%`)},[()=>({mobile:l()})]),b(X,oe)};R(G,X=>{var oe;(e.captions.length||(oe=r(A))!=null&&oe.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 r4=L('<div class="text svelte-raurnb"> </div>'),s4=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>'),a4={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),q(t,a4);let i=Ut();var o=s4();let n;var a=M(h(o),2);{var s=d=>{var l=r4(),p=h(l);g(l),k(()=>{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:""}`)}),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 l4=xe('<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 Qf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=l4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 d4=L('<div class="container svelte-13zpvm8"><!></div>'),c4={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){q(t,c4);var e=d4(),i=h(e);Qf(i,{}),g(e),b(t,e)}var u4=L('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),p4=L("<div><!></div>"),f4={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
+ 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,f4);let i=f(e,"iconVisible",3,!0),o=Te(),n=Ut(),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=p4();let m;p.__click=l;var $=h(p);{var u=_=>{var w=u4();w.__keydown=d,Oe(w,"aria-label",s);var y=M(h(w),2);yr(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})}at(["click","keydown"]);var m4=L("<div> </div>"),v4={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(
280
283
  0deg,
281
284
  rgba(0, 0, 0, 0) 0%,
282
285
  rgba(0, 0, 0, 0.02) 19%,
283
286
  rgba(0, 0, 0, 0.10) 34%,
284
287
  rgba(0, 0, 0, 0.40) 60%,
285
288
  rgba(0, 0, 0, 0.60) 100%
286
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Yf(t,e){Q(t,o4);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=i4();let a;var s=h(n,!0);g(n),I(d=>{a=te(n,1,"title svelte-1bcvcf2",null,a,d),ve(s,i())},[()=>({hidden:o()})]),b(t,n)}var n4=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),r4=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),s4=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),a4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),l4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),d4={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){q(e,!0),Q(t,d4);let i=ee(""),o=ee(""),n=ee(""),a=ee(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let E=Math.floor(P/86400);E&&(P-=E*86400,O(i,me(d(E))));let T=Math.floor(P/3600);O(o,me(d(T)));let V=Math.floor(P/60)%60;O(n,me(d(V)));let z=P%60;O(a,me(d(z)))},p=()=>{let P=Math.floor(Date.now()/1e3),E=e.startTime-P;l(E),E>=1?s=requestAnimationFrame(p):e.onTimerOver()};Dt(()=>{s=requestAnimationFrame(p)}),hn(()=>{cancelAnimationFrame(s)});var f=l4(),_=h(f);{var u=P=>{var E=n4(),T=ue(E),V=h(T),z=h(V,!0);g(V);var Y=M(V,2),F=h(Y,!0);g(Y),g(T);var j=M(T,2),X=h(j,!0);g(j),I((oe,pe)=>{ve(z,r(i)),ve(F,oe),ve(X,pe)},[()=>H("waiting_live_day_value"),()=>H("waiting_live_colon")]),b(P,E)};R(_,P=>{r(i)&&P(u)})}var $=M(_,2);{var w=P=>{var E=r4(),T=ue(E),V=h(T),z=h(V,!0);g(V);var Y=M(V,2),F=h(Y,!0);g(Y),g(T);var j=M(T,2),X=h(j,!0);g(j),I((oe,pe)=>{ve(z,r(o)),ve(F,oe),ve(X,pe)},[()=>H("waiting_live_hour_value"),()=>H("waiting_live_colon")]),b(P,E)};R($,P=>{r(o)&&P(w)})}var y=M($,2);{var S=P=>{var E=s4(),T=ue(E),V=h(T),z=h(V,!0);g(V);var Y=M(V,2),F=h(Y,!0);g(Y),g(T);var j=M(T,2),X=h(j,!0);g(j),I((oe,pe)=>{ve(z,r(n)),ve(F,oe),ve(X,pe)},[()=>H("waiting_live_minute_value"),()=>H("waiting_live_colon")]),b(P,E)};R(y,P=>{r(n)&&P(S)})}var k=M(y,2);{var A=P=>{var E=a4(),T=h(E),V=h(T,!0);g(T);var z=M(T,2),Y=h(z,!0);g(z),g(E),I(F=>{ve(V,r(a)),ve(Y,F)},[()=>H("waiting_live_second_value")]),b(P,E)};R(k,P=>{r(a)&&P(A)})}g(f),b(t,f),W()}var c4=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=c4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(4),g(o),I(()=>n=we(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 u4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),p4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),f4=L('<div class="waiting-container svelte-15pewff"><!></div>'),m4={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 hd(t,e){q(e,!0),Q(t,m4);let i=ee(!1);qe(()=>{O(i,me(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=f4(),n=h(o);{var a=d=>{var l=u4(),p=h(l),f=h(p);Zf(f,{}),g(p);var _=M(p,2),u=h(_,!0);g(_),g(l),I($=>ve(u,$),[()=>H("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=p4(),p=h(l),f=h(p,!0);g(p);var _=M(p,2);let u=m(()=>e.startTime||0);jf(_,{get startTime(){return r(u)},onTimerOver:()=>O(i,!0)}),g(l),I($=>ve(f,$),[()=>H("waiting_live_timer_title")]),b(d,l)};R(n,d=>{r(i)?d(a):d(s,!1)})}g(o),I(()=>et(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),W()}var v4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),g4={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 la(t,e){q(e,!0),Q(t,g4);let i=v(e,"thumbUrl",3,""),o={recover:H("waiting_live_recover_title"),record:H("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=v4(),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),I(()=>{et(a,`background-image: url('${i()}')`),ve(p,r(n))}),b(t,a),W()}var h4=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=h4();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 _4=L('<div class="select-icon svelte-124aexk"><!></div>'),b4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function _d(t){Q(t,b4);var e=_4(),i=h(e);Xf(i,{}),g(e),b(t,e)}var $4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},y4=(t,e)=>{za(t,()=>e.item.selectItem(e.item.value))},x4=L("<p> </p>"),w4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),S4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),C4={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 Gf(t,e){q(t,v4);let i=f(e,"title",3,""),o=f(e,"isHidden",3,!1);var n=m4();let a;var s=h(n,!0);g(n),k(d=>{a=ee(n,1,"title svelte-1bcvcf2",null,a,d),me(s,i())},[()=>({hidden:o()})]),b(t,n)}var 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> <span class="timer__points svelte-1qpxtfg"> </span>',1),b4=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),$4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),y4={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),q(t,y4);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()};Ft(()=>{s=requestAnimationFrame(p)}),_n(()=>{cancelAnimationFrame(s)});var m=$4(),$=h(m);{var u=P=>{var A=g4(),I=ce(A),V=h(I),H=h(V,!0);g(V);var G=M(V,2),O=h(G,!0);g(G),g(I);var X=M(I,2),oe=h(X,!0);g(X),k((Y,fe)=>{me(H,r(i)),me(O,Y),me(oe,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=h4(),I=ce(A),V=h(I),H=h(V,!0);g(V);var G=M(V,2),O=h(G,!0);g(G),g(I);var X=M(I,2),oe=h(X,!0);g(X),k((Y,fe)=>{me(H,r(o)),me(O,Y),me(oe,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=_4(),I=ce(A),V=h(I),H=h(V,!0);g(V);var G=M(V,2),O=h(G,!0);g(G),g(I);var X=M(I,2),oe=h(X,!0);g(X),k((Y,fe)=>{me(H,r(n)),me(O,Y),me(oe,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=b4(),I=h(A),V=h(I,!0);g(I);var H=M(I,2),G=h(H,!0);g(H),g(A),k(O=>{me(V,r(a)),me(G,O)},[()=>F("waiting_live_second_value")]),b(P,A)};R(T,P=>{r(a)&&P(E)})}g(m),b(t,m),z()}var x4=xe('<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 Yf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=x4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(4),g(o),k(()=>n=Ie(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 w4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),S4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),C4=L('<div class="waiting-container svelte-15pewff"><!></div>'),T4={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),q(t,T4);let i=J(!1);qe(()=>{B(i,pe(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=C4(),n=h(o);{var a=d=>{var l=w4(),p=h(l),m=h(p);Yf(m,{}),g(p);var $=M(p,2),u=h($,!0);g($),g(l),k(_=>me(u,_),[()=>F("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=S4(),p=h(l),m=h(p,!0);g(p);var $=M(p,2);let u=v(()=>e.startTime||0);jf($,{get startTime(){return r(u)},onTimerOver:()=>B(i,!0)}),g(l),k(_=>me(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 I4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),k4={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,k4);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=I4(),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()}')`),me(p,r(n))}),b(t,a),z()}var E4=xe('<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 Zf(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=E4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 P4=L('<div class="select-icon svelte-124aexk"><!></div>'),A4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function xd(t){q(t,A4);var e=P4(),i=h(e);Zf(i,{}),g(e),b(t,e)}var M4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},L4=(t,e)=>{Ka(t,()=>e.item.selectItem(e.item.value))},V4=L("<p> </p>"),R4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),D4=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;
287
290
 
288
291
  /**
289
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
290
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.
291
294
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
292
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Jf(t,e){q(e,!0),Q(t,C4);let i=v(e,"isMobile",3,!1);var o=S4();let n;o.__click=[$4,e],o.__keydown=[y4,e];var a=h(o);{var s=w=>{_d(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var p=h(d);{var f=w=>{var y=Fe(),S=ue(y);yi(S,()=>e.item.valueComponent,(k,A)=>{A(k,is(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,y)},_=w=>{var y=x4();let S;var k=h(y,!0);g(y),I(A=>{var P;S=te(y,1,"label svelte-1t7rx2m",null,S,A),ve(k,(P=e.item.label)!=null?P:e.item.value)},[()=>({mobile:i()})]),b(w,y)};R(p,w=>{e.item.valueComponent?w(f):w(_,!1)})}var u=M(p,2);{var $=w=>{var y=w4(),S=h(y,!0);g(y),I(()=>ve(S,e.item.sublabel)),b(w,y)};R(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),I((w,y,S)=>{n=te(o,1,"item",null,n,w),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",y),l=te(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),Oe(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),W()}rt(["click","keydown"]);var T4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function em(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>y=>Ec(y,r(n)));var s=T4();let d;s.__click=function(...y){var S;(S=r(n))==null||S.apply(this,y)},s.__keydown=function(...y){var S;(S=r(a))==null||S.apply(this,y)};var l=h(s);{var p=y=>{_d(y,{})};R(l,y=>{e.item.selected&&y(p)})}var f=M(l,2);let _;var u=h(f);{var $=y=>{var S=Fe();let k=m(()=>e.item.valueComponent);var A=ue(S);yi(A,()=>r(k),(P,E)=>{E(P,is(()=>{var T;return(T=e.item.valueComponentParams)!=null?T:{}}))}),b(y,S)},w=y=>{var S=rr();I(()=>ve(S,e.item.label)),b(y,S)};R(u,y=>{e.item.valueComponent?y($):y(w,!1)})}g(f),g(s),dt(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),I((y,S)=>{var k;d=te(s,1,"item",null,d,y),Oe(s,"aria-label",(k=e.item.ariaLabel)!=null?k:e.item.label),Oe(s,"data-testid",e.item.id),_=te(f,1,"menu-item-value",null,_,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),W()}rt(["click","keydown"]);var Pr={"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 I4=(t,e)=>{bh(t,e.returnFromSubMenu,e.closeSettingsMenu)},E4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},A4=(t,e)=>{Bl(t)&&(dr(t),e.returnFromSubMenu())},P4=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>'),M4={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 Xf(t,e){U(e,!0),q(t,N4);let i=f(e,"isMobile",3,!1);var o=D4();let n;o.__click=[M4,e],o.__keydown=[L4,e];var a=h(o);{var s=w=>{xd(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=Ue(),C=ce(y);Ci(C,()=>e.item.valueComponent,(T,E)=>{E(T,Jr(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b(w,y)},$=w=>{var y=V4();let C;var T=h(y,!0);g(y),k(E=>{var P;C=ee(y,1,"label svelte-1t7rx2m",null,C,E),me(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=R4(),C=h(y,!0);g(y),k(()=>me(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),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",y),l=ee(d,1,"menu-item-value svelte-1t7rx2m",null,l,C),Oe(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()}at(["click","keydown"]);var B4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Jf(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=>Mc(y,r(n)));var s=B4();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=>{xd(y,{})};R(l,y=>{e.item.selected&&y(p)})}var m=M(l,2);let $;var u=h(m);{var _=y=>{var C=Ue();let T=v(()=>e.item.valueComponent);var E=ce(C);Ci(E,()=>r(T),(P,A)=>{A(P,Jr(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b(y,C)},w=y=>{var C=Rr();k(()=>me(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),Oe(s,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Oe(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()}at(["click","keydown"]);var xr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var H4=(t,e)=>{xh(t,e.returnFromSubMenu,e.closeSettingsMenu)},F4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},U4=(t,e)=>{zl(t)&&(nr(t),e.returnFromSubMenu())},z4=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;
293
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 {
294
297
  /**
295
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.
@@ -299,14 +302,14 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
299
302
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
303
  1px
301
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,
302
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function im(t,e){q(e,!0),Q(t,M4);let[i,o]=He(),n=()=>C(_,"$isFullscreen",i),a=()=>C(u,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>H("aria_label_submenu_back")),p=v(e,"listRef",15);Dt(()=>{let oe=e.items.findIndex(pe=>pe.selected);p().children[oe+1].focus()});let f=Se(),_=f.ui.isFullscreen,u=f.ui.playerSize,$=ee(void 0),w=ee(0),y=ee(0),S=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(y)-d()}px; overflow: auto;`),k=m(()=>Math.max(e.minWidth,r(w)));var A=P4();let P;var E=h(A);let T;E.__keydown=[I4,e];var V=h(E);let z;V.__click=[E4,e],V.__keydown=[A4,e];var Y=h(V);Ts(Y,{direction:"left"});var F=M(Y,2),j=h(F,!0);g(F),g(V),dt(V,oe=>O($,oe),()=>r($));var X=M(V,2);$i(X,17,()=>e.items,yl,(oe,pe)=>{var le=Fe(),Ve=ue(le);{var Pe=Me=>{Jf(Me,{get item(){return r(pe)},get isMobile(){return s()}})},J=(Me,Z)=>{{var B=Re=>{em(Re,{get isMobile(){return s()},get item(){return r(pe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Me,Re=>{r(pe).type==="OPEN_SUB_MENU"&&Re(B)},Z)}};R(Ve,Me=>{r(pe).type==="SELECT_VALUE"?Me(Pe):Me(J,!1)})}b(oe,le)}),g(E),dt(E,oe=>p(oe),()=>p()),g(A),I((oe,pe,le)=>{P=te(A,1,"sub-menu menu svelte-7dfsuh",null,P,oe),Oe(A,"data-testid",`sub-menu-${e.id}`),et(A,`min-width: ${r(k)}px`),T=te(E,1,"items svelte-7dfsuh",null,T,pe),et(E,r(S)),z=te(V,1,"item header back svelte-7dfsuh",null,z,le),Oe(V,"aria-label",l()),ve(j,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Hr(V,"clientWidth",oe=>O(w,oe)),Hr(V,"clientHeight",oe=>O(y,oe)),b(t,A),W(),o()}rt(["keydown","click"]);import{noop as L4}from"@vkontakte/videoplayer-shared/es2018";var V4=(t,e)=>Ec(t,e()),R4=(t,e)=>{t.stopPropagation(),e()()},N4=L('<div class="value svelte-1ikfjte"> </div>'),B4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),D4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function om(t,e){q(e,!0),Q(t,D4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,L4),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=B4();let d;s.__click=[R4,o],s.__keydown=[V4,o];var l=h(s),p=h(l);{var f=k=>{aa(k,{get icon(){return e.icon}})},_=k=>{var A=Fe();let P=m(()=>e.icon);var E=ue(A);yi(E,()=>r(P),(T,V)=>{V(T,{})}),b(k,A)};R(p,k=>{typeof e.icon=="string"?k(f):k(_,!1)})}g(l);var u=M(l,2),$=h(u,!0);g(u);var w=M(u,2);{var y=k=>{var A=Fe();let P=m(n);var E=ue(A);yi(E,()=>r(P),(T,V)=>{V(T,{})}),b(k,A)},S=k=>{var A=N4(),P=h(A,!0);g(A),I(()=>ve(P,e.value)),b(k,A)};R(w,k=>{n()?k(y):k(S,!1)})}g(s),dt(s,k=>a(k),()=>a()),I(k=>{d=te(s,1,"item",null,d,k),Oe(s,"aria-label",e.ariaLabel),Oe(s,"data-testid",e.id),ve($,e.label)},[()=>({mobile:i()})]),b(t,s),W()}rt(["click","keydown"]);import{noop as Jh}from"@vkontakte/videoplayer-shared/es2018";var O4=(t,e)=>{za(t,()=>e())},H4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),F4=L('<img class="icon" aria-hidden="true">'),U4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),z4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function nm(t,e){q(e,!0),Q(t,z4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,Jh),n=v(e,"closeSettings",3,Jh),a=ee(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=U4();let p;l.__click=d,l.__keydown=[O4,d];var f=h(l),_=h(f);{var u=S=>{var k=Fe(),A=ue(k);{var P=T=>{var V=H4();b(T,V)},E=T=>{var V=F4();I(()=>Oe(V,"src",e.icon)),Tt("error",V,s),Fs(V),b(T,V)};R(A,T=>{r(a)?T(P):T(E,!1)})}b(S,k)},$=S=>{var k=Fe();let A=m(()=>e.icon);var P=ue(k);yi(P,()=>r(A),(E,T)=>{T(E,{})}),b(S,k)};R(_,S=>{typeof e.icon=="string"?S(u):S($,!1)})}g(f);var w=M(f,2),y=h(w,!0);g(w),g(l),I(S=>{var k;p=te(l,1,"item",null,p,S),Oe(l,"aria-label",(k=e.ariaLabel)!=null?k:e.label),Oe(l,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,l),W()}rt(["click","keydown"]);import{noop as K4}from"@vkontakte/videoplayer-shared/es2018";var q4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),W4={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,W4);let i=v(e,"enabled",3,!1);var o=q4(),n=h(o);let a;_e(2),g(o),I(s=>a=te(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var Q4=(t,e,i)=>{$h(t,e(),o=>i()(o))},G4=(t,e,i)=>{t.stopPropagation(),e()(!i())},Y4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),j4=L('<li role="menuitem" tabindex="0"><!></li>');function sm(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,K4),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=j4();let l;d.__click=[G4,o,n],d.__keydown=[Q4,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:(f,_)=>{var u=Y4();let $;var w=h(u),y=h(w);{var S=T=>{aa(T,{get icon(){return e.icon}})},k=T=>{var V=Fe();let z=m(()=>e.icon);var Y=ue(V);yi(Y,()=>r(z),(F,j)=>{j(F,{})}),b(T,V)};R(y,T=>{typeof e.icon=="string"?T(S):T(k,!1)})}g(w);var A=M(w,2),P=h(A,!0);g(A);var E=M(A,2);rm(E,{get enabled(){return n()}}),g(u),I(T=>{$=te(u,1,"switch-wrapper",null,$,T),ve(P,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),g(d),I(f=>{var _;l=te(d,1,"item switch-item",null,l,f),Oe(d,"aria-label",(_=e.ariaLabel)!=null?_:e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),W()}rt(["click","keydown"]);import{isValidURL as $3,VideoQuality as c1}from"@vkontakte/videoplayer-shared/es2018";var e1=()=>{let t=ee(me([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,me(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,me([]))}}};var Z4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),X4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),J4={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function da(t,e){q(e,!0),Q(t,J4);let i=v(e,"isSubCase",3,!1),o=m(()=>Vc(e.quality));var n=X4(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=f=>{var _=Z4();let u=m(()=>r(o));var $=h(_);yi($,()=>r(u),(w,y)=>{y(w,{})}),g(_),b(f,_)};R(l,f=>{r(o)&&!e.isMobile&&f(p)})}g(n),I(f=>{s=te(a,1,"svelte-t2qk8t",null,s,f),ve(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),W()}import{VideoQuality as e3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as t1}from"@vkontakte/videoplayer-core/es2018";var i1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},o1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=i1({quality:t,availableQualities:e});return i?t===t1.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},n1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===t1.INVARIANT?i:`${i}${i1({quality:t,availableQualities:e})}`:"...";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 Za(t,e){q(e,!0),Q(t,i3);let[i,o]=He(),n=()=>C(l,"$currentQuality$",i),a=()=>C(p,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=Se(),l=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",u=m(()=>e.prefix+(e.selected&&n()!==e3.INVARIANT?_:"")),$=m(()=>n1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=t3(),y=h(w);let S=m(()=>e.selected?n():void 0);da(y,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),W(),o()}var o3=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")},n3={br:!0,span:!0},am=(t,e={})=>{var d,l,p,f,_,u,$;if(!t)return t;let i={...n3,...e},o=Object.keys(i);if(!o.length)return t;let n=o3(o),a=[],s=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:k}=w;if(!i[S]){a.push(t.slice(s,k)),s=k+y.length;continue}let A=(_=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),()=>A||""):y;a.push(t.slice(s,k),P),s=k+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function bd(t,e){q(e,!1);let i=v(e,"message",8),o=am(i());kr();var n=Fe(),a=ue(n);{var s=d=>{var l=Fe(),p=ue(l);xl(p,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),W()}var r3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),s3={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){q(e,!1),Q(t,s3),kr();var i=r3(),o=h(i);let n=Sr(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));bd(o,{get message(){return r(n)}}),g(i),b(t,i),W()}var s1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Za,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},dm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?Za:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),a1=()=>({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:H("high_quality"),valueComponent:t?Za:void 0,valueComponentParams:{prefix:H("high_quality"),selected:i},sublabel:H("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:H("traffic_saving_quality"),valueComponent:t?Za:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var jc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Zc=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Hc(i))!=null?s:i),o&&i&&n){let d=e.filter(l=>l.label===o&&l.language===i);if(d.length===1)return H("audio_stream_display_language_label",{language:n,label:o});{let l=jc(t,d);return H("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=jc(t,d);return H("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=jc(t,d);return H("audio_stream_display_language_index",{language:n,index:l})}}let a=jc(t,e);return H("audio_stream_display_unknown",{index:a})};var a3={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:H("submenu_quality"),id:"QUALITY_DETAILS",items:[a1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),s1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:H("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:da,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem: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:H("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:dm,selected:((i=_c())==null?void 0:i.type)==="auto_quality"},{handler:um,selected:((o=_c())==null?void 0:o.type)==="traffic_saving"},{handler:cm,selected:((n=_c())==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:H("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:Zc(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:H("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:H("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},l1=({subMenuId:t,context:e})=>t?[a3[t](e)]:[];var l3=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=l3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 d3=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=d3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 c3=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=c3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 u3=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=u3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 p3=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=p3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 f3=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 Xc(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=f3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 m3=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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=m3();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 v3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),g3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function _m(t,e){q(e,!0),Q(t,g3);let[i,o]=He(),n=()=>C(p,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),l=Se(),p=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,$=m(()=>o1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=v3(),y=h(w);da(y,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),b(t,w),W(),o()}var _3={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?H("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_quality",{actual:o}),icon:Wl,label:H("menu_quality"),value:e,valueComponent:_m,weight:Pr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Pr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?H("aria_label_submenu_traffic_saving_off"):`${H("aria_label_submenu_traffic_saving_on")}. ${H("traffic_saving_helper_text")}`,icon:pm,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Zc(t,e);return{id:"AUDIO_LANGUAGES",weight:Pr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:fm,label:H("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:Pr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:mm,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Pr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Kl,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Pr.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:vm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Pr.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:gm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Pr["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:Xc,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Pr["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:Xc,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Pr["debug-info"],type:"CLICK",onClick:t,label:e?H("aria_label_menu_debug_overlay_disable"):H("aria_label_menu_debug_overlay_enable"),ariaLabel:H("menu_debug_overlay"),icon:hm,isHiddenFor:["desktop"]})},d1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>_3[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 y3=(t,e)=>{Ic(t,e)},x3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),w3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),S3=L("<div><!> <!></div>"),C3={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 tm(t,e){U(e,!0),q(t,q4);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);Ft(()=>{let Y=e.items.findIndex(fe=>fe.selected);p().children[Y+1].focus()});let m=Te(),$=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=z4();let P;var A=h(E);let I;A.__keydown=[H4,e];var V=h(A);let H;V.__click=[F4,e],V.__keydown=[U4,e];var G=h(V);Ss(G,{direction:"left"});var O=M(G,2),X=h(O,!0);g(O),g(V),pt(V,Y=>B(_,Y),()=>r(_));var oe=M(V,2);Si(oe,17,()=>e.items,Il,(Y,fe)=>{var ae=Ue(),Le=ce(ae);{var Ae=se=>{Xf(se,{get item(){return r(fe)},get isMobile(){return s()}})},he=(se,Me)=>{{var ne=N=>{Jf(N,{get isMobile(){return s()},get item(){return r(fe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(se,N=>{r(fe).type==="OPEN_SUB_MENU"&&N(ne)},Me)}};R(Le,se=>{r(fe).type==="SELECT_VALUE"?se(Ae):se(he,!1)})}b(Y,ae)}),g(A),pt(A,Y=>p(Y),()=>p()),g(E),k((Y,fe,ae)=>{P=ee(E,1,"sub-menu menu svelte-7dfsuh",null,P,Y),Oe(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,ae),Oe(V,"aria-label",l()),me(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()}at(["keydown","click"]);import{noop as W4}from"@vkontakte/videoplayer-shared/es2018";var K4=(t,e)=>Mc(t,e()),Q4=(t,e)=>{t.stopPropagation(),e()()},G4=L('<div class="value svelte-1ikfjte"> </div>'),j4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Y4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function im(t,e){U(e,!0),q(t,Y4);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,W4),n=f(e,"valueComponent",3,void 0),a=f(e,"ref",15);var s=j4();let d;s.__click=[Q4,o],s.__keydown=[K4,o];var l=h(s),p=h(l);{var m=T=>{la(T,{get icon(){return e.icon}})},$=T=>{var E=Ue();let P=v(()=>e.icon);var A=ce(E);Ci(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=Ue();let P=v(n);var A=ce(E);Ci(A,()=>r(P),(I,V)=>{V(I,{})}),b(T,E)},C=T=>{var E=G4(),P=h(E,!0);g(E),k(()=>me(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),Oe(s,"aria-label",e.ariaLabel),Oe(s,"data-testid",e.id),me(_,e.label)},[()=>({mobile:i()})]),b(t,s),z()}at(["click","keydown"]);import{noop as t1}from"@vkontakte/videoplayer-shared/es2018";var Z4=(t,e)=>{Ka(t,()=>e())},X4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),J4=L('<img class="icon" aria-hidden="true">'),e3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),t3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function om(t,e){U(e,!0),q(t,t3);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,t1),n=f(e,"closeSettings",3,t1),a=J(!1),s=()=>{B(a,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var l=e3();let p;l.__click=d,l.__keydown=[Z4,d];var m=h(l),$=h(m);{var u=C=>{var T=Ue(),E=ce(T);{var P=I=>{var V=X4();b(I,V)},A=I=>{var V=J4();k(()=>Oe(V,"src",e.icon)),wt("error",V,s),Fs(V),b(I,V)};R(E,I=>{r(a)?I(P):I(A,!1)})}b(C,T)},_=C=>{var T=Ue();let E=v(()=>e.icon);var P=ce(T);Ci(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),Oe(l,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Oe(l,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),b(t,l),z()}at(["click","keydown"]);import{noop as n3}from"@vkontakte/videoplayer-shared/es2018";var i3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),o3={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 nm(t,e){q(t,o3);let i=f(e,"enabled",3,!1);var o=i3(),n=h(o);let a;ye(2),g(o),k(s=>a=ee(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var r3=(t,e,i)=>{wh(t,e(),o=>i()(o))},s3=(t,e,i)=>{t.stopPropagation(),e()(!i())},a3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),l3=L('<li role="menuitem" tabindex="0"><!></li>');function rm(t,e){U(e,!0);let i=f(e,"isMobile",3,!1),o=f(e,"onClick",3,n3),n=f(e,"enabled",3,!1),a=f(e,"tooltipText",3,void 0),s=f(e,"maxTooltipWidth",3,void 0);var d=l3();let l;d.__click=[s3,o,n],d.__keydown=[r3,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=a3();let _;var w=h(u),y=h(w);{var C=I=>{la(I,{get icon(){return e.icon}})},T=I=>{var V=Ue();let H=v(()=>e.icon);var G=ce(V);Ci(G,()=>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);nm(A,{get enabled(){return n()}}),g(u),k(I=>{_=ee(u,1,"switch-wrapper",null,_,I),me(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),Oe(d,"aria-label",($=e.ariaLabel)!=null?$:e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),z()}at(["click","keydown"]);import{isValidURL as M3,VideoQuality as p1}from"@vkontakte/videoplayer-shared/es2018";var i1=()=>{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 d3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),c3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),u3={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,u3);let i=f(e,"isSubCase",3,!1),o=v(()=>Nc(e.quality));var n=c3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var p=m=>{var $=d3();let u=v(()=>r(o));var _=h($);Ci(_,()=>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),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),z()}import{VideoQuality as p3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as o1}from"@vkontakte/videoplayer-core/es2018";var n1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},r1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=n1({quality:t,availableQualities:e});return i?t===o1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},s1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===o1.INVARIANT?i:`${i}${n1({quality:t,availableQualities:e})}`:"...";var f3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),m3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function tl(t,e){U(e,!0),q(t,m3);let[i,o]=Be(),n=()=>S(l,"$currentQuality$",i),a=()=>S(p,"$availableQualities$",i),s=()=>S(m,"$isMobile$",i),d=Te(),l=d.state.currentQuality$,p=d.state.availableQualities$,m=d.ui.isMobile,$=" \xB7 ",u=v(()=>e.prefix+(e.selected&&n()!==p3.INVARIANT?$:"")),_=v(()=>s1({prefix:r(u),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=f3(),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 v3=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")},g3={br:!0,span:!0},sm=(t,e={})=>{var d,l,p,m,$,u,_;if(!t)return t;let i={...g3,...e},o=Object.keys(i);if(!o.length)return t;let n=v3(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?sm(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 wd(t,e){U(e,!1);let i=f(e,"message",8),o=sm(i());br();var n=Ue(),a=ce(n);{var s=d=>{var l=Ue(),p=ce(l);kl(p,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),z()}var h3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),_3={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 am(t,e){U(e,!1),q(t,_3),br();var i=h3(),o=h(i);let n=gr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));wd(o,{get message(){return r(n)}}),g(i),b(t,i),z()}var l1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:tl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},lm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?tl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),d1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:am,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),dm=({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?tl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),cm=({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?tl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var Jc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),eu=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=qc(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=Jc(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=Jc(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=Jc(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=Jc(t,e);return F("audio_stream_display_unknown",{index:a})};var b3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:lm,selected:e&&!o&&!n||!1}),a.push({handler:cm,selected:o},{handler:dm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[d1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),l1(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:lm,selected:((i=yc())==null?void 0:i.type)==="auto_quality"},{handler:cm,selected:((o=yc())==null?void 0:o.type)==="traffic_saving"},{handler:dm,selected:((n=yc())==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:eu(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}))})},c1=({subMenuId:t,context:e})=>t?[b3[t](e)]:[];var $3=xe('<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 um(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=$3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 y3=xe('<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 pm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=y3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 x3=xe('<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 fm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=x3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 w3=xe('<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 mm(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}),ye(),g(o),k(()=>n=Ie(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 S3=xe('<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 vm(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}),ye(),g(o),k(()=>n=Ie(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 C3=xe('<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 tu(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}),ye(),g(o),k(()=>n=Ie(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 T3=xe('<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 gm(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}),ye(),g(o),k(()=>n=Ie(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 I3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),k3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function hm(t,e){U(e,!0),q(t,k3);let[i,o]=Be(),n=()=>S(p,"$currentQuality$",i),a=()=>S(m,"$availableQualities$",i),s=()=>S($,"$isAutoQualityEnabled$",i),d=()=>S(u,"$isMobile$",i),l=Te(),p=l.state.currentQuality$,m=l.state.availableQualities$,$=l.state.isAutoQualityEnabled$,u=l.ui.isMobile,_=v(()=>r1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=I3(),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 P3={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:Zl,label:F("menu_quality"),value:e,valueComponent:hm,weight:xr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:xr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?F("aria_label_submenu_traffic_saving_off"):`${F("aria_label_submenu_traffic_saving_on")}. ${F("traffic_saving_helper_text")}`,icon:um,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=eu(t,e);return{id:"AUDIO_LANGUAGES",weight:xr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:pm,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:xr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:fm,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:xr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Xl,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:xr.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:mm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:xr.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:vm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:xr["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:tu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:xr["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:tu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:xr["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:gm,isHiddenFor:["desktop"]})},u1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>P3[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 L3=(t,e)=>{Ac(t,e)},V3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),R3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),D3=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 {
303
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),
304
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),
305
308
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
306
- .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 $d(t,e){q(e,!0),Q(t,C3);let[i,o]=He(),n=()=>C(Qe,"$settingsMenuVisible",i),a=()=>C(st,"$settingsMenuOpenedByKeyboard",i),s=()=>C(nt,"$debugPanelVisible",i),d=()=>C($e,"$isMobile",i),l=()=>C(Rt,"$playerSize",i),p=()=>C(Ee,"$hasMpegSources$",i),f=()=>C(Le,"$mobileNotReportControlHidden$",i),_=()=>C(B,"$autoQualityLimitingAvailable$",i),u=()=>C(D,"$availableSubtitlesList$",i),$=()=>C(je,"$isLiveWithPlaybackSpeed",i),w=()=>C(J,"$availableAudioStreams$",i),y=()=>C(Ne,"$availablePlaybackRates$",i),S=()=>C(Pe,"$currentAudioStream$",i),k=()=>C(Ie,"$currentPlaybackRate$",i),A=()=>C(ct,"$trafficSavingEnabled",i),P=()=>C(Me,"$currentQuality$",i),E=()=>C(Re,"$isAutoQualityEnabled$",i),T=()=>C(fe,"$currentSubtitle$",i),V=()=>C(Ft,"$additionalSettingsMenuItems$",i),z=()=>C(ne,"$isAutoQualityAvailable$",i),Y=()=>C(Z,"$availableQualities$",i),F=()=>C(ot,"$highQualityEnabled",i),j=v(e,"ref",15,void 0),X=v(e,"playerControlsHeight",3,0),oe=me({}),pe=me({}),le=Se(),Ve=qt(),Pe=le.state.audioStream$,J=le.state.availableAudioStreams$,Me=le.state.currentQuality$,Z=le.state.availableQualities$,B=le.state.autoQualityLimitingAvailable$,Re=le.state.isAutoQualityEnabled$,ne=le.state.isAutoQualityAvailable$,Ie=le.state.currentPlaybackRate$,Ne=le.state.availablePlaybackRates$,fe=le.state.currentSubtitle$,D=le.state.availableSubtitlesList$,de=le.state.canDownload,Ee=le.state.hasMpegSources$,Qe=le.ui.settingsMenu.visible$,st=le.ui.settingsMenu.openedByBtnKeyboard$,Ae=le.ui.settingsMenu.ref$,$e=le.ui.isMobile,Le=le.ui.mobileNotReportControlHidden$,je=le.state.canChangePlaybackSpeed$,ct=le.state.trafficSavingEnabled$,ot=le.state.highQualityEnabled$,Rt=le.ui.playerSize,nt=le.ui.debugPanelVisible,$t=le.state.isInteractiveTime$,Ft=le.ui.additionalSettingsMenuItems$,Wt=le.ui.t,Be=le.actions.internal.downloadVideo,re=le.actions.internal.closeSettingsMenu,K=le.actions.internal.openSettingsSubMenu,se=le.actions.internal.closeSettingsSubMenu,he=ee(!1),Ce=ee(void 0),De=e1();qe(()=>{!n()&&De.current&&(se(pe[De.current]),De.popAllSubMenus())}),qe(()=>{n()||O(Ce,void 0)}),qe(()=>{!De.current&&r(Ce)&&_h(oe,r(Ce))}),qe(()=>{j()&&Ae.set(j())});async function ut(xt){De.pushSubMenu(xt),await ho(),K(xt,pe[xt])}function Ut(xt){var zt;xt==null||xt.stopPropagation(),a()||(zt=e.returnFocus)==null||zt.call(e),re(),O(he,!1)}function Ge(xt,zt){le.actions.internal.setQuality(xt,{appliesTo:zt}),Ut()}function at(xt){le.actions.internal.setAudioStream(xt),Ut()}function Xe(xt,zt){le.actions.internal.setTrafficSavingEnabled(xt,zt),Ve.features.qualityDetailsSubMenuEnabled&&Ut()}function Ct(xt,zt){le.actions.internal.setHighQualityEnabled(xt,zt),Ut()}function Jt(xt){le.actions.internal.setPlaybackRate(xt),Ut()}function Ke(xt){le.actions.internal.setSubtitle(xt),Ut()}function lt(){Be()}function ei(){$3(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function Mi(){Ha(le.actions.internal.getDebugTextData())}let Mo=()=>{let xt=le.actions.internal.getTraceTextData(),zt=new Blob([...xt],{type:"application/json"}),co=window.URL.createObjectURL(zt);Ks(co,"vk_player_trace_info","json")};function Oi(){nt.set(!s())}function Lo(){O(he,!0)}function Vo(){O(he,!1)}function Et(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-X()}px; overflow: auto;`}let gt=m(()=>de&&p()&&!f()),U=m(()=>Ve.features.trafficSaving&&!f()&&_()&&!Ve.features.qualityDetailsSubMenuEnabled),Kt=m(()=>u().length>0&&!f()),Hi=m(()=>!!$()&&!f()),Li=m(()=>Ve.features.audioLanguages&&w().length>=2&&!f()),ni=m(()=>!f());Dt(()=>$t.subscribe(xt=>{xt&&!d()&&!r(he)&&!a()&&Ut()}));let ci=m(()=>{let xt=[r(ni)&&"QUALITY_SETTINGS",r(Li)&&"AUDIO_LANGUAGES",r(Hi)&&"PLAYBACK_RATE",r(Kt)&&"SUBTITLES",r(U)&&"TRAFFIC_SAVING_SWITCH",r(gt)&&"DOWNLOAD",Ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(zt=>!!zt);return d1({items:xt,context:{qualityDetailsSubMenuEnabled:Ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:k(),selectPlaybackRate:Jt,trafficSavingEnabled:A(),toggleTrafficSaving:Xe,currentQuality:P()||c1.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:lt,debugPanelVisible:s(),onCopyDataClick:Mi,onReportProblemClick:ei,onSaveTraceDataClick:Mo,toggleShowDebugInfo:Oi},additionalSettingsMenuItems:V()})}),ao=m(()=>l1({subMenuId:De.current,context:{availablePlaybackRates:y(),selectPlaybackRate:Jt,trafficSavingEnabled:A(),toggleTrafficSaving:Xe,currentQuality:P()||c1.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:z()||!1,availableQualities:Y(),highQualityEnabled:F(),toggleHighQuality:Ct,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:re,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:at,selectQuality:Ge,selectSubtitle:Ke}}));var lo=S3();let Gi;var Fo=h(lo);{var Nt=xt=>{var zt=w3();let co;zt.__keydown=[y3,re];var jt=h(zt);{var qn=ri=>{var bt=x3();let gi;var Ei=h(bt),Vi=h(Ei,!0);g(Ei);var $n=M(Ei,2);$n.__click=Ut,g(bt),I((wi,Yi)=>{gi=te(bt,1,"item header svelte-17or3al",null,gi,wi),ve(Vi,Yi)},[()=>({mobile:d()}),()=>Wt("submenu_settings")]),b(ri,bt)};R(jt,ri=>{d()&&ri(qn)})}var yo=M(jt,2);let xo;$i(yo,21,()=>r(ci),ri=>ri.id,(ri,bt)=>{var gi=Fe(),Ei=ue(gi);{var Vi=wi=>{om(wi,{get isMobile(){return d()},get id(){return r(bt).id},get icon(){return r(bt).icon},get label(){return r(bt).label},get ariaLabel(){return r(bt).ariaLabel},get value(){return r(bt).value},get valueComponent(){return r(bt).valueComponent},onClick:()=>{ut(r(bt).children),O(Ce,me(r(bt).id))},get ref(){return oe[r(bt).id]},set ref(Yi){oe[r(bt).id]=Yi}})},$n=(wi,Yi)=>{{var rn=Ai=>{nm(Ai,{get isMobile(){return d()},get id(){return r(bt).id},get onClick(){return r(bt).onClick},get icon(){return r(bt).icon},get label(){return r(bt).label},get ariaLabel(){return r(bt).ariaLabel},closeSettings:Ut})},yn=(Ai,Wn)=>{{var sn=wo=>{sm(wo,{get isMobile(){return d()},get id(){return r(bt).id},get onClick(){return r(bt).onClick},get icon(){return r(bt).icon},get label(){return r(bt).label},get ariaLabel(){return r(bt).ariaLabel},get enabled(){return r(bt).enabled},get tooltipText(){return r(bt).tooltipText},get maxTooltipWidth(){return r(bt).maxTooltipWidth}})};R(Ai,wo=>{r(bt).type==="SWITCH"&&wo(sn)},Wn)}};R(wi,Ai=>{r(bt).type==="CLICK"?Ai(rn):Ai(yn,!1)},Yi)}};R(Ei,wi=>{r(bt).type==="OPEN_SUB_MENU"?wi(Vi):wi($n,!1)})}b(ri,gi)}),g(yo),dt(yo,ri=>j(ri),()=>j()),g(zt),I((ri,bt,gi)=>{co=te(zt,1,"settings-menu menu svelte-17or3al",null,co,ri),xo=te(yo,1,"items",null,xo,bt),et(yo,gi)},[()=>({desktop:!d(),mobile:d(),hidden:!!De.current}),()=>({mobile:d()}),Et]),Tt("mouseenter",zt,Lo),Tt("mouseleave",zt,Vo),b(xt,zt)};R(Fo,xt=>{n()&&xt(Nt)})}var ui=M(Fo,2);$i(ui,17,()=>r(ao),xt=>xt.id,(xt,zt)=>{let co=m(()=>{var jt;return(jt=r(zt).minWidth)!=null?jt:137});im(xt,{get isMobile(){return d()},get playerControlsHeight(){return X()},get returnFromSubMenu(){return De.popSubMenu},get id(){return r(zt).id},get title(){return r(zt).title},closeSettingsMenu:re,openSubMenuList:ut,get items(){return r(zt).items},get minWidth(){return r(co)},get refMenuItems(){return oe},get listRef(){return pe[r(zt).id]},set listRef(jt){pe[r(zt).id]=jt}})}),g(lo),I(xt=>Gi=te(lo,1,"settings-menu-container svelte-17or3al",null,Gi,xt),[()=>({mobile:d(),hidden:!n()})]),b(t,lo),W(),o()}rt(["keydown","click"]);var T3=t=>t;function u1(t,{delay:e=0,duration:i=400,easing:o=T3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var k3=L('<button class="button svelte-1sbbskl"> </button>'),I3={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,I3);var i=k3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),I(()=>ve(o,e.label)),b(t,i)}rt(["click"]);var E3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),A3={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),q(t,N3);let[i,o]=Be(),n=()=>S(De,"$settingsMenuVisible",i),a=()=>S(et,"$settingsMenuOpenedByKeyboard",i),s=()=>S(ft,"$debugPanelVisible",i),d=()=>S($e,"$isMobile",i),l=()=>S(Je,"$playerSize",i),p=()=>S(Ve,"$hasMpegSources$",i),m=()=>S(Ne,"$mobileNotReportControlHidden$",i),$=()=>S(ne,"$autoQualityLimitingAvailable$",i),u=()=>S(Q,"$availableSubtitlesList$",i),_=()=>S(je,"$isLiveWithPlaybackSpeed",i),w=()=>S(he,"$availableAudioStreams$",i),y=()=>S(Qe,"$availablePlaybackRates$",i),C=()=>S(Ae,"$currentAudioStream$",i),T=()=>S(ge,"$currentPlaybackRate$",i),E=()=>S(it,"$trafficSavingEnabled",i),P=()=>S(se,"$currentQuality$",i),A=()=>S(N,"$isAutoQualityEnabled$",i),I=()=>S(te,"$currentSubtitle$",i),V=()=>S(Wt,"$additionalSettingsMenuItems$",i),H=()=>S(ue,"$isAutoQualityAvailable$",i),G=()=>S(Me,"$availableQualities$",i),O=()=>S(ht,"$highQualityEnabled",i),X=f(e,"ref",15,void 0),oe=f(e,"playerControlsHeight",3,0),Y=pe({}),fe=pe({}),ae=Te(),Le=Ut(),Ae=ae.state.audioStream$,he=ae.state.availableAudioStreams$,se=ae.state.currentQuality$,Me=ae.state.availableQualities$,ne=ae.state.autoQualityLimitingAvailable$,N=ae.state.isAutoQualityEnabled$,ue=ae.state.isAutoQualityAvailable$,ge=ae.state.currentPlaybackRate$,Qe=ae.state.availablePlaybackRates$,te=ae.state.currentSubtitle$,Q=ae.state.availableSubtitlesList$,W=ae.state.canDownload,Ve=ae.state.hasMpegSources$,De=ae.ui.settingsMenu.visible$,et=ae.ui.settingsMenu.openedByBtnKeyboard$,Se=ae.ui.settingsMenu.ref$,$e=ae.ui.isMobile,Ne=ae.ui.mobileNotReportControlHidden$,je=ae.state.canChangePlaybackSpeed$,it=ae.state.trafficSavingEnabled$,ht=ae.state.highQualityEnabled$,Je=ae.ui.playerSize,ft=ae.ui.debugPanelVisible,Pt=ae.state.isInteractiveTime$,Wt=ae.ui.additionalSettingsMenuItems$,Kt=ae.ui.t,At=ae.actions.internal.downloadVideo,_e=ae.actions.internal.closeSettingsMenu,j=ae.actions.internal.openSettingsSubMenu,be=ae.actions.internal.closeSettingsSubMenu,re=J(!1),Re=J(void 0),He=i1();qe(()=>{!n()&&He.current&&(be(fe[He.current]),He.popAllSubMenus())}),qe(()=>{n()||B(Re,void 0)}),qe(()=>{!He.current&&r(Re)&&yh(Y,r(Re))}),qe(()=>{X()&&Se.set(X())});async function ot(Ct){He.pushSubMenu(Ct),await ho(),j(Ct,fe[Ct])}function lt(Ct){var zt;Ct==null||Ct.stopPropagation(),a()||(zt=e.returnFocus)==null||zt.call(e),_e(),B(re,!1)}function Ye(Ct,zt){ae.actions.internal.setQuality(Ct,{appliesTo:zt}),lt()}function Ze(Ct){ae.actions.internal.setAudioStream(Ct),lt()}function Xe(Ct,zt){ae.actions.internal.setTrafficSavingEnabled(Ct,zt),Le.features.qualityDetailsSubMenuEnabled&&lt()}function We(Ct,zt){ae.actions.internal.setHighQualityEnabled(Ct,zt),lt()}function mt(Ct){ae.actions.internal.setPlaybackRate(Ct),lt()}function ze(Ct){ae.actions.internal.setSubtitle(Ct),lt()}function dt(){At()}function jt(){M3(e.supportLink)&&window.open(e.supportLink,"_blank"),ae.actions.internal.reportProblem(),ae.actions.internal.pause()}function Vi(){za(ae.actions.internal.getDebugTextData())}let Ii=()=>{let Ct=ae.actions.internal.getTraceTextData(),zt=new Blob([...Ct],{type:"application/json"}),ei=window.URL.createObjectURL(zt);Qs(ei,"vk_player_trace_info","json")};function Hi(){ft.set(!s())}function Ki(){B(re,!0)}function Qi(){B(re,!1)}function Mt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-oe()}px; overflow: auto;`}let yt=v(()=>W&&p()&&!m()),Vt=v(()=>Le.features.trafficSaving&&!m()&&$()&&!Le.features.qualityDetailsSubMenuEnabled),yo=v(()=>u().length>0&&!m()),nn=v(()=>!!_()&&!m()),Z=v(()=>Le.features.audioLanguages&&w().length>=2&&!m()),Jt=v(()=>!m());Ft(()=>Pt.subscribe(Ct=>{Ct&&!d()&&!r(re)&&!a()&&lt()}));let di=v(()=>{let Ct=[r(Jt)&&"QUALITY_SETTINGS",r(Z)&&"AUDIO_LANGUAGES",r(nn)&&"PLAYBACK_RATE",r(yo)&&"SUBTITLES",r(Vt)&&"TRAFFIC_SAVING_SWITCH",r(yt)&&"DOWNLOAD",Le.showSupport&&"SHOW_SUPPORT","COPY_DATA",Le.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(zt=>!!zt);return u1({items:Ct,context:{qualityDetailsSubMenuEnabled:Le.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:mt,trafficSavingEnabled:E(),toggleTrafficSaving:Xe,currentQuality:P()||p1.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:dt,debugPanelVisible:s(),onCopyDataClick:Vi,onReportProblemClick:jt,onSaveTraceDataClick:Ii,toggleShowDebugInfo:Hi},additionalSettingsMenuItems:V()})}),Fi=v(()=>c1({subMenuId:He.current,context:{availablePlaybackRates:y(),selectPlaybackRate:mt,trafficSavingEnabled:E(),toggleTrafficSaving:Xe,currentQuality:P()||p1.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:H()||!1,availableQualities:G(),highQualityEnabled:O(),toggleHighQuality:We,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:_e,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Ze,selectQuality:Ye,selectSubtitle:ze}}));var ii=D3();let ci;var oi=h(ii);{var ct=Ct=>{var zt=R3();let ei;zt.__keydown=[L3,_e];var co=h(zt);{var yn=si=>{var xt=V3();let wo;var ki=h(xt),yi=h(ki,!0);g(ki);var Ho=M(ki,2);Ho.__click=lt,g(xt),k((Zi,Ui)=>{wo=ee(xt,1,"item header svelte-17or3al",null,wo,Zi),me(yi,Ui)},[()=>({mobile:d()}),()=>Kt("submenu_settings")]),b(si,xt)};R(co,si=>{d()&&si(yn)})}var Gi=M(co,2);let xo;Si(Gi,21,()=>r(di),si=>si.id,(si,xt)=>{var wo=Ue(),ki=ce(wo);{var yi=Zi=>{im(Zi,{get isMobile(){return d()},get id(){return r(xt).id},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get value(){return r(xt).value},get valueComponent(){return r(xt).valueComponent},onClick:()=>{ot(r(xt).children),B(Re,pe(r(xt).id))},get ref(){return Y[r(xt).id]},set ref(Ui){Y[r(xt).id]=Ui}})},Ho=(Zi,Ui)=>{{var xn=Ri=>{om(Ri,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},closeSettings:lt})},wn=(Ri,rn)=>{{var So=Co=>{rm(Co,{get isMobile(){return d()},get id(){return r(xt).id},get onClick(){return r(xt).onClick},get icon(){return r(xt).icon},get label(){return r(xt).label},get ariaLabel(){return r(xt).ariaLabel},get enabled(){return r(xt).enabled},get tooltipText(){return r(xt).tooltipText},get maxTooltipWidth(){return r(xt).maxTooltipWidth}})};R(Ri,Co=>{r(xt).type==="SWITCH"&&Co(So)},rn)}};R(Zi,Ri=>{r(xt).type==="CLICK"?Ri(xn):Ri(wn,!1)},Ui)}};R(ki,Zi=>{r(xt).type==="OPEN_SUB_MENU"?Zi(yi):Zi(Ho,!1)})}b(si,wo)}),g(Gi),pt(Gi,si=>X(si),()=>X()),g(zt),k((si,xt,wo)=>{ei=ee(zt,1,"settings-menu menu svelte-17or3al",null,ei,si),xo=ee(Gi,1,"items",null,xo,xt),tt(Gi,wo)},[()=>({desktop:!d(),mobile:d(),hidden:!!He.current}),()=>({mobile:d()}),Mt]),wt("mouseenter",zt,Ki),wt("mouseleave",zt,Qi),b(Ct,zt)};R(oi,Ct=>{n()&&Ct(ct)})}var lo=M(oi,2);Si(lo,17,()=>r(Fi),Ct=>Ct.id,(Ct,zt)=>{let ei=v(()=>{var co;return(co=r(zt).minWidth)!=null?co:137});tm(Ct,{get isMobile(){return d()},get playerControlsHeight(){return oe()},get returnFromSubMenu(){return He.popSubMenu},get id(){return r(zt).id},get title(){return r(zt).title},closeSettingsMenu:_e,openSubMenuList:ot,get items(){return r(zt).items},get minWidth(){return r(ei)},get refMenuItems(){return Y},get listRef(){return fe[r(zt).id]},set listRef(co){fe[r(zt).id]=co}})}),g(ii),k(Ct=>ci=ee(ii,1,"settings-menu-container svelte-17or3al",null,ci,Ct),[()=>({mobile:d(),hidden:!n()})]),b(t,ii),z(),o()}at(["keydown","click"]);var B3=t=>t;function f1(t,{delay:e=0,duration:i=400,easing:o=B3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var O3=L('<button class="button svelte-1sbbskl"> </button>'),H3={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 _m(t,e){q(t,H3);var i=O3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>me(o,e.label)),b(t,i)}at(["click"]);var F3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),U3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
310
  /**
308
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.
309
- */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 yd(t,e){q(e,!0),Q(t,A3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=qt(),{ui:{t:n}}=Se(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=E3(),d=h(s),l=h(d),p=h(l),f=h(p);bd(f,{message:a}),g(p);var _=M(p,2);{var u=w=>{let y=m(()=>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),rp(3,d,()=>u1,()=>({duration:i})),b(t,s),W()}var xd="annotation",Jc=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",xd),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 P3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),M3={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),q(t,U3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ut(),{ui:{t:n}}=Te(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=F3(),d=h(s),l=h(d),p=h(l),m=h(p);wd(m,{message:a}),g(p);var $=M(p,2);{var u=w=>{let y=v(()=>n("slow_video_notification_button"));_m(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),rp(3,d,()=>f1,()=>({duration:i})),b(t,s),z()}var fa="annotation",iu=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 z3=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;
310
313
 
311
314
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
312
315
 
@@ -337,9 +340,8 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
337
340
  opacity: 0;
338
341
  scale: 0;
339
342
  }
340
- }`};function $m(t,e){q(e,!0),Q(t,M3);let[i,o]=He(),n=()=>C(s,"$isPlaying$",i),a=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Se(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:_}}=qt(),u=0,$=ee(null),w=ee(!1);qe(()=>{O($,me(n()?Ar:ss))}),qe(()=>{O($,me(a()?Cs:null))}),qe(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r($)===Cs&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),O($,null)},r($)!==Cs?f:_),()=>{u&&(window.clearTimeout(u),u=0)}}),qe(()=>{n()&&!r(w)&&(O(w,!0),O($,null))});var y=Fe(),S=ue(y);{var k=A=>{var P=Fe(),E=ue(P);zs(E,()=>r($),T=>{var V=P3(),z=h(V),Y=h(z);let F=m(()=>a()==="prev");yi(Y,()=>r($),(j,X)=>{X(j,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),g(z),g(V),I(()=>et(z,`animation-duration: ${r($)!==Cs?f:_}ms`)),b(T,V)}),b(A,P)};R(S,A=>{r($)&&p&&A(k)})}b(t,y),W(),o()}var L3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},V3=(t,e,i,o,n,a,s,d,l,p,f,_,u,$,w,y,S)=>{var k;if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(p))return f();if((k=_())==null||k.focus(),!u()){$.firstStart(),w($.uiConfig.controls.hideTimeoutCursor);return}(!$.uiConfig.preventPauseOnVideoClick||y()!==f1.PLAYING)&&$.store.actions.internal.togglePlay(),w($.uiConfig.controls.hideTimeoutCursor)}},R3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},N3=L("<div><!></div>"),B3=L('<div class="spherical-video-icon svelte-cy741x"><!></div>'),D3=L("<div><!></div>"),O3=L('<div class="settings-menu svelte-cy741x"><!></div>'),H3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),F3=L('<div><div data-testid="video-container"></div></div> <!> <!>',1),U3=L('<div class="blocked svelte-cy741x"></div>'),z3=L('<div class="player-wrapper svelte-cy741x"><!> <div class="overlay-container"></div></div> <!>',1),q3={hash:"svelte-cy741x",code:`.player-wrapper.svelte-cy741x {position:absolute;width:100%;height:100%;}.blocked.svelte-cy741x {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-cy741x .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-cy741x {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-cy741x,
341
- .video-container.svelte-cy741x,
342
- .ads-container.svelte-cy741x {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-cy741x {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-cy741x {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-cy741x {transition:none;}.nocursor.svelte-cy741x {cursor:none;}.ads-container.svelte-cy741x {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-cy741x {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){q(e,!0),Q(t,q3);let[i,o]=He(),n=()=>C(Uo,"$notificationsToShow$",i),a=()=>C(Lo,"$playerPhase",i),s=()=>C(ao,"$isLoaderVisible",i),d=()=>C(Mi,"$adPlaybackState",i),l=()=>C(zt,"$crashed",i),p=()=>C(Vi,"$isInteractiveTime$",i),f=()=>C(U,"$settingsMenuVisible",i),_=()=>C($n,"$isInteractiveExpectation$",i),u=()=>C(gt,"$controlsVisible",i),$=()=>C(Yi,"$touched",i),w=()=>C(Sn,"$graphIsOpened$",i),y=()=>C(Vo,"$isFullscreen",i),S=()=>C(cr,"$autoplayNextEnabled$",i),k=()=>C(Nt,"$postrollPassed",i),A=()=>C(lo,"$isEnded$",i),P=()=>C(kn,"$cursorInside",i),E=()=>C(gi,"$rotateAlpha",i),T=()=>C(xo,"$playerSize",i),V=()=>C(wn,"$fakeIsPlaying$",i),z=()=>C(jn,"$bottomNoSmooth",i),Y=()=>C(Wn,"$interactiveTimeIndicator",i),F=()=>C(ri,"$is3DVideo",i),j=()=>C(ni,"$contextMenuVisible$",i),X=()=>C(ei,"$playbackState$",i),oe=()=>C(rn,"$hotKeyMapData",i),pe=()=>C(Hi,"$scrubbingInProgress",i),le=()=>C(Li,"$volumeChangingInProgress",i),Ve=()=>C(Gi,"$chromecastConnected$",i),Pe=()=>C(ji,"$controlsTimeoutActive",i),J=()=>C(Kt,"$settingsMenuOpenedByKeyboard",i),Me=()=>C(_r,"$contextMenuOpenedByKeyboard$",i),Z=()=>C(Nr,"$contextMenuButtonRef$",i),B=()=>C(br,"$contextMenuOpenedByHotKey$",i),Re=()=>C(er,"$contextMenuLastActiveElem$",i),ne=()=>C(Et,"$isFullscreenOpenedByKeyboard",i),Ie=()=>C(xt,"$isPlaying$",i),Ne=()=>C(lt,"$language$",i),fe=()=>C(bt,"$icon3DVideoVisible",i),D=()=>C(Fo,"$chromecastDeviceName$",i),de=()=>C(qn,"$currentSubtitle$",i),Ee=()=>C(yo,"$currentSubtitleCaptions$",i),Qe=()=>C(Mo,"$position$",i),st=()=>C(Oi,"$duration$",i),Ae=()=>C(ui,"$isLive$",i),$e=()=>C(wo,"$contextMenuPosition$",i),Le=()=>C(yn,"$showHotKeyMap",i),je=()=>C(ci,"$debugPanelVisible",i),ct=()=>C(Kn,"$userActionsDisabled$",i),ot=v(e,"videoContainer",15),Rt=v(e,"adsSlotId",3,void 0),nt=v(e,"adsParams",3,void 0),$t=v(e,"adsPreviewParam",3,void 0),Ft=v(e,"adsAutoplayParam",3,void 0),Wt=v(e,"duration",3,void 0),Be=v(e,"logoTargetUrl",3,""),re=v(e,"showNextPrevButtons",3,!1),K=v(e,"nextButtonActive",3,!1),se=v(e,"prevButtonActive",3,!1),he=v(e,"endScreenVideoTitle",3,void 0),Ce=v(e,"endScreenVideoThumb",3,void 0),De=v(e,"isOneVideoPlaylist",3,!1),ut=v(e,"shadowRootContainer",3,void 0),Ut=v(e,"outerContainerRef",3,void 0),Ge=v(e,"playerStarted",3,!1),at=v(e,"fullScreenTarget",3,void 0),Xe=v(e,"showMiniTimer",3,!1),Ct=v(e,"showEndScreen",3,!0),Jt=v(e,"keyboardControls",15),Ke=e.store.getLogger().createComponentLog("Root component"),lt=e.store.interfaceLanguage$,ei=e.store.state.playbackState$,Mi=e.store.ads.playbackState,Mo=e.store.state.positionWithScrubbing$,Oi=e.store.state.duration$,Lo=e.store.playerPhase,Vo=e.store.ui.isFullscreen,Et=e.store.ui.isFullscreenOpenedByKeyboard,gt=e.store.ui.controlsVisible,U=e.store.ui.settingsMenu.visible$,Kt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Hi=e.store.ui.scrubbingInProgress,Li=e.store.ui.volumeChangingInProgress,ni=e.store.ui.contextMenu.visible$,ci=e.store.ui.debugPanelVisible,ao=e.store.state.isLoaderVisible,lo=e.store.state.isEnded$,Gi=e.store.state.chromecastConnected$,Fo=e.store.state.chromecastDeviceName$,Nt=e.store.ads.postrollPassed,ui=e.store.state.isLive$,xt=e.store.state.isPlaying$,zt=e.store.state.crashed$,co=e.store.webApi.annotationsApi,jt=e.store.webApi.pictureInPictureApi,qn=e.store.state.currentSubtitle$,yo=e.store.state.currentSubtitleCaptions$,xo=e.store.ui.playerSize,ri=e.store.ui.is3DVideo,bt=e.store.ui.icon3DVideoVisible,gi=e.store.ui.rotateAlpha,Ei=e.store.state.isInteractive,Vi=e.store.state.isInteractiveTime$,$n=e.store.state.isInteractiveExpectation$,wi=e.store.state.hasInteractiveBranches,Yi=e.store.ui.touched,rn=e.store.ui.modals.hotKeyMap.data,yn=e.store.ui.modals.hotKeyMap.show,Ai=e.store.ui.overlayContainer$,Wn=e.store.ui.controls.interactiveTimeIndicator,sn=e.store.state.showInteractiveTimeIndicator,wo=e.store.ui.contextMenu.position$,xn=e.store.actions.internal.setQuality,Mr=e.store.actions.internal.closeSettingsMenu,cr=e.store.ui.autoplayNextEnabled$,Kn=e.store.ui.userActionsDisabled,{fakeIsPlaying$:wn,notifications$:an,graphIsOpened$:Sn}=so(),uo=ee(void 0),Je=ee(void 0),ln=ee(void 0),Qn=ee(void 0),Gn,Cn,dn;rn.set(uh());let{closeNotification:cn,notificationsToShow$:Uo}=an,Fi=m(()=>!!n().slow_video),Ui=()=>cn("slow_video"),Yn=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Tn=ee(void 0),jn=ae(!1),ur,ji=ae(!1),Zi=ae(),kn=ae(!1),In=ee(!1),po=ee(!1),Xi=ee(!1),En=ee(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Ro=m(()=>p()&&!f()&&!(r(In)||r(po))&&!(r(Xi)&&!_())),Lr=!0,An=m(()=>e.uiConfig.features.thumbTimer&&Xe()&&a()==="video"&&!u()&&!l()&&!Ei&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),pr=m(()=>a()==="video"&&!w()&&y()),Pn=ee(!1),Mn=m(()=>(Ct()||e.showAutoplayNext&&S())&&!!he()&&!!Ce()&&(e.showAds&&k()||!e.showAds)&&A()&&!l()&&!r(Pn)),Vr=m(()=>P()&&!(u()||r(Mn))&&!p()),Zn=ee(!1),fr=m(()=>ot()&&E()%180?T().height/T().width:1),Xn=m(()=>V()!==null),{toggle:Ln}=wn,ti=!1,zo=null;jt==null||jt.setContext(_l());let mr=()=>{e.autoplay&&!Ei&&e.uiConfig.controls.showOnStartupAtAutoplay&&pt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:mr});let Rr=()=>{window.clearTimeout(Gn),ji.set(!1)},tt=()=>{window.clearTimeout(Cn),Zi.set(null)},pt=xe=>{Rr(),ji.set(!0),Gn=window.setTimeout(()=>ji.set(!1),xe);let Pt=xe-100;ur=window.setTimeout(()=>{z()&&jn.set(!1)},Pt>0?Pt:xe)},Si=(xe,Pt)=>{tt(),Zi.set(Pt),Cn=window.setTimeout(()=>Zi.set(null),xe)},Ji=ri.subscribe(xe=>{bt.set(xe),xe&&(window.clearTimeout(dn),dn=window.setTimeout(()=>bt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),zi=async()=>{var Pt,ai,kt,Zt;let xe=_s();if(xe){let li=Ll(),Ri=qo();xe=li===Ri||li===ut()}if(xe){pt(e.uiConfig.controls.hideTimeoutFullscreen);try{await(jt==null?void 0:jt.remove())}catch(li){Ke({message:String(li)})}}Vo.set(xe),e.store.getAdmanWrapper().setFullscreen(xe),y()?(ai=(Pt=e.store.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||ai.call(Pt):(Zt=(kt=e.store.callbacks)==null?void 0:kt.onFullscreenExit)==null||Zt.call(kt)},So=xe=>{let{width:Pt,height:ai}=xe.target;xo.set({width:Pt,height:ai})},Co=()=>{let{width:xe,height:Pt}=r(uo).getBoundingClientRect();xo.set({width:xe,height:Pt})};Dt(()=>{var Pt;return Tc(zi),e.uiConfig.features.annotationsInside&&(co==null||co.init(r(uo))),js(jt)&&(jt==null||jt.assignPlayerContainer(r(uo)),jt==null||jt.registryExternalEventHandlers({resize:So,leavepictureinpicture:Co})),e.interactiveContainer&&((Pt=ot().parentElement)==null||Pt.insertBefore(e.interactiveContainer,ot().nextSibling)),()=>{window.clearTimeout(Gn),window.clearTimeout(ur),window.clearTimeout(Cn),window.clearTimeout(dn),Ji(),jt==null||jt.dispose().catch(ai=>{Ke({message:String(ai)})}),kc(zi)}});let qo=()=>{let xe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ut()?r(uo):Ut(),Pt=xe.getRootNode(),ai=Pt instanceof ShadowRoot?Pt.host:Pt,kt=at()instanceof HTMLElement&&at().contains(ai);return e.uiConfig.allowChangingFullscreenTarget&&at()&&kt?at():xe},To=async()=>{_s()?(await Cc(document),Ke({message:"exit fullscreen"})):(Ke({message:"request fullscreen"}),await Sc(qo()))},di=()=>{Mr(),ni.set(!1)},Ze=xe=>{w()||(xe.preventDefault(),ni.set(!0),wo.set({left:xe.clientX,top:xe.clientY}))};function At(){kn.set(!0),Ei||pt(e.uiConfig.controls.hideTimeoutCursor)}function qi(){Ei||(jn.set(!0),pt(e.uiConfig.controls.hideTimeoutCursor))}function hi(){kn.set(!1),O(po,!1),O(In,!1),ti=!1,e.store.actions.internal.releaseCamera(),pt(e.uiConfig.controls.hideTimeout)}function _i(xe){return xe?xe.offsetTop+_i(xe.offsetParent):0}function Wi(xe){return xe?xe.offsetLeft+Wi(xe.offsetParent):0}function No(xe){if(Y()&&sn){let Pt=xe.currentTarget,ai=_i(Pt),kt=Wi(Pt),Zt=xe.pageX-kt,li=xe.pageY-ai,{left:Ri,bottom:mo,right:ii}=Y(),Io=ii-Ri;return Zt>=Ri-Io&&li<=mo+Io}}function eo(xe){if(r(uo)){let Pt=_i(xe.currentTarget),ai=T().height,kt=xe.pageY-Pt;if(No(xe)){O(po,!1);return}kt<40?O(po,!0):kt>ai-40?O(In,!0):(O(po,!1),f()||O(In,!1))}}function Jn(xe){eo(xe),r(Ro)||pt(e.uiConfig.controls.hideTimeoutCursor),F()&&ti&&zo&&e.store.actions.internal.moveCameraFocusPX(zo.clientX-xe.clientX,zo.clientY-xe.clientY,xe.timeStamp-zo.timeStamp),zo=xe}let un=xe=>{xe.preventDefault(),xe.button===0&&(ti=!0,e.store.actions.internal.holdCamera()),pt(e.uiConfig.controls.hideTimeoutCursor)},vr=xe=>{xe.preventDefault(),xe.button===0&&(zo=xe,ti=!1,e.store.actions.internal.releaseCamera()),pt(e.uiConfig.controls.hideTimeoutCursor)},ko=xe=>{di(),Yi.set(!0),pt(e.uiConfig.controls.hideTimeout),xe&&Si(e.uiConfig.controls.hideHotKeyHelpers,xe)},gr=()=>{var xe,Pt;di(),(xe=e.store.callbacks)!=null&&xe.onOpenHotKeyMap?(Pt=e.store.callbacks)==null||Pt.onOpenHotKeyMap(oe()):yn.update(ai=>!ai)},hr=()=>{Yi.set(!0)},_r=e.store.ui.contextMenu.openedByBtnKeyboard$,Nr=e.store.ui.contextMenu.btnRef$,Wo=ee(void 0),br=e.store.ui.contextMenu.openedByHotKey$,er=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{Ai.set(r(Tn))}),qe(()=>{O(Xi,me(r(En)&&X()!==f1.PLAYING)),r(En)||_t(()=>O(En,!0))}),qe(()=>{gt.set((r(Xi)||A()||f()||pe()||le()||Ve()||Pe())&&!r(Ro)&&(a()==="video"||a()==="ads")&&!l())}),qe(()=>{!pe()&&r(Zn)&&!p()&&pt(e.uiConfig.controls.hideTimeoutCursor),_t(()=>O(Zn,me(pe())))}),qe(()=>{r(Qn),f(),J(),_t(()=>Ua(r(Qn),f(),J()))}),qe(()=>{r(Wo),j(),Me(),_t(()=>Ua(r(Wo),j(),Me()))}),qe(()=>{let xe=Z();xe&&(j(),_t(()=>Fa(xe,j(),_r)))}),qe(()=>{r(Wo),j(),B(),_t(()=>Ua(r(Wo),j(),B()))}),qe(()=>{let xe=Re();xe&&(j(),_t(()=>hh(xe,j(),br)))}),qe(()=>{var xe;!ne()&&y()&&(_t(()=>Et.set(!1)),(xe=Jt())==null||xe.focus())}),qe(()=>{w()&&di()});let tr=H("video360");var $r=z3();Tt("blur",Ds,di);var fo=ue($r);fo.__mousemove=Jn;var Vn=h(fo);let it=m(()=>a()==="ads"),Bt=m(()=>r(Xn)?Ln:void 0);dt(Op(Vn,{toggleFullscreen:To,hideContextMenu:di,showHotKeyHelpers:ko,showKeyMap:gr,get isAds(){return r(it)},get fakePlayButtonHandler(){return r(Bt)},get nextButtonActive(){return K()},get prevButtonActive(){return se()},children:(xe,Pt)=>{var ai=F3(),kt=ue(ai);let Zt;kt.__contextmenu=Ze,kt.__mousedown=un,kt.__mouseup=vr,kt.__click=[V3,j,ni,f,U,di,A,lo,wi,Xn,Ln,Jt,Ge,e,pt,X,ei],kt.__dblclick=[L3,Lr,Ke,To,pt,e];var li=h(kt);let Ri;dt(li,Io=>ot(Io),()=>ot()),g(kt);var mo=M(kt,2);wl(mo,()=>"slot",!1,(Io,ze)=>{we(Io,null,{name:xd})});var ii=M(mo,2);zs(ii,Ne,Io=>{var ze=H3(),Ot=ue(ze);let bi=m(()=>a()!=="thumb"||l()||Ei&&e.autoplay);gd(Ot,{get hidden(){return r(bi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Eo=M(Ot,2);$m(Eo,{});var Qo=M(Eo,2);{var ls=Ue=>{let oi=m(()=>{var Yo;return(Yo=e.live)==null?void 0:Yo.startTime});hd(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(oi)}})};R(Qo,Ue=>{a()==="LiveWaitingStart"&&Ue(ls)})}var pn=M(Qo,2);{var Wr=Ue=>{la(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(pn,Ue=>{a()==="LiveWaitingRecover"&&Ue(Wr)})}var ca=M(pn,2);{var ua=Ue=>{la(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(ca,Ue=>{a()==="LiveWaitingRecord"&&Ue(ua)})}var ir=M(ca,2);{var el=Ue=>{var oi=N3();let Yo;var vt=h(oi);Vl(vt,{get adsSlotId(){return Rt()},get adsParams(){return nt()},get adsPreviewParam(){return $t()},get adsAutoplayParam(){return Ft()},get duration(){return Wt()}}),g(oi),I(Bo=>Yo=te(oi,1,"ads-container svelte-cy741x",null,Yo,Bo),[()=>({hidden:a()!=="ads"})]),b(Ue,oi)};R(ir,Ue=>{e.showAds&&Ge()&&Ue(el)})}var ks=M(ir,2);{var pa=Ue=>{let oi=m(()=>!Ct()&&e.showAutoplayNext&&S());Np(Ue,{get title(){return he()},get thumb(){return Ce()},get isHide(){return r(oi)},clickCloseIcon:()=>O(Pn,!0)})};R(ks,Ue=>{r(Mn)&&he()&&Ce()&&Ue(pa)})}var mt=M(ks,2);{var ht=Ue=>{let oi=m(()=>!u());Yf(Ue,{get title(){return e.title},get isHidden(){return r(oi)}})};R(mt,Ue=>{r(pr)&&Ue(ht)})}var Ki=M(mt,2);{var Go=Ue=>{let oi=m(()=>a()==="video"&&u());pd(Ue,{get isShifted(){return r(oi)}})};R(Ki,Ue=>{F()&&Ue(Go)})}var Qi=M(Ki,2);{var si=Ue=>{var oi=B3(),Yo=h(oi);Ml(Yo,{"aria-label":tr}),g(oi),b(Ue,oi)};R(Qi,Ue=>{fe()&&Ue(si)})}var Ti=M(Qi,2);{var Is=Ue=>{md(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return D()}})};R(Ti,Ue=>{Ve()&&Ue(Is)})}var fa=M(Ti,2);{var cu=Ue=>{fd(Ue,{get shifted(){return u()},get captions(){return Ee()},get position(){return Qe()},get playerSize(){return T()}})};R(fa,Ue=>{de().value!=="off"&&Ue(cu)})}var Ld=M(fa,2);{var uu=Ue=>{var oi=D3();oi.__contextmenu=Ze,oi.__click=[R3,j,ni,f,U,di];var Yo=h(oi);vd(Yo,{}),g(oi),b(Ue,oi)};R(Ld,Ue=>{l()&&Ue(uu)})}var Es=M(Ld,2);{var pu=Ue=>{let oi=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Yo=m(()=>a()==="ads"),vt=m(()=>e.canRewindLive&&st()!==0);ud(Ue,{get bottomHidden(){return r(oi)},get bottomNoSmooth(){return z()},get showControls(){return u()},get isAds(){return r(Yo)},get canRewindLive(){return r(vt)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Be()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return re()},get nextButtonActive(){return K()},get prevButtonActive(){return se()},get isOneVideoPlaylist(){return De()},customFullscreenSupported:Lr,toggleFullscreen:To,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Je)},set playerControlsWrapperRef(Bo){O(Je,me(Bo))},get playerControlsRef(){return r(ln)},set playerControlsRef(Bo){O(ln,me(Bo))}})};R(Es,Ue=>{Ge()&&Ue(pu)})}var tl=M(Es,2);{var Vd=Ue=>{var oi=O3(),Yo=h(oi);let vt=m(()=>{var Bo;return(Bo=r(ln))==null?void 0:Bo.clientHeight});$d(Yo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(vt)},returnFocus:()=>{var Bo;return(Bo=Jt())==null?void 0:Bo.focus()},get ref(){return r(Qn)},set ref(Bo){O(Qn,me(Bo))}}),g(oi),b(Ue,oi)};R(tl,Ue=>{!Ve()&&a()!=="ads"&&Ue(Vd)})}var Rd=M(tl,2);let Nd=m(()=>!r(An));Nl(Rd,{get isLive(){return Ae()},get isHidden(){return r(Nd)},get isPlaying(){return Ie()},get position(){return Qe()},get duration(){return st()}});var ma=M(Rd,2);Wf(ma,{data:Zi});var il=M(ma,2);Rp(il,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=Jt())==null?void 0:Ue.focus()},get visible(){return j()},get playerContainerRef(){return r(uo)},get controlsContainerRef(){return r(Je)},get position(){return $e()},get menuElementRef(){return r(Wo)},set menuElementRef(Ue){O(Wo,me(Ue))}});var Bd=M(il,2);{var Dd=Ue=>{yd(Ue,{onClose:Ui,onSelectAutoQuality:()=>{xn("auto"),Ui()}})};R(Bd,Ue=>{r(Fi)&&Ue(Dd)})}var Od=M(Bd,2);{var fu=Ue=>{ta(Ue,{})};R(Od,Ue=>{r(Yn)&&Ue(fu)})}var Hd=M(Od,2);{var mu=Ue=>{Up(Ue,{})};R(Hd,Ue=>{Le()&&Ue(mu)})}var va=M(Hd,2);{var vu=Ue=>{Hl(Ue,{})};R(va,Ue=>{je()&&Ue(vu)})}b(Io,ze)}),I((Io,ze)=>{Zt=te(kt,1,"video-wrapper svelte-cy741x",null,Zt,Io),Ri=te(li,1,"video-container svelte-cy741x",null,Ri,ze),et(li,`transform: rotate(${E()}deg) scale(${r(fr)})`),Oe(li,"data-is-playing",Ie())},[()=>({hidden:a()!=="video",nocursor:r(Vr)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(xe,ai)},$$slots:{default:!0}}),xe=>Jt(xe),()=>Jt());var Ci=M(Vn,2);dt(Ci,xe=>O(Tn,xe),()=>r(Tn)),g(fo),dt(fo,xe=>O(uo,xe),()=>r(uo));var Ko=M(fo,2);{var Rn=xe=>{var Pt=U3();b(xe,Pt)};R(Ko,xe=>{ct()&&xe(Rn)})}Tt("mouseenter",fo,At),Tt("mouseleave",fo,hi),Tt("click",fo,hr,!0),Tt("focusin",fo,qi,!0),b(t,$r),W(),o()}rt(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as wd,PlaybackState as ex}from"@vkontakte/videoplayer-core/es2018";import{noop as tx}from"@vkontakte/videoplayer-shared/es2018";var W3=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),K3=L("<div><!></div>"),Q3={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 bm(t,e){U(e,!0),q(t,q3);let[i,o]=Be(),n=()=>S(s,"$isPlaying$",i),a=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Te(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:m,playbackStatusNextVideoAnimationDuration:$}}=Ut(),u=0,_=J(null),w=J(!1);qe(()=>{B(_,pe(n()?yr:ns))}),qe(()=>{B(_,pe(a()?ws:null))}),qe(()=>{if(p)return u=window.setTimeout(()=>{u=0,a()&&r(_)===ws&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),B(_,null)},r(_)!==ws?m:$),()=>{u&&(window.clearTimeout(u),u=0)}}),qe(()=>{n()&&!r(w)&&(B(w,!0),B(_,null))});var y=Ue(),C=ce(y);{var T=E=>{var P=Ue(),A=ce(P);zs(A,()=>r(_),I=>{var V=z3(),H=h(V),G=h(H);let O=v(()=>a()==="prev");Ci(G,()=>r(_),(X,oe)=>{oe(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(_)!==ws?m:$}ms`)),b(I,V)}),b(E,P)};R(C,E=>{r(_)&&p&&E(T)})}b(t,y),z(),o()}var W3=L('<div><div data-testid="video-container"></div></div>'),K3={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,K3);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}}=Te(),{isSmoothVideoRotate:_}=Ut(),w=v(()=>l()&&n()%180?a().height/a().width:1);var y=W3();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)})`),Oe(T,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),b(t,y),z(),o()}at(["contextmenu","mousedown","mouseup","click"]);var Q3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},G3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},j3=L("<div><!></div>"),Y3=L('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Z3=L("<div><!></div>"),X3=L('<div class="settings-menu svelte-jtgjmv"><!></div>'),J3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ex=L("<!> <!> <!>",1),tx=L('<div class="blocked svelte-jtgjmv"></div>'),ix=L('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),ox={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 $m(t,e){U(e,!0),q(t,ox);let[i,o]=Be(),n=()=>S(zo,"$notificationsToShow$",i),a=()=>S(Hi,"$playerPhase",i),s=()=>S(di,"$isLoaderVisible",i),d=()=>S(jt,"$adPlaybackState",i),l=()=>S(Ct,"$crashed",i),p=()=>S(wo,"$isInteractiveTime$",i),m=()=>S(yt,"$settingsMenuVisible",i),$=()=>S(ki,"$isInteractiveExpectation$",i),u=()=>S(Mt,"$controlsVisible",i),_=()=>S(Ho,"$touched",i),w=()=>S(qn,"$graphIsOpened$",i),y=()=>S(Ki,"$isFullscreen",i),C=()=>S(wr,"$autoplayNextEnabled$",i),T=()=>S(oi,"$postrollPassed",i),E=()=>S(Fi,"$isEnded$",i),P=()=>S(qo,"$cursorInside",i),A=()=>S(Sn,"$fakeIsPlaying$",i),I=()=>S(ji,"$bottomNoSmooth",i),V=()=>S(wn,"$interactiveTimeIndicator",i),H=()=>S(Gi,"$playerSize",i),G=()=>S(xo,"$is3DVideo",i),O=()=>S(Z,"$contextMenuVisible$",i),X=()=>S(dt,"$playbackState$",i),oe=()=>S(Zi,"$hotKeyMapData",i),Y=()=>S(yo,"$scrubbingInProgress",i),fe=()=>S(nn,"$volumeChangingInProgress",i),ae=()=>S(ii,"$chromecastConnected$",i),Le=()=>S(Mo,"$controlsTimeoutActive",i),Ae=()=>S(Vt,"$settingsMenuOpenedByKeyboard",i),he=()=>S(ko,"$contextMenuOpenedByKeyboard$",i),se=()=>S(kr,"$contextMenuButtonRef$",i),Me=()=>S(cr,"$contextMenuOpenedByHotKey$",i),ne=()=>S(Er,"$contextMenuLastActiveElem$",i),N=()=>S(Qi,"$isFullscreenOpenedByKeyboard",i),ue=()=>S(ze,"$language$",i),ge=()=>S(si,"$icon3DVideoVisible",i),Qe=()=>S(ci,"$chromecastDeviceName$",i),te=()=>S(co,"$currentSubtitle$",i),Q=()=>S(yn,"$currentSubtitleCaptions$",i),W=()=>S(Vi,"$position$",i),Ve=()=>S(Ii,"$duration$",i),De=()=>S(ct,"$isLive$",i),et=()=>S(lo,"$isPlaying$",i),Se=()=>S(rn,"$contextMenuPosition$",i),$e=()=>S(Ui,"$showHotKeyMap",i),Ne=()=>S(Jt,"$debugPanelVisible",i),je=()=>S(rr,"$userActionsDisabled$",i),it=f(e,"videoContainer",15),ht=f(e,"adsSlotId",3,void 0),Je=f(e,"adsParams",3,void 0),ft=f(e,"adsPreviewParam",3,void 0),Pt=f(e,"adsAutoplayParam",3,void 0),Wt=f(e,"duration",3,void 0),Kt=f(e,"logoTargetUrl",3,""),At=f(e,"showNextPrevButtons",3,!1),_e=f(e,"nextButtonActive",3,!1),j=f(e,"prevButtonActive",3,!1),be=f(e,"endScreenVideoTitle",3,void 0),re=f(e,"endScreenVideoThumb",3,void 0),Re=f(e,"isOneVideoPlaylist",3,!1),He=f(e,"shadowRootContainer",3,void 0),ot=f(e,"outerContainerRef",3,void 0),lt=f(e,"playerStarted",3,!1),Ye=f(e,"fullScreenTarget",3,void 0),Ze=f(e,"showMiniTimer",3,!1),Xe=f(e,"showEndScreen",3,!0),We=f(e,"keyboardControls",15),mt=e.store.getLogger().createComponentLog("Root component"),ze=e.store.interfaceLanguage$,dt=e.store.state.playbackState$,jt=e.store.ads.playbackState,Vi=e.store.state.positionWithScrubbing$,Ii=e.store.state.duration$,Hi=e.store.playerPhase,Ki=e.store.ui.isFullscreen,Qi=e.store.ui.isFullscreenOpenedByKeyboard,Mt=e.store.ui.controlsVisible,yt=e.store.ui.settingsMenu.visible$,Vt=e.store.ui.settingsMenu.openedByBtnKeyboard$,yo=e.store.ui.scrubbingInProgress,nn=e.store.ui.volumeChangingInProgress,Z=e.store.ui.contextMenu.visible$,Jt=e.store.ui.debugPanelVisible,di=e.store.state.isLoaderVisible,Fi=e.store.state.isEnded$,ii=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,oi=e.store.ads.postrollPassed,ct=e.store.state.isLive$,lo=e.store.state.isPlaying$,Ct=e.store.state.crashed$,zt=e.store.webApi.annotationsApi,ei=e.store.webApi.pictureInPictureApi,co=e.store.state.currentSubtitle$,yn=e.store.state.currentSubtitleCaptions$,Gi=e.store.ui.playerSize,xo=e.store.ui.is3DVideo,si=e.store.ui.icon3DVideoVisible,xt=e.store.state.isInteractive,wo=e.store.state.isInteractiveTime$,ki=e.store.state.isInteractiveExpectation$,yi=e.store.state.hasInteractiveBranches,Ho=e.store.ui.touched,Zi=e.store.ui.modals.hotKeyMap.data,Ui=e.store.ui.modals.hotKeyMap.show,xn=e.store.ui.overlayContainer$,wn=e.store.ui.controls.interactiveTimeIndicator,Ri=e.store.state.showInteractiveTimeIndicator,rn=e.store.ui.contextMenu.position$,So=e.store.actions.internal.setQuality,Co=e.store.actions.internal.closeSettingsMenu,wr=e.store.ui.autoplayNextEnabled$,rr=e.store.ui.userActionsDisabled,{fakeIsPlaying$:Sn,notifications$:zn,graphIsOpened$:qn}=ao(),uo=J(void 0),Fo=J(void 0),Cn=J(void 0),nt=J(void 0),Uo,sn,Tn;Zi.set(mh());let{closeNotification:sr,notificationsToShow$:zo}=zn,Wn=v(()=>!!n().slow_video),an=()=>sr("slow_video"),In=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Di=J(void 0),ji=de(!1),kn,Mo=de(!1),En=de(),qo=de(!1),Lo=J(!1),fi=J(!1),Kn=J(!1),To=J(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),ar=v(()=>p()&&!m()&&!(r(Lo)||r(fi))&&!(r(Kn)&&!$())),ln=!0,dn=v(()=>e.uiConfig.features.thumbTimer&&Ze()&&a()==="video"&&!u()&&!l()&&!xt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),lr=v(()=>a()==="video"&&!w()&&y()),Wo=J(!1),Sr=v(()=>(Xe()||e.showAutoplayNext&&C())&&!!be()&&!!re()&&(e.showAds&&T()||!e.showAds)&&E()&&!l()&&!r(Wo)),Pn=v(()=>P()&&!(u()||r(Sr))&&!p()),Qn=J(!1),dr=v(()=>A()!==null),{toggle:Cr}=Sn,Gn=!1,cn=null;ei==null||ei.setContext(Sl());let jn=()=>{e.autoplay&&!xt&&e.uiConfig.controls.showOnStartupAtAutoplay&&xi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:jn});let ai=()=>{window.clearTimeout(Uo),Mo.set(!1)},Vo=()=>{window.clearTimeout(sn),En.set(null)},xi=we=>{ai(),Mo.set(!0),Uo=window.setTimeout(()=>Mo.set(!1),we);let It=we-100;kn=window.setTimeout(()=>{I()&&ji.set(!1)},It>0?It:we)},Yn=(we,It)=>{Vo(),En.set(It),sn=window.setTimeout(()=>En.set(null),we)},vt=xo.subscribe(we=>{si.set(we),we&&(window.clearTimeout(Tn),Tn=window.setTimeout(()=>si.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ot=async()=>{var It,pi,vi,Eo;let we=gs();if(we){let li=Bl(),ke=rt();we=li===ke||li===He()}if(we){xi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ei==null?void 0:ei.remove())}catch(li){mt({message:String(li)})}}Ki.set(we),e.store.getAdmanWrapper().setFullscreen(we),y()?(pi=(It=e.store.callbacks)==null?void 0:It.onFullscreenEnter)==null||pi.call(It):(Eo=(vi=e.store.callbacks)==null?void 0:vi.onFullscreenExit)==null||Eo.call(vi)},Ei=we=>{let{width:It,height:pi}=we.target;Gi.set({width:It,height:pi})},Io=()=>{let{width:we,height:It}=r(uo).getBoundingClientRect();Gi.set({width:we,height:It})};Ft(()=>{var It;return Ec(Ot),e.uiConfig.features.annotationsInside&&(zt==null||zt.init(r(uo))),Ys(ei)&&(ei==null||ei.assignPlayerContainer(r(uo)),ei==null||ei.registryExternalEventHandlers({resize:Ei,leavepictureinpicture:Io})),e.interactiveContainer&&((It=it().parentElement)==null||It.insertBefore(e.interactiveContainer,it().nextSibling)),()=>{window.clearTimeout(Uo),window.clearTimeout(kn),window.clearTimeout(sn),window.clearTimeout(Tn),vt(),ei==null||ei.dispose().catch(pi=>{mt({message:String(pi)})}),Pc(Ot)}});let rt=()=>{let we=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ot()?r(uo):ot(),It=we.getRootNode(),pi=It instanceof ShadowRoot?It.host:It,vi=Ye()instanceof HTMLElement&&Ye().contains(pi);return e.uiConfig.allowChangingFullscreenTarget&&Ye()&&vi?Ye():we},Rt=async()=>{gs()?(await kc(document),mt({message:"exit fullscreen"})):(mt({message:"request fullscreen"}),await Ic(rt()))},ui=()=>{Co(),Z.set(!1)},Ni=we=>{w()||(we.preventDefault(),Z.set(!0),rn.set({left:we.clientX,top:we.clientY}))};function po(){qo.set(!0),xt||xi(e.uiConfig.controls.hideTimeoutCursor)}function $i(){xt||(ji.set(!0),xi(e.uiConfig.controls.hideTimeoutCursor))}function Pi(){qo.set(!1),B(fi,!1),B(Lo,!1),Gn=!1,e.store.actions.internal.releaseCamera(),xi(e.uiConfig.controls.hideTimeout)}function mi(we){return we?we.offsetTop+mi(we.offsetParent):0}function fo(we){return we?we.offsetLeft+fo(we.offsetParent):0}function Xi(we){if(V()&&Ri){let It=we.currentTarget,pi=mi(It),vi=fo(It),Eo=we.pageX-vi,li=we.pageY-pi,{left:ke,bottom:Tt,right:Zt}=V(),wi=Zt-ke;return Eo>=ke-wi&&li<=Tt+wi}}function Ji(we){if(r(uo)){let It=mi(we.currentTarget),pi=H().height,vi=we.pageY-It;if(Xi(we)){B(fi,!1);return}vi<40?B(fi,!0):vi>pi-40?B(Lo,!0):(B(fi,!1),m()||B(Lo,!1))}}function un(we){Ji(we),r(ar)||xi(e.uiConfig.controls.hideTimeoutCursor),G()&&Gn&&cn&&e.store.actions.internal.moveCameraFocusPX(cn.clientX-we.clientX,cn.clientY-we.clientY,we.timeStamp-cn.timeStamp),cn=we}let Zn=we=>{we.preventDefault(),we.button===0&&(Gn=!0,e.store.actions.internal.holdCamera()),xi(e.uiConfig.controls.hideTimeoutCursor)},Xn=we=>{we.preventDefault(),we.button===0&&(cn=we,Gn=!1,e.store.actions.internal.releaseCamera()),xi(e.uiConfig.controls.hideTimeoutCursor)},Tr=we=>{var It;if(we.preventDefault(),O()||m()){ui();return}if(!(E()&&!yi)){if(r(dr))return Cr();if((It=We())==null||It.focus(),!lt()){e.firstStart(),xi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==v1.PLAYING)&&e.store.actions.internal.togglePlay(),xi(e.uiConfig.controls.hideTimeoutCursor)}},Ir=we=>{ui(),Ho.set(!0),xi(e.uiConfig.controls.hideTimeout),we&&Yn(e.uiConfig.controls.hideHotKeyHelpers,we)},An=()=>{var we,It;ui(),(we=e.store.callbacks)!=null&&we.onOpenHotKeyMap?(It=e.store.callbacks)==null||It.onOpenHotKeyMap(oe()):Ui.update(pi=>!pi)},Mn=()=>{Ho.set(!0)},ko=e.store.ui.contextMenu.openedByBtnKeyboard$,kr=e.store.ui.contextMenu.btnRef$,Ro=J(void 0),cr=e.store.ui.contextMenu.openedByHotKey$,Er=e.store.ui.contextMenu.lastActiveElem$;qe(()=>{xn.set(r(Di))}),qe(()=>{B(Kn,pe(r(To)&&X()!==v1.PLAYING)),r(To)||$t(()=>B(To,!0))}),qe(()=>{Mt.set((r(Kn)||E()||m()||Y()||fe()||ae()||Le())&&!r(ar)&&(a()==="video"||a()==="ads")&&!l())}),qe(()=>{!Y()&&r(Qn)&&!p()&&xi(e.uiConfig.controls.hideTimeoutCursor),$t(()=>B(Qn,pe(Y())))}),qe(()=>{r(nt),m(),Ae(),$t(()=>Wa(r(nt),m(),Ae()))}),qe(()=>{r(Ro),O(),he(),$t(()=>Wa(r(Ro),O(),he()))}),qe(()=>{let we=se();we&&(O(),$t(()=>qa(we,O(),ko)))}),qe(()=>{r(Ro),O(),Me(),$t(()=>Wa(r(Ro),O(),Me()))}),qe(()=>{let we=ne();we&&(O(),$t(()=>$h(we,O(),cr)))}),qe(()=>{var we;!N()&&y()&&($t(()=>Qi.set(!1)),(we=We())==null||we.focus())}),qe(()=>{w()&&ui()});let Pr=F("video360");var ur=ix();wt("blur",Bs,ui);var Yi=ce(ur);Yi.__mousemove=un,Yi.__dblclick=[Q3,ln,mt,Rt,xi,e];var pn=h(Yi);let Fr=v(()=>a()==="ads"),pr=v(()=>r(dr)?Cr:void 0);pt(Op(pn,{toggleFullscreen:Rt,hideContextMenu:ui,showHotKeyHelpers:Ir,showKeyMap:An,get isAds(){return r(Fr)},get fakePlayButtonHandler(){return r(pr)},get nextButtonActive(){return _e()},get prevButtonActive(){return j()},children:(we,It)=>{var pi=ex(),vi=ce(pi);ma(vi,{get hideCursor(){return r(Pn)},onClick:Tr,onContextMenu:Ni,onMouseDown:Zn,onMouseUp:Xn,get videoContainer(){return it()},set videoContainer(ke){it(ke)}});var Eo=M(vi,2);qs(Eo,()=>"slot",!1,(ke,Tt)=>{Ie(ke,null,{name:fa})});var li=M(Eo,2);zs(li,ue,ke=>{var Tt=J3(),Zt=ce(Tt);let wi=v(()=>a()!=="thumb"||l()||xt&&e.autoplay);ca(Zt,{get hidden(){return r(wi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ti=M(Zt,2);bm(ti,{});var Ko=M(ti,2);{var fn=Ke=>{let ri=v(()=>{var Qo;return(Qo=e.live)==null?void 0:Qo.startTime});yd(Ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ri)}})};R(Ko,Ke=>{a()==="LiveWaitingStart"&&Ke(fn)})}var Ar=M(Ko,2);{var Ln=Ke=>{ua(Ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Ar,Ke=>{a()==="LiveWaitingRecover"&&Ke(Ln)})}var Ur=M(Ar,2);{var va=Ke=>{ua(Ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ur,Ke=>{a()==="LiveWaitingRecord"&&Ke(va)})}var Cs=M(Ur,2);{var nl=Ke=>{var ri=j3();let Qo;var Es=h(ri);Ol(Es,{get adsSlotId(){return ht()},get adsParams(){return Je()},get adsPreviewParam(){return ft()},get adsAutoplayParam(){return Pt()},get duration(){return Wt()}}),g(ri),k(mo=>Qo=ee(ri,1,"ads-container svelte-jtgjmv",null,Qo,mo),[()=>({hidden:a()!=="ads"})]),b(Ke,ri)};R(Cs,Ke=>{e.showAds&&lt()&&Ke(nl)})}var ga=M(Cs,2);{var rl=Ke=>{let ri=v(()=>!Xe()&&e.showAutoplayNext&&C());Dp(Ke,{get title(){return be()},get thumb(){return re()},get isHide(){return r(ri)},clickCloseIcon:()=>B(Wo,!0)})};R(ga,Ke=>{r(Sr)&&be()&&re()&&Ke(rl)})}var Ts=M(ga,2);{var sl=Ke=>{let ri=v(()=>!u());Gf(Ke,{get title(){return e.title},get isHidden(){return r(ri)}})};R(Ts,Ke=>{r(lr)&&Ke(sl)})}var Jn=M(Ts,2);{var ha=Ke=>{let ri=v(()=>a()==="video"&&u());_d(Ke,{get isShifted(){return r(ri)}})};R(Jn,Ke=>{G()&&Ke(ha)})}var Is=M(Jn,2);{var bt=Ke=>{var ri=Y3(),Qo=h(ri);Nl(Qo,{"aria-label":Pr}),g(ri),b(Ke,ri)};R(Is,Ke=>{ge()&&Ke(bt)})}var _t=M(Is,2);{var eo=Ke=>{bd(Ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Qe()}})};R(_t,Ke=>{ae()&&Ke(eo)})}var Do=M(_t,2);{var to=Ke=>{da(Ke,{get shifted(){return u()},get captions(){return Q()},get position(){return W()},get playerSize(){return H()}})};R(Do,Ke=>{te().value!=="off"&&Ke(to)})}var ni=M(Do,2);{var Bi=Ke=>{var ri=Z3();ri.__contextmenu=Ni,ri.__click=[G3,O,Z,m,yt,ui];var Qo=h(ri);$d(Qo,{}),g(ri),b(Ke,ri)};R(ni,Ke=>{l()&&Ke(Bi)})}var ss=M(ni,2);{var al=Ke=>{let ri=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Qo=v(()=>a()==="ads"),Es=v(()=>e.canRewindLive&&Ve()!==0);hd(Ke,{get bottomHidden(){return r(ri)},get bottomNoSmooth(){return I()},get showControls(){return u()},get isAds(){return r(Qo)},get canRewindLive(){return r(Es)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Kt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return At()},get nextButtonActive(){return _e()},get prevButtonActive(){return j()},get isOneVideoPlaylist(){return Re()},customFullscreenSupported:ln,toggleFullscreen:Rt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Fo)},set playerControlsWrapperRef(mo){B(Fo,pe(mo))},get playerControlsRef(){return r(Cn)},set playerControlsRef(mo){B(Cn,pe(mo))}})};R(ss,Ke=>{lt()&&Ke(al)})}var Dd=M(ss,2);{var fu=Ke=>{var ri=X3(),Qo=h(ri);let Es=v(()=>{var mo;return(mo=r(Cn))==null?void 0:mo.clientHeight});Sd(Qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Es)},returnFocus:()=>{var mo;return(mo=We())==null?void 0:mo.focus()},get ref(){return r(nt)},set ref(mo){B(nt,pe(mo))}}),g(ri),b(Ke,ri)};R(Dd,Ke=>{!ae()&&a()!=="ads"&&Ke(fu)})}var Nd=M(Dd,2);let mu=v(()=>!r(dn));Ul(Nd,{get isLive(){return De()},get isHidden(){return r(mu)},get isPlaying(){return et()},get position(){return W()},get duration(){return Ve()}});var ks=M(Nd,2);qf(ks,{data:En});var Bd=M(ks,2);Rp(Bd,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ke;return(Ke=We())==null?void 0:Ke.focus()},get visible(){return O()},get playerContainerRef(){return r(uo)},get controlsContainerRef(){return r(Fo)},get position(){return Se()},get menuElementRef(){return r(Ro)},set menuElementRef(Ke){B(Ro,pe(Ke))}});var ll=M(Bd,2);{var Od=Ke=>{Cd(Ke,{onClose:an,onSelectAutoQuality:()=>{So("auto"),an()}})};R(ll,Ke=>{r(Wn)&&Ke(Od)})}var Hd=M(ll,2);{var Fd=Ke=>{ta(Ke,{})};R(Hd,Ke=>{r(In)&&Ke(Fd)})}var _a=M(Hd,2);{var Ud=Ke=>{Up(Ke,{})};R(_a,Ke=>{$e()&&Ke(Ud)})}var vu=M(_a,2);{var zd=Ke=>{Kl(Ke,{})};R(vu,Ke=>{Ne()&&Ke(zd)})}b(ke,Tt)}),b(we,pi)},$$slots:{default:!0}}),we=>We(we),()=>We());var st=M(pn,2);pt(st,we=>B(Di,we),()=>r(Di)),g(Yi),pt(Yi,we=>B(uo,we),()=>r(uo));var Ht=M(Yi,2);{var Ai=we=>{var It=tx();b(we,It)};R(Ht,we=>{je()&&we(Ai)})}wt("mouseenter",Yi,po),wt("mouseleave",Yi,Pi),wt("click",Yi,Mn,!0),wt("focusin",Yi,$i,!0),b(t,ur),z(),o()}at(["mousemove","dblclick","contextmenu","click"]);import{clientChecker as Td,PlaybackState as fx}from"@vkontakte/videoplayer-core/es2018";import{noop as mx}from"@vkontakte/videoplayer-shared/es2018";var nx=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),rx=L("<div><!></div>"),sx={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
345
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
344
346
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
345
347
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -355,9 +357,8 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
355
357
  100% {
356
358
  opacity: 0;
357
359
  }
358
- }.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 eu(t,e){q(e,!0),Q(t,Q3);let i=v(e,"seekStep",3,0),o=ee(!1),n=0,a=0,s=ee(me(i())),d=_=>{_.stopPropagation(),a+=1,O(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,O(o,!1)},300)};hn(()=>{window.clearTimeout(n)});var l=K3();l.__click=d;var p=h(l);{var f=_=>{var u=W3(),$=ue(u),w=M($,2),y=h(w),S=h(y),k=M(S,2),A=M(k,2);g(y);var P=M(y,2),E=h(P,!0);g(P),g(w),I(T=>{var V,z,Y,F;te($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),te(k,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),te(A,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),ve(E,T)},[()=>H("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,u)};R(p,_=>{r(o)&&_(f)})}g(l),I(()=>{var _;return te(l,1,`double-click-area ${(_=e.side)!=null?_:""}`,"svelte-nhq2ld")}),b(t,l),W()}rt(["click"]);var G3=(t,e,i)=>{e(!1),i()},Y3=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),j3={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){q(e,!0),Q(t,j3);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,p=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,u=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Dt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Fe(),k=ue(S);{var A=P=>{var E=Y3(),T=M(ue(E),2),V=h(T),z=h(V),Y=h(z,!0);g(z);var F=M(z,2);Js(F,{onClick:y}),g(V);var j=M(V,2);j.__click=[G3,p,_];var X=h(j),oe=h(X),pe=h(oe);let le;var Ve=M(pe,2);{var Pe=B=>{Fl(B,{get isRunning(){return a()},onTimerEnded:w})};R(Ve,B=>{n()&&B(Pe)})}g(oe),g(X);var J=M(X,2),Me=h(J),Z=h(Me,!0);g(Me),g(J),g(j),g(T),I((B,Re)=>{ve(Y,B),et(oe,`background-image: url('${e.thumb}')`),le=te(pe,1,"thumb-overlay svelte-1qdxi6t",null,le,Re),ve(Z,e.title)},[()=>n()?H("end_screen_next_video"):H("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,E)};R(k,P=>{e.isHide||P(A)})}b(t,S),W(),o()}rt(["click"]);import{clientChecker as Z3}from"@vkontakte/videoplayer-core/es2018";var m1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Dt(()=>{Z3.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))}),hn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as X3}from"@vkontakte/videoplayer-core/es2018";var tu=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 J3}from"@vkontakte/videoplayer-core/es2018";var v1=({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"),f=()=>J3.device.isIOS&&ye(s)===X3.DASH_LIVE_CMAF,_=()=>{l==null||l(),l=null},u=$=>{if(_(),!f()||!$)return;let w=p();if(!w)return;let y=new tu(w),S=ye(d),k=ye(a),A=ye(n);for(let T of S)k.some(z=>z.value===T.id)&&y.attach(T,A.value===T.id);let P=d.subscribe(T=>{for(let V of T)y.updateSrc(V)}),E=()=>{let T=y.getCurrentShowingId();o(ye(a).find(V=>V.value===T))};w.textTracks.addEventListener("change",E),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",E)}};Dt(()=>i.subscribe(u)),hn(_)};var ix=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},ox=L("<!> <!>",1),nx=L("<div><!></div>"),rx=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),sx=L("<div><!></div>"),ax=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),lx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),dx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <!> <div class="overlay-container"></div></div>'),cx={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);}.video-wrapper.svelte-dtyj47,
359
- .video-container.svelte-dtyj47,
360
- .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.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 To,di;q(e,!0),Q(t,cx);let[i,o]=He(),n=()=>C(Jt,"$playerPhase",i),a=()=>C(Et,"$isLoaderVisible",i),s=()=>C(at,"$adPlaybackState",i),d=()=>C(Fo,"$crashed",i),l=()=>C(Qn,"$notificationsToShow$",i),p=()=>C(Ge,"$playbackState$",i),f=()=>C(De,"$graphIsOpened$",i),_=()=>C(ei,"$interactiveHideMobileControls",i),u=()=>C(gt,"$isEnded$",i),$=()=>C(Ei,"$isInteractiveExpectation$",i),w=()=>C(lt,"$controlsVisible",i),y=()=>C(wi,"$touched",i),S=()=>C(rn,"$autoplayNextEnabled$",i),k=()=>C(Hi,"$postrollPassed",i),A=()=>C(ri,"$rotateAlpha",i),P=()=>C(qn,"$playerSize",i),E=()=>C(dn,"$bottomNoSmooth",i),T=()=>C(xt,"$videoSize",i),V=()=>C(Ke,"$isFullscreen",i),z=()=>C(Xe,"$position$",i),Y=()=>C(Ct,"$duration$",i),F=()=>C(yn,"$loadedMetadata",i),j=()=>C(Mi,"$settingsMenuVisible",i),X=()=>C(Oi,"$scrubbingInProgress",i),oe=()=>C(Lo,"$volumeChangingInProgress",i),pe=()=>C(U,"$chromecastConnected$",i),le=()=>C(gi,"$isInteractiveTime$",i),Ve=()=>C(lo,"$isActiveLive",i),Pe=()=>C(Mo,"$settingsMenuOpenedByKeyboard",i),J=()=>C(ao,"$isPlaying$",i),Me=()=>C(Ut,"$language$",i),Z=()=>C($n,"$disabledControls$",i),B=()=>C(yo,"$is3DVideo",i),Re=()=>C(xo,"$icon3DVideoVisible",i),ne=()=>C(Kt,"$chromecastDeviceName$",i),Ie=()=>C(zt,"$currentSubtitle$",i),Ne=()=>C(co,"$currentSubtitleCaptions$",i),fe=()=>C(jt,"$realDuration$",i),D=()=>C(ci,"$isLive$",i),de=()=>C(Vo,"$debugPanelVisible",i),Ee=v(e,"videoContainer",15),Qe=v(e,"adsSlotId",3,void 0),st=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),$e=v(e,"adsAutoplayParam",3,void 0),Le=v(e,"duration",3,void 0),je=v(e,"logoTargetUrl",3,""),ct=v(e,"showNextPrevButtons",3,!1),ot=v(e,"nextButtonActive",3,!1),Rt=v(e,"prevButtonActive",3,!1),nt=v(e,"endScreenVideoTitle",3,void 0),$t=v(e,"endScreenVideoThumb",3,void 0),Ft=v(e,"isOneVideoPlaylist",3,!1),Wt=v(e,"shadowRootContainer",3,void 0),Be=v(e,"outerContainerRef",3,void 0),re=v(e,"showMiniTimer",3,!1),K=v(e,"fullScreenTarget",3,void 0),se=v(e,"playerStarted",3,!1),he=v(e,"showEndScreen",3,!0),{notifications$:Ce,graphIsOpened$:De}=so(),ut=e.store.getLogger().createComponentLog("Root component"),Ut=e.store.interfaceLanguage$,Ge=e.store.state.playbackState$,at=e.store.ads.playbackState,Xe=e.store.state.positionWithScrubbing$,Ct=e.store.state.duration$,Jt=e.store.playerPhase,Ke=e.store.ui.isFullscreen,lt=e.store.ui.controlsVisible,ei=e.store.ui.interactiveHideMobileControls,Mi=e.store.ui.settingsMenu.visible$,Mo=e.store.ui.settingsMenu.openedByBtnKeyboard$,Oi=e.store.ui.scrubbingInProgress,Lo=e.store.ui.volumeChangingInProgress,Vo=e.store.ui.debugPanelVisible,Et=e.store.state.isLoaderVisible,gt=e.store.state.isEnded$,U=e.store.state.chromecastConnected$,Kt=e.store.state.chromecastDeviceName$,Hi=e.store.ads.postrollPassed,Li=e.store.ui.mobileUnmuteButtonExpanded,ni=e.store.ui.mobileUnmuteButtonVisible,ci=e.store.state.isLive$,ao=e.store.state.isPlaying$,lo=e.store.state.isActiveLive$,Gi=e.store.state.isRewindableLive$,Fo=e.store.state.crashed$,Nt=e.store.webApi.annotationsApi,ui=e.store.webApi.pictureInPictureApi,xt=e.store.state.videoSize$,zt=e.store.state.currentSubtitle$,co=e.store.state.currentSubtitleCaptions$,jt=e.store.state.duration$,qn=e.store.ui.playerSize,yo=e.store.ui.is3DVideo,xo=e.store.ui.icon3DVideoVisible,ri=e.store.ui.rotateAlpha,bt=e.store.state.isInteractive,gi=e.store.state.isInteractiveTime$,Ei=e.store.state.isInteractiveExpectation$,Vi=e.store.state.hasInteractiveBranches,$n=e.store.ui.controls.disabledControls$,wi=e.store.ui.touched,Yi=e.store.ui.overlayContainer$,rn=e.store.ui.autoplayNextEnabled$,yn=e.store.state.loadedMetadata$,Ai=e.store.actions.internal.closeSettingsMenu,Wn=(To=e.store.callbacks)==null?void 0:To.onDisabledPlayPrevChapterClick,sn=(di=e.store.callbacks)==null?void 0:di.onDisabledSeekToInteractiveClick,wo=e.store.actions.internal.setQuality,xn=ee(void 0),Mr=ee(void 0),cr=ee(void 0),Kn=ee(void 0),wn,an,Sn,uo=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Je=ee(void 0),{closeNotification:ln,notificationsToShow$:Qn}=Ce,Gn=m(()=>!!l().slow_video),Cn=()=>ln("slow_video"),dn=ae(!1),cn,Uo=ee(!1),Fi=m(()=>p()!==ex.PLAYING),Ui=ee(!1),Yn=m(()=>f()||_()||!r(Uo)&&(u()&&!!Vi||r(Fi)&&$())),Tn=ee(!0),jn=m(()=>e.uiConfig.features.thumbTimer&&re()&&n()==="video"&&!w()&&!d()&&!bt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),ur=ee(!1),ji=m(()=>(he()||e.showAutoplayNext&&S())&&!!nt()&&!!$t()&&(e.showAds&&k()||!e.showAds)&&u()&&!d()&&!r(ur)),Zi=ee(!1),kn=m(()=>Ee()&&A()%180?P().height/P().width:1);ui==null||ui.setContext(_l());let In=Ze=>{clearTimeout(an),Ze&&(ni.set(!0),Li.set(!0),an=setTimeout(()=>{Li.set(!1)},e.uiConfig.controls.collapseMobileUnmute),bt||Xi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:In});let po=()=>{clearTimeout(wn),O(Uo,!1),_()&&ei.set(!1)},Xi=Ze=>{po(),O(Uo,!0),wn=setTimeout(()=>O(Uo,!1),Ze);let At=Ze-100;cn=setTimeout(()=>{E()&&dn.set(!1)},At>0?At:Ze)},En=yo.subscribe(Ze=>{xo.set(Ze),Ze&&(clearTimeout(Sn),Sn=setTimeout(()=>xo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ro=async(Ze=_s())=>{var At,qi,hi,_i,Wi,No;if(Ze&&!wd.device.isIOS){let eo=Ll(),Jn=Mn(),un=wd.browser.isSamsungBrowser&&eo===Wt();Ze=eo===Jn||un}if(Ze){Xi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ui==null?void 0:ui.remove())}catch(eo){ut({message:String(eo)})}try{let eo=(At=T())!=null&&At.width&&((qi=T())!=null&&qi.height)?T():P();await dh(eo)}catch(eo){ut({message:String(eo)})}}Ke.set(Ze),e.store.getAdmanWrapper().setFullscreen(Ze),V()?(_i=(hi=e.store.callbacks)==null?void 0:hi.onFullscreenEnter)==null||_i.call(hi):(No=(Wi=e.store.callbacks)==null?void 0:Wi.onFullscreenExit)==null||No.call(Wi)},Lr=Ze=>{let At=Ze;qn.set({width:At.target.width,height:At.target.height})};Dt(()=>{var Ze;return Tc(Ro),e.uiConfig.features.annotationsInside&&(Nt==null||Nt.init(r(xn))),js(ui)&&(ui==null||ui.assignPlayerContainer(r(xn)),ui==null||ui.registryExternalEventHandlers({resize:Lr})),O(Tn,!wd.device.isIphoneOrOldIpad),e.interactiveContainer&&((Ze=Ee().parentElement)==null||Ze.insertBefore(e.interactiveContainer,Ee().nextSibling)),()=>{clearTimeout(wn),clearTimeout(cn),clearTimeout(an),clearTimeout(Sn),En(),ui==null||ui.dispose().catch(At=>{ut({message:String(At)})}),kc(Ro)}});let An=ee(!0),pr=ee(!0),Pn=Ze=>{let At=z()+(Ze==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;At<0?(O(An,!1),At=0):At>=Y()&&(O(pr,!1),At=Y()),O(Ui,!0),e.seekTime(At)},Mn=()=>{let Ze=wd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Be()?r(xn):Be(),At=Ze.getRootNode(),qi=At instanceof ShadowRoot?At.host:At,hi=K()instanceof HTMLElement&&K().contains(qi);return e.uiConfig.allowChangingFullscreenTarget&&K()&&hi?K():Ze},Vr=async()=>{try{if(_s())await Cc(document),ut({message:"exit fullscreen"});else{if(ut({message:"request fullscreen"}),wd.device.isIOS&&!F())return;await Sc(Mn())}}catch(Ze){ut({message:String(Ze)})}},Zn=()=>{Ai()},fr=Ze=>{if(Ze.preventDefault(),j()){Zn();return}if(!se()){e.firstStart(),Xi(e.uiConfig.controls.hideTimeoutCursor);return}O(Ui,!1),w()?po():Xi(e.uiConfig.controls.hideTimeoutMobile)},Xn=()=>{wi.set(!0)},Ln=()=>{bt||(dn.set(!0),Xi(e.uiConfig.controls.hideTimeoutCursor))},ti=Ze=>{Wn&&(Wn(Ze),Xi(e.uiConfig.controls.hideTimeoutMobile))},zo=Ze=>{sn&&(sn(Ze),Xi(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Yi.set(r(Je))}),qe(()=>{lt.set((r(Fi)||j()||X()||oe()||pe()||!r(ji)&&(u()||r(Uo)&&!r(Ui)))&&!r(Yn)&&n()==="video"&&!d())}),qe(()=>{!X()&&r(Zi)&&!le()&&Xi(e.uiConfig.controls.hideTimeoutMobile),O(Zi,me(X()))}),qe(()=>{O(An,z()>0),O(pr,me(!Ve()&&z()<Y()))}),qe(()=>{Ua(r(Kn),j(),Pe())});let mr=H("aria_label_video_player"),Rr=H("video360");m1({fullScreenChangeHandler:Ro,getFullscreenTarget:Mn}),v1({store:e.store,getFullscreenTarget:Mn});var tt=dx();Tt("blur",Ds,Zn),Oe(tt,"aria-label",mr);var pt=h(tt);let Si;pt.__click=fr;var Ji=h(pt);let zi;dt(Ji,Ze=>Ee(Ze),()=>Ee()),g(pt);var So=M(pt,2);wl(So,()=>"slot",!1,(Ze,At)=>{we(Ze,null,{name:xd})});var Co=M(So,2);zs(Co,Me,Ze=>{var At=lx(),qi=ue(At);let hi=m(()=>n()!=="thumb"||d()||bt&&e.autoplay);gd(qi,{get hidden(){return r(hi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var _i=M(qi,2);{var Wi=ze=>{var Ot=ox(),bi=ue(Ot);{var Eo=pn=>{let Wr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);eu(pn,{side:"left",get seekStep(){return r(Wr)},handleSingleFirstClick:fr,handleSecondClick:()=>Pn("backward")})};R(bi,pn=>{r(An)&&pn(Eo)})}var Qo=M(bi,2);{var ls=pn=>{let Wr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);eu(pn,{side:"right",get seekStep(){return r(Wr)},handleSingleFirstClick:fr,handleSecondClick:()=>Pn("forward")})};R(Qo,pn=>{r(pr)&&pn(ls)})}b(ze,Ot)};R(_i,ze=>{e.canRewindLive&&Gi&&!Z().has("TIMELINE")&&ze(Wi)})}var No=M(_i,2);{var eo=ze=>{let Ot=m(()=>{var bi;return(bi=e.live)==null?void 0:bi.startTime});hd(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Ot)}})};R(No,ze=>{n()==="LiveWaitingStart"&&ze(eo)})}var Jn=M(No,2);{var un=ze=>{la(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Jn,ze=>{n()==="LiveWaitingRecover"&&ze(un)})}var vr=M(Jn,2);{var ko=ze=>{la(ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(vr,ze=>{n()==="LiveWaitingRecord"&&ze(ko)})}var gr=M(vr,2);{var hr=ze=>{var Ot=nx();let bi;var Eo=h(Ot);Vl(Eo,{get adsSlotId(){return Qe()},get adsParams(){return st()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return $e()},get duration(){return Le()}}),g(Ot),I(Qo=>bi=te(Ot,1,"ads-container svelte-dtyj47",null,bi,Qo),[()=>({hidden:n()!=="ads"})]),b(ze,Ot)};R(gr,ze=>{e.showAds&&se()&&ze(hr)})}var _r=M(gr,2);{var Nr=ze=>{let Ot=m(()=>!he()&&e.showAutoplayNext&&S());xm(ze,{get title(){return nt()},get thumb(){return $t()},get isHide(){return r(Ot)},clickCloseIcon:()=>O(ur,!0)})};R(_r,ze=>{r(ji)&&nt()&&$t()&&ze(Nr)})}var Wo=M(_r,2);{var br=ze=>{pd(ze,{})};R(Wo,ze=>{B()&&ze(br)})}var er=M(Wo,2);{var tr=ze=>{var Ot=rx(),bi=h(Ot);Ml(bi,{"aria-label":Rr}),g(Ot),b(ze,Ot)};R(er,ze=>{Re()&&ze(tr)})}var $r=M(er,2);{var fo=ze=>{md(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};R($r,ze=>{pe()&&ze(fo)})}var Vn=M($r,2);{var it=ze=>{fd(ze,{get shifted(){return w()},get captions(){return Ne()},get position(){return z()},get playerSize(){return P()},isMobile:!0})};R(Vn,ze=>{Ie().value!=="off"&&ze(it)})}var Bt=M(Vn,2);{var Ci=ze=>{var Ot=sx();Ot.__click=[ix,j,Mi,Zn];var bi=h(Ot);vd(bi,{}),g(Ot),b(ze,Ot)};R(Bt,ze=>{d()&&ze(Ci)})}var Ko=M(Bt,2);{var Rn=ze=>{let Ot=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),bi=m(()=>n()==="ads"),Eo=m(()=>e.canRewindLive&&fe()!==0);ud(ze,{get bottomHidden(){return r(Ot)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(bi)},get canRewindLive(){return r(Eo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return je()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ct()},get nextButtonActive(){return ot()},get prevButtonActive(){return Rt()},get isOneVideoPlaylist(){return Ft()},get customFullscreenSupported(){return r(Tn)},get endScreenShown(){return r(ji)},toggleFullscreen:Vr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:ti,onDisabledSeekToInteractiveClick:zo,get playerControlsWrapperRef(){return r(Mr)},set playerControlsWrapperRef(Qo){O(Mr,me(Qo))},get playerControlsRef(){return r(cr)},set playerControlsRef(Qo){O(cr,me(Qo))}})};R(Ko,ze=>{se()&&ze(Rn)})}var xe=M(Ko,2);{var Pt=ze=>{var Ot=ax(),bi=h(Ot);$d(bi,{get supportLink(){return e.supportLink},returnFocus:tx,get ref(){return r(Kn)},set ref(Eo){O(Kn,me(Eo))}}),g(Ot),b(ze,Ot)};R(xe,ze=>{j()&&ze(Pt)})}var ai=M(xe,2);let kt=m(()=>!r(jn));Nl(ai,{get isLive(){return D()},get isHidden(){return r(kt)},get isPlaying(){return J()},get position(){return z()},get duration(){return Y()}});var Zt=M(ai,2);{var li=ze=>{ta(ze,{})};R(Zt,ze=>{r(uo)&&ze(li)})}var Ri=M(Zt,2);{var mo=ze=>{Hl(ze,{})};R(Ri,ze=>{de()&&ze(mo)})}var ii=M(Ri,2);{var Io=ze=>{yd(ze,{onClose:Cn,onSelectAutoQuality:()=>{wo("auto"),Cn()}})};R(ii,ze=>{r(Gn)&&ze(Io)})}b(Ze,At)});var qo=M(Co,2);dt(qo,Ze=>O(Je,Ze),()=>r(Je)),g(tt),dt(tt,Ze=>O(xn,Ze),()=>r(xn)),I((Ze,At)=>{Si=te(pt,1,"video-wrapper svelte-dtyj47",null,Si,Ze),zi=te(Ji,1,"video-container svelte-dtyj47",null,zi,At),et(Ji,`transform: rotate(${A()}deg) scale(${r(kn)})`),Oe(Ji,"data-is-playing",J())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),Tt("click",tt,Xn,!0),Tt("focusin",tt,Ln,!0),b(t,tt),W(),o()}rt(["click"]);function iu(t){let e="";return zn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),zn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),zn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),zn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),zn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),zn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),zn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),zn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),zn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),zn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),zn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),zn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),zn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function zn(t){return typeof t=="string"&&!t.includes(";")}var vx=L('<div class="root svelte-1cnbt6x"><!></div>'),gx={hash:"svelte-1cnbt6x",code:`.root.svelte-1cnbt6x {--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 ou(t,e){U(e,!0),q(t,sx);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=rx();l.__click=d;var p=h(l);{var m=$=>{var u=nx(),_=ce(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,G,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 ${(G=e.side)!=null?G:""}`,"svelte-nhq2ld"),ee(E,1,`triangle ${(O=e.side)!=null?O:""}`,"svelte-nhq2ld"),me(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()}at(["click"]);var ax=(t,e,i)=>{e(!1),i()},lx=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),dx={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 ym(t,e){U(e,!0),q(t,dx);let[i,o]=Be(),n=()=>S(d,"$autoplayNextEnabled$",i),a=()=>S(l,"$timerNextVideoRunning$",i),s=Te(),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(),_()};Ft(()=>{e.isHide||m(),e.isHide&&n()&&(p(!1),u())});var C=Ue(),T=ce(C);{var E=P=>{var A=lx(),I=M(ce(A),2),V=h(I),H=h(V),G=h(H,!0);g(H);var O=M(H,2);Js(O,{onClick:y}),g(V);var X=M(V,2);X.__click=[ax,p,$];var oe=h(X),Y=h(oe),fe=h(Y);let ae;var Le=M(fe,2);{var Ae=ne=>{Ql(ne,{get isRunning(){return a()},onTimerEnded:w})};R(Le,ne=>{n()&&ne(Ae)})}g(Y),g(oe);var he=M(oe,2),se=h(he),Me=h(se,!0);g(se),g(he),g(X),g(I),k((ne,N)=>{me(G,ne),tt(Y,`background-image: url('${e.thumb}')`),ae=ee(fe,1,"thumb-overlay svelte-1qdxi6t",null,ae,N),me(Me,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()}at(["click"]);import{clientChecker as cx}from"@vkontakte/videoplayer-core/es2018";var g1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ft(()=>{cx.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 ux}from"@vkontakte/videoplayer-core/es2018";var nu=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 px}from"@vkontakte/videoplayer-core/es2018";var h1=({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=()=>px.device.isIOS&&Ce(s)===ux.DASH_LIVE_CMAF,$=()=>{l==null||l(),l=null},u=_=>{if($(),!m()||!_)return;let w=p();if(!w)return;let y=new nu(w),C=Ce(d),T=Ce(a),E=Ce(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(Ce(a).find(V=>V.value===I))};w.textTracks.addEventListener("change",A),l=()=>{P(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};Ft(()=>i.subscribe(u)),_n($)};var vx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},gx=L("<!> <!>",1),hx=L("<div><!></div>"),_x=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),bx=L("<div><!></div>"),$x=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),yx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),xx=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),wx={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 xm(t,e){var Ei,Io;U(e,!0),q(t,wx);let[i,o]=Be(),n=()=>S(We,"$playerPhase",i),a=()=>S(Qi,"$isLoaderVisible",i),s=()=>S(Ye,"$adPlaybackState",i),d=()=>S(ci,"$crashed",i),l=()=>S(nt,"$notificationsToShow$",i),p=()=>S(lt,"$playbackState$",i),m=()=>S(Re,"$graphIsOpened$",i),$=()=>S(dt,"$interactiveHideMobileControls",i),u=()=>S(Mt,"$isEnded$",i),_=()=>S(xt,"$isInteractiveExpectation$",i),w=()=>S(ze,"$controlsVisible",i),y=()=>S(yi,"$touched",i),C=()=>S(Zi,"$autoplayNextEnabled$",i),T=()=>S(yo,"$postrollPassed",i),E=()=>S(Tn,"$bottomNoSmooth",i),P=()=>S(lo,"$videoSize",i),A=()=>S(co,"$playerSize",i),I=()=>S(mt,"$isFullscreen",i),V=()=>S(Ze,"$position$",i),H=()=>S(Xe,"$duration$",i),G=()=>S(Ui,"$loadedMetadata",i),O=()=>S(jt,"$settingsMenuVisible",i),X=()=>S(Ii,"$scrubbingInProgress",i),oe=()=>S(Hi,"$volumeChangingInProgress",i),Y=()=>S(yt,"$chromecastConnected$",i),fe=()=>S(si,"$isInteractiveTime$",i),ae=()=>S(Fi,"$isActiveLive",i),Le=()=>S(Vi,"$settingsMenuOpenedByKeyboard",i),Ae=()=>S(ot,"$language$",i),he=()=>S(ki,"$disabledControls$",i),se=()=>S(yn,"$is3DVideo",i),Me=()=>S(Gi,"$icon3DVideoVisible",i),ne=()=>S(Vt,"$chromecastDeviceName$",i),N=()=>S(Ct,"$currentSubtitle$",i),ue=()=>S(zt,"$currentSubtitleCaptions$",i),ge=()=>S(ei,"$realDuration$",i),Qe=()=>S(Jt,"$isLive$",i),te=()=>S(di,"$isPlaying$",i),Q=()=>S(Ki,"$debugPanelVisible",i),W=f(e,"videoContainer",15),Ve=f(e,"adsSlotId",3,void 0),De=f(e,"adsParams",3,void 0),et=f(e,"adsPreviewParam",3,void 0),Se=f(e,"adsAutoplayParam",3,void 0),$e=f(e,"duration",3,void 0),Ne=f(e,"logoTargetUrl",3,""),je=f(e,"showNextPrevButtons",3,!1),it=f(e,"nextButtonActive",3,!1),ht=f(e,"prevButtonActive",3,!1),Je=f(e,"endScreenVideoTitle",3,void 0),ft=f(e,"endScreenVideoThumb",3,void 0),Pt=f(e,"isOneVideoPlaylist",3,!1),Wt=f(e,"shadowRootContainer",3,void 0),Kt=f(e,"outerContainerRef",3,void 0),At=f(e,"showMiniTimer",3,!1),_e=f(e,"fullScreenTarget",3,void 0),j=f(e,"playerStarted",3,!1),be=f(e,"showEndScreen",3,!0),{notifications$:re,graphIsOpened$:Re}=ao(),He=e.store.getLogger().createComponentLog("Root component"),ot=e.store.interfaceLanguage$,lt=e.store.state.playbackState$,Ye=e.store.ads.playbackState,Ze=e.store.state.positionWithScrubbing$,Xe=e.store.state.duration$,We=e.store.playerPhase,mt=e.store.ui.isFullscreen,ze=e.store.ui.controlsVisible,dt=e.store.ui.interactiveHideMobileControls,jt=e.store.ui.settingsMenu.visible$,Vi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ii=e.store.ui.scrubbingInProgress,Hi=e.store.ui.volumeChangingInProgress,Ki=e.store.ui.debugPanelVisible,Qi=e.store.state.isLoaderVisible,Mt=e.store.state.isEnded$,yt=e.store.state.chromecastConnected$,Vt=e.store.state.chromecastDeviceName$,yo=e.store.ads.postrollPassed,nn=e.store.ui.mobileUnmuteButtonExpanded,Z=e.store.ui.mobileUnmuteButtonVisible,Jt=e.store.state.isLive$,di=e.store.state.isPlaying$,Fi=e.store.state.isActiveLive$,ii=e.store.state.isRewindableLive$,ci=e.store.state.crashed$,oi=e.store.webApi.annotationsApi,ct=e.store.webApi.pictureInPictureApi,lo=e.store.state.videoSize$,Ct=e.store.state.currentSubtitle$,zt=e.store.state.currentSubtitleCaptions$,ei=e.store.state.duration$,co=e.store.ui.playerSize,yn=e.store.ui.is3DVideo,Gi=e.store.ui.icon3DVideoVisible,xo=e.store.state.isInteractive,si=e.store.state.isInteractiveTime$,xt=e.store.state.isInteractiveExpectation$,wo=e.store.state.hasInteractiveBranches,ki=e.store.ui.controls.disabledControls$,yi=e.store.ui.touched,Ho=e.store.ui.overlayContainer$,Zi=e.store.ui.autoplayNextEnabled$,Ui=e.store.state.loadedMetadata$,xn=e.store.actions.internal.closeSettingsMenu,wn=(Ei=e.store.callbacks)==null?void 0:Ei.onDisabledPlayPrevChapterClick,Ri=(Io=e.store.callbacks)==null?void 0:Io.onDisabledSeekToInteractiveClick,rn=e.store.actions.internal.setQuality,So=J(void 0),Co=J(void 0),wr=J(void 0),rr=J(void 0),Sn,zn,qn,uo=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Fo=J(void 0),{closeNotification:Cn,notificationsToShow$:nt}=re,Uo=v(()=>!!l().slow_video),sn=()=>Cn("slow_video"),Tn=de(!1),sr,zo=J(!1),Wn=v(()=>p()!==fx.PLAYING),an=J(!1),In=v(()=>m()||$()||!r(zo)&&(u()&&!!wo||r(Wn)&&_())),Di=J(!0),ji=v(()=>e.uiConfig.features.thumbTimer&&At()&&n()==="video"&&!w()&&!d()&&!xo&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),kn=J(!1),Mo=v(()=>(be()||e.showAutoplayNext&&C())&&!!Je()&&!!ft()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(kn)),En=J(!1);ct==null||ct.setContext(Sl());let qo=rt=>{clearTimeout(zn),rt&&(Z.set(!0),nn.set(!0),zn=setTimeout(()=>{nn.set(!1)},e.uiConfig.controls.collapseMobileUnmute),xo||fi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:qo});let Lo=()=>{clearTimeout(Sn),B(zo,!1),$()&&dt.set(!1)},fi=rt=>{Lo(),B(zo,!0),Sn=setTimeout(()=>B(zo,!1),rt);let Rt=rt-100;sr=setTimeout(()=>{E()&&Tn.set(!1)},Rt>0?Rt:rt)},Kn=yn.subscribe(rt=>{Gi.set(rt),rt&&(clearTimeout(qn),qn=setTimeout(()=>Gi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),To=async(rt=gs())=>{var Rt,ui,Ni,po,$i,Pi;if(rt&&!Td.device.isIOS){let mi=Bl(),fo=Wo(),Xi=Td.browser.isSamsungBrowser&&mi===Wt();rt=mi===fo||Xi}if(rt){fi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(ct==null?void 0:ct.remove())}catch(mi){He({message:String(mi)})}try{let mi=(Rt=P())!=null&&Rt.width&&((ui=P())!=null&&ui.height)?P():A();await ph(mi)}catch(mi){He({message:String(mi)})}}mt.set(rt),e.store.getAdmanWrapper().setFullscreen(rt),I()?(po=(Ni=e.store.callbacks)==null?void 0:Ni.onFullscreenEnter)==null||po.call(Ni):(Pi=($i=e.store.callbacks)==null?void 0:$i.onFullscreenExit)==null||Pi.call($i)},ar=rt=>{let Rt=rt;co.set({width:Rt.target.width,height:Rt.target.height})};Ft(()=>{var rt;return Ec(To),e.uiConfig.features.annotationsInside&&(oi==null||oi.init(r(So))),Ys(ct)&&(ct==null||ct.assignPlayerContainer(r(So)),ct==null||ct.registryExternalEventHandlers({resize:ar})),B(Di,!Td.device.isIphoneOrOldIpad),e.interactiveContainer&&((rt=W().parentElement)==null||rt.insertBefore(e.interactiveContainer,W().nextSibling)),()=>{clearTimeout(Sn),clearTimeout(sr),clearTimeout(zn),clearTimeout(qn),Kn(),ct==null||ct.dispose().catch(Rt=>{He({message:String(Rt)})}),Pc(To)}});let ln=J(!0),dn=J(!0),lr=rt=>{let Rt=V()+(rt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Rt<0?(B(ln,!1),Rt=0):Rt>=H()&&(B(dn,!1),Rt=H()),B(an,!0),e.seekTime(Rt)},Wo=()=>{let rt=Td.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Kt()?r(So):Kt(),Rt=rt.getRootNode(),ui=Rt instanceof ShadowRoot?Rt.host:Rt,Ni=_e()instanceof HTMLElement&&_e().contains(ui);return e.uiConfig.allowChangingFullscreenTarget&&_e()&&Ni?_e():rt},Sr=async()=>{try{if(gs())await kc(document),He({message:"exit fullscreen"});else{if(He({message:"request fullscreen"}),Td.device.isIOS&&!G())return;await Ic(Wo())}}catch(rt){He({message:String(rt)})}},Pn=()=>{xn()},Qn=rt=>{if(rt.preventDefault(),O()){Pn();return}if(!j()){e.firstStart(),fi(e.uiConfig.controls.hideTimeoutCursor);return}B(an,!1),w()?Lo():fi(e.uiConfig.controls.hideTimeoutMobile)},dr=()=>{yi.set(!0)},Cr=()=>{xo||(Tn.set(!0),fi(e.uiConfig.controls.hideTimeoutCursor))},Gn=rt=>{wn&&(wn(rt),fi(e.uiConfig.controls.hideTimeoutMobile))},cn=rt=>{Ri&&(Ri(rt),fi(e.uiConfig.controls.hideTimeoutMobile))};qe(()=>{Ho.set(r(Fo))}),qe(()=>{ze.set((r(Wn)||O()||X()||oe()||Y()||!r(Mo)&&(u()||r(zo)&&!r(an)))&&!r(In)&&n()==="video"&&!d())}),qe(()=>{!X()&&r(En)&&!fe()&&fi(e.uiConfig.controls.hideTimeoutMobile),B(En,pe(X()))}),qe(()=>{B(ln,V()>0),B(dn,pe(!ae()&&V()<H()))}),qe(()=>{Wa(r(rr),O(),Le())});let jn=F("aria_label_video_player"),ai=F("video360");g1({fullScreenChangeHandler:To,getFullscreenTarget:Wo}),h1({store:e.store,getFullscreenTarget:Wo});var Vo=xx();wt("blur",Bs,Pn),Oe(Vo,"aria-label",jn);var xi=h(Vo);ma(xi,{onClick:Qn,get videoContainer(){return W()},set videoContainer(rt){W(rt)}});var Yn=M(xi,2);qs(Yn,()=>"slot",!1,(rt,Rt)=>{Ie(rt,null,{name:fa})});var vt=M(Yn,2);zs(vt,Ae,rt=>{var Rt=yx(),ui=ce(Rt);let Ni=v(()=>n()!=="thumb"||d()||xo&&e.autoplay);ca(ui,{get hidden(){return r(Ni)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var po=M(ui,2);{var $i=ke=>{var Tt=gx(),Zt=ce(Tt);{var wi=fn=>{let Ar=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ou(fn,{side:"left",get seekStep(){return r(Ar)},handleSingleFirstClick:Qn,handleSecondClick:()=>lr("backward")})};R(Zt,fn=>{r(ln)&&fn(wi)})}var ti=M(Zt,2);{var Ko=fn=>{let Ar=v(()=>e.uiConfig.controls.seekStepMobile/1e3);ou(fn,{side:"right",get seekStep(){return r(Ar)},handleSingleFirstClick:Qn,handleSecondClick:()=>lr("forward")})};R(ti,fn=>{r(dn)&&fn(Ko)})}b(ke,Tt)};R(po,ke=>{e.canRewindLive&&ii&&!he().has("TIMELINE")&&ke($i)})}var Pi=M(po,2);{var mi=ke=>{let Tt=v(()=>{var Zt;return(Zt=e.live)==null?void 0:Zt.startTime});yd(ke,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Tt)}})};R(Pi,ke=>{n()==="LiveWaitingStart"&&ke(mi)})}var fo=M(Pi,2);{var Xi=ke=>{ua(ke,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(fo,ke=>{n()==="LiveWaitingRecover"&&ke(Xi)})}var Ji=M(fo,2);{var un=ke=>{ua(ke,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ji,ke=>{n()==="LiveWaitingRecord"&&ke(un)})}var Zn=M(Ji,2);{var Xn=ke=>{var Tt=hx();let Zt;var wi=h(Tt);Ol(wi,{get adsSlotId(){return Ve()},get adsParams(){return De()},get adsPreviewParam(){return et()},get adsAutoplayParam(){return Se()},get duration(){return $e()}}),g(Tt),k(ti=>Zt=ee(Tt,1,"ads-container svelte-dtyj47",null,Zt,ti),[()=>({hidden:n()!=="ads"})]),b(ke,Tt)};R(Zn,ke=>{e.showAds&&j()&&ke(Xn)})}var Tr=M(Zn,2);{var Ir=ke=>{let Tt=v(()=>!be()&&e.showAutoplayNext&&C());ym(ke,{get title(){return Je()},get thumb(){return ft()},get isHide(){return r(Tt)},clickCloseIcon:()=>B(kn,!0)})};R(Tr,ke=>{r(Mo)&&Je()&&ft()&&ke(Ir)})}var An=M(Tr,2);{var Mn=ke=>{_d(ke,{})};R(An,ke=>{se()&&ke(Mn)})}var ko=M(An,2);{var kr=ke=>{var Tt=_x(),Zt=h(Tt);Nl(Zt,{"aria-label":ai}),g(Tt),b(ke,Tt)};R(ko,ke=>{Me()&&ke(kr)})}var Ro=M(ko,2);{var cr=ke=>{bd(ke,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()}})};R(Ro,ke=>{Y()&&ke(cr)})}var Er=M(Ro,2);{var Pr=ke=>{da(ke,{get shifted(){return w()},get captions(){return ue()},get position(){return V()},get playerSize(){return A()},isMobile:!0})};R(Er,ke=>{N().value!=="off"&&ke(Pr)})}var ur=M(Er,2);{var Yi=ke=>{var Tt=bx();Tt.__click=[vx,O,jt,Pn];var Zt=h(Tt);$d(Zt,{}),g(Tt),b(ke,Tt)};R(ur,ke=>{d()&&ke(Yi)})}var pn=M(ur,2);{var Fr=ke=>{let Tt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Zt=v(()=>n()==="ads"),wi=v(()=>e.canRewindLive&&ge()!==0);hd(ke,{get bottomHidden(){return r(Tt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(Zt)},get canRewindLive(){return r(wi)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ne()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return je()},get nextButtonActive(){return it()},get prevButtonActive(){return ht()},get isOneVideoPlaylist(){return Pt()},get customFullscreenSupported(){return r(Di)},get endScreenShown(){return r(Mo)},toggleFullscreen:Sr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Gn,onDisabledSeekToInteractiveClick:cn,get playerControlsWrapperRef(){return r(Co)},set playerControlsWrapperRef(ti){B(Co,pe(ti))},get playerControlsRef(){return r(wr)},set playerControlsRef(ti){B(wr,pe(ti))}})};R(pn,ke=>{j()&&ke(Fr)})}var pr=M(pn,2);{var st=ke=>{var Tt=$x(),Zt=h(Tt);Sd(Zt,{get supportLink(){return e.supportLink},returnFocus:mx,get ref(){return r(rr)},set ref(wi){B(rr,pe(wi))}}),g(Tt),b(ke,Tt)};R(pr,ke=>{O()&&ke(st)})}var Ht=M(pr,2);let Ai=v(()=>!r(ji));Ul(Ht,{get isLive(){return Qe()},get isHidden(){return r(Ai)},get isPlaying(){return te()},get position(){return V()},get duration(){return H()}});var we=M(Ht,2);{var It=ke=>{ta(ke,{})};R(we,ke=>{r(uo)&&ke(It)})}var pi=M(we,2);{var vi=ke=>{Kl(ke,{})};R(pi,ke=>{Q()&&ke(vi)})}var Eo=M(pi,2);{var li=ke=>{Cd(ke,{onClose:sn,onSelectAutoQuality:()=>{rn("auto"),sn()}})};R(Eo,ke=>{r(Uo)&&ke(li)})}b(rt,Rt)});var Ot=M(vt,2);pt(Ot,rt=>B(Fo,rt),()=>r(Fo)),g(Vo),pt(Vo,rt=>B(So,rt),()=>r(So)),wt("click",Vo,dr,!0),wt("focusin",Vo,Cr,!0),b(t,Vo),z(),o()}at(["click"]);function ru(t){let e="";return Un(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Un(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Un(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Un(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Un(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Un(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Un(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Un(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Un(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Un(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Un(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Un(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Un(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Un(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Sx}from"@vkontakte/videoplayer-shared/es2018";var Cx=L('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Tx={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 wm(t,e){U(e,!0),q(t,Tx);let[i,o]=Be(),n=()=>S(oe,"$playerSize",i),a=()=>S(I,"$isPlaying$",i),s=()=>S(P,"$duration$",i),d=()=>S(G,"$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$:G,isLive$:O,isRewindableLive$:X},ui:{playerSize:oe,controls:Y},actions:{internal:{getVideoElement:fe}}}=Te(),ae=8,Le=J(!1),Ae=pe({}),he=()=>{B(Le,!0)},se=()=>{B(Le,!1)},Me=Sx(Xa,260);qe(()=>{n(),Me(fe(),Y,Ae,r(Le))});let ne=v(()=>a()?on(s()-d()):on(isFinite(s())?s():y()));var N=Cx(),ue=h(N);ma(ue,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ne){C(Ne)}});var ge=M(ue,2);qs(ge,()=>"slot",!1,(Ne,je)=>{Ie(Ne,null,{name:fa})});var Qe=M(ge,2);let te=v(()=>l()!=="thumb"||p());ca(Qe,{get hidden(){return r(te)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Q=M(Qe,2);{var W=Ne=>{da(Ne,{shifted:!1,get captions(){return $()},get position(){return u()},get playerSize(){return n()}})};R(Q,Ne=>{m().value!=="off"&&Ne(W)})}var Ve=M(Q,2),De=h(Ve);Fl(De,{get isLive(){return _()},get isPlaying(){return a()},get time(){return r(ne)}}),g(Ve);var et=M(Ve,2);let Se;var $e=h(et);na($e,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ae,tooltipRightOffset:ae,get ref(){return Ae.timeline},set ref(Ne){Ae.timeline=Ne}}),g(et),g(N),k(Ne=>Se=ee(et,1,"timeline svelte-1qfjf44",null,Se,Ne),[()=>({visible:r(Le)})]),wt("mouseenter",N,he),wt("mouseleave",N,se),b(t,N),z(),o()}var Px=L("<div><!></div>"),Ax={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;
361
362
 
362
363
  /* USER DEFINED COLORS */
363
364
 
@@ -385,11 +386,11 @@ Try switching the\xA0quality to\xA0Auto.`},ih=Q0;var os=new Map;os.set(nh.EN,ih)
385
386
  rgba(0, 0, 0, 0.99) 93.33%,
386
387
  #000 100%
387
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;
388
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}
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;}
389
390
 
390
391
  /* 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 {
391
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);}
392
393
  /* 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);}
393
394
 
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 Sm(t,e){q(e,!0),Q(t,gx);let[i,o]=He(),n=()=>C(Ft,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),p=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),u=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),w=v(e,"subtitles",7),y=v(e,"live",7),S=v(e,"preload",7),k=v(e,"autoplay",7),A=v(e,"volume",7,void 0),P=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),V=v(e,"showAds",7),z=v(e,"adsSlotId",7,void 0),Y=v(e,"adsParams",7,void 0),F=v(e,"adsPreviewParam",7,void 0),j=v(e,"adsAutoplayParam",7,void 0),X=v(e,"duration",7,void 0),oe=v(e,"logoClickable",7),pe=v(e,"logoHidden",7),le=v(e,"isMobile",7),Ve=v(e,"showNextPrevButtons",7,!1),Pe=v(e,"nextButtonActive",7,!1),J=v(e,"prevButtonActive",7,!1),Me=v(e,"endScreenVideoTitle",7,void 0),Z=v(e,"endScreenVideoThumb",7,void 0),B=v(e,"isOneVideoPlaylist",7,!1),Re=v(e,"supportLink",7),ne=v(e,"shadowRootContainer",7,void 0),Ie=v(e,"outerContainerRef",7,void 0),Ne=v(e,"fullScreenTarget",7,void 0),fe=v(e,"failoverHosts",7,void 0),D=v(e,"showMiniTimer",7,!1),de=v(e,"saveRate",7),Ee=v(e,"seekToInteractive",7,g1),Qe=v(e,"playPrevChapter",7,g1),st=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),$e=v(e,"showEndScreen",7,!0),Le=v(e,"keyboardControls",15,void 0),{subscribers:je,stores:ct}=d();wg(p());let ot=qt(),Rt=p().logoLink,nt=s().ui.debugPanelVisible,$t=s().ui.playerSize,Ft=s().state.isLive$,Be=s().state.isInteractive&&ux.device.isAndroid,re=ee(void 0),K=null,se=ee(!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}),Lg(s(),ct),qe(()=>{s().ui.isMobile.set(le())});let he=(U=!1)=>{O(se,!0),U?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Ce=()=>{if(ot.features.qualityDetailsSubMenuEnabled){let U=Jg(s().videoId);if(U)switch(U.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,U.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,U.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(U.quality);break}}else{eh(s().videoId),yp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Kt=hp(s().videoId);Kt&&s().actions.internal.setQuality(Kt)}};function De(U){var ci,ao,lo;let Kt=a()||U;Kt&&s().initVideo({container:r(re),sources:Kt,failoverHosts:fe(),subtitles:w(),volumeMultiplier:st()});let Hi=px.get(kl)==="true";nt.set(Hi),E()>0&&s().actions.external.seekTime(E());let Li=le()?ot.volumeDefault:(ao=(ci=A())!=null?ci:gc())!=null?ao:ot.volumeDefault,ni=(lo=P())!=null?lo:Qg();if(s().actions.external.setVolume(Li),s().actions.external.setMuted(ni),s().getAdmanWrapper().setInitialVolume(ni?0:Li),Ce(),ot.features.saveRate&&de()){let Gi=jg();Gi&&!n()&&s().actions.internal.setPlaybackRate(Gi)}if(Ae()){let Gi=Xg();Gi&&s().actions.internal.setAutoplayNextEnabled(Gi)}s().ui.isAutoplay.set(k()),k()?he():S()&&ot.features.preload&&s().actions.internal.preload()}let ut=U=>{if(window.ResizeObserver){let Kt,Hi;K=new ResizeObserver(fx(Li=>{let ni=Li[0];if(ni.contentBoxSize){let ci=Array.isArray(ni.contentBoxSize)?ni.contentBoxSize[0]:ni.contentBoxSize;Kt=ci.inlineSize,Hi=ci.blockSize}else ni.contentRect&&(Kt=ni.contentRect.width,Hi=ni.contentRect.height);$t.set({width:Kt,height:Hi})},300)),K.observe(U)}$t.set({width:U.clientWidth,height:U.clientHeight})},Ut=()=>{document.hidden&&s().actions.external.stop()};Dt(()=>{var Hi,Li,ni,ci;Be&&document.addEventListener("visibilitychange",Ut),ot.debugLog&&s().actions.internal.startLogging(),ut(r(re));let U=je.map(ao=>ao.init({store:s(),microStores:ct,config:l(),interactiveController:$(),uiConfig:p()})),Kt=()=>{Be&&document.removeEventListener("visibilitychange",Ut),K==null||K.disconnect(),U.forEach(ao=>ao.unsubscribe()),s().destroy()};return((Hi=y())==null?void 0:Hi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Kt):((Li=y())==null?void 0:Li.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Kt):(((ni=y())==null?void 0:ni.status)==="finished"||((ci=y())==null?void 0:ci.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Kt):(De(),Kt)});function Ge(){r(se)?s().actions.external.play():he(!0)}function at(){s().actions.external.pause()}function Xe(U){s().actions.external.setMuted(U)}function Ct(U){le()||U>=0&&U<=1&&s().actions.external.setVolume(U)}function Jt(U){s().actions.internal.seekTime(U,mx.UNKNOWN)}function Ke(U){s().actions.external.seekEpisodeStartTime(U)}function lt(){s().actions.external.returnFocusToEpisodes()}function ei(U){s().actions.external.setPlaybackRate(U)}function Mi(U){s().actions.external.setAutoQualityLimits(U)}let Mo=iu(ot.view);var Oi=vx();et(Oi,Mo);var Lo=h(Oi);{var Vo=U=>{wm(U,{get store(){return s()},uiConfig:ot,get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return k()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return z()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return j()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return pe()},logoTargetUrl:Rt,get nextButtonActive(){return Pe()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Me()},get endScreenVideoThumb(){return Z()},get isOneVideoPlaylist(){return B()},get supportLink(){return Re()},get shadowRootContainer(){return ne()},get outerContainerRef(){return Ie()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Qe()},firstStart:he,seekTime:Jt,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(Kt){O(re,me(Kt))}})},Et=U=>{ym(U,{get store(){return s()},uiConfig:ot,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return u()},get live(){return y()},get autoplay(){return k()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return z()},get adsParams(){return Y()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return j()},get duration(){return X()},get logoClickable(){return oe()},get logoHidden(){return pe()},logoTargetUrl:Rt,get nextButtonActive(){return Pe()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Me()},get endScreenVideoThumb(){return Z()},get isOneVideoPlaylist(){return B()},get supportLink(){return Re()},get shadowRootContainer(){return ne()},get outerContainerRef(){return Ie()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return D()},get playerStarted(){return r(se)},get seekToInteractive(){return Ee()},get playPrevChapter(){return Qe()},firstStart:he,get showEndScreen(){return $e()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(Kt){O(re,me(Kt))},get keyboardControls(){return Le()},set keyboardControls(Kt){Le(Kt)}})};R(Lo,U=>{le()?U(Vo):U(Et,!1)})}g(Oi),b(t,Oi);var gt=W({initVideo:De,play:Ge,pause:at,setMuted:Xe,setVolume:Ct,seekTime:Jt,seekEpisodeStartTime:Ke,returnFocusToEpisodes:lt,setPlaybackRate:ei,setAutoQualityLimits:Mi,get sources(){return a()},set sources(U){a(U)},get store(){return s()},set store(U){s(U)},get microStoresRoot(){return d()},set microStoresRoot(U){d(U)},get videoConfig(){return l()},set videoConfig(U){l(U)},get uiConfig(){return p()},set uiConfig(U){p(U)},get title(){return f()},set title(U){f(U)},get thumbUrl(){return _()},set thumbUrl(U){_(U)},get interactiveContainer(){return u()},set interactiveContainer(U){u(U)},get interactiveController(){return $()},set interactiveController(U){$(U)},get subtitles(){return w()},set subtitles(U){w(U)},get live(){return y()},set live(U){y(U)},get preload(){return S()},set preload(U){S(U)},get autoplay(){return k()},set autoplay(U){k(U)},get volume(){return A()},set volume(U){A(U)},get muted(){return P()},set muted(U){P(U)},get fromTime(){return E()},set fromTime(U){E(U)},get canRewindLive(){return T()},set canRewindLive(U){T(U)},get showAds(){return V()},set showAds(U){V(U)},get adsSlotId(){return z()},set adsSlotId(U){z(U)},get adsParams(){return Y()},set adsParams(U){Y(U)},get adsPreviewParam(){return F()},set adsPreviewParam(U){F(U)},get adsAutoplayParam(){return j()},set adsAutoplayParam(U){j(U)},get duration(){return X()},set duration(U){X(U)},get logoClickable(){return oe()},set logoClickable(U){oe(U)},get logoHidden(){return pe()},set logoHidden(U){pe(U)},get isMobile(){return le()},set isMobile(U){le(U)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(U){Ve(U)},get nextButtonActive(){return Pe()},set nextButtonActive(U){Pe(U)},get prevButtonActive(){return J()},set prevButtonActive(U){J(U)},get endScreenVideoTitle(){return Me()},set endScreenVideoTitle(U){Me(U)},get endScreenVideoThumb(){return Z()},set endScreenVideoThumb(U){Z(U)},get isOneVideoPlaylist(){return B()},set isOneVideoPlaylist(U){B(U)},get supportLink(){return Re()},set supportLink(U){Re(U)},get shadowRootContainer(){return ne()},set shadowRootContainer(U){ne(U)},get outerContainerRef(){return Ie()},set outerContainerRef(U){Ie(U)},get fullScreenTarget(){return Ne()},set fullScreenTarget(U){Ne(U)},get failoverHosts(){return fe()},set failoverHosts(U){fe(U)},get showMiniTimer(){return D()},set showMiniTimer(U){D(U)},get saveRate(){return de()},set saveRate(U){de(U)},get showAutoplayNext(){return Ae()},set showAutoplayNext(U){Ae(U)},get seekToInteractive(){return Ee()},set seekToInteractive(U){Ee(U)},get playPrevChapter(){return Qe()},set playPrevChapter(U){Qe(U)},get volumeMultiplier(){return st()},set volumeMultiplier(U){st(U)},get showEndScreen(){return $e()},set showEndScreen(U){$e(U)},get keyboardControls(){return Le()},set keyboardControls(U){Le(U)}});return o(),gt}var hx=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 Cm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=hx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 Tm(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");Cm(t,{get style(){return r(o)}})}var _x=L('<div class="title svelte-1y9fytq"> </div>'),bx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),$x={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 km(t,e){Q(t,$x);var i=bx(),o=h(i);{var n=d=>{var l=_x(),p=h(l,!0);g(l),I(()=>ve(p,e.title)),b(d,l)};R(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);Tm(d,{get isWhite(){return r(l)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),I(()=>et(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as Kx}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as Qx,InterfaceLanguage as Gx,isNonNullable as Lm,Logger as Yx,Observable as jx,Subscription as S1,once as Zx,InternalsExposure as Xx,skip as Jx}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as C1,isMobile as e5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as t5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as yx,Subscription as xx}from"@vkontakte/videoplayer-shared/es2018";var ou=class{constructor(){this.subscription=new xx,this.logger=new yx,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=ye(e.state.currentPlaybackRate$),n=ye(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 Am,detectEmbed as Ix}from"@vkontakte/videoplayer-shared/es2018";var wx=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 Im(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=wx();let n;var a=h(o);ge(a,()=>{var s;return(s=e.children)!=null?s:ie}),_e(),g(o),I(()=>n=we(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 Sx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Cx={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 Em(t,e){q(e,!0),Q(t,Cx);let[i,o]=He(),n=()=>C(p,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=Se(),d=qt(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,u=m(()=>n()&&_("pip_dummy_title")),$=iu(d.view);var w=Sx();te(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),et(w,$);var y=h(w);let S;var k=h(y);Im(k,{}),g(y);var A=M(y,2),P=h(A,!0);g(A),g(w),I(E=>{S=te(y,1,"dummy-image svelte-1pbsod4",null,S,E),ve(P,r(u))},[()=>({desktop:!a()})]),b(t,w),W(),o()}var Tx=Object.defineProperty,kx=(t,e,i)=>e in t?Tx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xa=(t,e,i)=>kx(t,typeof e!="symbol"?e+"":e,i),Ex=460,Ax=280,Sd=class{constructor({enabled:e=!0}={enabled:!0}){Xa(this,"playerDomElement"),Xa(this,"playerParentShadowRoot"),Xa(this,"playerDummyElement"),Xa(this,"svelteContext"),Xa(this,"pipWindow"),Xa(this,"info",{isActive$:new Am(!1),isEnabled$:new Am(!1),type:1}),this.info.isEnabled$=new Am(e)}isSupported(){let{isEmbed:e}=Ix();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:Ex,height:Ax,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=es(Em,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 h1(t){return t instanceof Sd}var nu=class{static getLatestSupportedVersion(e){let i=new Ys,o=new Sd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function ru(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 _1="Inner error. Unexpectedly root annotation container null reference exception",b1="Annotation with such name already exists",$1="Annotation with such name does not exist";var Ja=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Px,Subscription as Mx,throttleFn as Lx}from"@vkontakte/videoplayer-shared/es2018";var Vx="1",Rx=100,su=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Mx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Lx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Rx);this.subscriptions.add(Px(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 Ja(_1);if(this.annotations.has(e))throw new Ja(b1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Vx,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 Ja($1);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 au,Subscription as Nx}from"@vkontakte/videoplayer-shared/es2018";var Ho=class{init({store:e,microStores:i,interactiveController:o,config:n}){return au(e),au(i),au(n),n.interactiveData&&au(o),this.subscription=new Nx,this.subscription}};var Cd=class extends Ho{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Td=class extends Ho{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ae(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:f}=a.ui,_=ye(f),u=()=>_&&ye(p);return o.add(p.subscribe($=>{if(!_)return;let w=ye(s);ye(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=ye(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var kd=class extends Ho{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(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 Bx}from"@vkontakte/videoplayer-shared/es2018";var Pm=ae(!1),lu=null,Id=class extends Ho{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Pm,set:(i,o=!1)=>{i!==ye(Pm)&&(this.clearTimeout(),Pm.set(i),!i&&lu&&(lu=!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(_=>{ye(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(Bx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:p}).subscribe(({isPlaying$:_,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!_||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&lu===null&&(lu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Dx,noop as Ox}from"@vkontakte/videoplayer-shared/es2018";var Ed=class extends Ho{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:Ox};this.checkIfShouldHide=i=>Ss(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(ye(s)))return;let l=ye(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,u=ye(p),$=ye(f);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),_.remove(cp),!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(cp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(Dx({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 y1}from"@vkontakte/videoplayer-shared/es2018";var Ad=class extends Ho{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new y1(!1),isEnabled$:new y1(!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 Ux,filterChanged as zx}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Mm}from"@vkontakte/videoplayer-shared/es2018";var x1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Hx({maxCount:t}):void 0,e!==0?Fx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Hx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Mm.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}}},Fx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Mm.get(e)||"{}")}catch(a){return{}}},o=a=>Mm.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 Pd=class extends Ho{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=x1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(zx(),Ux(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var w1=()=>[Cd,Td,kd,Id,Ed,Ad,Pd].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 Md}from"@vkontakte/videoplayer-shared/es2018";var qx=Object.defineProperty,Wx=(t,e,i)=>e in t?qx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xt=(t,e,i)=>Wx(t,typeof e!="symbol"?e+"":e,i),i5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Gx.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:e5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},bn=ee(void 0),du=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"shadowRootContainer"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"internalsExposure",null),Xt(this,"shadowDOMCallbacksDisabled",!1),Xt(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:p,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:k,interactiveData:A}=ru(this.videoConfig,i),P=(o=A==null?void 0:A.projectInfo)==null?void 0:o.pid,E=(a=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:T,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&T)return new t5({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:V,refDomain:S,deviceId:k,...P&&(!this.isInited||E)&&{projectId:Number(P)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}),Md.create("ui"),this.logger=new Yx,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new S1,this.interactiveSubscription=new S1,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=me({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=es(km,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(),Md.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,f,_;if(!this.videoConfig)return;let{albumId:u,statPlace:$,statAuthToken:w,preload:y,autoplay:S,volume:k,muted:A,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:z,adsParams:Y={},adsPreviewParam:F,adsAutoplayParam:j,interfaceLanguage:X,isCyrillicRelatedInterface:oe,logoClickable:pe,logoHidden:le,isMobile:Ve,isTouch:Pe,isAudioDisabled:J,isLiveCatchUpMode:Me,fullScreenTarget:Z,failoverHosts:B,canDownload:Re,callbacks:ne,interactiveData:Ie,showThumbTimer:Ne,additionalButtons:fe=[],additionalSettingsMenuItems:D=[],additionalContextMenuItems:de=[],repeat:Ee,saveRate:Qe,volumeMultiplier:st,showEndScreen:Ae,showAutoplayNext:$e}=ru(this.videoConfig,i),{sources:Le,title:je,thumbUrl:ct,unitedVideoId:ot,isClip:Rt=!1,duration:nt,adsParams:$t={},videoEpisodes:Ft,previewThumbsData:Wt,subtitles:Be,live:re}=e,K={...Y,...$t},se=this.getNextVideoInfo(),he={sources:Le,title:je,thumbUrl:ct,subtitles:Be,unitedVideoId:ot,isClip:Rt,live:re,albumId:u,statPlace:$,autoplay:S,muted:A,volume:k,fromTime:P,canRewindLive:E,showAds:V,adsSlotId:z,adsParams:K,adsPreviewParam:F,adsAutoplayParam:j,duration:nt,logoClickable:pe,logoHidden:le,isTouch:Pe!=null?Pe:Ve,repeat:Ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ce={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(he)}`});let De=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),ut=(De==null?void 0:De.oneStat)||this.createOneStat(e,i);ut&&(this.statistics=new Fc(ut,De==null?void 0:De.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Qs(this.uiConfig.sentry,{version:Da,env:fc},{movieId:ot,albumId:u,place:$,autoplay:(a=S&&!this.interactiveController)!=null?a:!1,mobile:Pe!=null?Pe:Ve,clip:Rt}),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 Ge=!!Ie,at=[],Xe="tooltip_interactive_go_back_disabled_first";if(Ge&&this.interactiveController){let lt=this.interactiveController.state.isInitialChapter$.getValue(),ei=this.interactiveController.getHistoryState();lt&&at.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||at.push("SEEK_TO_INTERACTIVE_BUTTON"),ei.hasPrevChapter$.getValue()||(at.push("PLAY_PREV_CHAPTER_BUTTON"),lt||(ei.isGoBackLimited$.getValue()?Xe="tooltip_interactive_go_back_disabled_limit":Xe="tooltip_interactive_go_back_disabled"))}let Ct=()=>{var lt;this.isInited=!1,this.prevIsid=void 0;let ei=(o==null?void 0:o.info.isEnded$.getValue())&&((lt=this.interactiveController)==null?void 0:lt.state.isEndChapter$.getValue());ne.onReplayInteractiveVideo&&!ei?ne.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Fh({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:oe,videoId:ot,isClip:Rt,isLiveCatchUpMode:Me,isAudioDisabled:J,statAuthToken:w,callbacks:ne,webApi:Ce,videoEpisodes:Ft,previewThumbsData:Wt,canDownload:Re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:at,isInteractive:Ge,saveRate:Qe,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Ct,playPrevChapterDisabledTooltip:Xe,hasInteractiveBranches:!!((_=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?fe:[],additionalSettingsMenuItems:D!=null?D:[],additionalContextMenuItems:de!=null?de:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ee&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:Jt}=this.microStoresRoot=w1(),Ke=()=>{var lt,ei,Mi,Mo,Oi,Lo;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Et=>{var gt;return(gt=ne==null?void 0:ne.onCurrentFormatChanged)==null?void 0:gt.call(ne,Et)})),this.subscription.add(Jt.interactiveControlsOpacity$.subscribe(Et=>{var gt;Et!==null&&((gt=this==null?void 0:this.interactiveController)==null||gt.setDisabledControls(Et))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Et=>{var gt;return(gt=ne==null?void 0:ne.onThroughputEstimationChanged)==null?void 0:gt.call(ne,Et)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Et=>{var gt;return(gt=ne==null?void 0:ne.onTrafficSavingEnabledChanged)==null?void 0:gt.call(ne,Et)})),this.subscription.add(new jx(Et=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(gt=>Et.next(gt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?Jx(1):Et=>Et).subscribe(Et=>{var gt;return(gt=ne==null?void 0:ne.onCurrentPlaybackRateChanged)==null?void 0:gt.call(ne,Et)})),this.subscription.add(this.store.state.volume$.subscribe(Et=>{var gt;return(gt=ne==null?void 0:ne.onVolumeChange)==null?void 0:gt.call(ne,Et)})),this.subscription.add(this.store.state.muted$.subscribe(Et=>{var gt,U;return Et?(gt=ne==null?void 0:ne.onMute)==null?void 0:gt.call(ne):(U=ne==null?void 0:ne.onUnmute)==null?void 0:U.call(ne)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Et=>{var gt;return(gt=ne==null?void 0:ne.onVideoBitrateChanged)==null?void 0:gt.call(ne,Et)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Et=>{var gt;let U=(gt=this.store)==null?void 0:gt.ui.controls.disabledControls$;U&&(Et&&!U.includes(Il)&&U.add(Il),Et||U.remove(Il))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Et=>{var gt;if(!C1.browser.isSamsungBrowser||!Et||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((gt=this.videoConfig)==null?void 0:gt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Et=>{var gt;return(gt=ne==null?void 0:ne.onVSIDChanged)==null?void 0:gt.call(ne,Et)})),this.initMediaSession(),O(bn,me({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Le,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:je,thumbUrl:ct,subtitles:Be,live:re,preload:y,autoplay:S,muted:A,volume:k,fromTime:P,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:z,adsParams:K,adsPreviewParam:F,adsAutoplayParam:j,duration:nt,logoClickable:pe,logoHidden:le,isMobile:Pe!=null?Pe:Ve,failoverHosts:B,fullScreenTarget:Z,saveRate:Qe,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ne,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:st,showEndScreen:Ae,showAutoplayNext:$e}));let Vo={target:this.playerContainer,props:r(bn)};this.svelteRootComponent=es(Sm,Vo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Mi=(ei=(lt=this.videoConfig)==null?void 0:lt.callbacks)==null?void 0:ei.onInited)==null||Mi.call(ei)),(Mo=this.internalsExposure)==null||Mo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Lo=(Oi=this.videoConfig)==null?void 0:Oi.callbacks)!=null&&Lo.onDevNullLog)?Md.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Md.destroy("ui")};this.coreConfig.asyncResolveClientChecker?C1.isInited$.subscribe(lt=>{lt&&(console.log("UI SDK async start"),Ke())}):Ke()}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&&Lm(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?ye(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:p,historyApi:f,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:f,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,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation}});let{isInteractiveExpectation$:u,isSeekable$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(y=>{if(!this.isInited)return;let S=this.store;y?S.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):S.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 S=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,S),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:y,actionType:S})=>{var k,A,P,E,T,V;if(!this.store||!this.microStoresRoot)return;let z=u.getValue();if(y==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(El)),y==="action-choice-canceled"){let Y=ye(this.store.state.isPlaying$)||z;if(((P=(k=this.videoConfig)==null?void 0:k.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(V=(E=this.videoConfig)==null?void 0:(T=E.callbacks).onDisabledInteractiveClick)==null||V.call(T)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:y,removeAllOpenURI:S})=>{this.store&&y==="container-fake-removed"&&S&&this.store.ui.controls.disabledControls$.remove(El)})),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(S=>{var k,A,P;S.length&&((P=(A=(k=this.videoConfig)==null?void 0:k.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,S,k,A;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(S=this.videoConfig)==null?void 0:(k=S.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(k)})),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,f,_,u,$,w,y,S,k,A,P,E,T,V,z,Y,F,j,X,oe;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=ru(i5,Qx(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.uiConfig=xg((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.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((d=this.internalsExposure)!=null||(this.internalsExposure=new Xx("UI"))),Md.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:[Kx()]}),Lm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),Lm(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=(S=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isTouch)!=null?S:this.videoConfig.isMobile,(k=this.videoConfig).autoplay&&(k.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(E=this.uiConfig.ads.preview)!=null?E:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(V=this.videoConfig).canRewindLive&&(V.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z: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=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let pe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=nu.getLatestSupportedVersion(pe):this.pictureInPictureApi=new Ys(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ou:void 0,this.slotsApi=this.uiConfig.features.slots?new Jc:void 0,this.annotationsApi=this.uiConfig.features.annotations?new su(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(oe=this.slotsApi)==null||oe.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]),h1(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(bn)&&(r(bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(bn).nextButtonActive=this.isNextButtonActive(),r(bn).prevButtonActive=this.isPrevButtonActive(),r(bn).endScreenVideoTitle=o.nextVideoTitle,r(bn).endScreenVideoThumb=o.nextVideoThumb,r(bn).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)}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(bn)&&(r(bn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(bn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(bn).nextButtonActive=this.isNextButtonActive(),r(bn).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})}setLiveWaitingRecover(){var e;this.log({message:"live waiting"}),(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)}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=ye(this.store.state.positionExact$),s=ye(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(Zx()).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)}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 vZ,VKNumericLanguage as gZ,loadVKLangPack as hZ}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as bZ,VideoFormat as $Z}from"@vkontakte/videoplayer-core/es2018";var aZ=()=>{window.customElements.define("vk-video-player",du)};export{Uc as ControlButtonType,Ur as GridTypes,vZ as InterfaceLanguage,Dl as MenuItemType,Gs as PlayerPhase,Da as VERSION,gZ as VKNumericLanguage,$Z as VideoFormat,bZ as VideoQuality,hZ as loadVKLangPack,aZ as registerPlayerWebComponent};
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 Cm(t,e){U(e,!0),q(t,Ax);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),G=f(e,"adsParams",7,void 0),O=f(e,"adsPreviewParam",7,void 0),X=f(e,"adsAutoplayParam",7,void 0),oe=f(e,"duration",7,void 0),Y=f(e,"logoClickable",7),fe=f(e,"logoHidden",7),ae=f(e,"isMobile",7),Le=f(e,"showNextPrevButtons",7,!1),Ae=f(e,"nextButtonActive",7,!1),he=f(e,"prevButtonActive",7,!1),se=f(e,"endScreenVideoTitle",7,void 0),Me=f(e,"endScreenVideoThumb",7,void 0),ne=f(e,"isOneVideoPlaylist",7,!1),N=f(e,"supportLink",7),ue=f(e,"shadowRootContainer",7,void 0),ge=f(e,"outerContainerRef",7,void 0),Qe=f(e,"fullScreenTarget",7,void 0),te=f(e,"failoverHosts",7,void 0),Q=f(e,"showMiniTimer",7,!1),W=f(e,"saveRate",7),Ve=f(e,"seekToInteractive",7,_1),De=f(e,"playPrevChapter",7,_1),et=f(e,"volumeMultiplier",7),Se=f(e,"showAutoplayNext",7),$e=f(e,"showEndScreen",7,!0),Ne=f(e,"keyboardControls",15,void 0),{subscribers:je,stores:it}=d();Tg(p());let ht=Ut(),Je=p().logoLink,ft=s().ui.debugPanelVisible,Pt=s().ui.playerSize,Wt=s().state.isLive$,At=s().state.isInteractive&&Sm.device.isAndroid,_e=J(void 0),j=null,be=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),qe(()=>{s().ui.isMobile.set(ae())});let re=(Z=!1)=>{B(be,!0),Z?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Re=()=>{if(ht.features.qualityDetailsSubMenuEnabled){let Z=ih(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{oh(s().videoId),yp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Jt=hp(s().videoId);Jt&&s().actions.internal.setQuality(Jt)}};function He(Z){var ci,oi,ct;let Jt=a()||Z;Jt&&s().initVideo({container:r(_e),sources:Jt,failoverHosts:te(),subtitles:w(),volumeMultiplier:et()});let di=Ix.get(Ml)==="true";ft.set(di),A()>0&&s().actions.external.seekTime(A());let Fi=ae()?ht.volumeDefault:(oi=(ci=E())!=null?ci:bc())!=null?oi:ht.volumeDefault,ii=(ct=P())!=null?ct:Yg();if(s().actions.external.setVolume(Fi),s().actions.external.setMuted(ii),s().getAdmanWrapper().setInitialVolume(ii?0:Fi),Re(),ht.features.saveRate&&W()){let lo=Jg();lo&&!n()&&s().actions.internal.setPlaybackRate(lo)}if(Se()){let lo=th();lo&&s().actions.internal.setAutoplayNextEnabled(lo)}s().ui.isAutoplay.set(T()),T()?re():C()&&ht.features.preload&&s().actions.internal.preload()}let ot=Z=>{if(window.ResizeObserver){let Jt,di;j=new ResizeObserver(kx(Fi=>{let ii=Fi[0];if(ii.contentBoxSize){let ci=Array.isArray(ii.contentBoxSize)?ii.contentBoxSize[0]:ii.contentBoxSize;Jt=ci.inlineSize,di=ci.blockSize}else ii.contentRect&&(Jt=ii.contentRect.width,di=ii.contentRect.height);Pt.set({width:Jt,height:di})},300)),j.observe(Z)}Pt.set({width:Z.clientWidth,height:Z.clientHeight})},lt=()=>{document.hidden&&s().actions.external.stop()};Ft(()=>{var di,Fi,ii,ci;At&&document.addEventListener("visibilitychange",lt),ht.debugLog&&s().actions.internal.startLogging(),ot(r(_e));let Z=je.map(oi=>oi.init({store:s(),microStores:it,config:l(),interactiveController:_(),uiConfig:p()})),Jt=()=>{At&&document.removeEventListener("visibilitychange",lt),j==null||j.disconnect(),Z.forEach(oi=>oi.unsubscribe()),s().destroy()};return((di=y())==null?void 0:di.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Jt):((Fi=y())==null?void 0:Fi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Jt):(((ii=y())==null?void 0:ii.status)==="finished"||((ci=y())==null?void 0:ci.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Jt):(He(),Jt)});function Ye(){r(be)?s().actions.external.play():re(!0)}function Ze(){s().actions.external.pause()}function Xe(Z){s().actions.external.setMuted(Z)}function We(){s().actions.external.toggleSubtitle()}function mt(Z){ae()||Z>=0&&Z<=1&&s().actions.external.setVolume(Z)}function ze(Z){s().actions.internal.seekTime(Z,Ex.UNKNOWN)}function dt(Z){s().actions.external.seekEpisodeStartTime(Z)}function jt(){s().actions.external.returnFocusToEpisodes()}function Vi(Z){s().actions.external.setPlaybackRate(Z)}function Ii(Z){s().actions.external.setAutoQualityLimits(Z)}let Hi=ru(ht.view),Ki=l().playerView==="preview";var Qi=Px();let Mt;tt(Qi,Hi);var yt=h(Qi);{var Vt=Z=>{xm(Z,{get store(){return s()},uiConfig:ht,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 G()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return Y()},get logoHidden(){return fe()},logoTargetUrl:Je,get nextButtonActive(){return Ae()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Me()},get isOneVideoPlaylist(){return ne()},get supportLink(){return N()},get shadowRootContainer(){return ue()},get outerContainerRef(){return ge()},get fullScreenTarget(){return Qe()},get showMiniTimer(){return Q()},get playerStarted(){return r(be)},get seekToInteractive(){return Ve()},get playPrevChapter(){return De()},firstStart:re,seekTime:ze,get showEndScreen(){return $e()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(_e)},set videoContainer(Jt){B(_e,pe(Jt))}})},yo=Z=>{var Jt=Ue(),di=ce(Jt);{var Fi=ci=>{wm(ci,{get thumbUrl(){return $()},get outsideDuration(){return oe()},get canRewindLive(){return I()},get videoContainer(){return r(_e)},set videoContainer(oi){B(_e,pe(oi))}})},ii=ci=>{$m(ci,{get store(){return s()},uiConfig:ht,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 G()},get adsPreviewParam(){return O()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return Y()},get logoHidden(){return fe()},logoTargetUrl:Je,get nextButtonActive(){return Ae()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return se()},get endScreenVideoThumb(){return Me()},get isOneVideoPlaylist(){return ne()},get supportLink(){return N()},get shadowRootContainer(){return ue()},get outerContainerRef(){return ge()},get fullScreenTarget(){return Qe()},get showMiniTimer(){return Q()},get playerStarted(){return r(be)},get seekToInteractive(){return Ve()},get playPrevChapter(){return De()},firstStart:re,get showEndScreen(){return $e()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(_e)},set videoContainer(oi){B(_e,pe(oi))},get keyboardControls(){return Ne()},set keyboardControls(oi){Ne(oi)}})};R(di,ci=>{Ki?ci(Fi):ci(ii,!1)})}b(Z,Jt)};R(yt,Z=>{ae()?Z(Vt):Z(yo,!1)})}g(Qi),k(Z=>Mt=ee(Qi,1,"root svelte-7ed4yj",null,Mt,Z),[()=>({"root--miui-browser":Sm.device.isMobile&&Sm.browser.isMiuiBrowser,"visible-outside":Ki})]),b(t,Qi);var nn=z({initVideo:He,play:Ye,pause:Ze,setMuted:Xe,toggleSubtitle:We,setVolume:mt,seekTime:ze,seekEpisodeStartTime:dt,returnFocusToEpisodes:jt,setPlaybackRate:Vi,setAutoQualityLimits:Ii,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 G()},set adsParams(Z){G(Z)},get adsPreviewParam(){return O()},set adsPreviewParam(Z){O(Z)},get adsAutoplayParam(){return X()},set adsAutoplayParam(Z){X(Z)},get duration(){return oe()},set duration(Z){oe(Z)},get logoClickable(){return Y()},set logoClickable(Z){Y(Z)},get logoHidden(){return fe()},set logoHidden(Z){fe(Z)},get isMobile(){return ae()},set isMobile(Z){ae(Z)},get showNextPrevButtons(){return Le()},set showNextPrevButtons(Z){Le(Z)},get nextButtonActive(){return Ae()},set nextButtonActive(Z){Ae(Z)},get prevButtonActive(){return he()},set prevButtonActive(Z){he(Z)},get endScreenVideoTitle(){return se()},set endScreenVideoTitle(Z){se(Z)},get endScreenVideoThumb(){return Me()},set endScreenVideoThumb(Z){Me(Z)},get isOneVideoPlaylist(){return ne()},set isOneVideoPlaylist(Z){ne(Z)},get supportLink(){return N()},set supportLink(Z){N(Z)},get shadowRootContainer(){return ue()},set shadowRootContainer(Z){ue(Z)},get outerContainerRef(){return ge()},set outerContainerRef(Z){ge(Z)},get fullScreenTarget(){return Qe()},set fullScreenTarget(Z){Qe(Z)},get failoverHosts(){return te()},set failoverHosts(Z){te(Z)},get showMiniTimer(){return Q()},set showMiniTimer(Z){Q(Z)},get saveRate(){return W()},set saveRate(Z){W(Z)},get showAutoplayNext(){return Se()},set showAutoplayNext(Z){Se(Z)},get seekToInteractive(){return Ve()},set seekToInteractive(Z){Ve(Z)},get playPrevChapter(){return De()},set playPrevChapter(Z){De(Z)},get volumeMultiplier(){return et()},set volumeMultiplier(Z){et(Z)},get showEndScreen(){return $e()},set showEndScreen(Z){$e(Z)},get keyboardControls(){return Ne()},set keyboardControls(Z){Ne(Z)}});return o(),nn}var Mx=xe('<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 Tm(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Mx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 Im(t,e){let i=f(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");Tm(t,{get style(){return r(o)}})}var Lx=L('<div class="title svelte-1y9fytq"> </div>'),Vx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Rx={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 km(t,e){q(t,Rx);var i=Vx(),o=h(i);{var n=d=>{var l=Lx(),p=h(l,!0);g(l),k(()=>me(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);Im(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 a5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as l5,InterfaceLanguage as d5,isNonNullable as Vm,Logger as c5,Observable as u5,Subscription as T1,once as p5,InternalsExposure as f5,skip as m5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as I1,isMobile as v5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as g5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as Dx,Subscription as Nx}from"@vkontakte/videoplayer-shared/es2018";var su=class{constructor(){this.subscription=new Nx,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=Ce(e.state.currentPlaybackRate$),n=Ce(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 Am,detectEmbed as zx}from"@vkontakte/videoplayer-shared/es2018";var Bx=xe('<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 Em(t,e){let i=Pe(e,["$$slots","$$events","$$legacy","children"]);var o=Bx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:ie}),ye(),g(o),k(()=>n=Ie(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 Ox=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Hx={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 Pm(t,e){U(e,!0),q(t,Hx);let[i,o]=Be(),n=()=>S(p,"$interfaceLanguage$",i),a=()=>S(m,"$isMobile$",i),s=Te(),d=Ut(),l=!!s.webApi.pictureInPictureApi,p=s.interfaceLanguage$,m=s.ui.isMobile,$=s.ui.t,u=v(()=>n()&&$("pip_dummy_title")),_=ru(d.view);var w=Ox();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);Em(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),me(P,r(u))},[()=>({desktop:!a()})]),b(t,w),z(),o()}var Fx=Object.defineProperty,Ux=(t,e,i)=>e in t?Fx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,il=(t,e,i)=>Ux(t,typeof e!="symbol"?e+"":e,i),qx=460,Wx=280,Id=class{constructor({enabled:e=!0}={enabled:!0}){il(this,"playerDomElement"),il(this,"playerParentShadowRoot"),il(this,"playerDummyElement"),il(this,"svelteContext"),il(this,"pipWindow"),il(this,"info",{isActive$:new Am(!1),isEnabled$:new Am(!1),type:1}),this.info.isEnabled$=new Am(e)}isSupported(){let{isEmbed:e}=zx();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:qx,height:Wx,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=Zr(Pm,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 b1(t){return t instanceof Id}var au=class{static getLatestSupportedVersion(e){let i=new js(e),o=new Id(e);if(o.isSupported())return o;if(i.isSupported())return i}};function lu(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 $1="Inner error. Unexpectedly root annotation container null reference exception",y1="Annotation with such name already exists",x1="Annotation with such name does not exist";var ol=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Kx,Subscription as Qx,throttleFn as Gx}from"@vkontakte/videoplayer-shared/es2018";var jx="1",Yx=100,du=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Qx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Gx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Yx);this.subscriptions.add(Kx(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new ol($1);if(this.annotations.has(e))throw new ol(y1);i.style.zIndex=(o=i.style.zIndex)!=null?o:jx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new ol(x1);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 Zx}from"@vkontakte/videoplayer-shared/es2018";var Oo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return cu(e),cu(i),cu(n),n.interactiveData&&cu(o),this.subscription=new Zx,this.subscription}};var kd=class extends Oo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...de(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 Oo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...de(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,$=Ce(m),u=()=>$&&Ce(p);return o.add(p.subscribe(_=>{if(!$)return;let w=Ce(s);Ce(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=Ce(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!_)})),o}};var Pd=class extends Oo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=de("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 Xx}from"@vkontakte/videoplayer-shared/es2018";var Mm=de(!1),uu=null,Ad=class extends Oo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Mm,set:(i,o=!1)=>{i!==Ce(Mm)&&(this.clearTimeout(),Mm.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($=>{Ce(s)&&$&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(Xx({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 Jx,noop as e5}from"@vkontakte/videoplayer-shared/es2018";var Md=class extends Oo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...de(null),toggle:e5};this.checkIfShouldHide=i=>xs(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(Ce(s)))return;let l=Ce(this.state$),{isEnded$:p,playbackState$:m}=n.state,{disabledControls$:$}=n.ui.controls,u=Ce(p),_=Ce(m);if(l)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),$.remove(cp),!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(cp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(Jx({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 w1}from"@vkontakte/videoplayer-shared/es2018";var Ld=class extends Oo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:de(!1),isEnabled$:de(!1),type$:de(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 w1(!1),isEnabled$:new w1(!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 o5,filterChanged as n5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as Lm}from"@vkontakte/videoplayer-shared/es2018";var S1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?t5({maxCount:t}):void 0,e!==0?i5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},t5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Lm.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}}},i5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Lm.get(e)||"{}")}catch(a){return{}}},o=a=>Lm.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 Oo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:de({}),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=S1({maxShowCount:a,timeout:s});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(n5(),o5(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 C1=()=>[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 r5=Object.defineProperty,s5=(t,e,i)=>e in t?r5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xt=(t,e,i)=>s5(t,typeof e!="symbol"?e+"":e,i),h5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:d5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:v5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},$n=J(void 0),pu=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"shadowRootContainer"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"internalsExposure",null),Xt(this,"shadowDOMCallbacksDisabled",!1),Xt(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}=lu(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 g5({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}})}),Rd.create("ui"),this.logger=new c5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new T1,this.interactiveSubscription=new T1,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(km,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,$;if(!this.videoConfig)return;let{albumId:u,statPlace:_,statAuthToken:w,preload:y,autoplay:C,volume:T,muted:E,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:H,adsParams:G={},adsPreviewParam:O,adsAutoplayParam:X,interfaceLanguage:oe,isCyrillicRelatedInterface:Y,logoClickable:fe,logoHidden:ae,isMobile:Le,isTouch:Ae,isAudioDisabled:he,isLiveCatchUpMode:se,fullScreenTarget:Me,failoverHosts:ne,canDownload:N,callbacks:ue,interactiveData:ge,showThumbTimer:Qe,additionalButtons:te=[],additionalSettingsMenuItems:Q=[],additionalContextMenuItems:W=[],repeat:Ve,saveRate:De,volumeMultiplier:et,showEndScreen:Se,showAutoplayNext:$e}=lu(this.videoConfig,i),{sources:Ne,title:je,thumbUrl:it,unitedVideoId:ht,isClip:Je=!1,duration:ft,adsParams:Pt={},videoEpisodes:Wt,previewThumbsData:Kt,subtitles:At,live:_e}=e,j={...G,...Pt},be=this.getNextVideoInfo(),re={sources:Ne,title:je,thumbUrl:it,subtitles:At,unitedVideoId:ht,isClip:Je,live:_e,albumId:u,statPlace:_,autoplay:C,muted:E,volume:T,fromTime:P,canRewindLive:A,showAds:V,adsSlotId:H,adsParams:j,adsPreviewParam:O,adsAutoplayParam:X,duration:ft,logoClickable:fe,logoHidden:ae,isTouch:Ae!=null?Ae:Le,repeat:Ve,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Re={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(re)}`});let He=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),ot=(He==null?void 0:He.oneStat)||this.createOneStat(e,i);ot&&(this.statistics=new Wc(ot,He==null?void 0:He.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Gs(this.uiConfig.sentry,{version:Fa,env:gc},{movieId:ht,albumId:u,place:_,autoplay:(a=C&&!this.interactiveController)!=null?a:!1,mobile:Ae!=null?Ae:Le,clip:Je}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Gs.getInstance()};let Ye=!!ge,Ze=[],Xe="tooltip_interactive_go_back_disabled_first";if(Ye&&this.interactiveController){let dt=this.interactiveController.state.isInitialChapter$.getValue(),jt=this.interactiveController.getHistoryState();dt&&Ze.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ze.push("SEEK_TO_INTERACTIVE_BUTTON"),jt.hasPrevChapter$.getValue()||(Ze.push("PLAY_PREV_CHAPTER_BUTTON"),dt||(jt.isGoBackLimited$.getValue()?Xe="tooltip_interactive_go_back_disabled_limit":Xe="tooltip_interactive_go_back_disabled"))}let We=()=>{var dt;this.isInited=!1,this.prevIsid=void 0;let jt=(o==null?void 0:o.info.isEnded$.getValue())&&((dt=this.interactiveController)==null?void 0:dt.state.isEndChapter$.getValue());ue.onReplayInteractiveVideo&&!jt?ue.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=zh({player:o,interfaceLanguage:oe,isCyrillicRelatedInterface:Y,videoId:ht,isClip:Je,isLiveCatchUpMode:se,isAudioDisabled:he,statAuthToken:w,callbacks:ue,webApi:Re,videoEpisodes:Wt,previewThumbsData:Kt,canDownload:N,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ze,isInteractive:Ye,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:We,playPrevChapterDisabledTooltip:Xe,hasInteractiveBranches:!!(($=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?te:[],additionalSettingsMenuItems:Q!=null?Q:[],additionalContextMenuItems:W!=null?W:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ve&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:mt}=this.microStoresRoot=C1(),ze=()=>{var dt,jt,Vi,Ii,Hi,Ki;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Mt=>{var yt;return(yt=ue==null?void 0:ue.onCurrentFormatChanged)==null?void 0:yt.call(ue,Mt)})),this.subscription.add(mt.interactiveControlsOpacity$.subscribe(Mt=>{var yt;Mt!==null&&((yt=this==null?void 0:this.interactiveController)==null||yt.setDisabledControls(Mt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Mt=>{var yt;return(yt=ue==null?void 0:ue.onThroughputEstimationChanged)==null?void 0:yt.call(ue,Mt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Mt=>{var yt;return(yt=ue==null?void 0:ue.onTrafficSavingEnabledChanged)==null?void 0:yt.call(ue,Mt)})),this.subscription.add(new u5(Mt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(yt=>Mt.next(yt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?m5(1):Mt=>Mt).subscribe(Mt=>{var yt;return(yt=ue==null?void 0:ue.onCurrentPlaybackRateChanged)==null?void 0:yt.call(ue,Mt)})),this.subscription.add(this.store.state.volume$.subscribe(Mt=>{var yt;return(yt=ue==null?void 0:ue.onVolumeChange)==null?void 0:yt.call(ue,Mt)})),this.subscription.add(this.store.state.muted$.subscribe(Mt=>{var yt,Vt;return Mt?(yt=ue==null?void 0:ue.onMute)==null?void 0:yt.call(ue):(Vt=ue==null?void 0:ue.onUnmute)==null?void 0:Vt.call(ue)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Mt=>{var yt;return(yt=ue==null?void 0:ue.onVideoBitrateChanged)==null?void 0:yt.call(ue,Mt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Mt=>{var yt;let Vt=(yt=this.store)==null?void 0:yt.ui.controls.disabledControls$;Vt&&(Mt&&!Vt.includes(Ll)&&Vt.add(Ll),Mt||Vt.remove(Ll))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Mt=>{var yt;if(!I1.browser.isSamsungBrowser||!Mt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((yt=this.videoConfig)==null?void 0:yt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Mt=>{var yt;return(yt=ue==null?void 0:ue.onVSIDChanged)==null?void 0:yt.call(ue,Mt)})),this.initMediaSession(),B($n,pe({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ne,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:je,thumbUrl:it,subtitles:At,live:_e,preload:y,autoplay:C,muted:E,volume:T,fromTime:P,canRewindLive:A,supportLink:I,showAds:V,adsSlotId:H,adsParams:j,adsPreviewParam:O,adsAutoplayParam:X,duration:ft,logoClickable:fe,logoHidden:ae,isMobile:Ae!=null?Ae:Le,failoverHosts:ne,fullScreenTarget:Me,saveRate:De,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Qe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:et,showEndScreen:Se,showAutoplayNext:$e}));let Qi={target:this.playerContainer,props:r($n)};this.svelteRootComponent=Zr(Cm,Qi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Vi=(jt=(dt=this.videoConfig)==null?void 0:dt.callbacks)==null?void 0:jt.onInited)==null||Vi.call(jt)),(Ii=this.internalsExposure)==null||Ii.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ki=(Hi=this.videoConfig)==null?void 0:Hi.callbacks)!=null&&Ki.onDevNullLog)?Rd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Rd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?I1.isInited$.subscribe(dt=>{dt&&(console.log("UI SDK async start"),ze())}):ze()}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&&Vm(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?Ce(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(Vl)),y==="action-choice-canceled"){let G=Ce(this.store.state.isPlaying$)||H;if(((P=(T=this.videoConfig)==null?void 0:T.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&G){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(Vl)})),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,G,O,X,oe,Y;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=lu(h5,l5(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.uiConfig=Cg((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 f5("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:[a5()]}),Vm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),Vm(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=(G=this.uiConfig.features.endScreen)!=null?G: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&&((oe=this.videoConfig.videos)!=null&&oe[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=au.getLatestSupportedVersion(fe):this.pictureInPictureApi=new js(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new su:void 0,this.slotsApi=this.uiConfig.features.slots?new iu: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]),b1(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($n)&&(r($n).showNextPrevButtons=this.needToShowNextPrevButtons(),r($n).nextButtonActive=this.isNextButtonActive(),r($n).prevButtonActive=this.isPrevButtonActive(),r($n).endScreenVideoTitle=o.nextVideoTitle,r($n).endScreenVideoThumb=o.nextVideoThumb,r($n).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($n)&&(r($n).needToRepeatPlaylist=this.needToRepeatPlaylist,r($n).showNextPrevButtons=this.needToShowNextPrevButtons(),r($n).nextButtonActive=this.isNextButtonActive(),r($n).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=Ce(this.store.state.positionExact$),s=Ce(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(p5()).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)}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 tX,VKNumericLanguage as iX,loadVKLangPack as oX}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as rX,VideoFormat as sX}from"@vkontakte/videoplayer-core/es2018";var QZ=()=>{window.customElements.define("vk-video-player",pu)};export{Kc as ControlButtonType,Br as GridTypes,tX as InterfaceLanguage,ql as MenuItemType,ts as PlayerPhase,Fa as VERSION,iX as VKNumericLanguage,sX as VideoFormat,rX as VideoQuality,oX as loadVKLangPack,QZ as registerPlayerWebComponent};