@vkontakte/videoplayer 1.1.61-dev.4affc441.0 → 1.1.61-dev.7a92fe9e.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/es2015.esm.js CHANGED
@@ -1,63 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.61-dev.4affc441.0
3
- * Tue, 15 Apr 2025 00:54:52 GMT
2
+ * @vkontakte/videoplayer v1.1.61-dev.7a92fe9e.0
3
+ * Wed, 16 Apr 2025 14:06:57 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-61/doc/
5
5
  */
6
- var N1=Object.defineProperty,D1=Object.defineProperties;var O1=Object.getOwnPropertyDescriptors;var Um=Object.getOwnPropertySymbols;var H1=Object.prototype.hasOwnProperty,F1=Object.prototype.propertyIsEnumerable;var zm=t=>{throw TypeError(t)};var hu=(t,e,i)=>e in t?N1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))H1.call(e,i)&&hu(t,i,e[i]);if(Um)for(var i of Um(e))F1.call(e,i)&&hu(t,i,e[i]);return t},At=(t,e)=>D1(t,O1(e));var Un=(t,e,i)=>hu(t,typeof e!="symbol"?e+"":e,i),_u=(t,e,i)=>e.has(t)||zm("Cannot "+i);var Ii=(t,e,i)=>(_u(t,e,"read from private field"),i?i.call(t):e.get(t)),fs=(t,e,i)=>e.has(t)?zm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ga=(t,e,i,o)=>(_u(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),qm=(t,e,i)=>(_u(t,e,"access private method"),i);var St=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())});var ms="[",Ls="[!",Vs="]",Yr={};var ki=Symbol(),vi=Symbol("filename"),Km=Symbol("hmr"),Wm="http://www.w3.org/1999/xhtml",bu="http://www.w3.org/2000/svg";var zd=!0;var Qm,Gm,$u=(Gm=(Qm=globalThis.process)==null?void 0:Qm.env)==null?void 0:Gm.NODE_ENV;$u||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Ie=$u&&!$u.toLowerCase().includes("prod");var zo=Symbol("$state"),jr=Symbol("$state metadata"),ll=Symbol("legacy props"),Ym=Symbol("");var xr=Array.isArray,jm=Array.prototype.indexOf,dl=Array.from,yu=Object.keys,to=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,qd=Object.getOwnPropertyDescriptors,xu=Object.prototype,Zm=Array.prototype,Zr=Object.getPrototypeOf;function vs(t){return typeof t=="function"}var oe=()=>{};function Xm(t){return t()}function gs(t){for(var e=0;e<t.length;e++)t[e]()}var cl=[],wu=[];function Jm(){var t=cl;cl=[],gs(t)}function U1(){var t=wu;wu=[],gs(t)}function on(t){cl.length===0&&queueMicrotask(Jm),cl.push(t)}function Su(){cl.length>0&&Jm(),wu.length>0&&U1()}function Kd(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 ev(t,e){return t!==e}function _a(t){return!ha(t,this.v)}function tv(){if(Ie){let t=new Error(`derived_references_self
6
+ var D1=Object.defineProperty,O1=Object.defineProperties;var H1=Object.getOwnPropertyDescriptors;var Km=Object.getOwnPropertySymbols;var F1=Object.prototype.hasOwnProperty,U1=Object.prototype.propertyIsEnumerable;var Wm=t=>{throw TypeError(t)};var wu=(t,e,i)=>e in t?D1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))F1.call(e,i)&&wu(t,i,e[i]);if(Km)for(var i of Km(e))U1.call(e,i)&&wu(t,i,e[i]);return t},Nt=(t,e)=>O1(t,H1(e));var Mn=(t,e,i)=>wu(t,typeof e!="symbol"?e+"":e,i),Su=(t,e,i)=>e.has(t)||Wm("Cannot "+i);var ki=(t,e,i)=>(Su(t,e,"read from private field"),i?i.call(t):e.get(t)),ms=(t,e,i)=>e.has(t)?Wm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),_a=(t,e,i,o)=>(Su(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Qm=(t,e,i)=>(Su(t,e,"access private method"),i);var Ct=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())});var vs="[",Vs="[!",Rs="]",Yr={};var Ei=Symbol(),fi=Symbol("filename"),Gm=Symbol("hmr"),Ym="http://www.w3.org/1999/xhtml",Cu="http://www.w3.org/2000/svg";var Gd=!0;var jm,Zm,Tu=(Zm=(jm=globalThis.process)==null?void 0:jm.env)==null?void 0:Zm.NODE_ENV;Tu||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Ie=Tu&&!Tu.toLowerCase().includes("prod");var Ho=Symbol("$state"),jr=Symbol("$state metadata"),dl=Symbol("legacy props"),Xm=Symbol("");var yr=Array.isArray,Jm=Array.prototype.indexOf,cl=Array.from,Iu=Object.keys,to=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Yd=Object.getOwnPropertyDescriptors,ku=Object.prototype,ev=Array.prototype,Zr=Object.getPrototypeOf;function gs(t){return typeof t=="function"}var oe=()=>{};function tv(t){return t()}function hs(t){for(var e=0;e<t.length;e++)t[e]()}var ul=[],Eu=[];function iv(){var t=ul;ul=[],hs(t)}function z1(){var t=Eu;Eu=[],hs(t)}function Xo(t){ul.length===0&&queueMicrotask(iv),ul.push(t)}function Pu(){ul.length>0&&iv(),Eu.length>0&&z1()}function jd(t){return t===this.v}function ba(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ov(t,e){return t!==e}function $a(t){return!ba(t,this.v)}function nv(){if(Ie){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 iv(t){if(Ie){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 rv(t){if(Ie){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 ov(){if(Ie){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 nv(t){if(Ie){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 sv(){if(Ie){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 av(t){if(Ie){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 rv(){if(Ie){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 lv(){if(Ie){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 sv(){if(Ie){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 dv(){if(Ie){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 av(){if(Ie){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 lv(t){if(Ie){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 cv(){if(Ie){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 uv(t){if(Ie){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 dv(t){if(Ie){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 pv(t){if(Ie){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 cv(t){if(Ie){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 fv(t){if(Ie){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 uv(){if(Ie){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 pv(){if(Ie){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 fv(){if(Ie){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 mv(){if(Ie){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 Or=!1,Hr=!1;function vv(){Or=!0}var ul=null;function Xr(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 mv(){if(Ie){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 vv(){if(Ie){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 gv(){if(Ie){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 hv(){if(Ie){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 Dr=!1,Or=!1;function _v(){Dr=!0}var pl=null;function Xr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
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 Rs=new Set,ba=new Map;function ku(t){Rs=t}function Di(t,e){var i={f:0,v:t,reactions:null,equals:Kd,rv:0,wv:0};return Ie&&Hr&&(i.created=e!=null?e:Xr("CreatedAt"),i.debug=null),i}function te(t){return z1(Di(t))}function es(t,e=!1){var o,n;let i=Di(t);return e||(i.equals=_a),Or&&Tt!==null&&Tt.l!==null&&((n=(o=Tt.l).s)!=null?n:o.s=[]).push(i),i}function z1(t){return Rt!==null&&!Kn&&(Rt.f&2)!==0&&(wr===null?_v([t]):wr.push(t)),t}function O(t,e){return Rt!==null&&!Kn&&Fr()&&(Rt.f&18)!==0&&(wr===null||!wr.includes(t))&&mv(),$a(t,e)}function $a(t,e){var o;if(!t.equals(e)){var i=t.v;if(Ns?ba.set(t,e):ba.set(t,i),t.v=e,t.wv=fl(),Ie&&Hr&&(t.updated=Xr("UpdatedAt"),$t!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),hv(t,2048),Fr()&&$t!==null&&($t.f&1024)!==0&&($t.f&96)===0&&(qn===null?bv([t]):qn.push(t)),Ie&&Rs.size>0){let n=Array.from(Rs);for(let a of n)(a.f&1024)!==0&&sn(a,4096),hs(a)&&ya(a);Rs.clear()}}return e}function hv(t,e){var i=t.reactions;if(i!==null)for(var o=Fr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===$t)){if(Ie&&(d&262144)!==0){Rs.add(s);continue}sn(s,e),(d&1280)!==0&&((d&2)!==0?hv(s,4096):xa(s))}}}function m(t){var e=2050,i=Rt!==null&&(Rt.f&2)!==0?Rt:null;$t===null||i!==null&&(i.f&256)!==0?e|=256:$t.f|=1048576;let o={ctx:Tt,deps:null,effects:null,equals:Kd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:$t};return Ie&&Hr&&(o.created=Xr("CreatedAt")),o}function Cr(t){let e=m(t);return e.equals=_a,e}function Wd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)oo(e[i])}}var Eu=[];function q1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function K1(t){var e,i=$t;if(io(q1(t)),Ie){let o=Rs;ku(new Set);try{Eu.includes(t)&&tv(),Eu.push(t),Wd(t),e=Qd(t)}finally{io(i),ku(o),Eu.pop()}}else try{Wd(t),e=Qd(t)}finally{io(i)}return e}function Au(t){var e=K1(t),i=(ts||(t.f&256)!==0)&&t.deps!==null?4096:1024;sn(t,i),t.equals(e)||(t.v=e,t.wv=fl())}var Ds="font-weight: bold",Os="font-weight: normal";function $v(t,e,i){Ie?console.warn(`%c[svelte] hydration_attribute_changed
25
+ `)}),to(e,"name",{value:`${t}Error`})}return e}var Ns=new Set,ya=new Map;function Vu(t){Ns=t}function Bi(t,e){var i={f:0,v:t,reactions:null,equals:jd,rv:0,wv:0};return Ie&&Or&&(i.created=e!=null?e:Xr("CreatedAt"),i.debug=null),i}function te(t){return q1(Bi(t))}function es(t,e=!1){var o,n;let i=Bi(t);return e||(i.equals=$a),Dr&&Tt!==null&&Tt.l!==null&&((n=(o=Tt.l).s)!=null?n:o.s=[]).push(i),i}function q1(t){return Ot!==null&&!Rn&&(Ot.f&2)!==0&&(xr===null?yv([t]):xr.push(t)),t}function O(t,e){return Ot!==null&&!Rn&&Hr()&&(Ot.f&18)!==0&&(xr===null||!xr.includes(t))&&hv(),xa(t,e)}function xa(t,e){var o;if(!t.equals(e)){var i=t.v;if(Ds?ya.set(t,e):ya.set(t,i),t.v=e,t.wv=ml(),Ie&&Or&&(t.updated=Xr("UpdatedAt"),xt!=null&&(t.trace_need_increase=!0,(o=t.trace_v)!=null||(t.trace_v=i))),$v(t,2048),Hr()&&xt!==null&&(xt.f&1024)!==0&&(xt.f&96)===0&&(Vn===null?xv([t]):Vn.push(t)),Ie&&Ns.size>0){let n=Array.from(Ns);for(let a of n)(a.f&1024)!==0&&tn(a,4096),_s(a)&&wa(a);Ns.clear()}}return e}function $v(t,e){var i=t.reactions;if(i!==null)for(var o=Hr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===xt)){if(Ie&&(d&262144)!==0){Ns.add(s);continue}tn(s,e),(d&1280)!==0&&((d&2)!==0?$v(s,4096):Sa(s))}}}function m(t){var e=2050,i=Ot!==null&&(Ot.f&2)!==0?Ot:null;xt===null||i!==null&&(i.f&256)!==0?e|=256:xt.f|=1048576;let o={ctx:Tt,deps:null,effects:null,equals:jd,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xt};return Ie&&Or&&(o.created=Xr("CreatedAt")),o}function Sr(t){let e=m(t);return e.equals=$a,e}function Zd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)oo(e[i])}}var Ru=[];function K1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function W1(t){var e,i=xt;if(io(K1(t)),Ie){let o=Ns;Vu(new Set);try{Ru.includes(t)&&nv(),Ru.push(t),Zd(t),e=Xd(t)}finally{io(i),Vu(o),Ru.pop()}}else try{Zd(t),e=Xd(t)}finally{io(i)}return e}function Bu(t){var e=W1(t),i=(ts||(t.f&256)!==0)&&t.deps!==null?4096:1024;tn(t,i),t.equals(e)||(t.v=e,t.wv=ml())}var Os="font-weight: bold",Hs="font-weight: normal";function wv(t,e,i){Ie?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`,Ds,Os):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function yv(t){Ie?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,Os,Hs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Sv(t){Ie?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`,Ds,Os):console.warn("https://svelte.dev/e/hydration_html_changed")}function Hs(t){Ie?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,Os,Hs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Fs(t){Ie?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`,Ds,Os):console.warn("https://svelte.dev/e/hydration_mismatch")}function xv(){Ie?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,Os,Hs):console.warn("https://svelte.dev/e/hydration_mismatch")}function Cv(){Ie?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`,Ds,Os):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function wv(t,e,i){Ie?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,Os,Hs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Tv(t,e,i){Ie?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`,Ds,Os):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Mu(t,e){Ie?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,Os,Hs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Du(t,e){Ie?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`,Ds,Os):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Gd(t){Ie?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,Os,Hs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Jd(t){Ie?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`,Ds,Os):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ye=!1;function no(t){Ye=t}var pt;function gi(t){if(t===null)throw Hs(),Yr;return pt=t}function Li(){return gi(Lo(pt))}function g(t){if(Ye){if(Lo(pt)!==null)throw Hs(),Yr;pt=t}}function be(t=1){if(Ye){for(var e=t,i=pt;e--;)i=Lo(i);pt=i}}function wa(){for(var t=0,e=pt;;){if(e.nodeType===8){var i=e.data;if(i===Vs){if(t===0)return e;t-=1}else(i===ms||i===Ls)&&(t+=1)}var o=Lo(e);e.remove(),e=o}}function _e(t,e=null,i){var u,f;var o=null;if(Ie&&Hr&&(o=Xr("CreatedAt")),typeof t!="object"||t===null||zo in t)return t;let n=Zr(t);if(n!==xu&&n!==Zm)return t;var a=new Map,s=xr(t),d=Di(0);s&&a.set("length",Di(t.length,o));var l;if(Ie)if(l={parent:e,owners:null},i){let _=(f=(u=i.v)==null?void 0:u[jr])==null?void 0:f.owners;l.owners=_?new Set(_):null}else l.owners=e===null?Tt!==null?new Set([Tt.function]):null:new Set;return new Proxy(t,{defineProperty(_,p,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&uv();var w=a.get(p);return w===void 0?(w=Di($.value,o),a.set(p,w)):O(w,_e($.value,l)),!0},deleteProperty(_,p){var $=a.get(p);if($===void 0)p in _&&a.set(p,Di(ki,o));else{if(s&&typeof p=="string"){var w=a.get("length"),y=Number(p);Number.isInteger(y)&&y<w.v&&O(w,y)}O($,ki),Sv(d)}return!0},get(_,p,$){var P;if(Ie&&p===jr)return l;if(p===zo)return t;var w=a.get(p),y=p in _;if(w===void 0&&(!y||(P=zn(_,p))!=null&&P.writable)&&(w=Di(_e(y?_[p]:ki,l),o),a.set(p,w)),w!==void 0){var S=r(w);if(Ie){var I=S==null?void 0:S[jr];I&&(I==null?void 0:I.parent)!==l&&Lu(l,I)}return S===ki?void 0:S}return Reflect.get(_,p,$)},getOwnPropertyDescriptor(_,p){var $=Reflect.getOwnPropertyDescriptor(_,p);if($&&"value"in $){var w=a.get(p);w&&($.value=r(w))}else if($===void 0){var y=a.get(p),S=y==null?void 0:y.v;if(y!==void 0&&S!==ki)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return $},has(_,p){var S;if(Ie&&p===jr||p===zo)return!0;var $=a.get(p),w=$!==void 0&&$.v!==ki||Reflect.has(_,p);if($!==void 0||$t!==null&&(!w||(S=zn(_,p))!=null&&S.writable)){$===void 0&&($=Di(w?_e(_[p],l):ki,o),a.set(p,$));var y=r($);if(y===ki)return!1}return w},set(_,p,$,w){var z;var y=a.get(p),S=p in _;if(s&&p==="length")for(var I=$;I<y.v;I+=1){var P=a.get(I+"");P!==void 0?O(P,ki):I in _&&(P=Di(ki,o),a.set(I+"",P))}if(y===void 0?(!S||(z=zn(_,p))!=null&&z.writable)&&(y=Di(void 0,o),O(y,_e($,l)),a.set(p,y)):(S=y.v!==ki,O(y,_e($,l))),Ie){var A=$==null?void 0:$[jr];A&&(A==null?void 0:A.parent)!==l&&Lu(l,A),Cv(l)}var E=Reflect.getOwnPropertyDescriptor(_,p);if(E!=null&&E.set&&E.set.call(w,$),!S){if(s&&typeof p=="string"){var T=a.get("length"),R=Number(p);Number.isInteger(R)&&R>=T.v&&O(T,R+1)}Sv(d)}return!0},ownKeys(_){r(d);var p=Reflect.ownKeys(_).filter(y=>{var S=a.get(y);return S===void 0||S.v!==ki});for(var[$,w]of a)w.v!==ki&&!($ in _)&&p.push($);return p},setPrototypeOf(){pv()}})}function Sv(t,e=1){O(t,t.v+e)}function Yd(t){return t!==null&&typeof t=="object"&&zo in t?t[zo]:t}function Tv(){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){Gd("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){Gd("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){Gd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Fs,Iv,ml,kv,Ev;function jd(){if(Fs===void 0){Fs=window,Iv=document,ml=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;kv=zn(e,"firstChild").get,Ev=zn(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,Ie&&(t.__svelte_meta=null,Tv())}}function an(t=""){return document.createTextNode(t)}function hi(t){return kv.call(t)}function Lo(t){return Ev.call(t)}function h(t,e){if(!Ye)return hi(t);var i=hi(pt);if(i===null)i=pt.appendChild(an());else if(e&&i.nodeType!==3){var o=an();return i==null||i.before(o),gi(o),o}return gi(i),i}function he(t,e){var n,a;if(!Ye){var i=hi(t);return i.nodeType===8&&i.data===""?Lo(i):i}if(e&&((n=pt)==null?void 0:n.nodeType)!==3){var o=an();return(a=pt)==null||a.before(o),gi(o),o}return pt}function M(t,e=1,i=!1){let o=Ye?pt:t;for(var n;e--;)n=o,o=Lo(o);if(!Ye)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=an();return o===null?n==null||n.after(s):o.before(s),gi(s),s}return gi(o),o}function vl(t){t.textContent=""}var Pv=new WeakSet,Zd=!1,_l=!1,gl=null,Us=!1,Ns=!1;function Bu(t){Ns=t}var hl=[],Jd=[],Rt=null,Kn=!1;function _o(t){Rt=t}var $t=null;function io(t){$t=t}var wr=null;function _v(t){wr=t}var ln=null,Qn=0,qn=null;function bv(t){qn=t}var Rv=1,ec=0,ts=!1,pl=null;function fl(){return++Rv}function hs(t){var _,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&$t!==null&&!ts,l=i.length;if(s||d){var u=t,f=u.parent;for(n=0;n<l;n++)a=i[n],(s||!((_=a==null?void 0:a.reactions)!=null&&_.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);s&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],hs(a)&&Au(a),a.wv>t.wv)return!0}(!o||$t!==null&&!ts)&&sn(t,1024)}return!1}function Av(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 Zd=!1,t}function Mv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ca(t,e,i,o){var f,_;if(Zd){if(i===null&&(Zd=!1),Mv(e))throw t;return}if(i!==null&&(Zd=!0),!Ie||o===null||!(t instanceof Error)||Pv.has(t)){Av(t,e);return}Pv.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ie){var d=(_=s.function)==null?void 0:_[vi];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=ml?" ":" ";to(t,"message",{value:t.message+`
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Os,Hs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var je=!1;function no(t){je=t}var mt;function mi(t){if(t===null)throw Fs(),Yr;return mt=t}function Mi(){return mi(Io(mt))}function g(t){if(je){if(Io(mt)!==null)throw Fs(),Yr;mt=t}}function be(t=1){if(je){for(var e=t,i=mt;e--;)i=Io(i);mt=i}}function Ca(){for(var t=0,e=mt;;){if(e.nodeType===8){var i=e.data;if(i===Rs){if(t===0)return e;t-=1}else(i===vs||i===Vs)&&(t+=1)}var o=Io(e);e.remove(),e=o}}function ve(t,e=null,i){var u,f;var o=null;if(Ie&&Or&&(o=Xr("CreatedAt")),typeof t!="object"||t===null||Ho in t)return t;let n=Zr(t);if(n!==ku&&n!==ev)return t;var a=new Map,s=yr(t),d=Bi(0);s&&a.set("length",Bi(t.length,o));var l;if(Ie)if(l={parent:e,owners:null},i){let _=(f=(u=i.v)==null?void 0:u[jr])==null?void 0:f.owners;l.owners=_?new Set(_):null}else l.owners=e===null?Tt!==null?new Set([Tt.function]):null:new Set;return new Proxy(t,{defineProperty(_,p,$){(!("value"in $)||$.configurable===!1||$.enumerable===!1||$.writable===!1)&&mv();var w=a.get(p);return w===void 0?(w=Bi($.value,o),a.set(p,w)):O(w,ve($.value,l)),!0},deleteProperty(_,p){var $=a.get(p);if($===void 0)p in _&&a.set(p,Bi(Ei,o));else{if(s&&typeof p=="string"){var w=a.get("length"),y=Number(p);Number.isInteger(y)&&y<w.v&&O(w,y)}O($,Ei),Iv(d)}return!0},get(_,p,$){var P;if(Ie&&p===jr)return l;if(p===Ho)return t;var w=a.get(p),y=p in _;if(w===void 0&&(!y||(P=Ln(_,p))!=null&&P.writable)&&(w=Bi(ve(y?_[p]:Ei,l),o),a.set(p,w)),w!==void 0){var S=r(w);if(Ie){var I=S==null?void 0:S[jr];I&&(I==null?void 0:I.parent)!==l&&Ou(l,I)}return S===Ei?void 0:S}return Reflect.get(_,p,$)},getOwnPropertyDescriptor(_,p){var $=Reflect.getOwnPropertyDescriptor(_,p);if($&&"value"in $){var w=a.get(p);w&&($.value=r(w))}else if($===void 0){var y=a.get(p),S=y==null?void 0:y.v;if(y!==void 0&&S!==Ei)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return $},has(_,p){var S;if(Ie&&p===jr||p===Ho)return!0;var $=a.get(p),w=$!==void 0&&$.v!==Ei||Reflect.has(_,p);if($!==void 0||xt!==null&&(!w||(S=Ln(_,p))!=null&&S.writable)){$===void 0&&($=Bi(w?ve(_[p],l):Ei,o),a.set(p,$));var y=r($);if(y===Ei)return!1}return w},set(_,p,$,w){var U;var y=a.get(p),S=p in _;if(s&&p==="length")for(var I=$;I<y.v;I+=1){var P=a.get(I+"");P!==void 0?O(P,Ei):I in _&&(P=Bi(Ei,o),a.set(I+"",P))}if(y===void 0?(!S||(U=Ln(_,p))!=null&&U.writable)&&(y=Bi(void 0,o),O(y,ve($,l)),a.set(p,y)):(S=y.v!==Ei,O(y,ve($,l))),Ie){var A=$==null?void 0:$[jr];A&&(A==null?void 0:A.parent)!==l&&Ou(l,A),kv(l)}var E=Reflect.getOwnPropertyDescriptor(_,p);if(E!=null&&E.set&&E.set.call(w,$),!S){if(s&&typeof p=="string"){var T=a.get("length"),V=Number(p);Number.isInteger(V)&&V>=T.v&&O(T,V+1)}Iv(d)}return!0},ownKeys(_){r(d);var p=Reflect.ownKeys(_).filter(y=>{var S=a.get(y);return S===void 0||S.v!==Ei});for(var[$,w]of a)w.v!==Ei&&!($ in _)&&p.push($);return p},setPrototypeOf(){vv()}})}function Iv(t,e=1){O(t,t.v+e)}function ec(t){return t!==null&&typeof t=="object"&&Ho in t?t[Ho]:t}function Ev(){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(ec(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(ec(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(ec(this[l])===a){Jd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Us,Pv,vl,Av,Mv;function tc(){if(Us===void 0){Us=window,Pv=document,vl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Av=Ln(e,"firstChild").get,Mv=Ln(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,Ie&&(t.__svelte_meta=null,Ev())}}function on(t=""){return document.createTextNode(t)}function vi(t){return Av.call(t)}function Io(t){return Mv.call(t)}function h(t,e){if(!je)return vi(t);var i=vi(mt);if(i===null)i=mt.appendChild(on());else if(e&&i.nodeType!==3){var o=on();return i==null||i.before(o),mi(o),o}return mi(i),i}function pe(t,e){var n,a;if(!je){var i=vi(t);return i.nodeType===8&&i.data===""?Io(i):i}if(e&&((n=mt)==null?void 0:n.nodeType)!==3){var o=on();return(a=mt)==null||a.before(o),mi(o),o}return mt}function M(t,e=1,i=!1){let o=je?mt:t;for(var n;e--;)n=o,o=Io(o);if(!je)return o;var a=o==null?void 0:o.nodeType;if(i&&a!==3){var s=on();return o===null?n==null||n.after(s):o.before(s),mi(s),s}return mi(o),o}function gl(t){t.textContent=""}var Lv=new WeakSet,ic=!1,bl=!1,hl=null,zs=!1,Ds=!1;function Uu(t){Ds=t}var _l=[],nc=[],Ot=null,Rn=!1;function po(t){Ot=t}var xt=null;function io(t){xt=t}var xr=null;function yv(t){xr=t}var nn=null,Bn=0,Vn=null;function xv(t){Vn=t}var Dv=1,rc=0,ts=!1,fl=null;function ml(){return++Dv}function _s(t){var _,p;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,a,s=(e&512)!==0,d=o&&xt!==null&&!ts,l=i.length;if(s||d){var u=t,f=u.parent;for(n=0;n<l;n++)a=i[n],(s||!((_=a==null?void 0:a.reactions)!=null&&_.includes(u)))&&((p=a.reactions)!=null?p:a.reactions=[]).push(u);s&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(n=0;n<l;n++)if(a=i[n],_s(a)&&Bu(a),a.wv>t.wv)return!0}(!o||xt!==null&&!ts)&&tn(t,1024)}return!1}function Vv(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 ic=!1,t}function Rv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Ia(t,e,i,o){var f,_;if(ic){if(i===null&&(ic=!1),Rv(e))throw t;return}if(i!==null&&(ic=!0),!Ie||o===null||!(t instanceof Error)||Lv.has(t)){Vv(t,e);return}Lv.add(t);let n=[],a=(f=e.fn)==null?void 0:f.name;a&&n.push(a);let s=o;for(;s!==null;){if(Ie){var d=(_=s.function)==null?void 0:_[fi];if(d){let p=d.split("/").pop();n.push(p)}}s=s.p}let l=vl?" ":" ";to(t,"message",{value:t.message+`
40
40
  ${n.map(p=>`
41
41
  ${l}in ${p}`).join("")}
42
42
  `}),to(t,"component_stack",{value:n});let u=t.stack;if(u){let p=u.split(`
43
43
  `),$=[];for(let w=0;w<p.length;w++){let y=p[w];y.includes("svelte/src/internal")||$.push(y)}to(t,"stack",{value:$.join(`
44
- `)})}if(Av(t,e),Mv(e))throw t}function Bv(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?Bv(a,e,!1):e===a&&(i?sn(a,2048):(a.f&1024)!==0&&sn(a,4096),xa(a))}}function Qd(t){var $,w;var e=ln,i=Qn,o=qn,n=Rt,a=ts,s=wr,d=Tt,l=Kn,u=t.f;ln=null,Qn=0,qn=null,ts=(u&256)!==0&&(Kn||!Us||Rt===null),Rt=(u&96)===0?t:null,wr=null,$l(t.ctx),Kn=!1,ec++;try{var f=(0,t.fn)(),_=t.deps;if(ln!==null){var p;if(bl(t,Qn),_!==null&&Qn>0)for(_.length=Qn+ln.length,p=0;p<ln.length;p++)_[Qn+p]=ln[p];else t.deps=_=ln;if(!ts)for(p=Qn;p<_.length;p++)((w=($=_[p]).reactions)!=null?w:$.reactions=[]).push(t)}else _!==null&&Qn<_.length&&(bl(t,Qn),_.length=Qn);if(Fr()&&qn!==null&&!Kn&&_!==null&&(t.f&6146)===0)for(p=0;p<qn.length;p++)Bv(qn[p],t);return n!==null&&(ec++,qn!==null&&(o===null?o=qn:o.push(...qn))),f}finally{ln=e,Qn=i,qn=o,Rt=n,ts=a,wr=s,$l(d),Kn=l}}function W1(t,e){let i=e.reactions;if(i!==null){var o=jm.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&&(ln===null||!ln.includes(e))&&(sn(e,4096),(e.f&768)===0&&(e.f^=512),Wd(e),bl(e,0))}function bl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)W1(t,i[o])}function ya(t){var e=t.f;if((e&16384)===0){sn(t,1024);var i=$t,o=Tt,n=Us;if($t=t,Us=!0,Ie){var a=dn;yl(t.component_function)}try{(e&16)!==0?Nv(t):Du(t),Nu(t);var s=Qd(t);t.teardown=typeof s=="function"?s:null,t.wv=Rv;var d=t.deps;if(Ie&&Hr&&(t.f&2048)!==0&&d!==null)for(let u=0;u<d.length;u++){var l=d[u];l.trace_need_increase&&(l.wv=fl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ie&&Jd.push(t)}catch(u){Ca(u,t,i,o||t.ctx)}finally{Us=n,$t=i,Ie&&yl(a)}}}function Lv(){console.error("Last ten effects were: ",Jd.slice(-10).map(t=>t.fn)),Jd=[]}function Q1(){try{rv()}catch(t){if(Ie&&to(t,"stack",{value:""}),gl!==null)if(Ie)try{Ca(t,gl,null,null)}catch(e){throw Lv(),e}else Ca(t,gl,null,null);else throw Ie&&Lv(),t}}function Vu(){var t=Us;try{var e=0;for(Us=!0;hl.length>0;){e++>1e3&&Q1();var i=hl,o=i.length;hl=[];for(var n=0;n<o;n++){var a=Y1(i[n]);G1(a)}}}finally{_l=!1,Us=t,gl=null,Ie&&(Jd=[]),ba.clear()}}function G1(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{hs(o)&&(ya(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ou(o):o.fn=null))}catch(n){Ca(n,o,null,o.ctx)}}}function xa(t){_l||(_l=!0,queueMicrotask(Vu));for(var e=gl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}hl.push(e)}function Y1(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=Rt;try{Rt=i,hs(i)&&ya(i)}catch(u){Ca(u,i,null,i.ctx)}finally{Rt=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&&(_l=!0,Vu(),e=t()),Su();hl.length>0;)_l=!0,Vu(),Su();return e}function bo(){return St(this,null,function*(){yield Promise.resolve(),Ta()})}function r(t){var e=t.f,i=(e&2)!==0;if(pl!==null&&pl.add(t),Rt!==null&&!Kn){wr!==null&&wr.includes(t)&&fv();var o=Rt.deps;t.rv<ec&&(t.rv=ec,ln===null&&o!==null&&o[Qn]===t?Qn++:ln===null?ln=[t]:(!ts||!ln.includes(t))&&ln.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,hs(n)&&Au(n)),Ie&&Hr&&ul!==null&&Rt!==null&&ul.reaction===Rt){if(t.debug)t.debug();else if(t.created){var s=ul.entries.get(t);s===void 0&&(s={read:[]},ul.entries.set(t,s)),s.read.push(Xr("TracedAt"))}}return Ns&&ba.has(t)?ba.get(t):t.v}function _t(t){var e=Kn;try{return Kn=!0,t()}finally{Kn=e}}var j1=-7169;function sn(t,e){t.f=t.f&j1|e}function ic(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(zo in t)tc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&zo in i&&tc(i)}}}function tc(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{tc(t[o],e)}catch(n){}let i=Zr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=qd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Fu(t){$t===null&&Rt===null&&nv(t),Rt!==null&&(Rt.f&256)!==0&&$t===null&&ov(),Ns&&iv(t)}function Z1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function zs(t,e,i,o=!0){var l;var n=$t;if(Ie)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Tt,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(Ie&&(a.component_function=dn),i)try{ya(a),a.f|=32768}catch(u){throw oo(a),u}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&&Z1(a,n),Rt!==null&&(Rt.f&2)!==0)){var d=Rt;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function cn(t){let e=zs(8,null,!1);return sn(e,1024),e.teardown=t,e}function Ze(t){var n;Fu("$effect");var e=$t!==null&&($t.f&32)!==0&&Tt!==null&&!Tt.m;if(Ie&&to(t,"name",{value:"$effect"}),e){var i=Tt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:$t,reaction:Rt})}else{var o=yn(t);return o}}function Ia(t){return Fu("$effect.pre"),Ie&&to(t,"name",{value:"$effect.pre"}),$o(t)}function nc(t){let e=zs(64,t,!0);return()=>{oo(e)}}function Ov(t){let e=zs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?xn(e,()=>{oo(e),o(void 0)}):(oo(e),o(void 0))})}function yn(t){return zs(4,t,!1)}function $o(t){return zs(8,t,!0)}function k(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Ie&&to(n,"name",{value:"{expression}"}),ro(n)}function ro(t,e=0){return zs(24|e,t,!0)}function Oi(t,e=!0){return zs(40,t,!0,e)}function Nu(t){var e=t.teardown;if(e!==null){let i=Ns,o=Rt;Bu(!0),_o(null);try{e.call(null)}finally{Bu(i),_o(o)}}}function Du(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 Nv(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:Lo(o);o.remove(),o=a}i=!0}Du(t,e&&!i),bl(t,0),sn(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();Nu(t);var d=t.parent;d!==null&&d.first!==null&&Ou(t),Ie&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ou(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function xn(t,e){var i=[];rc(t,i,!0),Uu(i,()=>{oo(t),e&&e()})}function Uu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function rc(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;rc(o,e,a?i:!1),o=n}}}function is(t){Hv(t,!0)}function Hv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),hs(t)&&(sn(t,2048),xa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Hv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var X1={},J1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,e0=/@(.+):(\d+):(\d+)$/;function t0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
- `)){let n=(i=J1.exec(o))!=null?i:e0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Fv(){var e;let t=(e=t0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=X1[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 sc=Symbol("ADD_OWNER");function zu(t,e,i=!1,o=!1){if(t&&!i){let n=dn,a=t[jr];if(a&&!qu(a,n)){let s=Ku(a);e&&e[vi]!==n[vi]&&!o&&wv(n[vi],e[vi],s[vi])}}ac(t,e,new Set)}function Lu(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 ac(t,e,i){var a;let o=t==null?void 0:t[jr];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),sc in t&&t[sc])$o(()=>{t[sc](e)});else{var n=Zr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=ki;$o(()=>{let l=t[s];d!==l&&(d=l,ac(l,e,i))})}else ac(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)ac(t[s],e,i)}}}function qu(t,e){return t.owners===null?!0:t.owners.has(e)||vi in e&&[...t.owners].some(i=>i[vi]===e[vi])||t.parent!==null&&qu(t.parent,e)}function Ku(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Ku(t.parent)}var i0=!1;function Cv(t){if(i0)return;let e=Fv();if(e&&!qu(t,e)){let i=Ku(t);i[vi]!==e[vi]?Mu(e[vi],i[vi]):Mu()}}function ka(t){if(Ie){let e=new Error(`lifecycle_outside_component
44
+ `)})}if(Vv(t,e),Rv(e))throw t}function Ov(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?Ov(a,e,!1):e===a&&(i?tn(a,2048):(a.f&1024)!==0&&tn(a,4096),Sa(a))}}function Xd(t){var $,w;var e=nn,i=Bn,o=Vn,n=Ot,a=ts,s=xr,d=Tt,l=Rn,u=t.f;nn=null,Bn=0,Vn=null,ts=(u&256)!==0&&(Rn||!zs||Ot===null),Ot=(u&96)===0?t:null,xr=null,yl(t.ctx),Rn=!1,rc++;try{var f=(0,t.fn)(),_=t.deps;if(nn!==null){var p;if($l(t,Bn),_!==null&&Bn>0)for(_.length=Bn+nn.length,p=0;p<nn.length;p++)_[Bn+p]=nn[p];else t.deps=_=nn;if(!ts)for(p=Bn;p<_.length;p++)((w=($=_[p]).reactions)!=null?w:$.reactions=[]).push(t)}else _!==null&&Bn<_.length&&($l(t,Bn),_.length=Bn);if(Hr()&&Vn!==null&&!Rn&&_!==null&&(t.f&6146)===0)for(p=0;p<Vn.length;p++)Ov(Vn[p],t);return n!==null&&(rc++,Vn!==null&&(o===null?o=Vn:o.push(...Vn))),f}finally{nn=e,Bn=i,Vn=o,Ot=n,ts=a,xr=s,yl(d),Rn=l}}function Q1(t,e){let i=e.reactions;if(i!==null){var o=Jm.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&&(nn===null||!nn.includes(e))&&(tn(e,4096),(e.f&768)===0&&(e.f^=512),Zd(e),$l(e,0))}function $l(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Q1(t,i[o])}function wa(t){var e=t.f;if((e&16384)===0){tn(t,1024);var i=xt,o=Tt,n=zs;if(xt=t,zs=!0,Ie){var a=rn;xl(t.component_function)}try{(e&16)!==0?Hv(t):qu(t),zu(t);var s=Xd(t);t.teardown=typeof s=="function"?s:null,t.wv=Dv;var d=t.deps;if(Ie&&Or&&(t.f&2048)!==0&&d!==null)for(let u=0;u<d.length;u++){var l=d[u];l.trace_need_increase&&(l.wv=ml(),l.trace_need_increase=void 0,l.trace_v=void 0)}Ie&&nc.push(t)}catch(u){Ia(u,t,i,o||t.ctx)}finally{zs=n,xt=i,Ie&&xl(a)}}}function Nv(){console.error("Last ten effects were: ",nc.slice(-10).map(t=>t.fn)),nc=[]}function G1(){try{lv()}catch(t){if(Ie&&to(t,"stack",{value:""}),hl!==null)if(Ie)try{Ia(t,hl,null,null)}catch(e){throw Nv(),e}else Ia(t,hl,null,null);else throw Ie&&Nv(),t}}function Hu(){var t=zs;try{var e=0;for(zs=!0;_l.length>0;){e++>1e3&&G1();var i=_l,o=i.length;_l=[];for(var n=0;n<o;n++){var a=j1(i[n]);Y1(a)}}}finally{bl=!1,zs=t,hl=null,Ie&&(nc=[]),ya.clear()}}function Y1(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{_s(o)&&(wa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Ku(o):o.fn=null))}catch(n){Ia(n,o,null,o.ctx)}}}function Sa(t){bl||(bl=!0,queueMicrotask(Hu));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 j1(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,a=n&&(o&1024)!==0;if(!a&&(o&8192)===0){if((o&4)!==0)e.push(i);else if(n)i.f^=1024;else{var s=Ot;try{Ot=i,_s(i)&&wa(i)}catch(u){Ia(u,i,null,i.ctx)}finally{Ot=s}}var d=i.first;if(d!==null){i=d;continue}}var l=i.parent;for(i=i.next;i===null&&l!==null;)i=l.next,l=l.parent}return e}function ka(t){var e;for(t&&(bl=!0,Hu(),e=t()),Pu();_l.length>0;)bl=!0,Hu(),Pu();return e}function fo(){return Ct(this,null,function*(){yield Promise.resolve(),ka()})}function r(t){var e=t.f,i=(e&2)!==0;if(fl!==null&&fl.add(t),Ot!==null&&!Rn){xr!==null&&xr.includes(t)&&gv();var o=Ot.deps;t.rv<rc&&(t.rv=rc,nn===null&&o!==null&&o[Bn]===t?Bn++:nn===null?nn=[t]:(!ts||!nn.includes(t))&&nn.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,_s(n)&&Bu(n)),Ie&&Or&&pl!==null&&Ot!==null&&pl.reaction===Ot){if(t.debug)t.debug();else if(t.created){var s=pl.entries.get(t);s===void 0&&(s={read:[]},pl.entries.set(t,s)),s.read.push(Xr("TracedAt"))}}return Ds&&ya.has(t)?ya.get(t):t.v}function $t(t){var e=Rn;try{return Rn=!0,t()}finally{Rn=e}}var Z1=-7169;function tn(t,e){t.f=t.f&Z1|e}function ac(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ho in t)sc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ho in i&&sc(i)}}}function sc(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{sc(t[o],e)}catch(n){}let i=Zr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Yd(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch(s){}}}}}function Qu(t){xt===null&&Ot===null&&av(t),Ot!==null&&(Ot.f&256)!==0&&xt===null&&sv(),Ds&&rv(t)}function X1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function qs(t,e,i,o=!0){var l;var n=xt;if(Ie)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:Tt,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(Ie&&(a.component_function=rn),i)try{wa(a),a.f|=32768}catch(u){throw oo(a),u}else e!==null&&Sa(a);var s=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!s&&o&&(n!==null&&X1(a,n),Ot!==null&&(Ot.f&2)!==0)){var d=Ot;((l=d.effects)!=null?l:d.effects=[]).push(a)}return a}function sn(t){let e=qs(8,null,!1);return tn(e,1024),e.teardown=t,e}function We(t){var n;Qu("$effect");var e=xt!==null&&(xt.f&32)!==0&&Tt!==null&&!Tt.m;if(Ie&&to(t,"name",{value:"$effect"}),e){var i=Tt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:xt,reaction:Ot})}else{var o=yn(t);return o}}function Ea(t){return Qu("$effect.pre"),Ie&&to(t,"name",{value:"$effect.pre"}),mo(t)}function dc(t){let e=qs(64,t,!0);return()=>{oo(e)}}function Uv(t){let e=qs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?xn(e,()=>{oo(e),o(void 0)}):(oo(e),o(void 0))})}function yn(t){return qs(4,t,!1)}function mo(t){return qs(8,t,!0)}function k(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return Ie&&to(n,"name",{value:"{expression}"}),ro(n)}function ro(t,e=0){return qs(24|e,t,!0)}function Di(t,e=!0){return qs(40,t,!0,e)}function zu(t){var e=t.teardown;if(e!==null){let i=Ds,o=Ot;Uu(!0),po(null);try{e.call(null)}finally{Uu(i),po(o)}}}function qu(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 Hv(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:Io(o);o.remove(),o=a}i=!0}qu(t,e&&!i),$l(t,0),tn(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();zu(t);var d=t.parent;d!==null&&d.first!==null&&Ku(t),Ie&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Ku(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function xn(t,e){var i=[];cc(t,i,!0),Gu(i,()=>{oo(t),e&&e()})}function Gu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function cc(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;cc(o,e,a?i:!1),o=n}}}function is(t){zv(t,!0)}function zv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),_s(t)&&(tn(t,2048),Sa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;zv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var J1={},e0=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,t0=/@(.+):(\d+):(\d+)$/;function i0(){var i;let t=new Error().stack;if(!t)return null;let e=[];for(let o of t.split(`
45
+ `)){let n=(i=e0.exec(o))!=null?i:t0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function qv(){var e;let t=(e=i0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=J1[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 uc=Symbol("ADD_OWNER");function Yu(t,e,i=!1,o=!1){if(t&&!i){let n=rn,a=t[jr];if(a&&!ju(a,n)){let s=Zu(a);e&&e[fi]!==n[fi]&&!o&&Tv(n[fi],e[fi],s[fi])}}pc(t,e,new Set)}function Ou(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 pc(t,e,i){var a;let o=t==null?void 0:t[jr];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),uc in t&&t[uc])mo(()=>{t[uc](e)});else{var n=Zr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ei;mo(()=>{let l=t[s];d!==l&&(d=l,pc(l,e,i))})}else pc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)pc(t[s],e,i)}}}function ju(t,e){return t.owners===null?!0:t.owners.has(e)||fi in e&&[...t.owners].some(i=>i[fi]===e[fi])||t.parent!==null&&ju(t.parent,e)}function Zu(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Zu(t.parent)}var o0=!1;function kv(t){if(o0)return;let e=qv();if(e&&!ju(t,e)){let i=Zu(t);i[fi]!==e[fi]?Du(e[fi],i[fi]):Du()}}function Pa(t){if(Ie){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 Tt=null;function $l(t){Tt=t}var dn=null;function yl(t){dn=t}function Ea(t){return Wu("getContext").get(t)}function Pa(t,e){let i=Wu("setContext");return Ie&&_t(()=>zu(e,null,!0)),i.set(t,e),e}function wl(){return Wu("getAllContexts")}function K(t,e=!1,i){var o=Tt={p:Tt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Or&&!e&&(Tt.l={s:null,u:null,r1:[],r2:Di(!1)}),cn(()=>{o.d=!0}),Ie&&(Tt.function=i,dn=i)}function W(t){var s,d;let e=Tt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=$t,o=Rt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];io(a.effect),_o(a.reaction),yn(a.fn)}}finally{io(i),_o(o)}}Tt=e.p,Ie&&(dn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Fr(){return!Or||Tt!==null&&Tt.l===null}function Wu(t){var e;return Tt===null&&ka(t),(e=Tt.c)!=null?e:Tt.c=new Map(n0(Tt)||void 0)}function n0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var r0=/\r/g;function Uv(t){t=t.replace(r0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function zv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var s0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function qv(t){return s0.includes(t)}var a0=["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 l0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Kv(t){var e;return t=t.toLowerCase(),(e=l0[t])!=null?e:t}var h6=[...a0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var d0=["touchstart","touchmove"];function Wv(t){return d0.includes(t)}var c0=["textarea","script","style","title"];function Qv(t){return c0.includes(t)}function Qu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Gv=new Map;function Yv(t,e){var i=Gv.get(t);i||(i=new Set,Gv.set(t,i)),i.add(e)}function Gu(t,e){if(e){let i=document.body;t.autofocus=!0,on(()=>{document.activeElement===i&&t.focus()})}}function Sl(t){var e=Rt,i=$t;_o(null),io(null);try{return t()}finally{_o(e),io(i)}}var Yu=new Set,lc=new Set;function qs(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 ju(t,e,i,o={}){function n(a){if(o.capture||Aa.call(e,a),!a.cancelBubble)return Sl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?on(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function kt(t,e,i,o,n){var a={capture:o,passive:n},s=ju(t,e,i,a);(e===document.body||e===window||e===document)&&cn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)Yu.add(t[e]);for(var i of lc)i(t)}function Aa(t){var P;var e=this,i=e.ownerDocument,o=t.type,n=((P=t.composedPath)==null?void 0:P.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 u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){to(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Rt,_=$t;_o(null),io(null);try{for(var p,$=[];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(xr(y)){var[S,...I]=y;S.apply(a,[t,...I])}else y.call(a,t)}catch(A){p?$.push(A):p=A}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let A of $)queueMicrotask(()=>{throw A});throw p}}finally{t.__root=e,delete t.currentTarget,_o(f),io(_)}}}var p0;function jv(){p0=void 0}function Ma(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function yo(t,e){var i=$t;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 yo(pt,null),pt;n===void 0&&(n=Ma(a?t:"<!>"+t),i||(n=hi(n)));var s=o||ml?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=hi(s),l=s.lastChild;yo(d,l)}else yo(s,s);return s}}function $e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ye)return yo(pt,null),pt;if(!s){var d=Ma(a),l=hi(d);if(n)for(s=document.createDocumentFragment();hi(l);)s.appendChild(hi(l));else s=hi(l)}var u=s.cloneNode(!0);if(n){var f=hi(u),_=u.lastChild;yo(f,_)}else yo(u,u);return u}}function nr(t=""){if(!Ye){var e=an(t+"");return yo(e,e),e}var i=pt;return i.nodeType!==3&&(i.before(i=an()),gi(i)),yo(i,i),i}function ze(){if(Ye)return yo(pt,null),pt;var t=document.createDocumentFragment(),e=document.createComment(""),i=an();return t.append(e,i),yo(e,i),t}function b(t,e){if(Ye){$t.nodes_end=pt,Li();return}t!==null&&t.before(e)}var Cl=!0;function dc(t){Cl=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 os(t,e){return Xv(t,e)}function Xu(t,e){var s;jd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=pt;try{for(var a=hi(i);a&&(a.nodeType!==8||a.data!==ms);)a=Lo(a);if(!a)throw Yr;no(!0),gi(a),Li();let d=Xv(t,At(q({},e),{anchor:a}));if(pt===null||pt.nodeType!==8||pt.data!==Vs)throw Hs(),Yr;return no(!1),d}catch(d){if(d===Yr)return e.recover===!1&&sv(),jd(),vl(i),no(!1),os(t,e);throw d}finally{no(o),gi(n),jv()}}var La=new Map;function Xv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){jd();var d=new Set,l=_=>{for(var p=0;p<_.length;p++){var $=_[p];if(!d.has($)){d.add($);var w=Wv($);e.addEventListener($,Aa,{passive:w});var y=La.get($);y===void 0?(document.addEventListener($,Aa,{passive:w}),La.set($,1)):La.set($,y+1)}}};l(dl(Yu)),lc.add(l);var u=void 0,f=Ov(()=>{var _=i!=null?i:e.appendChild(an());return Oi(()=>{if(a){K({});var p=Tt;p.c=a}n&&(o.$$events=n),Ye&&yo(_,null),Cl=s,u=t(_,o)||{},Cl=!0,Ye&&($t.nodes_end=pt),a&&W()}),()=>{var w;for(var p of d){e.removeEventListener(p,Aa);var $=La.get(p);--$===0?(document.removeEventListener(p,Aa),La.delete(p)):La.set(p,$)}lc.delete(l),_!==i&&((w=_.parentNode)==null||w.removeChild(_))}});return Zu.set(u,f),u}var Zu=new WeakMap;function Ks(t,e){let i=Zu.get(t);return i?(Zu.delete(t),i(e)):(Ie&&xv(),Promise.resolve())}function B(t,e,[i,o]=[0,0]){Ye&&i===0&&Li();var n=t,a=null,s=null,d=ki,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,_($,p)},_=(p,$)=>{if(d===(d=p))return;let w=!1;if(Ye&&o!==-1){if(i===0){let S=n.data;S===ms?o=0:S===Ls?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=wa(),gi(n),no(!1),w=!0,o=-1)}d?(a?is(a):$&&(a=Oi(()=>$(n))),s&&xn(s,()=>{s=null})):(s?is(s):$&&(s=Oi(()=>$(n,[i+1,o]))),a&&xn(a,()=>{a=null})),w&&no(!0)};ro(()=>{u=!1,e(f),u||_(null,null)},l),Ye&&(n=pt)}function Tl(t,e,i){Ye&&Li();var o=t,n=ki,a,s=Fr()?ev:ha;ro(()=>{s(n,n=e())&&(a&&xn(a),a=Oi(()=>i(o)))}),Ye&&(o=pt)}var bs=null;function tp(t){bs=t}function Il(t,e){return e}function g0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)rc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;vl(l),l.append(i),o.clear(),_s(t,e[0].prev,e[a-1].next)}Uu(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),_s(t,f.prev,f.next)),oo(f.e,!d)}})}function yi(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 u=t;s=Ye?gi(hi(u)):u.appendChild(an())}Ye&&Li();var f=null,_=!1,p=Cr(()=>{var $=i();return xr($)?$:$==null?[]:dl($)});ro(()=>{var $=r(p),w=$.length;if(_&&w===0)return;_=w===0;let y=!1;if(Ye){var S=s.data===Ls;S!==(w===0)&&(s=wa(),gi(s),no(!1),y=!0)}if(Ye){for(var I=null,P,A=0;A<w;A++){if(pt.nodeType===8&&pt.data===Vs){s=pt,y=!0,no(!1);break}var E=$[A],T=o(E,A);P=tg(pt,d,I,null,E,T,A,n,e,i),d.items.set(T,P),I=P}w>0&&gi(wa())}Ye||h0($,d,s,n,e,o,i),a!==null&&(w===0?f?is(f):f=Oi(()=>a(s)):f!==null&&xn(f,()=>{f=null})),y&&no(!0),r(p)}),Ye&&(s=pt)}function h0(t,e,i,o,n,a,s){var de,Ve,Be,J;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,_=e.first,p=_,$,w=null,y,S=[],I=[],P,A,E,T;if(d)for(T=0;T<u;T+=1)P=t[T],A=a(P,T),E=f.get(A),E!==void 0&&((de=E.a)==null||de.measure(),(y!=null?y:y=new Set).add(E));for(T=0;T<u;T+=1){if(P=t[T],A=a(P,T),E=f.get(A),E===void 0){var R=p?p.e.nodes_start:i;w=tg(R,e,w,w===null?e.first:w.next,P,A,T,o,n,s),f.set(A,w),S=[],I=[],p=w.next;continue}if(l&&_0(E,P,T,n),(E.e.f&8192)!==0&&(is(E.e),d&&((Ve=E.a)==null||Ve.unfix(),(y!=null?y:y=new Set).delete(E))),E!==p){if($!==void 0&&$.has(E)){if(S.length<I.length){var z=I[0],j;w=z.prev;var U=S[0],X=S[S.length-1];for(j=0;j<S.length;j+=1)Jv(S[j],z,i);for(j=0;j<I.length;j+=1)$.delete(I[j]);_s(e,U.prev,X.next),_s(e,w,U),_s(e,X,z),p=z,w=X,T-=1,S=[],I=[]}else $.delete(E),Jv(E,p,i),_s(e,E.prev,E.next),_s(e,E,w===null?e.first:w.next),_s(e,w,E),w=E;continue}for(S=[],I=[];p!==null&&p.k!==A;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),I.push(p),p=p.next;if(p===null)continue;E=p}S.push(E),w=E,p=E.next}if(p!==null||$!==void 0){for(var ee=$===void 0?[]:dl($);p!==null;)(p.e.f&8192)===0&&ee.push(p),p=p.next;var ne=ee.length;if(ne>0){var ue=(n&4)!==0&&u===0?i:null;if(d){for(T=0;T<ne;T+=1)(Be=ee[T].a)==null||Be.measure();for(T=0;T<ne;T+=1)(J=ee[T].a)==null||J.fix()}g0(e,ee,ue,f)}}d&&on(()=>{var Le;if(y!==void 0)for(E of y)(Le=E.a)==null||Le.apply()}),$t.first=e.first&&e.first.e,$t.last=w&&w.e}function _0(t,e,i,o){(o&1)!==0&&$a(t.v,e),(o&2)!==0?$a(t.i,i):t.i=i}function tg(t,e,i,o,n,a,s,d,l,u){var f=bs,_=(l&1)!==0,p=(l&16)===0,$=_?p?es(n):Di(n):n,w=(l&2)===0?s:Di(s);Ie&&_&&($.debug=()=>{var S=typeof w=="number"?s:w.v;u()[S]});var y={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};bs=y;try{return y.e=Oi(()=>d(t,$,w,u),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{bs=f}}function Jv(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=Lo(a);n.before(a),a=s}}function _s(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 b0(t,e,i){var a,s;if(!e||e===Uv(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=dn)!=null&&s[vi]&&(o=`in ${dn[vi]}`),yv(Qu(o))}function kl(t,e,i,o,n){var a=t,s="",d;ro(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Li();return}d!==void 0&&(oo(d),d=void 0),s!==""&&(d=Oi(()=>{if(Ye){for(var u=pt.data,f=Li(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=Lo(f);if(f===null)throw Hs(),Yr;Ie&&!n&&b0(f.parentNode,u,s),yo(pt,_),a=gi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Ma(p);if((i||o)&&($=hi($)),yo(hi($),$.lastChild),i||o)for(;hi($);)a.before(hi($));else a.before($)}))})}function ve(t,e,...i){var o=t,n=oe,a;ro(()=>{n!==(n=e())&&(a&&(oo(a),a=null),Ie&&n==null&&av(),a=Oi(()=>n(o,...i)))},65536),Ye&&(o=pt)}function Vi(t,e,i){Ye&&Li();var o=t,n,a;ro(()=>{n!==(n=e())&&(a&&(xn(a),a=null),n&&(a=Oi(()=>i(o,n))))},65536),Ye&&(o=pt)}function El(t,e,i,o,n,a){var w;let s=Ye;Ye&&Li();var d=Ie&&a&&((w=Tt)==null?void 0:w.function[vi]),l,u,f=null;Ye&&pt.nodeType===1&&(f=pt,Li());var _=Ye?pt:t,p,$=bs;ro(()=>{let y=e()||null;var S=n?n():i||y==="svg"?bu:null;if(y!==l){var I=bs;tp($),p&&(y===null?xn(p,()=>{p=null,u=null}):y===u?is(p):(oo(p),dc(!1))),y&&y!==u&&(p=Oi(()=>{if(f=Ye?f:S?document.createElementNS(S,y):document.createElement(y),Ie&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),yo(f,f),o){Ye&&Qv(y)&&f.append(document.createComment(""));var P=Ye?hi(f):f.appendChild(an());Ye&&(P===null?no(!1):gi(P)),o(f,P)}$t.nodes_end=f,_.before(f)})),l=y,l&&(u=l),dc(!0),tp(I)}},65536),s&&(no(!0),gi(_))}var op;function ig(t){return op=t.target,new ip(t)}var ns,rr,ip=class{constructor(e){fs(this,ns);fs(this,rr);var a,s;var i=new Map,o=(d,l)=>{var u=es(l);return i.set(d,u),u};let n=new Proxy(At(q({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===ll?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return O((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});ga(this,rr,(e.hydrate?Xu:os)(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,ns,n.$$events);for(let d of Object.keys(Ii(this,rr)))d==="$set"||d==="$destroy"||d==="$on"||to(this,d,{get(){return Ii(this,rr)[d]},set(l){Ii(this,rr)[d]=l},enumerable:!0});Ii(this,rr).$set=d=>{Object.assign(n,d)},Ii(this,rr).$destroy=()=>{Ks(Ii(this,rr))}}$set(e){Ii(this,rr).$set(e)}$on(e,i){Ii(this,ns)[e]=Ii(this,ns)[e]||[];let o=(...n)=>i.call(this,...n);return Ii(this,ns)[e].push(o),()=>{Ii(this,ns)[e]=Ii(this,ns)[e].filter(n=>n!==o)}}$destroy(){Ii(this,rr).$destroy()}};ns=new WeakMap,rr=new WeakMap;function G(t,e){on(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=op)==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),Ie&&Yv(e.hash,d)}})}function og(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=og(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ng(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=og(t))&&(o&&(o+=" "),o+=e);return o}function Pl(t){return typeof t=="object"?ng(t):t!=null?t:""}var rg=[...`
48
- \r\f\xA0\v\uFEFF`];function ag(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||rg.includes(o[s-1]))&&(d===o.length||rg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function sg(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 np(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function lg(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(np)),n&&l.push(...Object.keys(n).map(np));var u=0,f=-1;let y=t.length;for(var _=0;_<y;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===y-1){if(f!==-1){var $=np(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var w=t.substring(u,_).trim();i+=" "+w+";"}}u=_+1,f=-1}}}}return o&&(i+=sg(o)),n&&(i+=sg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=ag(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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function rp(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 nt(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=lg(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(rp(t,i==null?void 0:i[0],o[0]),rp(t,i==null?void 0:i[1],o[1],"important")):rp(t,i,o));return o}var Va=Symbol("class"),Ra=Symbol("style"),ug=Symbol("is custom element"),pg=Symbol("is html");function fg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Oe(t,e,i,o){var n=mg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||T0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Ym]=i),i==null?t.removeAttribute(e):typeof i!="string"&&vg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ce(t,e,i,o,n=!1){var E;var a=mg(t),s=a[ug],d=!a[pg];let l=Ye&&s;l&&no(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Pl(i.class):(o||i[Va])&&(i.class=null),i[Ra]&&((E=i.style)!=null||(i.style=null));var p=vg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",u[T]=R;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,$,R,o,e==null?void 0:e[Va],i[Va]),u[T]=R,u[Va]=i[Va];continue}if(T==="style"){nt(t,R,e==null?void 0:e[Ra],i[Ra]),u[T]=R,u[Ra]=i[Ra];continue}var w=u[T];if(R!==w){u[T]=R;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let z={},j="$$"+T,U=T.slice(2);var S=qv(U);if(zv(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(U,u[j],z),u[j]=null}if(R!=null)if(S)t[`__${U}`]=R,at([U]);else{let X=function(ee){u[T].call(this,ee)};var A=X;u[j]=ju(U,t,X,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")Oe(t,T,R);else if(T==="autofocus")Gu(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)fg(t,R);else{var I=T;d||(I=Kv(I));var P=I==="defaultValue"||I==="defaultChecked";if(R==null&&!s&&!P)if(a[T]=null,I==="value"||I==="checked"){let z=t,j=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=j?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=j?U:!1}}else t.removeAttribute(T);else P||p.includes(I)&&(s||typeof R!="string")?t[I]=R:typeof R!="function"&&Oe(t,I,R,n)}}}return l&&no(!0),u}function mg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[ug]:t.nodeName.includes("-"),[pg]:t.namespaceURI===Wm}}var dg=new Map;function vg(t){var e=dg.get(t.nodeName);if(e)return e;dg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=qd(o);for(var a in i)i[a].set&&e.push(a);o=Zr(o)}return e}function T0(t,e,i){var o;Ie&&(e==="srcset"&&I0(t,i)||sp((o=t.getAttribute(e))!=null?o:"",i)||$v(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function sp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function cg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function I0(t,e){var i=cg(t.srcset),o=cg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(sp(i[s][0],n)||sp(n,i[s][0])))}var k0=zd?()=>performance.now():()=>Date.now(),Ir={tick:t=>(zd?requestAnimationFrame:oe)(t),now:()=>k0(),tasks:new Set};function gg(){let t=Ir.now();Ir.tasks.forEach(e=>{e.c(t)||(Ir.tasks.delete(e),e.f())}),Ir.tasks.size!==0&&Ir.tick(gg)}function hg(t){let e;return Ir.tasks.size===0&&Ir.tick(gg),{promise:new Promise(i=>{Ir.tasks.add(e={c:t,f:i})}),abort(){Ir.tasks.delete(e)}}}function cc(t,e){Sl(()=>{t.dispatchEvent(new CustomEvent(e))})}function M0(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 _g(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=M0(n.trim());e[s]=a.trim()}return e}var L0=t=>t;function lp(t,e,i,o){var A;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function w(){var R;var E=Rt,T=$t;_o(null),io(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{_o(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||p==null||p.abort(),cc(e,"introstart"),p=ap(e,w(),$,1,()=>{cc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,cc(e,"outrostart"),$=ap(e,w(),p,0,()=>{cc(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=$t;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&Cl){var I=d;if(!I){for(var P=S.parent;P&&(P.f&65536)!==0;)for(;(P=P.parent)&&(P.f&16)===0;);I=!P||(P.f&32768)!==0}I&&yn(()=>{_t(()=>y.in())})}}function ap(t,e,i,o,n){var a=o===1;if(vs(e)){var s,d=!1;return on(()=>{if(!d){var S=e({direction:a?"in":"out"});s=ap(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:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=L0}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=_g(u(0,1));p.push($,$)}var w=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,P=e.duration*Math.abs(I),A=[];if(P>0){var E=!1;if(u)for(var T=Math.ceil(P/16.666666666666668),R=0;R<=T;R+=1){var z=S+I*_(R/T),j=_g(u(z,1-z));A.push(j),E||(E=j.overflow==="hidden")}E&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return S+I*_(X/P)},f&&hg(()=>{if(y.playState!=="running")return!1;var X=w();return f(X,1-X),!0})}y=t.animate(A,{duration:P,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var $s,Ba,Al,pc,bg,fc=class fc{constructor(e){fs(this,pc);fs(this,$s,new WeakMap);fs(this,Ba);fs(this,Al);ga(this,Al,e)}observe(e,i){var o=Ii(this,$s).get(e)||new Set;return o.add(i),Ii(this,$s).set(e,o),qm(this,pc,bg).call(this).observe(e,Ii(this,Al)),()=>{var n=Ii(this,$s).get(e);n.delete(i),n.size===0&&(Ii(this,$s).delete(e),Ii(this,Ba).unobserve(e))}}};$s=new WeakMap,Ba=new WeakMap,Al=new WeakMap,pc=new WeakSet,bg=function(){var e;return(e=Ii(this,Ba))!=null?e:ga(this,Ba,new ResizeObserver(i=>{for(var o of i){fc.entries.set(o.target,o);for(var n of Ii(this,$s).get(o.target)||[])n(o)}}))},Un(fc,"entries",new WeakMap);var dp=fc;var B0=new dp({box:"border-box"});function Ur(t,e,i){var o=B0.observe(t,()=>i(t[e]));yn(()=>(_t(()=>i(t[e])),o))}function $g(t,e){return t===e||(t==null?void 0:t[zo])===e}function dt(t={},e,i,o){return yn(()=>{var n,a;return $o(()=>{n=a,a=(o==null?void 0:o())||[],_t(()=>{t!==i(...a)&&(e(t,...a),n&&$g(i(...n),t)&&e(null,...n))})}),()=>{on(()=>{a&&$g(i(...a),t)&&e(null,...a)})}}),t}function kr(t=!1){let e=Tt,i=e.l.u;if(!i)return;let o=()=>ic(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ia(()=>{yg(e,o),gs(i.b)}),Ze(()=>{let n=_t(()=>i.m.map(Xm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ze(()=>{yg(e,o),gs(i.a)})}function yg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ie){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;cv(e)},set:o=>{i=o}})}};D0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var D0;function Ht(t){Tt===null&&ka("onMount"),Or&&Tt.l!==null?N0(Tt).m.push(t):Ze(()=>{let e=_t(t);if(typeof e=="function")return e})}function wn(t){Tt===null&&ka("onDestroy"),Ht(()=>()=>_t(t))}function N0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Ml(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=_t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Na=[];function sr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=oe){let i=null,o=new Set;function n(d){if(ha(t,d)&&(t=d,i)){let l=!Na.length;for(let u of o)u[1](),Na.push(u,t);if(l){for(let u=0;u<Na.length;u+=2)Na[u][0](Na[u+1]);Na.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function _i(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return sr(i,(s,d)=>{let l=!1,u=[],f=0,_=oe,p=()=>{if(f)return;_();let w=e(o?u[0]:u,s,d);a?s(w):_=typeof w=="function"?w:oe},$=n.map((w,y)=>Ml(w,S=>{u[y]=S,f&=~(1<<y),l&&p()},()=>{f|=1<<y}));return l=!0,p(),function(){gs($),_(),l=!1}})}function Se(t){let e;return Ml(t,i=>e=i)(),e}var mc=!1,cp=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:es(void 0),unsubscribe:oe};if(o.store!==t&&!(cp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Ml(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&cp in i?Se(t):r(o.source)}function Ue(){let t={};function e(){cn(()=>{for(var i in t)t[i].unsubscribe();to(t,cp,{enumerable:!1,value:!0})})}return[t,e]}function up(t){var e=mc;try{return mc=!1,[t(),mc]}finally{mc=e}}var K0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ie&&dv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ee(t,e,i){return new Proxy(Ie?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},K0)}var W0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(vs(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];vs(n)&&(n=n());let a=zn(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(vs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=zn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===zo||e===ll)return!1;for(let i of t.props)if(vs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){vs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function rs(...t){return new Proxy({props:t},W0)}function xg(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,j;var n=(i&1)!==0,a=!Or||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=up(()=>t[e]):u=t[e];var f=zo in t||ll in t,_=s&&((j=(z=zn(t,e))==null?void 0:z.set)!=null?j:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?p=_t(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&lv(e),u=y(),_&&_(u));var S;if(a)S=()=>{var U=t[e];return U===void 0?y():($=!0,w=!1,U)};else{var I=(n?m:Cr)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return S;if(_){var P=t.$$legacy;return function(U,X){return arguments.length>0?((!a||!X||P||l)&&_(X?S():U),U):S()}}var A=!1,E=!1,T=es(u),R=m(()=>{var U=S(),X=r(T);return A?(A=!1,E=!0,X):(E=!1,T.v=U)});return s&&r(R),n||(R.equals=_a),function(U,X){if(pl!==null&&(A=E,S(),r(T)),arguments.length>0){let ee=X?r(R):a&&s?_e(U):U;if(!R.equals(ee)){if(A=!0,O(T,ee),w&&p!==void 0&&(p=ee),xg(R))return U;_t(()=>r(R))}return U}return xg(R)?R.v:r(R)}}var Q0;typeof HTMLElement=="function"&&(Q0=class extends HTMLElement{constructor(e,i,o){super();Un(this,"$$ctor");Un(this,"$$s");Un(this,"$$c");Un(this,"$$cn",!1);Un(this,"$$d",{});Un(this,"$$r",!1);Un(this,"$$p_d",{});Un(this,"$$l",{});Un(this,"$$l_u",new Map);Un(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))}}connectedCallback(){return St(this,null,function*(){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(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=G0(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]=pp(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=ig({component:this.$$ctor,target:this.shadowRoot||this,props:At(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=nc(()=>{$o(()=>{var a;this.$$r=!0;for(let s of yu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=pp(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]=pp(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 yu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function pp(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 G0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var wg="5";var Sg,Cg,Tg;typeof window!="undefined"&&((Tg=(Cg=(Sg=window.__svelte)!=null?Sg:window.__svelte={}).v)!=null?Tg:Cg.v=new Set).add(wg);import{clientChecker as $x}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as x1,safeStorage as yx,throttleFn as xx}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as wx}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as j0,fillWithDefault as Z0,VideoQuality as Ig}from"@vkontakte/videoplayer-shared/es2015";var X0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:j0.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:Ig.Q_480P,highQualityLimit:Ig.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},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}},kg=t=>Z0(t,X0),Eg=t=>Pa("ui-config",t),Wt=()=>Ea("ui-config");var Ll="vk_player_debug_panel_opened";var Pg="videoplayer",Ag="videoplayer";var zr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Mg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Lg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Vg=new Set(["ShiftRight","ShiftLeft"]);var Rg=["TIMELINE"],Vl=[...Rg,"GRAPH_BUTTON"],fp=[...Rg,"PLAY_BUTTON"],Rl=[...Vl,"PLAY_BUTTON"];var qr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(qr||{}),Qs={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Bg,VERSION as J0}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as e_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as t_}from"@vkontakte/videoplayer-statistics/es2015";var vc="prod",Da="1.1.61-dev.4affc441.0";var Gs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Ng=Symbol("storeContext"),Dg=Symbol("microStoresContext"),Og=(t,e)=>{Pa(Ng,t),Pa(Dg,e),vc==="dev"&&(window.app={store:t,microStores:e})},ke=()=>{let t=Ea(Ng);return Bg(t,"Store context is empty!"),t},so=()=>{let t=Ea(Dg);return Bg(t,"MicroStores context is empty!"),t},Yt=(t,e)=>hc(t,t.getValue(),e),hc=(t,e,i)=>sr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Hg=(t,e,i)=>{var I,P,A,E,T,R;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s=(P=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?P:0,d=(E=(A=o.rttEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Da} (core: ${e_}, stat: ${t_}, shared: ${J0})`,f=Se(i.state.errorLog$),_=f.length?`
49
- `+f.map((z,j)=>{var ne;let U=`${j}) Type: ${z.id}
50
- `,X=`Message: ${z.message} (${z.thrown})
51
- `,ee=`Trace: ${(ne=z.thrown)==null?void 0:ne.stack}
52
- `;return U+X+ee}).join(`
53
- `):void 0,p=i.state.isAudioDisabled?"disabled":Se(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: ${(R=w==null?void 0:w.codec)!=null?R:""}`+(w!=null&&w.language?` (${w.language})`:""));let S={Version:u,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:Se(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:p,Position:`${Se(i.state.positionExact$)}s`,State:`${Se(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([z,j])=>j!==void 0).map(([z,j])=>`${z}: ${j}`).join(`
54
- `)},Fg=(t,e,i)=>{var z,j,U,X;let o=t.info,{width:n,height:a}=Se(i.ui.playerSize),s={version:Da,viewport:`${n}x${a}`,volume:Math.round(Se(i.state.volume$)*100)};s.id=i.videoId,o.currentFormat$.getValue()&&(s.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(s.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(_&&p?s.buffer=f.end-p:s.buffer=Math.max(f.end-Se(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 I=o.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let P=Se(i.vsid);typeof P=="string"&&(s.vsid=P);let A=(z=t.info.currentVideoStream$.getValue())==null?void 0:z.codec;A&&(s.videoCodec=A);let E=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.codec;E&&(s.audioCodec=E),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(s.hdr=!0);let R=(X=t.info.currentAudioStream$.getValue())==null?void 0:X.language;return R&&(s.audioLanguage=R),s},Ug=(t,e)=>Gs(t,e,"mp4"),zg=t=>!t.type,qg=t=>!!t.type,Kg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},gc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return St(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield 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 gp,safeStorage as xo}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var Wg="vk_player_prefer_traffic_saving_enabled",Qg="vk_player_preferred_volume",Gg="vk_player_prefer_volume_mute",hp="vk_player_preferred_quality",mp="vk_player_preferred_default_quality_settings",vp="vk_player_preferred_quality_settings_by_video",Yg="vk_player_preferred_stream_language",jg="vk_player_preferred_rate",Zg="vk_player_preferred_autoplay_next",Xg=t=>t>1?1:t<0?0:t,_p=t=>xo.set(Qg,Xg(t).toString(10)),_c=()=>{let t=xo.get(Qg);return gp(t)?void 0:Xg(parseFloat(t))},bp=(t,e)=>xo.set(hp,JSON.stringify({videoId:t,value:e})),Nl=()=>xo.remove(hp),$p=t=>{let e=xo.get(hp);if(gp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Nl();return}return o},yp=(t,e)=>{e?xo.set(t,"true"):xo.remove(t)},xp=t=>xo.get(t)==="true",wp=t=>yp(Gg,t),Jg=()=>xp(Gg),Bl=t=>yp(Wg,t),Sp=()=>xp(Wg),eh=()=>xo.get(Yg),Cp=t=>xo.set(Yg,t),th=t=>xo.set(jg,JSON.stringify({rate:t})),ih=()=>{let t=xo.get(jg);if(gp(t))return;let{rate:e}=JSON.parse(t);return e},oh=t=>yp(Zg,t),nh=()=>xp(Zg),i_=()=>{let t=f=>{xo.set(mp,JSON.stringify(f))},e=()=>{try{let f=xo.get(mp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=xo.get(vp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{xo.set(vp,JSON.stringify(f))},n=f=>{u(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return At(q({},_),{appliesTo:"to-video"});_&&a();let p=e();return p?At(q({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{xo.remove(vp)},s=()=>{xo.remove(mp)},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":Bl(!0);break;case"exact_quality":bp(f,_.quality)}a(),s()}},u=f=>{let _=$p(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}Sp()&&t({type:"traffic_saving",videoId:f}),Bl(!1),Nl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:rh,migrateSettingsToLegacyWay:sh,savePreferredQualitySettings:bc,savePreferredDefaultQualitySettings:GP,removePreferredQualitySettingsByVideo:YP,getPreferredDefaultQualitySettings:$c}=i_();import{PlaybackState as b1}from"@vkontakte/videoplayer-core/es2015";var o_=$e('<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 Dl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=o_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({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 dh,InterfaceLanguage as ch}from"@vkontakte/videoplayer-shared/es2015";var n_={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 Tt=null;function yl(t){Tt=t}var rn=null;function xl(t){rn=t}function Aa(t){return Xu("getContext").get(t)}function Ma(t,e){let i=Xu("setContext");return Ie&&$t(()=>Yu(e,null,!0)),i.set(t,e),e}function Sl(){return Xu("getAllContexts")}function q(t,e=!1,i){var o=Tt={p:Tt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Dr&&!e&&(Tt.l={s:null,u:null,r1:[],r2:Bi(!1)}),sn(()=>{o.d=!0}),Ie&&(Tt.function=i,rn=i)}function K(t){var s,d;let e=Tt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=xt,o=Ot;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];io(a.effect),po(a.reaction),yn(a.fn)}}finally{io(i),po(o)}}Tt=e.p,Ie&&(rn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Hr(){return!Dr||Tt!==null&&Tt.l===null}function Xu(t){var e;return Tt===null&&Pa(t),(e=Tt.c)!=null?e:Tt.c=new Map(r0(Tt)||void 0)}function r0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var s0=/\r/g;function Kv(t){t=t.replace(s0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Wv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var a0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Qv(t){return a0.includes(t)}var l0=["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 d0={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 Gv(t){var e;return t=t.toLowerCase(),(e=d0[t])!=null?e:t}var $6=[...l0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var c0=["touchstart","touchmove"];function Yv(t){return c0.includes(t)}var u0=["textarea","script","style","title"];function jv(t){return u0.includes(t)}function Ju(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Zv=new Map;function Xv(t,e){var i=Zv.get(t);i||(i=new Set,Zv.set(t,i)),i.add(e)}function ep(t,e){if(e){let i=document.body;t.autofocus=!0,Xo(()=>{document.activeElement===i&&t.focus()})}}function Cl(t){var e=Ot,i=xt;po(null),io(null);try{return t()}finally{po(e),io(i)}}var tp=new Set,fc=new Set;function Ks(t){if(!je)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 ip(t,e,i,o={}){function n(a){if(o.capture||La.call(e,a),!a.cancelBubble)return Cl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Xo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Et(t,e,i,o,n){var a={capture:o,passive:n},s=ip(t,e,i,a);(e===document.body||e===window||e===document)&&sn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)tp.add(t[e]);for(var i of fc)i(t)}function La(t){var P;var e=this,i=e.ownerDocument,o=t.type,n=((P=t.composedPath)==null?void 0:P.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 u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){to(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Ot,_=xt;po(null),io(null);try{for(var p,$=[];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,...I]=y;S.apply(a,[t,...I])}else y.call(a,t)}catch(A){p?$.push(A):p=A}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let A of $)queueMicrotask(()=>{throw A});throw p}}finally{t.__root=e,delete t.currentTarget,po(f),io(_)}}}var f0;function Jv(){f0=void 0}function Va(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function vo(t,e){var i=xt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(je)return vo(mt,null),mt;n===void 0&&(n=Va(a?t:"<!>"+t),i||(n=vi(n)));var s=o||vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=vi(s),l=s.lastChild;vo(d,l)}else vo(s,s);return s}}function $e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(je)return vo(mt,null),mt;if(!s){var d=Va(a),l=vi(d);if(n)for(s=document.createDocumentFragment();vi(l);)s.appendChild(vi(l));else s=vi(l)}var u=s.cloneNode(!0);if(n){var f=vi(u),_=u.lastChild;vo(f,_)}else vo(u,u);return u}}function or(t=""){if(!je){var e=on(t+"");return vo(e,e),e}var i=mt;return i.nodeType!==3&&(i.before(i=on()),mi(i)),vo(i,i),i}function Ke(){if(je)return vo(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=on();return t.append(e,i),vo(e,i),t}function b(t,e){if(je){xt.nodes_end=mt,Mi();return}t!==null&&t.before(e)}var Tl=!0;function mc(t){Tl=t}function ge(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function os(t,e){return tg(t,e)}function np(t,e){var s;tc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=je,n=mt;try{for(var a=vi(i);a&&(a.nodeType!==8||a.data!==vs);)a=Io(a);if(!a)throw Yr;no(!0),mi(a),Mi();let d=tg(t,Nt(W({},e),{anchor:a}));if(mt===null||mt.nodeType!==8||mt.data!==Rs)throw Fs(),Yr;return no(!1),d}catch(d){if(d===Yr)return e.recover===!1&&dv(),tc(),gl(i),no(!1),os(t,e);throw d}finally{no(o),mi(n),Jv()}}var Ra=new Map;function tg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){tc();var d=new Set,l=_=>{for(var p=0;p<_.length;p++){var $=_[p];if(!d.has($)){d.add($);var w=Yv($);e.addEventListener($,La,{passive:w});var y=Ra.get($);y===void 0?(document.addEventListener($,La,{passive:w}),Ra.set($,1)):Ra.set($,y+1)}}};l(cl(tp)),fc.add(l);var u=void 0,f=Uv(()=>{var _=i!=null?i:e.appendChild(on());return Di(()=>{if(a){q({});var p=Tt;p.c=a}n&&(o.$$events=n),je&&vo(_,null),Tl=s,u=t(_,o)||{},Tl=!0,je&&(xt.nodes_end=mt),a&&K()}),()=>{var w;for(var p of d){e.removeEventListener(p,La);var $=Ra.get(p);--$===0?(document.removeEventListener(p,La),Ra.delete(p)):Ra.set(p,$)}fc.delete(l),_!==i&&((w=_.parentNode)==null||w.removeChild(_))}});return op.set(u,f),u}var op=new WeakMap;function Ws(t,e){let i=op.get(t);return i?(op.delete(t),i(e)):(Ie&&Cv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){je&&i===0&&Mi();var n=t,a=null,s=null,d=Ei,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,_($,p)},_=(p,$)=>{if(d===(d=p))return;let w=!1;if(je&&o!==-1){if(i===0){let S=n.data;S===vs?o=0:S===Vs?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ca(),mi(n),no(!1),w=!0,o=-1)}d?(a?is(a):$&&(a=Di(()=>$(n))),s&&xn(s,()=>{s=null})):(s?is(s):$&&(s=Di(()=>$(n,[i+1,o]))),a&&xn(a,()=>{a=null})),w&&no(!0)};ro(()=>{u=!1,e(f),u||_(null,null)},l),je&&(n=mt)}function Qs(t,e,i){je&&Mi();var o=t,n=Ei,a,s=Hr()?ov:ba;ro(()=>{s(n,n=e())&&(a&&xn(a),a=Di(()=>i(o)))}),je&&(o=mt)}var $s=null;function ap(t){$s=t}function Il(t,e){return e}function h0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)cc(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(),bs(t,e[0].prev,e[a-1].next)}Gu(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),bs(t,f.prev,f.next)),oo(f.e,!d)}})}function yi(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 u=t;s=je?mi(vi(u)):u.appendChild(on())}je&&Mi();var f=null,_=!1,p=Sr(()=>{var $=i();return yr($)?$:$==null?[]:cl($)});ro(()=>{var $=r(p),w=$.length;if(_&&w===0)return;_=w===0;let y=!1;if(je){var S=s.data===Vs;S!==(w===0)&&(s=Ca(),mi(s),no(!1),y=!0)}if(je){for(var I=null,P,A=0;A<w;A++){if(mt.nodeType===8&&mt.data===Rs){s=mt,y=!0,no(!1);break}var E=$[A],T=o(E,A);P=ng(mt,d,I,null,E,T,A,n,e,i),d.items.set(T,P),I=P}w>0&&mi(Ca())}je||_0($,d,s,n,e,o,i),a!==null&&(w===0?f?is(f):f=Di(()=>a(s)):f!==null&&xn(f,()=>{f=null})),y&&no(!0),r(p)}),je&&(s=mt)}function _0(t,e,i,o,n,a,s){var de,Re,Le,ee;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,_=e.first,p=_,$,w=null,y,S=[],I=[],P,A,E,T;if(d)for(T=0;T<u;T+=1)P=t[T],A=a(P,T),E=f.get(A),E!==void 0&&((de=E.a)==null||de.measure(),(y!=null?y:y=new Set).add(E));for(T=0;T<u;T+=1){if(P=t[T],A=a(P,T),E=f.get(A),E===void 0){var V=p?p.e.nodes_start:i;w=ng(V,e,w,w===null?e.first:w.next,P,A,T,o,n,s),f.set(A,w),S=[],I=[],p=w.next;continue}if(l&&b0(E,P,T,n),(E.e.f&8192)!==0&&(is(E.e),d&&((Re=E.a)==null||Re.unfix(),(y!=null?y:y=new Set).delete(E))),E!==p){if($!==void 0&&$.has(E)){if(S.length<I.length){var U=I[0],j;w=U.prev;var F=S[0],Z=S[S.length-1];for(j=0;j<S.length;j+=1)ig(S[j],U,i);for(j=0;j<I.length;j+=1)$.delete(I[j]);bs(e,F.prev,Z.next),bs(e,w,F),bs(e,Z,U),p=U,w=Z,T-=1,S=[],I=[]}else $.delete(E),ig(E,p,i),bs(e,E.prev,E.next),bs(e,E,w===null?e.first:w.next),bs(e,w,E),w=E;continue}for(S=[],I=[];p!==null&&p.k!==A;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),I.push(p),p=p.next;if(p===null)continue;E=p}S.push(E),w=E,p=E.next}if(p!==null||$!==void 0){for(var J=$===void 0?[]:cl($);p!==null;)(p.e.f&8192)===0&&J.push(p),p=p.next;var ne=J.length;if(ne>0){var fe=(n&4)!==0&&u===0?i:null;if(d){for(T=0;T<ne;T+=1)(Le=J[T].a)==null||Le.measure();for(T=0;T<ne;T+=1)(ee=J[T].a)==null||ee.fix()}h0(e,J,fe,f)}}d&&Xo(()=>{var Ve;if(y!==void 0)for(E of y)(Ve=E.a)==null||Ve.apply()}),xt.first=e.first&&e.first.e,xt.last=w&&w.e}function b0(t,e,i,o){(o&1)!==0&&xa(t.v,e),(o&2)!==0?xa(t.i,i):t.i=i}function ng(t,e,i,o,n,a,s,d,l,u){var f=$s,_=(l&1)!==0,p=(l&16)===0,$=_?p?es(n):Bi(n):n,w=(l&2)===0?s:Bi(s);Ie&&_&&($.debug=()=>{var S=typeof w=="number"?s:w.v;u()[S]});var y={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};$s=y;try{return y.e=Di(()=>d(t,$,w,u),je),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{$s=f}}function ig(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=Io(a);n.before(a),a=s}}function bs(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 $0(t,e,i){var a,s;if(!e||e===Kv(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=rn)!=null&&s[fi]&&(o=`in ${rn[fi]}`),Sv(Ju(o))}function kl(t,e,i,o,n){var a=t,s="",d;ro(()=>{var l;if(s===(s=(l=e())!=null?l:"")){je&&Mi();return}d!==void 0&&(oo(d),d=void 0),s!==""&&(d=Di(()=>{if(je){for(var u=mt.data,f=Mi(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=Io(f);if(f===null)throw Fs(),Yr;Ie&&!n&&$0(f.parentNode,u,s),vo(mt,_),a=mi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Va(p);if((i||o)&&($=vi($)),vo(vi($),$.lastChild),i||o)for(;vi($);)a.before(vi($));else a.before($)}))})}function he(t,e,...i){var o=t,n=oe,a;ro(()=>{n!==(n=e())&&(a&&(oo(a),a=null),Ie&&n==null&&cv(),a=Di(()=>n(o,...i)))},65536),je&&(o=mt)}function xi(t,e,i){je&&Mi();var o=t,n,a;ro(()=>{n!==(n=e())&&(a&&(xn(a),a=null),n&&(a=Di(()=>i(o,n))))},65536),je&&(o=mt)}function El(t,e,i,o,n,a){var w;let s=je;je&&Mi();var d=Ie&&a&&((w=Tt)==null?void 0:w.function[fi]),l,u,f=null;je&&mt.nodeType===1&&(f=mt,Mi());var _=je?mt:t,p,$=$s;ro(()=>{let y=e()||null;var S=n?n():i||y==="svg"?Cu:null;if(y!==l){var I=$s;ap($),p&&(y===null?xn(p,()=>{p=null,u=null}):y===u?is(p):(oo(p),mc(!1))),y&&y!==u&&(p=Di(()=>{if(f=je?f:S?document.createElementNS(S,y):document.createElement(y),Ie&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),vo(f,f),o){je&&jv(y)&&f.append(document.createComment(""));var P=je?vi(f):f.appendChild(on());je&&(P===null?no(!1):mi(P)),o(f,P)}xt.nodes_end=f,_.before(f)})),l=y,l&&(u=l),mc(!0),ap(I)}},65536),s&&(no(!0),mi(_))}var dp;function rg(t){return dp=t.target,new lp(t)}var ns,nr,lp=class{constructor(e){ms(this,ns);ms(this,nr);var a,s;var i=new Map,o=(d,l)=>{var u=es(l);return i.set(d,u),u};let n=new Proxy(Nt(W({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===dl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return O((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});_a(this,nr,(e.hydrate?np:os)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&ka(),_a(this,ns,n.$$events);for(let d of Object.keys(ki(this,nr)))d==="$set"||d==="$destroy"||d==="$on"||to(this,d,{get(){return ki(this,nr)[d]},set(l){ki(this,nr)[d]=l},enumerable:!0});ki(this,nr).$set=d=>{Object.assign(n,d)},ki(this,nr).$destroy=()=>{Ws(ki(this,nr))}}$set(e){ki(this,nr).$set(e)}$on(e,i){ki(this,ns)[e]=ki(this,ns)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,ns)[e].push(o),()=>{ki(this,ns)[e]=ki(this,ns)[e].filter(n=>n!==o)}}$destroy(){ki(this,nr).$destroy()}};ns=new WeakMap,nr=new WeakMap;function G(t,e){Xo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=dp)==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),Ie&&Xv(e.hash,d)}})}function sg(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=sg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ag(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=sg(t))&&(o&&(o+=" "),o+=e);return o}function Pl(t){return typeof t=="object"?ag(t):t!=null?t:""}var lg=[...`
48
+ \r\f\xA0\v\uFEFF`];function cg(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||lg.includes(o[s-1]))&&(d===o.length||lg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function dg(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 cp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function ug(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(cp)),n&&l.push(...Object.keys(n).map(cp));var u=0,f=-1;let y=t.length;for(var _=0;_<y;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===y-1){if(f!==-1){var $=cp(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var w=t.substring(u,_).trim();i+=" "+w+";"}}u=_+1,f=-1}}}}return o&&(i+=dg(o)),n&&(i+=dg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=cg(i,o,a);(!je||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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function up(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(je||n!==e){var a=ug(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(up(t,i==null?void 0:i[0],o[0]),up(t,i==null?void 0:i[1],o[1],"important")):up(t,i,o));return o}var Na=Symbol("class"),Ba=Symbol("style"),mg=Symbol("is custom element"),vg=Symbol("is html");function gg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function He(t,e,i,o){var n=hg(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||I0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Xm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&_g(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function we(t,e,i,o,n=!1){var E;var a=hg(t),s=a[mg],d=!a[vg];let l=je&&s;l&&no(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Pl(i.class):(o||i[Na])&&(i.class=null),i[Ba]&&((E=i.style)!=null||(i.style=null));var p=_g(t);for(let T in i){let V=i[T];if(f&&T==="value"&&V==null){t.value=t.__value="",u[T]=V;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,$,V,o,e==null?void 0:e[Na],i[Na]),u[T]=V,u[Na]=i[Na];continue}if(T==="style"){tt(t,V,e==null?void 0:e[Ba],i[Ba]),u[T]=V,u[Ba]=i[Ba];continue}var w=u[T];if(V!==w){u[T]=V;var y=T[0]+T[1];if(y!=="$$")if(y==="on"){let U={},j="$$"+T,F=T.slice(2);var S=Qv(F);if(Wv(F)&&(F=F.slice(0,-7),U.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(F,u[j],U),u[j]=null}if(V!=null)if(S)t[`__${F}`]=V,at([F]);else{let Z=function(J){u[T].call(this,J)};var A=Z;u[j]=ip(F,t,Z,U)}else S&&(t[`__${F}`]=void 0)}else if(T==="style")He(t,T,V);else if(T==="autofocus")ep(t,!!V);else if(!s&&(T==="__value"||T==="value"&&V!=null))t.value=t.__value=V;else if(T==="selected"&&f)gg(t,V);else{var I=T;d||(I=Gv(I));var P=I==="defaultValue"||I==="defaultChecked";if(V==null&&!s&&!P)if(a[T]=null,I==="value"||I==="checked"){let U=t,j=e===void 0;if(I==="value"){let F=U.defaultValue;U.removeAttribute(I),U.defaultValue=F,U.value=U.__value=j?F:null}else{let F=U.defaultChecked;U.removeAttribute(I),U.defaultChecked=F,U.checked=j?F:!1}}else t.removeAttribute(T);else P||p.includes(I)&&(s||typeof V!="string")?t[I]=V:typeof V!="function"&&He(t,I,V,n)}}}return l&&no(!0),u}function hg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[mg]:t.nodeName.includes("-"),[vg]:t.namespaceURI===Ym}}var pg=new Map;function _g(t){var e=pg.get(t.nodeName);if(e)return e;pg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Yd(o);for(var a in i)i[a].set&&e.push(a);o=Zr(o)}return e}function I0(t,e,i){var o;Ie&&(e==="srcset"&&k0(t,i)||pp((o=t.getAttribute(e))!=null?o:"",i)||wv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function pp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function fg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function k0(t,e){var i=fg(t.srcset),o=fg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(pp(i[s][0],n)||pp(n,i[s][0])))}var E0=Gd?()=>performance.now():()=>Date.now(),Tr={tick:t=>(Gd?requestAnimationFrame:oe)(t),now:()=>E0(),tasks:new Set};function bg(){let t=Tr.now();Tr.tasks.forEach(e=>{e.c(t)||(Tr.tasks.delete(e),e.f())}),Tr.tasks.size!==0&&Tr.tick(bg)}function $g(t){let e;return Tr.tasks.size===0&&Tr.tick(bg),{promise:new Promise(i=>{Tr.tasks.add(e={c:t,f:i})}),abort(){Tr.tasks.delete(e)}}}function vc(t,e){Cl(()=>{t.dispatchEvent(new CustomEvent(e))})}function L0(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 yg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=L0(n.trim());e[s]=a.trim()}return e}var V0=t=>t;function mp(t,e,i,o){var A;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function w(){var V;var E=Ot,T=xt;po(null),io(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{po(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||p==null||p.abort(),vc(e,"introstart"),p=fp(e,w(),$,1,()=>{vc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,vc(e,"outrostart"),$=fp(e,w(),p,0,()=>{vc(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=xt;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&Tl){var I=d;if(!I){for(var P=S.parent;P&&(P.f&65536)!==0;)for(;(P=P.parent)&&(P.f&16)===0;);I=!P||(P.f&32768)!==0}I&&yn(()=>{$t(()=>y.in())})}}function fp(t,e,i,o,n){var a=o===1;if(gs(e)){var s,d=!1;return Xo(()=>{if(!d){var S=e({direction:a?"in":"out"});s=fp(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:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=V0}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=yg(u(0,1));p.push($,$)}var w=()=>1-o,y=t.animate(p,{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 I=o-S,P=e.duration*Math.abs(I),A=[];if(P>0){var E=!1;if(u)for(var T=Math.ceil(P/16.666666666666668),V=0;V<=T;V+=1){var U=S+I*_(V/T),j=yg(u(U,1-U));A.push(j),E||(E=j.overflow==="hidden")}E&&(t.style.overflow="hidden"),w=()=>{var Z=y.currentTime;return S+I*_(Z/P)},f&&$g(()=>{if(y.playState!=="running")return!1;var Z=w();return f(Z,1-Z),!0})}y=t.animate(A,{duration:P,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var ys,Da,Al,hc,xg,_c=class _c{constructor(e){ms(this,hc);ms(this,ys,new WeakMap);ms(this,Da);ms(this,Al);_a(this,Al,e)}observe(e,i){var o=ki(this,ys).get(e)||new Set;return o.add(i),ki(this,ys).set(e,o),Qm(this,hc,xg).call(this).observe(e,ki(this,Al)),()=>{var n=ki(this,ys).get(e);n.delete(i),n.size===0&&(ki(this,ys).delete(e),ki(this,Da).unobserve(e))}}};ys=new WeakMap,Da=new WeakMap,Al=new WeakMap,hc=new WeakSet,xg=function(){var e;return(e=ki(this,Da))!=null?e:_a(this,Da,new ResizeObserver(i=>{for(var o of i){_c.entries.set(o.target,o);for(var n of ki(this,ys).get(o.target)||[])n(o)}}))},Mn(_c,"entries",new WeakMap);var vp=_c;var B0=new vp({box:"border-box"});function Fr(t,e,i){var o=B0.observe(t,()=>i(t[e]));yn(()=>($t(()=>i(t[e])),o))}function wg(t,e){return t===e||(t==null?void 0:t[Ho])===e}function ct(t={},e,i,o){return yn(()=>{var n,a;return mo(()=>{n=a,a=(o==null?void 0:o())||[],$t(()=>{t!==i(...a)&&(e(t,...a),n&&wg(i(...n),t)&&e(null,...n))})}),()=>{Xo(()=>{a&&wg(i(...a),t)&&e(null,...a)})}}),t}function Ir(t=!1){let e=Tt,i=e.l.u;if(!i)return;let o=()=>ac(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ea(()=>{Sg(e,o),hs(i.b)}),We(()=>{let n=$t(()=>i.m.map(tv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&We(()=>{Sg(e,o),hs(i.a)})}function Sg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ie){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;fv(e)},set:o=>{i=o}})}};O0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var O0;function Ut(t){Tt===null&&Pa("onMount"),Dr&&Tt.l!==null?D0(Tt).m.push(t):We(()=>{let e=$t(t);if(typeof e=="function")return e})}function wn(t){Tt===null&&Pa("onDestroy"),Ut(()=>()=>$t(t))}function D0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Ml(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Oa=[];function rr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=oe){let i=null,o=new Set;function n(d){if(ba(t,d)&&(t=d,i)){let l=!Oa.length;for(let u of o)u[1](),Oa.push(u,t);if(l){for(let u=0;u<Oa.length;u+=2)Oa[u][0](Oa[u+1]);Oa.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function gi(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 rr(i,(s,d)=>{let l=!1,u=[],f=0,_=oe,p=()=>{if(f)return;_();let w=e(o?u[0]:u,s,d);a?s(w):_=typeof w=="function"?w:oe},$=n.map((w,y)=>Ml(w,S=>{u[y]=S,f&=~(1<<y),l&&p()},()=>{f|=1<<y}));return l=!0,p(),function(){hs($),_(),l=!1}})}function xe(t){let e;return Ml(t,i=>e=i)(),e}var bc=!1,gp=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:es(void 0),unsubscribe:oe};if(o.store!==t&&!(gp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Ml(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&gp in i?xe(t):r(o.source)}function Ue(){let t={};function e(){sn(()=>{for(var i in t)t[i].unsubscribe();to(t,gp,{enumerable:!1,value:!0})})}return[t,e]}function hp(t){var e=bc;try{return bc=!1,[t(),bc]}finally{bc=e}}var W0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ie&&pv(`${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(Ie?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},W0)}var Q0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(gs(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];gs(n)&&(n=n());let a=Ln(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(gs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Ln(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===dl)return!1;for(let i of t.props)if(gs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){gs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function rs(...t){return new Proxy({props:t},Q0)}function Cg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var U,j;var n=(i&1)!==0,a=!Dr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=hp(()=>t[e]):u=t[e];var f=Ho in t||dl in t,_=s&&((j=(U=Ln(t,e))==null?void 0:U.set)!=null?j:f&&e in t&&(F=>t[e]=F))||void 0,p=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?p=$t(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&uv(e),u=y(),_&&_(u));var S;if(a)S=()=>{var F=t[e];return F===void 0?y():($=!0,w=!1,F)};else{var I=(n?m:Sr)(()=>t[e]);I.f|=131072,S=()=>{var F=r(I);return F!==void 0&&(p=void 0),F===void 0?p:F}}if((i&4)===0)return S;if(_){var P=t.$$legacy;return function(F,Z){return arguments.length>0?((!a||!Z||P||l)&&_(Z?S():F),F):S()}}var A=!1,E=!1,T=es(u),V=m(()=>{var F=S(),Z=r(T);return A?(A=!1,E=!0,Z):(E=!1,T.v=F)});return s&&r(V),n||(V.equals=$a),function(F,Z){if(fl!==null&&(A=E,S(),r(T)),arguments.length>0){let J=Z?r(V):a&&s?ve(F):F;if(!V.equals(J)){if(A=!0,O(T,J),w&&p!==void 0&&(p=J),Cg(V))return F;$t(()=>r(V))}return F}return Cg(V)?V.v:r(V)}}var G0;typeof HTMLElement=="function"&&(G0=class extends HTMLElement{constructor(e,i,o){super();Mn(this,"$$ctor");Mn(this,"$$s");Mn(this,"$$c");Mn(this,"$$cn",!1);Mn(this,"$$d",{});Mn(this,"$$r",!1);Mn(this,"$$p_d",{});Mn(this,"$$l",{});Mn(this,"$$l_u",new Map);Mn(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))}}connectedCallback(){return Ct(this,null,function*(){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(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=Y0(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]=_p(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=rg({component:this.$$ctor,target:this.shadowRoot||this,props:Nt(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=dc(()=>{mo(()=>{var a;this.$$r=!0;for(let s of Iu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=_p(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]=_p(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 Iu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function _p(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 Y0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Tg="5";var Ig,kg,Eg;typeof window!="undefined"&&((Eg=(kg=(Ig=window.__svelte)!=null?Ig:window.__svelte={}).v)!=null?Eg:kg.v=new Set).add(Tg);import{clientChecker as Sx}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as C1,safeStorage as Cx,throttleFn as Tx}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Ix}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as Z0,fillWithDefault as X0,VideoQuality as Pg}from"@vkontakte/videoplayer-shared/es2015";var J0={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:Pg.Q_480P,highQualityLimit:Pg.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}},Ag=t=>X0(t,J0),Mg=t=>Ma("ui-config",t),Qt=()=>Aa("ui-config");var Ll="vk_player_debug_panel_opened";var Lg="videoplayer",Vg="videoplayer";var Ur={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Rg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ng=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Bg=new Set(["ShiftRight","ShiftLeft"]);var Dg=["TIMELINE"],Vl=[...Dg,"GRAPH_BUTTON"],bp=[...Dg,"PLAY_BUTTON"],Rl=[...Vl,"PLAY_BUTTON"];var zr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(zr||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Og,VERSION as e_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as t_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as i_}from"@vkontakte/videoplayer-statistics/es2015";var $c="prod",Ha="1.1.61-dev.7a92fe9e.0";var js=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Hg=Symbol("storeContext"),Fg=Symbol("microStoresContext"),Ug=(t,e)=>{Ma(Hg,t),Ma(Fg,e),$c==="dev"&&(window.app={store:t,microStores:e})},Se=()=>{let t=Aa(Hg);return Og(t,"Store context is empty!"),t},so=()=>{let t=Aa(Fg);return Og(t,"MicroStores context is empty!"),t},ei=(t,e)=>xc(t,t.getValue(),e),xc=(t,e,i)=>rr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),zg=(t,e,i)=>{var I,P,A,E,T,V;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s=(P=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?P:0,d=(E=(A=o.rttEstimation$.getValue())==null?void 0:A.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ha} (core: ${t_}, stat: ${i_}, shared: ${e_})`,f=xe(i.state.errorLog$),_=f.length?`
49
+ `+f.map((U,j)=>{var ne;let F=`${j}) Type: ${U.id}
50
+ `,Z=`Message: ${U.message} (${U.thrown})
51
+ `,J=`Trace: ${(ne=U.thrown)==null?void 0:ne.stack}
52
+ `;return F+Z+J}).join(`
53
+ `):void 0,p=i.state.isAudioDisabled?"disabled":xe(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:u,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:xe(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:p,Position:`${xe(i.state.positionExact$)}s`,State:`${xe(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([U,j])=>j!==void 0).map(([U,j])=>`${U}: ${j}`).join(`
54
+ `)},qg=(t,e,i)=>{var U,j,F,Z;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s={version:Ha,viewport:`${n}x${a}`,volume:Math.round(xe(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 u=o.intrinsicVideoSize$.getValue();u&&(s.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(_&&p?s.buffer=f.end-p:s.buffer=Math.max(f.end-xe(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 I=o.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let P=xe(i.vsid);typeof P=="string"&&(s.vsid=P);let A=(U=t.info.currentVideoStream$.getValue())==null?void 0:U.codec;A&&(s.videoCodec=A);let E=(j=t.info.currentAudioStream$.getValue())==null?void 0:j.codec;E&&(s.audioCodec=E),((F=t.info.currentVideoStream$.getValue())==null?void 0:F.hdr)&&(s.hdr=!0);let V=(Z=t.info.currentAudioStream$.getValue())==null?void 0:Z.language;return V&&(s.audioLanguage=V),s},Kg=(t,e)=>js(t,e,"mp4"),Wg=t=>!t.type,Qg=t=>!!t.type,Gg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},yc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return Ct(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield 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 xp,safeStorage as go}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-core/es2015";var Yg="vk_player_prefer_traffic_saving_enabled",jg="vk_player_preferred_volume",Zg="vk_player_prefer_volume_mute",wp="vk_player_preferred_quality",$p="vk_player_preferred_default_quality_settings",yp="vk_player_preferred_quality_settings_by_video",Xg="vk_player_preferred_stream_language",Jg="vk_player_preferred_rate",eh="vk_player_preferred_autoplay_next",th=t=>t>1?1:t<0?0:t,Sp=t=>go.set(jg,th(t).toString(10)),wc=()=>{let t=go.get(jg);return xp(t)?void 0:th(parseFloat(t))},Cp=(t,e)=>go.set(wp,JSON.stringify({videoId:t,value:e})),Bl=()=>go.remove(wp),Tp=t=>{let e=go.get(wp);if(xp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Bl();return}return o},Ip=(t,e)=>{e?go.set(t,"true"):go.remove(t)},kp=t=>go.get(t)==="true",Ep=t=>Ip(Zg,t),ih=()=>kp(Zg),Nl=t=>Ip(Yg,t),Pp=()=>kp(Yg),oh=()=>go.get(Xg),Ap=t=>go.set(Xg,t),nh=t=>go.set(Jg,JSON.stringify({rate:t})),rh=()=>{let t=go.get(Jg);if(xp(t))return;let{rate:e}=JSON.parse(t);return e},sh=t=>Ip(eh,t),ah=()=>kp(eh),o_=()=>{let t=f=>{go.set($p,JSON.stringify(f))},e=()=>{try{let f=go.get($p);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=go.get(yp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{go.set(yp,JSON.stringify(f))},n=f=>{u(f);let _=f?i():null;if(_&&(_==null?void 0:_.videoId)===f)return Nt(W({},_),{appliesTo:"to-video"});_&&a();let p=e();return p?Nt(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{go.remove(yp)},s=()=>{go.remove($p)},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":Nl(!0);break;case"exact_quality":Cp(f,_.quality)}a(),s()}},u=f=>{let _=Tp(f);if(_){o({type:"exact_quality",videoId:f,quality:_});return}Pp()&&t({type:"traffic_saving",videoId:f}),Nl(!1),Bl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:lh,migrateSettingsToLegacyWay:dh,savePreferredQualitySettings:Sc,savePreferredDefaultQualitySettings:ZP,removePreferredQualitySettingsByVideo:XP,getPreferredDefaultQualitySettings:Cc}=o_();import{PlaybackState as x1}from"@vkontakte/videoplayer-core/es2015";var n_=$e('<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 Dl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=n_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({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 ph,InterfaceLanguage as fh}from"@vkontakte/videoplayer-shared/es2015";var r_={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,
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`},ah=n_;var r_={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`},ch=r_;var s_={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,
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.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh);ss.set(ch.RU,ah);var uh=new Map,Tp=({language:t,pack:e,fallback:i})=>{if(ss.has(t)){let o=ss.get(t);ss.set(t,q(q({},o),e))}else ss.set(t,e);uh.set(t,i)},Ip=t=>ss.has(t),kp=(t,e,i,o)=>{var s;let n=ss.get(t),a=n==null?void 0:n[e];if(dh(a)){let d=(s=uh.get(t))!=null?s:o,l=d?ss.get(d):void 0;a=l==null?void 0:l[e]}return dh(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var u;return(u=i[l])!=null?u:""}):a},F=(t,e)=>{let{interfaceLanguage$:i}=ke(),o=Se(i),n=Wt();return kp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";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 s_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,l_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,yc="?",d_="X-Sentry-Auth",c_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function u_(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=s_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||yc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=l_.exec(i[a]))n={filename:o[2],function:o[1]||yc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=a_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||yc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=yc),e.push(n)}return e.length?{value:ph(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function ph(t){return(t&&t.message||"No error message").split(`
60
- `).filter(i=>!!i)[0]}function p_(t){try{let e=u_(t);if(e)return e}catch(e){}return{value:ph(t),type:t&&t.name,stacktrace:{frames:[]}}}function f_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var xc=class{constructor(e){if(e&&e.dsn){let i=c_.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 At(q({},this.getRequestBlank()),{exception:{values:[p_(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(d_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:f_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function fh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function m_(){return window}var wc=class t extends xc{constructor(e,i=m_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(u=>new u(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",q({},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",q({},e)),this}setUser(e){return this.setKeyState("user",q({},e)),this}clone(){let e=new t(At(q({},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:[q({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(At(q({},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=>fh(i,o))):!1}getRequestBlank(){return q(At(q({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(q({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=>fh(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 At(q({},i),{[o]:a||d?[...a||[],...d||[]]:q(q({},typeof n!="string"?n:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Sc,Subscription as v_}from"@vkontakte/videoplayer-shared/es2015";var Cc=null,Ys=class{constructor(e,i,o={}){!Cc&&e.dsn&&(this.sentryClient=new wc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new v_,this.options=e,this.context=o,Cc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Cc=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:u=[],blackErrorIdList:f,blackErrorCategoryList:_}=s,{errorType:p,category:$}=i;if(Sc($)&&_.includes($)||Sc(p)&&f.includes(p))return;if(Math.random()<=d||Sc($)&&u.includes($)||Sc(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(q({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(q(q({},a),o));try{p&&n.captureMessage(p,i.fatal?Oa.fatal:Oa.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Cc}};var js=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(js||{});var Tc=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()},Ic=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),mh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Ol=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ys=()=>!!Ol(),kc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Ec=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},vh=t=>{let e=window.screen;return(n=>St(void 0,null,function*(){return 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 gh}from"@vkontakte/videoplayer-core/es2015";var hh=()=>({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:gh.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:gh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as g_,ValueSubject as Ep}from"@vkontakte/videoplayer-shared/es2015";var Zs=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:g_(this.onResize.bind(this),300)};this.info={isActive$:new Ep(!1),isEnabled$:new Ep(!1),type:0};this.info.isEnabled$=new Ep(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return St(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return St(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return St(this,null,function*(){!this.isSupported()||!this.isActive()||(yield 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=q({},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)}dispose(){return St(this,null,function*(){this.unregistryEventHandlers(),yield 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 Xs(t){return t instanceof Zs}import{devNull as _h,now as bh}from"@vkontakte/videoplayer-shared/es2015";vv();function Mp(t,e){K(e,!1);let i=ke();Ht(()=>{i.getAdmanWrapper().startPostroll()}),kr(),W()}import{noop as h_}from"@vkontakte/videoplayer-shared/es2015";var __=(t,e)=>{t.stopPropagation(),e()()},b_=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("<div><!></div>"),y_={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 Lp(t,e){K(e,!0),G(t,y_);let[i,o]=Ue(),n=()=>C(u,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,h_),u=ke().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=$_();let p;var $=h(_);{var w=S=>{var I=b_();I.__click=[__,d];var P=h(I);be(),g(I),k(A=>me(P,`${A!=null?A:""} `),[()=>F("skip_ads_now")]),b(S,I)},y=S=>{var I=nr();k(P=>me(I,P),[()=>F("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};B($,S=>{r(f)?S(w):S(y,!1)})}g(_),k(S=>p=ie(_,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),W(),o()}at(["click"]);var x_=L('<button class="svelte-1wy3dql"> </button>'),w_={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 Vp(t,e){K(e,!1),G(t,w_),kr();var i=x_(),o=h(i,!0);g(i),k(n=>me(o,n),[()=>F("visit_advertiser")],Cr),b(t,i),W()}var S_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),C_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),T_={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.`},uh=s_;var ss=new Map;ss.set(fh.EN,uh);ss.set(fh.RU,ch);var mh=new Map,Mp=({language:t,pack:e,fallback:i})=>{if(ss.has(t)){let o=ss.get(t);ss.set(t,W(W({},o),e))}else ss.set(t,e);mh.set(t,i)},Lp=t=>ss.has(t),Vp=(t,e,i,o)=>{var s;let n=ss.get(t),a=n==null?void 0:n[e];if(ph(a)){let d=(s=mh.get(t))!=null?s:o,l=d?ss.get(d):void 0;a=l==null?void 0:l[e]}return ph(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,l)=>{var u;return(u=i[l])!=null?u:""}):a},H=(t,e)=>{let{interfaceLanguage$:i}=Se(),o=xe(i),n=Qt();return Vp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2015";var Fa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Fa||(Fa={}));var a_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,d_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Tc="?",c_="X-Sentry-Auth",u_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function p_(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=a_.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Tc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=d_.exec(i[a]))n={filename:o[2],function:o[1]||Tc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=l_.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Tc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Tc),e.push(n)}return e.length?{value:vh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function vh(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function f_(t){try{let e=p_(t);if(e)return e}catch(e){}return{value:vh(t),type:t&&t.name,stacktrace:{frames:[]}}}function m_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Ic=class{constructor(e){if(e&&e.dsn){let i=u_.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 Nt(W({},this.getRequestBlank()),{exception:{values:[f_(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(c_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:m_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function gh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function v_(){return window}var kc=class t extends Ic{constructor(e,i=v_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(u=>new u(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",W({},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",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Nt(W({},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:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Nt(W({},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=>gh(i,o))):!1}getRequestBlank(){return W(Nt(W({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(W({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=>gh(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 Nt(W({},i),{[o]:a||d?[...a||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof s!="string"?s:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Ec,Subscription as g_}from"@vkontakte/videoplayer-shared/es2015";var Pc=null,Zs=class{constructor(e,i,o={}){!Pc&&e.dsn&&(this.sentryClient=new kc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new g_,this.options=e,this.context=o,Pc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Pc=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:u=[],blackErrorIdList:f,blackErrorCategoryList:_}=s,{errorType:p,category:$}=i;if(Ec($)&&_.includes($)||Ec(p)&&f.includes(p))return;if(Math.random()<=d||Ec($)&&u.includes($)||Ec(p)&&l.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras(W(W({},a),o));try{p&&n.captureMessage(p,i.fatal?Fa.fatal:Fa.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Pc}};var Xs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Xs||{});var Ac=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()},Mc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),hh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Ol=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},xs=()=>!!Ol(),Lc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Vc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},_h=t=>{let e=window.screen;return(n=>Ct(void 0,null,function*(){return 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 bh}from"@vkontakte/videoplayer-core/es2015";var $h=()=>({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:bh.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:bh.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as h_,ValueSubject as Rp}from"@vkontakte/videoplayer-shared/es2015";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:h_(this.onResize.bind(this),300)};this.info={isActive$:new Rp(!1),isEnabled$:new Rp(!1),type:0};this.info.isEnabled$=new Rp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Ct(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return Ct(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return Ct(this,null,function*(){!this.isSupported()||!this.isActive()||(yield 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=W({},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)}dispose(){return Ct(this,null,function*(){this.unregistryEventHandlers(),yield 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 ea(t){return t instanceof Js}import{devNull as yh,now as xh}from"@vkontakte/videoplayer-shared/es2015";_v();function Dp(t,e){q(e,!1);let i=Se();Ut(()=>{i.getAdmanWrapper().startPostroll()}),Ir(),K()}import{noop as __}from"@vkontakte/videoplayer-shared/es2015";var b_=(t,e)=>{t.stopPropagation(),e()()},$_=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>'),y_=L("<div><!></div>"),x_={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 Op(t,e){q(e,!0),G(t,x_);let[i,o]=Ue(),n=()=>C(u,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,__),u=Se().ui.isMobile,f=m(()=>a()>0&&a()>=s());var _=y_();let p;var $=h(_);{var w=S=>{var I=$_();I.__click=[b_,d];var P=h(I);be(),g(I),k(A=>ge(P,`${A!=null?A:""} `),[()=>H("skip_ads_now")]),b(S,I)},y=S=>{var I=or();k(P=>ge(I,P),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};R($,S=>{r(f)?S(w):S(y,!1)})}g(_),k(S=>p=ie(_,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,_),K(),o()}at(["click"]);var w_=L('<button class="svelte-1wy3dql"> </button>'),S_={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 Hp(t,e){q(e,!1),G(t,S_),Ir();var i=w_(),o=h(i,!0);g(i),k(n=>ge(o,n),[()=>H("visit_advertiser")],Sr),b(t,i),K()}var C_=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),T_=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),I_={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
61
61
  360deg,
62
62
  rgba(0, 0, 0, 0) 0%,
63
63
  rgba(0, 0, 0, 0.05) 12%,
@@ -67,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
67
67
  rgba(0, 0, 0, 0.5) 77%,
68
68
  rgba(0, 0, 0, 0.55) 88%,
69
69
  rgba(0, 0, 0, 0.65) 100%
70
- );}`};function Hl(t,e){K(e,!0),G(t,T_);let[i,o]=Ue(),n=()=>C(j,"$canSkipAd",i),a=()=>C(z,"$adPlaybackState",i),s=()=>C(P,"$isMobile",i),d=()=>C(U,"$adPosition",i),l=()=>C(X,"$secondsToWatchBeforeSkipAd",i),u=()=>C(I,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),_=v(e,"adsParams",3,void 0),p=v(e,"adsPreviewParam",3,void 0),$=v(e,"adsAutoplayParam",3,void 0),w=v(e,"duration",3,0),y=ke(),S=Wt(),I=y.state.isEnded$,P=y.ui.isMobile,A=S.ads.isMobileGoToSiteButton,E=te(void 0),T=te(void 0),R=!1,z=y.ads.playbackState,j=y.ads.canSkip,U=y.ads.position,X=y.ads.secondsToWatchBeforeSkip,ee=m(()=>n()&&a()!=="inactive"),ne=m(()=>s()&&a()!=="inactive"&&A);Ht(()=>{var xe;let se=y.getAdmanWrapper();if(_h.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[bh(),f()]}),!f()){se.onAdmanLoadingError();return}let Ne=Me=>{se.initAdman(Me),R=!0},pe=new AbortController,D=()=>{pe.abort()},{width:ce,height:Pe}=Se(y.ui.playerSize),Ge=Se(y.ui.isFullscreen),lt=(xe=$())!=null?xe:Se(y.ui.isAutoplay),Ae={width:ce,height:Pe,isFullscreen:Ge,isAutoplay:lt,adsContainer:r(E),adsVideoElement:r(T),slotId:f(),params:_(),previewParam:p(),duration:w()};return window.AdmanHTML?Ne(Ae):se.loadAdman(pe.signal).then(()=>{Ne(Ae)}).catch(()=>{se.onAdmanLoadingError()}),()=>{_h.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[bh(),f()]}),!R&&D()}});var ue=C_(),de=h(ue);{var Ve=se=>{var Ne=S_();b(se,Ne)};B(de,se=>{s()&&se(Ve)})}var Be=M(de,2);dt(Be,se=>O(T,se),()=>r(T));var J=M(Be,2);{var Le=se=>{Lp(se,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};B(J,se=>{r(ee)&&se(Le)})}var Z=M(J,2);{var N=se=>{Mp(se,{})};B(Z,se=>{u()&&se(N)})}var Re=M(Z,2);{var we=se=>{Vp(se,{})};B(Re,se=>{r(ne)&&se(we)})}g(ue),dt(ue,se=>O(E,se),()=>r(E)),b(t,ue),W(),o()}var ar=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 I_=$e('<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 Rp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=I_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({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 k_=$e('<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 Bp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=k_();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i))),b(t,o)}function Fl(t,e){let i=v(e,"isActive",3,!1);var o=ze(),n=he(o);{var a=d=>{Bp(d,{})},s=d=>{Rp(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var E_=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),P_=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>'),A_={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 {
70
+ );}`};function Hl(t,e){q(e,!0),G(t,I_);let[i,o]=Ue(),n=()=>C(j,"$canSkipAd",i),a=()=>C(U,"$adPlaybackState",i),s=()=>C(P,"$isMobile",i),d=()=>C(F,"$adPosition",i),l=()=>C(Z,"$secondsToWatchBeforeSkipAd",i),u=()=>C(I,"$isVideoEnded",i),f=v(e,"adsSlotId",3,void 0),_=v(e,"adsParams",3,void 0),p=v(e,"adsPreviewParam",3,void 0),$=v(e,"adsAutoplayParam",3,void 0),w=v(e,"duration",3,0),y=Se(),S=Qt(),I=y.state.isEnded$,P=y.ui.isMobile,A=S.ads.isMobileGoToSiteButton,E=te(void 0),T=te(void 0),V=!1,U=y.ads.playbackState,j=y.ads.canSkip,F=y.ads.position,Z=y.ads.secondsToWatchBeforeSkip,J=m(()=>n()&&a()!=="inactive"),ne=m(()=>s()&&a()!=="inactive"&&A);Ut(()=>{var ye;let Ee=y.getAdmanWrapper();if(yh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[xh(),f()]}),!f()){Ee.onAdmanLoadingError();return}let Be=Me=>{Ee.initAdman(Me),V=!0},me=new AbortController,D=()=>{me.abort()},{width:ce,height:Pe}=xe(y.ui.playerSize),Ye=xe(y.ui.isFullscreen),dt=(ye=$())!=null?ye:xe(y.ui.isAutoplay),Ae={width:ce,height:Pe,isFullscreen:Ye,isAutoplay:dt,adsContainer:r(E),adsVideoElement:r(T),slotId:f(),params:_(),previewParam:p(),duration:w()};return window.AdmanHTML?Be(Ae):Ee.loadAdman(me.signal).then(()=>{Be(Ae)}).catch(()=>{Ee.onAdmanLoadingError()}),()=>{yh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[xh(),f()]}),!V&&D()}});var fe=T_(),de=h(fe);{var Re=Ee=>{var Be=C_();b(Ee,Be)};R(de,Ee=>{s()&&Ee(Re)})}var Le=M(de,2);ct(Le,Ee=>O(T,Ee),()=>r(T));var ee=M(Le,2);{var Ve=Ee=>{Op(Ee,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return y.actions.internal.skipAd}})};R(ee,Ee=>{r(J)&&Ee(Ve)})}var X=M(ee,2);{var B=Ee=>{Dp(Ee,{})};R(X,Ee=>{u()&&Ee(B)})}var Ne=M(X,2);{var re=Ee=>{Hp(Ee,{})};R(Ne,Ee=>{r(ne)&&Ee(re)})}g(fe),ct(fe,Ee=>O(E,Ee),()=>r(E)),b(t,fe),K(),o()}var sr=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 k_=$e('<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 Fp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=k_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({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 E_=$e('<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 Up(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=E_();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i))),b(t,o)}function Fl(t,e){let i=v(e,"isActive",3,!1);var o=Ke(),n=pe(o);{var a=d=>{Up(d,{})},s=d=>{Fp(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var P_=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),A_=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>'),M_={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
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
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
73
  animation-name: svelte-opbced-thumb-timer-equalizer-col1;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(2) {left:3px;
@@ -138,9 +138,9 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
138
138
  100% {
139
139
  transform: scaleY(0.6);
140
140
  }
141
- }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function Ul(t,e){K(e,!0),G(t,A_);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=P_();let s;var d=M(h(a),2),l=h(d);{var u=_=>{var p=E_(),$=h(p);Fl($,{isActive:!0}),g(p),b(_,p)},f=_=>{var p=nr();k($=>me(p,$),[()=>ar(e.duration-e.position)]),b(_,p)};B(l,_=>{o()?_(u):_(f,!1)})}g(d),g(a),k(_=>s=ie(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 U_}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as $h}from"@vkontakte/videoplayer-core/es2015";var lr=t=>{t.stopPropagation(),t.preventDefault()},L_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},V_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},R_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},B_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},yh=t=>t.code==="Escape",N_=t=>t.code==="ArrowLeft",zl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},xh=t=>{if(R_(t)){lr(t),V_(t.target);return}B_(t)&&(lr(t),L_(t.target))},Ss=t=>!$h.device.isAndroid&&(t==null?void 0:t.detail)===0||$h.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Fa=(t,e,i)=>St(void 0,null,function*(){yield bo(),t&&!t.classList.contains("opened")&&!e&&Se(i)&&(yield bo(),i.set(!1),t.focus())}),wh=(t,e,i)=>St(void 0,null,function*(){yield bo(),t&&!e&&Se(i)&&(i.set(!1),t.focus())}),Ua=(t,e,i)=>St(void 0,null,function*(){var n;yield bo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),Sh=(t,e)=>St(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Pc=(t,e)=>{xh(t),yh(t)&&(lr(t),e())},Ac=(t,e)=>St(void 0,null,function*(){zl(t,["ArrowRight"])&&(lr(t),e())}),Ch=(t,e,i)=>St(void 0,null,function*(){if(xh(t),N_(t)){lr(t),e();return}yh(t)&&(lr(t),i())}),za=(t,e)=>{zl(t)&&(lr(t),e())},Th=(t,e,i)=>{if(zl(t))lr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),lr(t);return}o==="ArrowRight"&&!e&&(i(!0),lr(t))}},Ih=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},kh=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 Mc,isValidURL as z_}from"@vkontakte/videoplayer-shared/es2015";var Er={"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 Eh}from"@vkontakte/videoplayer-shared/es2015";var O_=(t,e)=>{za(t,()=>e())},H_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),F_={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 Np(t,e){K(e,!0),G(t,F_);let i=v(e,"onClick",3,Eh),o=v(e,"closeContextMenu",3,Eh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=H_();a.__click=n,a.__keydown=[O_,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),W()}at(["click","keydown"]);var ea=(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 q_=(t,e)=>{Pc(t,e)},K_=t=>{t.preventDefault()},W_=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 Dp(t,e){K(e,!0),G(t,Q_);let[i,o]=Ue(),n=()=>C(ne,"$isLive$",i),a=()=>C(Be,"$isPiPEnabled$",i),s=()=>C(ee,"$chromecastState$",i),d=()=>C(J,"$pictureInPictureApiIsActive$",i),l=()=>C(Ve,"$isLooped$",i),u=()=>C(ue,"$positionExact$",i),f=()=>C(z,"$debugPanelVisible",i),_=()=>C(j,"$additionalContextMenuItems$",i),p=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),I=te(0),P=te(0),A=ke(),{pictureInPicture$:E}=so(),T=Wt(),R=A.ui.contextMenu.visible$,z=A.ui.debugPanelVisible,j=A.ui.additionalContextMenuItems$,U=A.ui.t,X=A.actions.internal.togglePictureInPicture,ee=A.state.chromecastState$,ne=A.state.isLive$,ue=A.state.positionExact$,de=A.state.isInteractive,Ve=A.state.looped$,{isEnabled$:Be,isActive$:J}=E,Le=m(()=>{var Ke;return T.features.copyVideoLink&&((Ke=A.callbacks)==null?void 0:Ke.onCopyVideoLink)}),Z=m(()=>r(Le)&&!n()&&!de),N=m(()=>{var Ke;return!!((Ke=A.callbacks)!=null&&Ke.onCopyEmbedCodeClicked)}),Re=m(()=>a()&&s()!==U_.CONNECTED&&!de),we=m(()=>T.features.videoRotate&&!de),se=m(()=>T.showSupport&&!d()),Ne=m(()=>T.features.saveTraceInfoToFile),pe=()=>{var Ke;R.set(!1),(Ke=e.returnFocus)==null||Ke.call(e)},D=(Ke,gt)=>{if(!S()||!w()||!y())return;let Je=S().getBoundingClientRect(),yt=w().getBoundingClientRect();O(I,Ke-yt.left),O(P,gt-yt.top),r(I)+Je.width>yt.width&&O(I,yt.width-Je.width),r(P)+Je.height>yt.height&&O(P,yt.height-Je.height),O(I,_e(Math.max(r(I),0))),O(P,_e(Math.max(r(P),0)))};Ze(()=>{St(this,null,function*(){if(S()&&w()&&y()){yield bo();let{top:gt,left:Je,bottom:yt,right:jt}=$(),je=Je!=null?Je:0,Ct=gt!=null?gt:0,ui=S().getBoundingClientRect();Mc(Je)&&!Mc(jt)&&(je=jt-ui.width),Mc(gt)&&!Mc(yt)&&(Ct=yt-ui.height),je=Math.max(je,0),Ct=Math.max(Ct,0),D(je,Ct)}})});let ce=()=>{A.actions.internal.videoRotate()},Pe=()=>{z_(e.supportLink)&&window.open(e.supportLink,"_blank"),A.actions.internal.reportProblem(),A.actions.internal.pause()},Ge=()=>{let Ke=A.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let gt=new Blob([...Ke],{type:"plain/text"}),Je=window.URL.createObjectURL(gt);Gs(Je,"vk_player_debug_info","txt")}else Ha(A.actions.internal.getDebugTextData())},lt=()=>{let Ke=A.actions.internal.getTraceTextData(),gt=new Blob([...Ke],{type:"application/json"}),Je=window.URL.createObjectURL(gt);Gs(Je,"vk_player_trace_info","json")},Ae=()=>{z.set(!0)},xe=()=>St(this,null,function*(){var Ke;try{X()}finally{(Ke=e.returnFocus)==null||Ke.call(e)}}),Me=()=>{A.actions.internal.setLooped(!l())},rt=()=>{var Ke,gt;if(r(N)){let Je=(gt=(Ke=A.callbacks)==null?void 0:Ke.onCopyEmbedCodeClicked)==null?void 0:gt.call(Ke);Je&&Ha(Je)}},ft=(Ke=!1)=>{var gt,Je;if((gt=A.callbacks)!=null&&gt.onCopyVideoLink){let yt=(Je=A.callbacks)==null?void 0:Je.onCopyVideoLink(Ke,u());yt&&Ha(yt)}},it=m(()=>T.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Bt=m(()=>r(Le)?{id:"copy-link",weight:Er["copy-link"],label:U("menu_copy_video_link"),onClick:()=>ft()}:void 0),st=m(()=>r(Z)?{id:"copy-link-timestamp",weight:Er["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>ft(!0)}:void 0),mt=m(()=>r(N)?{id:"copy-embed-code",weight:Er["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:rt}:void 0),zt=m(()=>r(Re)?{id:"pip",weight:Er.pip,label:U("menu_pip"),onClick:xe}:void 0),Kt=m(()=>({id:"video-loop",weight:Er["video-loop"],label:l()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Me})),De=m(()=>r(we)?{id:"rotate",weight:Er.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:ce}:void 0),re=m(()=>r(se)?{id:"report",weight:Er.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Pe}:void 0),Q=m(()=>({id:"save-debug",weight:Er["save-debug"],label:r(it),onClick:Ge})),ae=m(()=>r(Ne)?{id:"save-trace",weight:Er["save-trace"],label:U("menu_save_debug"),onClick:lt}:void 0),fe=m(()=>({id:"debug-info",weight:Er["debug-info"],label:U("menu_debug_overlay"),ariaLabel:f()?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),onClick:Ae})),Te=m(()=>[r(Bt),r(st),r(mt),r(zt),r(Kt),r(De),r(re),r(Q),r(ae),r(fe),..._()].filter(Ke=>!!Ke).sort(ea));var He=ze(),ct=he(He);{var Nt=Ke=>{var gt=W_();gt.__contextmenu=[K_],gt.__keydown=[q_,pe],yi(gt,21,()=>r(Te),Je=>Je.id,(Je,yt)=>{Np(Je,{get id(){return r(yt).id},get label(){return r(yt).label},get ariaLabel(){return r(yt).ariaLabel},get onClick(){return r(yt).onClick},closeContextMenu:pe})}),g(gt),dt(gt,Je=>S(Je),()=>S()),k(()=>{var Je,yt;return nt(gt,`top: ${(Je=r(P))!=null?Je:""}px; left: ${(yt=r(I))!=null?yt:""}px;`)}),b(Ke,gt)};B(ct,Ke=>{p()&&Ke(Nt)})}b(t,He),W(),o()}at(["contextmenu","keydown"]);var Lc=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 Lc(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 G_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),Y_={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Kl(t,e){K(e,!0),G(t,Y_);let i=v(e,"values",19,()=>[]),o=te(void 0),n=te(null),a=16,s=120,d=60,l=s/d;Ht(()=>{r(o).width=s,r(o).height=a,O(n,_e(r(o).getContext("2d")))});function u(p,$,w,y,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect($,w,y,S)}Ze(()=>{let p="";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,I=$>0?a*(i()[y]/$):0;u(r(n),S,0,l,I),p=I+" "+p,w--}}});var f=G_(),_=h(f);dt(_,p=>O(o,p),()=>r(o)),g(f),b(t,f),W()}import{safeStorage as Ph}from"@vkontakte/videoplayer-shared/es2015";var j_=(t,e)=>{t.stopPropagation(),Ph.remove(Ll),e.set(!1)},Z_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),cb=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>'),ub={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 Wl(t,e){K(e,!0),G(t,ub);let[i,o]=Ue(),n=()=>C(d,"$isMobile",i),a=ke(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=te(_e(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=te(0),_=te(0),p=te(0),$=new qa(60),w=new qa(60),y=new qa(60),S=te(_e([])),I=te(_e([])),P=te(_e([])),A=F("aria_label_debug_panel");Ht(()=>{Ph.set(Ll,"true"),a.actions.internal.startLogging(),u&&(O(_,_e(u.getVideoPlaybackQuality().droppedVideoFrames)),O(f,_e(u.getVideoPlaybackQuality().totalVideoFrames)));let Q=window.setInterval(()=>{O(l,_e(a.actions.internal.getDebugPanelData()))},500),ae;return u&&(ae=window.setInterval(()=>{if(u){O(_,_e(u.getVideoPlaybackQuality().droppedVideoFrames));let fe=u.getVideoPlaybackQuality().totalVideoFrames;O(p,fe-r(f)),O(f,_e(fe)),$.push(r(p)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(S,_e($.getValuesFromBottom())),O(I,_e(w.getValuesFromBottom())),O(P,_e(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Q),ae&&clearInterval(ae)}});var E=cb();let T;Oe(E,"aria-label",A);var R=h(E);R.__click=[j_,s];var z=M(R,2),j=h(z),U=M(h(j),2),X=h(U,!0);g(U),g(j);var ee=M(j,2);{var ne=Q=>{var ae=Z_(),fe=M(h(ae),2),Te=h(fe,!0);g(fe),g(ae),k(()=>me(Te,r(l).id)),b(Q,ae)};B(ee,Q=>{r(l).id&&Q(ne)})}var ue=M(ee,2);{var de=Q=>{var ae=X_(),fe=M(h(ae),2),Te=h(fe,!0);g(fe),g(ae),k(()=>me(Te,r(l).vsid)),b(Q,ae)};B(ue,Q=>{r(l).vsid&&Q(de)})}var Ve=M(ue,2);{var Be=Q=>{var ae=J_(),fe=M(h(ae),2),Te=h(fe,!0);g(fe),g(ae),k(()=>me(Te,r(l).provider)),b(Q,ae)};B(Ve,Q=>{r(l).provider&&Q(Be)})}var J=M(Ve,2);{var Le=Q=>{var ae=eb(),fe=M(h(ae),2),Te=h(fe);g(fe),g(ae),k(()=>{var He,ct;return me(Te,`Video: ${r(l).videoCodec||""} ${(He=r(l).hdr?"(HDR)":"")!=null?He:""}
141
+ }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function Ul(t,e){q(e,!0),G(t,M_);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=A_();let s;var d=M(h(a),2),l=h(d);{var u=_=>{var p=P_(),$=h(p);Fl($,{isActive:!0}),g(p),b(_,p)},f=_=>{var p=or();k($=>ge(p,$),[()=>sr(e.duration-e.position)]),b(_,p)};R(l,_=>{o()?_(u):_(f,!1)})}g(d),g(a),k(_=>s=ie(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),K()}var Ua=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as z_}from"@vkontakte/videoplayer-core/es2015";import{clientChecker as wh}from"@vkontakte/videoplayer-core/es2015";var ar=t=>{t.stopPropagation(),t.preventDefault()},V_=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},R_=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},N_=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},B_=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Sh=t=>t.code==="Escape",D_=t=>t.code==="ArrowLeft",zl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Ch=t=>{if(N_(t)){ar(t),R_(t.target);return}B_(t)&&(ar(t),V_(t.target))},Cs=t=>!wh.device.isAndroid&&(t==null?void 0:t.detail)===0||wh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",za=(t,e,i)=>Ct(void 0,null,function*(){yield fo(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(yield fo(),i.set(!1),t.focus())}),Th=(t,e,i)=>Ct(void 0,null,function*(){yield fo(),t&&!e&&xe(i)&&(i.set(!1),t.focus())}),qa=(t,e,i)=>Ct(void 0,null,function*(){var n;yield fo(),!!t&&e&&i&&((n=t.children[0])==null||n.focus())}),Ih=(t,e)=>Ct(void 0,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Rc=(t,e)=>{Ch(t),Sh(t)&&(ar(t),e())},Nc=(t,e)=>Ct(void 0,null,function*(){zl(t,["ArrowRight"])&&(ar(t),e())}),kh=(t,e,i)=>Ct(void 0,null,function*(){if(Ch(t),D_(t)){ar(t),e();return}Sh(t)&&(ar(t),i())}),Ka=(t,e)=>{zl(t)&&(ar(t),e())},Eh=(t,e,i)=>{if(zl(t))ar(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),ar(t);return}o==="ArrowRight"&&!e&&(i(!0),ar(t))}},Ph=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Ah=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 Bc,isValidURL as q_}from"@vkontakte/videoplayer-shared/es2015";var kr={"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 Mh}from"@vkontakte/videoplayer-shared/es2015";var H_=(t,e)=>{Ka(t,()=>e())},F_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),U_={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function zp(t,e){q(e,!0),G(t,U_);let i=v(e,"onClick",3,Mh),o=v(e,"closeContextMenu",3,Mh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=F_();a.__click=n,a.__keydown=[H_,n];var s=h(a,!0);g(a),k(()=>{var d;He(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),He(a,"data-testid",e.id),ge(s,e.label)}),b(t,a),K()}at(["click","keydown"]);var ia=(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 K_=(t,e)=>{Rc(t,e)},W_=t=>{t.preventDefault()},Q_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),G_={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function qp(t,e){q(e,!0),G(t,G_);let[i,o]=Ue(),n=()=>C(ne,"$isLive$",i),a=()=>C(Le,"$isPiPEnabled$",i),s=()=>C(J,"$chromecastState$",i),d=()=>C(ee,"$pictureInPictureApiIsActive$",i),l=()=>C(Re,"$isLooped$",i),u=()=>C(fe,"$positionExact$",i),f=()=>C(U,"$debugPanelVisible",i),_=()=>C(j,"$additionalContextMenuItems$",i),p=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),I=te(0),P=te(0),A=Se(),{pictureInPicture$:E}=so(),T=Qt(),V=A.ui.contextMenu.visible$,U=A.ui.debugPanelVisible,j=A.ui.additionalContextMenuItems$,F=A.ui.t,Z=A.actions.internal.togglePictureInPicture,J=A.state.chromecastState$,ne=A.state.isLive$,fe=A.state.positionExact$,de=A.state.isInteractive,Re=A.state.looped$,{isEnabled$:Le,isActive$:ee}=E,Ve=m(()=>{var Ze;return T.features.copyVideoLink&&((Ze=A.callbacks)==null?void 0:Ze.onCopyVideoLink)}),X=m(()=>r(Ve)&&!n()&&!de),B=m(()=>{var Ze;return!!((Ze=A.callbacks)!=null&&Ze.onCopyEmbedCodeClicked)}),Ne=m(()=>a()&&s()!==z_.CONNECTED&&!de),re=m(()=>T.features.videoRotate&&!de),Ee=m(()=>T.showSupport&&!d()),Be=m(()=>T.features.saveTraceInfoToFile),me=()=>{var Ze;V.set(!1),(Ze=e.returnFocus)==null||Ze.call(e)},D=(Ze,pt)=>{if(!S()||!w()||!y())return;let Je=S().getBoundingClientRect(),Pt=w().getBoundingClientRect();O(I,Ze-Pt.left),O(P,pt-Pt.top),r(I)+Je.width>Pt.width&&O(I,Pt.width-Je.width),r(P)+Je.height>Pt.height&&O(P,Pt.height-Je.height),O(I,ve(Math.max(r(I),0))),O(P,ve(Math.max(r(P),0)))};We(()=>{Ct(this,null,function*(){if(S()&&w()&&y()){yield fo();let{top:pt,left:Je,bottom:Pt,right:ai}=$(),Ge=Je!=null?Je:0,ot=pt!=null?pt:0,ii=S().getBoundingClientRect();Bc(Je)&&!Bc(ai)&&(Ge=ai-ii.width),Bc(pt)&&!Bc(Pt)&&(ot=Pt-ii.height),Ge=Math.max(Ge,0),ot=Math.max(ot,0),D(Ge,ot)}})});let ce=()=>{A.actions.internal.videoRotate()},Pe=()=>{q_(e.supportLink)&&window.open(e.supportLink,"_blank"),A.actions.internal.reportProblem(),A.actions.internal.pause()},Ye=()=>{let Ze=A.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let pt=new Blob([...Ze],{type:"plain/text"}),Je=window.URL.createObjectURL(pt);js(Je,"vk_player_debug_info","txt")}else Ua(A.actions.internal.getDebugTextData())},dt=()=>{let Ze=A.actions.internal.getTraceTextData(),pt=new Blob([...Ze],{type:"application/json"}),Je=window.URL.createObjectURL(pt);js(Je,"vk_player_trace_info","json")},Ae=()=>{U.set(!0)},ye=()=>Ct(this,null,function*(){var Ze;try{Z()}finally{(Ze=e.returnFocus)==null||Ze.call(e)}}),Me=()=>{A.actions.internal.setLooped(!l())},rt=()=>{var Ze,pt;if(r(B)){let Je=(pt=(Ze=A.callbacks)==null?void 0:Ze.onCopyEmbedCodeClicked)==null?void 0:pt.call(Ze);Je&&Ua(Je)}},vt=(Ze=!1)=>{var pt,Je;if((pt=A.callbacks)!=null&&pt.onCopyVideoLink){let Pt=(Je=A.callbacks)==null?void 0:Je.onCopyVideoLink(Ze,u());Pt&&Ua(Pt)}},lt=m(()=>T.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),kt=m(()=>r(Ve)?{id:"copy-link",weight:kr["copy-link"],label:F("menu_copy_video_link"),onClick:()=>vt()}:void 0),st=m(()=>r(X)?{id:"copy-link-timestamp",weight:kr["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>vt(!0)}:void 0),gt=m(()=>r(B)?{id:"copy-embed-code",weight:kr["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:rt}:void 0),Kt=m(()=>r(Ne)?{id:"pip",weight:kr.pip,label:F("menu_pip"),onClick:ye}:void 0),jt=m(()=>({id:"video-loop",weight:kr["video-loop"],label:l()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Me})),De=m(()=>r(re)?{id:"rotate",weight:kr.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:ce}:void 0),se=m(()=>r(Ee)?{id:"report",weight:kr.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:Pe}:void 0),Q=m(()=>({id:"save-debug",weight:kr["save-debug"],label:r(lt),onClick:Ye})),ae=m(()=>r(Be)?{id:"save-trace",weight:kr["save-trace"],label:F("menu_save_debug"),onClick:dt}:void 0),_e=m(()=>({id:"debug-info",weight:kr["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(kt),r(st),r(gt),r(Kt),r(jt),r(De),r(se),r(Q),r(ae),r(_e),..._()].filter(Ze=>!!Ze).sort(ia));var Oe=Ke(),ut=pe(Oe);{var Gt=Ze=>{var pt=Q_();pt.__contextmenu=[W_],pt.__keydown=[K_,me],yi(pt,21,()=>r(Ce),Je=>Je.id,(Je,Pt)=>{zp(Je,{get id(){return r(Pt).id},get label(){return r(Pt).label},get ariaLabel(){return r(Pt).ariaLabel},get onClick(){return r(Pt).onClick},closeContextMenu:me})}),g(pt),ct(pt,Je=>S(Je),()=>S()),k(()=>{var Je,Pt;return tt(pt,`top: ${(Je=r(P))!=null?Je:""}px; left: ${(Pt=r(I))!=null?Pt:""}px;`)}),b(Ze,pt)};R(ut,Ze=>{p()&&Ze(Gt)})}b(t,Oe),K(),o()}at(["contextmenu","keydown"]);var Dc=class{constructor(e){this.value=e,this.next=null}};var Wa=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Dc(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Y_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),j_={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function Kl(t,e){q(e,!0),G(t,j_);let i=v(e,"values",19,()=>[]),o=te(void 0),n=te(null),a=16,s=120,d=60,l=s/d;Ut(()=>{r(o).width=s,r(o).height=a,O(n,ve(r(o).getContext("2d")))});function u(p,$,w,y,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect($,w,y,S)}We(()=>{let p="";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,I=$>0?a*(i()[y]/$):0;u(r(n),S,0,l,I),p=I+" "+p,w--}}});var f=Y_(),_=h(f);ct(_,p=>O(o,p),()=>r(o)),g(f),b(t,f),K()}import{safeStorage as Lh}from"@vkontakte/videoplayer-shared/es2015";var Z_=(t,e)=>{t.stopPropagation(),Lh.remove(Ll),e.set(!1)},X_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),J_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),eb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),tb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),ib=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),ob=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),nb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),rb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),sb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),ab=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),lb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),db=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),cb=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),ub=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),pb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Wl(t,e){q(e,!0),G(t,pb);let[i,o]=Ue(),n=()=>C(d,"$isMobile",i),a=Se(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=te(ve(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=te(0),_=te(0),p=te(0),$=new Wa(60),w=new Wa(60),y=new Wa(60),S=te(ve([])),I=te(ve([])),P=te(ve([])),A=H("aria_label_debug_panel");Ut(()=>{Lh.set(Ll,"true"),a.actions.internal.startLogging(),u&&(O(_,ve(u.getVideoPlaybackQuality().droppedVideoFrames)),O(f,ve(u.getVideoPlaybackQuality().totalVideoFrames)));let Q=window.setInterval(()=>{O(l,ve(a.actions.internal.getDebugPanelData()))},500),ae;return u&&(ae=window.setInterval(()=>{if(u){O(_,ve(u.getVideoPlaybackQuality().droppedVideoFrames));let _e=u.getVideoPlaybackQuality().totalVideoFrames;O(p,_e-r(f)),O(f,ve(_e)),$.push(r(p)),r(l).speed&&w.push(r(l).speed),r(l).bitrate&&y.push(r(l).bitrate),O(S,ve($.getValuesFromBottom())),O(I,ve(w.getValuesFromBottom())),O(P,ve(y.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Q),ae&&clearInterval(ae)}});var E=ub();let T;He(E,"aria-label",A);var V=h(E);V.__click=[Z_,s];var U=M(V,2),j=h(U),F=M(h(j),2),Z=h(F,!0);g(F),g(j);var J=M(j,2);{var ne=Q=>{var ae=X_(),_e=M(h(ae),2),Ce=h(_e,!0);g(_e),g(ae),k(()=>ge(Ce,r(l).id)),b(Q,ae)};R(J,Q=>{r(l).id&&Q(ne)})}var fe=M(J,2);{var de=Q=>{var ae=J_(),_e=M(h(ae),2),Ce=h(_e,!0);g(_e),g(ae),k(()=>ge(Ce,r(l).vsid)),b(Q,ae)};R(fe,Q=>{r(l).vsid&&Q(de)})}var Re=M(fe,2);{var Le=Q=>{var ae=eb(),_e=M(h(ae),2),Ce=h(_e,!0);g(_e),g(ae),k(()=>ge(Ce,r(l).provider)),b(Q,ae)};R(Re,Q=>{r(l).provider&&Q(Le)})}var ee=M(Re,2);{var Ve=Q=>{var ae=tb(),_e=M(h(ae),2),Ce=h(_e);g(_e),g(ae),k(()=>{var Oe,ut;return ge(Ce,`Video: ${r(l).videoCodec||""} ${(Oe=r(l).hdr?"(HDR)":"")!=null?Oe:""}
142
142
  &
143
- Audio: ${r(l).audioCodec||""} ${(ct=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?ct:""}`)}),b(Q,ae)};B(J,Q=>{(r(l).videoCodec||r(l).audioCodec)&&Q(Le)})}var Z=M(J,2);{var N=Q=>{var ae=tb(),fe=M(h(ae),2),Te=h(fe,!0);g(fe),g(ae),k(()=>me(Te,r(l).viewport)),b(Q,ae)};B(Z,Q=>{r(l).viewport&&Q(N)})}var Re=M(Z,2);{var we=Q=>{var ae=ib(),fe=M(h(ae),2),Te=h(fe,!0);g(fe),g(ae),k(()=>me(Te,r(l).videoSize)),b(Q,ae)};B(Re,Q=>{r(l).videoSize&&Q(we)})}var se=M(Re,2);{var Ne=Q=>{var ae=ob(),fe=M(h(ae),2),Te=h(fe,!0);g(fe),g(ae),k(()=>me(Te,r(l).cdn)),b(Q,ae)};B(se,Q=>{r(l).cdn&&Q(Ne)})}var pe=M(se,2);{var D=Q=>{var ae=nb(),fe=M(h(ae),2),Te=h(fe);g(fe),g(ae),k(()=>{var He;return me(Te,`${(He=r(l).volume)!=null?He:""} %`)}),b(Q,ae)};B(pe,Q=>{r(l).volume&&Q(D)})}var ce=M(pe,2);{var Pe=Q=>{var ae=rb(),fe=M(h(ae),2),Te=h(fe);g(fe),g(ae),k(He=>me(Te,`${He!=null?He:""} s`),[()=>r(l).buffer.toFixed(2)]),b(Q,ae)};B(ce,Q=>{r(l).buffer&&Q(Pe)})}var Ge=M(ce,2);{var lt=Q=>{var ae=sb(),fe=M(h(ae),2),Te=h(fe);g(fe),g(ae),k(He=>me(Te,`${He!=null?He:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(Q,ae)};B(Ge,Q=>{r(l).liveLatency&&Q(lt)})}var Ae=M(Ge,2);{var xe=Q=>{var ae=ab(),fe=M(h(ae),2),Te=h(fe,!0);g(fe),g(ae),k(He=>me(Te,He),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:He})=>He).map(({value:He,title:ct})=>`${ct} ${((He!=null?He:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Q,ae)};B(Ae,Q=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&Q(xe)})}var Me=M(Ae,2),rt=M(h(Me),2),ft=h(rt);g(rt),g(Me);var it=M(Me,2);{var Bt=Q=>{var ae=lb(),fe=M(h(ae),2);Kl(fe,{get values(){return r(I)}});var Te=M(fe,2),He=h(Te);g(Te),g(ae),k(ct=>me(He,`${ct!=null?ct:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(Q,ae)};B(it,Q=>{r(l).speed&&Q(Bt)})}var st=M(it,2);{var mt=Q=>{var ae=db(),fe=M(h(ae),2);Kl(fe,{get values(){return r(P)}});var Te=M(fe,2),He=h(Te);g(Te),g(ae),k(ct=>me(He,`${ct!=null?ct:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(Q,ae)};B(st,Q=>{r(l).bitrate&&Q(mt)})}var zt=M(st,2),Kt=M(h(zt),2);Kl(Kt,{get values(){return r(S)}});var De=M(Kt,2),re=h(De,!0);g(De),g(zt),g(z),g(E),k(Q=>{var ae,fe;T=ie(E,1,"container svelte-4deykz",null,T,Q),me(X,r(l).version),me(ft,`${(ae=r(_))!=null?ae:""} / ${(fe=r(f))!=null?fe:""} frames`),me(re,r(p))},[()=>({"container-mobile":n()})]),b(t,E),W(),o()}at(["click"]);import{noop as pb}from"@vkontakte/videoplayer-shared/es2015";var fb=(t,e)=>{t.stopPropagation(),e()()},mb=L('<div class="close svelte-1ome55p"></div>'),vb={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 ta(t,e){K(e,!0),G(t,vb);let i=v(e,"onClick",3,pb);var o=mb();o.__click=[fb,i],b(t,o),W()}at(["click"]);import{noop as gb}from"@vkontakte/videoplayer-shared/es2015";var hb=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>'),_b={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){K(e,!0),G(t,_b);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,gb),n=5e3,a=te(void 0),s,d,l=te(0),u;Ze(()=>{i()&&(d=Date.now(),O(l,_e(requestAnimationFrame(_))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),O(l,0))},_=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<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*u),s==null||s.stroke(),O(l,_e(requestAnimationFrame(_)))):o()()};Ht(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),wn(()=>{f()});var p=hb(),$=h(p);dt($,w=>O(a,w),()=>r(a)),be(2),g(p),b(t,p),W()}var bb=(t,e,i)=>{e(!1),i()},$b=L('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),yb={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 Op(t,e){K(e,!0),G(t,yb);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=ke(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),$()};Ht(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=ze(),I=he(S);{var P=A=>{var E=$b(),T=M(he(E),2),R=h(T),z=h(R),j=h(z,!0);g(z);var U=M(z,2);ta(U,{onClick:y}),g(R);var X=M(R,2);X.__click=[bb,u,_];var ee=h(X),ne=h(ee),ue=h(ne);let de;var Ve=M(ue,2);{var Be=N=>{let Re=m(()=>a()&&n());Ql(N,{get isRunning(){return r(Re)},onTimerEnded:w})};B(Ve,N=>{n()&&N(Be)})}g(ne),g(ee);var J=M(ee,2),Le=h(J),Z=h(Le,!0);g(Le),g(J),g(X),g(T),k((N,Re)=>{me(j,N),nt(ne,`background-image: url('${e.thumb}')`),de=ie(ue,1,"thumb-overlay svelte-jfbaax",null,de,Re),me(Z,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,E)};B(I,A=>{e.isHide||A(P)})}b(t,S),W(),o()}at(["click"]);import{PlaybackState as ia}from"@vkontakte/videoplayer-core/es2015";import{checkNever as wb}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Sn}from"@vkontakte/videoplayer-statistics/es2015";var Hp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Fp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Vc=(t,e,i)=>{let o=Hp(e,i);e<1&&t.actions.internal.setVolume(o)},Rc=(t,e,i)=>{let o=Fp(e,i);e>0&&t.actions.internal.setVolume(o)};var Cs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Sb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Cb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Up(t,e){var Kt,De;K(e,!0),G(t,Cb);let[i,o]=Ue(),n=()=>C(j,"$playbackState$",i),a=()=>C(U,"$adPlaybackState",i),s=()=>C(ue,"$disabledControls$",i),d=()=>C(X,"$positionExact$",i),l=()=>C(ee,"$duration$",i),u=()=>C(D,"$isAudioAvailable$",i),f=()=>C(ne,"$volume$",i),_=()=>C(J,"$availablePlaybackRates$",i),p=()=>C(Be,"$currentPlaybackRate$",i),$=()=>C(Pe,"$isInteractiveTime$",i),w=()=>C(Ge,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(we,"$isEnded$",i),S=()=>C(de,"$muted$",i),I=()=>C(Ve,"$currentSubtitle$",i),P=()=>C(se,"$overlayContainer$",i),A=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=ke(),R=Wt(),z=T.getLogger().createComponentLog("KeyboardControls component"),j=T.state.playbackState$,U=T.ads.playbackState,X=T.state.positionExact$,ee=T.state.duration$,ne=T.state.volume$,ue=T.ui.controls.disabledControls$,de=T.state.muted$,Ve=T.state.currentSubtitle$,Be=T.state.currentPlaybackRate$,J=T.state.availablePlaybackRates$,Le=T.ui.contextMenu.openedByHotKey$,Z=T.ui.contextMenu.lastActiveElem$,N=T.ui.contextMenu.visible$,Re=T.ui.contextMenu.position$,we=T.state.isEnded$,se=T.ui.overlayContainer$,Ne=(Kt=T.callbacks)==null?void 0:Kt.onAudioDoesNotExistHint,pe=(De=T.callbacks)==null?void 0:De.onAudioDisabledHint,D=T.state.isAudioAvailable$,ce=T.state.isAudioDisabled,Pe=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ge}=so(),lt=0,Ae=!0,xe=te(void 0),Me=()=>{var re;return(re=r(xe))==null?void 0:re.focus()},rt=re=>(re!==Ae&&(Ae=re,lt=0),lt+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*lt)/1e3),ft=re=>{var yt,jt;let Q=re.target,ae=(yt=Q==null?void 0:Q.getAttribute("role"))==null?void 0:yt.includes("menuitem"),fe=Q.classList.contains("btn"),Te=re.code;if(fe&&Te==="Space")return;let He=Lg.has(Te);if(ae&&He)return;let ct=!Mg.has(Te);if(re.ctrlKey&&ct||re.altKey&&ct||re.metaKey)return;let Nt=ae&&Te==="Escape";Vg.has(Te)||Nt||e.hideContextMenu();let Ke=n()===ia.PLAYING||n()===ia.PAUSED,gt=e.isAds&&(a()==="paused"||a()==="playing"),Je=!gt&&!s().has("TIMELINE");if(Ke||gt)switch(z({message:`key down, code: ${Te}`}),Te){case"KeyJ":case"ArrowLeft":{if(!Je)break;if(re.ctrlKey||re.altKey){let je=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(je),je&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:je.text}),re.preventDefault()}else{let je=re.shiftKey?rt(!1):R.controls.seekStepKeyboard/1e3,Ct=Math.max(d()-je,0);d()>0&&(T.actions.internal.seekTime(Ct,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:je.toString()}),re.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Je)break;if(re.ctrlKey||re.altKey){let je=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(je),je&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:je.text}),re.preventDefault()}else{let je=re.shiftKey?rt(!0):R.controls.seekStepKeyboard/1e3,Ct=Math.min(d()+je,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(Ct,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:je.toString()}),re.preventDefault())}break}case"ArrowUp":{if(Cs({isAudioDisabled:ce,audioDisabledHintCallback:pe,isAudioAvailable:u(),audioIsNotExistHintCallback:Ne})){let je=f(),Ct=R.controls.volumeStepKeyboard,ui=je<=1;if(Vc(T,je,Ct),ui){let si=Math.round(Hp(je,Ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:si}})}}re.preventDefault();break}case"ArrowDown":{if(Cs({isAudioDisabled:ce,audioDisabledHintCallback:pe,isAudioAvailable:u(),audioIsNotExistHintCallback:Ne})){let je=f(),Ct=R.controls.volumeStepKeyboard,ui=je>=0;if(Rc(T,je,Ct),ui){let si=Math.round(Fp(je,Ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:si}})}}re.preventDefault();break}case"Comma":{if(re.shiftKey){T.actions.internal.decrementPlaybackRate();let je=_().find(Ct=>Ct.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:je==null?void 0:je.displayValue}),re.preventDefault()}else{if(gt||n()!==ia.PAUSED)break;let je=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(je,Sn.DOUBLE_TAP),re.preventDefault())}break}case"Period":{if(re.shiftKey){T.actions.internal.incrementPlaybackRate();let je=_().find(Ct=>Ct.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:je==null?void 0:je.displayValue}),re.preventDefault()}else{if(gt||n()!==ia.PAUSED)break;let je=Math.min(d()+R.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(je,Sn.DOUBLE_TAP),re.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Ge.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let je="PLAY";n()===ia.PAUSED?je="PAUSE":y()&&(je="REPLAY"),e.showHotKeyHelpers({type:je})}re.preventDefault();break;case"KeyM":{Cs({isAudioDisabled:ce,audioDisabledHintCallback:pe,isAudioAvailable:u(),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(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(jt=I())==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 je=kh(P());Re.set(je),Z.set(Q),Le.set(!0),N.set(!0),re.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,Sn.DOUBLE_TAP),re.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,Sn.DOUBLE_TAP),re.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,Sn.DOUBLE_TAP),re.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,Sn.DOUBLE_TAP),re.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,Sn.DOUBLE_TAP),re.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,Sn.DOUBLE_TAP),re.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,Sn.DOUBLE_TAP),re.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,Sn.DOUBLE_TAP),re.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,Sn.DOUBLE_TAP),re.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,Sn.DOUBLE_TAP),re.preventDefault();break;case"Slash":{re.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),re.preventDefault());break}case"KeyN":re.shiftKey&&A()&&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:wb(Te);break}},it=re=>{let Q=re.code;if(re.ctrlKey||re.altKey||re.metaKey)return;let ae=n()===ia.PLAYING||n()===ia.PAUSED,fe=e.isAds&&(a()==="paused"||a()==="playing");if(ae||fe)switch(Q){case"ShiftLeft":case"ShiftRight":lt=0;break}},Bt=F("aria_label_video_player");var st=Sb();st.__keyup=it,st.__keydown=ft,Oe(st,"aria-label",Bt);var mt=h(st);ve(mt,()=>{var re;return(re=e.children)!=null?re:oe}),g(st),dt(st,re=>O(xe,re),()=>r(xe)),b(t,st);var zt=W({focus:Me});return o(),zt}at(["keyup","keydown"]);var Tb=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>'),Ib={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);}
143
+ Audio: ${r(l).audioCodec||""} ${(ut=r(l).audioLanguage?`(${r(l).audioLanguage})`:"")!=null?ut:""}`)}),b(Q,ae)};R(ee,Q=>{(r(l).videoCodec||r(l).audioCodec)&&Q(Ve)})}var X=M(ee,2);{var B=Q=>{var ae=ib(),_e=M(h(ae),2),Ce=h(_e,!0);g(_e),g(ae),k(()=>ge(Ce,r(l).viewport)),b(Q,ae)};R(X,Q=>{r(l).viewport&&Q(B)})}var Ne=M(X,2);{var re=Q=>{var ae=ob(),_e=M(h(ae),2),Ce=h(_e,!0);g(_e),g(ae),k(()=>ge(Ce,r(l).videoSize)),b(Q,ae)};R(Ne,Q=>{r(l).videoSize&&Q(re)})}var Ee=M(Ne,2);{var Be=Q=>{var ae=nb(),_e=M(h(ae),2),Ce=h(_e,!0);g(_e),g(ae),k(()=>ge(Ce,r(l).cdn)),b(Q,ae)};R(Ee,Q=>{r(l).cdn&&Q(Be)})}var me=M(Ee,2);{var D=Q=>{var ae=rb(),_e=M(h(ae),2),Ce=h(_e);g(_e),g(ae),k(()=>{var Oe;return ge(Ce,`${(Oe=r(l).volume)!=null?Oe:""} %`)}),b(Q,ae)};R(me,Q=>{r(l).volume&&Q(D)})}var ce=M(me,2);{var Pe=Q=>{var ae=sb(),_e=M(h(ae),2),Ce=h(_e);g(_e),g(ae),k(Oe=>ge(Ce,`${Oe!=null?Oe:""} s`),[()=>r(l).buffer.toFixed(2)]),b(Q,ae)};R(ce,Q=>{r(l).buffer&&Q(Pe)})}var Ye=M(ce,2);{var dt=Q=>{var ae=ab(),_e=M(h(ae),2),Ce=h(_e);g(_e),g(ae),k(Oe=>ge(Ce,`${Oe!=null?Oe:""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(Q,ae)};R(Ye,Q=>{r(l).liveLatency&&Q(dt)})}var Ae=M(Ye,2);{var ye=Q=>{var ae=lb(),_e=M(h(ae),2),Ce=h(_e,!0);g(_e),g(ae),k(Oe=>ge(Ce,Oe),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Oe})=>Oe).map(({value:Oe,title:ut})=>`${ut} ${((Oe!=null?Oe:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Q,ae)};R(Ae,Q=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&Q(ye)})}var Me=M(Ae,2),rt=M(h(Me),2),vt=h(rt);g(rt),g(Me);var lt=M(Me,2);{var kt=Q=>{var ae=db(),_e=M(h(ae),2);Kl(_e,{get values(){return r(I)}});var Ce=M(_e,2),Oe=h(Ce);g(Ce),g(ae),k(ut=>ge(Oe,`${ut!=null?ut:""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(Q,ae)};R(lt,Q=>{r(l).speed&&Q(kt)})}var st=M(lt,2);{var gt=Q=>{var ae=cb(),_e=M(h(ae),2);Kl(_e,{get values(){return r(P)}});var Ce=M(_e,2),Oe=h(Ce);g(Ce),g(ae),k(ut=>ge(Oe,`${ut!=null?ut:""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(Q,ae)};R(st,Q=>{r(l).bitrate&&Q(gt)})}var Kt=M(st,2),jt=M(h(Kt),2);Kl(jt,{get values(){return r(S)}});var De=M(jt,2),se=h(De,!0);g(De),g(Kt),g(U),g(E),k(Q=>{var ae,_e;T=ie(E,1,"container svelte-4deykz",null,T,Q),ge(Z,r(l).version),ge(vt,`${(ae=r(_))!=null?ae:""} / ${(_e=r(f))!=null?_e:""} frames`),ge(se,r(p))},[()=>({"container-mobile":n()})]),b(t,E),K(),o()}at(["click"]);import{noop as fb}from"@vkontakte/videoplayer-shared/es2015";var mb=(t,e)=>{t.stopPropagation(),e()()},vb=L('<div class="close svelte-1ome55p"></div>'),gb={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function oa(t,e){q(e,!0),G(t,gb);let i=v(e,"onClick",3,fb);var o=vb();o.__click=[mb,i],b(t,o),K()}at(["click"]);import{noop as hb}from"@vkontakte/videoplayer-shared/es2015";var _b=L('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),bb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function Ql(t,e){q(e,!0),G(t,bb);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,hb),n=5e3,a=te(void 0),s,d,l=te(0),u;We(()=>{i()&&(d=Date.now(),O(l,ve(requestAnimationFrame(_))))});let f=()=>{r(l)&&(cancelAnimationFrame(r(l)),O(l,0))},_=()=>{if(!i()){f();return}u=(Date.now()-d)/n,u<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*u),s==null||s.stroke(),O(l,ve(requestAnimationFrame(_)))):o()()};Ut(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{f()}}),wn(()=>{f()});var p=_b(),$=h(p);ct($,w=>O(a,w),()=>r(a)),be(2),g(p),b(t,p),K()}var $b=(t,e,i)=>{e(!1),i()},yb=L('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),xb={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Kp(t,e){q(e,!0),G(t,xb);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),$()};Ut(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Ke(),I=pe(S);{var P=A=>{var E=yb(),T=M(pe(E),2),V=h(T),U=h(V),j=h(U,!0);g(U);var F=M(U,2);oa(F,{onClick:y}),g(V);var Z=M(V,2);Z.__click=[$b,u,_];var J=h(Z),ne=h(J),fe=h(ne);let de;var Re=M(fe,2);{var Le=B=>{let Ne=m(()=>a()&&n());Ql(B,{get isRunning(){return r(Ne)},onTimerEnded:w})};R(Re,B=>{n()&&B(Le)})}g(ne),g(J);var ee=M(J,2),Ve=h(ee),X=h(Ve,!0);g(Ve),g(ee),g(Z),g(T),k((B,Ne)=>{ge(j,B),tt(ne,`background-image: url('${e.thumb}')`),de=ie(fe,1,"thumb-overlay svelte-jfbaax",null,de,Ne),ge(X,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,E)};R(I,A=>{e.isHide||A(P)})}b(t,S),K(),o()}at(["click"]);import{PlaybackState as na}from"@vkontakte/videoplayer-core/es2015";import{checkNever as Sb}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Sn}from"@vkontakte/videoplayer-statistics/es2015";var Wp=(t,e)=>Math.min(+(t+e).toFixed(2),1),Qp=(t,e)=>Math.max(+(t-e).toFixed(2),0),Oc=(t,e,i)=>{let o=Wp(e,i);e<1&&t.actions.internal.setVolume(o)},Hc=(t,e,i)=>{let o=Qp(e,i);e>0&&t.actions.internal.setVolume(o)};var Ts=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e==null||e(),!1):i?!0:(o==null||o(),!1);var Cb=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Tb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Gp(t,e){var jt,De;q(e,!0),G(t,Tb);let[i,o]=Ue(),n=()=>C(j,"$playbackState$",i),a=()=>C(F,"$adPlaybackState",i),s=()=>C(fe,"$disabledControls$",i),d=()=>C(Z,"$positionExact$",i),l=()=>C(J,"$duration$",i),u=()=>C(D,"$isAudioAvailable$",i),f=()=>C(ne,"$volume$",i),_=()=>C(ee,"$availablePlaybackRates$",i),p=()=>C(Le,"$currentPlaybackRate$",i),$=()=>C(Pe,"$isInteractiveTime$",i),w=()=>C(Ye,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(re,"$isEnded$",i),S=()=>C(de,"$muted$",i),I=()=>C(Re,"$currentSubtitle$",i),P=()=>C(Ee,"$overlayContainer$",i),A=v(e,"nextButtonActive",3,!1),E=v(e,"prevButtonActive",3,!1),T=Se(),V=Qt(),U=T.getLogger().createComponentLog("KeyboardControls component"),j=T.state.playbackState$,F=T.ads.playbackState,Z=T.state.positionExact$,J=T.state.duration$,ne=T.state.volume$,fe=T.ui.controls.disabledControls$,de=T.state.muted$,Re=T.state.currentSubtitle$,Le=T.state.currentPlaybackRate$,ee=T.state.availablePlaybackRates$,Ve=T.ui.contextMenu.openedByHotKey$,X=T.ui.contextMenu.lastActiveElem$,B=T.ui.contextMenu.visible$,Ne=T.ui.contextMenu.position$,re=T.state.isEnded$,Ee=T.ui.overlayContainer$,Be=(jt=T.callbacks)==null?void 0:jt.onAudioDoesNotExistHint,me=(De=T.callbacks)==null?void 0:De.onAudioDisabledHint,D=T.state.isAudioAvailable$,ce=T.state.isAudioDisabled,Pe=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ye}=so(),dt=0,Ae=!0,ye=te(void 0),Me=()=>{var se;return(se=r(ye))==null?void 0:se.focus()},rt=se=>(se!==Ae&&(Ae=se,dt=0),dt+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*dt)/1e3),vt=se=>{var Pt,ai;let Q=se.target,ae=(Pt=Q==null?void 0:Q.getAttribute("role"))==null?void 0:Pt.includes("menuitem"),_e=Q.classList.contains("btn"),Ce=se.code;if(_e&&Ce==="Space")return;let Oe=Ng.has(Ce);if(ae&&Oe)return;let ut=!Rg.has(Ce);if(se.ctrlKey&&ut||se.altKey&&ut||se.metaKey)return;let Gt=ae&&Ce==="Escape";Bg.has(Ce)||Gt||e.hideContextMenu();let Ze=n()===na.PLAYING||n()===na.PAUSED,pt=e.isAds&&(a()==="paused"||a()==="playing"),Je=!pt&&!s().has("TIMELINE");if(Ze||pt)switch(U({message:`key down, code: ${Ce}`}),Ce){case"KeyJ":case"ArrowLeft":{if(!Je)break;if(se.ctrlKey||se.altKey){let Ge=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ge.text}),se.preventDefault()}else{let Ge=se.shiftKey?rt(!1):V.controls.seekStepKeyboard/1e3,ot=Math.max(d()-Ge,0);d()>0&&(T.actions.internal.seekTime(ot,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ge.toString()}),se.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Je)break;if(se.ctrlKey||se.altKey){let Ge=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Ge),Ge&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ge.text}),se.preventDefault()}else{let Ge=se.shiftKey?rt(!0):V.controls.seekStepKeyboard/1e3,ot=Math.min(d()+Ge,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(ot,Sn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ge.toString()}),se.preventDefault())}break}case"ArrowUp":{if(Ts({isAudioDisabled:ce,audioDisabledHintCallback:me,isAudioAvailable:u(),audioIsNotExistHintCallback:Be})){let Ge=f(),ot=V.controls.volumeStepKeyboard,ii=Ge<=1;if(Oc(T,Ge,ot),ii){let Pi=Math.round(Wp(Ge,ot)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Pi}})}}se.preventDefault();break}case"ArrowDown":{if(Ts({isAudioDisabled:ce,audioDisabledHintCallback:me,isAudioAvailable:u(),audioIsNotExistHintCallback:Be})){let Ge=f(),ot=V.controls.volumeStepKeyboard,ii=Ge>=0;if(Hc(T,Ge,ot),ii){let Pi=Math.round(Qp(Ge,ot)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Pi}})}}se.preventDefault();break}case"Comma":{if(se.shiftKey){T.actions.internal.decrementPlaybackRate();let Ge=_().find(ot=>ot.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ge==null?void 0:Ge.displayValue}),se.preventDefault()}else{if(pt||n()!==na.PAUSED)break;let Ge=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ge,Sn.DOUBLE_TAP),se.preventDefault())}break}case"Period":{if(se.shiftKey){T.actions.internal.incrementPlaybackRate();let Ge=_().find(ot=>ot.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:Ge==null?void 0:Ge.displayValue}),se.preventDefault()}else{if(pt||n()!==na.PAUSED)break;let Ge=Math.min(d()+V.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ge,Sn.DOUBLE_TAP),se.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&w()&&Ye.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Ge="PLAY";n()===na.PAUSED?Ge="PAUSE":y()&&(Ge="REPLAY"),e.showHotKeyHelpers({type:Ge})}se.preventDefault();break;case"KeyM":{Ts({isAudioDisabled:ce,audioDisabledHintCallback:me,isAudioAvailable:u(),audioIsNotExistHintCallback:Be})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),se.preventDefault();break}case"KeyF":e.toggleFullscreen(),se.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ai=I())==null?void 0:ai.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),se.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),se.preventDefault();break;case"Digit1":case"Numpad1":if(se.shiftKey){let Ge=Ah(P());Ne.set(Ge),X.set(Q),Ve.set(!0),B.set(!0),se.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,Sn.DOUBLE_TAP),se.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,Sn.DOUBLE_TAP),se.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,Sn.DOUBLE_TAP),se.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,Sn.DOUBLE_TAP),se.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,Sn.DOUBLE_TAP),se.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,Sn.DOUBLE_TAP),se.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,Sn.DOUBLE_TAP),se.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,Sn.DOUBLE_TAP),se.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,Sn.DOUBLE_TAP),se.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,Sn.DOUBLE_TAP),se.preventDefault();break;case"Slash":{se.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),se.preventDefault());break}case"KeyN":se.shiftKey&&A()&&T.actions.internal.nextVideoClick();break;case"KeyP":se.shiftKey&&E()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":se.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:Sb(Ce);break}},lt=se=>{let Q=se.code;if(se.ctrlKey||se.altKey||se.metaKey)return;let ae=n()===na.PLAYING||n()===na.PAUSED,_e=e.isAds&&(a()==="paused"||a()==="playing");if(ae||_e)switch(Q){case"ShiftLeft":case"ShiftRight":dt=0;break}},kt=H("aria_label_video_player");var st=Cb();st.__keyup=lt,st.__keydown=vt,He(st,"aria-label",kt);var gt=h(st);he(gt,()=>{var se;return(se=e.children)!=null?se:oe}),g(st),ct(st,se=>O(ye,se),()=>r(ye)),b(t,st);var Kt=K({focus:Me});return o(),Kt}at(["keyup","keydown"]);var Ib=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>'),kb={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
144
 
145
145
  @keyframes svelte-1dbnjb1-dot_animation {
146
146
  0% {
@@ -153,7 +153,7 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
153
153
  opacity: 0.2;
154
154
  }
155
155
  }.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 oa(t,e){G(t,Ib);let i=v(e,"style",3,"");var o=Tb();k(()=>nt(o,i())),b(t,o)}var kb=$e('<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 zp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=kb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({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 Ka}from"@vkontakte/videoplayer-shared/es2015";var Eb=t=>{t.stopPropagation()},Pb=L("<button><!></button>"),Ab={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;}
156
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ra(t,e){G(t,kb);let i=v(e,"style",3,"");var o=Ib();k(()=>tt(o,i())),b(t,o)}var Eb=$e('<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 Yp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Eb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i))),b(t,o)}import{noop as Qa}from"@vkontakte/videoplayer-shared/es2015";var Pb=t=>{t.stopPropagation()},Ab=L("<button><!></button>"),Mb={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
157
 
158
158
  /* \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
159
 
@@ -161,22 +161,22 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
161
161
  /* mobile */
162
162
  /* 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
163
  .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 Et(t,e){K(e,!0),G(t,Ab);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),u=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),_=v(e,"tabIndex",3,0),p=v(e,"click",3,Ka),$=v(e,"focus",3,Ka),w=v(e,"blur",3,Ka),y=m(()=>p()===Ka?null:E=>{E.stopPropagation(),p()(E)}),S=m(()=>$()===Ka?null:E=>{E.preventDefault(),$()()}),I=m(()=>w()===Ka?null:E=>{E.preventDefault(),w()()});var P=Pb();P.__pointerdown=[Eb],P.__click=function(...E){var T;(T=r(y))==null||T.apply(this,E)};var A=h(P);ve(A,()=>{var E;return(E=e.children)!=null?E:oe}),g(P),dt(P,E=>l(E),()=>l()),k(()=>{var E,T,R,z,j,U,X;ie(P,1,`btn ${(E=i())!=null?E:""}`,"svelte-wr0kwr"),nt(P,o()||null),P.disabled=(T=n())!=null?T:null,Oe(P,"aria-hidden",(R=s())!=null?R:null),Oe(P,"aria-label",(z=d())!=null?z:null),Oe(P,"aria-keyshortcuts",(j=u())!=null?j:null),Oe(P,"aria-expanded",(U=f())!=null?U:null),Oe(P,"data-testid",(X=a())!=null?X:null),Oe(P,"tabindex",_())}),kt("focus",P,function(...E){var T;(T=r(S))==null||T.apply(this,E)}),kt("blur",P,function(...E){var T;(T=r(I))==null||T.apply(this,E)}),b(t,P),W()}at(["pointerdown","click"]);var Mb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Lb=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>'),Vb={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 qp(t,e){K(e,!0),G(t,Vb);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var a=Lb(),s=h(a),d=h(s);{var l=p=>{var $=Mb(),w=h($),y=h(w,!0);g(w);var S=M(w,2);{var I=P=>{Et(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(A,E)=>{zp(A,{})},$$slots:{default:!0}})};B(S,P=>{o()&&P(I)})}g($),k(()=>me(y,e.title)),b(p,$)};B(d,p=>{i()&&p(l)})}var u=M(d,2),f=h(u),_=h(f);ve(_,()=>{var p;return(p=e.children)!=null?p:oe}),g(f),g(u),g(s),g(a),b(t,a),W()}var Rb=new Set(["BR"]),Ah=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;Rb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Bb=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>'),Nb=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>'),Db=L('<div class="hot-key-map svelte-quklnq"></div>'),Ob={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,
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 Mt(t,e){q(e,!0),G(t,Mb);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),u=v(e,"ariaKeyShortCut",3,void 0),f=v(e,"ariaExpanded",3,void 0),_=v(e,"tabIndex",3,0),p=v(e,"click",3,Qa),$=v(e,"focus",3,Qa),w=v(e,"blur",3,Qa),y=m(()=>p()===Qa?null:E=>{E.stopPropagation(),p()(E)}),S=m(()=>$()===Qa?null:E=>{E.preventDefault(),$()()}),I=m(()=>w()===Qa?null:E=>{E.preventDefault(),w()()});var P=Ab();P.__pointerdown=[Pb],P.__click=function(...E){var T;(T=r(y))==null||T.apply(this,E)};var A=h(P);he(A,()=>{var E;return(E=e.children)!=null?E:oe}),g(P),ct(P,E=>l(E),()=>l()),k(()=>{var E,T,V,U,j,F,Z;ie(P,1,`btn ${(E=i())!=null?E:""}`,"svelte-wr0kwr"),tt(P,o()||null),P.disabled=(T=n())!=null?T:null,He(P,"aria-hidden",(V=s())!=null?V:null),He(P,"aria-label",(U=d())!=null?U:null),He(P,"aria-keyshortcuts",(j=u())!=null?j:null),He(P,"aria-expanded",(F=f())!=null?F:null),He(P,"data-testid",(Z=a())!=null?Z:null),He(P,"tabindex",_())}),Et("focus",P,function(...E){var T;(T=r(S))==null||T.apply(this,E)}),Et("blur",P,function(...E){var T;(T=r(I))==null||T.apply(this,E)}),b(t,P),K()}at(["pointerdown","click"]);var Lb=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Vb=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>'),Rb={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 jp(t,e){q(e,!0),G(t,Rb);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=H("hotkey_map_modal_close_btn_text");var a=Vb(),s=h(a),d=h(s);{var l=p=>{var $=Lb(),w=h($),y=h(w,!0);g(w);var S=M(w,2);{var I=P=>{Mt(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(A,E)=>{Yp(A,{})},$$slots:{default:!0}})};R(S,P=>{o()&&P(I)})}g($),k(()=>ge(y,e.title)),b(p,$)};R(d,p=>{i()&&p(l)})}var u=M(d,2),f=h(u),_=h(f);he(_,()=>{var p;return(p=e.children)!=null?p:oe}),g(f),g(u),g(s),g(a),b(t,a),K()}var Nb=new Set(["BR"]),Vh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],s=a.tagName;Nb.has(s)||(n=a.parentElement)==null||n.removeChild(a)}return e.innerHTML};var Bb=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>'),Db=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>'),Ob=L('<div class="hot-key-map svelte-quklnq"></div>'),Hb={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
165
  .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 Kp(t,e){K(e,!1),G(t,Ob);let[i,o]=Ue(),n=()=>C(s,"$data",i),a=ke(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};kr(),qp(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var _=Db();yi(_,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let w=()=>r($).title,y=()=>r($).items;var S=Nb(),I=h(S),P=h(I,!0);g(I);var A=M(I,2);yi(A,5,y,({description:E,value:T})=>T,(E,T)=>{let R=()=>r(T).description,z=()=>r(T).value;var j=Bb(),U=h(j),X=h(U);kl(X,()=>Ah(R()),!1,!1),g(U);var ee=M(U,2),ne=h(ee,!0);g(ee),g(j),k(()=>me(ne,z())),b(E,j)}),g(A),g(S),k(()=>me(P,w())),b(p,S)}),g(_),b(u,_)},$$slots:{default:!0}}),W(),o()}import{noop as t1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as Zh,PlaybackState as Mf}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var Hb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Fb={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 Wp(t,e){G(t,Fb);var i=Hb(),o=h(i);ve(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),b(t,i)}import{VideoQuality as jl}from"@vkontakte/videoplayer-shared/es2015";var Ub=$e('<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=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ub();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var zb=$e('<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 Gp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=zb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var qb=$e('<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 Yp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=qb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var Kb=$e('<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=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),b(t,o)}var Wb=$e('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Yl(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),b(t,o)}var Bc=t=>{switch(t){case jl.Q_720P:return Yp;case jl.Q_1080P:return Gl;case jl.Q_1440P:return Yl;case jl.Q_2160P:return Qp;case jl.Q_4320P:return Gp}};var Qb=$e('<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 jp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 Gb=$e('<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 Zp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),b(t,o)}var Yb=L('<div aria-hidden="true"><!> <!></div>'),jb={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){K(e,!0),G(t,jb);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>Bc(o())),a=m(()=>!!r(n)&&[Gl,Yl].includes(r(n)));var s=ze(),d=he(s);{var l=f=>{jp(f,{})},u=f=>{var _=Yb();let p;var $=h(_);{var w=I=>{Wp(I,{children:(P,A)=>{var E=ze(),T=he(E);Vi(T,()=>r(n),(R,z)=>{z(R,{})}),b(P,E)},$$slots:{default:!0}})};B($,I=>{r(n)&&I(w)})}var y=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");Zp(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),k(I=>p=ie(_,1,"icon svelte-8t5w85",null,p,I),[()=>({triple:r(a)})]),b(f,_)};B(d,f=>{i()?f(l):f(u,!1)})}b(t,s),W()}var Zb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Xb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Wa(t,e){K(e,!0),G(t,Xb);let[i,o]=Ue(),n=()=>C(e.ref$,"$ref$",i),a=()=>C(f,"$settingsMenuVisible",i),s=()=>C($,"$isMobile",i),d=()=>C(u,"$currentQuality",i),l=ke(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,y=te(void 0);Ze(()=>{n()&&_t(()=>{e.ref$.set(r(y))})});let S=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));function I(A){return St(this,null,function*(){let E=Ss(A);a()?p():_(E,bo)})}let P=m(()=>a()?"opened":"");Et(t,{get className(){return r(P)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(A){O(y,_e(A))},children:(A,E)=>{var T=Zb(),R=h(T);Zl(R,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(A,T)},$$slots:{default:!0}}),W(),o()}var Jb=$e('<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 Xp(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Jb();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 e$=$e('<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=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=e$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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){K(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=ke().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Et(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return zr.KeyC},children:(s,d)=>{var l=ze(),u=he(l);{var f=p=>{Xp(p,{})},_=p=>{Xl(p,{})};B(u,p=>{i()?p(f):p(_,!1)})}b(s,l)},$$slots:{default:!0}}),W()}var t$=L('<span class="duration svelte-sz9er7"> </span>'),i$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),o$={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){K(e,!0),G(t,o$);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>ar(e.duration)),s=m(()=>ar(e.position));var d=i$();let l;var u=h(d),f=h(u,!0);g(u);var _=M(u,2);{var p=$=>{var w=t$(),y=h(w,!0);g(w),k(()=>me(y,r(a))),b($,w)};B(_,$=>{o()&&$(p)})}g(d),dt(d,$=>n($),()=>n()),k($=>{l=ie(d,1,"time svelte-sz9er7",null,l,$),me(f,r(s))},[()=>({mobile:i()})]),b(t,d),W()}import{noop as Nc}from"@vkontakte/videoplayer-shared/es2015";var n$=$e('<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>'),r$={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),
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 Zp(t,e){q(e,!1),G(t,Hb);let[i,o]=Ue(),n=()=>C(s,"$data",i),a=Se(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};Ir(),jp(t,{get title(){return n().title},onClose:l,children:(u,f)=>{var _=Ob();yi(_,5,()=>n().groups,({title:p,items:$})=>p,(p,$)=>{let w=()=>r($).title,y=()=>r($).items;var S=Db(),I=h(S),P=h(I,!0);g(I);var A=M(I,2);yi(A,5,y,({description:E,value:T})=>T,(E,T)=>{let V=()=>r(T).description,U=()=>r(T).value;var j=Bb(),F=h(j),Z=h(F);kl(Z,()=>Vh(V()),!1,!1),g(F);var J=M(F,2),ne=h(J,!0);g(J),g(j),k(()=>ge(ne,U())),b(E,j)}),g(A),g(S),k(()=>ge(P,w())),b(p,S)}),g(_),b(u,_)},$$slots:{default:!0}}),K(),o()}import{noop as n1}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as e1,PlaybackState as Bf}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-shared/es2015";var Fb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),Ub={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 Xp(t,e){G(t,Ub);var i=Fb(),o=h(i);he(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),b(t,i)}import{VideoQuality as jl}from"@vkontakte/videoplayer-shared/es2015";var zb=$e('<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 Jp(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=zb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var qb=$e('<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 ef(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=qb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var Kb=$e('<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 tf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i))),b(t,o)}var Wb=$e('<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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i))),b(t,o)}var Qb=$e('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function Yl(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i))),b(t,o)}var Fc=t=>{switch(t){case jl.Q_720P:return tf;case jl.Q_1080P:return Gl;case jl.Q_1440P:return Yl;case jl.Q_2160P:return Jp;case jl.Q_4320P:return ef}};var Gb=$e('<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 of(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 Yb=$e('<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 nf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Yb();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i))),b(t,o)}var jb=L('<div aria-hidden="true"><!> <!></div>'),Zb={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){q(e,!0),G(t,Zb);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>Fc(o())),a=m(()=>!!r(n)&&[Gl,Yl].includes(r(n)));var s=Ke(),d=pe(s);{var l=f=>{of(f,{})},u=f=>{var _=jb();let p;var $=h(_);{var w=I=>{Xp(I,{children:(P,A)=>{var E=Ke(),T=pe(E);xi(T,()=>r(n),(V,U)=>{U(V,{})}),b(P,E)},$$slots:{default:!0}})};R($,I=>{r(n)&&I(w)})}var y=M($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");nf(y,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),k(I=>p=ie(_,1,"icon svelte-8t5w85",null,p,I),[()=>({triple:r(a)})]),b(f,_)};R(d,f=>{i()?f(l):f(u,!1)})}b(t,s),K()}var Xb=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),Jb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ga(t,e){q(e,!0),G(t,Jb);let[i,o]=Ue(),n=()=>C(e.ref$,"$ref$",i),a=()=>C(f,"$settingsMenuVisible",i),s=()=>C($,"$isMobile",i),d=()=>C(u,"$currentQuality",i),l=Se(),u=l.state.currentQuality$,f=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,p=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,w=l.ui.t,y=te(void 0);We(()=>{n()&&$t(()=>{e.ref$.set(r(y))})});let S=m(()=>a()?w("tooltip_settings_on"):w("tooltip_settings_off"));function I(A){return Ct(this,null,function*(){let E=Cs(A);a()?p():_(E,fo)})}let P=m(()=>a()?"opened":"");Mt(t,{get className(){return r(P)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(y)},set ref(A){O(y,ve(A))},children:(A,E)=>{var T=Xb(),V=h(T);Zl(V,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(A,T)},$$slots:{default:!0}}),K(),o()}var e$=$e('<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 rf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=e$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 t$=$e('<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=ke(e,["$$slots","$$events","$$legacy","children"]);var o=t$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 sf(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"));Mt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Ur.KeyC},children:(s,d)=>{var l=Ke(),u=pe(l);{var f=p=>{rf(p,{})},_=p=>{Xl(p,{})};R(u,p=>{i()?p(f):p(_,!1)})}b(s,l)},$$slots:{default:!0}}),K()}var i$=L('<span class="duration svelte-sz9er7"> </span>'),o$=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),n$={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){q(e,!0),G(t,n$);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>sr(e.duration)),s=m(()=>sr(e.position));var d=o$();let l;var u=h(d),f=h(u,!0);g(u);var _=M(u,2);{var p=$=>{var w=i$(),y=h(w,!0);g(w),k(()=>ge(y,r(a))),b($,w)};R(_,$=>{o()&&$(p)})}g(d),ct(d,$=>n($),()=>n()),k($=>{l=ie(d,1,"time svelte-sz9er7",null,l,$),ge(f,r(s))},[()=>({mobile:i()})]),b(t,d),K()}import{noop as Uc}from"@vkontakte/videoplayer-shared/es2015";var r$=$e('<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>'),s$={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
167
  .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 Ts(t,e){G(t,r$);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=n$();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 Lh,noop as Pr}from"@vkontakte/videoplayer-shared/es2015";import{noop as tf}from"@vkontakte/videoplayer-shared/es2015";import{noop as a$}from"@vkontakte/videoplayer-shared/es2015";var s$=L('<div class="overlay"><!></div>');function ef(t,e){K(e,!0);let[i,o]=Ue(),n=()=>C(s,"$overlayContainer$",i),s=ke().ui.overlayContainer$,d=te(void 0),l=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};Ze(()=>{u(n())}),Ht(()=>(u(n()),()=>l(n())));var f=s$(),_=h(f);ve(_,()=>{var p;return(p=e.children)!=null?p:oe}),g(f),dt(f,p=>O(d,p),()=>r(d)),b(t,f),W(),o()}var l$=L('<div><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),d$=L("<div><!></div> <!>",1),c$={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {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 na(t,e){K(e,!0),G(t,c$);let[i,o]=Ue(),n=()=>C(X,"$overlayContainer$",i),a=()=>C(U,"$containerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"content",3,""),l=v(e,"active",15,!1),u=v(e,"translateX",3,0),f=v(e,"translateY",3,0),_=v(e,"isFullWidthWrapper",3,!1),p=v(e,"maxTooltipWidth",3,void 0),$=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,a$),y=5,S=te(void 0),I=te(void 0),P,A=te(0),E=te(0),T=te(0),R=te(0),z=Wt(),j=ke(),U=j.ui.playerSize,X=j.ui.overlayContainer$;Ze(()=>{_t(()=>{w()(l())})});let ee=j.getLogger().createComponentLog("Tooltip component"),ne=()=>{if(!n()||!r(I)||!r(S))return;O(E,y);let Ae=n().getBoundingClientRect(),xe=r(S).getBoundingClientRect(),Me=xe.width,rt=r(I).clientWidth,ft=a().width,it=(Me-rt)/2,Bt=xe.left+u()-Ae.left,st=Bt+it,mt=xe.top+f()-Ae.top,zt=rt/2-y,Kt=st<8,De=st+rt>ft-8;Kt&&(st=8,zt=Bt+xe.width/2-2.5*y),De&&(st=ft-8-rt,zt=xe.left-Ae.left+xe.width/2-st-y),O(T,_e(st)),O(R,mt),O(A,_e(zt))},ue=()=>{!n()||!r(I)||!r(S)||O(E,-y)},de=()=>{if(!n()||!r(I)||!r(S))return;O(A,y);let Ae=n().getBoundingClientRect(),xe=r(S).getBoundingClientRect(),Me=xe.height,rt=r(I).clientHeight,ft=(Me-rt)/2+rt,it=xe.left+u()-Ae.left-r(I).clientWidth,Bt=2,st=it-y;st<8&&(st=8);let zt=xe.top+f()-Ae.top+ft,Kt=Bt-ft/2,De=Bt-y;O(T,_e(st)),O(R,zt),O(E,Kt),O(A,De)},Ve=()=>{!n()||!r(I)||!r(S)||O(A,-y)},Be=()=>{switch($()){case"top":ne();break;case"bottom":ue();break;case"left":de();break;default:Ve()}},J=()=>{try{if(!n()||!r(S))return;Be(),l(!0)}catch(Ae){ee({message:String(Ae)})}},Le=()=>{l(!1)},Z=()=>{r(I)&&(P||(P=window.setTimeout(J,z.controls.hideTimeoutTooltips)),l()&&J())},N=()=>{Le(),window.clearTimeout(P),P=void 0},Re=(Ae,xe)=>{let Me="";switch($()){case"top":Me=`transform: translate(${Ae}px, ${xe}px);`;break;case"bottom":Me=`transform: translate(${Ae}px, ${xe}px); top: auto; bottom: 100%;`;break;case"left":Me=`transform: translate(${Ae}px, ${xe}px); left: 0; right: auto;`;break;default:Me=`transform: translate(${Ae}px, ${xe}px);`}return Me+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Me},we=(Ae,xe)=>{let Me="";switch($()){case"top":Me=`transform: translate(${Ae}px, ${xe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Me=`transform: translate(${Ae}px, ${xe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Me=`transform: translate(${Ae}px, ${xe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Me=`transform: translate(${Ae}px, ${xe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Me},se=m(()=>Re(r(T),r(R))),Ne=m(()=>we(r(A),r(E)));Ht(Be),wn(()=>window.clearTimeout(P));var pe=d$(),D=he(pe);let ce;D.__mousemove=Z,D.__mousedown=N,D.__mouseup=Z;var Pe=h(D);ve(Pe,()=>{var Ae;return(Ae=e.children)!=null?Ae:oe}),g(D),dt(D,Ae=>O(S,Ae),()=>r(S));var Ge=M(D,2);{var lt=Ae=>{ef(Ae,{children:(xe,Me)=>{var rt=l$();let ft;var it=h(rt),Bt=h(it,!0);g(it);var st=M(it,2);g(rt),dt(rt,mt=>O(I,mt),()=>r(I)),k(mt=>{ft=ie(rt,1,"tooltip svelte-1jbbzcj",null,ft,mt),nt(rt,r(se)),me(Bt,d()),nt(st,r(Ne))},[()=>({active:l()})]),b(xe,rt)},$$slots:{default:!0}})};B(Ge,Ae=>{d()&&!s()&&Ae(lt)})}k(Ae=>ce=ie(D,1,"tooltip-wrapper svelte-1jbbzcj",null,ce,Ae),[()=>({"full-width":_()})]),kt("mouseenter",D,Z),kt("mouseleave",D,N),b(t,pe),W(),o()}at(["mousemove","mousedown","mouseup"]);var Mh=t=>{t.stopPropagation()},u$=L("<div><!></div>"),p$={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 Vo(t,e){K(e,!0),G(t,p$);let[i,o]=Ue(),n=()=>C(u,"$isGraphOpened$",i),a=()=>C(l,"$isMobile",i),s=ke(),d=so(),l=s.ui.isMobile,u=d.graphIsOpened$,f=s.ui.t,_=v(e,"className",3,""),p=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),I=v(e,"tooltipContent",3,""),P=v(e,"tooltipActive",3,!1),A=v(e,"tooltipPlacement",3,"top"),E=v(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),T=v(e,"isAriaHidden",3,!1),R=v(e,"onTooltipVisibilityChange",3,tf),z=v(e,"initialTranslateXPx",3,0),j=v(e,"initialTranslateYPx",19,()=>-18),U=v(e,"mouseEnter",3,tf),X=v(e,"mouseLeave",3,tf),ee=m(()=>p()?n()?f("tooltip_disabled_when_graph_on"):E():I());var ne=u$();ne.__pointerdown=[Mh],ne.__click=[Mh];var ue=h(ne);{var de=Be=>{na(Be,{get content(){return r(ee)},get translateX(){return z()},get translateY(){return j()},get isFullWidthWrapper(){return S()},get active(){return P()},get placement(){return A()},get onVisibilityChange(){return R()},children:(J,Le)=>{var Z=ze(),N=he(Z);ve(N,()=>{var Re;return(Re=e.children)!=null?Re:oe}),b(J,Z)},$$slots:{default:!0}})},Ve=Be=>{var J=ze(),Le=he(J);ve(Le,()=>{var Z;return(Z=e.children)!=null?Z:oe}),b(Be,J)};B(ue,Be=>{$()&&r(ee)&&!a()?Be(de):Be(Ve,!1)})}g(ne),dt(ne,Be=>w(Be),()=>w()),k(()=>{var Be;ie(ne,1,`btn-container ${(Be=_())!=null?Be:""}`,"svelte-p9r045"),Oe(ne,"aria-hidden",T()||null)}),kt("mouseenter",ne,function(...Be){var J;(J=U())==null||J.apply(this,Be)}),kt("mouseleave",ne,function(...Be){var J;(J=X())==null||J.apply(this,Be)}),Ur(ne,"clientWidth",y),b(t,ne),W(),o()}at(["pointerdown","click"]);var f$=$e('<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=f$(),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 m$=L("<div><!></div>"),v$={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 of(t,e){K(e,!0),G(t,v$);let o=ke().ui.t,n=te(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Vo(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=m$();let u;var f=h(l);let _=m(()=>!!e.videoEpisode.completed);ed(f,{get completed(){return r(_)}}),g(l),k(p=>{u=ie(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),nt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Ur(l,"clientWidth",p=>O(n,p)),b(s,l)},$$slots:{default:!0}}),W()}var g$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),h$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),_$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
168
+ .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function Is(t,e){G(t,s$);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=r$();k(()=>{var d;He(s,"data-value",r(a)),He(s,"data-testid",`volume-${(d=r(a))!=null?d:""}-icon`)}),b(t,s)}import{isNonNullable as Nh,noop as Er}from"@vkontakte/videoplayer-shared/es2015";import{noop as lf}from"@vkontakte/videoplayer-shared/es2015";import{noop as l$}from"@vkontakte/videoplayer-shared/es2015";var a$=L('<div class="overlay"><!></div>');function af(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(s,"$overlayContainer$",i),s=Se().ui.overlayContainer$,d=te(void 0),l=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};We(()=>{u(n())}),Ut(()=>(u(n()),()=>l(n())));var f=a$(),_=h(f);he(_,()=>{var p;return(p=e.children)!=null?p:oe}),g(f),ct(f,p=>O(d,p),()=>r(d)),b(t,f),K(),o()}var d$=L('<div><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),c$=L("<div><!></div> <!>",1),u$={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {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 sa(t,e){q(e,!0),G(t,u$);let[i,o]=Ue(),n=()=>C(Z,"$overlayContainer$",i),a=()=>C(F,"$containerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"content",3,""),l=v(e,"active",15,!1),u=v(e,"translateX",3,0),f=v(e,"translateY",3,0),_=v(e,"isFullWidthWrapper",3,!1),p=v(e,"maxTooltipWidth",3,void 0),$=v(e,"placement",3,"top"),w=v(e,"onVisibilityChange",3,l$),y=5,S=te(void 0),I=te(void 0),P,A=te(0),E=te(0),T=te(0),V=te(0),U=Qt(),j=Se(),F=j.ui.playerSize,Z=j.ui.overlayContainer$;We(()=>{$t(()=>{w()(l())})});let J=j.getLogger().createComponentLog("Tooltip component"),ne=()=>{if(!n()||!r(I)||!r(S))return;O(E,y);let Ae=n().getBoundingClientRect(),ye=r(S).getBoundingClientRect(),Me=ye.width,rt=r(I).clientWidth,vt=a().width,lt=(Me-rt)/2,kt=ye.left+u()-Ae.left,st=kt+lt,gt=ye.top+f()-Ae.top,Kt=rt/2-y,jt=st<8,De=st+rt>vt-8;jt&&(st=8,Kt=kt+ye.width/2-2.5*y),De&&(st=vt-8-rt,Kt=ye.left-Ae.left+ye.width/2-st-y),O(T,ve(st)),O(V,gt),O(A,ve(Kt))},fe=()=>{!n()||!r(I)||!r(S)||O(E,-y)},de=()=>{if(!n()||!r(I)||!r(S))return;O(A,y);let Ae=n().getBoundingClientRect(),ye=r(S).getBoundingClientRect(),Me=ye.height,rt=r(I).clientHeight,vt=(Me-rt)/2+rt,lt=ye.left+u()-Ae.left-r(I).clientWidth,kt=2,st=lt-y;st<8&&(st=8);let Kt=ye.top+f()-Ae.top+vt,jt=kt-vt/2,De=kt-y;O(T,ve(st)),O(V,Kt),O(E,jt),O(A,De)},Re=()=>{!n()||!r(I)||!r(S)||O(A,-y)},Le=()=>{switch($()){case"top":ne();break;case"bottom":fe();break;case"left":de();break;default:Re()}},ee=()=>{try{if(!n()||!r(S))return;Le(),l(!0)}catch(Ae){J({message:String(Ae)})}},Ve=()=>{l(!1)},X=()=>{r(I)&&(P||(P=window.setTimeout(ee,U.controls.hideTimeoutTooltips)),l()&&ee())},B=()=>{Ve(),window.clearTimeout(P),P=void 0},Ne=(Ae,ye)=>{let Me="";switch($()){case"top":Me=`transform: translate(${Ae}px, ${ye}px);`;break;case"bottom":Me=`transform: translate(${Ae}px, ${ye}px); top: auto; bottom: 100%;`;break;case"left":Me=`transform: translate(${Ae}px, ${ye}px); left: 0; right: auto;`;break;default:Me=`transform: translate(${Ae}px, ${ye}px);`}return Me+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Me},re=(Ae,ye)=>{let Me="";switch($()){case"top":Me=`transform: translate(${Ae}px, ${ye}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Me=`transform: translate(${Ae}px, ${ye}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Me=`transform: translate(${Ae}px, ${ye}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Me=`transform: translate(${Ae}px, ${ye}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Me},Ee=m(()=>Ne(r(T),r(V))),Be=m(()=>re(r(A),r(E)));Ut(Le),wn(()=>window.clearTimeout(P));var me=c$(),D=pe(me);let ce;D.__mousemove=X,D.__mousedown=B,D.__mouseup=X;var Pe=h(D);he(Pe,()=>{var Ae;return(Ae=e.children)!=null?Ae:oe}),g(D),ct(D,Ae=>O(S,Ae),()=>r(S));var Ye=M(D,2);{var dt=Ae=>{af(Ae,{children:(ye,Me)=>{var rt=d$();let vt;var lt=h(rt),kt=h(lt,!0);g(lt);var st=M(lt,2);g(rt),ct(rt,gt=>O(I,gt),()=>r(I)),k(gt=>{vt=ie(rt,1,"tooltip svelte-1jbbzcj",null,vt,gt),tt(rt,r(Ee)),ge(kt,d()),tt(st,r(Be))},[()=>({active:l()})]),b(ye,rt)},$$slots:{default:!0}})};R(Ye,Ae=>{d()&&!s()&&Ae(dt)})}k(Ae=>ce=ie(D,1,"tooltip-wrapper svelte-1jbbzcj",null,ce,Ae),[()=>({"full-width":_()})]),Et("mouseenter",D,X),Et("mouseleave",D,B),b(t,me),K(),o()}at(["mousemove","mousedown","mouseup"]);var Rh=t=>{t.stopPropagation()},p$=L("<div><!></div>"),f$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function ko(t,e){q(e,!0),G(t,f$);let[i,o]=Ue(),n=()=>C(u,"$isGraphOpened$",i),a=()=>C(l,"$isMobile",i),s=Se(),d=so(),l=s.ui.isMobile,u=d.graphIsOpened$,f=s.ui.t,_=v(e,"className",3,""),p=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),I=v(e,"tooltipContent",3,""),P=v(e,"tooltipActive",3,!1),A=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,lf),U=v(e,"initialTranslateXPx",3,0),j=v(e,"initialTranslateYPx",19,()=>-18),F=v(e,"mouseEnter",3,lf),Z=v(e,"mouseLeave",3,lf),J=m(()=>p()?n()?f("tooltip_disabled_when_graph_on"):E():I());var ne=p$();ne.__pointerdown=[Rh],ne.__click=[Rh];var fe=h(ne);{var de=Le=>{sa(Le,{get content(){return r(J)},get translateX(){return U()},get translateY(){return j()},get isFullWidthWrapper(){return S()},get active(){return P()},get placement(){return A()},get onVisibilityChange(){return V()},children:(ee,Ve)=>{var X=Ke(),B=pe(X);he(B,()=>{var Ne;return(Ne=e.children)!=null?Ne:oe}),b(ee,X)},$$slots:{default:!0}})},Re=Le=>{var ee=Ke(),Ve=pe(ee);he(Ve,()=>{var X;return(X=e.children)!=null?X:oe}),b(Le,ee)};R(fe,Le=>{$()&&r(J)&&!a()?Le(de):Le(Re,!1)})}g(ne),ct(ne,Le=>w(Le),()=>w()),k(()=>{var Le;ie(ne,1,`btn-container ${(Le=_())!=null?Le:""}`,"svelte-p9r045"),He(ne,"aria-hidden",T()||null)}),Et("mouseenter",ne,function(...Le){var ee;(ee=F())==null||ee.apply(this,Le)}),Et("mouseleave",ne,function(...Le){var ee;(ee=Z())==null||ee.apply(this,Le)}),Fr(ne,"clientWidth",y),b(t,ne),K(),o()}at(["pointerdown","click"]);var m$=$e('<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=m$(),o=h(i),n=M(o);g(i),k(()=>{He(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),He(o,"fill-opacity",e.completed?1:.24),He(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var v$=L("<div><!></div>"),g$={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 df(t,e){q(e,!0),G(t,g$);let o=Se().ui.t,n=te(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));ko(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=v$();let u;var f=h(l);let _=m(()=>!!e.videoEpisode.completed);ed(f,{get completed(){return r(_)}}),g(l),k(p=>{u=ie(l,1,"interactive-episode-icon svelte-bklhpe",null,u,p),tt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Fr(l,"clientWidth",p=>O(n,p)),b(s,l)},$$slots:{default:!0}}),K()}var h$=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),_$=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),b$={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
169
  .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 nf(t,e){G(t,_$);let i=v(e,"videoEpisodes",19,()=>[]);var o=h$();yi(o,21,i,n=>n.from,(n,a)=>{var s=g$();let d;var l=h(s),u=h(l),f=M(u,2);let _;g(l),g(s),k((p,$)=>{d=ie(s,1,"video-episode svelte-1u6kv8l",null,d,p),nt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),nt(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=ie(f,1,"video-episode-filled svelte-1u6kv8l",null,_,$),nt(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 b$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&O(i,_e(e().getBoundingClientRect())),o()||r(n)||!e())return;O(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function $$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),u=o(t.clientX);n()(l,u,r(a).width),r(s)&&d()(l)}function y$(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 x$(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var w$=L("<div></div>"),S$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),C$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),T$={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 {
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 cf(t,e){G(t,b$);let i=v(e,"videoEpisodes",19,()=>[]);var o=_$();yi(o,21,i,n=>n.from,(n,a)=>{var s=h$();let d;var l=h(s),u=h(l),f=M(u,2);let _;g(l),g(s),k((p,$)=>{d=ie(s,1,"video-episode svelte-1u6kv8l",null,d,p),tt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),tt(u,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=ie(f,1,"video-episode-filled svelte-1u6kv8l",null,_,$),tt(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 $$(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&O(i,ve(e().getBoundingClientRect())),o()||r(n)||!e())return;O(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function y$(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),u=o(t.clientX);n()(l,u,r(a).width),r(s)&&d()(l)}function x$(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 w$(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var S$=L("<div></div>"),C$=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),T$=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),I$={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
171
  /* 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
172
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
173
173
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
174
174
  .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 ra(t,e){K(e,!0),G(t,T$);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),u=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),_=v(e,"withWheelHandler",3,!1),p=v(e,"isInteractive",3,!1),$=v(e,"disabled",3,!1),w=v(e,"hideHandel",3,!1),y=v(e,"onPointerDown",3,Pr),S=v(e,"onHandleMove",3,Pr),I=v(e,"onPointerUp",3,Pr),P=v(e,"onPointerEnter",3,Pr),A=v(e,"onPointerMove",3,Pr),E=v(e,"onPointerLeave",3,Pr),T=v(e,"onWheelUp",3,Pr),R=v(e,"onWheelDown",3,Pr),z=v(e,"onWheelLeft",3,Pr),j=v(e,"onWheelRight",3,Pr),U=v(e,"onDisabledClick",3,Pr),X=v(e,"loadedProgress",3,0),ee=v(e,"filledProgress",3,0),ne=v(e,"handleProgress",3,0),ue=v(e,"ariaLabel",3,""),de=v(e,"ariaValueMin",3,void 0),Ve=v(e,"ariaValueMax",3,void 0),Be=v(e,"ariaValueNow",3,void 0),J=v(e,"ariaValueText",3,""),Le=Wt(),Z=te(void 0),N=te(!1),Re=m(()=>{var De;return(De=Ve())!=null?De:0}),we=m(()=>{var De;return Lh(f())&&((De=f()[f().length-1])==null?void 0:De.time)<r(Re)}),se=m(()=>Lh(f())&&f().length&&r(we)&&r(Re)?Ge(X()*100,ee()*100):[]);function Ne(De){if(De.preventDefault(),i()&&O(Z,_e(i().getBoundingClientRect())),$())return;let re=ce(De.clientX,De.clientY),Q=Pe(De.clientX);P()(re,Q,r(Z).width)}function pe(De){De.preventDefault(),!$()&&E()()}function D(De){$()||_()&&(De.preventDefault(),De.deltaY<0?T()():De.deltaY>0?R()():De.deltaX>0?j()():z()())}function ce(De,re){return s()?Math.max(0,Math.min(1,(r(Z).height-(re-r(Z).top))/r(Z).height)):Math.min(Math.max(De-r(Z).x,0),r(Z).width)/r(Z).width}function Pe(De){return Math.min(Math.max(De-r(Z).x,0),r(Z).width)}function Ge(De,re){let Q=Le.features.episodesClustering&&!p()?Le.episodeMinWidthPc:0,ae=[],fe=f()[0].time/r(Re)*100,Te=0,He=0;for(let Ke=1;Ke<f().length;Ke++)Te=f()[Ke].time/r(Re)*100,Te-fe>Q&&(ae.push({from:fe,width:Math.max(0,Te-fe),loadedWidth:Math.max(0,Math.min(Te,De)-fe),filledWidth:Math.max(0,Math.min(Te,re)-fe),interactive:f()[Ke-1].interactive,completed:f()[Ke-1].completed}),fe=f()[Ke].time/r(Re)*100,He++);let ct={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min(De,100)-fe),filledWidth:Math.max(0,Math.min(re,100)-fe),interactive:f()[He].interactive,completed:f()[He].completed};100-fe<Q?(He-=1,ae[He].width+=100-fe,ae[He].loadedWidth+=Math.max(0,Math.min(De,100)-fe),ae[He].filledWidth+=Math.max(0,Math.min(re,100)-fe)):ae[He]=ct;let Nt=f()[0].time;if(Nt!==0){let Ke=Nt/r(Re)*100;ae.unshift({from:0,width:Ke,loadedWidth:Math.min(Ke,De),filledWidth:Math.min(Ke,re)})}return ae}var lt=C$(),Ae=he(lt);{var xe=De=>{var re=w$();let Q;yi(re,21,()=>r(se),ae=>ae.from,(ae,fe)=>{var Te=ze(),He=he(Te);{var ct=Nt=>{of(Nt,{get videoEpisode(){return r(fe)},get disabled(){return $()}})};B(He,Nt=>{r(fe).interactive&&Nt(ct)})}b(ae,Te)}),g(re),k(ae=>Q=ie(re,1,"interactive-icons svelte-1tpemng",null,Q,ae),[()=>({mobile:l(),hidden:l()&&!r(N)})]),b(De,re)};B(Ae,De=>{p()&&De(xe)})}var Me=M(Ae,2);let rt;Me.__pointerdown=[b$,i,Z,$,N,ce,y],Me.__pointermove=[$$,$,ce,Pe,A,Z,N,S],Me.__pointerup=[y$,$,N,ce,I],Me.__click=[x$,$,U,ce];var ft=h(Me);{var it=De=>{nf(De,{get videoEpisodes(){return r(se)},get disabled(){return $()},get isMobile(){return l()}})},Bt=De=>{var re=S$(),Q=h(re),ae=M(Q,2);let fe;g(re),k(Te=>{nt(Q,`transform: translateX(${X()*100}%);`),fe=ie(ae,1,"filled svelte-1tpemng",null,fe,Te),nt(ae,`transform: translateX(${ee()*100}%);`)},[()=>({"active-live":d()})]),b(De,re)};B(ft,De=>{r(se).length?De(it):De(Bt,!1)})}var st=M(ft,2);let mt;var zt=h(st);let Kt;g(st),g(Me),dt(Me,De=>i(De),()=>i()),k((De,re,Q)=>{var ae,fe;rt=ie(Me,1,`slider ${(ae=o())!=null?ae:""}`,"svelte-1tpemng",rt,De),Oe(Me,"aria-label",ue()),Oe(Me,"aria-valuemin",de()),Oe(Me,"aria-valuemax",Ve()),Oe(Me,"aria-valuenow",Be()),Oe(Me,"aria-valuetext",J()),Oe(Me,"data-testid",(fe=n())!=null?fe:null),mt=ie(st,1,"handleWrap svelte-1tpemng",null,mt,re),nt(st,`transform: translateX(${ne()*100}%);`),Kt=ie(zt,1,"handle svelte-1tpemng",null,Kt,Q)},[()=>({disabled:$(),"slider-dragging":r(N),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>({"active-live":d()})]),kt("pointerenter",Me,Ne),kt("pointerleave",Me,pe),kt("wheel",Me,D),b(t,lt),W()}at(["pointerdown","pointermove","pointerup","click"]);var Hi=(t,e)=>Qs[t]>=Qs[e],Vh=(t,e)=>Qs[t]<Qs[e],Is=(t,e)=>Qs[t]<=Qs[e],Rh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var I$=L("<div><!></div>"),k$=L("<div><!> <!></div>"),E$={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 rf(t,e){var lt,Ae;K(e,!0),G(t,E$);let[i,o]=Ue(),n=()=>C(P,"$isAudioAvailable$",i),a=()=>C(_,"$muted$",i),s=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),l=ke(),u=Wt(),f=l.state.volume$,_=l.state.muted$,{setVolume:p,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,S=(lt=l.callbacks)==null?void 0:lt.onAudioDoesNotExistHint,I=(Ae=l.callbacks)==null?void 0:Ae.onAudioDisabledHint,P=l.state.isAudioAvailable$,A=l.state.isAudioDisabled,E=l.ui.t,T=te(!1),R,z=m(()=>!n()||a()||s()===0),j=m(()=>Is(d(),"s")),U=m(()=>r(j)?"":r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),X=m(()=>r(z)?E("tooltip_volume"):E("tooltip_volume_muted")),ee=m(()=>r(z)?0:s()),ne=!1,ue=m(()=>n()?A&&!I:!S);function de(xe){$(),p(xe)}function Ve(){Vc(l,s(),u.controls.volumeStepWheel)}function Be(){Rc(l,s(),u.controls.volumeStepWheel)}function J(xe){p(xe)}function Le(xe){p(xe),w()}function Z(){ne=!0}function N(){ne=!1,se()}function Re(){clearTimeout(R),O(T,!0)}function we(){se()}function se(){R=window.setTimeout(()=>{ne||O(T,!1)},u.controls.volumeBarTimeout)}function Ne(xe){xe.preventDefault(),xe.deltaY<0?Ve():xe.deltaY>0&&Be()}var pe=k$();let D;var ce=h(pe);na(ce,{get content(){return r(U)},translateY:-18,children:(xe,Me)=>{let rt=m(()=>r(j)?"btn-volume-vertical":"btn-volume-horizontal");Et(xe,{className:"btn-full-opacity",get disabled(){return r(ue)},get testId(){return r(rt)},get ariaLabel(){return r(X)},get click(){return e.click},get ariaKeyShortCut(){return zr.KeyM},children:(ft,it)=>{Ts(ft,{get volume(){return s()},get muted(){return r(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Pe=M(ce,2);{var Ge=xe=>{var Me=I$();let rt;var ft=h(Me);let it=m(()=>r(j)?"volumeBar-slider-vertical":""),Bt=m(()=>r(j)&&!r(T)),st=m(()=>r(j)?Z:Nc),mt=m(()=>r(j)?N:Nc),zt=m(()=>Math.round(r(ee)*100)),Kt=m(()=>`${Math.round(r(ee)*100)}%`),De=m(()=>r(j)?"volume-slider-vertical":"volume-slider");ra(ft,{get className(){return r(it)},get isHidden(){return r(Bt)},get isVertical(){return r(j)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:Be,onPointerDown:de,onHandleMove:J,onPointerUp:Le,get onPointerEnter(){return r(st)},get onPointerLeave(){return r(mt)},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(zt)},get ariaValueText(){return r(Kt)},get filledProgress(){return r(ee)},get handleProgress(){return r(ee)},get testId(){return r(De)}}),g(Me),k(re=>rt=ie(Me,1,"volumeBar svelte-1auih1j",null,rt,re),[()=>({"volumeBar-vertical":r(j)})]),b(xe,Me)};B(Pe,xe=>{n()&&xe(Ge)})}g(pe),k(xe=>D=ie(pe,1,"volumeBar-container svelte-1auih1j",null,D,xe),[()=>({vertical:r(j)})]),kt("mouseenter",pe,function(...xe){var Me;(Me=r(j)?Re:Nc)==null||Me.apply(this,xe)}),kt("mouseleave",pe,function(...xe){var Me;(Me=r(j)?we:Nc)==null||Me.apply(this,xe)}),kt("wheel",pe,Ne),b(t,pe),W(),o()}import{noop as M$}from"@vkontakte/videoplayer-shared/es2015";var P$=$e('<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 sf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=P$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 A$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function af(t,e){G(t,A$);let i=v(e,"isFullscreen",8,!1),o=Cr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");sf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function td(t,e){K(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,M$),n=ke(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Et(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Ss(u);a.set(f),o()()},get ariaKeyShortCut(){return zr.KeyF},children:(u,f)=>{af(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),W()}var L$=$e('<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 lf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=L$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 V$=$e('<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 df(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=V$();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(4),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}var R$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
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 aa(t,e){q(e,!0),G(t,I$);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),u=v(e,"squareBorders",3,!1),f=v(e,"videoEpisodes",19,()=>[]),_=v(e,"withWheelHandler",3,!1),p=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),I=v(e,"onPointerUp",3,Er),P=v(e,"onPointerEnter",3,Er),A=v(e,"onPointerMove",3,Er),E=v(e,"onPointerLeave",3,Er),T=v(e,"onWheelUp",3,Er),V=v(e,"onWheelDown",3,Er),U=v(e,"onWheelLeft",3,Er),j=v(e,"onWheelRight",3,Er),F=v(e,"onDisabledClick",3,Er),Z=v(e,"loadedProgress",3,0),J=v(e,"filledProgress",3,0),ne=v(e,"handleProgress",3,0),fe=v(e,"ariaLabel",3,""),de=v(e,"ariaValueMin",3,void 0),Re=v(e,"ariaValueMax",3,void 0),Le=v(e,"ariaValueNow",3,void 0),ee=v(e,"ariaValueText",3,""),Ve=Qt(),X=te(void 0),B=te(!1),Ne=m(()=>{var De;return(De=Re())!=null?De:0}),re=m(()=>{var De;return Nh(f())&&((De=f()[f().length-1])==null?void 0:De.time)<r(Ne)}),Ee=m(()=>Nh(f())&&f().length&&r(re)&&r(Ne)?Ye(Z()*100,J()*100):[]);function Be(De){if(De.preventDefault(),i()&&O(X,ve(i().getBoundingClientRect())),$())return;let se=ce(De.clientX,De.clientY),Q=Pe(De.clientX);P()(se,Q,r(X).width)}function me(De){De.preventDefault(),!$()&&E()()}function D(De){$()||_()&&(De.preventDefault(),De.deltaY<0?T()():De.deltaY>0?V()():De.deltaX>0?j()():U()())}function ce(De,se){return s()?Math.max(0,Math.min(1,(r(X).height-(se-r(X).top))/r(X).height)):Math.min(Math.max(De-r(X).x,0),r(X).width)/r(X).width}function Pe(De){return Math.min(Math.max(De-r(X).x,0),r(X).width)}function Ye(De,se){let Q=Ve.features.episodesClustering&&!p()?Ve.episodeMinWidthPc:0,ae=[],_e=f()[0].time/r(Ne)*100,Ce=0,Oe=0;for(let Ze=1;Ze<f().length;Ze++)Ce=f()[Ze].time/r(Ne)*100,Ce-_e>Q&&(ae.push({from:_e,width:Math.max(0,Ce-_e),loadedWidth:Math.max(0,Math.min(Ce,De)-_e),filledWidth:Math.max(0,Math.min(Ce,se)-_e),interactive:f()[Ze-1].interactive,completed:f()[Ze-1].completed}),_e=f()[Ze].time/r(Ne)*100,Oe++);let ut={from:_e,width:Math.max(0,100-_e),loadedWidth:Math.max(0,Math.min(De,100)-_e),filledWidth:Math.max(0,Math.min(se,100)-_e),interactive:f()[Oe].interactive,completed:f()[Oe].completed};100-_e<Q?(Oe-=1,ae[Oe].width+=100-_e,ae[Oe].loadedWidth+=Math.max(0,Math.min(De,100)-_e),ae[Oe].filledWidth+=Math.max(0,Math.min(se,100)-_e)):ae[Oe]=ut;let Gt=f()[0].time;if(Gt!==0){let Ze=Gt/r(Ne)*100;ae.unshift({from:0,width:Ze,loadedWidth:Math.min(Ze,De),filledWidth:Math.min(Ze,se)})}return ae}var dt=T$(),Ae=pe(dt);{var ye=De=>{var se=S$();let Q;yi(se,21,()=>r(Ee),ae=>ae.from,(ae,_e)=>{var Ce=Ke(),Oe=pe(Ce);{var ut=Gt=>{df(Gt,{get videoEpisode(){return r(_e)},get disabled(){return $()}})};R(Oe,Gt=>{r(_e).interactive&&Gt(ut)})}b(ae,Ce)}),g(se),k(ae=>Q=ie(se,1,"interactive-icons svelte-1tpemng",null,Q,ae),[()=>({mobile:l(),hidden:l()&&!r(B)})]),b(De,se)};R(Ae,De=>{p()&&De(ye)})}var Me=M(Ae,2);let rt;Me.__pointerdown=[$$,i,X,$,B,ce,y],Me.__pointermove=[y$,$,ce,Pe,A,X,B,S],Me.__pointerup=[x$,$,B,ce,I],Me.__click=[w$,$,F,ce];var vt=h(Me);{var lt=De=>{cf(De,{get videoEpisodes(){return r(Ee)},get disabled(){return $()},get isMobile(){return l()}})},kt=De=>{var se=C$(),Q=h(se),ae=M(Q,2);let _e;g(se),k(Ce=>{tt(Q,`transform: translateX(${Z()*100}%);`),_e=ie(ae,1,"filled svelte-1tpemng",null,_e,Ce),tt(ae,`transform: translateX(${J()*100}%);`)},[()=>({"active-live":d()})]),b(De,se)};R(vt,De=>{r(Ee).length?De(lt):De(kt,!1)})}var st=M(vt,2);let gt;var Kt=h(st);let jt;g(st),g(Me),ct(Me,De=>i(De),()=>i()),k((De,se,Q)=>{var ae,_e;rt=ie(Me,1,`slider ${(ae=o())!=null?ae:""}`,"svelte-1tpemng",rt,De),He(Me,"aria-label",fe()),He(Me,"aria-valuemin",de()),He(Me,"aria-valuemax",Re()),He(Me,"aria-valuenow",Le()),He(Me,"aria-valuetext",ee()),He(Me,"data-testid",(_e=n())!=null?_e:null),gt=ie(st,1,"handleWrap svelte-1tpemng",null,gt,se),tt(st,`transform: translateX(${ne()*100}%);`),jt=ie(Kt,1,"handle svelte-1tpemng",null,jt,Q)},[()=>({disabled:$(),"slider-dragging":r(B),hidden:a(),"slider-vertical":s(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>({"active-live":d()})]),Et("pointerenter",Me,Be),Et("pointerleave",Me,me),Et("wheel",Me,D),b(t,dt),K()}at(["pointerdown","pointermove","pointerup","click"]);var Oi=(t,e)=>Ys[t]>=Ys[e],Bh=(t,e)=>Ys[t]<Ys[e],ks=(t,e)=>Ys[t]<=Ys[e],Dh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var k$=L("<div><!></div>"),E$=L("<div><!> <!></div>"),P$={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 uf(t,e){var dt,Ae;q(e,!0),G(t,P$);let[i,o]=Ue(),n=()=>C(P,"$isAudioAvailable$",i),a=()=>C(_,"$muted$",i),s=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),l=Se(),u=Qt(),f=l.state.volume$,_=l.state.muted$,{setVolume:p,startVolumeChanging:$,stopVolumeChanging:w}=l.actions.internal,y=l.ui.currentGridType$,S=(dt=l.callbacks)==null?void 0:dt.onAudioDoesNotExistHint,I=(Ae=l.callbacks)==null?void 0:Ae.onAudioDisabledHint,P=l.state.isAudioAvailable$,A=l.state.isAudioDisabled,E=l.ui.t,T=te(!1),V,U=m(()=>!n()||a()||s()===0),j=m(()=>ks(d(),"s")),F=m(()=>r(j)?"":r(U)?E("tooltip_volume"):E("tooltip_volume_muted")),Z=m(()=>r(U)?E("tooltip_volume"):E("tooltip_volume_muted")),J=m(()=>r(U)?0:s()),ne=!1,fe=m(()=>n()?A&&!I:!S);function de(ye){$(),p(ye)}function Re(){Oc(l,s(),u.controls.volumeStepWheel)}function Le(){Hc(l,s(),u.controls.volumeStepWheel)}function ee(ye){p(ye)}function Ve(ye){p(ye),w()}function X(){ne=!0}function B(){ne=!1,Ee()}function Ne(){clearTimeout(V),O(T,!0)}function re(){Ee()}function Ee(){V=window.setTimeout(()=>{ne||O(T,!1)},u.controls.volumeBarTimeout)}function Be(ye){ye.preventDefault(),ye.deltaY<0?Re():ye.deltaY>0&&Le()}var me=E$();let D;var ce=h(me);sa(ce,{get content(){return r(F)},translateY:-18,children:(ye,Me)=>{let rt=m(()=>r(j)?"btn-volume-vertical":"btn-volume-horizontal");Mt(ye,{className:"btn-full-opacity",get disabled(){return r(fe)},get testId(){return r(rt)},get ariaLabel(){return r(Z)},get click(){return e.click},get ariaKeyShortCut(){return Ur.KeyM},children:(vt,lt)=>{Is(vt,{get volume(){return s()},get muted(){return r(U)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Pe=M(ce,2);{var Ye=ye=>{var Me=k$();let rt;var vt=h(Me);let lt=m(()=>r(j)?"volumeBar-slider-vertical":""),kt=m(()=>r(j)&&!r(T)),st=m(()=>r(j)?X:Uc),gt=m(()=>r(j)?B:Uc),Kt=m(()=>Math.round(r(J)*100)),jt=m(()=>`${Math.round(r(J)*100)}%`),De=m(()=>r(j)?"volume-slider-vertical":"volume-slider");aa(vt,{get className(){return r(lt)},get isHidden(){return r(kt)},get isVertical(){return r(j)},withWheelHandler:!0,onWheelUp:Re,onWheelDown:Le,onPointerDown:de,onHandleMove:ee,onPointerUp:Ve,get onPointerEnter(){return r(st)},get onPointerLeave(){return r(gt)},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(Kt)},get ariaValueText(){return r(jt)},get filledProgress(){return r(J)},get handleProgress(){return r(J)},get testId(){return r(De)}}),g(Me),k(se=>rt=ie(Me,1,"volumeBar svelte-1auih1j",null,rt,se),[()=>({"volumeBar-vertical":r(j)})]),b(ye,Me)};R(Pe,ye=>{n()&&ye(Ye)})}g(me),k(ye=>D=ie(me,1,"volumeBar-container svelte-1auih1j",null,D,ye),[()=>({vertical:r(j)})]),Et("mouseenter",me,function(...ye){var Me;(Me=r(j)?Ne:Uc)==null||Me.apply(this,ye)}),Et("mouseleave",me,function(...ye){var Me;(Me=r(j)?re:Uc)==null||Me.apply(this,ye)}),Et("wheel",me,Be),b(t,me),K(),o()}import{noop as L$}from"@vkontakte/videoplayer-shared/es2015";var A$=$e('<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 pf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=A$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 M$={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function ff(t,e){G(t,M$);let i=v(e,"isFullscreen",8,!1),o=Sr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");pf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function td(t,e){q(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,L$),n=Se(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Mt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Cs(u);a.set(f),o()()},get ariaKeyShortCut(){return Ur.KeyF},children:(u,f)=>{ff(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),K()}var V$=$e('<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 mf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=V$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 R$=$e('<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 vf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=R$();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(4),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}var N$={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
177
177
  svg[data-testid="vk-video-logo-icon--short"] ._en,
178
178
  svg[data-testid="vk-video-logo-icon"] ._en,
179
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function cf(t,e){G(t,R$);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`);df(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function id(t,e){K(e,!0);let[i,o]=Ue(),n=()=>C($,"$isMobile",i),a=()=>C(p,"$currentGridType$",i),s=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=Wt(),_=ke(),p=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,y=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),I=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),P=m(()=>(n()||Is(a(),"l"))&&r(I)),A=()=>{var R,z;e.click(),(R=_.callbacks)!=null&&R.onLogoClicked?(z=_.callbacks)==null||z.onLogoClicked():u()&&window.open(u(),"_blank")},E=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");Et(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:A,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(R){d(R)},children:(R,z)=>{var j=ze(),U=he(j);{var X=ne=>{cf(ne,{get short(){return r(P)},get isCyrillic(){return s()}})},ee=ne=>{lf(ne,{})};B(U,ne=>{r(I)?ne(X):ne(ee,!1)})}b(R,j)},$$slots:{default:!0}}),W(),o()}import{ChromecastState as H$}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as Bh}from"@vkontakte/videoplayer-core/es2015";var N$=$e('<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>'),D$=$e('<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>'),O$={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) {
179
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function gf(t,e){G(t,N$);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`);vf(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function id(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C($,"$isMobile",i),a=()=>C(p,"$currentGridType$",i),s=()=>C(y,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),u=v(e,"targetUrl",3,""),f=Qt(),_=Se(),p=_.ui.currentGridType$,$=_.ui.isMobile,w=_.ui.t,y=_.isCyrillicRelatedInterface$,S=m(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),I=m(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),P=m(()=>(n()||ks(a(),"l"))&&r(I)),A=()=>{var V,U;e.click(),(V=_.callbacks)!=null&&V.onLogoClicked?(U=_.callbacks)==null||U.onLogoClicked():u()&&window.open(u(),"_blank")},E=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");Mt(t,{className:"btn-full-opacity",get disabled(){return r(E)},click:A,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(V){d(V)},children:(V,U)=>{var j=Ke(),F=pe(j);{var Z=ne=>{gf(ne,{get short(){return r(P)},get isCyrillic(){return s()}})},J=ne=>{mf(ne,{})};R(F,ne=>{r(I)?ne(Z):ne(J,!1)})}b(V,j)},$$slots:{default:!0}}),K(),o()}import{ChromecastState as F$}from"@vkontakte/videoplayer-core/es2015";import{ChromecastState as Oh}from"@vkontakte/videoplayer-core/es2015";var D$=$e('<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>'),O$=$e('<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>'),H$={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
180
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
181
181
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
182
182
  animation-name: svelte-8z1bf5-wave3;}
@@ -224,9 +224,9 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
224
224
  100% {
225
225
  opacity: 1;
226
226
  }
227
- }`};function uf(t,e){K(e,!0),G(t,O$);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===Bh.CONNECTED),n=m(()=>e.iconState===Bh.CONNECTING);var a=ze(),s=he(a);{var d=u=>{var f=N$(),_=h(f),p=h(_),$=h(p);be(),g(p);var w=M(p);be(),g(_);var y=M(_),S=h(y),I=h(S);g(S),be(),g(y),g(f),k(()=>{Oe($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Oe(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},l=u=>{var f=D$();let _;var p=h(f),$=M(h(p),5);let w;g(p),g(f),k((y,S)=>{_=ie(f,0,"svelte-8z1bf5",null,_,y),w=ie($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(u,f)};B(s,u=>{i()?u(d):u(l,!1)})}b(t,a),W()}import{noop as F$}from"@vkontakte/videoplayer-shared/es2015";function od(t,e){K(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,F$),s=ke().ui.t,d=m(()=>e.state===H$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Et(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,u)=>{uf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),W()}var U$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),z$={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 pf(t,e){G(t,z$);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=te(void 0),d=te(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 u=m(()=>l(n()));var f=U$(),_=h(f);let p;var $=h(_);ve($,()=>{var w;return(w=e.children)!=null?w:oe}),g(_),dt(_,w=>O(d,w),()=>r(d)),g(f),dt(f,w=>O(s,w),()=>r(s)),k(w=>{nt(f,`transform: translate(${r(u)}px, ${a()}px);`),p=ie(_,1,"tooltip svelte-5ygsa2",null,p,w)},[()=>({active:i(),pointer:o()})]),b(t,f)}var Dc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Nh=t=>!!(Math.round(Math.abs(t)/90)%2),Dh=t=>Math.abs(t)/90%4===1;var q$=L('<div class="preview svelte-1wqg760"></div>'),K$=L('<div class="time svelte-1wqg760"> </div>'),W$=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 ff(t,e){K(e,!0),G(t,Q$);let[i,o]=Ue(),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),u=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),_=v(e,"duration",3,0),p=v(e,"isInteractive",3,!1),$=ke(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=te(0),I=te(0),P=te(""),A=te(0),E=te(0),T=te(0),R=te(0),z=m(()=>Dc(f(),_(),u())),j=m(()=>Nh(n())),U=m(()=>Dh(n())),X=m(ue),ee=m(()=>(r(U)?1:-1)*(r(S)/2-r(I)/2)),ne=m(()=>r(ee)*-1);Ze(()=>{(D=>(O(S,_e(D.width)),O(I,_e(D.height))))(Ve())}),Ze(()=>{(D=>(O(P,_e(D.imgSrc)),O(A,_e(D.imgWidth)),O(E,_e(D.imgHeight)),O(T,_e(D.imgOffsetX)),O(R,_e(D.imgOffsetY))))(Be(f()))});function ue(){var Ge;let D=l()?s.MOBILE:s.DESKTOP,{isVertical:ce}=de(),Pe=30;return(Ge=r(z))!=null&&Ge.text&&(Pe+=16),(ce||r(j))&&(Pe+=18,Pe+=50),Math.min(Math.max(a().height-Pe,0),D)}function de(){let D=e.previewThumbsData.frameWidth,ce=e.previewThumbsData.frameHeight,Pe=ce>D;return{width:D,height:ce,isHorizontal:!Pe,isVertical:Pe}}function Ve(){let{height:D,isHorizontal:ce,isVertical:Pe,width:Ge}=de();return ce&&(D=D/Ge*r(X),Ge=r(X)),Pe&&(Ge=Ge/D*r(X),D=r(X)),{width:Ge,height:D}}function Be(D){let ce;e.previewThumbsData.isUV?ce=Math.floor(_()*D/e.previewThumbsData.frequency):ce=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*D)));let Pe=Math.floor(ce/e.previewThumbsData.countPerImage),Ge=Math.floor(ce%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),lt=ce%e.previewThumbsData.countPerRow,Ae=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Pe===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 xe=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Pe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(xe=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Me=r(S)*xe,rt=r(I)*Ae,ft=-lt*r(S),it=-Ge*r(I);return{imgSrc:e.previewThumbsData.links[Pe],imgWidth:Me,imgHeight:rt,imgOffsetX:ft,imgOffsetY:it}}var J=W$();let Le;var Z=h(J);{var N=D=>{var ce=q$();k(()=>nt(ce,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(P)}); background-size: ${r(A)}px ${r(E)}px; background-position: ${r(T)}px ${r(R)}px;
228
- transform: rotate(${n()}deg) ${r(j)?`translate(${r(ee)}px, ${r(ne)}px)`:""};
229
- `)),b(D,ce)};B(Z,D=>{r(P)&&D(N)})}var Re=M(Z,2),we=h(Re);{var se=D=>{var ce=ze(),Pe=he(ce);{var Ge=Ae=>{var xe=nr();k(Me=>me(xe,Me),[()=>F("tooltip_episode_unfinished")]),b(Ae,xe)},lt=Ae=>{var xe=nr();k(()=>me(xe,r(z).text||"")),b(Ae,xe)};B(Pe,Ae=>{p()&&r(z).completed===!1?Ae(Ge):Ae(lt,!1)})}b(D,ce)};B(we,D=>{r(z)&&D(se)})}g(Re);var Ne=M(Re,2);{var pe=D=>{var ce=K$(),Pe=h(ce,!0);g(ce),k(()=>me(Pe,d())),b(D,ce)};B(Ne,D=>{p()||D(pe)})}g(J),k(D=>{Le=ie(J,1,"timeline-preview svelte-1wqg760",null,Le,D),nt(J,`width: ${r(j)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,J),W(),o()}var G$=L('<span class="time svelte-1jr6obn"> </span>'),Y$=L("<!> <!>",1),j$={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 mf(t,e){var fe;K(e,!0),G(t,j$);let[i,o]=Ue(),n=()=>C(X,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(A,"$position$",i),d=()=>C(ue,"$isInteractiveExpectation$",i),l=()=>C(ne,"$isInteractiveTime$",i),u=()=>C(T,"$isLive$",i),f=()=>C(z,"$isMobile",i),_=()=>C(R,"$isActiveLive$",i),p=()=>C(P,"$bufferedProgress$",i),$=()=>C(Be,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"ref",15,void 0),S=ke(),I=Wt(),P=S.state.bufferedProgress$,A=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,R=S.state.isActiveLive$,z=S.ui.isMobile,j=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,U=S.actions.internal.getPreviewThumbsData(),X=S.state.interactiveEpisodes$,ee=S.state.isInteractive,ne=S.state.isInteractiveTime$,ue=S.state.isInteractiveExpectation$,de=S.actions.internal.correctSeekTimeToInteractive,Ve=(fe=S.callbacks)==null?void 0:fe.onDisabledTimelineClick,Be=S.ui.controls.disabledControls$,J=S.ui.t,Le=I.features.interactiveResponsiveUi,Z=m(()=>ee?n():j),N=m(()=>ar(a())),Re=m(()=>ar(s())),we=m(()=>s()/a()),se=m(()=>d()||l()),Ne=te(!1),pe=te(""),D=te(0),ce=te(0),Pe=te(0),Ge=m(()=>({containerWidth:r(ce),translateXPx:r(D),translateYPx:ee&&U?-36:-16,active:r(Ne)&&w()&&!r(se)&&!Le,pointer:!I.features.timelinePreview||!U||u()})),lt=J("aria_timeline"),Ae=m(()=>J("aria_timeline_value",{position:r(Re),duration:r(N)}));function xe(Te){return!de||!ee?Te:de(Te*a())/a()}function Me(Te){S.actions.internal.startScrubbing(xe(Te))}function rt(Te){l()||S.actions.internal.progressScrubbing(xe(Te))}function ft(Te){S.actions.internal.completeScrubbing(xe(Te)),O(Ne,!1)}function it(Te,He,ct){mt(Te,He,ct),O(Ne,!0)}function Bt(Te,He,ct){mt(Te,He,ct),O(Ne,!0)}function st(){O(Ne,!1)}function mt(Te,He,ct){O(Pe,_e(xe(Te))),O(D,_e(He)),ct&&O(ce,_e(ct)),O(pe,_e(zt(Te)))}function zt(Te){let He=ar((u()?1-Te:Te)*a());return u()?`-${He}`:He}var Kt=Y$(),De=he(Kt);pf(De,rs(()=>r(Ge),{children:(Te,He)=>{var ct=ze(),Nt=he(ct);{var Ke=Je=>{ff(Je,{get time(){return r(pe)},get isMobile(){return f()},get videoEpisodes(){return r(Z)},previewThumbsData:U,get progress(){return r(Pe)},get duration(){return a()},isInteractive:ee})},gt=Je=>{var yt=G$(),jt=h(yt,!0);g(yt),k(()=>me(jt,r(pe))),b(Je,yt)};B(Nt,Je=>{I.features.timelinePreview&&U&&!u()?Je(Ke):Je(gt,!1)})}b(Te,ct)},$$slots:{default:!0}}));var re=M(De,2);let Q=m(()=>Math.round(r(we)*100)),ae=m(()=>$().has("TIMELINE"));ra(re,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:lt,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Q)},get ariaValueText(){return r(Ae)},get loadedProgress(){return p()},get filledProgress(){return r(we)},get handleProgress(){return r(we)},get videoEpisodes(){return r(Z)},onPointerDown:Me,onHandleMove:rt,onPointerMove:Bt,onPointerUp:ft,onPointerEnter:it,onPointerLeave:st,onDisabledClick:Ve,isInteractive:ee,get disabled(){return r(ae)},get hideHandel(){return l()},get ref(){return y()},set ref(Te){y(Te)}}),b(t,Kt),W(),o()}var Z$={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){K(e,!0),G(t,Z$);let[i,o]=Ue(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=ke(),l=d.ui.isMobile,u=d.ui.t,f=m(()=>ar(s())),_=m(()=>ar(a())),p=m(()=>a()/s()),$=m(()=>u("aria_timeline_value",{position:r(_),duration:r(f)})),w=m(()=>Math.round(r(p)*100));ra(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),W(),o()}var X$=L("<div><!></div>"),J$=L("<div></div>"),e2={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 rd(t,e){K(e,!0),G(t,e2);let[i,o]=Ue(),n=()=>C(p,"$isLive$",i),a=()=>C(y,"$isMobile",i),s=()=>C(w,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),u=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=ke(),p=_.state.isLive$,$=_.ads.duration,w=_.ads.position,y=_.ui.isMobile,S=m(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=ze(),P=he(I);{var A=T=>{var R=X$();let z;var j=h(R);{var U=ee=>{nd(ee,{get position(){return s()},get duration(){return d()}})},X=ee=>{mf(ee,{get showTimeline(){return r(S)},get ref(){return f()},set ref(ne){f(ne)}})};B(j,ee=>{l()?ee(U):ee(X,!1)})}g(R),k(ee=>z=ie(R,1,"timeline svelte-1gqonyf",null,z,ee),[()=>({mobile:a()})]),b(T,R)},E=T=>{var R=J$();let z;k(j=>z=ie(R,1,"timeline-stub svelte-1gqonyf",null,z,j),[()=>({mobile:a()})]),b(T,R)};B(P,T=>{r(S)?T(A):T(E,!1)})}b(t,I),W(),o()}import{noop as o2}from"@vkontakte/videoplayer-shared/es2015";var t2=$e('<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 vf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=t2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(3),g(o),k(()=>n=Ce(o,n,q({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 i2=$e('<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 gf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=i2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 n2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),r2=L('<span class="text svelte-1yhs2ga"> </span>'),s2=L('<span class="text count svelte-1yhs2ga"> </span>'),a2=L("<!> <!>",1),l2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function sd(t,e){var de,Ve,Be;K(e,!0),G(t,l2);let[i,o]=Ue(),n=()=>C(w,"$currentGridType$",i),a=()=>C(y,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(I,"$isMobile",i),l=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=ke(),p=(Ve=(de=_.callbacks)==null?void 0:de.onEpisodeChanged)!=null?Ve:o2,$=!!((Be=_.callbacks)!=null&&Be.onEpisodeClicked),w=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,P=_.ui.t,A=te(void 0),E=J=>{var Z,N,Re;if(!!((Z=_.callbacks)!=null&&Z.onEpisodeClicked)){let we=Ss(J);y.set(we),S.set(!0),(Re=(N=_.callbacks)==null?void 0:N.onEpisodeClicked)==null||Re.call(N,we)}},T=te(null),R=m(()=>l()/u());Ze(()=>{var Le;let J=Dc(r(R),u(),f());J?((Le=r(T))==null?void 0:Le.time)!==J.time&&(p(J),O(T,_e(J))):O(T,null)});let z=m(()=>{var J;return((J=r(T))==null?void 0:J.text)||""}),j=m(()=>Hi(n(),"xl")?"FULL":Hi(n(),"m")&&Vh(n(),"xl")?"COUNT":"SHORT"),U=m(()=>`${P("tooltip_episodes")}: ${r(z)}`),X=(J,Le,Z)=>St(this,null,function*(){yield bo(),(J==null?void 0:J.getAttribute("aria-expanded"))==="false"&&Le&&!Z&&_t(()=>{y.set(!1),J.focus()})});Ze(()=>{X(r(A),a(),s())});var ee=ze(),ne=he(ee);{var ue=J=>{let Le=m(()=>d()?"px-0":"");Et(J,{get className(){var Z;return`w-max btn-full-opacity btn-jc-l ${(Z=r(Le))!=null?Z:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(U)},get ref(){return r(A)},set ref(Z){O(A,_e(Z))},children:(Z,N)=>{var Re=ze(),we=he(Re);{var se=pe=>{var D=n2(),ce=he(D),Pe=h(ce,!0);g(ce);var Ge=M(ce,2),lt=h(Ge);gf(lt,{}),g(Ge),k(()=>me(Pe,r(z))),b(pe,D)},Ne=pe=>{var D=a2(),ce=he(D);vf(ce,{});var Pe=M(ce,2);{var Ge=Ae=>{var xe=r2(),Me=h(xe,!0);g(xe),k(()=>me(Me,r(z))),b(Ae,xe)},lt=(Ae,xe)=>{{var Me=rt=>{var ft=s2(),it=h(ft,!0);g(ft),k(()=>me(it,f().length)),b(rt,ft)};B(Ae,rt=>{r(j)==="COUNT"&&rt(Me)},xe)}};B(Pe,Ae=>{r(j)==="FULL"?Ae(Ge):Ae(lt,!1)})}b(pe,D)};B(we,pe=>{d()?pe(se):pe(Ne,!1)})}b(Z,Re)},$$slots:{default:!0}})};B(ne,J=>{r(T)&&J(ue)})}b(t,ee),W(),o()}import{debounceFn as ly}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as g2,PlaybackState as ad,Player as h2,PredefinedQualityLimits as Wr,VideoFormat as ld,clientChecker as _2}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as Gn,getHighestQuality as b2,InterfaceLanguage as $2,isInvariantQuality as y2,isNonNullable as x2,loadVKLangPack as w2,Logger as S2,map as Wh,merge as C2,Observable as T2,Subject as Kc,Subscription as xf,Tracer as I2,ValueSubject as k2,VideoQuality as E2,devNull as P2,now as A2}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as as}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as d2,devNull as Qt,now as Gt}from"@vkontakte/videoplayer-shared/es2015";import{addScript as c2,Subject as qo,clearVideoElement as u2}from"@vkontakte/videoplayer-shared/es2015";var Oh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var p2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Oc=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 qo,loadStarted$:new qo,loadEnded$:new qo,loadError$:new qo,ready$:new qo,slotRequested$:new qo,started$:new qo,timeRemained$:new qo,paused$:new qo,resumed$:new qo,ended$:new qo,empty$:new qo,skipped$:new qo,clicked$:new qo,closed$:new qo,error$:new qo};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())};c2(p2,e,this.loadTimeout).then(()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Gt()]}),window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Gt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Gt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let a=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Gt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Gt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Gt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Gt()]}),!d&&(window.AdmanHTML?(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Gt()]}),i(),this.events.loadEnded$.next()):(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Gt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Gt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Gt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Se(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Gt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Gt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Gt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var A;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:u={},duration:f,previewParam:_}=e,p,$=this.playerState&&Se(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=d2(),S=(A=w?y:window.location.href)!=null?A:window.location.href,I=At(q(At(q({},u),{dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_}),p?{request_id:p}:{}),{duration:f,puid10:Oh(i,o),puid11:n?0:1});_||delete I.preview;let P={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,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(P),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(P)}`})}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=Se(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Gt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Qt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Gt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,a,s,d,l,u,f,_,p;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),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&u2(this.videoElement),this.isDestroyed=!0}};var Hh=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 hf=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 u=new Hc,{startTime:f,endTime:_}=u.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let u=new _f,{texts:f}=u.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Hc=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}},_f=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 u=["<",">"].reduce((f,_)=>{let p=s.indexOf(_,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new Hc;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}},Fh=hf;import{isNonNullable as bf}from"@vkontakte/videoplayer-shared/es2015";var sa,xi,$f=0,yf=!1,Uh="",zh=(t,e=0,i=0)=>t<e&&t<i,Fc=(t,e=0,i=0)=>t>=e&&t<=i,f2=(t,e=0,i=0)=>t>e&&t>i,qh=(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:u,endTime:f})=>Fc(t,u,f));let a=t>=$f,s=t<$f;if($f=t,s&&(yf=!1),bf(sa)&&Fc(t,sa.startTime,sa.endTime)&&Uh===e.value)return sa;if(!bf(xi)&&(n!=null&&n.length)&&!yf){xi=n.find(({startTime:u,endTime:f})=>Fc(t,u,f)||a&&zh(t,u,f)),sa=void 0,!bf(xi)&&n[n.length-1].endTime<t&&(yf=!0);return}else{if(Fc(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))return sa=xi,xi=void 0,Uh=e.value,sa;(a&&f2(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime)||s&&zh(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))&&(xi=void 0)}};var Kh={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"},m2={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"},Uc=t=>{var e,i;return(i=(e=Kh[t])!=null?e:Kh[m2[t]])!=null?i:void 0};import{Subscription as v2}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var zc=class{constructor(e,i,o=new v2){this.oneStat=e;this.thinOneStat=i;this.statSubscription=o}destroy(){var e,i;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),this.statSubscription.unsubscribe()}};var qc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(qc||{});var Kr=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(Kr(i==null?void 0:i.top)-Kr(o==null?void 0:o.top)),left:Math.round(Kr(i==null?void 0:i.left)-Kr(o==null?void 0:o.left)),bottom:Math.round(Kr(i==null?void 0:i.bottom)-Kr(o==null?void 0:o.top)),right:Math.round(Kr(i==null?void 0:i.right)-Kr(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:Kr(e==null?void 0:e.width),height:Kr(e==null?void 0:e.height)}};var Qh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:_,uiConfig:p,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:P,replayInteractive:A,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:R,additionalButtons:z,additionalSettingsMenuItems:j,additionalContextMenuItems:U,playPrevVideo:X,playNextVideo:ee,looped:ne=!1,statistics:ue,saveRate:de,internalsExposure:Ve})=>{var Om,Hm,Fm;let Be=At(q({},$),{configName:[...(Om=$.configName)!=null?Om:[],"ui"],isAudioDisabled:s,live:At(q({},(Hm=$.live)!=null?Hm:{}),{isLiveCatchUpMode:!!n})}),J=p,Le=I2.createRootTracer(J.features.saveTraceInfoToFile),Z=Le.createComponentTracer("Store"),N=w||new h2(Be,Le);Ve==null||Ve.expose({corePlayer:N});let Re=new S2,we=new Oc(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}),se=Ys.getInstance(),Ne=u==null?void 0:u.pictureInPictureApi,pe=u==null?void 0:u.annotationsApi,D=Re.createComponentLog("Store"),ce,Pe,Ge={},lt=new gc,Ae=ue&&ue.oneStat?Yt(ue.oneStat.vsid$):sr(void 0),xe=le(ys()),Me=le(!1),rt=(Fm=Ne==null?void 0:Ne.info.isActive$)!=null?Fm:new k2(!1),ft=le(0),it=le([]),Bt=C2(N.events.fatalError$,N.events.managedError$).subscribe(c=>it.update(x=>[...x,c])),st=sr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),mt=c=>St(void 0,null,function*(){var ge;let x=Object.values($2).includes(c);if(J.downloadVKLanguages&&(x&&J.updateBuiltinLanguages||!Ip(c))){let Qe;try{Qe=yield w2(c,Pg,Ag)}catch(wt){(ge=ue==null?void 0:ue.oneStat)==null||ge.logError({errorType:"VKLangPack",fatal:!1}),se==null||se.report(wt,{errorType:"VKLangPack",fatal:!1})}Qe&&(Tp({language:c,pack:Qe,fallback:J.defaultLanguage}),zt.set(c))}Ip(c)&&zt.set(c)}),zt=le(t),Kt=le(e);mt(t);let De=(c,x)=>{let V=Se(zt);return kp(V,c,x,J.defaultLanguage)},re=le("thumb"),Q=(()=>{let c=_i([st,re],([x,V])=>x?"crashed":V);return At(q({},c),{is:x=>Se(c)===x})})(),ae=(()=>{let c=le(new Set(y));return At(q({},c),{add:x=>{c.update(V=>new Set([...V].concat(x)))},remove:x=>{c.update(V=>{let ge=[...V];return new Set(Array.isArray(x)?ge.filter(Qe=>!x.includes(Qe)):ge.filter(Qe=>Qe!==x))})},includes:x=>{let V=Se(c);return Array.isArray(x)?x.every(ge=>V.has(ge)):V.has(x)}})})();Z.log("create store"),D({message:"create store"});let fe=c=>{let x=c.container;x.append(N.experimental.element$.getValue()),Je=new MutationObserver(V=>{let{removedNodes:ge}=V[0];ge.length&&x.append(N.experimental.element$.getValue())}),Je.observe(x,{childList:!0})},Te=c=>{D({message:`init video, config: ${JSON.stringify(c)}`}),S?fe(c):(P2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[A2()]}),N.initVideo(c)),Z.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),ce=c},He=new Kc,ct=c=>He.next(c),Nt=new Kc,Ke=new Kc,gt=new Kc,Je=null,yt={actionRewind$:Nt,actionSeek$:Ke,inPiP$:rt,inFullscreen$:new T2(c=>xe.subscribe(x=>c.next(x))),actionSetSubtitle$:gt,nextMovie$:He},jt={actionSeek$:Ke};if(ue){let{oneStat:c,thinOneStat:x,statSubscription:V}=ue;c&&(S||V.add(c.attachTo(N)),V.add(c.attachToUi(yt)),V.add(c.attachToAds(we.events)),c.authorize(a).catch(ge=>{D({message:`onestat auth error ${String(ge)}`})})),x&&(V.add(x.attachTo(N)),V.add(x.attachToUi(jt)),x.authorize(a))}if(se){let c=new xf,x=(V,ge)=>c.add(V.subscribe(ge));if(x(N.events.managedError$,V=>{se.logIError(V)}),x(N.events.fatalError$,V=>{se.logIError(V,!0)}),ue){let{oneStat:V}=ue;V&&x(V.experimental.error$,ge=>{se.logIError(ge)})}se.sentrySubscription.add(c)}let je=()=>{_2.device.isIOS&&Pe&&mh(Pe).catch(c=>{D({message:`exitIosSafariFullscreen failed: ${c}`})})},Ct=new xf().add(N.experimental.element$.subscribe(c=>{c&&(Pe=c,c.classList.add("player-media"),Xs(Ne)&&(Ne.updateVideoElement(),Ne.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(N.events.ended$.subscribe(()=>{var c;je(),(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(()=>St(void 0,null,function*(){var x,V;Xs(Ne)&&(yield Ne==null?void 0:Ne.revealPictureInPicture());let c=N.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(V=Ge.onStarted)==null||V.call(Ge,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var V;(V=l==null?void 0:l.onSeek)==null||V.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 V;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((V=l==null?void 0:l.onTimeupdate)==null||V.call(l,x,c),we.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(()=>{It.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{It.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(P!=null&&P.getValue()&&ae.add(Rl),ae.add("PLAY_BUTTON")):ae.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(we.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(we.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(we.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(we.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(we.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(we.events.started$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onStarted)==null?void 0:V.call(x,c)})).add(we.events.timeRemained$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:V.call(x,c)})).add(we.events.ended$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onCompleted)==null?void 0:V.call(x,c)})).add(we.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(we.events.clicked$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClicked)==null?void 0:V.call(x,c)})).add(we.events.closed$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onClosed)==null?void 0:V.call(x,c)})).add(we.events.error$.subscribe(c=>{var x,V;return(V=(x=l==null?void 0:l.adsInfo)==null?void 0:x.onError)==null?void 0:V.call(x,c)})).add(we.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(we.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)})),ui=new xf,si=()=>{var wt,Lt,Ut;let{debugLog:c}=J,x,V="#9df7b7",ge="#efd169";if(c&&c!==!0){let{colors:Vt}=c;x=c.tag,V=(wt=Vt==null?void 0:Vt[0])!=null?wt:V,ge=(Ut=(Lt=Vt==null?void 0:Vt[1])!=null?Lt:Vt==null?void 0:Vt[0])!=null?Ut:ge}let Qe=x?`: ${x}`:"";ui.add(N.events.log$.subscribe(Vt=>{console.debug(`%c sdk${Qe} `,`background:${V};`,`sdk component: ${Vt.component}`,Vt.message)})).add(Re.log$.subscribe(Vt=>{console.debug(`%c ui${Qe} `,`background:${ge};`,`ui component: ${Vt.component}.`,Vt.message)}))},Ei=()=>{ui.unsubscribe()},Fi=(c,x)=>{Z.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Ro=(c=!1)=>{Z.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},wo=(c,x,V)=>{Z.log("move camera focus px",{xpx:c,ypx:x,dt:V}),N.moveCameraFocusPX(c,x,V)},So=()=>{N.holdCamera()},Bo=()=>{N.releaseCamera()},H=sr(N.info.position$.getValue(),c=>{let x,V,ge=()=>{let Qe=N.info.playbackState$.getValue(),wt=N.info.isLive$.getValue(),Lt=N.info.duration$.getValue(),Ut=N.info.position$.getValue();if(Qe&&[ad.PLAYING,ad.PAUSED].includes(Qe)){let Vt=wt?Ut-Lt:N.getExactTime();Vt!==V&&c(Vt),V=Vt}x=requestAnimationFrame(ge)};return ge(),()=>cancelAnimationFrame(x)}),We=Yt(N.info.playbackState$),ai=Yt(N.info.currentBuffer$),Ui=Yt(N.info.isEnded$),ii=Yt(N.info.isLive$),mi=J.features.playbackRate?Yt(N.info.canChangePlaybackSpeed$):sr(!1),ao=Yt(N.info.liveBufferTime$),lo=Yt(N.info.volume$),co=Yt(N.info.muted$),Wo=hc(N.info.predefinedQualityLimitType$.pipe(Wh(c=>c===Wr.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===Wr.TRAFFIC_SAVING),Dt=hc(N.info.predefinedQualityLimitType$.pipe(Wh(c=>c===Wr.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===Wr.HIGH_QUALITY),pi=Yt(N.info.autoQualityLimitingAvailable$),xt=Yt(N.info.availableQualities$),qt=Yt(N.info.availableQualitiesFps$),Wi=Yt(N.info.chromecastState$),Xt=Yt(N.info.chromecastDeviceName$),Tn=Yt(N.info.currentFormat$),Co=Yt(N.info.throughputEstimation$),Qo=Yt(N.info.videoBitrate$),li=Yt(N.info.intrinsicVideoSize$),bt=Yt(N.info.duration$),Qi=Yt(N.info.isAudioAvailable$),wi=null,fi=N.info.isBuffering$,In=sr(fi.getValue(),c=>{let x=fi.subscribe(V=>{V&&wi===null?wi=window.setTimeout(()=>{c(fi.getValue()),wi=null},J.loaderDelay):c(V)});return()=>{x.unsubscribe(),wi&&clearTimeout(wi)}}),Gi=()=>{wi&&clearTimeout(wi),wi=null},zi=_i([bt,ii],([c,x])=>x?-c:c),Go=_i([We],([c])=>c===ad.PLAYING),kn=Yt(N.info.atLiveEdge$),Pi=Yt(N.info.atLiveDurationEdge$),un=Yt(N.info.position$),pn=_i([un,bt],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),No=_i([Wi],([c])=>c===g2.CONNECTED),fn=Yt(N.info.availableVideoStreams$),Mr=J.features.audioLanguages?Yt(N.info.availableAudioStreams$):sr([]),dr=Yt(N.info.currentVideoStream$),jn=Yt(N.info.currentAudioStream$),En=c=>{c.language&&Cp(c.language),N.setVideoStream(c)},Pn=c=>{c.language&&Cp(c.language),N.setAudioStream(c)},An=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ge=>"isDefault"in ge&&ge.isDefault)),x)return x;let V=eh();return V&&(x=c.find(({language:ge})=>V===ge)),x!=null||(x=c.at(0)),x},uo=!1;Ct.add(N.info.availableAudioStreams$.subscribe(c=>{if(!uo&&c.length){let x=An(c);x&&(N.setAudioStream(x),uo=!0)}}));let et=!1;Ct.add(N.info.availableVideoStreams$.subscribe(c=>{if(!et&&c.length){let x=An(c);x&&(N.setVideoStream(x),et=!0)}}));let Yo=le(void 0),mn=Yt(N.info.isAutoQualityEnabled$,c=>c&&Yo.set(void 0)),cr=Yt(N.info.currentQuality$,()=>Yo.set(void 0)),Mn=_i([Yo,cr],([c,x])=>c!=null?c:x),jo=_i(Tn,c=>c!==ld.MPEG),Zn=_i([xt,qt,mn,Mn,jo],([c,x,V,ge,Qe])=>{let wt=[];Qe&&wt.push({value:"auto",displayValue:De("auto_quality_option"),selected:V});let Lt=c.filter(Ut=>!y2(Ut));for(let Ut of Lt){let Vt=x[Ut];wt.push({value:Ut,displayValue:`${Ut}${Vt?Hh(Vt):""}`,selected:V?!1:Ut===ge})}return wt}),Zo=Yt(N.info.currentPlaybackRate$),vn=_i([Zo,kn,Pi],([c,x,V])=>{let ge=V||S?1:J.controls.playbackRateMin,Qe=x?1:J.controls.playbackRateMax,wt=J.controls.playbackRateStep,Lt=[];for(let Ut=ge;Ut<=Qe;Ut+=wt)Lt.push({value:Ut,displayValue:Ut===1?De("playback_rate_1"):De("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Lt}),Ri={displayValue:De("subtitles_off"),value:"off"},To=le(q({},Ri)),gn=J.features.subtitles?Yt(N.info.availableTextTracks$):sr([]),Ln=Kg(),ur=_i([gn,To],([c,x],V)=>{var wt;let ge=[],Qe=c.find(({id:Lt})=>Lt===x.value);if(Qe!=null&&Qe.url){let[,Lt]=(wt=Ln.find(Qe.url))!=null?wt:[];if(Lt){V(Lt);return}lt.download(Qe.url).then(Ut=>{if(!Ut||lt.isDestroyed())return;let Vt=new Fh,ps=Qe.language;if(ps){let R1=!!Qe.isAuto,B1=Vt.parse(Ut,ps);ge.push({lang:ps,subtitles:B1,isAuto:R1,id:Qe.id})}Ln.add(Qe.url,ge),Se(To).value===x.value&&V(ge)}).catch(Ut=>{var Vt;(Vt=ue==null?void 0:ue.oneStat)==null||Vt.logError({errorType:"Subtitles download",fatal:!1}),se==null||se.report(Ut,{errorType:"Subtitles download",fatal:!1})})}V(ge)}),po=_i([Zo,Go,To],([c,x,V],ge)=>{let Lt;if(N.info.isLive$.getValue()&&x&&V.value!==Ri.value){let Vt=()=>{let ps=1e3/(3*c);Lt=setTimeout(Vt,ps),ge(Date.now())};return Vt(),()=>clearTimeout(Lt)}}),Do=_i([gn,To],([c,x])=>{if(!c.length)return[];let V=[];for(let{language:ge,isAuto:Qe,id:wt}of c){let Lt=ge&&Uc(ge);ge&&Lt&&V.push({displayValue:Qe?De("subtitles_auto",{language:Lt}):Lt,value:wt,selected:(x==null?void 0:x.value)===wt,isAuto:Qe})}return V.length?(V.unshift(At(q({},Ri),{selected:(x==null?void 0:x.value)===Ri.value})),V):[]}),Io={available:[],prev:[]},Vn=()=>{var x,V;let c=N.experimental.getCurrentTime$.getValue();return(V=(x=c==null?void 0:c())!=null?x:Pe==null?void 0:Pe.currentTime)!=null?V:0},fo=_i([H,To,ur,po],([c,x,V,ge])=>{var wt;let Qe=N.info.isLive$.getValue();if(Qe&&Io.prev!==V){let Lt=V.find(({id:Vt})=>Vt===x.value),Ut=Io.prev.find(({id:Vt})=>Vt===x.value);if(Lt){let Vt=At(q({},Lt),{subtitles:[...(wt=Ut==null?void 0:Ut.subtitles)!=null?wt:[],...Lt.subtitles]});Io.available=[Vt],Io.prev=V}}if(x&&x.value!==Ri.value){let Lt=Qe?Vn():c,Ut=Qe?Io.available:V;return qh(Lt,x,Ut,Qe)}}),Yi=_i([fo],([c])=>c!=null&&c.texts?c.texts:[]),Rn=le(!0),Xo=_i([ai,zi,un,ao],([c,x,V,ge])=>{var Ut;let Qe=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!ge)return Qe/x;let Lt=-V+ge-x;return(Qe-Lt)/x}),pr=Yt(N.info.availableSources$),Bn=_i([pr],([c])=>Object.keys((c==null?void 0:c[ld.MPEG])||{}).length>0),fr=()=>{var V,ge,Qe;let c=Object.keys(((ge=(V=N.info.availableSources$)==null?void 0:V.getValue())==null?void 0:ge[ld.MPEG])||{}),x=b2(c)||E2.Q_144P;return(Qe=ce.sources[ld.MPEG])==null?void 0:Qe[x]},Nn=()=>{var x;let c=fr();if(c)Z.log("download video",{url:c}),Ug(c,((x=ce==null?void 0:ce.meta)==null?void 0:x.title)||"video");else{let V="There is no URL for download video";Z.log("download video",{message:V}),D({message:V})}},Dn=()=>{D({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Jt(On()):Jo(!c)},Lr=()=>{var c;if(It.ui.settingsMenu.visible$.set(!1),!Se(It.ui.settingsSubMenu.visible$)){let x=Se(It.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ge=Ga(x),Qe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ge,position:Qe,name:"settings"})}}Z.log("close settings menu")},Xn=(c,x=()=>Promise.resolve())=>St(void 0,null,function*(){var Qe;It.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),It.ui.settingsMenu.visible$.set(!0),yield x();let V=Se(It.ui.settingsMenu.ref$),ge=va();if((Qe=l==null?void 0:l.uiInfo)!=null&&Qe.onSettingsMenu&&V&&ge){let Lt=Ga(V),Ut=Qa(V,ge);l.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ut,name:"settings"})}Z.log("open settings menu",{wasOpenedByKeyboard:c})}),mr=(c,x=!1)=>{var wt;It.ui.settingsSubMenu.visible$.set(!1);let V=Se(It.ui.settingsMenu.ref$),ge=va(),Qe=Se(It.ui.settingsMenu.visible$);if((wt=l==null?void 0:l.uiInfo)!=null&&wt.onSettingsMenu&&V&&ge)if(Qe&&!x){let Ut=Ga(V),Vt=Qa(V,ge);l.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Vt,name:"settings"})}else{let Ut=Ga(c),Vt={top:0,left:0,bottom:0,right:0},ps=Se(It.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Vt,name:ps})}Z.log("close settings sub menu")},Vr=(c,x)=>{var ge;It.ui.settingsSubMenu.visible$.set(!0),It.ui.settingsSubMenu.ref$.set(x),It.ui.settingsSubMenu.name$.set(c);let V=va();if((ge=l==null?void 0:l.uiInfo)!=null&&ge.onSettingsMenu&&x&&V){let wt=Ga(x),Lt=Qa(x,V);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:wt,position:Lt})}Z.log("open settings sub menu",{name:c})},On=()=>{var x;let c=Math.max(J.volumeMinRestore,(x=_c())!=null?x:0);return c===0?J.volumeDefault:c},Jt=c=>{let x=c===0?On():c,V=N.info.muted$.getValue();D({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),V&&c>0&&!s&&(V=!1,wp(!1)),N.setVolume(c,V),we.setVolume(c),_p(x)},Jo=c=>{let x=N.info.volume$.getValue();if(D({message:`set muted, currentVolume: ${x}, mute: ${c}`}),N.setMuted(c),we.setVolume(c?0:x),wp(c),!c&&x===0){let V=On();N.setVolume(V),_p(V),we.setVolume(V)}},vr=le(!1),gr=c=>{Z.log("set looped",{isLooped:c}),vr.set(c),N.setLooped(c)};gr(ne);let ot=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ut=(c,x=!1)=>{var V;D({message:`set autoplayNextEnabled, value: ${c}`}),Z.log("set autoplay next enabled",{autoplayNextEnabled:c}),It.ui.autoplayNextEnabled$.set(c),oh(c),x&&((V=l==null?void 0:l.onSetAutoplayNextEnabled)==null||V.call(l,c))},Si=c=>{D({message:`set timerNextVideoRunning, value: ${c}`}),Z.log("set timer next video running",{timerNextVideoRunning:c}),It.ui.timerNextVideoRunning$.set(c)},ji=(c=!0)=>{var V;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(V=l==null?void 0:l.onPrevVideoClick)==null?void 0:V.call(l)}catch(ge){D({message:"onPrevVideoClick callback failed to execute"})}x&&X()},Zi=(c=!0)=>{var V;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(V=l==null?void 0:l.onNextVideoClick)==null?void 0:V.call(l)}catch(ge){D({message:"onNextVideoClick callback failed to execute"})}x&&ee()},ko=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementShow)==null||c.call(l)},Oo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementClick)==null||c.call(l)},Ho=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Eo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},Xe=()=>{N.prepare()},Mt=()=>{Gn(It);let c=Se(It.ui.controls.disabledControls$),x=Se(It.playerPhase),V={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(D({message:"toggle play"}),x==="ads"){V.action="play",Z.log("toggle adman play",V),we.togglePlay();return}let ge=()=>{var wt;D({message:"toggle play, call player.play"}),V.action="play",N.play(),(wt=l==null?void 0:l.onPlay)==null||wt.call(l)},Qe=()=>{var wt;D({message:"toggle play, call player.pause"}),V.action="pause",N.pause(),(wt=l==null?void 0:l.onPause)==null||wt.call(l)};if(N.info.isEnded$.getValue()){if(D({message:"toggle play, video ended, seek to 0"}),Nt.next(),Ke.next(as.REWIND),S){A==null||A();return}N.seekTime(0),ge()}else N.info.playbackState$.getValue()!==ad.PLAYING?ge():Qe();Z.log("toggle play",V)},Ai=(c,{changeReason:x="default",appliesTo:V="to-video"}={})=>{D({message:`set quality, quality: ${c}`}),Z.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(J.features.qualityDetailsSubMenuEnabled?(bc({type:"exact_quality",quality:c,videoId:i},V),Nl(),N.setPredefinedQualityLimits(Wr.UNKNOWN)):bp(i,c),Yo.set(c),N.setQuality(c)):J.features.qualityDetailsSubMenuEnabled?x==="default"&&(Bi("auto_quality",V),Se(Wo)&&Xi(!1),Se(Dt)&&Ci(!1)):Nl()},Xi=(c,x="as-default")=>{D({message:`set trafficSavingEnabled, value: ${c}`}),Z.log("set traffic saving enabled",{trafficSavingEnabled:c});let V=c?Wr.TRAFFIC_SAVING:Wr.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(Ti(V,x),Bl(!1)):(N.setPredefinedQualityLimits(V),Bl(c))},Ci=(c,x="as-default")=>{D({message:`set highQualityEnabled, value: ${c}`}),Z.log("set high quality enabled",{highQualityEnabled:c}),Ti(c?Wr.HIGH_QUALITY:Wr.UNKNOWN,x)},Ti=(c,x)=>{c!==Wr.UNKNOWN&&(Se(pi)&&!Se(mn)&&Ai("auto",{appliesTo:x,changeReason:"limit-changed"}),Bi(c,x)),N.setPredefinedQualityLimits(c)},Bi=(c,x)=>{bc({type:c,videoId:i},x),x==="as-default"&&bc({type:c,videoId:i},"to-video")},en=c=>{Z.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),J.features.saveRate&&de&&!N.info.isLive$.getValue()&&th(c)},qi=()=>{let c=Se(vn),x=c.findIndex(({selected:ge})=>ge);if(x===c.length-1)return;let V=c[x+1];en(V.value)},hr=()=>{let c=Se(vn),x=c.findIndex(({selected:ge})=>ge);if(x===0)return;let V=c[x-1];en(V.value)},tn=(c=At(q({},Ri),{selected:!1}))=>{Z.log("set subtitles",q({},c)),c&&c.value!==Ri.value&&gt.next(c.isAuto?c.value+"_auto":c.value),To.set(c)},Rr=()=>{Z.log("toggle subtitles");let c=Se(Do),x=Se(To),V=Se(zt);if((x==null?void 0:x.value)===Ri.value){let ge=c.filter(Qe=>Qe.value!==Ri.value).find(Qe=>Qe.value===V)||c[1];tn(ge)}else tn()},mo=(c,x,V=!0)=>{var ge;if(D({message:`seek to time, time: ${c}`}),Z.log("seek to time",{time:c,action:x,forcePrecise:V}),Ke.next(x),N.info.isLive$.getValue()){let Qe=N.info.duration$.getValue(),wt=Math.min(0,Qe+c);N.seekTime(wt,V)}else{if(P!=null&&P.getValue())return;N.info.isEnded$.getValue()&&(D({message:"seek after ended, call callbacks.onPlay"}),(ge=l==null?void 0:l.onPlay)==null||ge.call(l)),N.seekTime(Uo(c),V)}},Br=c=>{D({message:`seek to episode start time: ${c}`}),Z.log("seek to episode start time",{time:c}),mo(c,as.EPISODE,!0)},Jn=(c,x)=>{D({message:`seek to percent, percent: ${c}`}),Z.log("seek to percent",{percent:c,action:x});let V=Se(zi)*c;mo(V,x,!1)},Nr=c=>{D({message:`seek external, time: ${c}`}),Z.log("seek external",{time:c}),Ke.next(as.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},_r=c=>{var ge,Qe;let x=(ge=c.max)!=null?ge:"none",V=(Qe=c.min)!=null?Qe:"none";D({message:`set auto quality limitation. Max: ${x}. Min: ${V}`}),Z.log("set auto quality limits",{max:x,min:V}),N.setAutoQualityLimits(c)},hn=c=>{D({message:`seek external to episode start time: ${c}`}),Z.log("seek external to episode start time",{time:c}),mo(c,as.EPISODE,!0)},er=c=>{D({message:`set playback rate to: ${c}`}),Z.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},br=le(void 0),Hn=le(!1),Po=c=>{D({message:`start scrubbing, progress: ${c}`}),Z.log("start scrubbing",{progress:c}),Hn.set(!0),tr(c)},tr=c=>{br.set(c)},$r,tt,Ft=()=>{br.set(void 0),Hn.set(!1)},ye=()=>{clearTimeout(tt),clearTimeout($r),$r=window.setTimeout(()=>{Ft()},500),Pe==null||Pe.removeEventListener("seeked",ye)},Pt=c=>{D({message:`complete scrubbing, progress: ${c}`}),Z.log("complete scrubbing",{progress:c}),Jn(c,as.SLIDER),Se(It.ui.isMobile)&&Se(It.state.currentFormat$)===ld.HLS?(Pe==null||Pe.addEventListener("seeked",ye),tt=window.setTimeout(()=>{ye()},300)):Ft()},oi=_i([H,zi,br],([c,x,V],ge)=>{ge(x2(V)?V*x:c)}),Zt=le(!1),vo=()=>{Zt.set(!0)},Ni=()=>{Zt.set(!1)},ni=le({width:0,height:0}),ci=_i([ni],([{width:c}],x)=>{let V=Rh(c);x(V)}),bi=le(!1),Ki=z.filter(c=>zg(c)),Ao=_i([ci,bi],([c,x])=>x?Ki.filter(V=>!V.hideOnMobile):Ki.filter(V=>{var ge;return!((ge=V.hideOnDesktopGridTypes)!=null&&ge.includes(c))})),di=le(z.filter(c=>qg(c))),Qr=_i([di,ci],([c,x])=>c.filter(V=>{var ge;return!((ge=V.hideOnDesktopGridTypes)!=null&&ge.includes(x))})),qe=_i([Qr,Ao],([c,x])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?x.map((V,ge)=>{var Qe;return{id:ge,weight:ge,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Qe=V.ariaLabel)!=null?Qe:V.tooltip,tooltipText:V.tooltip}}):[]]),Ot=le(j),$i=_i([Ot],([c])=>J.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?At(q({},x),{onClick:x.onChangeEnabled}):x):[]),Mo=(c,x)=>{let V=Se(di).map(ge=>ge.id!==c?ge:q(q({},ge),x));di.set(V)},_n=c=>{let x=Se(di);if(x.some(V=>V.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),di.set(x)},Gr=c=>{let x=Se(di);if(!x.some(V=>V.id===c)){D({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),di.set(x)},Fn=c=>{Ke.next(as.LIVE),D({message:"live switch to low latency "+c}),Z.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Dr=(c,x)=>{let V=Se(Ot).map(ge=>ge.id!==c?ge:q(q({},ge),x));Ot.set(V)},el=c=>{let x=Se(Ot);if(x.some(V=>V.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)},Ps=c=>{let x=Se(Ot);if(!x.some(V=>V.id===c)){D({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),Ot.set(x)},yr=le(U),fa=_i([yr],([c])=>J.features.additionalContextMenuItems?c:[]),ma=(c,x)=>{let V=Se(yr).map(ge=>ge.id!==c?ge:q(q({},ge),x));yr.set(V)},As=c=>{let x=Se(yr);if(x.some(V=>V.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),yr.set(x)},ht=c=>{let x=Se(yr);if(!x.some(V=>V.id===c)){D({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),yr.set(x)},vt=_i([bi,st],([c,x],V)=>{V(c&&x)}),Ji=()=>{Ke.next(as.LIVE),D({message:"switch to active live"}),Z.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ad.PLAYING&&It.actions.internal.togglePlay()},Fo=()=>{Z.log("skip adman"),we.skip()},eo=(c=!0)=>{Gn(It),D({message:`switch from ads to video, callPlay: ${c}`}),Z.log("switch from ads to video",{callPlay:c}),re.set("video"),c&&N.play()},ri=()=>{Gn(It),D({message:"switch from video to ads"}),Z.log("switch from video to ads"),It.actions.internal.pause(),je(),re.set("ads")},Mi=c=>{Gn(It);let x=c?"LiveWaitingStart":"thumb";Z.log("set live waiting start",{state:c,playerPhase:x}),re.set(x)},us=c=>{Gn(It);let x=c?"LiveWaitingRecover":"thumb";Z.log("set live waiting recover",{state:c,playerPhase:x}),re.set(x)},tl=c=>{Gn(It);let x=c?"LiveWaitingRecord":"thumb";Z.log("set live waiting record",{state:c,playerPhase:x}),re.set(x)},Hd=()=>(Gn(It),Z.log("get debug text data"),Hg(N,ce,It)),pu=()=>(Gn(It),JSON.stringify(Le.getFinishedSpans())),Fd=()=>(Gn(It),Fg(N,ce,It)),va=()=>Pe,Ud=()=>{D({message:"toggle chromecast"}),Z.log("toggle chromecast"),N.toggleChromecast()},il=c=>{var V;if(Gn(It),N.info.isEnded$.getValue())return;let x=!c;if(Se(It.playerPhase)==="ads"){D({message:`pause ads, internalCall: ${x}`}),Z.log("pause ads",{internalCall:x}),we.pause();return}D({message:`pause video, internalCall: ${x}`}),Z.log("pause video",{internalCall:x}),x&&((V=l==null?void 0:l.onPause)==null||V.call(l)),N.pause()},ol=c=>{var V;Gn(It);let x=!c;if(Se(It.playerPhase)==="ads"){D({message:`play ads, internalCall: ${x}`}),Z.log("play ads",{internalCall:x}),we.play();return}D({message:`play video, internalCall: ${x}`}),Z.log("play video",{internalCall:x}),x&&((V=l==null?void 0:l.onPlay)==null||V.call(l)),N.play()},fu=c=>{Gn(It);let x=!c;if(Se(It.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()},nl=(c,x)=>{Gn(It),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?N.play():It.actions.internal.togglePlay())},rl=()=>(D({message:"getting time codes"}),f),sl=()=>{let c=rl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(V=>V.time>x)},mu=c=>{let x=c;x||(x=sl());let V=N.info.position$.getValue();Z.log("seek to next episode",q({currentTime:V},x)),x&&(D({message:"seek to next episode"}),mo(x.time,as.EPISODE,!0))},al=()=>{let c=rl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),V=c.findIndex(Qe=>Qe.time>x),ge=V===-1?c.length-2:V-2;if(!(ge<0))return c[ge]},vu=c=>{let x=c;x||(x=al());let V=N.info.position$.getValue();Z.log("seek to prev episode",q({currentTime:V},x)),x&&(D({message:"seek to prev episode"}),mo(x.time,as.EPISODE,!0))},gu=()=>(D({message:"getting preview thumbs data"}),Z.log("get preview thumbs data",q({},_)),_),Fe=()=>St(void 0,null,function*(){let c=Ne==null?void 0:Ne.isActive(),x="none";Ne!=null&&Ne.isActive()?(x="remove",yield Ne==null?void 0:Ne.remove()):(x="request",yield Ne==null?void 0:Ne.request()),Z.log("toggle picture in picture",{isActive:c,action:x})}),ti=(c=-90)=>{Z.log("rotate video",{alphaDiff:c}),ft.update(x=>x+c)},go=le([]);I==null||I.subscribe(c=>{let x=[];for(let V=0;V<c.length;V++){let{range:[ge,Qe],subjects:wt}=c[V];V===0&&ge!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ge/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!wt.length||wt.every(Lt=>Lt.isRemoved):!wt.length}),Qe!==1/0&&x.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}go.set(x)});let Ms=le(!1);P==null||P.subscribe(c=>{c&&Se(Hn)&&Ft()});let Uo=c=>{if(!S)return c;let x=Se(go),V=Se(zi),Qe=Se(un)/V,wt=x.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Qe);return typeof(wt==null?void 0:wt.time)=="number"?Math.min(c,wt.time-.05):c},L1=()=>{It.ui.episodes.panelOpened$.set(!1)},V1=()=>{Z.log("destroy store"),clearTimeout(tt),clearTimeout($r),Ct.unsubscribe(),ui.unsubscribe(),N.destroy(),we.destroy(),ue==null||ue.destroy(),se==null||se.destroy(),Bt.unsubscribe(),Je==null||Je.disconnect(),Je=null,lt.destroy()},It={interfaceLanguage$:zt,isCyrillicRelatedInterface$:Kt,initVideo:Te,videoId:i,isClip:o,playerPhase:Q,vsid:Ae,state:{positionExact$:H,positionWithScrubbing$:oi,duration$:zi,playbackState$:We,isPlaying$:Go,isLoaderVisible:In,bufferedProgress$:Xo,isLive$:ii,canChangePlaybackSpeed$:mi,isActiveLive$:kn,isOldestAvailableLive$:Pi,isRewindableLive$:pn,isEnded$:Ui,muted$:co,volume$:lo,trafficSavingEnabled$:Wo,highQualityEnabled$:Dt,autoQualityLimitingAvailable$:pi,availableVideoStreams$:fn,availableAudioStreams$:Mr,videoStream$:dr,audioStream$:jn,currentQuality$:Mn,isAutoQualityEnabled$:mn,availableQualities$:Zn,currentPlaybackRate$:Zo,availablePlaybackRates$:vn,currentSubtitle$:To,availableTextTracks$:gn,availableSubtitlesList$:Do,currentSubtitleCaptions$:Yi,isAutoSubtitleCaptionVisible$:Rn,chromecastState$:Wi,chromecastDeviceName$:Xt,chromecastConnected$:No,currentFormat$:Tn,throughputEstimation$:Co,videoBitrate$:Qo,videoSize$:li,errorLog$:it,crashed$:st,isAudioAvailable$:Qi,isAudioDisabled:!!s,canDownload:J.features.download&&!!d,availableSources$:pr,hasMpegSources$:Bn,isInteractive:S,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!Se(go).length,interactiveEpisodes$:go,isInteractiveTime$:P?Yt(P):le(!1),isInteractiveExpectation$:Ms,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:R,looped$:vr,loadedMetadata$:le(!1),isAutoQualityAvailable$:jo},ui:{t:De,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:z.length?z.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:ae},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:xe,isFullscreenOpenedByKeyboard:Me,rotateAlpha:ft,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:ni,isMobile:bi,mobileNotReportControlHidden$:vt,mobileUnmuteButtonExpanded:le(!1),mobileUnmuteButtonVisible:le(!1),icon3DVideoVisible:le(!1),scrubbingInProgress:Hn,volumeChangingInProgress:Zt,is3DVideo:le(!1),currentGridType$:ci,additionalButtonsDeprecated$:Ao,additionalDesktopControlPanelRightButtons$:qe,additionalSettingsMenuItems$:$i,additionalContextMenuItems$:fa,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)}},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:Ne,annotationsApi:pe},actions:{internal:{preload:Xe,firstStart:c=>nl(c,!1),play:()=>ol(!1),pause:()=>il(!1),togglePlay:Mt,toggleMuted:Dn,openSettingsMenu:Xn,closeSettingsMenu:Lr,openSettingsSubMenu:Vr,closeSettingsSubMenu:mr,setVolume:Jt,startVolumeChanging:vo,stopVolumeChanging:Ni,setVideoStream:En,setAudioStream:Pn,setQuality:Ai,setTrafficSavingEnabled:Xi,setHighQualityEnabled:Ci,setPlaybackRate:en,incrementPlaybackRate:qi,decrementPlaybackRate:hr,setSubtitle:tn,toggleSubtitle:Rr,togglePictureInPicture:Fe,startScrubbing:Po,progressScrubbing:tr,completeScrubbing:Pt,toggleChromecast:Ud,switchToActiveLive:Ji,switchFromAdsToVideo:eo,switchFromVideoToAds:ri,skipAd:Fo,setLiveWaitingStart:Mi,setLiveWaitingRecover:us,setLiveWaitingRecord:tl,getDebugTextData:Hd,getTraceTextData:pu,getDebugPanelData:Fd,getVideoElement:va,seekTime:(c,x,V)=>mo(c,x,V),clearDelayedBufferingCheckTimeout:Gi,seekEpisodeStartTime:Br,seekToPercent:Jn,getNextEpisode:sl,seekToNextEpisode:mu,getPrevEpisode:al,seekToPrevEpisode:vu,startLogging:si,stopLogging:Ei,startCameraManualRotation:Fi,stopCameraManualRotation:Ro,moveCameraFocusPX:wo,holdCamera:So,releaseCamera:Bo,getVideoEpisodes:rl,getPreviewThumbsData:gu,downloadVideo:Nn,addLanguage:Tp,setLanguage:mt,nextMovie:ct,videoRotate:ti,correctSeekTimeToInteractive:Uo,replayInteractive:A,setLooped:gr,reportProblem:ot,setAutoplayNextEnabled:ut,setTimerNextVideoRunning:Si,prevVideoClick:ji,nextVideoClick:Zi,nextVideoAnnouncementShow:ko,nextVideoAnnouncementClick:Oo,nextVideoAnnouncementAuto:Ho,nextVideoAnnouncementCancel:Eo},external:{firstStart:c=>nl(c,!0),play:()=>ol(!0),pause:()=>il(!0),stop:()=>fu(!0),seekTime:c=>Nr(c),seekEpisodeStartTime:c=>hn(c),setPlaybackRate:c=>er(c),setAutoQualityLimits:c=>_r(c),setMuted:Jo,setVolume:Jt,returnFocusToEpisodes:L1,updateAdditionalSettingsItem:Dr,addAdditionalSettingsItem:el,removeAdditionalSettingsItem:Ps,updateAdditionalContextItem:ma,addAdditionalContextItem:As,removeAdditionalContextItem:ht,updateAdditionalButton:Mo,addAdditionalButton:_n,removeAdditionalButton:Gr,setLiveLowLatency:Fn}},callbacks:l,setUiCallbacks:c=>{Ge=q({},c)},getAdmanWrapper:()=>we,getLogger:()=>Re,getPlayer:()=>N,destroy:V1};return It};function aa(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:u,right:f}=Qa(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var Wc=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(aa(t,i,n,o))};var Qc=(t,e,i)=>St(void 0,null,function*(){yield bo(),e&&i&&(i.focus(),t.set(!1))});var M2=$e('<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 wf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=M2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 Sf(t,e){K(e,!0);let[i,o]=Ue(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=ke(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=te(void 0);Ze(()=>{r($)&&_t(()=>{p.set(r($))})});let w=P=>{let A=Ss(P),E=Ih(r($));_.set(E),u.set(A),l.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},I=m(()=>n()?"opened":"");Et(t,{get className(){return r(I)},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(P){O($,_e(P))},children:(P,A)=>{wf(P,{})},$$slots:{default:!0}}),W(),o()}var L2=t=>{t.stopPropagation()},V2=L("<div><!> <div></div> <div></div></div>"),R2={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;}
227
+ }`};function hf(t,e){q(e,!0),G(t,H$);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===Oh.CONNECTED),n=m(()=>e.iconState===Oh.CONNECTING);var a=Ke(),s=pe(a);{var d=u=>{var f=D$(),_=h(f),p=h(_),$=h(p);be(),g(p);var w=M(p);be(),g(_);var y=M(_),S=h(y),I=h(S);g(S),be(),g(y),g(f),k(()=>{He($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),He(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),He(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},l=u=>{var f=O$();let _;var p=h(f),$=M(h(p),5);let w;g(p),g(f),k((y,S)=>{_=ie(f,0,"svelte-8z1bf5",null,_,y),w=ie($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(u,f)};R(s,u=>{i()?u(d):u(l,!1)})}b(t,a),K()}import{noop as U$}from"@vkontakte/videoplayer-shared/es2015";function od(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,U$),s=Se().ui.t,d=m(()=>e.state===F$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Mt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,u)=>{hf(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),K()}var z$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),q$={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 _f(t,e){G(t,q$);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=te(void 0),d=te(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 u=m(()=>l(n()));var f=z$(),_=h(f);let p;var $=h(_);he($,()=>{var w;return(w=e.children)!=null?w:oe}),g(_),ct(_,w=>O(d,w),()=>r(d)),g(f),ct(f,w=>O(s,w),()=>r(s)),k(w=>{tt(f,`transform: translate(${r(u)}px, ${a()}px);`),p=ie(_,1,"tooltip svelte-5ygsa2",null,p,w)},[()=>({active:i(),pointer:o()})]),b(t,f)}var zc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Hh=t=>!!(Math.round(Math.abs(t)/90)%2),Fh=t=>Math.abs(t)/90%4===1;var K$=L('<div class="preview svelte-1wqg760"></div>'),W$=L('<div class="time svelte-1wqg760"> </div>'),Q$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),G$={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 bf(t,e){q(e,!0),G(t,G$);let[i,o]=Ue(),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),u=v(e,"videoEpisodes",19,()=>[]),f=v(e,"progress",3,0),_=v(e,"duration",3,0),p=v(e,"isInteractive",3,!1),$=Se(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=te(0),I=te(0),P=te(""),A=te(0),E=te(0),T=te(0),V=te(0),U=m(()=>zc(f(),_(),u())),j=m(()=>Hh(n())),F=m(()=>Fh(n())),Z=m(fe),J=m(()=>(r(F)?1:-1)*(r(S)/2-r(I)/2)),ne=m(()=>r(J)*-1);We(()=>{(D=>(O(S,ve(D.width)),O(I,ve(D.height))))(Re())}),We(()=>{(D=>(O(P,ve(D.imgSrc)),O(A,ve(D.imgWidth)),O(E,ve(D.imgHeight)),O(T,ve(D.imgOffsetX)),O(V,ve(D.imgOffsetY))))(Le(f()))});function fe(){var Ye;let D=l()?s.MOBILE:s.DESKTOP,{isVertical:ce}=de(),Pe=30;return(Ye=r(U))!=null&&Ye.text&&(Pe+=16),(ce||r(j))&&(Pe+=18,Pe+=50),Math.min(Math.max(a().height-Pe,0),D)}function de(){let D=e.previewThumbsData.frameWidth,ce=e.previewThumbsData.frameHeight,Pe=ce>D;return{width:D,height:ce,isHorizontal:!Pe,isVertical:Pe}}function Re(){let{height:D,isHorizontal:ce,isVertical:Pe,width:Ye}=de();return ce&&(D=D/Ye*r(Z),Ye=r(Z)),Pe&&(Ye=Ye/D*r(Z),D=r(Z)),{width:Ye,height:D}}function Le(D){let ce;e.previewThumbsData.isUV?ce=Math.floor(_()*D/e.previewThumbsData.frequency):ce=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*D)));let Pe=Math.floor(ce/e.previewThumbsData.countPerImage),Ye=Math.floor(ce%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),dt=ce%e.previewThumbsData.countPerRow,Ae=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Pe===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 ye=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Pe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ye=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Me=r(S)*ye,rt=r(I)*Ae,vt=-dt*r(S),lt=-Ye*r(I);return{imgSrc:e.previewThumbsData.links[Pe],imgWidth:Me,imgHeight:rt,imgOffsetX:vt,imgOffsetY:lt}}var ee=Q$();let Ve;var X=h(ee);{var B=D=>{var ce=K$();k(()=>tt(ce,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(P)}); background-size: ${r(A)}px ${r(E)}px; background-position: ${r(T)}px ${r(V)}px;
228
+ transform: rotate(${n()}deg) ${r(j)?`translate(${r(J)}px, ${r(ne)}px)`:""};
229
+ `)),b(D,ce)};R(X,D=>{r(P)&&D(B)})}var Ne=M(X,2),re=h(Ne);{var Ee=D=>{var ce=Ke(),Pe=pe(ce);{var Ye=Ae=>{var ye=or();k(Me=>ge(ye,Me),[()=>H("tooltip_episode_unfinished")]),b(Ae,ye)},dt=Ae=>{var ye=or();k(()=>ge(ye,r(U).text||"")),b(Ae,ye)};R(Pe,Ae=>{p()&&r(U).completed===!1?Ae(Ye):Ae(dt,!1)})}b(D,ce)};R(re,D=>{r(U)&&D(Ee)})}g(Ne);var Be=M(Ne,2);{var me=D=>{var ce=W$(),Pe=h(ce,!0);g(ce),k(()=>ge(Pe,d())),b(D,ce)};R(Be,D=>{p()||D(me)})}g(ee),k(D=>{Ve=ie(ee,1,"timeline-preview svelte-1wqg760",null,Ve,D),tt(ee,`width: ${r(j)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,ee),K(),o()}var Y$=L('<span class="time svelte-1jr6obn"> </span>'),j$=L("<!> <!>",1),Z$={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 $f(t,e){var _e;q(e,!0),G(t,Z$);let[i,o]=Ue(),n=()=>C(Z,"$interactiveEpisodes$",i),a=()=>C(E,"$duration$",i),s=()=>C(A,"$position$",i),d=()=>C(fe,"$isInteractiveExpectation$",i),l=()=>C(ne,"$isInteractiveTime$",i),u=()=>C(T,"$isLive$",i),f=()=>C(U,"$isMobile",i),_=()=>C(V,"$isActiveLive$",i),p=()=>C(P,"$bufferedProgress$",i),$=()=>C(Le,"$disabledControls$",i),w=v(e,"showTimeline",3,!1),y=v(e,"ref",15,void 0),S=Se(),I=Qt(),P=S.state.bufferedProgress$,A=S.state.positionWithScrubbing$,E=S.state.duration$,T=S.state.isLive$,V=S.state.isActiveLive$,U=S.ui.isMobile,j=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,F=S.actions.internal.getPreviewThumbsData(),Z=S.state.interactiveEpisodes$,J=S.state.isInteractive,ne=S.state.isInteractiveTime$,fe=S.state.isInteractiveExpectation$,de=S.actions.internal.correctSeekTimeToInteractive,Re=(_e=S.callbacks)==null?void 0:_e.onDisabledTimelineClick,Le=S.ui.controls.disabledControls$,ee=S.ui.t,Ve=I.features.interactiveResponsiveUi,X=m(()=>J?n():j),B=m(()=>sr(a())),Ne=m(()=>sr(s())),re=m(()=>s()/a()),Ee=m(()=>d()||l()),Be=te(!1),me=te(""),D=te(0),ce=te(0),Pe=te(0),Ye=m(()=>({containerWidth:r(ce),translateXPx:r(D),translateYPx:J&&F?-36:-16,active:r(Be)&&w()&&!r(Ee)&&!Ve,pointer:!I.features.timelinePreview||!F||u()})),dt=ee("aria_timeline"),Ae=m(()=>ee("aria_timeline_value",{position:r(Ne),duration:r(B)}));function ye(Ce){return!de||!J?Ce:de(Ce*a())/a()}function Me(Ce){S.actions.internal.startScrubbing(ye(Ce))}function rt(Ce){l()||S.actions.internal.progressScrubbing(ye(Ce))}function vt(Ce){S.actions.internal.completeScrubbing(ye(Ce)),O(Be,!1)}function lt(Ce,Oe,ut){gt(Ce,Oe,ut),O(Be,!0)}function kt(Ce,Oe,ut){gt(Ce,Oe,ut),O(Be,!0)}function st(){O(Be,!1)}function gt(Ce,Oe,ut){O(Pe,ve(ye(Ce))),O(D,ve(Oe)),ut&&O(ce,ve(ut)),O(me,ve(Kt(Ce)))}function Kt(Ce){let Oe=sr((u()?1-Ce:Ce)*a());return u()?`-${Oe}`:Oe}var jt=j$(),De=pe(jt);_f(De,rs(()=>r(Ye),{children:(Ce,Oe)=>{var ut=Ke(),Gt=pe(ut);{var Ze=Je=>{bf(Je,{get time(){return r(me)},get isMobile(){return f()},get videoEpisodes(){return r(X)},previewThumbsData:F,get progress(){return r(Pe)},get duration(){return a()},isInteractive:J})},pt=Je=>{var Pt=Y$(),ai=h(Pt,!0);g(Pt),k(()=>ge(ai,r(me))),b(Je,Pt)};R(Gt,Je=>{I.features.timelinePreview&&F&&!u()?Je(Ze):Je(pt,!1)})}b(Ce,ut)},$$slots:{default:!0}}));var se=M(De,2);let Q=m(()=>Math.round(r(re)*100)),ae=m(()=>$().has("TIMELINE"));aa(se,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return f()},ariaLabel:dt,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(Q)},get ariaValueText(){return r(Ae)},get loadedProgress(){return p()},get filledProgress(){return r(re)},get handleProgress(){return r(re)},get videoEpisodes(){return r(X)},onPointerDown:Me,onHandleMove:rt,onPointerMove:kt,onPointerUp:vt,onPointerEnter:lt,onPointerLeave:st,onDisabledClick:Re,isInteractive:J,get disabled(){return r(ae)},get hideHandel(){return l()},get ref(){return y()},set ref(Ce){y(Ce)}}),b(t,jt),K(),o()}var X$={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){q(e,!0),G(t,X$);let[i,o]=Ue(),n=()=>C(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=Se(),l=d.ui.isMobile,u=d.ui.t,f=m(()=>sr(s())),_=m(()=>sr(a())),p=m(()=>a()/s()),$=m(()=>u("aria_timeline_value",{position:r(_),duration:r(f)})),w=m(()=>Math.round(r(p)*100));aa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(w)},get ariaValueText(){return r($)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),K(),o()}var J$=L("<div><!></div>"),e2=L("<div></div>"),t2={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 rd(t,e){q(e,!0),G(t,t2);let[i,o]=Ue(),n=()=>C(p,"$isLive$",i),a=()=>C(y,"$isMobile",i),s=()=>C(w,"$adPosition",i),d=()=>C($,"$adDuration",i),l=v(e,"isAds",3,!1),u=v(e,"isHidden",3,!1),f=v(e,"ref",15,void 0),_=Se(),p=_.state.isLive$,$=_.ads.duration,w=_.ads.position,y=_.ui.isMobile,S=m(()=>!u()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Ke(),P=pe(I);{var A=T=>{var V=J$();let U;var j=h(V);{var F=J=>{nd(J,{get position(){return s()},get duration(){return d()}})},Z=J=>{$f(J,{get showTimeline(){return r(S)},get ref(){return f()},set ref(ne){f(ne)}})};R(j,J=>{l()?J(F):J(Z,!1)})}g(V),k(J=>U=ie(V,1,"timeline svelte-1gqonyf",null,U,J),[()=>({mobile:a()})]),b(T,V)},E=T=>{var V=e2();let U;k(j=>U=ie(V,1,"timeline-stub svelte-1gqonyf",null,U,j),[()=>({mobile:a()})]),b(T,V)};R(P,T=>{r(S)?T(A):T(E,!1)})}b(t,I),K(),o()}import{noop as n2}from"@vkontakte/videoplayer-shared/es2015";var i2=$e('<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 yf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=i2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(3),g(o),k(()=>n=we(o,n,W({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 o2=$e('<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 xf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=o2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 r2=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),s2=L('<span class="text svelte-1yhs2ga"> </span>'),a2=L('<span class="text count svelte-1yhs2ga"> </span>'),l2=L("<!> <!>",1),d2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function sd(t,e){var de,Re,Le;q(e,!0),G(t,d2);let[i,o]=Ue(),n=()=>C(w,"$currentGridType$",i),a=()=>C(y,"$openedByKeyboard$",i),s=()=>C(S,"$panelOpened$",i),d=()=>C(I,"$isMobile",i),l=v(e,"position",3,0),u=v(e,"duration",3,0),f=v(e,"timeCodes",19,()=>[]),_=Se(),p=(Re=(de=_.callbacks)==null?void 0:de.onEpisodeChanged)!=null?Re:n2,$=!!((Le=_.callbacks)!=null&&Le.onEpisodeClicked),w=_.ui.currentGridType$,y=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,P=_.ui.t,A=te(void 0),E=ee=>{var X,B,Ne;if(!!((X=_.callbacks)!=null&&X.onEpisodeClicked)){let re=Cs(ee);y.set(re),S.set(!0),(Ne=(B=_.callbacks)==null?void 0:B.onEpisodeClicked)==null||Ne.call(B,re)}},T=te(null),V=m(()=>l()/u());We(()=>{var Ve;let ee=zc(r(V),u(),f());ee?((Ve=r(T))==null?void 0:Ve.time)!==ee.time&&(p(ee),O(T,ve(ee))):O(T,null)});let U=m(()=>{var ee;return((ee=r(T))==null?void 0:ee.text)||""}),j=m(()=>Oi(n(),"xl")?"FULL":Oi(n(),"m")&&Bh(n(),"xl")?"COUNT":"SHORT"),F=m(()=>`${P("tooltip_episodes")}: ${r(U)}`),Z=(ee,Ve,X)=>Ct(this,null,function*(){yield fo(),(ee==null?void 0:ee.getAttribute("aria-expanded"))==="false"&&Ve&&!X&&$t(()=>{y.set(!1),ee.focus()})});We(()=>{Z(r(A),a(),s())});var J=Ke(),ne=pe(J);{var fe=ee=>{let Ve=m(()=>d()?"px-0":"");Mt(ee,{get className(){var X;return`w-max btn-full-opacity btn-jc-l ${(X=r(Ve))!=null?X:""}`},testId:"btn-episodes",click:E,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(F)},get ref(){return r(A)},set ref(X){O(A,ve(X))},children:(X,B)=>{var Ne=Ke(),re=pe(Ne);{var Ee=me=>{var D=r2(),ce=pe(D),Pe=h(ce,!0);g(ce);var Ye=M(ce,2),dt=h(Ye);xf(dt,{}),g(Ye),k(()=>ge(Pe,r(U))),b(me,D)},Be=me=>{var D=l2(),ce=pe(D);yf(ce,{});var Pe=M(ce,2);{var Ye=Ae=>{var ye=s2(),Me=h(ye,!0);g(ye),k(()=>ge(Me,r(U))),b(Ae,ye)},dt=(Ae,ye)=>{{var Me=rt=>{var vt=a2(),lt=h(vt,!0);g(vt),k(()=>ge(lt,f().length)),b(rt,vt)};R(Ae,rt=>{r(j)==="COUNT"&&rt(Me)},ye)}};R(Pe,Ae=>{r(j)==="FULL"?Ae(Ye):Ae(dt,!1)})}b(me,D)};R(re,me=>{d()?me(Ee):me(Be,!1)})}b(X,Ne)},$$slots:{default:!0}})};R(ne,ee=>{r(T)&&ee(fe)})}b(t,J),K(),o()}import{debounceFn as dy}from"@vkontakte/videoplayer-shared/es2015";import{ChromecastState as h2,PlaybackState as ad,Player as _2,PredefinedQualityLimits as Kr,VideoFormat as ld,clientChecker as b2}from"@vkontakte/videoplayer-core/es2015";import{assertNonNullable as Dn,getHighestQuality as $2,InterfaceLanguage as y2,isInvariantQuality as x2,isNonNullable as w2,loadVKLangPack as S2,Logger as C2,map as Yh,merge as T2,Observable as I2,Subject as jc,Subscription as kf,Tracer as k2,ValueSubject as E2,VideoQuality as P2,devNull as A2,now as M2}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as as}from"@vkontakte/videoplayer-statistics/es2015";import{detectEmbed as c2,devNull as Xt,now as Jt}from"@vkontakte/videoplayer-shared/es2015";import{addScript as u2,Subject as Fo,clearVideoElement as p2}from"@vkontakte/videoplayer-shared/es2015";var Uh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var f2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",qc=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 Fo,loadStarted$:new Fo,loadEnded$:new Fo,loadError$:new Fo,ready$:new Fo,slotRequested$:new Fo,started$:new Fo,timeRemained$:new Fo,paused$:new Fo,resumed$:new Fo,ended$:new Fo,empty$:new Fo,skipped$:new Fo,clicked$:new Fo,closed$:new Fo,error$:new Fo};this.loadAdman=e=>(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Jt()]}),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?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Jt()]}),o())};u2(f2,e,this.loadTimeout).then(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Jt()]}),window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Jt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Jt()]}),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?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Jt()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Jt()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Jt()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Jt()]}),!d&&(window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Jt()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Jt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Jt(),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"}),xe(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;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Jt()]}),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;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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")=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Jt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Jt()]}),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 A;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Jt(),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:u={},duration:f,previewParam:_}=e,p,$=this.playerState&&xe(this.playerState.vsid);$&&(this.isVsidOriginal?p=$:p=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=c2(),S=(A=w?y:window.location.href)!=null?A:window.location.href,I=Nt(W(Nt(W({},u),{dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_}),p?{request_id:p}:{}),{duration:f,puid10:Uh(i,o),puid11:n?0:1});_||delete I.preview;let P={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,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(P),this.adman=E,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(P)}`})}catch(E){Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[Jt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,a;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adsState){this.log({message:"toggle play"});let i=xe(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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),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,u,f,_,p;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Jt()]}),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),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(_=this.adman)==null||_.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&p2(this.videoElement),this.isDestroyed=!0}};var zh=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 wf=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 u=new Kc,{startTime:f,endTime:_}=u.parse(l);s.startTime=f,s.endTime=_}else if(l.trim()!==""){let u=new Sf,{texts:f}=u.parse(l);s.texts=[...s.texts,...f]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},Kc=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}},Sf=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 u=["<",">"].reduce((f,_)=>{let p=s.indexOf(_,d);return f===-1||f>p?p:f},-1);if(u===-1){l.push(s.substring(d));break}l.push(s.substring(d,u)),d=u+1}return l}}),a=new Kc;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}},qh=wf;import{isNonNullable as Cf}from"@vkontakte/videoplayer-shared/es2015";var la,wi,Tf=0,If=!1,Kh="",Wh=(t,e=0,i=0)=>t<e&&t<i,Wc=(t,e=0,i=0)=>t>=e&&t<=i,m2=(t,e=0,i=0)=>t>e&&t>i,Qh=(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:u,endTime:f})=>Wc(t,u,f));let a=t>=Tf,s=t<Tf;if(Tf=t,s&&(If=!1),Cf(la)&&Wc(t,la.startTime,la.endTime)&&Kh===e.value)return la;if(!Cf(wi)&&(n!=null&&n.length)&&!If){wi=n.find(({startTime:u,endTime:f})=>Wc(t,u,f)||a&&Wh(t,u,f)),la=void 0,!Cf(wi)&&n[n.length-1].endTime<t&&(If=!0);return}else{if(Wc(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime))return la=wi,wi=void 0,Kh=e.value,la;(a&&m2(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime)||s&&Wh(t,wi==null?void 0:wi.startTime,wi==null?void 0:wi.endTime))&&(wi=void 0)}};var Gh={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"},v2={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=Gh[t])!=null?e:Gh[v2[t]])!=null?i:void 0};import{Subscription as g2}from"@vkontakte/videoplayer-shared/es2015";import"@vkontakte/videoplayer-statistics/es2015";var Gc=class{constructor(e,i=new g2){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Yc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Yc||{});var qr=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(qr(i==null?void 0:i.top)-qr(o==null?void 0:o.top)),left:Math.round(qr(i==null?void 0:i.left)-qr(o==null?void 0:o.left)),bottom:Math.round(qr(i==null?void 0:i.bottom)-qr(o==null?void 0:o.top)),right:Math.round(qr(i==null?void 0:i.right)-qr(o==null?void 0:o.left))}},ja=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:qr(e==null?void 0:e.width),height:qr(e==null?void 0:e.height)}};var jh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:u,videoEpisodes:f,previewThumbsData:_,uiConfig:p,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:P,replayInteractive:A,stopPlayer:E,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,additionalButtons:U,additionalSettingsMenuItems:j,additionalContextMenuItems:F,playPrevVideo:Z,playNextVideo:J,looped:ne=!1,statistics:fe,saveRate:de,internalsExposure:Re})=>{var Do,ps,Oo;let Le=Nt(W({},$),{configName:[...(Do=$.configName)!=null?Do:[],"ui"],isAudioDisabled:s,live:Nt(W({},(ps=$.live)!=null?ps:{}),{isLiveCatchUpMode:!!n})}),ee=p,Ve=k2.createRootTracer(ee.features.saveTraceInfoToFile),X=Ve.createComponentTracer("Store"),B=w||new _2(Le,Ve);Re==null||Re.expose({corePlayer:B});let Ne=new C2,re=new qc(Ne,{loadTimeout:ee.ads.loadTimeout,initTimeout:ee.ads.initTimeout,runtimeTimeout:ee.ads.runtimeTimeout,useAdmanFromNPM:ee.ads.useAdmanFromNPM,volumeMultiplier:ee.ads.volumeMultiplier,isVsidOriginal:ee.ads.isVsidOriginal}),Ee=Zs.getInstance(),Be=u==null?void 0:u.pictureInPictureApi,me=u==null?void 0:u.annotationsApi,D=Ne.createComponentLog("Store"),ce,Pe,Ye={},dt=new yc,Ae=fe?ei(fe.oneStat.vsid$):rr(void 0),ye=le(xs()),Me=le(!1),rt=(Oo=Be==null?void 0:Be.info.isActive$)!=null?Oo:new E2(!1),vt=le(0),lt=le([]),kt=T2(B.events.fatalError$,B.events.managedError$).subscribe(c=>lt.update(x=>[...x,c])),st=rr(!1,c=>{let x=B.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),gt=c=>Ct(void 0,null,function*(){var ue;let x=Object.values(y2).includes(c);if(ee.downloadVKLanguages&&(x&&ee.updateBuiltinLanguages||!Lp(c))){let Qe;try{Qe=yield S2(c,Lg,Vg)}catch(St){(ue=fe==null?void 0:fe.oneStat)==null||ue.logError({errorType:"VKLangPack",fatal:!1}),Ee==null||Ee.report(St,{errorType:"VKLangPack",fatal:!1})}Qe&&(Mp({language:c,pack:Qe,fallback:ee.defaultLanguage}),Kt.set(c))}Lp(c)&&Kt.set(c)}),Kt=le(t),jt=le(e);gt(t);let De=(c,x)=>{let N=xe(Kt);return Vp(N,c,x,ee.defaultLanguage)},se=le("thumb"),Q=(()=>{let c=gi([st,se],([x,N])=>x?"crashed":N);return Nt(W({},c),{is:x=>xe(c)===x})})(),ae=(()=>{let c=le(new Set(y));return Nt(W({},c),{add:x=>{c.update(N=>new Set([...N].concat(x)))},remove:x=>{c.update(N=>{let ue=[...N];return new Set(Array.isArray(x)?ue.filter(Qe=>!x.includes(Qe)):ue.filter(Qe=>Qe!==x))})},includes:x=>{let N=xe(c);return Array.isArray(x)?x.every(ue=>N.has(ue)):N.has(x)}})})();X.log("create store"),D({message:"create store"});let _e=c=>{let x=c.container;x.append(B.experimental.element$.getValue()),Je=new MutationObserver(N=>{let{removedNodes:ue}=N[0];ue.length&&x.append(B.experimental.element$.getValue())}),Je.observe(x,{childList:!0})},Ce=c=>{D({message:`init video, config: ${JSON.stringify(c)}`}),S?_e(c):(A2.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[M2()]}),B.initVideo(c)),X.log("init video",{isInteractive:S}),c.subtitles&&B.setExternalTextTracks(c.subtitles),ce=c},Oe=new jc,ut=c=>Oe.next(c),Gt=new jc,Ze=new jc,pt=new jc,Je=null,Pt={actionRewind$:Gt,actionSeek$:Ze,inPiP$:rt,inFullscreen$:new I2(c=>ye.subscribe(x=>c.next(x))),actionSetSubtitle$:pt,nextMovie$:Oe};if(fe){let{oneStat:c,statSubscription:x}=fe;S||x.add(c.attachTo(B)),x.add(c.attachToUi(Pt)),x.add(c.attachToAds(re.events)),c.authorize(a).catch(N=>{D({message:`onestat auth error ${String(N)}`})})}if(Ee){let c=new kf,x=(N,ue)=>c.add(N.subscribe(ue));if(x(B.events.managedError$,N=>{Ee.logIError(N)}),x(B.events.fatalError$,N=>{Ee.logIError(N,!0)}),fe){let{oneStat:N}=fe;x(N.experimental.error$,ue=>{Ee.logIError(ue)})}Ee.sentrySubscription.add(c)}let ai=()=>{b2.device.isIOS&&Pe&&hh(Pe).catch(c=>{D({message:`exitIosSafariFullscreen failed: ${c}`})})},Ge=new kf().add(B.experimental.element$.subscribe(c=>{c&&(Pe=c,c.classList.add("player-media"),ea(Be)&&(Be.updateVideoElement(),Be.registryEventHandlers()),S&&c.setAttribute("pip","false"))})).add(B.events.ended$.subscribe(()=>{var c;ai(),(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(()=>Ct(void 0,null,function*(){var x,N;ea(Be)&&(yield Be==null?void 0:Be.revealPictureInPicture());let c=B.info.muted$.getValue();(x=l==null?void 0:l.onStarted)==null||x.call(l),(N=Ye.onStarted)==null||N.call(Ye,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),re.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(()=>{qe.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(c=>{qe.ui.is3DVideo.set(c)})).add(B.info.isEnded$.subscribe(c=>{S&&(c?(P!=null&&P.getValue()&&ae.add(Rl),ae.add("PLAY_BUTTON")):ae.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(re.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(re.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(re.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(re.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(re.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(re.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(re.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(re.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(re.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(re.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(re.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(re.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(re.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(re.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)})),ot=new kf,ii=()=>{var St,Bt,qt;let{debugLog:c}=ee,x,N="#9df7b7",ue="#efd169";if(c&&c!==!0){let{colors:Dt}=c;x=c.tag,N=(St=Dt==null?void 0:Dt[0])!=null?St:N,ue=(qt=(Bt=Dt==null?void 0:Dt[1])!=null?Bt:Dt==null?void 0:Dt[0])!=null?qt:ue}let Qe=x?`: ${x}`:"";ot.add(B.events.log$.subscribe(Dt=>{console.debug(`%c sdk${Qe} `,`background:${N};`,`sdk component: ${Dt.component}`,Dt.message)})).add(Ne.log$.subscribe(Dt=>{console.debug(`%c ui${Qe} `,`background:${ue};`,`ui component: ${Dt.component}.`,Dt.message)}))},Pi=()=>{ot.unsubscribe()},Eo=(c,x)=>{X.log("start camera manual rotation",{mx:c,my:x}),B.startCameraManualRotation(c,x)},Hi=(c=!1)=>{X.log("stop camera manual rotation",{immediate:c}),B.stopCameraManualRotation(c)},Po=(c,x,N)=>{X.log("move camera focus px",{xpx:c,ypx:x,dt:N}),B.moveCameraFocusPX(c,x,N)},zo=()=>{B.holdCamera()},Lt=()=>{B.releaseCamera()},_t=rr(B.info.position$.getValue(),c=>{let x,N,ue=()=>{let Qe=B.info.playbackState$.getValue(),St=B.info.isLive$.getValue(),Bt=B.info.duration$.getValue(),qt=B.info.position$.getValue();if(Qe&&[ad.PLAYING,ad.PAUSED].includes(Qe)){let Dt=St?qt-Bt:B.getExactTime();Dt!==N&&c(Dt),N=Dt}x=requestAnimationFrame(ue)};return ue(),()=>cancelAnimationFrame(x)}),z=ei(B.info.playbackState$),Yt=ei(B.info.currentBuffer$),Fi=ei(B.info.isEnded$),Li=ei(B.info.isLive$),hi=ee.features.playbackRate?ei(B.info.canChangePlaybackSpeed$):rr(!1),oi=ei(B.info.liveBufferTime$),ao=ei(B.info.volume$),ho=ei(B.info.muted$),Ui=xc(B.info.predefinedQualityLimitType$.pipe(Yh(c=>c===Kr.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===Kr.TRAFFIC_SAVING),qo=xc(B.info.predefinedQualityLimitType$.pipe(Yh(c=>c===Kr.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===Kr.HIGH_QUALITY),Ht=ei(B.info.autoQualityLimitingAvailable$),ui=ei(B.info.availableQualities$),wt=ei(B.info.availableQualitiesFps$),Wt=ei(B.info.chromecastState$),Ao=ei(B.info.chromecastDeviceName$),zi=ei(B.info.currentFormat$),ci=ei(B.info.throughputEstimation$),_o=ei(B.info.videoBitrate$),Ko=ei(B.info.intrinsicVideoSize$),li=ei(B.info.duration$),yt=ei(B.info.isAudioAvailable$),_i=null,qi=B.info.isBuffering$,Vi=rr(qi.getValue(),c=>{let x=qi.subscribe(N=>{N&&_i===null?_i=window.setTimeout(()=>{c(qi.getValue()),_i=null},ee.loaderDelay):c(N)});return()=>{x.unsubscribe(),_i&&clearTimeout(_i)}}),bo=()=>{_i&&clearTimeout(_i),_i=null},Si=gi([li,Li],([c,x])=>x?-c:c),$o=gi([z],([c])=>c===ad.PLAYING),Tn=ei(B.info.atLiveEdge$),an=ei(B.info.atLiveDurationEdge$),Ci=ei(B.info.position$),In=gi([Ci,li],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),ln=gi([Wt],([c])=>c===h2.CONNECTED),Mo=ei(B.info.availableVideoStreams$),kn=ee.features.audioLanguages?ei(B.info.availableAudioStreams$):rr([]),lr=ei(B.info.currentVideoStream$),dr=ei(B.info.currentAudioStream$),Hn=c=>{c.language&&Ap(c.language),B.setVideoStream(c)},Fn=c=>{c.language&&Ap(c.language),B.setAudioStream(c)},dn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ue=>"isDefault"in ue&&ue.isDefault)),x)return x;let N=oh();return N&&(x=c.find(({language:ue})=>N===ue)),x!=null||(x=c.at(0)),x},cn=!1;Ge.add(B.info.availableAudioStreams$.subscribe(c=>{if(!cn&&c.length){let x=dn(c);x&&(B.setAudioStream(x),cn=!0)}}));let cr=!1;Ge.add(B.info.availableVideoStreams$.subscribe(c=>{if(!cr&&c.length){let x=dn(c);x&&(B.setVideoStream(x),cr=!0)}}));let it=le(void 0),ji=ei(B.info.isAutoQualityEnabled$,c=>c&&it.set(void 0)),ur=ei(B.info.currentQuality$,()=>it.set(void 0)),Un=gi([it,ur],([c,x])=>c!=null?c:x),un=gi(zi,c=>c!==ld.MPEG),pn=gi([ui,wt,ji,Un,un],([c,x,N,ue,Qe])=>{let St=[];Qe&&St.push({value:"auto",displayValue:De("auto_quality_option"),selected:N});let Bt=c.filter(qt=>!x2(qt));for(let qt of Bt){let Dt=x[qt];St.push({value:qt,displayValue:`${qt}${Dt?zh(Dt):""}`,selected:N?!1:qt===ue})}return St}),Lo=ei(B.info.currentPlaybackRate$),yo=gi([Lo,Tn,an],([c,x,N])=>{let ue=N||S?1:ee.controls.playbackRateMin,Qe=x?1:ee.controls.playbackRateMax,St=ee.controls.playbackRateStep,Bt=[];for(let qt=ue;qt<=Qe;qt+=St)Bt.push({value:qt,displayValue:qt===1?De("playback_rate_1"):De("playback_rate",{multiplier:qt.toString(10)}),selected:c===qt});return Bt}),Ki={displayValue:De("subtitles_off"),value:"off"},Zi=le(W({},Ki)),zn=ee.features.subtitles?ei(B.info.availableTextTracks$):rr([]),qn=Gg(),Mr=gi([zn,Zi],([c,x],N)=>{var St;let ue=[],Qe=c.find(({id:Bt})=>Bt===x.value);if(Qe!=null&&Qe.url){let[,Bt]=(St=qn.find(Qe.url))!=null?St:[];if(Bt){N(Bt);return}dt.download(Qe.url).then(qt=>{if(!qt||dt.isDestroyed())return;let Dt=new qh,fs=Qe.language;if(fs){let N1=!!Qe.isAuto,B1=Dt.parse(qt,fs);ue.push({lang:fs,subtitles:B1,isAuto:N1,id:Qe.id})}qn.add(Qe.url,ue),xe(Zi).value===x.value&&N(ue)}).catch(qt=>{var Dt;(Dt=fe==null?void 0:fe.oneStat)==null||Dt.logError({errorType:"Subtitles download",fatal:!1}),Ee==null||Ee.report(qt,{errorType:"Subtitles download",fatal:!1})})}N(ue)}),Kn=gi([Lo,$o,Zi],([c,x,N],ue)=>{let Bt;if(B.info.isLive$.getValue()&&x&&N.value!==Ki.value){let Dt=()=>{let fs=1e3/(3*c);Bt=setTimeout(Dt,fs),ue(Date.now())};return Dt(),()=>clearTimeout(Bt)}}),lo=gi([zn,Zi],([c,x])=>{if(!c.length)return[];let N=[];for(let{language:ue,isAuto:Qe,id:St}of c){let Bt=ue&&Qc(ue);ue&&Bt&&N.push({displayValue:Qe?De("subtitles_auto",{language:Bt}):Bt,value:St,selected:(x==null?void 0:x.value)===St,isAuto:Qe})}return N.length?(N.unshift(Nt(W({},Ki),{selected:(x==null?void 0:x.value)===Ki.value})),N):[]}),xo={available:[],prev:[]},fn=()=>{var x,N;let c=B.experimental.getCurrentTime$.getValue();return(N=(x=c==null?void 0:c())!=null?x:Pe==null?void 0:Pe.currentTime)!=null?N:0},En=gi([_t,Zi,Mr,Kn],([c,x,N,ue])=>{var St;let Qe=B.info.isLive$.getValue();if(Qe&&xo.prev!==N){let Bt=N.find(({id:Dt})=>Dt===x.value),qt=xo.prev.find(({id:Dt})=>Dt===x.value);if(Bt){let Dt=Nt(W({},Bt),{subtitles:[...(St=qt==null?void 0:qt.subtitles)!=null?St:[],...Bt.subtitles]});xo.available=[Dt],xo.prev=N}}if(x&&x.value!==Ki.value){let Bt=Qe?fn():c,qt=Qe?xo.available:N;return Qh(Bt,x,qt,Qe)}}),Vo=gi([En],([c])=>c!=null&&c.texts?c.texts:[]),Wi=le(!0),Wo=gi([Yt,Si,Ci,oi],([c,x,N,ue])=>{var qt;let Qe=(qt=c==null?void 0:c.end)!=null?qt:0;if(!ue)return Qe/x;let Bt=-N+ue-x;return(Qe-Bt)/x}),wo=ei(B.info.availableSources$),pr=gi([wo],([c])=>Object.keys((c==null?void 0:c[ld.MPEG])||{}).length>0),mn=()=>{var N,ue,Qe;let c=Object.keys(((ue=(N=B.info.availableSources$)==null?void 0:N.getValue())==null?void 0:ue[ld.MPEG])||{}),x=$2(c)||P2.Q_144P;return(Qe=ce.sources[ld.MPEG])==null?void 0:Qe[x]},Wn=()=>{var x;let c=mn();if(c)X.log("download video",{url:c}),Kg(c,((x=ce==null?void 0:ce.meta)==null?void 0:x.title)||"video");else{let N="There is no URL for download video";X.log("download video",{message:N}),D({message:N})}},Qn=()=>{D({message:"toggle muted"});let c=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!c?Zn(jn()):si(!c)},Gn=()=>{var c;if(qe.ui.settingsMenu.visible$.set(!1),!xe(qe.ui.settingsSubMenu.visible$)){let x=xe(qe.ui.settingsMenu.ref$);if((c=l==null?void 0:l.uiInfo)!=null&&c.onSettingsMenu&&x){let ue=ja(x),Qe={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:ue,position:Qe,name:"settings"})}}X.log("close settings menu")},fr=(c,x=()=>Promise.resolve())=>Ct(void 0,null,function*(){var Qe;qe.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),qe.ui.settingsMenu.visible$.set(!0),yield x();let N=xe(qe.ui.settingsMenu.ref$),ue=ga();if((Qe=l==null?void 0:l.uiInfo)!=null&&Qe.onSettingsMenu&&N&&ue){let Bt=ja(N),qt=Ya(N,ue);l.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:qt,name:"settings"})}X.log("open settings menu",{wasOpenedByKeyboard:c})}),Yn=(c,x=!1)=>{var St;qe.ui.settingsSubMenu.visible$.set(!1);let N=xe(qe.ui.settingsMenu.ref$),ue=ga(),Qe=xe(qe.ui.settingsMenu.visible$);if((St=l==null?void 0:l.uiInfo)!=null&&St.onSettingsMenu&&N&&ue)if(Qe&&!x){let qt=ja(N),Dt=Ya(N,ue);l.uiInfo.onSettingsMenu({visible:!0,size:qt,position:Dt,name:"settings"})}else{let qt=ja(c),Dt={top:0,left:0,bottom:0,right:0},fs=xe(qe.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:qt,position:Dt,name:fs})}X.log("close settings sub menu")},mr=(c,x)=>{var ue;qe.ui.settingsSubMenu.visible$.set(!0),qe.ui.settingsSubMenu.ref$.set(x),qe.ui.settingsSubMenu.name$.set(c);let N=ga();if((ue=l==null?void 0:l.uiInfo)!=null&&ue.onSettingsMenu&&x&&N){let St=ja(x),Bt=Ya(x,N);l.uiInfo.onSettingsMenu({visible:!0,name:c,size:St,position:Bt})}X.log("open settings sub menu",{name:c})},jn=()=>{var x;let c=Math.max(ee.volumeMinRestore,(x=wc())!=null?x:0);return c===0?ee.volumeDefault:c},Zn=c=>{let x=c===0?jn():c,N=B.info.muted$.getValue();D({message:`set volume, volume: ${c}, preferredVolume: ${x}`}),N&&c>0&&!s&&(N=!1,Ep(!1)),B.setVolume(c,N),re.setVolume(c),Sp(x)},si=c=>{let x=B.info.volume$.getValue();if(D({message:`set muted, currentVolume: ${x}, mute: ${c}`}),B.setMuted(c),re.setVolume(c?0:x),Ep(c),!c&&x===0){let N=jn();B.setVolume(N),Sp(N),re.setVolume(N)}},vr=le(!1),vn=c=>{X.log("set looped",{isLooped:c}),vr.set(c),B.setLooped(c)};vn(ne);let Qo=()=>{var c,x;(x=(c=l==null?void 0:l.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},nt=(c,x=!1)=>{var N;D({message:`set autoplayNextEnabled, value: ${c}`}),X.log("set autoplay next enabled",{autoplayNextEnabled:c}),qe.ui.autoplayNextEnabled$.set(c),sh(c),x&&((N=l==null?void 0:l.onSetAutoplayNextEnabled)==null||N.call(l,c))},At=c=>{D({message:`set timerNextVideoRunning, value: ${c}`}),X.log("set timer next video running",{timerNextVideoRunning:c}),qe.ui.timerNextVideoRunning$.set(c)},Ti=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onPrevVideoClick))try{x=(ue=l==null?void 0:l.onPrevVideoClick)==null?void 0:ue.call(l)}catch(Qe){D({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Xi("prev")||Z()},ni=(c=!0)=>{var ue;let x=!0;if(c&&(l!=null&&l.onNextVideoClick))try{x=(ue=l==null?void 0:l.onNextVideoClick)==null?void 0:ue.call(l)}catch(Qe){D({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Xi("next")||J()},Xi=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:N,playbackStatusShow:ue}}=ee;return N&&ue&&!x?(qe.ui.aboutToGoNextVideo.set(c),qe.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)},Go=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementAuto)==null||c.call(l)},Yo=()=>{var c;(c=l==null?void 0:l.onNextVideoAnnouncementCancel)==null||c.call(l)},et=()=>{B.prepare()},Vt=()=>{Dn(qe);let c=xe(qe.ui.controls.disabledControls$),x=xe(qe.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",X.log("toggle adman play",N),re.togglePlay();return}let ue=()=>{var St;D({message:"toggle play, call player.play"}),N.action="play",B.play(),(St=l==null?void 0:l.onPlay)==null||St.call(l)},Qe=()=>{var St;D({message:"toggle play, call player.pause"}),N.action="pause",B.pause(),(St=l==null?void 0:l.onPause)==null||St.call(l)};if(B.info.isEnded$.getValue()){if(D({message:"toggle play, video ended, seek to 0"}),Gt.next(),Ze.next(as.REWIND),S){A==null||A();return}B.seekTime(0),ue()}else B.info.playbackState$.getValue()!==ad.PLAYING?ue():Qe();X.log("toggle play",N)},di=(c,{changeReason:x="default",appliesTo:N="to-video"}={})=>{D({message:`set quality, quality: ${c}`}),X.log("set quality",{quality:c}),B.setAutoQuality(c==="auto"),c!=="auto"?(ee.features.qualityDetailsSubMenuEnabled?(Sc({type:"exact_quality",quality:c,videoId:i},N),Bl(),B.setPredefinedQualityLimits(Kr.UNKNOWN)):Cp(i,c),it.set(c),B.setQuality(c)):ee.features.qualityDetailsSubMenuEnabled?x==="default"&&(Gi("auto_quality",N),xe(Ui)&&Qi(!1),xe(qo)&&Ii(!1)):Bl()},Qi=(c,x="as-default")=>{D({message:`set trafficSavingEnabled, value: ${c}`}),X.log("set traffic saving enabled",{trafficSavingEnabled:c});let N=c?Kr.TRAFFIC_SAVING:Kr.UNKNOWN;ee.features.qualityDetailsSubMenuEnabled?(Ri(N,x),Nl(!1)):(B.setPredefinedQualityLimits(N),Nl(c))},Ii=(c,x="as-default")=>{D({message:`set highQualityEnabled, value: ${c}`}),X.log("set high quality enabled",{highQualityEnabled:c}),Ri(c?Kr.HIGH_QUALITY:Kr.UNKNOWN,x)},Ri=(c,x)=>{c!==Kr.UNKNOWN&&(xe(Ht)&&!xe(ji)&&di("auto",{appliesTo:x,changeReason:"limit-changed"}),Gi(c,x)),B.setPredefinedQualityLimits(c)},Gi=(c,x)=>{Sc({type:c,videoId:i},x),x==="as-default"&&Sc({type:c,videoId:i},"to-video")},To=c=>{X.log("set playback rate",{playbackRate:c}),B.setPlaybackRate(c),ee.features.saveRate&&de&&!B.info.isLive$.getValue()&&nh(c)},Ni=()=>{let c=xe(yo),x=c.findIndex(({selected:ue})=>ue);if(x===c.length-1)return;let N=c[x+1];To(N.value)},gr=()=>{let c=xe(yo),x=c.findIndex(({selected:ue})=>ue);if(x===0)return;let N=c[x-1];To(N.value)},jo=(c=Nt(W({},Ki),{selected:!1}))=>{X.log("set subtitles",W({},c)),c&&c.value!==Ki.value&&pt.next(c.isAuto?c.value+"_auto":c.value),Zi.set(c)},Lr=()=>{X.log("toggle subtitles");let c=xe(lo),x=xe(Zi),N=xe(Kt);if((x==null?void 0:x.value)===Ki.value){let ue=c.filter(Qe=>Qe.value!==Ki.value).find(Qe=>Qe.value===N)||c[1];jo(ue)}else jo()},co=(c,x,N=!0)=>{var ue;if(D({message:`seek to time, time: ${c}`}),X.log("seek to time",{time:c,action:x,forcePrecise:N}),Ze.next(x),B.info.isLive$.getValue()){let Qe=B.info.duration$.getValue(),St=Math.min(0,Qe+c);B.seekTime(St,N)}else{if(P!=null&&P.getValue())return;B.info.isEnded$.getValue()&&(D({message:"seek after ended, call callbacks.onPlay"}),(ue=l==null?void 0:l.onPlay)==null||ue.call(l)),B.seekTime(Qd(c),N)}},Vr=c=>{D({message:`seek to episode start time: ${c}`}),X.log("seek to episode start time",{time:c}),co(c,as.EPISODE,!0)},Xn=(c,x)=>{D({message:`seek to percent, percent: ${c}`}),X.log("seek to percent",{percent:c,action:x});let N=xe(Si)*c;co(N,x,!1)},Wr=c=>{D({message:`seek external, time: ${c}`}),X.log("seek external",{time:c}),Ze.next(as.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-c:c)},hr=c=>{var ue,Qe;let x=(ue=c.max)!=null?ue:"none",N=(Qe=c.min)!=null?Qe:"none";D({message:`set auto quality limitation. Max: ${x}. Min: ${N}`}),X.log("set auto quality limits",{max:x,min:N}),B.setAutoQualityLimits(c)},Rr=c=>{D({message:`seek external to episode start time: ${c}`}),X.log("seek external to episode start time",{time:c}),co(c,as.EPISODE,!0)},_r=c=>{D({message:`set playback rate to: ${c}`}),X.log("set playback rate external",{playbackRate:c}),B.setPlaybackRate(c)},Ro=le(void 0),gn=le(!1),Qr=c=>{D({message:`start scrubbing, progress: ${c}`}),X.log("start scrubbing",{progress:c}),gn.set(!0),br(c)},br=c=>{Ro.set(c)},Jn,Xe,Ft=()=>{Ro.set(void 0),gn.set(!1)},$i=()=>{clearTimeout(Xe),clearTimeout(Jn),Jn=window.setTimeout(()=>{Ft()},500),Pe==null||Pe.removeEventListener("seeked",$i)},hn=c=>{D({message:`complete scrubbing, progress: ${c}`}),X.log("complete scrubbing",{progress:c}),Xn(c,as.SLIDER),xe(qe.ui.isMobile)&&xe(qe.state.currentFormat$)===ld.HLS?(Pe==null||Pe.addEventListener("seeked",$i),Xe=window.setTimeout(()=>{$i()},300)):Ft()},_n=gi([_t,Si,Ro],([c,x,N],ue)=>{ue(w2(N)?N*x:c)}),Pn=le(!1),er=()=>{Pn.set(!0)},Te=()=>{Pn.set(!1)},ft=le({width:0,height:0}),Rt=gi([ft],([{width:c}],x)=>{let N=Dh(c);x(N)}),zt=le(!1),Yi=U.filter(c=>Wg(c)),pi=gi([Rt,zt],([c,x])=>x?Yi.filter(N=>!N.hideOnMobile):Yi.filter(N=>{var ue;return!((ue=N.hideOnDesktopGridTypes)!=null&&ue.includes(c))})),Zt=le(U.filter(c=>Qg(c))),Nr=gi([Zt,Rt],([c,x])=>c.filter(N=>{var ue;return!((ue=N.hideOnDesktopGridTypes)!=null&&ue.includes(x))})),Fe=gi([Nr,pi],([c,x])=>[...ee.features.additionalButtonsDesktopControlPanelRight?c.filter(N=>N.type==="desktop-control-panel-right"):[],...ee.features.additionalButtons?x.map((N,ue)=>{var Qe;return{id:ue,weight:ue,type:"desktop-control-panel-right",testId:N.testId,icon:N.iconUrl,onClick:N.onClick,ariaLabel:(Qe=N.ariaLabel)!=null?Qe:N.tooltip,tooltipText:N.tooltip}}):[]]),It=le(j),bi=gi([It],([c])=>ee.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Nt(W({},x),{onClick:x.onChangeEnabled}):x):[]),No=(c,x)=>{let N=xe(Zt).map(ue=>ue.id!==c?ue:W(W({},ue),x));Zt.set(N)},Zo=c=>{let x=xe(Zt);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),Zt.set(x)},Gr=c=>{let x=xe(Zt);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),Zt.set(x)},An=c=>{Ze.next(as.LIVE),D({message:"live switch to low latency "+c}),X.log("live switch to low latency "+c),B.setLiveLowLatency(c)},Br=(c,x)=>{let N=xe(It).map(ue=>ue.id!==c?ue:W(W({},ue),x));It.set(N)},il=c=>{let x=xe(It);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),It.set(x)},Ms=c=>{let x=xe(It);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),It.set(x)},$r=le(F),ma=gi([$r],([c])=>ee.features.additionalContextMenuItems?c:[]),va=(c,x)=>{let N=xe($r).map(ue=>ue.id!==c?ue:W(W({},ue),x));$r.set(N)},Ls=c=>{let x=xe($r);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),$r.set(x)},bt=c=>{let x=xe($r);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),$r.set(x)},ht=gi([zt,st],([c,x],N)=>{N(c&&x)}),Ji=()=>{Ze.next(as.LIVE),D({message:"switch to active live"}),X.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==ad.PLAYING&&qe.actions.internal.togglePlay()},Bo=()=>{X.log("skip adman"),re.skip()},eo=(c=!0)=>{Dn(qe),D({message:`switch from ads to video, callPlay: ${c}`}),X.log("switch from ads to video",{callPlay:c}),se.set("video"),c&&B.play()},ri=()=>{Dn(qe),D({message:"switch from video to ads"}),X.log("switch from video to ads"),qe.actions.internal.pause(),ai(),se.set("ads")},Ai=c=>{Dn(qe);let x=c?"LiveWaitingStart":"thumb";X.log("set live waiting start",{state:c,playerPhase:x}),se.set(x)},us=c=>{Dn(qe);let x=c?"LiveWaitingRecover":"thumb";X.log("set live waiting recover",{state:c,playerPhase:x}),se.set(x)},ol=c=>{Dn(qe);let x=c?"LiveWaitingRecord":"thumb";X.log("set live waiting record",{state:c,playerPhase:x}),se.set(x)},Od=()=>(Dn(qe),X.log("get debug text data"),zg(B,ce,qe)),_u=()=>(Dn(qe),JSON.stringify(Ve.getFinishedSpans())),Hd=()=>(Dn(qe),qg(B,ce,qe)),ga=()=>Pe,Fd=()=>{D({message:"toggle chromecast"}),X.log("toggle chromecast"),B.toggleChromecast()},Ud=c=>{var N;if(Dn(qe),B.info.isEnded$.getValue())return;let x=!c;if(xe(qe.playerPhase)==="ads"){D({message:`pause ads, internalCall: ${x}`}),X.log("pause ads",{internalCall:x}),re.pause();return}D({message:`pause video, internalCall: ${x}`}),X.log("pause video",{internalCall:x}),x&&((N=l==null?void 0:l.onPause)==null||N.call(l)),B.pause()},nl=c=>{var N;Dn(qe);let x=!c;if(xe(qe.playerPhase)==="ads"){D({message:`play ads, internalCall: ${x}`}),X.log("play ads",{internalCall:x}),re.play();return}D({message:`play video, internalCall: ${x}`}),X.log("play video",{internalCall:x}),x&&((N=l==null?void 0:l.onPlay)==null||N.call(l)),B.play()},bu=c=>{Dn(qe);let x=!c;if(xe(qe.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()},rl=(c,x)=>{Dn(qe),D({message:`first start, show ads: ${c}, internalCall: ${!x}`}),X.log("first start",{showAds:c,external:x}),c?se.set("ads"):(se.set("video"),x?B.play():qe.actions.internal.togglePlay())},sl=()=>(D({message:"getting time codes"}),f),al=()=>{let c=sl();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue();return c.find(N=>N.time>x)},zd=c=>{let x=c;x||(x=al());let N=B.info.position$.getValue();X.log("seek to next episode",W({currentTime:N},x)),x&&(D({message:"seek to next episode"}),co(x.time,as.EPISODE,!0))},ll=()=>{let c=sl();if(!c||[0,1].includes(c.length))return;let x=B.info.position$.getValue(),N=c.findIndex(Qe=>Qe.time>x),ue=N===-1?c.length-2:N-2;if(!(ue<0))return c[ue]},$u=c=>{let x=c;x||(x=ll());let N=B.info.position$.getValue();X.log("seek to prev episode",W({currentTime:N},x)),x&&(D({message:"seek to prev episode"}),co(x.time,as.EPISODE,!0))},qd=()=>(D({message:"getting preview thumbs data"}),X.log("get preview thumbs data",W({},_)),_),yu=()=>Ct(void 0,null,function*(){let c=Be==null?void 0:Be.isActive(),x="none";Be!=null&&Be.isActive()?(x="remove",yield Be==null?void 0:Be.remove()):(x="request",yield Be==null?void 0:Be.request()),X.log("toggle picture in picture",{isActive:c,action:x})}),Kd=(c=-90)=>{X.log("rotate video",{alphaDiff:c}),vt.update(x=>x+c)},ha=le([]);I==null||I.subscribe(c=>{let x=[];for(let N=0;N<c.length;N++){let{range:[ue,Qe],subjects:St}=c[N];N===0&&ue!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ue/1e3,text:"",interactive:!0,completed:ee.features.interactiveTimeOpenUri?!St.length||St.every(Bt=>Bt.isRemoved):!St.length}),Qe!==1/0&&x.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}ha.set(x)});let Wd=le(!1);P==null||P.subscribe(c=>{c&&xe(gn)&&Ft()});let Qd=c=>{if(!S)return c;let x=xe(ha),N=xe(Si),Qe=xe(Ci)/N,St=x.find(Bt=>Bt.interactive&&!Bt.completed&&Bt.time>Qe);return typeof(St==null?void 0:St.time)=="number"?Math.min(c,St.time-.05):c},xu=()=>{qe.ui.episodes.panelOpened$.set(!1)},ze=()=>{X.log("destroy store"),clearTimeout(Xe),clearTimeout(Jn),Ge.unsubscribe(),ot.unsubscribe(),B.destroy(),re.destroy(),fe==null||fe.destroy(),Ee==null||Ee.destroy(),kt.unsubscribe(),Je==null||Je.disconnect(),Je=null,dt.destroy()},qe={interfaceLanguage$:Kt,isCyrillicRelatedInterface$:jt,initVideo:Ce,videoId:i,isClip:o,playerPhase:Q,vsid:Ae,state:{positionExact$:_t,positionWithScrubbing$:_n,duration$:Si,playbackState$:z,isPlaying$:$o,isLoaderVisible:Vi,bufferedProgress$:Wo,isLive$:Li,canChangePlaybackSpeed$:hi,isActiveLive$:Tn,isOldestAvailableLive$:an,isRewindableLive$:In,isEnded$:Fi,muted$:ho,volume$:ao,trafficSavingEnabled$:Ui,highQualityEnabled$:qo,autoQualityLimitingAvailable$:Ht,availableVideoStreams$:Mo,availableAudioStreams$:kn,videoStream$:lr,audioStream$:dr,currentQuality$:Un,isAutoQualityEnabled$:ji,availableQualities$:pn,currentPlaybackRate$:Lo,availablePlaybackRates$:yo,currentSubtitle$:Zi,availableTextTracks$:zn,availableSubtitlesList$:lo,currentSubtitleCaptions$:Vo,isAutoSubtitleCaptionVisible$:Wi,chromecastState$:Wt,chromecastDeviceName$:Ao,chromecastConnected$:ln,currentFormat$:zi,throughputEstimation$:ci,videoBitrate$:_o,videoSize$:Ko,errorLog$:lt,crashed$:st,isAudioAvailable$:yt,isAudioDisabled:!!s,canDownload:ee.features.download&&!!d,availableSources$:wo,hasMpegSources$:pr,isInteractive:S,showInteractiveGraph:ee.features.interactiveGraph,showSeekToInteractive:ee.features.seekToInteractive,showPlayPrevChapter:ee.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ee.features.interactiveTimeIndicator&&!!xe(ha).length,interactiveEpisodes$:ha,isInteractiveTime$:P?ei(P):le(!1),isInteractiveExpectation$:Wd,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:V,looped$:vr,loadedMetadata$:le(!1),isAutoQualityAvailable$:un},ui:{t:De,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:U.length?U.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:ae},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ye,isFullscreenOpenedByKeyboard:Me,rotateAlpha:vt,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:ft,isMobile:zt,mobileNotReportControlHidden$:ht,mobileUnmuteButtonExpanded:le(!1),mobileUnmuteButtonVisible:le(!1),icon3DVideoVisible:le(!1),scrubbingInProgress:gn,volumeChangingInProgress:Pn,is3DVideo:le(!1),currentGridType$:Rt,additionalButtonsDeprecated$:pi,additionalDesktopControlPanelRightButtons$:Fe,additionalSettingsMenuItems$:bi,additionalContextMenuItems$:ma,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},aboutToGoNextVideo:le(void 0),userActionsDisabled:le(!1)},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:Be,annotationsApi:me},actions:{internal:{preload:et,firstStart:c=>rl(c,!1),play:()=>nl(!1),pause:()=>Ud(!1),togglePlay:Vt,toggleMuted:Qn,openSettingsMenu:fr,closeSettingsMenu:Gn,openSettingsSubMenu:mr,closeSettingsSubMenu:Yn,setVolume:Zn,startVolumeChanging:er,stopVolumeChanging:Te,setVideoStream:Hn,setAudioStream:Fn,setQuality:di,setTrafficSavingEnabled:Qi,setHighQualityEnabled:Ii,setPlaybackRate:To,incrementPlaybackRate:Ni,decrementPlaybackRate:gr,setSubtitle:jo,toggleSubtitle:Lr,togglePictureInPicture:yu,startScrubbing:Qr,progressScrubbing:br,completeScrubbing:hn,toggleChromecast:Fd,switchToActiveLive:Ji,switchFromAdsToVideo:eo,switchFromVideoToAds:ri,skipAd:Bo,setLiveWaitingStart:Ai,setLiveWaitingRecover:us,setLiveWaitingRecord:ol,getDebugTextData:Od,getTraceTextData:_u,getDebugPanelData:Hd,getVideoElement:ga,seekTime:(c,x,N)=>co(c,x,N),clearDelayedBufferingCheckTimeout:bo,seekEpisodeStartTime:Vr,seekToPercent:Xn,getNextEpisode:al,seekToNextEpisode:zd,getPrevEpisode:ll,seekToPrevEpisode:$u,startLogging:ii,stopLogging:Pi,startCameraManualRotation:Eo,stopCameraManualRotation:Hi,moveCameraFocusPX:Po,holdCamera:zo,releaseCamera:Lt,getVideoEpisodes:sl,getPreviewThumbsData:qd,downloadVideo:Wn,addLanguage:Mp,setLanguage:gt,nextMovie:ut,videoRotate:Kd,correctSeekTimeToInteractive:Qd,replayInteractive:A,setLooped:vn,reportProblem:Qo,setAutoplayNextEnabled:nt,setTimerNextVideoRunning:At,prevVideoClick:Ti,nextVideoClick:ni,nextVideoAnnouncementShow:So,nextVideoAnnouncementClick:Co,nextVideoAnnouncementAuto:Go,nextVideoAnnouncementCancel:Yo},external:{firstStart:c=>rl(c,!0),play:()=>nl(!0),pause:()=>Ud(!0),stop:()=>bu(!0),seekTime:c=>Wr(c),seekEpisodeStartTime:c=>Rr(c),setPlaybackRate:c=>_r(c),setAutoQualityLimits:c=>hr(c),setMuted:si,setVolume:Zn,returnFocusToEpisodes:xu,updateAdditionalSettingsItem:Br,addAdditionalSettingsItem:il,removeAdditionalSettingsItem:Ms,updateAdditionalContextItem:va,addAdditionalContextItem:Ls,removeAdditionalContextItem:bt,updateAdditionalButton:No,addAdditionalButton:Zo,removeAdditionalButton:Gr,setLiveLowLatency:An}},callbacks:l,setUiCallbacks:c=>{Ye=W({},c)},getAdmanWrapper:()=>re,getLogger:()=>Ne,getPlayer:()=>B,destroy:ze};return qe};function da(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:u,right:f}=Ya(e[i],t||void 0);return{left:s?l:0,right:s?f:0,top:s?d:0,bottom:s?u:0,isDisplayed:s}}var Zc=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(da(t,i,n,o))};var Xc=(t,e,i)=>Ct(void 0,null,function*(){yield fo(),e&&i&&(i.focus(),t.set(!1))});var L2=$e('<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 Ef(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=L2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 Pf(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=Se(),l=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,$=te(void 0);We(()=>{r($)&&$t(()=>{p.set(r($))})});let w=P=>{let A=Cs(P),E=Ph(r($));_.set(E),u.set(A),l.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},I=m(()=>n()?"opened":"");Mt(t,{get className(){return r(I)},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(P){O($,ve(P))},children:(P,A)=>{Ef(P,{})},$$slots:{default:!0}}),K(),o()}var V2=t=>{t.stopPropagation()},R2=L("<div><!> <div></div> <div></div></div>"),N2={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
230
230
 
231
231
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
232
232
  }
@@ -251,8 +251,8 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
251
251
  opacity: 0;
252
252
  }
253
253
  }.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 cd(t,e){var D;K(e,!0),G(t,R2);let[i,o]=Ue(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(R,"$currentGridType$",i),d=()=>C(P,"$isInteractiveTime$",i),l=()=>C(y,"$interactiveControlsOpacity$",i),u=()=>C(A,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),p=te(void 0),$=ke(),w=so(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,I=$.ui.isFullscreen,P=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(D=$.callbacks)==null?void 0:D.onInteractiveTimeIndicatorClick,R=$.ui.currentGridType$,z=m(()=>!n()&&a()),j=m(()=>Is(s(),"s")),U=m(()=>!d()||!!l()||r(z)),X=te(!1);Ze(()=>{O(X,_e(r(U)))});let ee=()=>{O(X,!0)},ne=()=>{var ce;ue(),(ce=r(p))==null||ce.addEventListener("animationiteration",ee,{once:!0})},ue=()=>{var ce;O(X,!1),(ce=r(p))==null||ce.removeEventListener("animationiteration",ee)},de=ce=>{A.set(ce)},Ve=m(()=>u()&&!r(U));Ze(()=>{u()?ne():ue()});let Be=()=>{r(U)||(A.set(!0),T==null||T())};wn(()=>{A.clearTimeout(),ue()});let J=()=>{A.set(!1)},Le=F("tooltip_interactive_interaction_time_indicator");var Z=V2();let N;Z.__mousemove=[L2],Z.__click=Be;var Re=h(Z);Vo(Re,{tooltipContent:Le,get tooltipActive(){return r(Ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return _()},set ref(ce){_(ce)},children:(ce,Pe)=>{ed(ce,{completed:!0})},$$slots:{default:!0}});var we=M(Re,2);let se;dt(we,ce=>_(ce),()=>_());var Ne=M(we,2);let pe;dt(Ne,ce=>O(p,ce),()=>r(p)),g(Z),k((ce,Pe,Ge)=>{N=ie(Z,1,"interactive-episode-icon-animated svelte-od3veb",null,N,ce),se=ie(we,1,"ref-block svelte-od3veb",null,se,Pe),pe=ie(Ne,1,"pulse svelte-od3veb",null,pe,Ge)},[()=>({mobile:n(),fullscreen:f(),invisible:r(U),"icon-small":r(j)}),()=>({hidden:r(U)}),()=>({paused:r(X)})]),kt("mouseleave",Z,J),b(t,Z),W(),o()}at(["mousemove","click"]);function Gc(t,e){K(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);Vo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=ze();let u=m(()=>e.buttonComponent);var f=he(l);Vi(f,()=>r(u),(_,p)=>{p(_,rs(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(s,l)},$$slots:{default:!0}}),W()}var ls={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var N2=$e('<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 Cf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=N2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}function Tf(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),a=m(()=>i()?"prev-icon":"next-icon");Cf(t,{get style(){return r(n)},get"data-testid"(){return r(a)}})}var D2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),O2=L("<!> <!>",1),H2={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 la(t,e){K(e,!0),G(t,H2);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=ke().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")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Et(t,{get className(){return r(u)},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 p=O2(),$=he(p);{var w=I=>{var P=D2();b(I,P)};B($,I=>{o()&&I(w)})}var y=M($,2);let S=m(()=>e.type==="prev");Tf(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,p)},$$slots:{default:!0}}),W()}var F2=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function ud(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=F2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 U2}from"@vkontakte/videoplayer-shared/es2015";var z2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),q2=L("<!> <div><!></div>",1),K2={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){K(e,!0),G(t,K2);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,U2),d=F("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);Et(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return zr.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var _=q2(),p=he(_);{var $=I=>{var P=z2();b(I,P)};B(p,I=>{o()&&I($)})}var w=M(p,2);let y;var S=h(w);ud(S,{}),g(w),k(I=>y=ie(w,1,"svelte-1ot3duq",null,y,I),[()=>({mobile:o()})]),b(u,_)},$$slots:{default:!0}}),W()}var W2=$e('<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 ds(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=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 Q2=$e('<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 da(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=Q2(),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 G2}from"@vkontakte/videoplayer-shared/es2015";var Y2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),j2=L("<!> <div><!></div>",1),Z2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ja(t,e){K(e,!0),G(t,Z2);let[i,o]=Ue(),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),u=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,G2),$=ke().ui.t,{toggle:w}=a,y=m(()=>w),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),P=m(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),A=m(()=>r(I)?da:ds),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(y):_());Et(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return u()},get ariaLabel(){return r(P)},get ariaKeyShortCut(){return zr.KeyK},get ref(){return s()},set ref(R){s(R)},children:(R,z)=>{var j=j2();let U=m(()=>r(A));var X=he(j);{var ee=Ve=>{var Be=Y2();b(Ve,Be)};B(X,Ve=>{d()&&Ve(ee)})}var ne=M(X,2);let ue;var de=h(ne);Vi(de,()=>r(U),(Ve,Be)=>{Be(Ve,{})}),g(ne),k(Ve=>ue=ie(ne,1,"svelte-1ot3duq",null,ue,Ve),[()=>({mobile:d()})]),b(R,j)},$$slots:{default:!0}}),W(),o()}var X2=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function If(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=X2();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i))),b(t,o)}function pd(t,e){K(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=F("tooltip_interactive_go_back"),s=m(()=>o()?"hidden":"");Et(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{If(d,{})},$$slots:{default:!0}}),W()}var J2=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),ey={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function fd(t,e){K(e,!0),G(t,ey);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=ke(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Et(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var p=J2(),$=h(p);let w;var y=h($);{var S=P=>{ds(P,{width:"14",height:"14",fill:"#000"})},I=P=>{da(P,{width:"14",height:"14",fill:"#000"})};B(y,P=>{n()?P(S):P(I,!1)})}g($),g(p),k(P=>w=ie($,1,"toggler svelte-et3q1q",null,w,P),[()=>({enabled:n()})]),b(f,p)},$$slots:{default:!0}}),W(),o()}var ty=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function kf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=ty();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i))),b(t,o)}function md(t,e){K(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"hidden",3,!1),n=v(e,"disabled",3,!1),a=F("tooltip_interactive_seek"),s=m(()=>o()?"hidden":"");Et(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{kf(d,{})},$$slots:{default:!0}}),W()}var iy=$e('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Ef(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=iy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}var oy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Pf(t,e){G(t,oy);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Ef(t,{get"data-testid"(){return r(o)}})}function vd(t,e){K(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=ke().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Et(t,{get className(){return r(u)},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 p=m(()=>!!a());Pf(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),W()}import{PlaybackState as Gh}from"@vkontakte/videoplayer-core/es2015";function gd(t,e){K(e,!0);let[i,o]=Ue(),n=()=>C(u,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=ke(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,p=m(()=>()=>{if(!s()){f();return}n()===Gh.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===Gh.PLAYING);Et(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(S,I)=>{Fl(S,{get isActive(){return s()}})},$$slots:{default:!0}}),W(),o()}import{noop as Yh}from"@vkontakte/videoplayer-shared/es2015";var ny=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ry=L('<img class="icon" aria-hidden="true">');function ca(t,e){"use strict";let i=te(!1),o=()=>{O(i,!0)};var n=ze(),a=he(n);{var s=l=>{var u=ny();b(l,u)},d=l=>{var u=ry();k(()=>Oe(u,"src",e.icon)),kt("error",u,o),qs(u),b(l,u)};B(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function Af(t,e){K(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Yh),n=v(e,"ref",15),a=m(()=>o()===Yh),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");Vo(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,u)=>{let f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});Et(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:(_,p)=>{ca(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),W()}var jh=t=>!!t.buttonComponent;var cs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var dy=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),cy={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 Vf(t,e){var ma,As;K(e,!0),G(t,cy);let[i,o]=Ue(),n=()=>C(mi,"$disabledControls$",i),a=()=>C(qt,"$adPlaybackState",i),s=()=>C(jt,"$playbackState$",i),d=()=>C(ii,"$currentSubtitle$",i),l=()=>C(ui,"$isEnded$",i),u=()=>C(Tn,"$currentGridType$",i),f=()=>C(si,"$isLive$",i),_=()=>C(ai,"$chromecastState$",i),p=()=>C(Ro,"$isPictureInPictureActive",i),$=()=>C(wo,"$pictureInPictureType$",i),w=()=>C(Ui,"$availableSubtitlesList$",i),y=()=>C(co,"$contextMenuOpenedByKeyboard$",i),S=()=>C(lo,"$showContextMenuBtn$",i),I=()=>C(Xt,"$playerSize",i),P=()=>C(Fi,"$isRewindableLive$",i),A=()=>C(Ei,"$isActiveLive$",i),E=()=>C(pn,"$graphIsOpened$",i),T=()=>C(ao,"$contextMenuVisible$",i),R=()=>C(Wi,"$isFullscreen",i),z=()=>C(Qo,"$autoplayNextEnabled",i),j=()=>C(r(Jo),"$prevButton",i),U=()=>C(r(vr),"$replayButton",i),X=()=>C(r(gr),"$playButton",i),ee=()=>C(r(ot),"$nextButton",i),ne=()=>C(r(ut),"$playPrevChapterButton",i),ue=()=>C(r(Si),"$seekToInteractiveButton",i),de=()=>C(r(ji),"$interactiveGraphButton",i),Ve=()=>C(r(Zi),"$liveButton",i),Be=()=>C(r(ko),"$time",i),J=()=>C(r(Oo),"$episodes",i),Le=()=>C(r(Ho),"$vkLogo",i),Z=()=>C(r(Eo),"$volume",i),N=()=>C(r(Xe),"$subtitles",i),Re=()=>C(r(Mt),"$settings",i),we=()=>C(r(Ai),"$context",i),se=()=>C(r(Xi),"$fullscreen",i),Ne=()=>C(r(Ci),"$chromecast",i),pe=()=>C(Co,"$additionalDesktopControlPanelRightButtons$",i),D=()=>C(In,"$isInteractiveTime$",i),ce=()=>C(So,"$settingsMenuVisible",i),Pe=()=>C(tn,"$settingButtonRef$",i),Ge=()=>C(Wo,"$startedByKeyboard$",i),lt=()=>C(je,"$isAudioAvailable$",i),Ae=()=>C(re,"$fakeIsPlaying$",i),xe=()=>C(un,"$seekToInteractiveDisabledTooltip$",i),Me=()=>C(xt,"$adPosition",i),rt=()=>C(yt,"$position$",i),ft=()=>C(pi,"$adDuration",i),it=()=>C(Je,"$duration$",i),Bt=v(e,"playerControlsWrapperRef",15,void 0),st=v(e,"playerControlsRef",15,void 0),mt=v(e,"isAds",3,!1),zt=v(e,"logoTargetUrl",3,""),Kt=v(e,"isOneVideoPlaylist",3,!1),De=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:re}=so(),Q=ke(),ae=so(),fe=Wt(),Te=Q.actions.internal.toggleMuted,He=Q.actions.internal.togglePlay,ct=Q.actions.internal.pause,Nt=Q.actions.internal.toggleSubtitle,Ke=(ma=Q.callbacks)==null?void 0:ma.onAudioDoesNotExistHint,gt=(As=Q.callbacks)==null?void 0:As.onAudioDisabledHint,Je=Q.state.duration$,yt=Q.state.positionWithScrubbing$,jt=Q.state.playbackState$,je=Q.state.isAudioAvailable$,Ct=Q.state.isAudioDisabled,ui=Q.state.isEnded$,si=Q.state.isLive$,Ei=Q.state.isActiveLive$,Fi=Q.state.isRewindableLive$,{isActive$:Ro,type$:wo}=ae.pictureInPicture$,So=Q.ui.settingsMenu.visible$,Bo=Q.ui.settingsMenu.openedByBtnKeyboard$,H=Q.ui.controls,We=Q.actions.internal.getVideoEpisodes(),ai=Q.state.chromecastState$,Ui=Q.state.availableSubtitlesList$,ii=Q.state.currentSubtitle$,mi=H.disabledControls$,ao=Q.ui.contextMenu.visible$,lo=Q.ui.contextMenu.showContextMenuBtn$,co=Q.ui.contextMenu.openedByBtnKeyboard$,Wo=Q.ui.startedByKeyboard$,Dt=Q.ui.t,pi=Q.ads.duration,xt=Q.ads.position,qt=Q.ads.playbackState,Wi=Q.ui.isFullscreen,Xt=Q.ui.playerSize,Tn=Q.ui.currentGridType$,Co=Q.ui.additionalDesktopControlPanelRightButtons$,Qo=Q.ui.autoplayNextEnabled$,li=Q.actions.internal.getVideoElement,bt=Q.actions.internal.replayInteractive,Qi=Q.actions.internal.prevVideoClick,wi=Q.actions.internal.nextVideoClick,fi=Q.state.isInteractive,In=Q.state.isInteractiveTime$,Gi=Q.state.showInteractiveGraph,zi=Q.state.showSeekToInteractive,Go=Q.state.showPlayPrevChapter,kn=Q.state.showInteractiveTimeIndicator,Pi=Q.state.playPrevChapterDisabledTooltip,un=ae.seekToInteractiveDisabledTooltip$,pn=ae.graphIsOpened$,No=fe.features.interactiveResponsiveUi,fn=m(()=>n().has("EPISODE_BUTTON")),Mr=m(()=>n().has("GRAPH_BUTTON")),dr=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),jn=m(()=>n().has("PLAY_BUTTON")),En=m(()=>n().has("REPLAY_BUTTON")),Pn=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),An=()=>Q.actions.internal.toggleChromecast(),uo=m(()=>mt()?a()==="playing":s()===Mf.PLAYING),et=m(()=>d().value!=="off"),Yo=m(()=>l()&&!mt()||fi),mn=m(()=>No?r(Yo)&&Hi(u(),"m"):r(Yo)),cr=m(()=>!l()||fi||mt()),Mn=m(()=>Hi(u(),"m")),jo=m(()=>e.showNextPrevButtons&&Hi(u(),"m")&&!mt()&&e.nextButtonActive),Zn=m(()=>e.showNextPrevButtons&&Hi(u(),"m")&&!mt()&&e.prevButtonActive),Zo=m(()=>!mt()&&!!f()),vn=m(()=>_()!==Zh.NOT_AVAILABLE&&!(p()&&$()===1)&&Hi(u(),"m")&&!fi),Ri=m(()=>e.showAutoplayNext&&!Kt()&&Hi(u(),"s")),To=m(()=>w().length>0&&Hi(u(),"m")),gn=m(()=>y()||S()),Ln=m(()=>Hi(u(),"s")&&!mt()),ur=m(()=>!e.logoHidden&&!mt()),po=m(()=>fe.features.fullscreen&&(e.logoHidden||Hi(u(),No?"xs":"s"))&&!(p()&&$()===1)&&(fi?De():!0)),Do=m(()=>(!f()||mt())&&!(fe.features.interactiveHideTime&&fi)),Io=m(()=>I().width>100),Vn=m(()=>Gi&&Hi(u(),"m")),fo=m(()=>No?zi&&Hi(u(),"s"):zi),Yi=m(()=>No?Go&&Hi(u(),"s"):Go),Rn=m(()=>!mt()&&!f()&&!!(We!=null&&We.length)&&r(Mn)&&!r(fn)),Xo=m(()=>!P()||!!A()),pr=m(()=>E()?Dt("tooltip_interactive_graph_on"):Dt("tooltip_interactive_graph_off")),Bn=m(()=>T()?Dt("aria_label_context_menu_close"):Dt("aria_label_context_menu_open")),fr=(ht,vt)=>ht?vt&&vt===Mf.PAUSED?Dt("tooltip_play"):"":Dt("tooltip_live"),Nn=m(()=>fr(r(Xo),s())),Dn=m(()=>fe.logoType==="vk_video"?Dt("tooltip_vk_video_logo"):Dt("tooltip_vk_logo")),Lr=m(()=>r(et)?Dt("tooltip_subtitles_on"):Dt("tooltip_subtitles_off")),Xn=m(()=>R()?Dt("tooltip_fullscreen_on"):Dt("tooltip_fullscreen_off")),mr=m(()=>_()===Zh.CONNECTED?Dt("tooltip_chromecast_on"):Dt("tooltip_chromecast_off")),Vr=m(()=>z()?Dt("tooltip_autoplay_on"):Dt("tooltip_autoplay_off")),On=te(0),Jt=_e({}),Jo=m(()=>H.prevButton),vr=m(()=>H.replayButton),gr=m(()=>H.playButton),ot=m(()=>H.nextButton),ut=m(()=>H.playPrevChapterButton),Si=m(()=>H.seekToInteractiveButton),ji=m(()=>H.interactiveGraphButton),Zi=m(()=>H.liveButton),ko=m(()=>H.time),Oo=m(()=>H.episodes),Ho=m(()=>H.vkLogo),Eo=m(()=>H.volume),Xe=m(()=>H.subtitles),Mt=m(()=>H.settings),Ai=m(()=>H.context),Xi=m(()=>H.fullscreen),Ci=m(()=>H.chromecast),Ti=m(()=>({prevButton:j()?j().right-j().left:0,replayButton:U()?U().right-U().left:0,playButton:X()?X().right-X().left:0,nextButton:ee()?ee().right-ee().left:0,playPrevChapterButton:ne()?ne().right-ne().left:0,seekToInteractiveButton:ue()?ue().right-ue().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:Ve()?Ve().right-Ve().left:0,time:Be()?Be().right-Be().left:0,episodes:J()?J().right-J().left:0,vkLogo:Le()?Le().right-Le().left:0,volume:Z()?Z().right-Z().left:0,subtitles:N()?N().right-N().left:0,settings:Re()?Re().right-Re().left:0,context:we()?we().right-we().left:0,fullscreen:se()?se().right-se().left:0,chromecast:Ne()?Ne().right-Ne().left:0,additionalButtons:pe().length?pe().reduce(ht=>[...ht,40],[]):[]})),Bi=te(0);Ze(()=>{(!r(Bi)||r(Bi)<r(Ti).time)&&_t(()=>O(Bi,_e(r(Ti).time)))});let en=te(!1);Ze(()=>{let ht=0;r(Rn)&&(Hi(u(),"xl")?ht=r(Ti).time:ht=60);let vt=r(Ti).prevButton+r(Ti).playButton+r(Ti).nextButton+r(Ti).seekToInteractiveButton+r(Ti).interactiveGraphButton+r(Ti).liveButton+r(Bi)+ht;O(en,_e(r(Do)&&r(On)>=vt))});let qi=m(()=>r(en)&&Hi(u(),"m")),hr=ly(Wc,260);Ze(()=>{I(),D(),hr(li(),H,Jt,e.showControls)});let tn=le();Ze(()=>{ce(),Pe()&&_t(()=>Fa(Pe(),ce(),Bo))});let Rr;Ze(()=>{Ge(),_t(()=>Qc(Wo,Ge(),Rr))});function mo(){Cs({isAudioDisabled:Ct,audioDisabledHintCallback:gt,isAudioAvailable:lt(),audioIsNotExistHintCallback:Ke})&&Te()}let Br=fi?bt:He,Jn=m(()=>Ae()!==null),Nr=m(()=>r(Jn)?Ae():r(uo)),_r=m(()=>r(Nr)?Dt("tooltip_pause"):Dt("tooltip_play")),hn=Dt("tooltip_episodes"),er=m(()=>{var ht,vt,Ji,Fo;return r(Zn)?{id:"prevButton",type:"desktop-control-panel-left",weight:ls.prevButton,buttonComponent:la,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Qi.bind(null,!0)},tooltipEnabled:!((vt=(ht=Q.callbacks)==null?void 0:ht.uiInfo)!=null&&vt.onPrevButtonMouseEnter)&&!((Fo=(Ji=Q.callbacks)==null?void 0:Ji.uiInfo)!=null&&Fo.onPrevButtonMouseLeave),mouseEnter:()=>{var eo,ri,Mi;(Mi=(ri=(eo=Q.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ri.onPrevButtonMouseEnter)==null||Mi.call(ri,aa(li(),Jt,"prevButton",e.showControls))},mouseLeave:()=>{var eo,ri,Mi;(Mi=(ri=(eo=Q.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ri.onPrevButtonMouseLeave)==null||Mi.call(ri,aa(li(),Jt,"prevButton",e.showControls))},tooltipText:Dt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),br=m(()=>r(mn)?{id:"replayButton",type:"desktop-control-panel-left",weight:ls.replayButton,buttonComponent:Ya,buttonComponentProps:{disabled:r(En),click:Br},tooltipText:Dt("tooltip_restart"),disabled:r(En)}:void 0),Hn=m(()=>r(cr)?{id:"playButton",type:"desktop-control-panel-left",weight:ls.playButton,buttonComponent:ja,buttonComponentProps:{disabled:r(jn),isPlaying:r(uo),click:He},tooltipText:r(_r),disabled:r(jn)}:void 0),Po=m(()=>{var ht,vt,Ji,Fo;return r(jo)?{id:"nextButton",type:"desktop-control-panel-left",weight:ls.nextButton,buttonComponent:la,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:wi.bind(null,!0)},tooltipEnabled:!((vt=(ht=Q.callbacks)==null?void 0:ht.uiInfo)!=null&&vt.onNextButtonMouseEnter)&&!((Fo=(Ji=Q.callbacks)==null?void 0:Ji.uiInfo)!=null&&Fo.onNextButtonMouseLeave),mouseEnter:()=>{var eo,ri,Mi;(Mi=(ri=(eo=Q.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ri.onNextButtonMouseEnter)==null||Mi.call(ri,aa(li(),Jt,"nextButton",e.showControls))},mouseLeave:()=>{var eo,ri,Mi;(Mi=(ri=(eo=Q.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ri.onNextButtonMouseLeave)==null||Mi.call(ri,aa(li(),Jt,"nextButton",e.showControls))},tooltipText:Dt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),tr=m(()=>fi&&r(Yi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ls.playPrevChapterButton,buttonComponent:pd,buttonComponentProps:{disabled:r(Pn),click:e.playPrevChapter},tooltipText:Dt("tooltip_interactive_go_back"),disabledTooltipContent:Dt(Pi),disabled:r(Pn)}:void 0),$r=m(()=>fi&&r(fo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ls.seekToInteractiveButton,buttonComponent:md,buttonComponentProps:{disabled:r(dr),click:e.seekToInteractive},tooltipText:Dt("tooltip_interactive_seek"),disabled:r(dr),disabledTooltipContent:Dt(xe())}:void 0),tt=m(()=>fi&&r(Vn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ls.interactiveGraphButton,buttonComponent:vd,buttonComponentProps:{disabled:r(Mr),click:pn.toggle,graphIsOpened:E()},tooltipText:r(pr)}:void 0),Ft=m(()=>r(Zo)?{id:"liveButton",type:"desktop-control-panel-left",weight:ls.liveButton,buttonComponent:gd,buttonComponentProps:{isLiveActive:r(Xo),ariaLabel:r(Nn)},tooltipText:r(Nn),disabled:r(Xo)&&s()===Mf.PLAYING}:void 0),ye=m(()=>[r(er),r(br),r(Hn),r(Po),r(tr),r($r),r(tt),r(Ft)].filter(ht=>!!ht).sort(ea)),Pt=m(()=>r(ur)?{id:"vkLogo",type:"desktop-control-panel-right",weight:cs.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:zt(),logoClickable:e.logoClickable,click:ct},tooltipText:r(Dn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),oi=m(()=>r(Ri)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:cs.autoplayNext,buttonComponent:fd,tooltipText:r(Vr)}:void 0),Zt=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:cs.volume,buttonComponent:rf,buttonComponentProps:{click:mo}})),vo=m(()=>r(To)?{id:"subtitles",type:"desktop-control-panel-right",weight:cs.subtitles,buttonComponent:Jp,buttonComponentProps:{isSubtitlesEnabled:r(et),click:Nt},tooltipText:r(Lr)}:void 0),Ni=m(()=>r(Ln)?{id:"settings",type:"desktop-control-panel-right",weight:cs.settings,buttonComponent:Wa,buttonComponentProps:{ref$:tn},tooltipText:ce()?void 0:Dt("tooltip_settings_off")}:void 0),ni=m(()=>fe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:cs.context,buttonComponent:Sf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Bn)},className:r(gn)?"":"out-of-view",tooltipText:r(Bn)}:void 0),ci=m(()=>r(po)?{id:"fullscreen",type:"desktop-control-panel-right",weight:cs.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Xn)}:void 0),bi=m(()=>r(vn)?{id:"chromecast",type:"desktop-control-panel-right",weight:cs.chromecast,buttonComponent:od,buttonComponentProps:{state:_(),click:An},tooltipText:r(mr)}:void 0),Ki=m(()=>[r(Pt),r(oi),r(Zt),r(vo),r(Ni),r(ni),r(ci),r(bi),...pe()].filter(ht=>!!ht).sort(ea));var Ao=dy(),di=he(Ao);let Qr;var qe=h(di);let Ot=m(()=>!r(Io));rd(qe,{get isHidden(){return r(Ot)},get isAds(){return mt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return Jt.timeline},set ref(ht){Jt.timeline=ht}});var $i=M(qe,2),Mo=h($i),_n=h(Mo);yi(_n,17,()=>r(ye),ht=>ht.id,(ht,vt)=>{Gc(ht,{get buttonComponent(){return r(vt).buttonComponent},get buttonComponentProps(){return r(vt).buttonComponentProps},get tooltipText(){return r(vt).tooltipText},get disabledTooltipContent(){return r(vt).disabledTooltipContent},get disabled(){return r(vt).disabled},get className(){return r(vt).className},get tooltipEnabled(){return r(vt).tooltipEnabled},get mouseEnter(){return r(vt).mouseEnter},get mouseLeave(){return r(vt).mouseLeave},get ref(){return Jt[r(vt).id]},set ref(Ji){Jt[r(vt).id]=Ji}})});var Gr=M(_n,2);{var Fn=ht=>{let vt=m(()=>mt()?Me():rt()),Ji=m(()=>mt()?ft():it());Jl(ht,{isMobile:!1,get showDuration(){return r(qi)},get position(){return r(vt)},get duration(){return r(Ji)},get ref(){return Jt.time},set ref(Fo){Jt.time=Fo}})};B(Gr,ht=>{r(Do)&&ht(Fn)})}var Dr=M(Gr,2);let el=m(()=>!r(Rn));Vo(Dr,{className:"w-max",get disabled(){return r(el)},tooltipContent:hn,get ref(){return Jt.episodes},set ref(ht){Jt.episodes=ht},children:(ht,vt)=>{var Ji=ze(),Fo=he(Ji);{var eo=ri=>{sd(ri,{get position(){return rt()},get duration(){return it()},timeCodes:We})};B(Fo,ri=>{r(Rn)&&ri(eo)})}b(ht,Ji)},$$slots:{default:!0}}),g(Mo);var Ps=M(Mo,2);yi(Ps,21,()=>r(Ki),ht=>ht.id,(ht,vt)=>{var Ji=ze(),Fo=he(Ji);{var eo=Mi=>{Gc(Mi,{get buttonComponent(){return r(vt).buttonComponent},get buttonComponentProps(){return r(vt).buttonComponentProps},get tooltipText(){return r(vt).tooltipText},get disabledTooltipContent(){return r(vt).disabledTooltipContent},get disabled(){return r(vt).disabled},get className(){return r(vt).className},get ref(){return Jt[r(vt).id]},set ref(us){Jt[r(vt).id]=us}})},ri=Mi=>{let us=m(()=>!!r(vt).disabled);Af(Mi,{get id(){return r(vt).id},get testId(){return r(vt).testId},get icon(){return r(vt).icon},get ariaLabel(){return r(vt).ariaLabel},get tooltipText(){return r(vt).tooltipText},get disabledTooltipContent(){return r(vt).disabledTooltipContent},get disabled(){return r(us)},get onClick(){return r(vt).onClick},get ref(){return Jt[r(vt).id]},set ref(tl){Jt[r(vt).id]=tl}})};B(Fo,Mi=>{jh(r(vt))?Mi(eo):Mi(ri,!1)})}b(ht,Ji)}),g(Ps),g($i),dt($i,ht=>st(ht),()=>st()),g(di),dt(di,ht=>Bt(ht),()=>Bt());var yr=M(di,2);{var fa=ht=>{cd(ht,{get ref(){return Jt.interactiveTimeIndicator},set ref(vt){Jt.interactiveTimeIndicator=vt}})};B(yr,ht=>{kn&&ht(fa)})}k(ht=>Qr=ie(di,1,"wrapper-bottom svelte-1iedtj3",null,Qr,ht),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Ur(Mo,"clientWidth",ht=>O(On,ht)),b(t,Ao),W(),o()}import{ChromecastState as Jh,PlaybackState as e1}from"@vkontakte/videoplayer-core/es2015";import{noop as Xh}from"@vkontakte/videoplayer-shared/es2015";var uy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),py=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),fy={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 Rf(t,e){G(t,fy);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Xh),n=m(()=>o()===Xh),a=m(()=>r(n)||i()),s=te(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");Et(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:(u,f)=>{var _=ze(),p=he(_);{var $=y=>{var S=uy();b(y,S)},w=y=>{var S=py();k(()=>Oe(S,"src",e.iconUrl)),kt("error",S,d),qs(S),b(y,S)};B(p,y=>{r(s)?y($):y(w,!1)})}b(u,_)},$$slots:{default:!0}})}var my=$e('<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 Bf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=my();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 vy}from"@vkontakte/videoplayer-shared/es2015";var gy=L('<span class="text svelte-6gmlbk"> </span>'),hy=L('<div aria-hidden="true"><!> <!></div>'),_y={hash:"svelte-6gmlbk",code:".container.svelte-6gmlbk {display:flex;align-items:center;}.expanded.svelte-6gmlbk {background-color:rgba(0, 0, 0, 0.56);border-radius:6px;}.text.svelte-6gmlbk {font-size:15px;margin-left:8px;}"};function Yc(t,e){K(e,!0),G(t,_y);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,vy),a=v(e,"ref",15,void 0),d=ke().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=m(()=>o()?Ts:Bf),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Et(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,p)=>{var $=hy();let w=m(()=>r(u)),y;var S=h($);Vi(S,()=>r(w),(A,E)=>{E(A,{})});var I=M(S,2);{var P=A=>{var E=gy(),T=h(E,!0);g(E),k(R=>me(T,R),[()=>d("mobile_unmute")]),b(A,E)};B(I,A=>{o()&&A(P)})}g($),k(A=>y=ie($,1,"container svelte-6gmlbk",null,y,A),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),W()}var by=$e('<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 Nf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=by();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(3),g(o),k(()=>n=Ce(o,n,q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),b(t,o)}var $y={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
255
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Df(t,e){G(t,$y);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");Nf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as yy}from"@vkontakte/videoplayer-shared/es2015";function Of(t,e){K(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,yy),a=F("menu_pip");Et(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{Df(s,{get isActive(){return o()}})},$$slots:{default:!0}}),W()}import{debounceFn as xy}from"@vkontakte/videoplayer-shared/es2015";var wy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Sy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Cy=L("<div><!></div>"),Ty=L("<div><!></div>"),Iy=L("<div><!></div>"),ky=L("<!> <!> <!>",1),Ey=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Py=L("<div><!></div>"),Ay=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),My=L("<!> <!> <div><!></div>",1),Ly=L('<div aria-hidden="true">\xB7</div> <!>',1),Vy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ry={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,
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 cd(t,e){var D;q(e,!0),G(t,N2);let[i,o]=Ue(),n=()=>C(S,"$isMobile",i),a=()=>C(E,"$areControlsVisible",i),s=()=>C(V,"$currentGridType$",i),d=()=>C(P,"$isInteractiveTime$",i),l=()=>C(y,"$interactiveControlsOpacity$",i),u=()=>C(A,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),p=te(void 0),$=Se(),w=so(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,I=$.ui.isFullscreen,P=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,T=(D=$.callbacks)==null?void 0:D.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,U=m(()=>!n()&&a()),j=m(()=>ks(s(),"s")),F=m(()=>!d()||!!l()||r(U)),Z=te(!1);We(()=>{O(Z,ve(r(F)))});let J=()=>{O(Z,!0)},ne=()=>{var ce;fe(),(ce=r(p))==null||ce.addEventListener("animationiteration",J,{once:!0})},fe=()=>{var ce;O(Z,!1),(ce=r(p))==null||ce.removeEventListener("animationiteration",J)},de=ce=>{A.set(ce)},Re=m(()=>u()&&!r(F));We(()=>{u()?ne():fe()});let Le=()=>{r(F)||(A.set(!0),T==null||T())};wn(()=>{A.clearTimeout(),fe()});let ee=()=>{A.set(!1)},Ve=H("tooltip_interactive_interaction_time_indicator");var X=R2();let B;X.__mousemove=[V2],X.__click=Le;var Ne=h(X);ko(Ne,{tooltipContent:Ve,get tooltipActive(){return r(Re)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return _()},set ref(ce){_(ce)},children:(ce,Pe)=>{ed(ce,{completed:!0})},$$slots:{default:!0}});var re=M(Ne,2);let Ee;ct(re,ce=>_(ce),()=>_());var Be=M(re,2);let me;ct(Be,ce=>O(p,ce),()=>r(p)),g(X),k((ce,Pe,Ye)=>{B=ie(X,1,"interactive-episode-icon-animated svelte-od3veb",null,B,ce),Ee=ie(re,1,"ref-block svelte-od3veb",null,Ee,Pe),me=ie(Be,1,"pulse svelte-od3veb",null,me,Ye)},[()=>({mobile:n(),fullscreen:f(),invisible:r(F),"icon-small":r(j)}),()=>({hidden:r(F)}),()=>({paused:r(Z)})]),Et("mouseleave",X,ee),b(t,X),K(),o()}at(["mousemove","click"]);function Jc(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);ko(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=Ke();let u=m(()=>e.buttonComponent);var f=pe(l);xi(f,()=>r(u),(_,p)=>{p(_,rs(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(s,l)},$$slots:{default:!0}}),K()}var ls={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var D2=$e('<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 Af(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}function Es(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");Af(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 O2=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),H2=L("<!> <!>",1),F2={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 ca(t,e){q(e,!0),G(t,F2);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")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Mt(t,{get className(){return r(u)},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 p=H2(),$=pe(p);{var w=I=>{var P=O2();b(I,P)};R($,I=>{o()&&I(w)})}var y=M($,2);let S=m(()=>e.type==="prev");Es(y,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,p)},$$slots:{default:!0}}),K()}var U2=$e('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function ud(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=U2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 z2}from"@vkontakte/videoplayer-shared/es2015";var q2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),K2=L("<!> <div><!></div>",1),W2={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 Za(t,e){q(e,!0),G(t,W2);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,z2),d=H("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);Mt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Ur.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var _=K2(),p=pe(_);{var $=I=>{var P=q2();b(I,P)};R(p,I=>{o()&&I($)})}var w=M(p,2);let y;var S=h(w);ud(S,{}),g(w),k(I=>y=ie(w,1,"svelte-1ot3duq",null,y,I),[()=>({mobile:o()})]),b(u,_)},$$slots:{default:!0}}),K()}var Q2=$e('<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 Pr(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=Q2(),d=h(s);g(s),k(()=>{He(s,"width",i()),He(s,"height",o()),He(s,"viewBox",n()),He(d,"fill",a())}),b(t,s)}var G2=$e('<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 ds(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=G2(),d=h(s);g(s),k(()=>{He(s,"width",i()),He(s,"height",o()),He(s,"viewBox",n()),He(d,"fill",a())}),b(t,s)}import{noop as Y2}from"@vkontakte/videoplayer-shared/es2015";var j2=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Z2=L("<!> <div><!></div>",1),X2={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function Xa(t,e){q(e,!0),G(t,X2);let[i,o]=Ue(),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),u=v(e,"disabled",3,!1),f=v(e,"className",3,""),_=v(e,"click",3,Y2),$=Se().ui.t,{toggle:w}=a,y=m(()=>w),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),P=m(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),A=m(()=>r(I)?ds:Pr),E=m(()=>`${d()?"btn-m--play":""} ${f()}`),T=m(()=>r(S)?r(y):_());Mt(t,{get className(){return r(E)},testId:"btn-play",get click(){return r(T)},get disabled(){return u()},get ariaLabel(){return r(P)},get ariaKeyShortCut(){return Ur.KeyK},get ref(){return s()},set ref(V){s(V)},children:(V,U)=>{var j=Z2();let F=m(()=>r(A));var Z=pe(j);{var J=Re=>{var Le=j2();b(Re,Le)};R(Z,Re=>{d()&&Re(J)})}var ne=M(Z,2);let fe;var de=h(ne);xi(de,()=>r(F),(Re,Le)=>{Le(Re,{})}),g(ne),k(Re=>fe=ie(ne,1,"svelte-1ot3duq",null,fe,Re),[()=>({mobile:d()})]),b(V,j)},$$slots:{default:!0}}),K(),o()}var J2=$e('<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 Mf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=J2();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i))),b(t,o)}function pd(t,e){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":"");Mt(t,{get className(){return r(s)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Mf(d,{})},$$slots:{default:!0}}),K()}var ey=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),ty={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function fd(t,e){q(e,!0),G(t,ty);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Mt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(f){a(f)},children:(f,_)=>{var p=ey(),$=h(p);let w;var y=h($);{var S=P=>{Pr(P,{width:"14",height:"14",fill:"#000"})},I=P=>{ds(P,{width:"14",height:"14",fill:"#000"})};R(y,P=>{n()?P(S):P(I,!1)})}g($),g(p),k(P=>w=ie($,1,"toggler svelte-et3q1q",null,w,P),[()=>({enabled:n()})]),b(f,p)},$$slots:{default:!0}}),K(),o()}var iy=$e('<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 Lf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=iy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i))),b(t,o)}function md(t,e){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":"");Mt(t,{get className(){return r(s)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,l)=>{Lf(d,{})},$$slots:{default:!0}}),K()}var oy=$e('<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 Vf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=oy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i))),b(t,o)}var ny={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Rf(t,e){G(t,ny);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Vf(t,{get"data-testid"(){return r(o)}})}function vd(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")),u=m(()=>o()?"hidden":"");Mt(t,{get className(){return r(u)},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 p=m(()=>!!a());Rf(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),K()}import{PlaybackState as Zh}from"@vkontakte/videoplayer-core/es2015";function gd(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(u,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=Se(),u=l.state.playbackState$,f=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,p=m(()=>()=>{if(!s()){f();return}n()===Zh.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),w=m(()=>s()?"btn-live":"btn-live-offset"),y=m(()=>s()&&n()===Zh.PLAYING);Mt(t,{get className(){return r($)},get testId(){return r(w)},get disabled(){return r(y)},get ariaLabel(){return d()},get click(){return r(p)},children:(S,I)=>{Fl(S,{get isActive(){return s()}})},$$slots:{default:!0}}),K(),o()}import{noop as Xh}from"@vkontakte/videoplayer-shared/es2015";var ry=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),sy=L('<img class="icon" aria-hidden="true">');function ua(t,e){"use strict";let i=te(!1),o=()=>{O(i,!0)};var n=Ke(),a=pe(n);{var s=l=>{var u=ry();b(l,u)},d=l=>{var u=sy();k(()=>He(u,"src",e.icon)),Et("error",u,o),Ks(u),b(l,u)};R(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function Nf(t,e){q(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,Xh),n=v(e,"ref",15),a=m(()=>o()===Xh),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");ko(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,u)=>{let f=m(()=>{var _;return(_=e.testId)!=null?_:e.id});Mt(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(f)},children:(_,p)=>{ua(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),K()}var Jh=t=>!!t.buttonComponent;var cs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var cy=L('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),uy={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 Of(t,e){var va,Ls;q(e,!0),G(t,uy);let[i,o]=Ue(),n=()=>C(oi,"$disabledControls$",i),a=()=>C(Wt,"$adPlaybackState",i),s=()=>C(ai,"$playbackState$",i),d=()=>C(hi,"$currentSubtitle$",i),l=()=>C(ii,"$isEnded$",i),u=()=>C(ci,"$currentGridType$",i),f=()=>C(Pi,"$isLive$",i),_=()=>C(Fi,"$chromecastState$",i),p=()=>C(Po,"$isPictureInPictureActive",i),$=()=>C(zo,"$pictureInPictureType$",i),w=()=>C(Li,"$availableSubtitlesList$",i),y=()=>C(Ui,"$contextMenuOpenedByKeyboard$",i),S=()=>C(ho,"$showContextMenuBtn$",i),I=()=>C(zi,"$playerSize",i),P=()=>C(Hi,"$isRewindableLive$",i),A=()=>C(Eo,"$isActiveLive$",i),E=()=>C(ln,"$graphIsOpened$",i),T=()=>C(ao,"$contextMenuVisible$",i),V=()=>C(Ao,"$isFullscreen",i),U=()=>C(Ko,"$autoplayNextEnabled",i),j=()=>C(r(vr),"$prevButton",i),F=()=>C(r(vn),"$replayButton",i),Z=()=>C(r(Qo),"$playButton",i),J=()=>C(r(nt),"$nextButton",i),ne=()=>C(r(At),"$playPrevChapterButton",i),fe=()=>C(r(Ti),"$seekToInteractiveButton",i),de=()=>C(r(ni),"$interactiveGraphButton",i),Re=()=>C(r(Xi),"$liveButton",i),Le=()=>C(r(So),"$time",i),ee=()=>C(r(Co),"$episodes",i),Ve=()=>C(r(Go),"$vkLogo",i),X=()=>C(r(Yo),"$volume",i),B=()=>C(r(et),"$subtitles",i),Ne=()=>C(r(Vt),"$settings",i),re=()=>C(r(di),"$context",i),Ee=()=>C(r(Qi),"$fullscreen",i),Be=()=>C(r(Ii),"$chromecast",i),me=()=>C(_o,"$additionalDesktopControlPanelRightButtons$",i),D=()=>C(bo,"$isInteractiveTime$",i),ce=()=>C(Lt,"$settingsMenuVisible",i),Pe=()=>C(jo,"$settingButtonRef$",i),Ye=()=>C(qo,"$startedByKeyboard$",i),dt=()=>C(Ge,"$isAudioAvailable$",i),Ae=()=>C(se,"$fakeIsPlaying$",i),ye=()=>C(In,"$seekToInteractiveDisabledTooltip$",i),Me=()=>C(wt,"$adPosition",i),rt=()=>C(Pt,"$position$",i),vt=()=>C(ui,"$adDuration",i),lt=()=>C(Je,"$duration$",i),kt=v(e,"playerControlsWrapperRef",15,void 0),st=v(e,"playerControlsRef",15,void 0),gt=v(e,"isAds",3,!1),Kt=v(e,"logoTargetUrl",3,""),jt=v(e,"isOneVideoPlaylist",3,!1),De=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:se}=so(),Q=Se(),ae=so(),_e=Qt(),Ce=Q.actions.internal.toggleMuted,Oe=Q.actions.internal.togglePlay,ut=Q.actions.internal.pause,Gt=Q.actions.internal.toggleSubtitle,Ze=(va=Q.callbacks)==null?void 0:va.onAudioDoesNotExistHint,pt=(Ls=Q.callbacks)==null?void 0:Ls.onAudioDisabledHint,Je=Q.state.duration$,Pt=Q.state.positionWithScrubbing$,ai=Q.state.playbackState$,Ge=Q.state.isAudioAvailable$,ot=Q.state.isAudioDisabled,ii=Q.state.isEnded$,Pi=Q.state.isLive$,Eo=Q.state.isActiveLive$,Hi=Q.state.isRewindableLive$,{isActive$:Po,type$:zo}=ae.pictureInPicture$,Lt=Q.ui.settingsMenu.visible$,_t=Q.ui.settingsMenu.openedByBtnKeyboard$,z=Q.ui.controls,Yt=Q.actions.internal.getVideoEpisodes(),Fi=Q.state.chromecastState$,Li=Q.state.availableSubtitlesList$,hi=Q.state.currentSubtitle$,oi=z.disabledControls$,ao=Q.ui.contextMenu.visible$,ho=Q.ui.contextMenu.showContextMenuBtn$,Ui=Q.ui.contextMenu.openedByBtnKeyboard$,qo=Q.ui.startedByKeyboard$,Ht=Q.ui.t,ui=Q.ads.duration,wt=Q.ads.position,Wt=Q.ads.playbackState,Ao=Q.ui.isFullscreen,zi=Q.ui.playerSize,ci=Q.ui.currentGridType$,_o=Q.ui.additionalDesktopControlPanelRightButtons$,Ko=Q.ui.autoplayNextEnabled$,li=Q.actions.internal.getVideoElement,yt=Q.actions.internal.replayInteractive,_i=Q.actions.internal.prevVideoClick,qi=Q.actions.internal.nextVideoClick,Vi=Q.state.isInteractive,bo=Q.state.isInteractiveTime$,Si=Q.state.showInteractiveGraph,$o=Q.state.showSeekToInteractive,Tn=Q.state.showPlayPrevChapter,an=Q.state.showInteractiveTimeIndicator,Ci=Q.state.playPrevChapterDisabledTooltip,In=ae.seekToInteractiveDisabledTooltip$,ln=ae.graphIsOpened$,Mo=_e.features.interactiveResponsiveUi,kn=m(()=>n().has("EPISODE_BUTTON")),lr=m(()=>n().has("GRAPH_BUTTON")),dr=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Hn=m(()=>n().has("PLAY_BUTTON")),Fn=m(()=>n().has("REPLAY_BUTTON")),dn=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cn=()=>Q.actions.internal.toggleChromecast(),cr=m(()=>gt()?a()==="playing":s()===Bf.PLAYING),it=m(()=>d().value!=="off"),ji=m(()=>l()&&!gt()||Vi),ur=m(()=>Mo?r(ji)&&Oi(u(),"m"):r(ji)),Un=m(()=>!l()||Vi||gt()),un=m(()=>Oi(u(),"m")),pn=m(()=>e.showNextPrevButtons&&Oi(u(),"m")&&!gt()&&e.nextButtonActive),Lo=m(()=>e.showNextPrevButtons&&Oi(u(),"m")&&!gt()&&e.prevButtonActive),yo=m(()=>!gt()&&!!f()),Ki=m(()=>_()!==e1.NOT_AVAILABLE&&!(p()&&$()===1)&&Oi(u(),"m")&&!Vi),Zi=m(()=>e.showAutoplayNext&&!jt()&&Oi(u(),"s")),zn=m(()=>w().length>0&&Oi(u(),"m")),qn=m(()=>y()||S()),Mr=m(()=>Oi(u(),"s")&&!gt()),Kn=m(()=>!e.logoHidden&&!gt()),lo=m(()=>_e.features.fullscreen&&(e.logoHidden||Oi(u(),Mo?"xs":"s"))&&!(p()&&$()===1)&&(Vi?De():!0)),xo=m(()=>(!f()||gt())&&!(_e.features.interactiveHideTime&&Vi)),fn=m(()=>I().width>100),En=m(()=>Si&&Oi(u(),"m")),Vo=m(()=>Mo?$o&&Oi(u(),"s"):$o),Wi=m(()=>Mo?Tn&&Oi(u(),"s"):Tn),Wo=m(()=>!gt()&&!f()&&!!(Yt!=null&&Yt.length)&&r(un)&&!r(kn)),wo=m(()=>!P()||!!A()),pr=m(()=>E()?Ht("tooltip_interactive_graph_on"):Ht("tooltip_interactive_graph_off")),mn=m(()=>T()?Ht("aria_label_context_menu_close"):Ht("aria_label_context_menu_open")),Wn=(bt,ht)=>bt?ht&&ht===Bf.PAUSED?Ht("tooltip_play"):"":Ht("tooltip_live"),Qn=m(()=>Wn(r(wo),s())),Gn=m(()=>_e.logoType==="vk_video"?Ht("tooltip_vk_video_logo"):Ht("tooltip_vk_logo")),fr=m(()=>r(it)?Ht("tooltip_subtitles_on"):Ht("tooltip_subtitles_off")),Yn=m(()=>V()?Ht("tooltip_fullscreen_on"):Ht("tooltip_fullscreen_off")),mr=m(()=>_()===e1.CONNECTED?Ht("tooltip_chromecast_on"):Ht("tooltip_chromecast_off")),jn=m(()=>U()?Ht("tooltip_autoplay_on"):Ht("tooltip_autoplay_off")),Zn=te(0),si=ve({}),vr=m(()=>z.prevButton),vn=m(()=>z.replayButton),Qo=m(()=>z.playButton),nt=m(()=>z.nextButton),At=m(()=>z.playPrevChapterButton),Ti=m(()=>z.seekToInteractiveButton),ni=m(()=>z.interactiveGraphButton),Xi=m(()=>z.liveButton),So=m(()=>z.time),Co=m(()=>z.episodes),Go=m(()=>z.vkLogo),Yo=m(()=>z.volume),et=m(()=>z.subtitles),Vt=m(()=>z.settings),di=m(()=>z.context),Qi=m(()=>z.fullscreen),Ii=m(()=>z.chromecast),Ri=m(()=>({prevButton:j()?j().right-j().left:0,replayButton:F()?F().right-F().left:0,playButton:Z()?Z().right-Z().left:0,nextButton:J()?J().right-J().left:0,playPrevChapterButton:ne()?ne().right-ne().left:0,seekToInteractiveButton:fe()?fe().right-fe().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:Re()?Re().right-Re().left:0,time:Le()?Le().right-Le().left:0,episodes:ee()?ee().right-ee().left:0,vkLogo:Ve()?Ve().right-Ve().left:0,volume:X()?X().right-X().left:0,subtitles:B()?B().right-B().left:0,settings:Ne()?Ne().right-Ne().left:0,context:re()?re().right-re().left:0,fullscreen:Ee()?Ee().right-Ee().left:0,chromecast:Be()?Be().right-Be().left:0,additionalButtons:me().length?me().reduce(bt=>[...bt,40],[]):[]})),Gi=te(0);We(()=>{(!r(Gi)||r(Gi)<r(Ri).time)&&$t(()=>O(Gi,ve(r(Ri).time)))});let To=te(!1);We(()=>{let bt=0;r(Wo)&&(Oi(u(),"xl")?bt=r(Ri).time:bt=60);let ht=r(Ri).prevButton+r(Ri).playButton+r(Ri).nextButton+r(Ri).seekToInteractiveButton+r(Ri).interactiveGraphButton+r(Ri).liveButton+r(Gi)+bt;O(To,ve(r(xo)&&r(Zn)>=ht))});let Ni=m(()=>r(To)&&Oi(u(),"m")),gr=dy(Zc,260);We(()=>{I(),D(),gr(li(),z,si,e.showControls)});let jo=le();We(()=>{ce(),Pe()&&$t(()=>za(Pe(),ce(),_t))});let Lr;We(()=>{Ye(),$t(()=>Xc(qo,Ye(),Lr))});function co(){Ts({isAudioDisabled:ot,audioDisabledHintCallback:pt,isAudioAvailable:dt(),audioIsNotExistHintCallback:Ze})&&Ce()}let Vr=Vi?yt:Oe,Xn=m(()=>Ae()!==null),Wr=m(()=>r(Xn)?Ae():r(cr)),hr=m(()=>r(Wr)?Ht("tooltip_pause"):Ht("tooltip_play")),Rr=Ht("tooltip_episodes"),_r=m(()=>{var bt,ht,Ji,Bo;return r(Lo)?{id:"prevButton",type:"desktop-control-panel-left",weight:ls.prevButton,buttonComponent:ca,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:_i.bind(null,!0)},tooltipEnabled:!((ht=(bt=Q.callbacks)==null?void 0:bt.uiInfo)!=null&&ht.onPrevButtonMouseEnter)&&!((Bo=(Ji=Q.callbacks)==null?void 0:Ji.uiInfo)!=null&&Bo.onPrevButtonMouseLeave),mouseEnter:()=>{var eo,ri,Ai;(Ai=(ri=(eo=Q.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ri.onPrevButtonMouseEnter)==null||Ai.call(ri,da(li(),si,"prevButton",e.showControls))},mouseLeave:()=>{var eo,ri,Ai;(Ai=(ri=(eo=Q.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ri.onPrevButtonMouseLeave)==null||Ai.call(ri,da(li(),si,"prevButton",e.showControls))},tooltipText:Ht("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Ro=m(()=>r(ur)?{id:"replayButton",type:"desktop-control-panel-left",weight:ls.replayButton,buttonComponent:Za,buttonComponentProps:{disabled:r(Fn),click:Vr},tooltipText:Ht("tooltip_restart"),disabled:r(Fn)}:void 0),gn=m(()=>r(Un)?{id:"playButton",type:"desktop-control-panel-left",weight:ls.playButton,buttonComponent:Xa,buttonComponentProps:{disabled:r(Hn),isPlaying:r(cr),click:Oe},tooltipText:r(hr),disabled:r(Hn)}:void 0),Qr=m(()=>{var bt,ht,Ji,Bo;return r(pn)?{id:"nextButton",type:"desktop-control-panel-left",weight:ls.nextButton,buttonComponent:ca,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:qi.bind(null,!0)},tooltipEnabled:!((ht=(bt=Q.callbacks)==null?void 0:bt.uiInfo)!=null&&ht.onNextButtonMouseEnter)&&!((Bo=(Ji=Q.callbacks)==null?void 0:Ji.uiInfo)!=null&&Bo.onNextButtonMouseLeave),mouseEnter:()=>{var eo,ri,Ai;(Ai=(ri=(eo=Q.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ri.onNextButtonMouseEnter)==null||Ai.call(ri,da(li(),si,"nextButton",e.showControls))},mouseLeave:()=>{var eo,ri,Ai;(Ai=(ri=(eo=Q.callbacks)==null?void 0:eo.uiInfo)==null?void 0:ri.onNextButtonMouseLeave)==null||Ai.call(ri,da(li(),si,"nextButton",e.showControls))},tooltipText:Ht("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),br=m(()=>Vi&&r(Wi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:ls.playPrevChapterButton,buttonComponent:pd,buttonComponentProps:{disabled:r(dn),click:e.playPrevChapter},tooltipText:Ht("tooltip_interactive_go_back"),disabledTooltipContent:Ht(Ci),disabled:r(dn)}:void 0),Jn=m(()=>Vi&&r(Vo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:ls.seekToInteractiveButton,buttonComponent:md,buttonComponentProps:{disabled:r(dr),click:e.seekToInteractive},tooltipText:Ht("tooltip_interactive_seek"),disabled:r(dr),disabledTooltipContent:Ht(ye())}:void 0),Xe=m(()=>Vi&&r(En)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:ls.interactiveGraphButton,buttonComponent:vd,buttonComponentProps:{disabled:r(lr),click:ln.toggle,graphIsOpened:E()},tooltipText:r(pr)}:void 0),Ft=m(()=>r(yo)?{id:"liveButton",type:"desktop-control-panel-left",weight:ls.liveButton,buttonComponent:gd,buttonComponentProps:{isLiveActive:r(wo),ariaLabel:r(Qn)},tooltipText:r(Qn),disabled:r(wo)&&s()===Bf.PLAYING}:void 0),$i=m(()=>[r(_r),r(Ro),r(gn),r(Qr),r(br),r(Jn),r(Xe),r(Ft)].filter(bt=>!!bt).sort(ia)),hn=m(()=>r(Kn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:cs.vkLogo,buttonComponent:id,buttonComponentProps:{targetUrl:Kt(),logoClickable:e.logoClickable,click:ut},tooltipText:r(Gn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),_n=m(()=>r(Zi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:cs.autoplayNext,buttonComponent:fd,tooltipText:r(jn)}:void 0),Pn=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:cs.volume,buttonComponent:uf,buttonComponentProps:{click:co}})),er=m(()=>r(zn)?{id:"subtitles",type:"desktop-control-panel-right",weight:cs.subtitles,buttonComponent:sf,buttonComponentProps:{isSubtitlesEnabled:r(it),click:Gt},tooltipText:r(fr)}:void 0),Te=m(()=>r(Mr)?{id:"settings",type:"desktop-control-panel-right",weight:cs.settings,buttonComponent:Ga,buttonComponentProps:{ref$:jo},tooltipText:ce()?void 0:Ht("tooltip_settings_off")}:void 0),ft=m(()=>_e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:cs.context,buttonComponent:Pf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(mn)},className:r(qn)?"":"out-of-view",tooltipText:r(mn)}:void 0),Rt=m(()=>r(lo)?{id:"fullscreen",type:"desktop-control-panel-right",weight:cs.fullscreen,buttonComponent:td,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:r(Yn)}:void 0),zt=m(()=>r(Ki)?{id:"chromecast",type:"desktop-control-panel-right",weight:cs.chromecast,buttonComponent:od,buttonComponentProps:{state:_(),click:cn},tooltipText:r(mr)}:void 0),Yi=m(()=>[r(hn),r(_n),r(Pn),r(er),r(Te),r(ft),r(Rt),r(zt),...me()].filter(bt=>!!bt).sort(ia));var pi=cy(),Zt=pe(pi);let Nr;var Fe=h(Zt);let It=m(()=>!r(fn));rd(Fe,{get isHidden(){return r(It)},get isAds(){return gt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return si.timeline},set ref(bt){si.timeline=bt}});var bi=M(Fe,2),No=h(bi),Zo=h(No);yi(Zo,17,()=>r($i),bt=>bt.id,(bt,ht)=>{Jc(bt,{get buttonComponent(){return r(ht).buttonComponent},get buttonComponentProps(){return r(ht).buttonComponentProps},get tooltipText(){return r(ht).tooltipText},get disabledTooltipContent(){return r(ht).disabledTooltipContent},get disabled(){return r(ht).disabled},get className(){return r(ht).className},get tooltipEnabled(){return r(ht).tooltipEnabled},get mouseEnter(){return r(ht).mouseEnter},get mouseLeave(){return r(ht).mouseLeave},get ref(){return si[r(ht).id]},set ref(Ji){si[r(ht).id]=Ji}})});var Gr=M(Zo,2);{var An=bt=>{let ht=m(()=>gt()?Me():rt()),Ji=m(()=>gt()?vt():lt());Jl(bt,{isMobile:!1,get showDuration(){return r(Ni)},get position(){return r(ht)},get duration(){return r(Ji)},get ref(){return si.time},set ref(Bo){si.time=Bo}})};R(Gr,bt=>{r(xo)&&bt(An)})}var Br=M(Gr,2);let il=m(()=>!r(Wo));ko(Br,{className:"w-max",get disabled(){return r(il)},tooltipContent:Rr,get ref(){return si.episodes},set ref(bt){si.episodes=bt},children:(bt,ht)=>{var Ji=Ke(),Bo=pe(Ji);{var eo=ri=>{sd(ri,{get position(){return rt()},get duration(){return lt()},timeCodes:Yt})};R(Bo,ri=>{r(Wo)&&ri(eo)})}b(bt,Ji)},$$slots:{default:!0}}),g(No);var Ms=M(No,2);yi(Ms,21,()=>r(Yi),bt=>bt.id,(bt,ht)=>{var Ji=Ke(),Bo=pe(Ji);{var eo=Ai=>{Jc(Ai,{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 si[r(ht).id]},set ref(us){si[r(ht).id]=us}})},ri=Ai=>{let us=m(()=>!!r(ht).disabled);Nf(Ai,{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(us)},get onClick(){return r(ht).onClick},get ref(){return si[r(ht).id]},set ref(ol){si[r(ht).id]=ol}})};R(Bo,Ai=>{Jh(r(ht))?Ai(eo):Ai(ri,!1)})}b(bt,Ji)}),g(Ms),g(bi),ct(bi,bt=>st(bt),()=>st()),g(Zt),ct(Zt,bt=>kt(bt),()=>kt());var $r=M(Zt,2);{var ma=bt=>{cd(bt,{get ref(){return si.interactiveTimeIndicator},set ref(ht){si.interactiveTimeIndicator=ht}})};R($r,bt=>{an&&bt(ma)})}k(bt=>Nr=ie(Zt,1,"wrapper-bottom svelte-1iedtj3",null,Nr,bt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Fr(No,"clientWidth",bt=>O(Zn,bt)),b(t,pi),K(),o()}import{ChromecastState as i1,PlaybackState as o1}from"@vkontakte/videoplayer-core/es2015";import{noop as t1}from"@vkontakte/videoplayer-shared/es2015";var py=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),fy=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),my={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 Hf(t,e){G(t,my);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,t1),n=m(()=>o()===t1),a=m(()=>r(n)||i()),s=te(!1),d=()=>{O(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");Mt(t,{get className(){return r(l)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(a)},get testId(){return e.testId},children:(u,f)=>{var _=Ke(),p=pe(_);{var $=y=>{var S=py();b(y,S)},w=y=>{var S=fy();k(()=>He(S,"src",e.iconUrl)),Et("error",S,d),Ks(S),b(y,S)};R(p,y=>{r(s)?y($):y(w,!1)})}b(u,_)},$$slots:{default:!0}})}var vy=$e('<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 Ff(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 gy}from"@vkontakte/videoplayer-shared/es2015";var hy=L('<span class="text svelte-6gmlbk"> </span>'),_y=L('<div aria-hidden="true"><!> <!></div>'),by={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 eu(t,e){q(e,!0),G(t,by);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,gy),a=v(e,"ref",15,void 0),d=Se().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),u=m(()=>o()?Is:Ff),f=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Mt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,p)=>{var $=_y();let w=m(()=>r(u)),y;var S=h($);xi(S,()=>r(w),(A,E)=>{E(A,{})});var I=M(S,2);{var P=A=>{var E=hy(),T=h(E,!0);g(E),k(V=>ge(T,V),[()=>d("mobile_unmute")]),b(A,E)};R(I,A=>{o()&&A(P)})}g($),k(A=>y=ie($,1,"container svelte-6gmlbk",null,y,A),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),K()}var $y=$e('<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 Uf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=$y();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(3),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i))),b(t,o)}var yy={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 zf(t,e){G(t,yy);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");Uf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as xy}from"@vkontakte/videoplayer-shared/es2015";function qf(t,e){q(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,xy),a=H("menu_pip");Mt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{zf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),K()}import{debounceFn as wy}from"@vkontakte/videoplayer-shared/es2015";var Sy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Cy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Ty=L("<div><!></div>"),Iy=L("<div><!></div>"),ky=L("<div><!></div>"),Ey=L("<!> <!> <!>",1),Py=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Ay=L("<div><!></div>"),My=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Ly=L("<!> <!> <div><!></div>",1),Vy=L('<div aria-hidden="true">\xB7</div> <!>',1),Ry=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Ny={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
256
256
  .wrapper-middle-left-second.svelte-1afsgkw,
257
257
  .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
258
 
@@ -260,7 +260,7 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
260
260
  }
261
261
 
262
262
  @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 Hf(t,e){var vr,gr;K(e,!0),G(t,Ry);let[i,o]=Ue(),n=()=>C(pi,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(Ei,"$disabledControls$",i),s=()=>C(mt,"$playbackState$",i),d=()=>C(Bo,"$adPlaybackState",i),l=()=>C(De,"$isEnded$",i),u=()=>C(We,"$playerSize",i),f=()=>C(Te,"$scrubbingInProgress",i),_=()=>C(ui,"$chromecastState$",i),p=()=>C(ct,"$isPictureInPictureActive",i),$=()=>C(Nt,"$pictureInPictureType$",i),w=()=>C(He,"$mobileNotReportControlHidden$",i),y=()=>C(it,"$playerPhase",i),S=()=>C(Ro,"$currentGridType$",i),I=()=>C(re,"$isLive$",i),P=()=>C(Je,"$settingsMenuVisible",i),A=()=>C(fe,"$isRewindableLive$",i),E=()=>C(ae,"$isActiveLive$",i),T=()=>C(ao,"$isInteractiveTime$",i),R=()=>C(zt,"$isAudioAvailable$",i),z=()=>C(vn,"$settingButtonRef$",i),j=()=>C(Fi,"$startedByKeyboard$",i),U=()=>C(H,"$isFullscreen",i),X=()=>C(gt,"$mobileUnmuteButtonVisible",i),ee=()=>C(Q,"$muted$",i),ne=()=>C(Ke,"$mobileUnmuteButtonExpanded",i),ue=()=>C(ai,"$additionalButtons$",i),de=()=>C(si,"$crashed$",i),Ve=()=>C(xt,"$graphIsOpened$",i),Be=()=>C(So,"$adPosition",i),J=()=>C(wo,"$adDuration",i),Le=()=>C(st,"$position$",i),Z=()=>C(Bt,"$duration$",i),N=v(e,"playerControlsWrapperRef",15,void 0),Re=v(e,"playerControlsRef",15,void 0),we=v(e,"isAds",3,!1),se=v(e,"logoTargetUrl",3,""),Ne=v(e,"isOneVideoPlaylist",3,!1),pe=v(e,"customFullscreenSupported",3,!0),D=ke(),ce=so(),Pe=Wt(),Ge=D.actions.internal.toggleMuted,lt=D.actions.internal.togglePlay,Ae=D.actions.internal.pause,xe=D.actions.internal.prevVideoClick,Me=D.actions.internal.nextVideoClick,rt=(vr=D.callbacks)==null?void 0:vr.onAudioDoesNotExistHint,ft=(gr=D.callbacks)==null?void 0:gr.onAudioDisabledHint,it=D.playerPhase,Bt=D.state.duration$,st=D.state.positionWithScrubbing$,mt=D.state.playbackState$,zt=D.state.isAudioAvailable$,Kt=D.state.isAudioDisabled,De=D.state.isEnded$,re=D.state.isLive$,Q=D.state.muted$,ae=D.state.isActiveLive$,fe=D.state.isRewindableLive$,Te=D.ui.scrubbingInProgress,He=D.ui.mobileNotReportControlHidden$,{isActive$:ct,type$:Nt}=ce.pictureInPicture$,Ke=D.ui.mobileUnmuteButtonExpanded,gt=D.ui.mobileUnmuteButtonVisible,Je=D.ui.settingsMenu.visible$,yt=D.ui.settingsMenu.openedByBtnKeyboard$,jt=D.ui.controls,je=D.actions.internal.getVideoEpisodes(),Ct=D.webApi.pictureInPictureApi,ui=D.state.chromecastState$,si=D.state.crashed$,Ei=jt.disabledControls$,Fi=D.ui.startedByKeyboard$,Ro=D.ui.currentGridType$,wo=D.ads.duration,So=D.ads.position,Bo=D.ads.playbackState,H=D.ui.isFullscreen,We=D.ui.playerSize,ai=D.ui.additionalButtonsDeprecated$,Ui=D.actions.internal.getVideoElement,ii=D.actions.internal.replayInteractive,mi=D.state.isInteractive,ao=D.state.isInteractiveTime$,lo=D.state.showInteractiveGraph,co=D.state.showSeekToInteractive,Wo=D.state.showPlayPrevChapter,Dt=D.state.showInteractiveTimeIndicator,pi=ce.seekToInteractiveDisabledTooltip$,xt=ce.graphIsOpened$,qt=m(()=>F(D.state.playPrevChapterDisabledTooltip)),Wi=m(()=>F(n())),Xt=m(()=>a().has("EPISODE_BUTTON")),Tn=m(()=>a().has("GRAPH_BUTTON")),Co=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Qo=m(()=>a().has("PLAY_BUTTON")),li=m(()=>a().has("REPLAY_BUTTON")),bt=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Qi=m(()=>s()===e1.PLAYING),wi=m(()=>d()==="paused"),fi=m(()=>l()&&!we()&&!mi),In=m(()=>!l()||we()),Gi=m(()=>e.showNextPrevButtons&&!we()&&e.prevButtonActive),zi=m(()=>e.showNextPrevButtons&&!we()&&e.nextButtonActive),Go=m(()=>u().width>300),kn=m(()=>u().width>400),Pi=m(f),un=m(()=>_()!==Jh.NOT_AVAILABLE&&!(p()&&$()===1)&&!w()&&!mi),pn=m(()=>y()==="LiveWaitingStart"),No=m(()=>!!Ct&&_()!==Jh.CONNECTED&&!w()&&($()===1&&r(pn)||!r(pn))&&!r(Pi)&&!mi),fn=m(()=>!r(Pi)&&Hi(S(),"s")),Mr=m(()=>!e.logoHidden&&u().width>350),dr=m(()=>Pe.features.fullscreen&&!(p()&&$()===1)&&(mi?pe():!0)&&!r(Pi)),jn=m(()=>(!I()||we())&&u().width>260&&!r(Pi)&&!(Pe.features.interactiveHideTime&&mi)),En=m(()=>P()||e.showControls),Pn=m(()=>!we()&&!I()&&!!(je!=null&&je.length)&&r(Go)&&!r(Xt)&&!r(Pi)),An=m(()=>!A()||!!E()),uo=m(()=>lo&&Hi(S(),"m")),et=_e({}),Yo=xy(Wc,260);Ze(()=>{u(),T(),Yo(Ui(),jt,et,e.showControls)});let mn=()=>D.actions.internal.toggleChromecast();function cr(){Cs({isAudioDisabled:Kt,audioDisabledHintCallback:ft,isAudioAvailable:R(),audioIsNotExistHintCallback:rt})&&Ge()}function Mn(){return St(this,null,function*(){Ct!=null&&Ct.isActive()?yield Ct==null?void 0:Ct.remove():yield Ct==null?void 0:Ct.request()})}function jo(){!Kt&&R()&&gt.set(!1),cr()}let Zn=te(""),Zo=(ot,ut)=>{if(!ot){O(Zn,_e(F("tooltip_live")));return}ut&&ut===e1.PAUSED&&O(Zn,_e(F("tooltip_play")))};Ze(()=>{Zo(r(An),s())});let vn=le();Ze(()=>{z()&&Fa(z(),P(),yt)}),Ze(()=>{Qc(Fi,j(),et.playButton)});var Ri=Vy(),To=he(Ri);{var gn=ot=>{var ut=Ey(),Si=he(ut);let ji;var Zi=M(Si,2);let ko;var Oo=h(Zi);{var Ho=tt=>{let Ft=m(()=>R()&&!Kt&&ne());Yc(tt,{get muted(){return ee()},get expanded(){return r(Ft)},click:jo,get ref(){return et.volume},set ref(ye){et.volume=ye}})};B(Oo,tt=>{(!R()||X())&&tt(Ho)})}g(Zi);var Eo=M(Zi,2);let Xe;var Mt=h(Eo);yi(Mt,1,ue,({iconUrl:tt,ariaLabel:Ft,testId:ye,onClick:Pt,tooltip:oi})=>tt,(tt,Ft)=>{let ye=()=>r(Ft).iconUrl,Pt=()=>r(Ft).ariaLabel,oi=()=>r(Ft).testId,Zt=()=>r(Ft).onClick,vo=()=>r(Ft).tooltip,Ni=m(()=>{var ni;return(ni=Pt())!=null?ni:vo()});Rf(tt,{get iconUrl(){return ye()},get ariaLabel(){return r(Ni)},get testId(){return oi()},get onClick(){return Zt()}})});var Ai=M(Mt,2);{var Xi=tt=>{fd(tt,{get ref(){return et.autoplayNextToggle},set ref(Ft){et.autoplayNextToggle=Ft}})};B(Ai,tt=>{e.showAutoplayNext&&!Ne()&&tt(Xi)})}var Ci=M(Ai,2);{var Ti=tt=>{od(tt,{isMobile:!0,click:mn,get state(){return _()},get ref(){return et.chromecast},set ref(Ft){et.chromecast=Ft}})};B(Ci,tt=>{r(un)&&tt(Ti)})}var Bi=M(Ci,2);{var en=tt=>{Of(tt,{click:Mn,get isPictureInPictureActive(){return p()},get ref(){return et.pip},set ref(Ft){et.pip=Ft}})};B(Bi,tt=>{r(No)&&tt(en)})}var qi=M(Bi,2);{var hr=tt=>{Wa(tt,{ref$:vn})};B(qi,tt=>{de()&&tt(hr)})}var tn=M(qi,2);{var Rr=tt=>{id(tt,{click:Ae,get targetUrl(){return se()},get logoClickable(){return e.logoClickable},get ref(){return et.vkLogo},set ref(Ft){et.vkLogo=Ft}})};B(tn,tt=>{r(Mr)&&tt(Rr)})}g(Eo);var mo=M(Eo,2);let Br;var Jn=h(mo);{var Nr=tt=>{let Ft=m(()=>xe.bind(null,!0));la(tt,{get click(){return r(Ft)},type:"prev",isMobile:!0,get ref(){return et.prevButton},set ref(ye){et.prevButton=ye}})};B(Jn,tt=>{r(Gi)&&tt(Nr)})}var _r=M(Jn,2);{var hn=tt=>{ja(tt,{get disabled(){return r(Qo)},click:lt,isMobile:!0,get isPlaying(){return r(Qi)},get ref(){return et.playButton},set ref(Ft){et.playButton=Ft}})};B(_r,tt=>{r(In)&&tt(hn)})}var er=M(_r,2);{var br=tt=>{Ya(tt,{get disabled(){return r(li)},click:lt,isMobile:!0,get ref(){return et.replayButton},set ref(Ft){et.replayButton=Ft}})};B(er,tt=>{r(fi)&&tt(br)})}var Hn=M(er,2);{var Po=tt=>{let Ft=m(()=>Me.bind(null,!0));la(tt,{get click(){return r(Ft)},type:"next",isMobile:!0,get ref(){return et.nextButton},set ref(ye){et.nextButton=ye}})};B(Hn,tt=>{r(zi)&&tt(Po)})}g(mo);var tr=M(mo,2);{var $r=tt=>{var Ft=ky(),ye=he(Ft);{var Pt=ni=>{var ci=Cy();let bi;ci.__click=[wy,bt,e,qt];var Ki=h(ci);let Ao=m(()=>!e.showControls);pd(Ki,{get hidden(){return r(Ao)},get disabled(){return r(bt)},get click(){return e.playPrevChapter},get ref(){return et.playPrevChapterButton},set ref(di){et.playPrevChapterButton=di}}),g(ci),k(di=>bi=ie(ci,1,"wrapper-middle-left svelte-1afsgkw",null,bi,di),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(ni,ci)};B(ye,ni=>{Wo&&ni(Pt)})}var oi=M(ye,2);{var Zt=ni=>{var ci=Ty();let bi;var Ki=h(ci);let Ao=m(()=>!e.showControls&&!Ve());vd(Ki,{get hidden(){return r(Ao)},get disabled(){return r(Tn)},get click(){return xt.toggle},get graphIsOpened(){return Ve()},get ref(){return et.interactiveGraphButton},set ref(di){et.interactiveGraphButton=di}}),g(ci),k(di=>bi=ie(ci,1,Pl(Wo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",bi,di),[()=>({fullscreen:U(),hidden:!e.showControls&&!Ve()})]),b(ni,ci)};B(oi,ni=>{r(uo)&&ni(Zt)})}var vo=M(oi,2);{var Ni=ni=>{var ci=Iy();let bi;ci.__click=[Sy,Co,e,Wi];var Ki=h(ci);let Ao=m(()=>!e.showControls);md(Ki,{get hidden(){return r(Ao)},get disabled(){return r(Co)},get click(){return e.seekToInteractive},get ref(){return et.seekToInteractiveButton},set ref(di){et.seekToInteractiveButton=di}}),g(ci),k(di=>bi=ie(ci,1,"wrapper-middle-right svelte-1afsgkw",null,bi,di),[()=>({fullscreen:U(),hidden:!e.showControls})]),b(ni,ci)};B(vo,ni=>{co&&ni(Ni)})}b(tt,Ft)};B(tr,tt=>{mi&&!f()&&tt($r)})}k((tt,Ft,ye,Pt)=>{ji=ie(Si,1,"overlay-mobile svelte-1afsgkw",null,ji,tt),ko=ie(Zi,1,"wrapper-top-left svelte-1afsgkw",null,ko,Ft),Xe=ie(Eo,1,"wrapper-top-right svelte-1afsgkw",null,Xe,ye),Br=ie(mo,1,"wrapper-middle svelte-1afsgkw",null,Br,Pt)},[()=>({hidden:!r(En)}),()=>({hidden:!e.showControls,fullscreen:U()}),()=>({hidden:!e.showControls&&!w(),fullscreen:U()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(ot,ut)};B(To,ot=>{we()||ot(gn)})}var Ln=M(To,2);{var ur=ot=>{var ut=My(),Si=he(ut);{var ji=Xe=>{var Mt=Py();let Ai;var Xi=h(Mt);Yc(Xi,{get muted(){return ee()},expanded:!1,click:jo,get ref(){return et.volume},set ref(Ci){et.volume=Ci}}),g(Mt),k(Ci=>Ai=ie(Mt,1,"wrapper-top-right svelte-1afsgkw",null,Ai,Ci),[()=>({fullscreen:U()})]),b(Xe,Mt)};B(Si,Xe=>{X()&&Xe(ji)})}var Zi=M(Si,2);{var ko=Xe=>{var Mt=Ay(),Ai=h(Mt);let Xi=m(()=>!r(wi));ja(Ai,{get disabled(){return r(Qo)},click:lt,isMobile:!0,get isPlaying(){return r(Xi)},get ref(){return et.playButton},set ref(Ci){et.playButton=Ci}}),g(Mt),b(Xe,Mt)};B(Zi,Xe=>{r(wi)&&Xe(ko)})}var Oo=M(Zi,2);let Ho;var Eo=h(Oo);nd(Eo,{get position(){return Be()},get duration(){return J()}}),g(Oo),k(Xe=>Ho=ie(Oo,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Ho,Xe),[()=>({fullscreen:U()})]),b(ot,ut)};B(Ln,ot=>{we()&&d()!=="inactive"&&ot(ur)})}var po=M(Ln,2);let Do;var Io=h(po);let Vn;var fo=h(Io);ie(fo,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Yi=h(fo);{var Rn=ot=>{Vo(ot,{get disabled(){return r(li)},get ref(){return et.replayButton},set ref(ut){et.replayButton=ut},children:(ut,Si)=>{Ya(ut,{get disabled(){return r(li)},click:ii})},$$slots:{default:!0}})};B(Yi,ot=>{mi&&ot(Rn)})}var Xo=M(Yi,2);{var pr=ot=>{Vo(ot,{get ref(){return et.liveButton},set ref(ut){et.liveButton=ut},children:(ut,Si)=>{gd(ut,{get isLiveActive(){return r(An)},isMobile:!0,get ariaLabel(){return r(Zn)}})},$$slots:{default:!0}})};B(Xo,ot=>{!we()&&I()&&ot(pr)})}var Bn=M(Xo,2);{var fr=ot=>{let ut=m(()=>we()?Be():Le()),Si=m(()=>we()?J():Z());Jl(ot,{get showDuration(){return r(kn)},get position(){return r(ut)},get duration(){return r(Si)},isMobile:!0,get ref(){return et.time},set ref(ji){et.time=ji}})};B(Bn,ot=>{r(jn)&&ot(fr)})}var Nn=M(Bn,2);let Dn=m(()=>!r(Pn));Vo(Nn,{className:"w-max",get disabled(){return r(Dn)},get ref(){return et.episodes},set ref(ot){et.episodes=ot},children:(ot,ut)=>{var Si=ze(),ji=he(Si);{var Zi=ko=>{var Oo=Ly(),Ho=M(he(Oo),2);sd(Ho,{get position(){return Le()},get duration(){return Z()},timeCodes:je}),b(ko,Oo)};B(ji,ko=>{r(Pn)&&ko(Zi)})}b(ot,Si)},$$slots:{default:!0}});var Lr=M(Nn,2);{var Xn=ot=>{Vo(ot,{get ref(){return et.settings},set ref(ut){et.settings=ut},children:(ut,Si)=>{Wa(ut,{ref$:vn})},$$slots:{default:!0}})};B(Lr,ot=>{r(fn)&&ot(Xn)})}var mr=M(Lr,2);{var Vr=ot=>{Vo(ot,{get ref(){return et.fullscreen},set ref(ut){et.fullscreen=ut},children:(ut,Si)=>{td(ut,{get click(){return e.toggleFullscreen},get isFullscreen(){return U()}})},$$slots:{default:!0}})};B(mr,ot=>{r(dr)&&ot(Vr)})}g(fo),dt(fo,ot=>Re(ot),()=>Re());var On=M(fo,2);rd(On,{get isAds(){return we()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return et.timeline},set ref(ot){et.timeline=ot}}),g(Io),g(po),dt(po,ot=>N(ot),()=>N());var Jt=M(po,2);{var Jo=ot=>{cd(ot,{get ref(){return et.interactiveTimeIndicator},set ref(ut){et.interactiveTimeIndicator=ut}})};B(Jt,ot=>{Dt&&ot(Jo)})}k((ot,ut)=>{Do=ie(po,1,"wrapper-bottom svelte-1afsgkw",null,Do,ot),Vn=ie(Io,1,"controls-wrapper svelte-1afsgkw",null,Vn,ut)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:U()})]),b(t,Ri),W(),o()}at(["click"]);function hd(t,e){K(e,!0);let[i,o]=Ue(),n=()=>C(I,"$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),u=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),p=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,t1),y=v(e,"onDisabledSeekToInteractiveClick",3,t1),I=ke().ui.isMobile,P=te(!1);Ht(()=>{let R=setTimeout(()=>O(P,!0),0);return()=>clearTimeout(R)});var A=ze(),E=he(A);{var T=R=>{var z=ze(),j=he(z);{var U=ee=>{Hf(ee,{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 u()},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 p()},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(ne){s(ne)},get playerControlsRef(){return d()},set playerControlsRef(ne){d(ne)}})},X=ee=>{Vf(ee,{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 u()},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 p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(ne){s(ne)},get playerControlsRef(){return d()},set playerControlsRef(ne){d(ne)}})};B(j,ee=>{n()?ee(U):ee(X,!1)})}b(R,z)};B(E,R=>{r(P)&&R(T)})}b(t,A),W(),o()}var By=$e('<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 Ff(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({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 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 Ny=$e('<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 zf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({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 Dy=$e('<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 qf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({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 jc(t,e){let i=v(e,"isOff",3,!1);var o=ze(),n=he(o);{var a=d=>{qf(d,{})},s=d=>{zf(d,{})};B(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Oy=$e('<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 Kf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({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 Wf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Kf(t,{get style(){return r(o)}})}var Hy=$e('<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 Qf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=Ce(o,n,q({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 Gf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Qf(t,{get style(){return r(o)}})}var Fy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Uy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),zy=L("<div><!></div>"),qy={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;
263
+ }`};function Kf(t,e){var vn,Qo;q(e,!0),G(t,Ny);let[i,o]=Ue(),n=()=>C(ui,"$seekToInteractiveDisabledTooltip$",i),a=()=>C(Eo,"$disabledControls$",i),s=()=>C(gt,"$playbackState$",i),d=()=>C(_t,"$adPlaybackState",i),l=()=>C(De,"$isEnded$",i),u=()=>C(Yt,"$playerSize",i),f=()=>C(Ce,"$scrubbingInProgress",i),_=()=>C(ii,"$chromecastState$",i),p=()=>C(ut,"$isPictureInPictureActive",i),$=()=>C(Gt,"$pictureInPictureType$",i),w=()=>C(Oe,"$mobileNotReportControlHidden$",i),y=()=>C(lt,"$playerPhase",i),S=()=>C(Po,"$currentGridType$",i),I=()=>C(se,"$isLive$",i),P=()=>C(Je,"$settingsMenuVisible",i),A=()=>C(_e,"$isRewindableLive$",i),E=()=>C(ae,"$isActiveLive$",i),T=()=>C(ao,"$isInteractiveTime$",i),V=()=>C(Kt,"$isAudioAvailable$",i),U=()=>C(Ki,"$settingButtonRef$",i),j=()=>C(Hi,"$startedByKeyboard$",i),F=()=>C(z,"$isFullscreen",i),Z=()=>C(pt,"$mobileUnmuteButtonVisible",i),J=()=>C(Q,"$muted$",i),ne=()=>C(Ze,"$mobileUnmuteButtonExpanded",i),fe=()=>C(Fi,"$additionalButtons$",i),de=()=>C(Pi,"$crashed$",i),Re=()=>C(wt,"$graphIsOpened$",i),Le=()=>C(Lt,"$adPosition",i),ee=()=>C(zo,"$adDuration",i),Ve=()=>C(st,"$position$",i),X=()=>C(kt,"$duration$",i),B=v(e,"playerControlsWrapperRef",15,void 0),Ne=v(e,"playerControlsRef",15,void 0),re=v(e,"isAds",3,!1),Ee=v(e,"logoTargetUrl",3,""),Be=v(e,"isOneVideoPlaylist",3,!1),me=v(e,"customFullscreenSupported",3,!0),D=Se(),ce=so(),Pe=Qt(),Ye=D.actions.internal.toggleMuted,dt=D.actions.internal.togglePlay,Ae=D.actions.internal.pause,ye=D.actions.internal.prevVideoClick,Me=D.actions.internal.nextVideoClick,rt=(vn=D.callbacks)==null?void 0:vn.onAudioDoesNotExistHint,vt=(Qo=D.callbacks)==null?void 0:Qo.onAudioDisabledHint,lt=D.playerPhase,kt=D.state.duration$,st=D.state.positionWithScrubbing$,gt=D.state.playbackState$,Kt=D.state.isAudioAvailable$,jt=D.state.isAudioDisabled,De=D.state.isEnded$,se=D.state.isLive$,Q=D.state.muted$,ae=D.state.isActiveLive$,_e=D.state.isRewindableLive$,Ce=D.ui.scrubbingInProgress,Oe=D.ui.mobileNotReportControlHidden$,{isActive$:ut,type$:Gt}=ce.pictureInPicture$,Ze=D.ui.mobileUnmuteButtonExpanded,pt=D.ui.mobileUnmuteButtonVisible,Je=D.ui.settingsMenu.visible$,Pt=D.ui.settingsMenu.openedByBtnKeyboard$,ai=D.ui.controls,Ge=D.actions.internal.getVideoEpisodes(),ot=D.webApi.pictureInPictureApi,ii=D.state.chromecastState$,Pi=D.state.crashed$,Eo=ai.disabledControls$,Hi=D.ui.startedByKeyboard$,Po=D.ui.currentGridType$,zo=D.ads.duration,Lt=D.ads.position,_t=D.ads.playbackState,z=D.ui.isFullscreen,Yt=D.ui.playerSize,Fi=D.ui.additionalButtonsDeprecated$,Li=D.actions.internal.getVideoElement,hi=D.actions.internal.replayInteractive,oi=D.state.isInteractive,ao=D.state.isInteractiveTime$,ho=D.state.showInteractiveGraph,Ui=D.state.showSeekToInteractive,qo=D.state.showPlayPrevChapter,Ht=D.state.showInteractiveTimeIndicator,ui=ce.seekToInteractiveDisabledTooltip$,wt=ce.graphIsOpened$,Wt=m(()=>H(D.state.playPrevChapterDisabledTooltip)),Ao=m(()=>H(n())),zi=m(()=>a().has("EPISODE_BUTTON")),ci=m(()=>a().has("GRAPH_BUTTON")),_o=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ko=m(()=>a().has("PLAY_BUTTON")),li=m(()=>a().has("REPLAY_BUTTON")),yt=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),_i=m(()=>s()===o1.PLAYING),qi=m(()=>d()==="paused"),Vi=m(()=>l()&&!re()&&!oi),bo=m(()=>!l()||re()),Si=m(()=>e.showNextPrevButtons&&!re()&&e.prevButtonActive),$o=m(()=>e.showNextPrevButtons&&!re()&&e.nextButtonActive),Tn=m(()=>u().width>300),an=m(()=>u().width>400),Ci=m(f),In=m(()=>_()!==i1.NOT_AVAILABLE&&!(p()&&$()===1)&&!w()&&!oi),ln=m(()=>y()==="LiveWaitingStart"),Mo=m(()=>!!ot&&_()!==i1.CONNECTED&&!w()&&($()===1&&r(ln)||!r(ln))&&!r(Ci)&&!oi),kn=m(()=>!r(Ci)&&Oi(S(),"s")),lr=m(()=>!e.logoHidden&&u().width>350),dr=m(()=>Pe.features.fullscreen&&!(p()&&$()===1)&&(oi?me():!0)&&!r(Ci)),Hn=m(()=>(!I()||re())&&u().width>260&&!r(Ci)&&!(Pe.features.interactiveHideTime&&oi)),Fn=m(()=>P()||e.showControls),dn=m(()=>!re()&&!I()&&!!(Ge!=null&&Ge.length)&&r(Tn)&&!r(zi)&&!r(Ci)),cn=m(()=>!A()||!!E()),cr=m(()=>ho&&Oi(S(),"m")),it=ve({}),ji=wy(Zc,260);We(()=>{u(),T(),ji(Li(),ai,it,e.showControls)});let ur=()=>D.actions.internal.toggleChromecast();function Un(){Ts({isAudioDisabled:jt,audioDisabledHintCallback:vt,isAudioAvailable:V(),audioIsNotExistHintCallback:rt})&&Ye()}function un(){return Ct(this,null,function*(){ot!=null&&ot.isActive()?yield ot==null?void 0:ot.remove():yield ot==null?void 0:ot.request()})}function pn(){!jt&&V()&&pt.set(!1),Un()}let Lo=te(""),yo=(nt,At)=>{if(!nt){O(Lo,ve(H("tooltip_live")));return}At&&At===o1.PAUSED&&O(Lo,ve(H("tooltip_play")))};We(()=>{yo(r(cn),s())});let Ki=le();We(()=>{U()&&za(U(),P(),Pt)}),We(()=>{Xc(Hi,j(),it.playButton)});var Zi=Ry(),zn=pe(Zi);{var qn=nt=>{var At=Py(),Ti=pe(At);let ni;var Xi=M(Ti,2);let So;var Co=h(Xi);{var Go=Xe=>{let Ft=m(()=>V()&&!jt&&ne());eu(Xe,{get muted(){return J()},get expanded(){return r(Ft)},click:pn,get ref(){return it.volume},set ref($i){it.volume=$i}})};R(Co,Xe=>{(!V()||Z())&&Xe(Go)})}g(Xi);var Yo=M(Xi,2);let et;var Vt=h(Yo);yi(Vt,1,fe,({iconUrl:Xe,ariaLabel:Ft,testId:$i,onClick:hn,tooltip:_n})=>Xe,(Xe,Ft)=>{let $i=()=>r(Ft).iconUrl,hn=()=>r(Ft).ariaLabel,_n=()=>r(Ft).testId,Pn=()=>r(Ft).onClick,er=()=>r(Ft).tooltip,Te=m(()=>{var ft;return(ft=hn())!=null?ft:er()});Hf(Xe,{get iconUrl(){return $i()},get ariaLabel(){return r(Te)},get testId(){return _n()},get onClick(){return Pn()}})});var di=M(Vt,2);{var Qi=Xe=>{fd(Xe,{get ref(){return it.autoplayNextToggle},set ref(Ft){it.autoplayNextToggle=Ft}})};R(di,Xe=>{e.showAutoplayNext&&!Be()&&Xe(Qi)})}var Ii=M(di,2);{var Ri=Xe=>{od(Xe,{isMobile:!0,click:ur,get state(){return _()},get ref(){return it.chromecast},set ref(Ft){it.chromecast=Ft}})};R(Ii,Xe=>{r(In)&&Xe(Ri)})}var Gi=M(Ii,2);{var To=Xe=>{qf(Xe,{click:un,get isPictureInPictureActive(){return p()},get ref(){return it.pip},set ref(Ft){it.pip=Ft}})};R(Gi,Xe=>{r(Mo)&&Xe(To)})}var Ni=M(Gi,2);{var gr=Xe=>{Ga(Xe,{ref$:Ki})};R(Ni,Xe=>{de()&&Xe(gr)})}var jo=M(Ni,2);{var Lr=Xe=>{id(Xe,{click:Ae,get targetUrl(){return Ee()},get logoClickable(){return e.logoClickable},get ref(){return it.vkLogo},set ref(Ft){it.vkLogo=Ft}})};R(jo,Xe=>{r(lr)&&Xe(Lr)})}g(Yo);var co=M(Yo,2);let Vr;var Xn=h(co);{var Wr=Xe=>{let Ft=m(()=>ye.bind(null,!0));ca(Xe,{get click(){return r(Ft)},type:"prev",isMobile:!0,get ref(){return it.prevButton},set ref($i){it.prevButton=$i}})};R(Xn,Xe=>{r(Si)&&Xe(Wr)})}var hr=M(Xn,2);{var Rr=Xe=>{Xa(Xe,{get disabled(){return r(Ko)},click:dt,isMobile:!0,get isPlaying(){return r(_i)},get ref(){return it.playButton},set ref(Ft){it.playButton=Ft}})};R(hr,Xe=>{r(bo)&&Xe(Rr)})}var _r=M(hr,2);{var Ro=Xe=>{Za(Xe,{get disabled(){return r(li)},click:dt,isMobile:!0,get ref(){return it.replayButton},set ref(Ft){it.replayButton=Ft}})};R(_r,Xe=>{r(Vi)&&Xe(Ro)})}var gn=M(_r,2);{var Qr=Xe=>{let Ft=m(()=>Me.bind(null,!0));ca(Xe,{get click(){return r(Ft)},type:"next",isMobile:!0,get ref(){return it.nextButton},set ref($i){it.nextButton=$i}})};R(gn,Xe=>{r($o)&&Xe(Qr)})}g(co);var br=M(co,2);{var Jn=Xe=>{var Ft=Ey(),$i=pe(Ft);{var hn=ft=>{var Rt=Ty();let zt;Rt.__click=[Sy,yt,e,Wt];var Yi=h(Rt);let pi=m(()=>!e.showControls);pd(Yi,{get hidden(){return r(pi)},get disabled(){return r(yt)},get click(){return e.playPrevChapter},get ref(){return it.playPrevChapterButton},set ref(Zt){it.playPrevChapterButton=Zt}}),g(Rt),k(Zt=>zt=ie(Rt,1,"wrapper-middle-left svelte-1afsgkw",null,zt,Zt),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(ft,Rt)};R($i,ft=>{qo&&ft(hn)})}var _n=M($i,2);{var Pn=ft=>{var Rt=Iy();let zt;var Yi=h(Rt);let pi=m(()=>!e.showControls&&!Re());vd(Yi,{get hidden(){return r(pi)},get disabled(){return r(ci)},get click(){return wt.toggle},get graphIsOpened(){return Re()},get ref(){return it.interactiveGraphButton},set ref(Zt){it.interactiveGraphButton=Zt}}),g(Rt),k(Zt=>zt=ie(Rt,1,Pl(qo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",zt,Zt),[()=>({fullscreen:F(),hidden:!e.showControls&&!Re()})]),b(ft,Rt)};R(_n,ft=>{r(cr)&&ft(Pn)})}var er=M(_n,2);{var Te=ft=>{var Rt=ky();let zt;Rt.__click=[Cy,_o,e,Ao];var Yi=h(Rt);let pi=m(()=>!e.showControls);md(Yi,{get hidden(){return r(pi)},get disabled(){return r(_o)},get click(){return e.seekToInteractive},get ref(){return it.seekToInteractiveButton},set ref(Zt){it.seekToInteractiveButton=Zt}}),g(Rt),k(Zt=>zt=ie(Rt,1,"wrapper-middle-right svelte-1afsgkw",null,zt,Zt),[()=>({fullscreen:F(),hidden:!e.showControls})]),b(ft,Rt)};R(er,ft=>{Ui&&ft(Te)})}b(Xe,Ft)};R(br,Xe=>{oi&&!f()&&Xe(Jn)})}k((Xe,Ft,$i,hn)=>{ni=ie(Ti,1,"overlay-mobile svelte-1afsgkw",null,ni,Xe),So=ie(Xi,1,"wrapper-top-left svelte-1afsgkw",null,So,Ft),et=ie(Yo,1,"wrapper-top-right svelte-1afsgkw",null,et,$i),Vr=ie(co,1,"wrapper-middle svelte-1afsgkw",null,Vr,hn)},[()=>({hidden:!r(Fn)}),()=>({hidden:!e.showControls,fullscreen:F()}),()=>({hidden:!e.showControls&&!w(),fullscreen:F()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(nt,At)};R(zn,nt=>{re()||nt(qn)})}var Mr=M(zn,2);{var Kn=nt=>{var At=Ly(),Ti=pe(At);{var ni=et=>{var Vt=Ay();let di;var Qi=h(Vt);eu(Qi,{get muted(){return J()},expanded:!1,click:pn,get ref(){return it.volume},set ref(Ii){it.volume=Ii}}),g(Vt),k(Ii=>di=ie(Vt,1,"wrapper-top-right svelte-1afsgkw",null,di,Ii),[()=>({fullscreen:F()})]),b(et,Vt)};R(Ti,et=>{Z()&&et(ni)})}var Xi=M(Ti,2);{var So=et=>{var Vt=My(),di=h(Vt);let Qi=m(()=>!r(qi));Xa(di,{get disabled(){return r(Ko)},click:dt,isMobile:!0,get isPlaying(){return r(Qi)},get ref(){return it.playButton},set ref(Ii){it.playButton=Ii}}),g(Vt),b(et,Vt)};R(Xi,et=>{r(qi)&&et(So)})}var Co=M(Xi,2);let Go;var Yo=h(Co);nd(Yo,{get position(){return Le()},get duration(){return ee()}}),g(Co),k(et=>Go=ie(Co,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,Go,et),[()=>({fullscreen:F()})]),b(nt,At)};R(Mr,nt=>{re()&&d()!=="inactive"&&nt(Kn)})}var lo=M(Mr,2);let xo;var fn=h(lo);let En;var Vo=h(fn);ie(Vo,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Wi=h(Vo);{var Wo=nt=>{ko(nt,{get disabled(){return r(li)},get ref(){return it.replayButton},set ref(At){it.replayButton=At},children:(At,Ti)=>{Za(At,{get disabled(){return r(li)},click:hi})},$$slots:{default:!0}})};R(Wi,nt=>{oi&&nt(Wo)})}var wo=M(Wi,2);{var pr=nt=>{ko(nt,{get ref(){return it.liveButton},set ref(At){it.liveButton=At},children:(At,Ti)=>{gd(At,{get isLiveActive(){return r(cn)},isMobile:!0,get ariaLabel(){return r(Lo)}})},$$slots:{default:!0}})};R(wo,nt=>{!re()&&I()&&nt(pr)})}var mn=M(wo,2);{var Wn=nt=>{let At=m(()=>re()?Le():Ve()),Ti=m(()=>re()?ee():X());Jl(nt,{get showDuration(){return r(an)},get position(){return r(At)},get duration(){return r(Ti)},isMobile:!0,get ref(){return it.time},set ref(ni){it.time=ni}})};R(mn,nt=>{r(Hn)&&nt(Wn)})}var Qn=M(mn,2);let Gn=m(()=>!r(dn));ko(Qn,{className:"w-max",get disabled(){return r(Gn)},get ref(){return it.episodes},set ref(nt){it.episodes=nt},children:(nt,At)=>{var Ti=Ke(),ni=pe(Ti);{var Xi=So=>{var Co=Vy(),Go=M(pe(Co),2);sd(Go,{get position(){return Ve()},get duration(){return X()},timeCodes:Ge}),b(So,Co)};R(ni,So=>{r(dn)&&So(Xi)})}b(nt,Ti)},$$slots:{default:!0}});var fr=M(Qn,2);{var Yn=nt=>{ko(nt,{get ref(){return it.settings},set ref(At){it.settings=At},children:(At,Ti)=>{Ga(At,{ref$:Ki})},$$slots:{default:!0}})};R(fr,nt=>{r(kn)&&nt(Yn)})}var mr=M(fr,2);{var jn=nt=>{ko(nt,{get ref(){return it.fullscreen},set ref(At){it.fullscreen=At},children:(At,Ti)=>{td(At,{get click(){return e.toggleFullscreen},get isFullscreen(){return F()}})},$$slots:{default:!0}})};R(mr,nt=>{r(dr)&&nt(jn)})}g(Vo),ct(Vo,nt=>Ne(nt),()=>Ne());var Zn=M(Vo,2);rd(Zn,{get isAds(){return re()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return it.timeline},set ref(nt){it.timeline=nt}}),g(fn),g(lo),ct(lo,nt=>B(nt),()=>B());var si=M(lo,2);{var vr=nt=>{cd(nt,{get ref(){return it.interactiveTimeIndicator},set ref(At){it.interactiveTimeIndicator=At}})};R(si,nt=>{Ht&&nt(vr)})}k((nt,At)=>{xo=ie(lo,1,"wrapper-bottom svelte-1afsgkw",null,xo,nt),En=ie(fn,1,"controls-wrapper svelte-1afsgkw",null,En,At)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:F()})]),b(t,Zi),K(),o()}at(["click"]);function hd(t,e){q(e,!0);let[i,o]=Ue(),n=()=>C(I,"$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),u=v(e,"logoTargetUrl",3,""),f=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),p=v(e,"customFullscreenSupported",3,!0),$=v(e,"endScreenShown",3,!1),w=v(e,"onDisabledPlayPrevChapterClick",3,n1),y=v(e,"onDisabledSeekToInteractiveClick",3,n1),I=Se().ui.isMobile,P=te(!1);Ut(()=>{let V=setTimeout(()=>O(P,!0),0);return()=>clearTimeout(V)});var A=Ke(),E=pe(A);{var T=V=>{var U=Ke(),j=pe(U);{var F=J=>{Kf(J,{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 u()},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 p()},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(ne){s(ne)},get playerControlsRef(){return d()},set playerControlsRef(ne){d(ne)}})},Z=J=>{Of(J,{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 u()},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 p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(ne){s(ne)},get playerControlsRef(){return d()},set playerControlsRef(ne){d(ne)}})};R(j,J=>{n()?J(F):J(Z,!1)})}b(V,U)};R(E,V=>{r(P)&&V(T)})}b(t,A),K(),o()}var By=$e('<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 Wf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=By();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({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 Qf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Wf(t,{get style(){return r(o)}})}var Dy=$e('<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 Gf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Dy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({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 Oy=$e('<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 Yf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Oy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({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 tu(t,e){let i=v(e,"isOff",3,!1);var o=Ke(),n=pe(o);{var a=d=>{Yf(d,{})},s=d=>{Gf(d,{})};R(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Hy=$e('<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 jf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Hy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({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 Zf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);jf(t,{get style(){return r(o)}})}var Fy=$e('<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 Xf(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(2),g(o),k(()=>n=we(o,n,W({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 Jf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Xf(t,{get style(){return r(o)}})}var Uy=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),zy=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),qy=L("<div><!></div>"),Ky={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
264
264
  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
265
  .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
266
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -275,21 +275,21 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
275
275
  @keyframes svelte-1ad3n06-fadeOut {
276
276
  0% {opacity:1;}
277
277
  100% {opacity:0;}
278
- }`};function Yf(t,e){K(e,!0),G(t,qy);let[i,o]=Ue(),n=()=>C(e.data,"$data",i),s=ke().ui.t,d=m(()=>!n()),l=m(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),u=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,I;return(S=n())!=null&&S.t?s(n().t.key,{value:n().t.value||""}):(I=n())==null?void 0:I.text});var p=zy();let $;var w=h(p);{var y=S=>{var I=Uy(),P=he(I),A=h(P);{var E=pe=>{let D=m(()=>r(f)==="FORWARD_SEEK");Uf(pe,{get reversed(){return r(D)}})};B(A,pe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&pe(E)})}var T=M(A,2);{var R=pe=>{da(pe,{})};B(T,pe=>{r(f)==="PAUSE"&&pe(R)})}var z=M(T,2);{var j=pe=>{ds(pe,{})};B(z,pe=>{r(f)==="PLAY"&&pe(j)})}var U=M(z,2);{var X=pe=>{ud(pe,{})};B(U,pe=>{r(f)==="REPLAY"&&pe(X)})}var ee=M(U,2);{var ne=pe=>{jc(pe,{isOff:!0})};B(ee,pe=>{r(f)==="SUBTITLES_OFF"&&pe(ne)})}var ue=M(ee,2);{var de=pe=>{jc(pe,{})};B(ue,pe=>{r(f)==="SUBTITLES_ON"&&pe(de)})}var Ve=M(ue,2);{var Be=pe=>{let D=m(()=>r(f)==="RATE_UP");Wf(pe,{get reversed(){return r(D)}})};B(Ve,pe=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&pe(Be)})}var J=M(Ve,2);{var Le=pe=>{let D=m(()=>r(f)==="EPISODE_NEXT");Gf(pe,{get reversed(){return r(D)}})};B(J,pe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&pe(Le)})}var Z=M(J,2);{var N=pe=>{Ts(pe,{volume:0})};B(Z,pe=>{r(f)==="MUTE"&&pe(N)})}var Re=M(Z,2);{var we=pe=>{Ts(pe,{volume:1})};B(Re,pe=>{r(f)==="VOLUME"&&pe(we)})}g(P);var se=M(P,2);{var Ne=pe=>{var D=Fy(),ce=h(D,!0);g(D),k(()=>me(ce,r(_))),b(pe,D)};B(se,pe=>{r(_)&&pe(Ne)})}b(S,I)};B(w,S=>{!r(d)&&r(f)&&S(y)})}g(p),k(S=>$=ie(p,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(u)})]),b(t,p),W(),o()}var Ky=$e('<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 jf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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=$e('<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 Zf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 ks(t,e){K(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=ze(),l=he(d);{var u=_=>{let p=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");jf(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})},f=_=>{let p=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Zf(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})};B(l,_=>{r(n)?_(u):_(f,!1)})}b(t,d),W()}var Qy=(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}},Gy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Yy=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){K(e,!0),G(t,jy);let i=v(e,"isShifted",3,!1),o=ke(),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)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var _=Yy();let p;_.__keydown=[Qy,n,a,s,l,d],_.__keyup=[Gy,n,u],Oe(_,"aria-label",f);var $=h(_),w=h($),y=h(w);y.__mousedown=a,y.__mouseup=u;var S=h(y);ks(S,{direction:"up",useBtnColor:!0}),g(y);var I=M(y,2);I.__mousedown=d,I.__mouseup=u;var P=h(I);ks(P,{direction:"up",useBtnColor:!0}),g(I),g(w);var A=M(w,2),E=h(A);E.__mousedown=l,E.__mouseup=u;var T=h(E);ks(T,{direction:"up",useBtnColor:!0}),g(E);var R=M(E,2);R.__mousedown=s,R.__mouseup=u;var z=h(R);ks(z,{direction:"up",useBtnColor:!0}),g(R),g(A),g($),g(_),k(j=>p=ie(_,1,"immersive-controls svelte-1yzc86r",null,p,j),[()=>({"m-shifted":i()})]),kt("mouseleave",y,u),kt("mouseleave",I,u),kt("mouseleave",E,u),kt("mouseleave",R,u),b(t,_),W()}at(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as o1,Subscription as Zy,filterChanged as Xy,filter as Jy}from"@vkontakte/videoplayer-shared/es2015";var i1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Zc=class{constructor(){this.flickeringTimeout=i1(1e3);this.subscriptions=new Zy;this.isAuto=!1;this.isLive=!1;this.captions$=new o1([]);this.captionsPrepared$=new o1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(Jy(()=>this.isEnabled()),Xy()).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 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('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),o4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),n4=L("<div><!></div>"),r4={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 bd(t,e){K(e,!0),G(t,r4);let[i,o]=Ue(),n=()=>C(_,"$currentSubtitle$",i),a=()=>C($,"$isLive$",i),s=()=>C(w,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),u=ke(),f=Wt(),_=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,$=u.state.isLive$,w=u.ui.isFullscreen,y=m(()=>!!n().isAuto),S=m(()=>!!a()),I=m(()=>e.playerSize.width*.02),P=m(()=>l()&&!s()||r(I)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(I)),A=te(null);Ze(()=>{var X,ee,ne;(X=r(A))==null||X.setIsAuto(r(y)),(ee=r(A))==null||ee.setIsLive(r(S)),(ne=r(A))==null||ne.setCaptions(e.captions)});let E=te(_e([[]]));Ht(()=>{O(A,_e(new Zc().subscribe()));let X=r(A).captionsPrepared$.subscribe(ee=>{O(E,_e(ee))});return()=>{var ee;(ee=r(A))==null||ee.destroy(),X.unsubscribe()}}),Ht(()=>{if(r(y)){let X=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else p.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=n4();let z;var j=h(R);{var U=X=>{var ee=o4();let ne;var ue=h(ee),de=h(ue);{var Ve=J=>{var Le=e4(),Z=h(Le),N=h(Z,!0);g(Z),g(Le),k(Re=>{var we;nt(Z,`font-size: ${(we=r(P))!=null?we:""}px`),me(N,Re)},[()=>F("subtitles_auto_caption")]),b(J,Le)},Be=(J,Le)=>{{var Z=Re=>{var we=ze(),se=he(we);yi(se,17,()=>r(E),Il,(Ne,pe)=>{var D=t4(),ce=h(D);yi(ce,21,()=>r(pe),({value:Pe,timeAppeared:Ge})=>Ge,(Pe,Ge)=>{let lt=()=>r(Ge).value,Ae=()=>r(Ge).timeAppeared;var xe=ze(),Me=he(xe);{var rt=ft=>{var it=nr();k(()=>me(it,lt())),b(ft,it)};B(Me,ft=>{(!Ae()||Ae()<=e.position)&&ft(rt)})}b(Pe,xe)}),g(ce),g(D),k(()=>{var Pe;return nt(ce,`font-size: ${(Pe=r(P))!=null?Pe:""}px`)}),b(Ne,D)}),b(Re,we)},N=Re=>{var we=ze(),se=he(we);yi(se,17,()=>e.captions,({value:Ne})=>Ne,(Ne,pe)=>{let D=()=>r(pe).value;var ce=i4(),Pe=h(ce),Ge=h(Pe,!0);g(Pe),g(ce),k(()=>{var lt;nt(Pe,`font-size: ${(lt=r(P))!=null?lt:""}px`),me(Ge,D())}),b(Ne,ce)}),b(Re,we)};B(J,Re=>{var we;r(y)&&((we=r(E))!=null&&we.length)?Re(Z):Re(N,!1)},Le)}};B(de,J=>{r(y)&&d()?J(Ve):J(Be,!1)})}g(ue),g(ee),k(J=>{var Le;ne=ie(ee,1,"subtitles-caption svelte-c2x749",null,ne,J),nt(ee,`--subtitles-caption-margin: ${(Le=r(T))!=null?Le:""}%`)},[()=>({mobile:l()})]),b(X,ee)};B(j,X=>{var ee;(e.captions.length||(ee=r(E))!=null&&ee.length)&&X(U)})}g(R),k(X=>z=ie(R,1,"subtitles-container svelte-c2x749",null,z,X),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),b(t,R),W(),o()}var s4=L('<div class="text svelte-raurnb"> </div>'),a4=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>'),l4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function $d(t,e){K(e,!0),G(t,l4);let i=Wt();var o=a4();let n;var a=M(h(o),2);{var s=d=>{var l=s4(),u=h(l);g(l),k(()=>{var f;return me(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,l)};B(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=ie(o,1,"wrapper svelte-raurnb",null,n,d),nt(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 d4=$e('<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 Xf(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=d4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 c4=L('<div class="container svelte-13zpvm8"><!></div>'),u4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function yd(t){G(t,u4);var e=c4(),i=h(e);Xf(i,{}),g(e),b(t,e)}var p4=L('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),f4={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 xd(t,e){K(e,!0),G(t,f4);let i=ke(),o=Wt(),n=i.ui.startedByKeyboard$,a=F("tooltip_play"),s=p=>{let $=p.code;["Enter","Space"].includes($)&&(p.stopPropagation(),p.preventDefault(),n.set(!0),e.startVideo())},d=p=>{p.stopPropagation(),e.startVideo()};var l=p4();let u;l.__click=d;var f=h(l);f.__keydown=s,Oe(f,"aria-label",a);var _=M(h(f),2);return ds(_,{}),g(f),g(l),k(p=>{u=ie(l,1,"container svelte-1xnh9dd",null,u,p),nt(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:o.features.previewNoEmptySpace})]),b(t,l),W({handlePressKey:s,handleClick:d})}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(
278
+ }`};function em(t,e){q(e,!0),G(t,Ky);let[i,o]=Ue(),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"}),u=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,I;return(S=n())!=null&&S.t?s(n().t.key,{value:n().t.value||""}):(I=n())==null?void 0:I.text});var p=qy();let $;var w=h(p);{var y=S=>{var I=zy(),P=pe(I),A=h(P);{var E=me=>{let D=m(()=>r(f)==="FORWARD_SEEK");Qf(me,{get reversed(){return r(D)}})};R(A,me=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&me(E)})}var T=M(A,2);{var V=me=>{ds(me,{})};R(T,me=>{r(f)==="PAUSE"&&me(V)})}var U=M(T,2);{var j=me=>{Pr(me,{})};R(U,me=>{r(f)==="PLAY"&&me(j)})}var F=M(U,2);{var Z=me=>{ud(me,{})};R(F,me=>{r(f)==="REPLAY"&&me(Z)})}var J=M(F,2);{var ne=me=>{tu(me,{isOff:!0})};R(J,me=>{r(f)==="SUBTITLES_OFF"&&me(ne)})}var fe=M(J,2);{var de=me=>{tu(me,{})};R(fe,me=>{r(f)==="SUBTITLES_ON"&&me(de)})}var Re=M(fe,2);{var Le=me=>{let D=m(()=>r(f)==="RATE_UP");Zf(me,{get reversed(){return r(D)}})};R(Re,me=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&me(Le)})}var ee=M(Re,2);{var Ve=me=>{let D=m(()=>r(f)==="EPISODE_NEXT");Jf(me,{get reversed(){return r(D)}})};R(ee,me=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&me(Ve)})}var X=M(ee,2);{var B=me=>{Is(me,{volume:0})};R(X,me=>{r(f)==="MUTE"&&me(B)})}var Ne=M(X,2);{var re=me=>{Is(me,{volume:1})};R(Ne,me=>{r(f)==="VOLUME"&&me(re)})}g(P);var Ee=M(P,2);{var Be=me=>{var D=Uy(),ce=h(D,!0);g(D),k(()=>ge(ce,r(_))),b(me,D)};R(Ee,me=>{r(_)&&me(Be)})}b(S,I)};R(w,S=>{!r(d)&&r(f)&&S(y)})}g(p),k(S=>$=ie(p,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(u)})]),b(t,p),K(),o()}var Wy=$e('<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 tm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i))),b(t,o)}var Qy=$e('<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 im(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 Ps(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=Ke(),l=pe(d);{var u=_=>{let p=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");tm(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})},f=_=>{let p=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");im(_,{get style(){return r(s)},get"data-testid"(){return r(p)}})};R(l,_=>{r(n)?_(u):_(f,!1)})}b(t,d),K()}var Gy=(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}},Yy=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},jy=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>'),Zy={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){q(e,!0),G(t,Zy);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)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=H("aria_label_spherical_control");var _=jy();let p;_.__keydown=[Gy,n,a,s,l,d],_.__keyup=[Yy,n,u],He(_,"aria-label",f);var $=h(_),w=h($),y=h(w);y.__mousedown=a,y.__mouseup=u;var S=h(y);Ps(S,{direction:"up",useBtnColor:!0}),g(y);var I=M(y,2);I.__mousedown=d,I.__mouseup=u;var P=h(I);Ps(P,{direction:"up",useBtnColor:!0}),g(I),g(w);var A=M(w,2),E=h(A);E.__mousedown=l,E.__mouseup=u;var T=h(E);Ps(T,{direction:"up",useBtnColor:!0}),g(E);var V=M(E,2);V.__mousedown=s,V.__mouseup=u;var U=h(V);Ps(U,{direction:"up",useBtnColor:!0}),g(V),g(A),g($),g(_),k(j=>p=ie(_,1,"immersive-controls svelte-1yzc86r",null,p,j),[()=>({"m-shifted":i()})]),Et("mouseleave",y,u),Et("mouseleave",I,u),Et("mouseleave",E,u),Et("mouseleave",V,u),b(t,_),K()}at(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as s1,Subscription as Xy,filterChanged as Jy,filter as e4}from"@vkontakte/videoplayer-shared/es2015";var r1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var iu=class{constructor(){this.flickeringTimeout=r1(1e3);this.subscriptions=new Xy;this.isAuto=!1;this.isLive=!1;this.captions$=new s1([]);this.captionsPrepared$=new s1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(e4(()=>this.isEnabled()),Jy()).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 t4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),i4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),o4=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),n4=L('<div><span class="caption svelte-c2x749"><!></span></div>'),r4=L("<div><!></div>"),s4={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 bd(t,e){q(e,!0),G(t,s4);let[i,o]=Ue(),n=()=>C(_,"$currentSubtitle$",i),a=()=>C($,"$isLive$",i),s=()=>C(w,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),u=Se(),f=Qt(),_=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,$=u.state.isLive$,w=u.ui.isFullscreen,y=m(()=>!!n().isAuto),S=m(()=>!!a()),I=m(()=>e.playerSize.width*.02),P=m(()=>l()&&!s()||r(I)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(I)),A=te(null);We(()=>{var Z,J,ne;(Z=r(A))==null||Z.setIsAuto(r(y)),(J=r(A))==null||J.setIsLive(r(S)),(ne=r(A))==null||ne.setCaptions(e.captions)});let E=te(ve([[]]));Ut(()=>{O(A,ve(new iu().subscribe()));let Z=r(A).captionsPrepared$.subscribe(J=>{O(E,ve(J))});return()=>{var J;(J=r(A))==null||J.destroy(),Z.unsubscribe()}}),Ut(()=>{if(r(y)){let Z=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else p.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=r4();let U;var j=h(V);{var F=Z=>{var J=n4();let ne;var fe=h(J),de=h(fe);{var Re=ee=>{var Ve=t4(),X=h(Ve),B=h(X,!0);g(X),g(Ve),k(Ne=>{var re;tt(X,`font-size: ${(re=r(P))!=null?re:""}px`),ge(B,Ne)},[()=>H("subtitles_auto_caption")]),b(ee,Ve)},Le=(ee,Ve)=>{{var X=Ne=>{var re=Ke(),Ee=pe(re);yi(Ee,17,()=>r(E),Il,(Be,me)=>{var D=i4(),ce=h(D);yi(ce,21,()=>r(me),({value:Pe,timeAppeared:Ye})=>Ye,(Pe,Ye)=>{let dt=()=>r(Ye).value,Ae=()=>r(Ye).timeAppeared;var ye=Ke(),Me=pe(ye);{var rt=vt=>{var lt=or();k(()=>ge(lt,dt())),b(vt,lt)};R(Me,vt=>{(!Ae()||Ae()<=e.position)&&vt(rt)})}b(Pe,ye)}),g(ce),g(D),k(()=>{var Pe;return tt(ce,`font-size: ${(Pe=r(P))!=null?Pe:""}px`)}),b(Be,D)}),b(Ne,re)},B=Ne=>{var re=Ke(),Ee=pe(re);yi(Ee,17,()=>e.captions,({value:Be})=>Be,(Be,me)=>{let D=()=>r(me).value;var ce=o4(),Pe=h(ce),Ye=h(Pe,!0);g(Pe),g(ce),k(()=>{var dt;tt(Pe,`font-size: ${(dt=r(P))!=null?dt:""}px`),ge(Ye,D())}),b(Be,ce)}),b(Ne,re)};R(ee,Ne=>{var re;r(y)&&((re=r(E))!=null&&re.length)?Ne(X):Ne(B,!1)},Ve)}};R(de,ee=>{r(y)&&d()?ee(Re):ee(Le,!1)})}g(fe),g(J),k(ee=>{var Ve;ne=ie(J,1,"subtitles-caption svelte-c2x749",null,ne,ee),tt(J,`--subtitles-caption-margin: ${(Ve=r(T))!=null?Ve:""}%`)},[()=>({mobile:l()})]),b(Z,J)};R(j,Z=>{var J;(e.captions.length||(J=r(E))!=null&&J.length)&&Z(F)})}g(V),k(Z=>U=ie(V,1,"subtitles-container svelte-c2x749",null,U,Z),[()=>({shifted:e.shifted,auto:r(y)&&!r(S)&&!d()})]),b(t,V),K(),o()}var a4=L('<div class="text svelte-raurnb"> </div>'),l4=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>'),d4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function $d(t,e){q(e,!0),G(t,d4);let i=Qt();var o=l4();let n;var a=M(h(o),2);{var s=d=>{var l=a4(),u=h(l);g(l),k(()=>{var f;return ge(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,l)};R(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),k(d=>{n=ie(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),K()}var c4=$e('<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 om(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=c4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 u4=L('<div class="container svelte-13zpvm8"><!></div>'),p4={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function yd(t){G(t,p4);var e=u4(),i=h(e);om(i,{}),g(e),b(t,e)}var f4=L('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),m4={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 xd(t,e){q(e,!0),G(t,m4);let i=Se(),o=Qt(),n=i.ui.startedByKeyboard$,a=H("tooltip_play"),s=p=>{let $=p.code;["Enter","Space"].includes($)&&(p.stopPropagation(),p.preventDefault(),n.set(!0),e.startVideo())},d=p=>{p.stopPropagation(),e.startVideo()};var l=f4();let u;l.__click=d;var f=h(l);f.__keydown=s,He(f,"aria-label",a);var _=M(h(f),2);return Pr(_,{}),g(f),g(l),k(p=>{u=ie(l,1,"container svelte-1xnh9dd",null,u,p),tt(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:o.features.previewNoEmptySpace})]),b(t,l),K({handlePressKey:s,handleClick:d})}at(["click","keydown"]);var v4=L("<div> </div>"),g4={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
280
  0deg,
281
281
  rgba(0, 0, 0, 0) 0%,
282
282
  rgba(0, 0, 0, 0.02) 19%,
283
283
  rgba(0, 0, 0, 0.10) 34%,
284
284
  rgba(0, 0, 0, 0.40) 60%,
285
285
  rgba(0, 0, 0, 0.60) 100%
286
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Jf(t,e){G(t,v4);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=m4();let a;var s=h(n,!0);g(n),k(d=>{a=ie(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 em(t,e){K(e,!0),G(t,y4);let i=te(""),o=te(""),n=te(""),a=te(""),s,d=A=>String(A).padStart(2,"0"),l=A=>{let E=Math.floor(A/86400);E&&(A-=E*86400,O(i,_e(d(E))));let T=Math.floor(A/3600);O(o,_e(d(T)));let R=Math.floor(A/60)%60;O(n,_e(d(R)));let z=A%60;O(a,_e(d(z)))},u=()=>{let A=Math.floor(Date.now()/1e3),E=e.startTime-A;l(E),E>=1?s=requestAnimationFrame(u):e.onTimerOver()};Ht(()=>{s=requestAnimationFrame(u)}),wn(()=>{cancelAnimationFrame(s)});var f=$4(),_=h(f);{var p=A=>{var E=g4(),T=he(E),R=h(T),z=h(R,!0);g(R);var j=M(R,2),U=h(j,!0);g(j),g(T);var X=M(T,2),ee=h(X,!0);g(X),k((ne,ue)=>{me(z,r(i)),me(U,ne),me(ee,ue)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(A,E)};B(_,A=>{r(i)&&A(p)})}var $=M(_,2);{var w=A=>{var E=h4(),T=he(E),R=h(T),z=h(R,!0);g(R);var j=M(R,2),U=h(j,!0);g(j),g(T);var X=M(T,2),ee=h(X,!0);g(X),k((ne,ue)=>{me(z,r(o)),me(U,ne),me(ee,ue)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(A,E)};B($,A=>{r(o)&&A(w)})}var y=M($,2);{var S=A=>{var E=_4(),T=he(E),R=h(T),z=h(R,!0);g(R);var j=M(R,2),U=h(j,!0);g(j),g(T);var X=M(T,2),ee=h(X,!0);g(X),k((ne,ue)=>{me(z,r(n)),me(U,ne),me(ee,ue)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(A,E)};B(y,A=>{r(n)&&A(S)})}var I=M(y,2);{var P=A=>{var E=b4(),T=h(E),R=h(T,!0);g(T);var z=M(T,2),j=h(z,!0);g(z),g(E),k(U=>{me(R,r(a)),me(j,U)},[()=>F("waiting_live_second_value")]),b(A,E)};B(I,A=>{r(a)&&A(P)})}g(f),b(t,f),W()}var x4=$e('<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 tm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=x4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(4),g(o),k(()=>n=Ce(o,n,q({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 wd(t,e){K(e,!0),G(t,T4);let i=te(!1);Ze(()=>{O(i,_e(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=C4(),n=h(o);{var a=d=>{var l=w4(),u=h(l),f=h(u);tm(f,{}),g(u);var _=M(u,2),p=h(_,!0);g(_),g(l),k($=>me(p,$),[()=>F("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=S4(),u=h(l),f=h(u,!0);g(u);var _=M(u,2);let p=m(()=>e.startTime||0);em(_,{get startTime(){return r(p)},onTimerOver:()=>O(i,!0)}),g(l),k($=>me(f,$),[()=>F("waiting_live_timer_title")]),b(d,l)};B(n,d=>{r(i)?d(a):d(s,!1)})}g(o),k(()=>nt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),W()}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){K(e,!0),G(t,k4);let i=v(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=I4(),s=h(a),d=h(s);oa(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),u=h(l,!0);g(l),g(s),g(a),k(()=>{nt(a,`background-image: url('${i()}')`),me(u,r(n))}),b(t,a),W()}var E4=$e('<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 im(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=E4();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 Sd(t){G(t,A4);var e=P4(),i=h(e);im(i,{}),g(e),b(t,e)}var M4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},L4=(t,e)=>{za(t,()=>e.item.selectItem(e.item.value))},V4=L("<p> </p>"),R4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),B4=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;
286
+ );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function nm(t,e){G(t,g4);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=v4();let a;var s=h(n,!0);g(n),k(d=>{a=ie(n,1,"title svelte-1bcvcf2",null,a,d),ge(s,i())},[()=>({hidden:o()})]),b(t,n)}var 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> <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>'),y4=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),x4={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 rm(t,e){q(e,!0),G(t,x4);let i=te(""),o=te(""),n=te(""),a=te(""),s,d=A=>String(A).padStart(2,"0"),l=A=>{let E=Math.floor(A/86400);E&&(A-=E*86400,O(i,ve(d(E))));let T=Math.floor(A/3600);O(o,ve(d(T)));let V=Math.floor(A/60)%60;O(n,ve(d(V)));let U=A%60;O(a,ve(d(U)))},u=()=>{let A=Math.floor(Date.now()/1e3),E=e.startTime-A;l(E),E>=1?s=requestAnimationFrame(u):e.onTimerOver()};Ut(()=>{s=requestAnimationFrame(u)}),wn(()=>{cancelAnimationFrame(s)});var f=y4(),_=h(f);{var p=A=>{var E=h4(),T=pe(E),V=h(T),U=h(V,!0);g(V);var j=M(V,2),F=h(j,!0);g(j),g(T);var Z=M(T,2),J=h(Z,!0);g(Z),k((ne,fe)=>{ge(U,r(i)),ge(F,ne),ge(J,fe)},[()=>H("waiting_live_day_value"),()=>H("waiting_live_colon")]),b(A,E)};R(_,A=>{r(i)&&A(p)})}var $=M(_,2);{var w=A=>{var E=_4(),T=pe(E),V=h(T),U=h(V,!0);g(V);var j=M(V,2),F=h(j,!0);g(j),g(T);var Z=M(T,2),J=h(Z,!0);g(Z),k((ne,fe)=>{ge(U,r(o)),ge(F,ne),ge(J,fe)},[()=>H("waiting_live_hour_value"),()=>H("waiting_live_colon")]),b(A,E)};R($,A=>{r(o)&&A(w)})}var y=M($,2);{var S=A=>{var E=b4(),T=pe(E),V=h(T),U=h(V,!0);g(V);var j=M(V,2),F=h(j,!0);g(j),g(T);var Z=M(T,2),J=h(Z,!0);g(Z),k((ne,fe)=>{ge(U,r(n)),ge(F,ne),ge(J,fe)},[()=>H("waiting_live_minute_value"),()=>H("waiting_live_colon")]),b(A,E)};R(y,A=>{r(n)&&A(S)})}var I=M(y,2);{var P=A=>{var E=$4(),T=h(E),V=h(T,!0);g(T);var U=M(T,2),j=h(U,!0);g(U),g(E),k(F=>{ge(V,r(a)),ge(j,F)},[()=>H("waiting_live_second_value")]),b(A,E)};R(I,A=>{r(a)&&A(P)})}g(f),b(t,f),K()}var w4=$e('<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 sm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=w4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(4),g(o),k(()=>n=we(o,n,W({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 S4=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),C4=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),T4=L('<div class="waiting-container svelte-15pewff"><!></div>'),I4={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 wd(t,e){q(e,!0),G(t,I4);let i=te(!1);We(()=>{O(i,ve(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=T4(),n=h(o);{var a=d=>{var l=S4(),u=h(l),f=h(u);sm(f,{}),g(u);var _=M(u,2),p=h(_,!0);g(_),g(l),k($=>ge(p,$),[()=>H("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=C4(),u=h(l),f=h(u,!0);g(u);var _=M(u,2);let p=m(()=>e.startTime||0);rm(_,{get startTime(){return r(p)},onTimerOver:()=>O(i,!0)}),g(l),k($=>ge(f,$),[()=>H("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),K()}var k4=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),E4={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 pa(t,e){q(e,!0),G(t,E4);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=k4(),s=h(a),d=h(s);ra(d,{style:"position: static; transform: translate(0, 0)"});var l=M(d,2),u=h(l,!0);g(l),g(s),g(a),k(()=>{tt(a,`background-image: url('${i()}')`),ge(u,r(n))}),b(t,a),K()}var P4=$e('<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 am(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=P4();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 A4=L('<div class="select-icon svelte-124aexk"><!></div>'),M4={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Sd(t){G(t,M4);var e=A4(),i=h(e);am(i,{}),g(e),b(t,e)}var L4=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},V4=(t,e)=>{Ka(t,()=>e.item.selectItem(e.item.value))},R4=L("<p> </p>"),N4=L('<p class="sublabel svelte-1t7rx2m"> </p>'),B4=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),D4={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
287
 
288
288
  /**
289
289
  * \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
290
  * \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
291
  */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 om(t,e){K(e,!0),G(t,N4);let i=v(e,"isMobile",3,!1);var o=B4();let n;o.__click=[M4,e],o.__keydown=[L4,e];var a=h(o);{var s=w=>{Sd(w,{})};B(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var u=h(d);{var f=w=>{var y=ze(),S=he(y);Vi(S,()=>e.item.valueComponent,(I,P)=>{P(I,rs(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},_=w=>{var y=V4();let S;var I=h(y,!0);g(y),k(P=>{var A;S=ie(y,1,"label svelte-1t7rx2m",null,S,P),me(I,(A=e.item.label)!=null?A:e.item.value)},[()=>({mobile:i()})]),b(w,y)};B(u,w=>{e.item.valueComponent?w(f):w(_,!1)})}var p=M(u,2);{var $=w=>{var y=R4(),S=h(y,!0);g(y),k(()=>me(S,e.item.sublabel)),b(w,y)};B(p,w=>{e.item.sublabel&&w($)})}g(d),g(o),k((w,y,S)=>{n=ie(o,1,"item",null,n,w),Oe(o,"data-value",e.item.value),Oe(o,"aria-label",y),l=ie(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()}at(["click","keydown"]);var D4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function nm(t,e){K(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>y=>Ac(y,r(n)));var s=D4();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 u=y=>{Sd(y,{})};B(l,y=>{e.item.selected&&y(u)})}var f=M(l,2);let _;var p=h(f);{var $=y=>{var S=ze();let I=m(()=>e.item.valueComponent);var P=he(S);Vi(P,()=>r(I),(A,E)=>{E(A,rs(()=>{var T;return(T=e.item.valueComponentParams)!=null?T:{}}))}),b(y,S)},w=y=>{var S=nr();k(()=>me(S,e.item.label)),b(y,S)};B(p,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]}),k((y,S)=>{var I;d=ie(s,1,"item",null,d,y),Oe(s,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Oe(s,"data-testid",e.item.id),_=ie(f,1,"menu-item-value",null,_,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),W()}at(["click","keydown"]);var Ar={"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)=>{Ch(t,e.returnFromSubMenu,e.closeSettingsMenu)},F4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},U4=(t,e)=>{zl(t)&&(lr(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;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function lm(t,e){q(e,!0),G(t,D4);let i=v(e,"isMobile",3,!1);var o=B4();let n;o.__click=[L4,e],o.__keydown=[V4,e];var a=h(o);{var s=w=>{Sd(w,{})};R(a,w=>{e.item.selected&&w(s)})}var d=M(a,2);let l;var u=h(d);{var f=w=>{var y=Ke(),S=pe(y);xi(S,()=>e.item.valueComponent,(I,P)=>{P(I,rs(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},_=w=>{var y=R4();let S;var I=h(y,!0);g(y),k(P=>{var A;S=ie(y,1,"label svelte-1t7rx2m",null,S,P),ge(I,(A=e.item.label)!=null?A:e.item.value)},[()=>({mobile:i()})]),b(w,y)};R(u,w=>{e.item.valueComponent?w(f):w(_,!1)})}var p=M(u,2);{var $=w=>{var y=N4(),S=h(y,!0);g(y),k(()=>ge(S,e.item.sublabel)),b(w,y)};R(p,w=>{e.item.sublabel&&w($)})}g(d),g(o),k((w,y,S)=>{n=ie(o,1,"item",null,n,w),He(o,"data-value",e.item.value),He(o,"aria-label",y),l=ie(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),He(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),K()}at(["click","keydown"]);var O4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function dm(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=>Nc(y,r(n)));var s=O4();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 u=y=>{Sd(y,{})};R(l,y=>{e.item.selected&&y(u)})}var f=M(l,2);let _;var p=h(f);{var $=y=>{var S=Ke();let I=m(()=>e.item.valueComponent);var P=pe(S);xi(P,()=>r(I),(A,E)=>{E(A,rs(()=>{var T;return(T=e.item.valueComponentParams)!=null?T:{}}))}),b(y,S)},w=y=>{var S=or();k(()=>ge(S,e.item.label)),b(y,S)};R(p,y=>{e.item.valueComponent?y($):y(w,!1)})}g(f),g(s),ct(s,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),k((y,S)=>{var I;d=ie(s,1,"item",null,d,y),He(s,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),He(s,"data-testid",e.item.id),_=ie(f,1,"menu-item-value",null,_,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),K()}at(["click","keydown"]);var Ar={"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 F4=(t,e)=>{kh(t,e.returnFromSubMenu,e.closeSettingsMenu)},U4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},z4=(t,e)=>{zl(t)&&(ar(t),e.returnFromSubMenu())},q4=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>'),K4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
293
293
  /*\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
294
  /**
295
295
  * \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,16 +299,47 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
299
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
300
  1px
301
301
  );}.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 sm(t,e){K(e,!0),G(t,q4);let[i,o]=Ue(),n=()=>C(_,"$isFullscreen",i),a=()=>C(p,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),u=v(e,"listRef",15);Ht(()=>{let ne=e.items.findIndex(ue=>ue.selected);u().children[ne+1].focus()});let f=ke(),_=f.ui.isFullscreen,p=f.ui.playerSize,$=te(void 0),w=te(0),y=te(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;`),I=m(()=>Math.max(e.minWidth,r(w)));var P=z4();let A;var E=h(P);let T;E.__keydown=[H4,e];var R=h(E);let z;R.__click=[F4,e],R.__keydown=[U4,e];var j=h(R);ks(j,{direction:"left"});var U=M(j,2),X=h(U,!0);g(U),g(R),dt(R,ne=>O($,ne),()=>r($));var ee=M(R,2);yi(ee,17,()=>e.items,Il,(ne,ue)=>{var de=ze(),Ve=he(de);{var Be=Le=>{om(Le,{get item(){return r(ue)},get isMobile(){return s()}})},J=(Le,Z)=>{{var N=Re=>{nm(Re,{get isMobile(){return s()},get item(){return r(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};B(Le,Re=>{r(ue).type==="OPEN_SUB_MENU"&&Re(N)},Z)}};B(Ve,Le=>{r(ue).type==="SELECT_VALUE"?Le(Be):Le(J,!1)})}b(ne,de)}),g(E),dt(E,ne=>u(ne),()=>u()),g(P),k((ne,ue,de)=>{A=ie(P,1,"sub-menu menu svelte-7dfsuh",null,A,ne),Oe(P,"data-testid",`sub-menu-${e.id}`),nt(P,`min-width: ${r(I)}px`),T=ie(E,1,"items svelte-7dfsuh",null,T,ue),nt(E,r(S)),z=ie(R,1,"item header back svelte-7dfsuh",null,z,de),Oe(R,"aria-label",l()),me(X,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Ur(R,"clientWidth",ne=>O(w,ne)),Ur(R,"clientHeight",ne=>O(y,ne)),b(t,P),W(),o()}at(["keydown","click"]);import{noop as K4}from"@vkontakte/videoplayer-shared/es2015";var W4=(t,e)=>Ac(t,e()),Q4=(t,e)=>{t.stopPropagation(),e()()},G4=L('<div class="value svelte-1ikfjte"> </div>'),Y4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),j4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function am(t,e){K(e,!0),G(t,j4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,K4),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=Y4();let d;s.__click=[Q4,o],s.__keydown=[W4,o];var l=h(s),u=h(l);{var f=I=>{ca(I,{get icon(){return e.icon}})},_=I=>{var P=ze();let A=m(()=>e.icon);var E=he(P);Vi(E,()=>r(A),(T,R)=>{R(T,{})}),b(I,P)};B(u,I=>{typeof e.icon=="string"?I(f):I(_,!1)})}g(l);var p=M(l,2),$=h(p,!0);g(p);var w=M(p,2);{var y=I=>{var P=ze();let A=m(n);var E=he(P);Vi(E,()=>r(A),(T,R)=>{R(T,{})}),b(I,P)},S=I=>{var P=G4(),A=h(P,!0);g(P),k(()=>me(A,e.value)),b(I,P)};B(w,I=>{n()?I(y):I(S,!1)})}g(s),dt(s,I=>a(I),()=>a()),k(I=>{d=ie(s,1,"item",null,d,I),Oe(s,"aria-label",e.ariaLabel),Oe(s,"data-testid",e.id),me($,e.label)},[()=>({mobile:i()})]),b(t,s),W()}at(["click","keydown"]);import{noop as r1}from"@vkontakte/videoplayer-shared/es2015";var Z4=(t,e)=>{za(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 lm(t,e){K(e,!0),G(t,t3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,r1),n=v(e,"closeSettings",3,r1),a=te(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=e3();let u;l.__click=d,l.__keydown=[Z4,d];var f=h(l),_=h(f);{var p=S=>{var I=ze(),P=he(I);{var A=T=>{var R=X4();b(T,R)},E=T=>{var R=J4();k(()=>Oe(R,"src",e.icon)),kt("error",R,s),qs(R),b(T,R)};B(P,T=>{r(a)?T(A):T(E,!1)})}b(S,I)},$=S=>{var I=ze();let P=m(()=>e.icon);var A=he(I);Vi(A,()=>r(P),(E,T)=>{T(E,{})}),b(S,I)};B(_,S=>{typeof e.icon=="string"?S(p):S($,!1)})}g(f);var w=M(f,2),y=h(w,!0);g(w),g(l),k(S=>{var I;u=ie(l,1,"item",null,u,S),Oe(l,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Oe(l,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),b(t,l),W()}at(["click","keydown"]);import{noop as n3}from"@vkontakte/videoplayer-shared/es2015";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 dm(t,e){G(t,o3);let i=v(e,"enabled",3,!1);var o=i3(),n=h(o);let a;be(2),g(o),k(s=>a=ie(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var r3=(t,e,i)=>{Th(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 cm(t,e){K(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,n3),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=l3();let l;d.__click=[s3,o,n],d.__keydown=[r3,n,o];var u=h(d);na(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,_)=>{var p=a3();let $;var w=h(p),y=h(w);{var S=T=>{ca(T,{get icon(){return e.icon}})},I=T=>{var R=ze();let z=m(()=>e.icon);var j=he(R);Vi(j,()=>r(z),(U,X)=>{X(U,{})}),b(T,R)};B(y,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(w);var P=M(w,2),A=h(P,!0);g(P);var E=M(P,2);dm(E,{get enabled(){return n()}}),g(p),k(T=>{$=ie(p,1,"switch-wrapper",null,$,T),me(A,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),k(f=>{var _;l=ie(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()}at(["click","keydown"]);import{isValidURL as M3,VideoQuality as g1}from"@vkontakte/videoplayer-shared/es2015";var s1=()=>{let t=te(_e([])),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,_e(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,_e([]))}}};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){K(e,!0),G(t,u3);let i=v(e,"isSubCase",3,!1),o=m(()=>Bc(e.quality));var n=c3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=f=>{var _=d3();let p=m(()=>r(o));var $=h(_);Vi($,()=>r(p),(w,y)=>{y(w,{})}),g(_),b(f,_)};B(l,f=>{r(o)&&!e.isMobile&&f(u)})}g(n),k(f=>{s=ie(a,1,"svelte-t2qk8t",null,s,f),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),W()}import{VideoQuality as p3}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as a1}from"@vkontakte/videoplayer-core/es2015";var l1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},d1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=l1({quality:t,availableQualities:e});return i?t===a1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},c1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===a1.INVARIANT?i:`${i}${l1({quality:t,availableQualities:e})}`:"...";var 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 Za(t,e){K(e,!0),G(t,m3);let[i,o]=Ue(),n=()=>C(l,"$currentQuality$",i),a=()=>C(u,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=ke(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",p=m(()=>e.prefix+(e.selected&&n()!==p3.INVARIANT?_:"")),$=m(()=>c1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=f3(),y=h(w);let S=m(()=>e.selected?n():void 0);pa(y,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),W(),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},um=(t,e={})=>{var d,l,u,f,_,p,$;if(!t)return t;let i=q(q({},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],S=((d=w.groups)==null?void 0:d.keyhtml)||((l=w.groups)==null?void 0:l.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:I}=w;if(!i[S]){a.push(t.slice(s,I)),s=I+y.length;continue}let P=(_=w.groups)!=null&&_.childrenhtml?um(w.groups.childrenhtml,i):"",A=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>P||""):y;a.push(t.slice(s,I),A),s=I+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Cd(t,e){K(e,!1);let i=v(e,"message",8),o=um(i());kr();var n=ze(),a=he(n);{var s=d=>{var l=ze(),u=he(l);kl(u,()=>o,!1,!1),b(d,l)};B(a,d=>{o&&d(s)})}b(t,n),W()}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 pm(t,e){K(e,!1),G(t,_3),kr();var i=h3(),o=h(i);let n=Cr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Cd(o,{get message(){return r(n)}}),g(i),b(t,i),W()}var p1=({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:F("other_quality"),selected:o},children:"QUALITY"}},fm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?Za:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),f1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:pm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),mm=({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?Za:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),vm=({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?Za:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var Xc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Jc=(t,e)=>{var s;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(s=Uc(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=Xc(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=Xc(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=Xc(t,d);return F("audio_stream_display_language_index",{language:n,index:l})}}let a=Xc(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:fm,selected:e&&!o&&!n||!1}),a.push({handler:vm,selected:o},{handler:mm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[f1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),p1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title: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:fm,selected:((i=$c())==null?void 0:i.type)==="auto_quality"},{handler:vm,selected:((o=$c())==null?void 0:o.type)==="traffic_saving"},{handler:mm,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: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:Jc(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}))})},m1=({subMenuId:t,context:e})=>t?[b3[t](e)]:[];var $3=$e('<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 gm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=$3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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=$e('<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 hm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=y3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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=$e('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function _m(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=x3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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=$e('<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 bm(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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=$e('<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 $m(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=S3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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=$e('<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 eu(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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=$e('<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 ym(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=T3();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 xm(t,e){K(e,!0),G(t,k3);let[i,o]=Ue(),n=()=>C(u,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),l=ke(),u=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,$=m(()=>d1({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),W(),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:xm,weight:Ar["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Ar["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:gm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Jc(t,e);return{id:"AUDIO_LANGUAGES",weight:Ar["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:hm,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:Ar["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:_m,label:F("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Ar["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:Ar.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:bm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Ar.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:$m,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Ar["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:eu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Ar["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:eu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Ar["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:ym,isHiddenFor:["desktop"]})},v1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>P3[n](e)),...i.map(n=>At(q({},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(ea)};var L3=(t,e)=>{Pc(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>'),B3=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 {
302
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function um(t,e){q(e,!0),G(t,K4);let[i,o]=Ue(),n=()=>C(_,"$isFullscreen",i),a=()=>C(p,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>H("aria_label_submenu_back")),u=v(e,"listRef",15);Ut(()=>{let ne=e.items.findIndex(fe=>fe.selected);u().children[ne+1].focus()});let f=Se(),_=f.ui.isFullscreen,p=f.ui.playerSize,$=te(void 0),w=te(0),y=te(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;`),I=m(()=>Math.max(e.minWidth,r(w)));var P=q4();let A;var E=h(P);let T;E.__keydown=[F4,e];var V=h(E);let U;V.__click=[U4,e],V.__keydown=[z4,e];var j=h(V);Ps(j,{direction:"left"});var F=M(j,2),Z=h(F,!0);g(F),g(V),ct(V,ne=>O($,ne),()=>r($));var J=M(V,2);yi(J,17,()=>e.items,Il,(ne,fe)=>{var de=Ke(),Re=pe(de);{var Le=Ve=>{lm(Ve,{get item(){return r(fe)},get isMobile(){return s()}})},ee=(Ve,X)=>{{var B=Ne=>{dm(Ne,{get isMobile(){return s()},get item(){return r(fe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Ve,Ne=>{r(fe).type==="OPEN_SUB_MENU"&&Ne(B)},X)}};R(Re,Ve=>{r(fe).type==="SELECT_VALUE"?Ve(Le):Ve(ee,!1)})}b(ne,de)}),g(E),ct(E,ne=>u(ne),()=>u()),g(P),k((ne,fe,de)=>{A=ie(P,1,"sub-menu menu svelte-7dfsuh",null,A,ne),He(P,"data-testid",`sub-menu-${e.id}`),tt(P,`min-width: ${r(I)}px`),T=ie(E,1,"items svelte-7dfsuh",null,T,fe),tt(E,r(S)),U=ie(V,1,"item header back svelte-7dfsuh",null,U,de),He(V,"aria-label",l()),ge(Z,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Fr(V,"clientWidth",ne=>O(w,ne)),Fr(V,"clientHeight",ne=>O(y,ne)),b(t,P),K(),o()}at(["keydown","click"]);import{noop as W4}from"@vkontakte/videoplayer-shared/es2015";var Q4=(t,e)=>Nc(t,e()),G4=(t,e)=>{t.stopPropagation(),e()()},Y4=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>'),Z4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function pm(t,e){q(e,!0),G(t,Z4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,W4),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=j4();let d;s.__click=[G4,o],s.__keydown=[Q4,o];var l=h(s),u=h(l);{var f=I=>{ua(I,{get icon(){return e.icon}})},_=I=>{var P=Ke();let A=m(()=>e.icon);var E=pe(P);xi(E,()=>r(A),(T,V)=>{V(T,{})}),b(I,P)};R(u,I=>{typeof e.icon=="string"?I(f):I(_,!1)})}g(l);var p=M(l,2),$=h(p,!0);g(p);var w=M(p,2);{var y=I=>{var P=Ke();let A=m(n);var E=pe(P);xi(E,()=>r(A),(T,V)=>{V(T,{})}),b(I,P)},S=I=>{var P=Y4(),A=h(P,!0);g(P),k(()=>ge(A,e.value)),b(I,P)};R(w,I=>{n()?I(y):I(S,!1)})}g(s),ct(s,I=>a(I),()=>a()),k(I=>{d=ie(s,1,"item",null,d,I),He(s,"aria-label",e.ariaLabel),He(s,"data-testid",e.id),ge($,e.label)},[()=>({mobile:i()})]),b(t,s),K()}at(["click","keydown"]);import{noop as l1}from"@vkontakte/videoplayer-shared/es2015";var X4=(t,e)=>{Ka(t,()=>e())},J4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),e3=L('<img class="icon" aria-hidden="true">'),t3=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),i3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function fm(t,e){q(e,!0),G(t,i3);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,l1),n=v(e,"closeSettings",3,l1),a=te(!1),s=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var l=t3();let u;l.__click=d,l.__keydown=[X4,d];var f=h(l),_=h(f);{var p=S=>{var I=Ke(),P=pe(I);{var A=T=>{var V=J4();b(T,V)},E=T=>{var V=e3();k(()=>He(V,"src",e.icon)),Et("error",V,s),Ks(V),b(T,V)};R(P,T=>{r(a)?T(A):T(E,!1)})}b(S,I)},$=S=>{var I=Ke();let P=m(()=>e.icon);var A=pe(I);xi(A,()=>r(P),(E,T)=>{T(E,{})}),b(S,I)};R(_,S=>{typeof e.icon=="string"?S(p):S($,!1)})}g(f);var w=M(f,2),y=h(w,!0);g(w),g(l),k(S=>{var I;u=ie(l,1,"item",null,u,S),He(l,"aria-label",(I=e.ariaLabel)!=null?I:e.label),He(l,"data-testid",e.id),ge(y,e.label)},[()=>({mobile:i()})]),b(t,l),K()}at(["click","keydown"]);import{noop as r3}from"@vkontakte/videoplayer-shared/es2015";var o3=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),n3={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 mm(t,e){G(t,n3);let i=v(e,"enabled",3,!1);var o=o3(),n=h(o);let a;be(2),g(o),k(s=>a=ie(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var s3=(t,e,i)=>{Eh(t,e(),o=>i()(o))},a3=(t,e,i)=>{t.stopPropagation(),e()(!i())},l3=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),d3=L('<li role="menuitem" tabindex="0"><!></li>');function vm(t,e){q(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,r3),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=d3();let l;d.__click=[a3,o,n],d.__keydown=[s3,n,o];var u=h(d);sa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(f,_)=>{var p=l3();let $;var w=h(p),y=h(w);{var S=T=>{ua(T,{get icon(){return e.icon}})},I=T=>{var V=Ke();let U=m(()=>e.icon);var j=pe(V);xi(j,()=>r(U),(F,Z)=>{Z(F,{})}),b(T,V)};R(y,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(w);var P=M(w,2),A=h(P,!0);g(P);var E=M(P,2);mm(E,{get enabled(){return n()}}),g(p),k(T=>{$=ie(p,1,"switch-wrapper",null,$,T),ge(A,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),g(d),k(f=>{var _;l=ie(d,1,"item switch-item",null,l,f),He(d,"aria-label",(_=e.ariaLabel)!=null?_:e.label),He(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),K()}at(["click","keydown"]);import{isValidURL as L3,VideoQuality as b1}from"@vkontakte/videoplayer-shared/es2015";var d1=()=>{let t=te(ve([])),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,ve(r(t).slice(0,-1)))},popAllSubMenus:()=>{O(t,ve([]))}}};var c3=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),u3=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),p3={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 fa(t,e){q(e,!0),G(t,p3);let i=v(e,"isSubCase",3,!1),o=m(()=>Fc(e.quality));var n=u3(),a=h(n);let s;var d=h(a,!0);g(a);var l=M(a,2);{var u=f=>{var _=c3();let p=m(()=>r(o));var $=h(_);xi($,()=>r(p),(w,y)=>{y(w,{})}),g(_),b(f,_)};R(l,f=>{r(o)&&!e.isMobile&&f(u)})}g(n),k(f=>{s=ie(a,1,"svelte-t2qk8t",null,s,f),ge(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),K()}import{VideoQuality as f3}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as c1}from"@vkontakte/videoplayer-core/es2015";var u1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},p1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=u1({quality:t,availableQualities:e});return i?t===c1.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},f1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===c1.INVARIANT?i:`${i}${u1({quality:t,availableQualities:e})}`:"...";var m3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),v3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Ja(t,e){q(e,!0),G(t,v3);let[i,o]=Ue(),n=()=>C(l,"$currentQuality$",i),a=()=>C(u,"$availableQualities$",i),s=()=>C(f,"$isMobile$",i),d=Se(),l=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,_=" \xB7 ",p=m(()=>e.prefix+(e.selected&&n()!==f3.INVARIANT?_:"")),$=m(()=>f1({prefix:r(p),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var w=m3(),y=h(w);let S=m(()=>e.selected?n():void 0);fa(y,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(w),b(t,w),K(),o()}var g3=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")},h3={br:!0,span:!0},gm=(t,e={})=>{var d,l,u,f,_,p,$;if(!t)return t;let i=W(W({},h3),e),o=Object.keys(i);if(!o.length)return t;let n=g3(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)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:I}=w;if(!i[S]){a.push(t.slice(s,I)),s=I+y.length;continue}let P=(_=w.groups)!=null&&_.childrenhtml?gm(w.groups.childrenhtml,i):"",A=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>P||""):y;a.push(t.slice(s,I),A),s=I+y.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function Cd(t,e){q(e,!1);let i=v(e,"message",8),o=gm(i());Ir();var n=Ke(),a=pe(n);{var s=d=>{var l=Ke(),u=pe(l);kl(u,()=>o,!1,!1),b(d,l)};R(a,d=>{o&&d(s)})}b(t,n),K()}var _3=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),b3={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 hm(t,e){q(e,!1),G(t,b3),Ir();var i=_3(),o=h(i);let n=Sr(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));Cd(o,{get message(){return r(n)}}),g(i),b(t,i),K()}var v1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Ja,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},_m=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?Ja:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),g1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:hm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),bm=({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?Ja:void 0,valueComponentParams:{prefix:H("high_quality"),selected:i},sublabel:H("high_quality_description")}),$m=({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?Ja:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var ou=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),nu=(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 H("audio_stream_display_language_label",{language:n,label:o});{let l=ou(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=ou(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=ou(t,d);return H("audio_stream_display_language_index",{language:n,index:l})}}let a=ou(t,e);return H("audio_stream_display_unknown",{index:a})};var $3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:_m,selected:e&&!o&&!n||!1}),a.push({handler:$m,selected:o},{handler:bm,selected:n}),{title:H("submenu_quality"),id:"QUALITY_DETAILS",items:[g1(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),v1(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:fa,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:_m,selected:((i=Cc())==null?void 0:i.type)==="auto_quality"},{handler:$m,selected:((o=Cc())==null?void 0:o.type)==="traffic_saving"},{handler:bm,selected:((n=Cc())==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:nu(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}))})},h1=({subMenuId:t,context:e})=>t?[$3[t](e)]:[];var y3=$e('<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 ym(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=y3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 x3=$e('<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 xm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=x3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 w3=$e('<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 wm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=w3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 S3=$e('<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 Sm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=S3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 C3=$e('<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 Cm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=C3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 T3=$e('<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 ru(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=T3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 I3=$e('<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 Tm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=I3();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 k3=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),E3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Im(t,e){q(e,!0),G(t,E3);let[i,o]=Ue(),n=()=>C(u,"$currentQuality$",i),a=()=>C(f,"$availableQualities$",i),s=()=>C(_,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),l=Se(),u=l.state.currentQuality$,f=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,p=l.ui.isMobile,$=m(()=>p1({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var w=k3(),y=h(w);fa(y,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(w),b(t,w),K(),o()}var A3={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:Zl,label:H("menu_quality"),value:e,valueComponent:Im,weight:Ar["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Ar["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:ym,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=nu(t,e);return{id:"AUDIO_LANGUAGES",weight:Ar["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:xm,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:Ar["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:wm,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Ar["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Xl,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Ar.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:Sm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Ar.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:Cm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Ar["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:ru,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Ar["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:ru,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Ar["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:Tm,isHiddenFor:["desktop"]})},_1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>A3[n](e)),...i.map(n=>Nt(W({},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(ia)};var V3=(t,e)=>{Rc(t,e)},R3=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),N3=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),B3=L("<div><!> <!></div>"),D3={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
303
  /* \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
304
  .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
305
  .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 Td(t,e){K(e,!0),G(t,N3);let[i,o]=Ue(),n=()=>C(Ge,"$settingsMenuVisible",i),a=()=>C(lt,"$settingsMenuOpenedByKeyboard",i),s=()=>C(st,"$debugPanelVisible",i),d=()=>C(xe,"$isMobile",i),l=()=>C(Bt,"$playerSize",i),u=()=>C(Pe,"$hasMpegSources$",i),f=()=>C(Me,"$mobileNotReportControlHidden$",i),_=()=>C(N,"$autoQualityLimitingAvailable$",i),p=()=>C(D,"$availableSubtitlesList$",i),$=()=>C(rt,"$isLiveWithPlaybackSpeed",i),w=()=>C(J,"$availableAudioStreams$",i),y=()=>C(Ne,"$availablePlaybackRates$",i),S=()=>C(Be,"$currentAudioStream$",i),I=()=>C(se,"$currentPlaybackRate$",i),P=()=>C(ft,"$trafficSavingEnabled",i),A=()=>C(Le,"$currentQuality$",i),E=()=>C(Re,"$isAutoQualityEnabled$",i),T=()=>C(pe,"$currentSubtitle$",i),R=()=>C(zt,"$additionalSettingsMenuItems$",i),z=()=>C(we,"$isAutoQualityAvailable$",i),j=()=>C(Z,"$availableQualities$",i),U=()=>C(it,"$highQualityEnabled",i),X=v(e,"ref",15,void 0),ee=v(e,"playerControlsHeight",3,0),ne=_e({}),ue=_e({}),de=ke(),Ve=Wt(),Be=de.state.audioStream$,J=de.state.availableAudioStreams$,Le=de.state.currentQuality$,Z=de.state.availableQualities$,N=de.state.autoQualityLimitingAvailable$,Re=de.state.isAutoQualityEnabled$,we=de.state.isAutoQualityAvailable$,se=de.state.currentPlaybackRate$,Ne=de.state.availablePlaybackRates$,pe=de.state.currentSubtitle$,D=de.state.availableSubtitlesList$,ce=de.state.canDownload,Pe=de.state.hasMpegSources$,Ge=de.ui.settingsMenu.visible$,lt=de.ui.settingsMenu.openedByBtnKeyboard$,Ae=de.ui.settingsMenu.ref$,xe=de.ui.isMobile,Me=de.ui.mobileNotReportControlHidden$,rt=de.state.canChangePlaybackSpeed$,ft=de.state.trafficSavingEnabled$,it=de.state.highQualityEnabled$,Bt=de.ui.playerSize,st=de.ui.debugPanelVisible,mt=de.state.isInteractiveTime$,zt=de.ui.additionalSettingsMenuItems$,Kt=de.ui.t,De=de.actions.internal.downloadVideo,re=de.actions.internal.closeSettingsMenu,Q=de.actions.internal.openSettingsSubMenu,ae=de.actions.internal.closeSettingsSubMenu,fe=te(!1),Te=te(void 0),He=s1();Ze(()=>{!n()&&He.current&&(ae(ue[He.current]),He.popAllSubMenus())}),Ze(()=>{n()||O(Te,void 0)}),Ze(()=>{!He.current&&r(Te)&&Sh(ne,r(Te))}),Ze(()=>{X()&&Ae.set(X())});function ct(xt){return St(this,null,function*(){He.pushSubMenu(xt),yield bo(),Q(xt,ue[xt])})}function Nt(xt){var qt;xt==null||xt.stopPropagation(),a()||(qt=e.returnFocus)==null||qt.call(e),re(),O(fe,!1)}function Ke(xt,qt){de.actions.internal.setQuality(xt,{appliesTo:qt}),Nt()}function gt(xt){de.actions.internal.setAudioStream(xt),Nt()}function Je(xt,qt){de.actions.internal.setTrafficSavingEnabled(xt,qt),Ve.features.qualityDetailsSubMenuEnabled&&Nt()}function yt(xt,qt){de.actions.internal.setHighQualityEnabled(xt,qt),Nt()}function jt(xt){de.actions.internal.setPlaybackRate(xt),Nt()}function je(xt){de.actions.internal.setSubtitle(xt),Nt()}function Ct(){De()}function ui(){M3(e.supportLink)&&window.open(e.supportLink,"_blank"),de.actions.internal.reportProblem(),de.actions.internal.pause()}function si(){Ha(de.actions.internal.getDebugTextData())}let Ei=()=>{let xt=de.actions.internal.getTraceTextData(),qt=new Blob([...xt],{type:"application/json"}),Wi=window.URL.createObjectURL(qt);Gs(Wi,"vk_player_trace_info","json")};function Fi(){st.set(!s())}function Ro(){O(fe,!0)}function wo(){O(fe,!1)}function So(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ee()}px; overflow: auto;`}let Bo=m(()=>ce&&u()&&!f()),H=m(()=>Ve.features.trafficSaving&&!f()&&_()&&!Ve.features.qualityDetailsSubMenuEnabled),We=m(()=>p().length>0&&!f()),ai=m(()=>!!$()&&!f()),Ui=m(()=>Ve.features.audioLanguages&&w().length>=2&&!f()),ii=m(()=>!f());Ht(()=>mt.subscribe(xt=>{xt&&!d()&&!r(fe)&&!a()&&Nt()}));let mi=m(()=>{let xt=[r(ii)&&"QUALITY_SETTINGS",r(Ui)&&"AUDIO_LANGUAGES",r(ai)&&"PLAYBACK_RATE",r(We)&&"SUBTITLES",r(H)&&"TRAFFIC_SAVING_SWITCH",r(Bo)&&"DOWNLOAD",Ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(qt=>!!qt);return v1({items:xt,context:{qualityDetailsSubMenuEnabled:Ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:I(),selectPlaybackRate:jt,trafficSavingEnabled:P(),toggleTrafficSaving:Je,currentQuality:A()||g1.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:Ct,debugPanelVisible:s(),onCopyDataClick:si,onReportProblemClick:ui,onSaveTraceDataClick:Ei,toggleShowDebugInfo:Fi},additionalSettingsMenuItems:R()})}),ao=m(()=>m1({subMenuId:He.current,context:{availablePlaybackRates:y(),selectPlaybackRate:jt,trafficSavingEnabled:P(),toggleTrafficSaving:Je,currentQuality:A()||g1.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:z()||!1,availableQualities:j(),highQualityEnabled:U(),toggleHighQuality:yt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:re,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:gt,selectQuality:Ke,selectSubtitle:je}}));var lo=B3();let co;var Wo=h(lo);{var Dt=xt=>{var qt=R3();let Wi;qt.__keydown=[L3,re];var Xt=h(qt);{var Tn=li=>{var bt=V3();let Qi;var wi=h(bt),fi=h(wi,!0);g(wi);var In=M(wi,2);In.__click=Nt,g(bt),k((Gi,zi)=>{Qi=ie(bt,1,"item header svelte-17or3al",null,Qi,Gi),me(fi,zi)},[()=>({mobile:d()}),()=>Kt("submenu_settings")]),b(li,bt)};B(Xt,li=>{d()&&li(Tn)})}var Co=M(Xt,2);let Qo;yi(Co,21,()=>r(mi),li=>li.id,(li,bt)=>{var Qi=ze(),wi=he(Qi);{var fi=Gi=>{am(Gi,{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:()=>{ct(r(bt).children),O(Te,_e(r(bt).id))},get ref(){return ne[r(bt).id]},set ref(zi){ne[r(bt).id]=zi}})},In=(Gi,zi)=>{{var Go=Pi=>{lm(Pi,{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:Nt})},kn=(Pi,un)=>{{var pn=No=>{cm(No,{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}})};B(Pi,No=>{r(bt).type==="SWITCH"&&No(pn)},un)}};B(Gi,Pi=>{r(bt).type==="CLICK"?Pi(Go):Pi(kn,!1)},zi)}};B(wi,Gi=>{r(bt).type==="OPEN_SUB_MENU"?Gi(fi):Gi(In,!1)})}b(li,Qi)}),g(Co),dt(Co,li=>X(li),()=>X()),g(qt),k((li,bt,Qi)=>{Wi=ie(qt,1,"settings-menu menu svelte-17or3al",null,Wi,li),Qo=ie(Co,1,"items",null,Qo,bt),nt(Co,Qi)},[()=>({desktop:!d(),mobile:d(),hidden:!!He.current}),()=>({mobile:d()}),So]),kt("mouseenter",qt,Ro),kt("mouseleave",qt,wo),b(xt,qt)};B(Wo,xt=>{n()&&xt(Dt)})}var pi=M(Wo,2);yi(pi,17,()=>r(ao),xt=>xt.id,(xt,qt)=>{let Wi=m(()=>{var Xt;return(Xt=r(qt).minWidth)!=null?Xt:137});sm(xt,{get isMobile(){return d()},get playerControlsHeight(){return ee()},get returnFromSubMenu(){return He.popSubMenu},get id(){return r(qt).id},get title(){return r(qt).title},closeSettingsMenu:re,openSubMenuList:ct,get items(){return r(qt).items},get minWidth(){return r(Wi)},get refMenuItems(){return ne},get listRef(){return ue[r(qt).id]},set listRef(Xt){ue[r(qt).id]=Xt}})}),g(lo),k(xt=>co=ie(lo,1,"settings-menu-container svelte-17or3al",null,co,xt),[()=>({mobile:d(),hidden:!n()})]),b(t,lo),W(),o()}at(["keydown","click"]);var D3=t=>t;function h1(t,{delay:e=0,duration:i=400,easing:o=D3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var 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 wm(t,e){G(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;
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 Td(t,e){q(e,!0),G(t,D3);let[i,o]=Ue(),n=()=>C(Ye,"$settingsMenuVisible",i),a=()=>C(dt,"$settingsMenuOpenedByKeyboard",i),s=()=>C(st,"$debugPanelVisible",i),d=()=>C(ye,"$isMobile",i),l=()=>C(kt,"$playerSize",i),u=()=>C(Pe,"$hasMpegSources$",i),f=()=>C(Me,"$mobileNotReportControlHidden$",i),_=()=>C(B,"$autoQualityLimitingAvailable$",i),p=()=>C(D,"$availableSubtitlesList$",i),$=()=>C(rt,"$isLiveWithPlaybackSpeed",i),w=()=>C(ee,"$availableAudioStreams$",i),y=()=>C(Be,"$availablePlaybackRates$",i),S=()=>C(Le,"$currentAudioStream$",i),I=()=>C(Ee,"$currentPlaybackRate$",i),P=()=>C(vt,"$trafficSavingEnabled",i),A=()=>C(Ve,"$currentQuality$",i),E=()=>C(Ne,"$isAutoQualityEnabled$",i),T=()=>C(me,"$currentSubtitle$",i),V=()=>C(Kt,"$additionalSettingsMenuItems$",i),U=()=>C(re,"$isAutoQualityAvailable$",i),j=()=>C(X,"$availableQualities$",i),F=()=>C(lt,"$highQualityEnabled",i),Z=v(e,"ref",15,void 0),J=v(e,"playerControlsHeight",3,0),ne=ve({}),fe=ve({}),de=Se(),Re=Qt(),Le=de.state.audioStream$,ee=de.state.availableAudioStreams$,Ve=de.state.currentQuality$,X=de.state.availableQualities$,B=de.state.autoQualityLimitingAvailable$,Ne=de.state.isAutoQualityEnabled$,re=de.state.isAutoQualityAvailable$,Ee=de.state.currentPlaybackRate$,Be=de.state.availablePlaybackRates$,me=de.state.currentSubtitle$,D=de.state.availableSubtitlesList$,ce=de.state.canDownload,Pe=de.state.hasMpegSources$,Ye=de.ui.settingsMenu.visible$,dt=de.ui.settingsMenu.openedByBtnKeyboard$,Ae=de.ui.settingsMenu.ref$,ye=de.ui.isMobile,Me=de.ui.mobileNotReportControlHidden$,rt=de.state.canChangePlaybackSpeed$,vt=de.state.trafficSavingEnabled$,lt=de.state.highQualityEnabled$,kt=de.ui.playerSize,st=de.ui.debugPanelVisible,gt=de.state.isInteractiveTime$,Kt=de.ui.additionalSettingsMenuItems$,jt=de.ui.t,De=de.actions.internal.downloadVideo,se=de.actions.internal.closeSettingsMenu,Q=de.actions.internal.openSettingsSubMenu,ae=de.actions.internal.closeSettingsSubMenu,_e=te(!1),Ce=te(void 0),Oe=d1();We(()=>{!n()&&Oe.current&&(ae(fe[Oe.current]),Oe.popAllSubMenus())}),We(()=>{n()||O(Ce,void 0)}),We(()=>{!Oe.current&&r(Ce)&&Ih(ne,r(Ce))}),We(()=>{Z()&&Ae.set(Z())});function ut(wt){return Ct(this,null,function*(){Oe.pushSubMenu(wt),yield fo(),Q(wt,fe[wt])})}function Gt(wt){var Wt;wt==null||wt.stopPropagation(),a()||(Wt=e.returnFocus)==null||Wt.call(e),se(),O(_e,!1)}function Ze(wt,Wt){de.actions.internal.setQuality(wt,{appliesTo:Wt}),Gt()}function pt(wt){de.actions.internal.setAudioStream(wt),Gt()}function Je(wt,Wt){de.actions.internal.setTrafficSavingEnabled(wt,Wt),Re.features.qualityDetailsSubMenuEnabled&&Gt()}function Pt(wt,Wt){de.actions.internal.setHighQualityEnabled(wt,Wt),Gt()}function ai(wt){de.actions.internal.setPlaybackRate(wt),Gt()}function Ge(wt){de.actions.internal.setSubtitle(wt),Gt()}function ot(){De()}function ii(){L3(e.supportLink)&&window.open(e.supportLink,"_blank"),de.actions.internal.reportProblem(),de.actions.internal.pause()}function Pi(){Ua(de.actions.internal.getDebugTextData())}let Eo=()=>{let wt=de.actions.internal.getTraceTextData(),Wt=new Blob([...wt],{type:"application/json"}),Ao=window.URL.createObjectURL(Wt);js(Ao,"vk_player_trace_info","json")};function Hi(){st.set(!s())}function Po(){O(_e,!0)}function zo(){O(_e,!1)}function Lt(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-J()}px; overflow: auto;`}let _t=m(()=>ce&&u()&&!f()),z=m(()=>Re.features.trafficSaving&&!f()&&_()&&!Re.features.qualityDetailsSubMenuEnabled),Yt=m(()=>p().length>0&&!f()),Fi=m(()=>!!$()&&!f()),Li=m(()=>Re.features.audioLanguages&&w().length>=2&&!f()),hi=m(()=>!f());Ut(()=>gt.subscribe(wt=>{wt&&!d()&&!r(_e)&&!a()&&Gt()}));let oi=m(()=>{let wt=[r(hi)&&"QUALITY_SETTINGS",r(Li)&&"AUDIO_LANGUAGES",r(Fi)&&"PLAYBACK_RATE",r(Yt)&&"SUBTITLES",r(z)&&"TRAFFIC_SAVING_SWITCH",r(_t)&&"DOWNLOAD",Re.showSupport&&"SHOW_SUPPORT","COPY_DATA",Re.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Wt=>!!Wt);return _1({items:wt,context:{qualityDetailsSubMenuEnabled:Re.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:I(),selectPlaybackRate:ai,trafficSavingEnabled:P(),toggleTrafficSaving:Je,currentQuality:A()||b1.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:ot,debugPanelVisible:s(),onCopyDataClick:Pi,onReportProblemClick:ii,onSaveTraceDataClick:Eo,toggleShowDebugInfo:Hi},additionalSettingsMenuItems:V()})}),ao=m(()=>h1({subMenuId:Oe.current,context:{availablePlaybackRates:y(),selectPlaybackRate:ai,trafficSavingEnabled:P(),toggleTrafficSaving:Je,currentQuality:A()||b1.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:U()||!1,availableQualities:j(),highQualityEnabled:F(),toggleHighQuality:Pt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:se,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:pt,selectQuality:Ze,selectSubtitle:Ge}}));var ho=B3();let Ui;var qo=h(ho);{var Ht=wt=>{var Wt=N3();let Ao;Wt.__keydown=[V3,se];var zi=h(Wt);{var ci=li=>{var yt=R3();let _i;var qi=h(yt),Vi=h(qi,!0);g(qi);var bo=M(qi,2);bo.__click=Gt,g(yt),k((Si,$o)=>{_i=ie(yt,1,"item header svelte-17or3al",null,_i,Si),ge(Vi,$o)},[()=>({mobile:d()}),()=>jt("submenu_settings")]),b(li,yt)};R(zi,li=>{d()&&li(ci)})}var _o=M(zi,2);let Ko;yi(_o,21,()=>r(oi),li=>li.id,(li,yt)=>{var _i=Ke(),qi=pe(_i);{var Vi=Si=>{pm(Si,{get isMobile(){return d()},get id(){return r(yt).id},get icon(){return r(yt).icon},get label(){return r(yt).label},get ariaLabel(){return r(yt).ariaLabel},get value(){return r(yt).value},get valueComponent(){return r(yt).valueComponent},onClick:()=>{ut(r(yt).children),O(Ce,ve(r(yt).id))},get ref(){return ne[r(yt).id]},set ref($o){ne[r(yt).id]=$o}})},bo=(Si,$o)=>{{var Tn=Ci=>{fm(Ci,{get isMobile(){return d()},get id(){return r(yt).id},get onClick(){return r(yt).onClick},get icon(){return r(yt).icon},get label(){return r(yt).label},get ariaLabel(){return r(yt).ariaLabel},closeSettings:Gt})},an=(Ci,In)=>{{var ln=Mo=>{vm(Mo,{get isMobile(){return d()},get id(){return r(yt).id},get onClick(){return r(yt).onClick},get icon(){return r(yt).icon},get label(){return r(yt).label},get ariaLabel(){return r(yt).ariaLabel},get enabled(){return r(yt).enabled},get tooltipText(){return r(yt).tooltipText},get maxTooltipWidth(){return r(yt).maxTooltipWidth}})};R(Ci,Mo=>{r(yt).type==="SWITCH"&&Mo(ln)},In)}};R(Si,Ci=>{r(yt).type==="CLICK"?Ci(Tn):Ci(an,!1)},$o)}};R(qi,Si=>{r(yt).type==="OPEN_SUB_MENU"?Si(Vi):Si(bo,!1)})}b(li,_i)}),g(_o),ct(_o,li=>Z(li),()=>Z()),g(Wt),k((li,yt,_i)=>{Ao=ie(Wt,1,"settings-menu menu svelte-17or3al",null,Ao,li),Ko=ie(_o,1,"items",null,Ko,yt),tt(_o,_i)},[()=>({desktop:!d(),mobile:d(),hidden:!!Oe.current}),()=>({mobile:d()}),Lt]),Et("mouseenter",Wt,Po),Et("mouseleave",Wt,zo),b(wt,Wt)};R(qo,wt=>{n()&&wt(Ht)})}var ui=M(qo,2);yi(ui,17,()=>r(ao),wt=>wt.id,(wt,Wt)=>{let Ao=m(()=>{var zi;return(zi=r(Wt).minWidth)!=null?zi:137});um(wt,{get isMobile(){return d()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return Oe.popSubMenu},get id(){return r(Wt).id},get title(){return r(Wt).title},closeSettingsMenu:se,openSubMenuList:ut,get items(){return r(Wt).items},get minWidth(){return r(Ao)},get refMenuItems(){return ne},get listRef(){return fe[r(Wt).id]},set listRef(zi){fe[r(Wt).id]=zi}})}),g(ho),k(wt=>Ui=ie(ho,1,"settings-menu-container svelte-17or3al",null,Ui,wt),[()=>({mobile:d(),hidden:!n()})]),b(t,ho),K(),o()}at(["keydown","click"]);var O3=t=>t;function $1(t,{delay:e=0,duration:i=400,easing:o=O3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var H3=L('<button class="button svelte-1sbbskl"> </button>'),F3={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 km(t,e){G(t,F3);var i=H3();i.__click=function(...n){var a;(a=e.onClick)==null||a.apply(this,n)};var o=h(i,!0);g(i),k(()=>ge(o,e.label)),b(t,i)}at(["click"]);var U3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),z3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
307
  /**
308
308
  * \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 Id(t,e){K(e,!0),G(t,U3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Wt(),{ui:{t:n}}=ke(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=F3(),d=h(s),l=h(d),u=h(l),f=h(u);Cd(f,{message:a}),g(u);var _=M(u,2);{var p=w=>{let y=m(()=>n("slow_video_notification_button"));wm(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};B(_,w=>{o||w(p)})}g(l);var $=M(l,2);ta($,{get onClick(){return e.onClose}}),g(d),g(s),lp(3,d,()=>h1,()=>({duration:i})),b(t,s),W()}var kd="annotation",tu=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",kd),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="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";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=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},q3=(t,e,i,o,n,a,s,d,l,u,f,_,p,$,w,y,S)=>{var I;if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(u))return f();if((I=_())==null||I.focus(),!p()){$.firstStart(),w($.uiConfig.controls.hideTimeoutCursor);return}(!$.uiConfig.preventPauseOnVideoClick||y()!==b1.PLAYING)&&$.store.actions.internal.togglePlay(),w($.uiConfig.controls.hideTimeoutCursor)}},K3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},W3=L("<div><!></div>"),Q3=L('<div class="spherical-video-icon svelte-1b9vdl1"><!></div>'),G3=L("<div><!></div>"),Y3=L('<div class="settings-menu svelte-1b9vdl1"><!></div>'),j3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Z3=L('<div><div data-testid="video-container"></div></div> <!>',1),X3=L('<div class="player-wrapper svelte-1b9vdl1"><!> <div class="overlay-container"></div></div>'),J3={hash:"svelte-1b9vdl1",code:`.player-wrapper.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1b9vdl1 .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-1b9vdl1 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-1b9vdl1,
310
- .video-container.svelte-1b9vdl1,
311
- .ads-container.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1b9vdl1 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1b9vdl1 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1b9vdl1 {transition:none;}.nocursor.svelte-1b9vdl1 {cursor:none;}.ads-container.svelte-1b9vdl1 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-1b9vdl1 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function Sm(t,e){K(e,!0),G(t,J3);let[i,o]=Ue(),n=()=>C(Zo,"$notificationsToShow$",i),a=()=>C(Ro,"$playerPhase",i),s=()=>C(ao,"$isLoaderVisible",i),d=()=>C(si,"$adPlaybackState",i),l=()=>C(qt,"$crashed",i),u=()=>C(In,"$isInteractiveTime$",i),f=()=>C(H,"$settingsMenuVisible",i),_=()=>C(Gi,"$isInteractiveExpectation$",i),p=()=>C(Bo,"$controlsVisible",i),$=()=>C(Go,"$touched",i),w=()=>C(An,"$graphIsOpened$",i),y=()=>C(wo,"$isFullscreen",i),S=()=>C(jn,"$autoplayNextEnabled$",i),I=()=>C(Dt,"$postrollPassed",i),P=()=>C(lo,"$isEnded$",i),A=()=>C(Io,"$cursorInside",i),E=()=>C(wi,"$rotateAlpha",i),T=()=>C(li,"$playerSize",i),R=()=>C(En,"$fakeIsPlaying$",i),z=()=>C(Ln,"$bottomNoSmooth",i),j=()=>C(pn,"$interactiveTimeIndicator",i),U=()=>C(bt,"$is3DVideo",i),X=()=>C(ii,"$contextMenuVisible$",i),ee=()=>C(ui,"$playbackState$",i),ne=()=>C(kn,"$hotKeyMapData",i),ue=()=>C(ai,"$scrubbingInProgress",i),de=()=>C(Ui,"$volumeChangingInProgress",i),Ve=()=>C(co,"$chromecastConnected$",i),Be=()=>C(po,"$controlsTimeoutActive",i),J=()=>C(We,"$settingsMenuOpenedByKeyboard",i),Le=()=>C(Nr,"$contextMenuOpenedByKeyboard$",i),Z=()=>C(_r,"$contextMenuButtonRef$",i),N=()=>C(er,"$contextMenuOpenedByHotKey$",i),Re=()=>C(br,"$contextMenuLastActiveElem$",i),we=()=>C(So,"$isFullscreenOpenedByKeyboard",i),se=()=>C(xt,"$isPlaying$",i),Ne=()=>C(Ct,"$language$",i),pe=()=>C(Qi,"$icon3DVideoVisible",i),D=()=>C(Wo,"$chromecastDeviceName$",i),ce=()=>C(Tn,"$currentSubtitle$",i),Pe=()=>C(Co,"$currentSubtitleCaptions$",i),Ge=()=>C(Ei,"$position$",i),lt=()=>C(Qo,"$realDuration$",i),Ae=()=>C(pi,"$isLive$",i),xe=()=>C(Fi,"$duration$",i),Me=()=>C(fn,"$contextMenuPosition$",i),rt=()=>C(Pi,"$showHotKeyMap",i),ft=()=>C(mi,"$debugPanelVisible",i),it=v(e,"videoContainer",15),Bt=v(e,"adsSlotId",3,void 0),st=v(e,"adsParams",3,void 0),mt=v(e,"adsPreviewParam",3,void 0),zt=v(e,"adsAutoplayParam",3,void 0),Kt=v(e,"duration",3,void 0),De=v(e,"logoTargetUrl",3,""),re=v(e,"showNextPrevButtons",3,!1),Q=v(e,"nextButtonActive",3,!1),ae=v(e,"prevButtonActive",3,!1),fe=v(e,"endScreenVideoTitle",3,void 0),Te=v(e,"endScreenVideoThumb",3,void 0),He=v(e,"isOneVideoPlaylist",3,!1),ct=v(e,"shadowRootContainer",3,void 0),Nt=v(e,"outerContainerRef",3,void 0),Ke=v(e,"playerStarted",3,!1),gt=v(e,"fullScreenTarget",3,void 0),Je=v(e,"showMiniTimer",3,!1),yt=v(e,"showEndScreen",3,!0),jt=v(e,"keyboardControls",15),je=e.store.getLogger().createComponentLog("Root component"),Ct=e.store.interfaceLanguage$,ui=e.store.state.playbackState$,si=e.store.ads.playbackState,Ei=e.store.state.positionWithScrubbing$,Fi=e.store.state.duration$,Ro=e.store.playerPhase,wo=e.store.ui.isFullscreen,So=e.store.ui.isFullscreenOpenedByKeyboard,Bo=e.store.ui.controlsVisible,H=e.store.ui.settingsMenu.visible$,We=e.store.ui.settingsMenu.openedByBtnKeyboard$,ai=e.store.ui.scrubbingInProgress,Ui=e.store.ui.volumeChangingInProgress,ii=e.store.ui.contextMenu.visible$,mi=e.store.ui.debugPanelVisible,ao=e.store.state.isLoaderVisible,lo=e.store.state.isEnded$,co=e.store.state.chromecastConnected$,Wo=e.store.state.chromecastDeviceName$,Dt=e.store.ads.postrollPassed,pi=e.store.state.isLive$,xt=e.store.state.isPlaying$,qt=e.store.state.crashed$,Wi=e.store.webApi.annotationsApi,Xt=e.store.webApi.pictureInPictureApi,Tn=e.store.state.currentSubtitle$,Co=e.store.state.currentSubtitleCaptions$,Qo=e.store.state.duration$,li=e.store.ui.playerSize,bt=e.store.ui.is3DVideo,Qi=e.store.ui.icon3DVideoVisible,wi=e.store.ui.rotateAlpha,fi=e.store.state.isInteractive,In=e.store.state.isInteractiveTime$,Gi=e.store.state.isInteractiveExpectation$,zi=e.store.state.hasInteractiveBranches,Go=e.store.ui.touched,kn=e.store.ui.modals.hotKeyMap.data,Pi=e.store.ui.modals.hotKeyMap.show,un=e.store.ui.overlayContainer$,pn=e.store.ui.controls.interactiveTimeIndicator,No=e.store.state.showInteractiveTimeIndicator,fn=e.store.ui.contextMenu.position$,Mr=e.store.actions.internal.setQuality,dr=e.store.actions.internal.closeSettingsMenu,jn=e.store.ui.autoplayNextEnabled$,{fakeIsPlaying$:En,notifications$:Pn,graphIsOpened$:An}=so(),uo=te(void 0),et=te(void 0),Yo=te(void 0),mn=te(void 0),cr,Mn,jo;kn.set(hh());let{closeNotification:Zn,notificationsToShow$:Zo}=Pn,vn=m(()=>!!n().slow_video),Ri=()=>Zn("slow_video"),To=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),gn=te(void 0),Ln=le(!1),ur,po=le(!1),Do=le(),Io=le(!1),Vn=te(!1),fo=te(!1),Yi=te(!1),Rn=te(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Xo=m(()=>u()&&!f()&&!(r(Vn)||r(fo))&&!(r(Yi)&&!_())),pr=!0,Bn=m(()=>e.uiConfig.features.thumbTimer&&Je()&&a()==="video"&&!p()&&!l()&&!fi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),fr=m(()=>a()==="video"&&!w()&&y()),Nn=te(!1),Dn=m(()=>(yt()||e.showAutoplayNext&&S())&&!!fe()&&!!Te()&&(e.showAds&&I()||!e.showAds)&&P()&&!l()&&!r(Nn)),Lr=m(()=>A()&&!(p()||r(Dn))&&!u()),Xn=te(!1),mr=m(()=>it()&&E()%180?T().height/T().width:1),Vr=m(()=>R()!==null),{toggle:On}=En,Jt=!1,Jo=null;Xt==null||Xt.setContext(wl());let vr=()=>{e.autoplay&&!fi&&e.uiConfig.controls.showOnStartupAtAutoplay&&ut(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:vr});let gr=()=>{window.clearTimeout(cr),po.set(!1)},ot=()=>{window.clearTimeout(Mn),Do.set(null)},ut=ye=>{gr(),po.set(!0),cr=window.setTimeout(()=>po.set(!1),ye);let Pt=ye-100;ur=window.setTimeout(()=>{z()&&Ln.set(!1)},Pt>0?Pt:ye)},Si=(ye,Pt)=>{ot(),Do.set(Pt),Mn=window.setTimeout(()=>Do.set(null),ye)},ji=bt.subscribe(ye=>{Qi.set(ye),ye&&(window.clearTimeout(jo),jo=window.setTimeout(()=>Qi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Zi=()=>St(this,null,function*(){var Pt,oi,Zt,vo;let ye=ys();if(ye){let Ni=Ol(),ni=Ho();ye=Ni===ni||Ni===ct()}if(ye){ut(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Xt==null?void 0:Xt.remove()}catch(Ni){je({message:String(Ni)})}}wo.set(ye),e.store.getAdmanWrapper().setFullscreen(ye),y()?(oi=(Pt=e.store.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||oi.call(Pt):(vo=(Zt=e.store.callbacks)==null?void 0:Zt.onFullscreenExit)==null||vo.call(Zt)}),ko=ye=>{let{width:Pt,height:oi}=ye.target;li.set({width:Pt,height:oi})},Oo=()=>{let{width:ye,height:Pt}=r(uo).getBoundingClientRect();li.set({width:ye,height:Pt})};Ht(()=>{var Pt;return kc(Zi),e.uiConfig.features.annotationsInside&&(Wi==null||Wi.init(r(uo))),Xs(Xt)&&(Xt==null||Xt.assignPlayerContainer(r(uo)),Xt==null||Xt.registryExternalEventHandlers({resize:ko,leavepictureinpicture:Oo})),e.interactiveContainer&&((Pt=it().parentElement)==null||Pt.insertBefore(e.interactiveContainer,it().nextSibling)),()=>{window.clearTimeout(cr),window.clearTimeout(ur),window.clearTimeout(Mn),window.clearTimeout(jo),ji(),Xt==null||Xt.dispose().catch(oi=>{je({message:String(oi)})}),Ec(Zi)}});let Ho=()=>{let ye=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Nt()?r(uo):Nt(),Pt=ye.getRootNode(),oi=Pt instanceof ShadowRoot?Pt.host:Pt,Zt=gt()instanceof HTMLElement&&gt().contains(oi);return e.uiConfig.allowChangingFullscreenTarget&&gt()&&Zt?gt():ye},Eo=()=>St(this,null,function*(){ys()?(yield Ic(document),je({message:"exit fullscreen"})):(je({message:"request fullscreen"}),yield Tc(Ho()))}),Xe=()=>{dr(),ii.set(!1)},Mt=ye=>{w()||(ye.preventDefault(),ii.set(!0),fn.set({left:ye.clientX,top:ye.clientY}))};function Ai(){Io.set(!0),fi||ut(e.uiConfig.controls.hideTimeoutCursor)}function Xi(){fi||(Ln.set(!0),ut(e.uiConfig.controls.hideTimeoutCursor))}function Ci(){Io.set(!1),O(fo,!1),O(Vn,!1),Jt=!1,e.store.actions.internal.releaseCamera(),ut(e.uiConfig.controls.hideTimeout)}function Ti(ye){return ye?ye.offsetTop+Ti(ye.offsetParent):0}function Bi(ye){return ye?ye.offsetLeft+Bi(ye.offsetParent):0}function en(ye){if(j()&&No){let Pt=ye.currentTarget,oi=Ti(Pt),Zt=Bi(Pt),vo=ye.pageX-Zt,Ni=ye.pageY-oi,{left:ni,bottom:ci,right:bi}=j(),Ki=bi-ni;return vo>=ni-Ki&&Ni<=ci+Ki}}function qi(ye){if(r(uo)){let Pt=Ti(ye.currentTarget),oi=T().height,Zt=ye.pageY-Pt;if(en(ye)){O(fo,!1);return}Zt<40?O(fo,!0):Zt>oi-40?O(Vn,!0):(O(fo,!1),f()||O(Vn,!1))}}function hr(ye){qi(ye),r(Xo)||ut(e.uiConfig.controls.hideTimeoutCursor),U()&&Jt&&Jo&&e.store.actions.internal.moveCameraFocusPX(Jo.clientX-ye.clientX,Jo.clientY-ye.clientY,ye.timeStamp-Jo.timeStamp),Jo=ye}let tn=ye=>{ye.preventDefault(),ye.button===0&&(Jt=!0,e.store.actions.internal.holdCamera()),ut(e.uiConfig.controls.hideTimeoutCursor)},Rr=ye=>{ye.preventDefault(),ye.button===0&&(Jo=ye,Jt=!1,e.store.actions.internal.releaseCamera()),ut(e.uiConfig.controls.hideTimeoutCursor)},mo=ye=>{Xe(),Go.set(!0),ut(e.uiConfig.controls.hideTimeout),ye&&Si(e.uiConfig.controls.hideHotKeyHelpers,ye)},Br=()=>{var ye,Pt;Xe(),(ye=e.store.callbacks)!=null&&ye.onOpenHotKeyMap?(Pt=e.store.callbacks)==null||Pt.onOpenHotKeyMap(ne()):Pi.update(oi=>!oi)},Jn=()=>{Go.set(!0)},Nr=e.store.ui.contextMenu.openedByBtnKeyboard$,_r=e.store.ui.contextMenu.btnRef$,hn=te(void 0),er=e.store.ui.contextMenu.openedByHotKey$,br=e.store.ui.contextMenu.lastActiveElem$;Ze(()=>{un.set(r(gn))}),Ze(()=>{O(Yi,_e(r(Rn)&&ee()!==b1.PLAYING)),r(Rn)||_t(()=>O(Rn,!0))}),Ze(()=>{Bo.set((r(Yi)||P()||f()||ue()||de()||Ve()||Be())&&!r(Xo)&&(a()==="video"||a()==="ads")&&!l())}),Ze(()=>{!ue()&&r(Xn)&&!u()&&ut(e.uiConfig.controls.hideTimeoutCursor),_t(()=>O(Xn,_e(ue())))}),Ze(()=>{r(mn),f(),J(),_t(()=>Ua(r(mn),f(),J()))}),Ze(()=>{r(hn),X(),Le(),_t(()=>Ua(r(hn),X(),Le()))}),Ze(()=>{let ye=Z();ye&&(X(),_t(()=>Fa(ye,X(),Nr)))}),Ze(()=>{r(hn),X(),N(),_t(()=>Ua(r(hn),X(),N()))}),Ze(()=>{let ye=Re();ye&&(X(),_t(()=>wh(ye,X(),er)))}),Ze(()=>{var ye;!we()&&y()&&(_t(()=>So.set(!1)),(ye=jt())==null||ye.focus())}),Ze(()=>{w()&&Xe()});let Hn=F("video360");var Po=X3();kt("blur",Fs,Xe),Po.__mousemove=hr;var tr=h(Po);let $r=m(()=>a()==="ads"),tt=m(()=>r(Vr)?On:void 0);dt(Up(tr,{toggleFullscreen:Eo,hideContextMenu:Xe,showHotKeyHelpers:mo,showKeyMap:Br,get isAds(){return r($r)},get fakePlayButtonHandler(){return r(tt)},get nextButtonActive(){return Q()},get prevButtonActive(){return ae()},children:(ye,Pt)=>{var oi=Z3(),Zt=he(oi);let vo;Zt.__contextmenu=Mt,Zt.__mousedown=tn,Zt.__mouseup=Rr,Zt.__click=[q3,X,ii,f,H,Xe,P,lo,zi,Vr,On,jt,Ke,e,ut,ee,ui],Zt.__dblclick=[z3,pr,je,Eo,ut,e];var Ni=h(Zt);let ni;dt(Ni,bi=>it(bi),()=>it()),g(Zt);var ci=M(Zt,2);Tl(ci,Ne,bi=>{var Ki=j3(),Ao=he(Ki);let di=m(()=>a()!=="thumb"||l()||fi&&e.autoplay);xd(Ao,{get hidden(){return r(di)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Qr=M(Ao,2);{var qe=Fe=>{let ti=m(()=>{var go;return(go=e.live)==null?void 0:go.startTime});wd(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ti)}})};B(Qr,Fe=>{a()==="LiveWaitingStart"&&Fe(qe)})}var Ot=M(Qr,2);{var $i=Fe=>{ua(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(Ot,Fe=>{a()==="LiveWaitingRecover"&&Fe($i)})}var Mo=M(Ot,2);{var _n=Fe=>{ua(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(Mo,Fe=>{a()==="LiveWaitingRecord"&&Fe(_n)})}var Gr=M(Mo,2);{var Fn=Fe=>{var ti=W3();let go;var Ms=h(ti);Hl(Ms,{get adsSlotId(){return Bt()},get adsParams(){return st()},get adsPreviewParam(){return mt()},get adsAutoplayParam(){return zt()},get duration(){return Kt()}}),g(ti),k(Uo=>go=ie(ti,1,"ads-container svelte-1b9vdl1",null,go,Uo),[()=>({hidden:a()!=="ads"})]),b(Fe,ti)};B(Gr,Fe=>{e.showAds&&Ke()&&Fe(Fn)})}var Dr=M(Gr,2);{var el=Fe=>{let ti=m(()=>!yt()&&e.showAutoplayNext&&S());Op(Fe,{get title(){return fe()},get thumb(){return Te()},get isHide(){return r(ti)},clickCloseIcon:()=>O(Nn,!0)})};B(Dr,Fe=>{r(Dn)&&fe()&&Te()&&Fe(el)})}var Ps=M(Dr,2);{var yr=Fe=>{let ti=m(()=>!p());Jf(Fe,{get title(){return e.title},get isHidden(){return r(ti)}})};B(Ps,Fe=>{r(fr)&&Fe(yr)})}var fa=M(Ps,2);{var ma=Fe=>{let ti=m(()=>a()==="video"&&p());_d(Fe,{get isShifted(){return r(ti)}})};B(fa,Fe=>{U()&&Fe(ma)})}var As=M(fa,2);{var ht=Fe=>{var ti=Q3(),go=h(ti);Dl(go,{"aria-label":Hn}),g(ti),b(Fe,ti)};B(As,Fe=>{pe()&&Fe(ht)})}var vt=M(As,2);{var Ji=Fe=>{$d(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return D()}})};B(vt,Fe=>{Ve()&&Fe(Ji)})}var Fo=M(vt,2);{var eo=Fe=>{bd(Fe,{get shifted(){return p()},get captions(){return Pe()},get position(){return Ge()},get playerSize(){return T()}})};B(Fo,Fe=>{ce().value!=="off"&&Fe(eo)})}var ri=M(Fo,2);{var Mi=Fe=>{var ti=G3();ti.__contextmenu=Mt,ti.__click=[K3,X,ii,f,H,Xe];var go=h(ti);yd(go,{}),g(ti),b(Fe,ti)};B(ri,Fe=>{l()&&Fe(Mi)})}var us=M(ri,2);{var tl=Fe=>{let ti=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),go=m(()=>a()==="ads"),Ms=m(()=>e.canRewindLive&&lt()!==0);hd(Fe,{get bottomHidden(){return r(ti)},get bottomNoSmooth(){return z()},get showControls(){return p()},get isAds(){return r(go)},get canRewindLive(){return r(Ms)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return De()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return re()},get nextButtonActive(){return Q()},get prevButtonActive(){return ae()},get isOneVideoPlaylist(){return He()},customFullscreenSupported:pr,toggleFullscreen:Eo,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(et)},set playerControlsWrapperRef(Uo){O(et,_e(Uo))},get playerControlsRef(){return r(Yo)},set playerControlsRef(Uo){O(Yo,_e(Uo))}})};B(us,Fe=>{Ke()&&Fe(tl)})}var Hd=M(us,2);{var pu=Fe=>{var ti=Y3(),go=h(ti);let Ms=m(()=>{var Uo;return(Uo=r(Yo))==null?void 0:Uo.clientHeight});Td(go,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Ms)},returnFocus:()=>{var Uo;return(Uo=jt())==null?void 0:Uo.focus()},get ref(){return r(mn)},set ref(Uo){O(mn,_e(Uo))}}),g(ti),b(Fe,ti)};B(Hd,Fe=>{!Ve()&&a()!=="ads"&&Fe(pu)})}var Fd=M(Hd,2);let va=m(()=>!r(Bn));Ul(Fd,{get isLive(){return Ae()},get isHidden(){return r(va)},get isPlaying(){return se()},get position(){return Ge()},get duration(){return xe()}});var Ud=M(Fd,2);Yf(Ud,{data:Do});var il=M(Ud,2);Dp(il,{get supportLink(){return e.supportLink},returnFocus:()=>{var Fe;return(Fe=jt())==null?void 0:Fe.focus()},get visible(){return X()},get playerContainerRef(){return r(uo)},get controlsContainerRef(){return r(et)},get position(){return Me()},get menuElementRef(){return r(hn)},set menuElementRef(Fe){O(hn,_e(Fe))}});var ol=M(il,2);{var fu=Fe=>{Id(Fe,{onClose:Ri,onSelectAutoQuality:()=>{Mr("auto"),Ri()}})};B(ol,Fe=>{r(vn)&&Fe(fu)})}var nl=M(ol,2);{var rl=Fe=>{oa(Fe,{})};B(nl,Fe=>{r(To)&&Fe(rl)})}var sl=M(nl,2);{var mu=Fe=>{Kp(Fe,{})};B(sl,Fe=>{rt()&&Fe(mu)})}var al=M(sl,2);{var vu=Fe=>{Wl(Fe,{})};B(al,Fe=>{ft()&&Fe(vu)})}var gu=M(al,2);El(gu,()=>"slot",!1,(Fe,ti)=>{Ce(Fe,null,{name:kd})}),b(bi,Ki)}),k((bi,Ki)=>{vo=ie(Zt,1,"video-wrapper svelte-1b9vdl1",null,vo,bi),ni=ie(Ni,1,"video-container svelte-1b9vdl1",null,ni,Ki),nt(Ni,`transform: rotate(${E()}deg) scale(${r(mr)})`),Oe(Ni,"data-is-playing",se())},[()=>({hidden:a()!=="video",nocursor:r(Lr)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(ye,oi)},$$slots:{default:!0}}),ye=>jt(ye),()=>jt());var Ft=M(tr,2);dt(Ft,ye=>O(gn,ye),()=>r(gn)),g(Po),dt(Po,ye=>O(uo,ye),()=>r(uo)),kt("mouseenter",Po,Ai),kt("mouseleave",Po,Ci),kt("click",Po,Jn,!0),kt("focusin",Po,Xi,!0),b(t,Po),W(),o()}at(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as Ed,PlaybackState as dx}from"@vkontakte/videoplayer-core/es2015";import{noop as cx}from"@vkontakte/videoplayer-shared/es2015";var ex=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),tx=L("<div><!></div>"),ix={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;
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 Id(t,e){q(e,!0),G(t,z3);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=U3(),d=h(s),l=h(d),u=h(l),f=h(u);Cd(f,{message:a}),g(u);var _=M(u,2);{var p=w=>{let y=m(()=>n("slow_video_notification_button"));km(w,{get label(){return r(y)},get onClick(){return e.onSelectAutoQuality}})};R(_,w=>{o||w(p)})}g(l);var $=M(l,2);oa($,{get onClick(){return e.onClose}}),g(d),g(s),mp(3,d,()=>$1,()=>({duration:i})),b(t,s),K()}var kd="annotation",su=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",kd),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="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";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 q3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),K3={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
+
311
+ animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
312
+
313
+ @keyframes svelte-f47ws8-videoPlayerStatusIconPopup {
314
+ from {
315
+ opacity: 0;
316
+ scale: 0.6;
317
+ }
318
+
319
+ 10% {
320
+ opacity: 1;
321
+ scale: 1;
322
+ animation-timing-function: ease-in;
323
+ }
324
+
325
+ 75% {
326
+ opacity: 1;
327
+ scale: 1;
328
+ }
329
+
330
+ 90% {
331
+ opacity: 0;
332
+ scale: 0.4;
333
+ animation-timing-function: ease-out;
334
+ }
335
+
336
+ to {
337
+ opacity: 0;
338
+ scale: 0;
339
+ }
340
+ }`};function Em(t,e){q(e,!0),G(t,K3);let[i,o]=Ue(),n=()=>C(s,"$isPlaying$",i),a=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=Se(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:_}}=Qt(),p=0,$=te(null),w=te(!1);We(()=>{O($,ve(n()?Pr:ds))}),We(()=>{O($,ve(a()?Es:null))}),We(()=>{if(u)return p=window.setTimeout(()=>{p=0,a()&&r($)===Es&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),O($,null)},r($)!==Es?f:_),()=>{p&&(window.clearTimeout(p),p=0)}}),We(()=>{n()&&!r(w)&&(O(w,!0),O($,null))});var y=Ke(),S=pe(y);{var I=P=>{var A=Ke(),E=pe(A);Qs(E,()=>r($),T=>{var V=q3(),U=h(V),j=h(U);let F=m(()=>a()==="prev");xi(j,()=>r($),(Z,J)=>{J(Z,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(F)}})}),g(U),g(V),k(()=>tt(U,`animation-duration: ${r($)!==Es?f:_}ms`)),b(T,V)}),b(P,A)};R(S,P=>{r($)&&u&&P(I)})}b(t,y),K(),o()}var W3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},Q3=(t,e,i,o,n,a,s,d,l,u,f,_,p,$,w,y,S)=>{var I;if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(u))return f();if((I=_())==null||I.focus(),!p()){$.firstStart(),w($.uiConfig.controls.hideTimeoutCursor);return}(!$.uiConfig.preventPauseOnVideoClick||y()!==x1.PLAYING)&&$.store.actions.internal.togglePlay(),w($.uiConfig.controls.hideTimeoutCursor)}},G3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},Y3=L("<div><!></div>"),j3=L('<div class="spherical-video-icon svelte-cy741x"><!></div>'),Z3=L("<div><!></div>"),X3=L('<div class="settings-menu svelte-cy741x"><!></div>'),J3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ex=L('<div><div data-testid="video-container"></div></div> <!>',1),tx=L('<div class="blocked svelte-cy741x"></div>'),ix=L('<div class="player-wrapper svelte-cy741x"><!> <div class="overlay-container"></div></div> <!>',1),ox={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 Pm(t,e){q(e,!0),G(t,ox);let[i,o]=Ue(),n=()=>C(Zi,"$notificationsToShow$",i),a=()=>C(zo,"$playerPhase",i),s=()=>C(ho,"$isLoaderVisible",i),d=()=>C(Eo,"$adPlaybackState",i),l=()=>C(Ao,"$crashed",i),u=()=>C(Si,"$isInteractiveTime$",i),f=()=>C(Yt,"$settingsMenuVisible",i),_=()=>C($o,"$isInteractiveExpectation$",i),p=()=>C(z,"$controlsVisible",i),$=()=>C(an,"$touched",i),w=()=>C(it,"$graphIsOpened$",i),y=()=>C(Lt,"$isFullscreen",i),S=()=>C(Fn,"$autoplayNextEnabled$",i),I=()=>C(ui,"$postrollPassed",i),P=()=>C(Ui,"$isEnded$",i),A=()=>C(Vo,"$cursorInside",i),E=()=>C(Vi,"$rotateAlpha",i),T=()=>C(yt,"$playerSize",i),V=()=>C(cn,"$fakeIsPlaying$",i),U=()=>C(lo,"$bottomNoSmooth",i),j=()=>C(Mo,"$interactiveTimeIndicator",i),F=()=>C(_i,"$is3DVideo",i),Z=()=>C(oi,"$contextMenuVisible$",i),J=()=>C(Pi,"$playbackState$",i),ne=()=>C(Ci,"$hotKeyMapData",i),fe=()=>C(Li,"$scrubbingInProgress",i),de=()=>C(hi,"$volumeChangingInProgress",i),Re=()=>C(qo,"$chromecastConnected$",i),Le=()=>C(fn,"$controlsTimeoutActive",i),ee=()=>C(Fi,"$settingsMenuOpenedByKeyboard",i),Ve=()=>C(Rr,"$contextMenuOpenedByKeyboard$",i),X=()=>C(_r,"$contextMenuButtonRef$",i),B=()=>C(gn,"$contextMenuOpenedByHotKey$",i),Ne=()=>C(Qr,"$contextMenuLastActiveElem$",i),re=()=>C(_t,"$isFullscreenOpenedByKeyboard",i),Ee=()=>C(Wt,"$isPlaying$",i),Be=()=>C(ii,"$language$",i),me=()=>C(qi,"$icon3DVideoVisible",i),D=()=>C(Ht,"$chromecastDeviceName$",i),ce=()=>C(_o,"$currentSubtitle$",i),Pe=()=>C(Ko,"$currentSubtitleCaptions$",i),Ye=()=>C(Hi,"$position$",i),dt=()=>C(li,"$realDuration$",i),Ae=()=>C(wt,"$isLive$",i),ye=()=>C(Po,"$duration$",i),Me=()=>C(lr,"$contextMenuPosition$",i),rt=()=>C(In,"$showHotKeyMap",i),vt=()=>C(ao,"$debugPanelVisible",i),lt=()=>C(dn,"$userActionsDisabled$",i),kt=v(e,"videoContainer",15),st=v(e,"adsSlotId",3,void 0),gt=v(e,"adsParams",3,void 0),Kt=v(e,"adsPreviewParam",3,void 0),jt=v(e,"adsAutoplayParam",3,void 0),De=v(e,"duration",3,void 0),se=v(e,"logoTargetUrl",3,""),Q=v(e,"showNextPrevButtons",3,!1),ae=v(e,"nextButtonActive",3,!1),_e=v(e,"prevButtonActive",3,!1),Ce=v(e,"endScreenVideoTitle",3,void 0),Oe=v(e,"endScreenVideoThumb",3,void 0),ut=v(e,"isOneVideoPlaylist",3,!1),Gt=v(e,"shadowRootContainer",3,void 0),Ze=v(e,"outerContainerRef",3,void 0),pt=v(e,"playerStarted",3,!1),Je=v(e,"fullScreenTarget",3,void 0),Pt=v(e,"showMiniTimer",3,!1),ai=v(e,"showEndScreen",3,!0),Ge=v(e,"keyboardControls",15),ot=e.store.getLogger().createComponentLog("Root component"),ii=e.store.interfaceLanguage$,Pi=e.store.state.playbackState$,Eo=e.store.ads.playbackState,Hi=e.store.state.positionWithScrubbing$,Po=e.store.state.duration$,zo=e.store.playerPhase,Lt=e.store.ui.isFullscreen,_t=e.store.ui.isFullscreenOpenedByKeyboard,z=e.store.ui.controlsVisible,Yt=e.store.ui.settingsMenu.visible$,Fi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Li=e.store.ui.scrubbingInProgress,hi=e.store.ui.volumeChangingInProgress,oi=e.store.ui.contextMenu.visible$,ao=e.store.ui.debugPanelVisible,ho=e.store.state.isLoaderVisible,Ui=e.store.state.isEnded$,qo=e.store.state.chromecastConnected$,Ht=e.store.state.chromecastDeviceName$,ui=e.store.ads.postrollPassed,wt=e.store.state.isLive$,Wt=e.store.state.isPlaying$,Ao=e.store.state.crashed$,zi=e.store.webApi.annotationsApi,ci=e.store.webApi.pictureInPictureApi,_o=e.store.state.currentSubtitle$,Ko=e.store.state.currentSubtitleCaptions$,li=e.store.state.duration$,yt=e.store.ui.playerSize,_i=e.store.ui.is3DVideo,qi=e.store.ui.icon3DVideoVisible,Vi=e.store.ui.rotateAlpha,bo=e.store.state.isInteractive,Si=e.store.state.isInteractiveTime$,$o=e.store.state.isInteractiveExpectation$,Tn=e.store.state.hasInteractiveBranches,an=e.store.ui.touched,Ci=e.store.ui.modals.hotKeyMap.data,In=e.store.ui.modals.hotKeyMap.show,ln=e.store.ui.overlayContainer$,Mo=e.store.ui.controls.interactiveTimeIndicator,kn=e.store.state.showInteractiveTimeIndicator,lr=e.store.ui.contextMenu.position$,dr=e.store.actions.internal.setQuality,Hn=e.store.actions.internal.closeSettingsMenu,Fn=e.store.ui.autoplayNextEnabled$,dn=e.store.ui.userActionsDisabled,{fakeIsPlaying$:cn,notifications$:cr,graphIsOpened$:it}=so(),ji=te(void 0),ur=te(void 0),Un=te(void 0),un=te(void 0),pn,Lo,yo;Ci.set($h());let{closeNotification:Ki,notificationsToShow$:Zi}=cr,zn=m(()=>!!n().slow_video),qn=()=>Ki("slow_video"),Mr=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),Kn=te(void 0),lo=le(!1),xo,fn=le(!1),En=le(),Vo=le(!1),Wi=te(!1),Wo=te(!1),wo=te(!1),pr=te(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),mn=m(()=>u()&&!f()&&!(r(Wi)||r(Wo))&&!(r(wo)&&!_())),Wn=!0,Qn=m(()=>e.uiConfig.features.thumbTimer&&Pt()&&a()==="video"&&!p()&&!l()&&!bo&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Gn=m(()=>a()==="video"&&!w()&&y()),fr=te(!1),Yn=m(()=>(ai()||e.showAutoplayNext&&S())&&!!Ce()&&!!Oe()&&(e.showAds&&I()||!e.showAds)&&P()&&!l()&&!r(fr)),mr=m(()=>A()&&!(p()||r(Yn))&&!u()),jn=te(!1),Zn=m(()=>kt()&&E()%180?T().height/T().width:1),si=m(()=>V()!==null),{toggle:vr}=cn,vn=!1,Qo=null;ci==null||ci.setContext(Sl());let nt=()=>{e.autoplay&&!bo&&e.uiConfig.controls.showOnStartupAtAutoplay&&ni(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:nt});let At=()=>{window.clearTimeout(pn),fn.set(!1)},Ti=()=>{window.clearTimeout(Lo),En.set(null)},ni=Te=>{At(),fn.set(!0),pn=window.setTimeout(()=>fn.set(!1),Te);let ft=Te-100;xo=window.setTimeout(()=>{U()&&lo.set(!1)},ft>0?ft:Te)},Xi=(Te,ft)=>{Ti(),En.set(ft),Lo=window.setTimeout(()=>En.set(null),Te)},So=_i.subscribe(Te=>{qi.set(Te),Te&&(window.clearTimeout(yo),yo=window.setTimeout(()=>qi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Co=()=>Ct(this,null,function*(){var ft,Rt,zt,Yi;let Te=xs();if(Te){let pi=Ol(),Zt=et();Te=pi===Zt||pi===Gt()}if(Te){ni(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ci==null?void 0:ci.remove()}catch(pi){ot({message:String(pi)})}}Lt.set(Te),e.store.getAdmanWrapper().setFullscreen(Te),y()?(Rt=(ft=e.store.callbacks)==null?void 0:ft.onFullscreenEnter)==null||Rt.call(ft):(Yi=(zt=e.store.callbacks)==null?void 0:zt.onFullscreenExit)==null||Yi.call(zt)}),Go=Te=>{let{width:ft,height:Rt}=Te.target;yt.set({width:ft,height:Rt})},Yo=()=>{let{width:Te,height:ft}=r(ji).getBoundingClientRect();yt.set({width:Te,height:ft})};Ut(()=>{var ft;return Lc(Co),e.uiConfig.features.annotationsInside&&(zi==null||zi.init(r(ji))),ea(ci)&&(ci==null||ci.assignPlayerContainer(r(ji)),ci==null||ci.registryExternalEventHandlers({resize:Go,leavepictureinpicture:Yo})),e.interactiveContainer&&((ft=kt().parentElement)==null||ft.insertBefore(e.interactiveContainer,kt().nextSibling)),()=>{window.clearTimeout(pn),window.clearTimeout(xo),window.clearTimeout(Lo),window.clearTimeout(yo),So(),ci==null||ci.dispose().catch(Rt=>{ot({message:String(Rt)})}),Vc(Co)}});let et=()=>{let Te=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ze()?r(ji):Ze(),ft=Te.getRootNode(),Rt=ft instanceof ShadowRoot?ft.host:ft,zt=Je()instanceof HTMLElement&&Je().contains(Rt);return e.uiConfig.allowChangingFullscreenTarget&&Je()&&zt?Je():Te},Vt=()=>Ct(this,null,function*(){xs()?(yield Mc(document),ot({message:"exit fullscreen"})):(ot({message:"request fullscreen"}),yield Ac(et()))}),di=()=>{Hn(),oi.set(!1)},Qi=Te=>{w()||(Te.preventDefault(),oi.set(!0),lr.set({left:Te.clientX,top:Te.clientY}))};function Ii(){Vo.set(!0),bo||ni(e.uiConfig.controls.hideTimeoutCursor)}function Ri(){bo||(lo.set(!0),ni(e.uiConfig.controls.hideTimeoutCursor))}function Gi(){Vo.set(!1),O(Wo,!1),O(Wi,!1),vn=!1,e.store.actions.internal.releaseCamera(),ni(e.uiConfig.controls.hideTimeout)}function To(Te){return Te?Te.offsetTop+To(Te.offsetParent):0}function Ni(Te){return Te?Te.offsetLeft+Ni(Te.offsetParent):0}function gr(Te){if(j()&&kn){let ft=Te.currentTarget,Rt=To(ft),zt=Ni(ft),Yi=Te.pageX-zt,pi=Te.pageY-Rt,{left:Zt,bottom:Nr,right:Fe}=j(),It=Fe-Zt;return Yi>=Zt-It&&pi<=Nr+It}}function jo(Te){if(r(ji)){let ft=To(Te.currentTarget),Rt=T().height,zt=Te.pageY-ft;if(gr(Te)){O(Wo,!1);return}zt<40?O(Wo,!0):zt>Rt-40?O(Wi,!0):(O(Wo,!1),f()||O(Wi,!1))}}function Lr(Te){jo(Te),r(mn)||ni(e.uiConfig.controls.hideTimeoutCursor),F()&&vn&&Qo&&e.store.actions.internal.moveCameraFocusPX(Qo.clientX-Te.clientX,Qo.clientY-Te.clientY,Te.timeStamp-Qo.timeStamp),Qo=Te}let co=Te=>{Te.preventDefault(),Te.button===0&&(vn=!0,e.store.actions.internal.holdCamera()),ni(e.uiConfig.controls.hideTimeoutCursor)},Vr=Te=>{Te.preventDefault(),Te.button===0&&(Qo=Te,vn=!1,e.store.actions.internal.releaseCamera()),ni(e.uiConfig.controls.hideTimeoutCursor)},Xn=Te=>{di(),an.set(!0),ni(e.uiConfig.controls.hideTimeout),Te&&Xi(e.uiConfig.controls.hideHotKeyHelpers,Te)},Wr=()=>{var Te,ft;di(),(Te=e.store.callbacks)!=null&&Te.onOpenHotKeyMap?(ft=e.store.callbacks)==null||ft.onOpenHotKeyMap(ne()):In.update(Rt=>!Rt)},hr=()=>{an.set(!0)},Rr=e.store.ui.contextMenu.openedByBtnKeyboard$,_r=e.store.ui.contextMenu.btnRef$,Ro=te(void 0),gn=e.store.ui.contextMenu.openedByHotKey$,Qr=e.store.ui.contextMenu.lastActiveElem$;We(()=>{ln.set(r(Kn))}),We(()=>{O(wo,ve(r(pr)&&J()!==x1.PLAYING)),r(pr)||$t(()=>O(pr,!0))}),We(()=>{z.set((r(wo)||P()||f()||fe()||de()||Re()||Le())&&!r(mn)&&(a()==="video"||a()==="ads")&&!l())}),We(()=>{!fe()&&r(jn)&&!u()&&ni(e.uiConfig.controls.hideTimeoutCursor),$t(()=>O(jn,ve(fe())))}),We(()=>{r(un),f(),ee(),$t(()=>qa(r(un),f(),ee()))}),We(()=>{r(Ro),Z(),Ve(),$t(()=>qa(r(Ro),Z(),Ve()))}),We(()=>{let Te=X();Te&&(Z(),$t(()=>za(Te,Z(),Rr)))}),We(()=>{r(Ro),Z(),B(),$t(()=>qa(r(Ro),Z(),B()))}),We(()=>{let Te=Ne();Te&&(Z(),$t(()=>Th(Te,Z(),gn)))}),We(()=>{var Te;!re()&&y()&&($t(()=>_t.set(!1)),(Te=Ge())==null||Te.focus())}),We(()=>{w()&&di()});let br=H("video360");var Jn=ix();Et("blur",Us,di);var Xe=pe(Jn);Xe.__mousemove=Lr;var Ft=h(Xe);let $i=m(()=>a()==="ads"),hn=m(()=>r(si)?vr:void 0);ct(Gp(Ft,{toggleFullscreen:Vt,hideContextMenu:di,showHotKeyHelpers:Xn,showKeyMap:Wr,get isAds(){return r($i)},get fakePlayButtonHandler(){return r(hn)},get nextButtonActive(){return ae()},get prevButtonActive(){return _e()},children:(Te,ft)=>{var Rt=ex(),zt=pe(Rt);let Yi;zt.__contextmenu=Qi,zt.__mousedown=co,zt.__mouseup=Vr,zt.__click=[Q3,Z,oi,f,Yt,di,P,Ui,Tn,si,vr,Ge,pt,e,ni,J,Pi],zt.__dblclick=[W3,Wn,ot,Vt,ni,e];var pi=h(zt);let Zt;ct(pi,Fe=>kt(Fe),()=>kt()),g(zt);var Nr=M(zt,2);Qs(Nr,Be,Fe=>{var It=J3(),bi=pe(It);let No=m(()=>a()!=="thumb"||l()||bo&&e.autoplay);xd(bi,{get hidden(){return r(No)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Zo=M(bi,2);Em(Zo,{});var Gr=M(Zo,2);{var An=ze=>{let qe=m(()=>{var Do;return(Do=e.live)==null?void 0:Do.startTime});wd(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(qe)}})};R(Gr,ze=>{a()==="LiveWaitingStart"&&ze(An)})}var Br=M(Gr,2);{var il=ze=>{pa(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Br,ze=>{a()==="LiveWaitingRecover"&&ze(il)})}var Ms=M(Br,2);{var $r=ze=>{pa(ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Ms,ze=>{a()==="LiveWaitingRecord"&&ze($r)})}var ma=M(Ms,2);{var va=ze=>{var qe=Y3();let Do;var ps=h(qe);Hl(ps,{get adsSlotId(){return st()},get adsParams(){return gt()},get adsPreviewParam(){return Kt()},get adsAutoplayParam(){return jt()},get duration(){return De()}}),g(qe),k(Oo=>Do=ie(qe,1,"ads-container svelte-cy741x",null,Do,Oo),[()=>({hidden:a()!=="ads"})]),b(ze,qe)};R(ma,ze=>{e.showAds&&pt()&&ze(va)})}var Ls=M(ma,2);{var bt=ze=>{let qe=m(()=>!ai()&&e.showAutoplayNext&&S());Kp(ze,{get title(){return Ce()},get thumb(){return Oe()},get isHide(){return r(qe)},clickCloseIcon:()=>O(fr,!0)})};R(Ls,ze=>{r(Yn)&&Ce()&&Oe()&&ze(bt)})}var ht=M(Ls,2);{var Ji=ze=>{let qe=m(()=>!p());nm(ze,{get title(){return e.title},get isHidden(){return r(qe)}})};R(ht,ze=>{r(Gn)&&ze(Ji)})}var Bo=M(ht,2);{var eo=ze=>{let qe=m(()=>a()==="video"&&p());_d(ze,{get isShifted(){return r(qe)}})};R(Bo,ze=>{F()&&ze(eo)})}var ri=M(Bo,2);{var Ai=ze=>{var qe=j3(),Do=h(qe);Dl(Do,{"aria-label":br}),g(qe),b(ze,qe)};R(ri,ze=>{me()&&ze(Ai)})}var us=M(ri,2);{var ol=ze=>{$d(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return D()}})};R(us,ze=>{Re()&&ze(ol)})}var Od=M(us,2);{var _u=ze=>{bd(ze,{get shifted(){return p()},get captions(){return Pe()},get position(){return Ye()},get playerSize(){return T()}})};R(Od,ze=>{ce().value!=="off"&&ze(_u)})}var Hd=M(Od,2);{var ga=ze=>{var qe=Z3();qe.__contextmenu=Qi,qe.__click=[G3,Z,oi,f,Yt,di];var Do=h(qe);yd(Do,{}),g(qe),b(ze,qe)};R(Hd,ze=>{l()&&ze(ga)})}var Fd=M(Hd,2);{var Ud=ze=>{let qe=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Do=m(()=>a()==="ads"),ps=m(()=>e.canRewindLive&&dt()!==0);hd(ze,{get bottomHidden(){return r(qe)},get bottomNoSmooth(){return U()},get showControls(){return p()},get isAds(){return r(Do)},get canRewindLive(){return r(ps)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return se()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Q()},get nextButtonActive(){return ae()},get prevButtonActive(){return _e()},get isOneVideoPlaylist(){return ut()},customFullscreenSupported:Wn,toggleFullscreen:Vt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(ur)},set playerControlsWrapperRef(Oo){O(ur,ve(Oo))},get playerControlsRef(){return r(Un)},set playerControlsRef(Oo){O(Un,ve(Oo))}})};R(Fd,ze=>{pt()&&ze(Ud)})}var nl=M(Fd,2);{var bu=ze=>{var qe=X3(),Do=h(qe);let ps=m(()=>{var Oo;return(Oo=r(Un))==null?void 0:Oo.clientHeight});Td(Do,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ps)},returnFocus:()=>{var Oo;return(Oo=Ge())==null?void 0:Oo.focus()},get ref(){return r(un)},set ref(Oo){O(un,ve(Oo))}}),g(qe),b(ze,qe)};R(nl,ze=>{!Re()&&a()!=="ads"&&ze(bu)})}var rl=M(nl,2);let sl=m(()=>!r(Qn));Ul(rl,{get isLive(){return Ae()},get isHidden(){return r(sl)},get isPlaying(){return Ee()},get position(){return Ye()},get duration(){return ye()}});var al=M(rl,2);em(al,{data:En});var zd=M(al,2);qp(zd,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=Ge())==null?void 0:ze.focus()},get visible(){return Z()},get playerContainerRef(){return r(ji)},get controlsContainerRef(){return r(ur)},get position(){return Me()},get menuElementRef(){return r(Ro)},set menuElementRef(ze){O(Ro,ve(ze))}});var ll=M(zd,2);{var $u=ze=>{Id(ze,{onClose:qn,onSelectAutoQuality:()=>{dr("auto"),qn()}})};R(ll,ze=>{r(zn)&&ze($u)})}var qd=M(ll,2);{var yu=ze=>{ra(ze,{})};R(qd,ze=>{r(Mr)&&ze(yu)})}var Kd=M(qd,2);{var ha=ze=>{Zp(ze,{})};R(Kd,ze=>{rt()&&ze(ha)})}var Wd=M(Kd,2);{var Qd=ze=>{Wl(ze,{})};R(Wd,ze=>{vt()&&ze(Qd)})}var xu=M(Wd,2);El(xu,()=>"slot",!1,(ze,qe)=>{we(ze,null,{name:kd})}),b(Fe,It)}),k((Fe,It)=>{Yi=ie(zt,1,"video-wrapper svelte-cy741x",null,Yi,Fe),Zt=ie(pi,1,"video-container svelte-cy741x",null,Zt,It),tt(pi,`transform: rotate(${E()}deg) scale(${r(Zn)})`),He(pi,"data-is-playing",Ee())},[()=>({hidden:a()!=="video",nocursor:r(mr)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(Te,Rt)},$$slots:{default:!0}}),Te=>Ge(Te),()=>Ge());var _n=M(Ft,2);ct(_n,Te=>O(Kn,Te),()=>r(Kn)),g(Xe),ct(Xe,Te=>O(ji,Te),()=>r(ji));var Pn=M(Xe,2);{var er=Te=>{var ft=tx();b(Te,ft)};R(Pn,Te=>{lt()&&Te(er)})}Et("mouseenter",Xe,Ii),Et("mouseleave",Xe,Gi),Et("click",Xe,hr,!0),Et("focusin",Xe,Ri,!0),b(t,Jn),K(),o()}at(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as Ed,PlaybackState as fx}from"@vkontakte/videoplayer-core/es2015";import{noop as mx}from"@vkontakte/videoplayer-shared/es2015";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;
312
343
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
313
344
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
314
345
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -324,9 +355,9 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
324
355
  100% {
325
356
  opacity: 0;
326
357
  }
327
- }.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 iu(t,e){K(e,!0),G(t,ix);let i=v(e,"seekStep",3,0),o=te(!1),n=0,a=0,s=te(_e(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)};wn(()=>{window.clearTimeout(n)});var l=tx();l.__click=d;var u=h(l);{var f=_=>{var p=ex(),$=he(p),w=M($,2),y=h(w),S=h(y),I=M(S,2),P=M(I,2);g(y);var A=M(y,2),E=h(A,!0);g(A),g(w),k(T=>{var R,z,j,U;ie($,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),ie(S,1,`triangle ${(z=e.side)!=null?z:""}`,"svelte-nhq2ld"),ie(I,1,`triangle ${(j=e.side)!=null?j:""}`,"svelte-nhq2ld"),ie(P,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),me(E,T)},[()=>F("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,p)};B(u,_=>{r(o)&&_(f)})}g(l),k(()=>{var _;return ie(l,1,`double-click-area ${(_=e.side)!=null?_:""}`,"svelte-nhq2ld")}),b(t,l),W()}at(["click"]);var ox=(t,e,i)=>{e(!1),i()},nx=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),rx={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function Cm(t,e){K(e,!0),G(t,rx);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=ke(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),$()};Ht(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=ze(),I=he(S);{var P=A=>{var E=nx(),T=M(he(E),2),R=h(T),z=h(R),j=h(z,!0);g(z);var U=M(z,2);ta(U,{onClick:y}),g(R);var X=M(R,2);X.__click=[ox,u,_];var ee=h(X),ne=h(ee),ue=h(ne);let de;var Ve=M(ue,2);{var Be=N=>{Ql(N,{get isRunning(){return a()},onTimerEnded:w})};B(Ve,N=>{n()&&N(Be)})}g(ne),g(ee);var J=M(ee,2),Le=h(J),Z=h(Le,!0);g(Le),g(J),g(X),g(T),k((N,Re)=>{me(j,N),nt(ne,`background-image: url('${e.thumb}')`),de=ie(ue,1,"thumb-overlay svelte-1qdxi6t",null,de,Re),me(Z,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(A,E)};B(I,A=>{e.isHide||A(P)})}b(t,S),W(),o()}at(["click"]);import{clientChecker as sx}from"@vkontakte/videoplayer-core/es2015";var $1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ht(()=>{sx.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let s=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",s),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",s),a.removeEventListener("webkitendfullscreen",d)}},0))}),wn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as ax}from"@vkontakte/videoplayer-core/es2015";var ou=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 lx}from"@vkontakte/videoplayer-core/es2015";var y1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:a,currentFormat$:s,availableTextTracks$:d}=t.state,l=null,u=()=>e().querySelector("video"),f=()=>lx.device.isIOS&&Se(s)===ax.DASH_LIVE_CMAF,_=()=>{l==null||l(),l=null},p=$=>{if(_(),!f()||!$)return;let w=u();if(!w)return;let y=new ou(w),S=Se(d),I=Se(a),P=Se(n);for(let T of S)I.some(z=>z.value===T.id)&&y.attach(T,P.value===T.id);let A=d.subscribe(T=>{for(let R of T)y.updateSrc(R)}),E=()=>{let T=y.getCurrentShowingId();o(Se(a).find(R=>R.value===T))};w.textTracks.addEventListener("change",E),l=()=>{A(),y.detachAll(),w.textTracks.removeEventListener("change",E)}};Ht(()=>i.subscribe(p)),wn(_)};var ux=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},px=L("<!> <!>",1),fx=L("<div><!></div>"),mx=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),vx=L("<div><!></div>"),gx=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),hx=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),_x=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>'),bx={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,
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 au(t,e){q(e,!0),G(t,sx);let i=v(e,"seekStep",3,0),o=te(!1),n=0,a=0,s=te(ve(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)};wn(()=>{window.clearTimeout(n)});var l=rx();l.__click=d;var u=h(l);{var f=_=>{var p=nx(),$=pe(p),w=M($,2),y=h(w),S=h(y),I=M(S,2),P=M(I,2);g(y);var A=M(y,2),E=h(A,!0);g(A),g(w),k(T=>{var V,U,j,F;ie($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),ie(S,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),ie(I,1,`triangle ${(j=e.side)!=null?j:""}`,"svelte-nhq2ld"),ie(P,1,`triangle ${(F=e.side)!=null?F:""}`,"svelte-nhq2ld"),ge(E,T)},[()=>H("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,p)};R(u,_=>{r(o)&&_(f)})}g(l),k(()=>{var _;return ie(l,1,`double-click-area ${(_=e.side)!=null?_:""}`,"svelte-nhq2ld")}),b(t,l),K()}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 Am(t,e){q(e,!0),G(t,dx);let[i,o]=Ue(),n=()=>C(d,"$autoplayNextEnabled$",i),a=()=>C(l,"$timerNextVideoRunning$",i),s=Se(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,u=s.actions.internal.nextVideoClick,f=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,p=s.actions.internal.nextVideoAnnouncementAuto,$=s.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),$()};Ut(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=Ke(),I=pe(S);{var P=A=>{var E=lx(),T=M(pe(E),2),V=h(T),U=h(V),j=h(U,!0);g(U);var F=M(U,2);oa(F,{onClick:y}),g(V);var Z=M(V,2);Z.__click=[ax,u,_];var J=h(Z),ne=h(J),fe=h(ne);let de;var Re=M(fe,2);{var Le=B=>{Ql(B,{get isRunning(){return a()},onTimerEnded:w})};R(Re,B=>{n()&&B(Le)})}g(ne),g(J);var ee=M(J,2),Ve=h(ee),X=h(Ve,!0);g(Ve),g(ee),g(Z),g(T),k((B,Ne)=>{ge(j,B),tt(ne,`background-image: url('${e.thumb}')`),de=ie(fe,1,"thumb-overlay svelte-1qdxi6t",null,de,Ne),ge(X,e.title)},[()=>n()?H("end_screen_next_video"):H("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(A,E)};R(I,A=>{e.isHide||A(P)})}b(t,S),K(),o()}at(["click"]);import{clientChecker as cx}from"@vkontakte/videoplayer-core/es2015";var w1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ut(()=>{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))}),wn(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as ux}from"@vkontakte/videoplayer-core/es2015";var lu=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/es2015";var S1=({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,u=()=>e().querySelector("video"),f=()=>px.device.isIOS&&xe(s)===ux.DASH_LIVE_CMAF,_=()=>{l==null||l(),l=null},p=$=>{if(_(),!f()||!$)return;let w=u();if(!w)return;let y=new lu(w),S=xe(d),I=xe(a),P=xe(n);for(let T of S)I.some(U=>U.value===T.id)&&y.attach(T,P.value===T.id);let A=d.subscribe(T=>{for(let V of T)y.updateSrc(V)}),E=()=>{let T=y.getCurrentShowingId();o(xe(a).find(V=>V.value===T))};w.textTracks.addEventListener("change",E),l=()=>{A(),y.detachAll(),w.textTracks.removeEventListener("change",E)}};Ut(()=>i.subscribe(p)),wn(_)};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><div data-testid="video-container"></div></div> <!> <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);}.video-wrapper.svelte-dtyj47,
328
359
  .video-container.svelte-dtyj47,
329
- .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 Tm(t,e){var Ho,Eo;K(e,!0),G(t,bx);let[i,o]=Ue(),n=()=>C(jt,"$playerPhase",i),a=()=>C(So,"$isLoaderVisible",i),s=()=>C(gt,"$adPlaybackState",i),d=()=>C(Wo,"$crashed",i),l=()=>C(mn,"$notificationsToShow$",i),u=()=>C(Ke,"$playbackState$",i),f=()=>C(He,"$graphIsOpened$",i),_=()=>C(ui,"$interactiveHideMobileControls",i),p=()=>C(Bo,"$isEnded$",i),$=()=>C(wi,"$isInteractiveExpectation$",i),w=()=>C(Ct,"$controlsVisible",i),y=()=>C(Gi,"$touched",i),S=()=>C(Go,"$autoplayNextEnabled$",i),I=()=>C(ai,"$postrollPassed",i),P=()=>C(li,"$rotateAlpha",i),A=()=>C(Tn,"$playerSize",i),E=()=>C(jo,"$bottomNoSmooth",i),T=()=>C(xt,"$videoSize",i),R=()=>C(je,"$isFullscreen",i),z=()=>C(Je,"$position$",i),j=()=>C(yt,"$duration$",i),U=()=>C(kn,"$loadedMetadata",i),X=()=>C(si,"$settingsMenuVisible",i),ee=()=>C(Fi,"$scrubbingInProgress",i),ne=()=>C(Ro,"$volumeChangingInProgress",i),ue=()=>C(H,"$chromecastConnected$",i),de=()=>C(Qi,"$isInteractiveTime$",i),Ve=()=>C(lo,"$isActiveLive",i),Be=()=>C(Ei,"$settingsMenuOpenedByKeyboard",i),J=()=>C(ao,"$isPlaying$",i),Le=()=>C(Nt,"$language$",i),Z=()=>C(In,"$disabledControls$",i),N=()=>C(Co,"$is3DVideo",i),Re=()=>C(Qo,"$icon3DVideoVisible",i),we=()=>C(We,"$chromecastDeviceName$",i),se=()=>C(qt,"$currentSubtitle$",i),Ne=()=>C(Wi,"$currentSubtitleCaptions$",i),pe=()=>C(Xt,"$realDuration$",i),D=()=>C(mi,"$isLive$",i),ce=()=>C(wo,"$debugPanelVisible",i),Pe=v(e,"videoContainer",15),Ge=v(e,"adsSlotId",3,void 0),lt=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),xe=v(e,"adsAutoplayParam",3,void 0),Me=v(e,"duration",3,void 0),rt=v(e,"logoTargetUrl",3,""),ft=v(e,"showNextPrevButtons",3,!1),it=v(e,"nextButtonActive",3,!1),Bt=v(e,"prevButtonActive",3,!1),st=v(e,"endScreenVideoTitle",3,void 0),mt=v(e,"endScreenVideoThumb",3,void 0),zt=v(e,"isOneVideoPlaylist",3,!1),Kt=v(e,"shadowRootContainer",3,void 0),De=v(e,"outerContainerRef",3,void 0),re=v(e,"showMiniTimer",3,!1),Q=v(e,"fullScreenTarget",3,void 0),ae=v(e,"playerStarted",3,!1),fe=v(e,"showEndScreen",3,!0),{notifications$:Te,graphIsOpened$:He}=so(),ct=e.store.getLogger().createComponentLog("Root component"),Nt=e.store.interfaceLanguage$,Ke=e.store.state.playbackState$,gt=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,yt=e.store.state.duration$,jt=e.store.playerPhase,je=e.store.ui.isFullscreen,Ct=e.store.ui.controlsVisible,ui=e.store.ui.interactiveHideMobileControls,si=e.store.ui.settingsMenu.visible$,Ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,Fi=e.store.ui.scrubbingInProgress,Ro=e.store.ui.volumeChangingInProgress,wo=e.store.ui.debugPanelVisible,So=e.store.state.isLoaderVisible,Bo=e.store.state.isEnded$,H=e.store.state.chromecastConnected$,We=e.store.state.chromecastDeviceName$,ai=e.store.ads.postrollPassed,Ui=e.store.ui.mobileUnmuteButtonExpanded,ii=e.store.ui.mobileUnmuteButtonVisible,mi=e.store.state.isLive$,ao=e.store.state.isPlaying$,lo=e.store.state.isActiveLive$,co=e.store.state.isRewindableLive$,Wo=e.store.state.crashed$,Dt=e.store.webApi.annotationsApi,pi=e.store.webApi.pictureInPictureApi,xt=e.store.state.videoSize$,qt=e.store.state.currentSubtitle$,Wi=e.store.state.currentSubtitleCaptions$,Xt=e.store.state.duration$,Tn=e.store.ui.playerSize,Co=e.store.ui.is3DVideo,Qo=e.store.ui.icon3DVideoVisible,li=e.store.ui.rotateAlpha,bt=e.store.state.isInteractive,Qi=e.store.state.isInteractiveTime$,wi=e.store.state.isInteractiveExpectation$,fi=e.store.state.hasInteractiveBranches,In=e.store.ui.controls.disabledControls$,Gi=e.store.ui.touched,zi=e.store.ui.overlayContainer$,Go=e.store.ui.autoplayNextEnabled$,kn=e.store.state.loadedMetadata$,Pi=e.store.actions.internal.closeSettingsMenu,un=(Ho=e.store.callbacks)==null?void 0:Ho.onDisabledPlayPrevChapterClick,pn=(Eo=e.store.callbacks)==null?void 0:Eo.onDisabledSeekToInteractiveClick,No=e.store.actions.internal.setQuality,fn=te(void 0),Mr=te(void 0),dr=te(void 0),jn=te(void 0),En,Pn,An,uo=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),et=te(void 0),{closeNotification:Yo,notificationsToShow$:mn}=Te,cr=m(()=>!!l().slow_video),Mn=()=>Yo("slow_video"),jo=le(!1),Zn,Zo=te(!1),vn=m(()=>u()!==dx.PLAYING),Ri=te(!1),To=m(()=>f()||_()||!r(Zo)&&(p()&&!!fi||r(vn)&&$())),gn=te(!0),Ln=m(()=>e.uiConfig.features.thumbTimer&&re()&&n()==="video"&&!w()&&!d()&&!bt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),ur=te(!1),po=m(()=>(fe()||e.showAutoplayNext&&S())&&!!st()&&!!mt()&&(e.showAds&&I()||!e.showAds)&&p()&&!d()&&!r(ur)),Do=te(!1),Io=m(()=>Pe()&&P()%180?A().height/A().width:1);pi==null||pi.setContext(wl());let Vn=Xe=>{clearTimeout(Pn),Xe&&(ii.set(!0),Ui.set(!0),Pn=setTimeout(()=>{Ui.set(!1)},e.uiConfig.controls.collapseMobileUnmute),bt||Yi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Vn});let fo=()=>{clearTimeout(En),O(Zo,!1),_()&&ui.set(!1)},Yi=Xe=>{fo(),O(Zo,!0),En=setTimeout(()=>O(Zo,!1),Xe);let Mt=Xe-100;Zn=setTimeout(()=>{E()&&jo.set(!1)},Mt>0?Mt:Xe)},Rn=Co.subscribe(Xe=>{Qo.set(Xe),Xe&&(clearTimeout(An),An=setTimeout(()=>Qo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Xo=(...Mt)=>St(this,[...Mt],function*(Xe=ys()){var Ai,Xi,Ci,Ti,Bi,en;if(Xe&&!Ed.device.isIOS){let qi=Ol(),hr=Dn(),tn=Ed.browser.isSamsungBrowser&&qi===Kt();Xe=qi===hr||tn}if(Xe){Yi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield pi==null?void 0:pi.remove()}catch(qi){ct({message:String(qi)})}try{let qi=(Ai=T())!=null&&Ai.width&&((Xi=T())!=null&&Xi.height)?T():A();yield vh(qi)}catch(qi){ct({message:String(qi)})}}je.set(Xe),e.store.getAdmanWrapper().setFullscreen(Xe),R()?(Ti=(Ci=e.store.callbacks)==null?void 0:Ci.onFullscreenEnter)==null||Ti.call(Ci):(en=(Bi=e.store.callbacks)==null?void 0:Bi.onFullscreenExit)==null||en.call(Bi)}),pr=Xe=>{let Mt=Xe;Tn.set({width:Mt.target.width,height:Mt.target.height})};Ht(()=>{var Xe;return kc(Xo),e.uiConfig.features.annotationsInside&&(Dt==null||Dt.init(r(fn))),Xs(pi)&&(pi==null||pi.assignPlayerContainer(r(fn)),pi==null||pi.registryExternalEventHandlers({resize:pr})),O(gn,!Ed.device.isIphoneOrOldIpad),e.interactiveContainer&&((Xe=Pe().parentElement)==null||Xe.insertBefore(e.interactiveContainer,Pe().nextSibling)),()=>{clearTimeout(En),clearTimeout(Zn),clearTimeout(Pn),clearTimeout(An),Rn(),pi==null||pi.dispose().catch(Mt=>{ct({message:String(Mt)})}),Ec(Xo)}});let Bn=te(!0),fr=te(!0),Nn=Xe=>{let Mt=z()+(Xe==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Mt<0?(O(Bn,!1),Mt=0):Mt>=j()&&(O(fr,!1),Mt=j()),O(Ri,!0),e.seekTime(Mt)},Dn=()=>{let Xe=Ed.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!De()?r(fn):De(),Mt=Xe.getRootNode(),Ai=Mt instanceof ShadowRoot?Mt.host:Mt,Xi=Q()instanceof HTMLElement&&Q().contains(Ai);return e.uiConfig.allowChangingFullscreenTarget&&Q()&&Xi?Q():Xe},Lr=()=>St(this,null,function*(){try{if(ys())yield Ic(document),ct({message:"exit fullscreen"});else{if(ct({message:"request fullscreen"}),Ed.device.isIOS&&!U())return;yield Tc(Dn())}}catch(Xe){ct({message:String(Xe)})}}),Xn=()=>{Pi()},mr=Xe=>{if(Xe.preventDefault(),X()){Xn();return}if(!ae()){e.firstStart(),Yi(e.uiConfig.controls.hideTimeoutCursor);return}O(Ri,!1),w()?fo():Yi(e.uiConfig.controls.hideTimeoutMobile)},Vr=()=>{Gi.set(!0)},On=()=>{bt||(jo.set(!0),Yi(e.uiConfig.controls.hideTimeoutCursor))},Jt=Xe=>{un&&(un(Xe),Yi(e.uiConfig.controls.hideTimeoutMobile))},Jo=Xe=>{pn&&(pn(Xe),Yi(e.uiConfig.controls.hideTimeoutMobile))};Ze(()=>{zi.set(r(et))}),Ze(()=>{Ct.set((r(vn)||X()||ee()||ne()||ue()||!r(po)&&(p()||r(Zo)&&!r(Ri)))&&!r(To)&&n()==="video"&&!d())}),Ze(()=>{!ee()&&r(Do)&&!de()&&Yi(e.uiConfig.controls.hideTimeoutMobile),O(Do,_e(ee()))}),Ze(()=>{O(Bn,z()>0),O(fr,_e(!Ve()&&z()<j()))}),Ze(()=>{Ua(r(jn),X(),Be())});let vr=F("aria_label_video_player"),gr=F("video360");$1({fullScreenChangeHandler:Xo,getFullscreenTarget:Dn}),y1({store:e.store,getFullscreenTarget:Dn});var ot=_x();kt("blur",Fs,Xn),Oe(ot,"aria-label",vr);var ut=h(ot);let Si;ut.__click=mr;var ji=h(ut);let Zi;dt(ji,Xe=>Pe(Xe),()=>Pe()),g(ut);var ko=M(ut,2);Tl(ko,Le,Xe=>{var Mt=hx(),Ai=he(Mt);let Xi=m(()=>n()!=="thumb"||d()||bt&&e.autoplay);xd(Ai,{get hidden(){return r(Xi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ci=M(Ai,2);{var Ti=qe=>{var Ot=px(),$i=he(Ot);{var Mo=Fn=>{let Dr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);iu(Fn,{side:"left",get seekStep(){return r(Dr)},handleSingleFirstClick:mr,handleSecondClick:()=>Nn("backward")})};B($i,Fn=>{r(Bn)&&Fn(Mo)})}var _n=M($i,2);{var Gr=Fn=>{let Dr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);iu(Fn,{side:"right",get seekStep(){return r(Dr)},handleSingleFirstClick:mr,handleSecondClick:()=>Nn("forward")})};B(_n,Fn=>{r(fr)&&Fn(Gr)})}b(qe,Ot)};B(Ci,qe=>{e.canRewindLive&&co&&!Z().has("TIMELINE")&&qe(Ti)})}var Bi=M(Ci,2);{var en=qe=>{let Ot=m(()=>{var $i;return($i=e.live)==null?void 0:$i.startTime});wd(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Ot)}})};B(Bi,qe=>{n()==="LiveWaitingStart"&&qe(en)})}var qi=M(Bi,2);{var hr=qe=>{ua(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};B(qi,qe=>{n()==="LiveWaitingRecover"&&qe(hr)})}var tn=M(qi,2);{var Rr=qe=>{ua(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};B(tn,qe=>{n()==="LiveWaitingRecord"&&qe(Rr)})}var mo=M(tn,2);{var Br=qe=>{var Ot=fx();let $i;var Mo=h(Ot);Hl(Mo,{get adsSlotId(){return Ge()},get adsParams(){return lt()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return xe()},get duration(){return Me()}}),g(Ot),k(_n=>$i=ie(Ot,1,"ads-container svelte-dtyj47",null,$i,_n),[()=>({hidden:n()!=="ads"})]),b(qe,Ot)};B(mo,qe=>{e.showAds&&ae()&&qe(Br)})}var Jn=M(mo,2);{var Nr=qe=>{let Ot=m(()=>!fe()&&e.showAutoplayNext&&S());Cm(qe,{get title(){return st()},get thumb(){return mt()},get isHide(){return r(Ot)},clickCloseIcon:()=>O(ur,!0)})};B(Jn,qe=>{r(po)&&st()&&mt()&&qe(Nr)})}var _r=M(Jn,2);{var hn=qe=>{_d(qe,{})};B(_r,qe=>{N()&&qe(hn)})}var er=M(_r,2);{var br=qe=>{var Ot=mx(),$i=h(Ot);Dl($i,{"aria-label":gr}),g(Ot),b(qe,Ot)};B(er,qe=>{Re()&&qe(br)})}var Hn=M(er,2);{var Po=qe=>{$d(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return we()}})};B(Hn,qe=>{ue()&&qe(Po)})}var tr=M(Hn,2);{var $r=qe=>{bd(qe,{get shifted(){return w()},get captions(){return Ne()},get position(){return z()},get playerSize(){return A()},isMobile:!0})};B(tr,qe=>{se().value!=="off"&&qe($r)})}var tt=M(tr,2);{var Ft=qe=>{var Ot=vx();Ot.__click=[ux,X,si,Xn];var $i=h(Ot);yd($i,{}),g(Ot),b(qe,Ot)};B(tt,qe=>{d()&&qe(Ft)})}var ye=M(tt,2);{var Pt=qe=>{let Ot=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),$i=m(()=>n()==="ads"),Mo=m(()=>e.canRewindLive&&pe()!==0);hd(qe,{get bottomHidden(){return r(Ot)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r($i)},get canRewindLive(){return r(Mo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return rt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ft()},get nextButtonActive(){return it()},get prevButtonActive(){return Bt()},get isOneVideoPlaylist(){return zt()},get customFullscreenSupported(){return r(gn)},get endScreenShown(){return r(po)},toggleFullscreen:Lr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Jt,onDisabledSeekToInteractiveClick:Jo,get playerControlsWrapperRef(){return r(Mr)},set playerControlsWrapperRef(_n){O(Mr,_e(_n))},get playerControlsRef(){return r(dr)},set playerControlsRef(_n){O(dr,_e(_n))}})};B(ye,qe=>{ae()&&qe(Pt)})}var oi=M(ye,2);{var Zt=qe=>{var Ot=gx(),$i=h(Ot);Td($i,{get supportLink(){return e.supportLink},returnFocus:cx,get ref(){return r(jn)},set ref(Mo){O(jn,_e(Mo))}}),g(Ot),b(qe,Ot)};B(oi,qe=>{X()&&qe(Zt)})}var vo=M(oi,2);let Ni=m(()=>!r(Ln));Ul(vo,{get isLive(){return D()},get isHidden(){return r(Ni)},get isPlaying(){return J()},get position(){return z()},get duration(){return j()}});var ni=M(vo,2);{var ci=qe=>{oa(qe,{})};B(ni,qe=>{r(uo)&&qe(ci)})}var bi=M(ni,2);{var Ki=qe=>{Wl(qe,{})};B(bi,qe=>{ce()&&qe(Ki)})}var Ao=M(bi,2);{var di=qe=>{Id(qe,{onClose:Mn,onSelectAutoQuality:()=>{No("auto"),Mn()}})};B(Ao,qe=>{r(cr)&&qe(di)})}var Qr=M(Ao,2);El(Qr,()=>"slot",!1,(qe,Ot)=>{Ce(qe,null,{name:kd})}),b(Xe,Mt)});var Oo=M(ko,2);dt(Oo,Xe=>O(et,Xe),()=>r(et)),g(ot),dt(ot,Xe=>O(fn,Xe),()=>r(fn)),k((Xe,Mt)=>{Si=ie(ut,1,"video-wrapper svelte-dtyj47",null,Si,Xe),Zi=ie(ji,1,"video-container svelte-dtyj47",null,Zi,Mt),nt(ji,`transform: rotate(${P()}deg) scale(${r(Io)})`),Oe(ji,"data-is-playing",J())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),kt("click",ot,Vr,!0),kt("focusin",ot,On,!0),b(t,ot),W(),o()}at(["click"]);function nu(t){let e="";return Yn(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Yn(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Yn(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Yn(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Yn(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Yn(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Yn(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Yn(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Yn(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Yn(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Yn(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Yn(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Yn(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function Yn(t){return typeof t=="string"&&!t.includes(";")}var Sx=L('<div class="root svelte-1cnbt6x"><!></div>'),Cx={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
+ .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 Mm(t,e){var Go,Yo;q(e,!0),G(t,wx);let[i,o]=Ue(),n=()=>C(ai,"$playerPhase",i),a=()=>C(Lt,"$isLoaderVisible",i),s=()=>C(pt,"$adPlaybackState",i),d=()=>C(qo,"$crashed",i),l=()=>C(ur,"$notificationsToShow$",i),u=()=>C(Ze,"$playbackState$",i),f=()=>C(Oe,"$graphIsOpened$",i),_=()=>C(ii,"$interactiveHideMobileControls",i),p=()=>C(_t,"$isEnded$",i),$=()=>C(qi,"$isInteractiveExpectation$",i),w=()=>C(ot,"$controlsVisible",i),y=()=>C(Si,"$touched",i),S=()=>C(Tn,"$autoplayNextEnabled$",i),I=()=>C(Fi,"$postrollPassed",i),P=()=>C(li,"$rotateAlpha",i),A=()=>C(ci,"$playerSize",i),E=()=>C(pn,"$bottomNoSmooth",i),T=()=>C(wt,"$videoSize",i),V=()=>C(Ge,"$isFullscreen",i),U=()=>C(Je,"$position$",i),j=()=>C(Pt,"$duration$",i),F=()=>C(an,"$loadedMetadata",i),Z=()=>C(Pi,"$settingsMenuVisible",i),J=()=>C(Hi,"$scrubbingInProgress",i),ne=()=>C(Po,"$volumeChangingInProgress",i),fe=()=>C(z,"$chromecastConnected$",i),de=()=>C(_i,"$isInteractiveTime$",i),Re=()=>C(ho,"$isActiveLive",i),Le=()=>C(Eo,"$settingsMenuOpenedByKeyboard",i),ee=()=>C(ao,"$isPlaying$",i),Ve=()=>C(Gt,"$language$",i),X=()=>C(bo,"$disabledControls$",i),B=()=>C(_o,"$is3DVideo",i),Ne=()=>C(Ko,"$icon3DVideoVisible",i),re=()=>C(Yt,"$chromecastDeviceName$",i),Ee=()=>C(Wt,"$currentSubtitle$",i),Be=()=>C(Ao,"$currentSubtitleCaptions$",i),me=()=>C(zi,"$realDuration$",i),D=()=>C(oi,"$isLive$",i),ce=()=>C(zo,"$debugPanelVisible",i),Pe=v(e,"videoContainer",15),Ye=v(e,"adsSlotId",3,void 0),dt=v(e,"adsParams",3,void 0),Ae=v(e,"adsPreviewParam",3,void 0),ye=v(e,"adsAutoplayParam",3,void 0),Me=v(e,"duration",3,void 0),rt=v(e,"logoTargetUrl",3,""),vt=v(e,"showNextPrevButtons",3,!1),lt=v(e,"nextButtonActive",3,!1),kt=v(e,"prevButtonActive",3,!1),st=v(e,"endScreenVideoTitle",3,void 0),gt=v(e,"endScreenVideoThumb",3,void 0),Kt=v(e,"isOneVideoPlaylist",3,!1),jt=v(e,"shadowRootContainer",3,void 0),De=v(e,"outerContainerRef",3,void 0),se=v(e,"showMiniTimer",3,!1),Q=v(e,"fullScreenTarget",3,void 0),ae=v(e,"playerStarted",3,!1),_e=v(e,"showEndScreen",3,!0),{notifications$:Ce,graphIsOpened$:Oe}=so(),ut=e.store.getLogger().createComponentLog("Root component"),Gt=e.store.interfaceLanguage$,Ze=e.store.state.playbackState$,pt=e.store.ads.playbackState,Je=e.store.state.positionWithScrubbing$,Pt=e.store.state.duration$,ai=e.store.playerPhase,Ge=e.store.ui.isFullscreen,ot=e.store.ui.controlsVisible,ii=e.store.ui.interactiveHideMobileControls,Pi=e.store.ui.settingsMenu.visible$,Eo=e.store.ui.settingsMenu.openedByBtnKeyboard$,Hi=e.store.ui.scrubbingInProgress,Po=e.store.ui.volumeChangingInProgress,zo=e.store.ui.debugPanelVisible,Lt=e.store.state.isLoaderVisible,_t=e.store.state.isEnded$,z=e.store.state.chromecastConnected$,Yt=e.store.state.chromecastDeviceName$,Fi=e.store.ads.postrollPassed,Li=e.store.ui.mobileUnmuteButtonExpanded,hi=e.store.ui.mobileUnmuteButtonVisible,oi=e.store.state.isLive$,ao=e.store.state.isPlaying$,ho=e.store.state.isActiveLive$,Ui=e.store.state.isRewindableLive$,qo=e.store.state.crashed$,Ht=e.store.webApi.annotationsApi,ui=e.store.webApi.pictureInPictureApi,wt=e.store.state.videoSize$,Wt=e.store.state.currentSubtitle$,Ao=e.store.state.currentSubtitleCaptions$,zi=e.store.state.duration$,ci=e.store.ui.playerSize,_o=e.store.ui.is3DVideo,Ko=e.store.ui.icon3DVideoVisible,li=e.store.ui.rotateAlpha,yt=e.store.state.isInteractive,_i=e.store.state.isInteractiveTime$,qi=e.store.state.isInteractiveExpectation$,Vi=e.store.state.hasInteractiveBranches,bo=e.store.ui.controls.disabledControls$,Si=e.store.ui.touched,$o=e.store.ui.overlayContainer$,Tn=e.store.ui.autoplayNextEnabled$,an=e.store.state.loadedMetadata$,Ci=e.store.actions.internal.closeSettingsMenu,In=(Go=e.store.callbacks)==null?void 0:Go.onDisabledPlayPrevChapterClick,ln=(Yo=e.store.callbacks)==null?void 0:Yo.onDisabledSeekToInteractiveClick,Mo=e.store.actions.internal.setQuality,kn=te(void 0),lr=te(void 0),dr=te(void 0),Hn=te(void 0),Fn,dn,cn,cr=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),it=te(void 0),{closeNotification:ji,notificationsToShow$:ur}=Ce,Un=m(()=>!!l().slow_video),un=()=>ji("slow_video"),pn=le(!1),Lo,yo=te(!1),Ki=m(()=>u()!==fx.PLAYING),Zi=te(!1),zn=m(()=>f()||_()||!r(yo)&&(p()&&!!Vi||r(Ki)&&$())),qn=te(!0),Mr=m(()=>e.uiConfig.features.thumbTimer&&se()&&n()==="video"&&!w()&&!d()&&!yt&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Kn=te(!1),lo=m(()=>(_e()||e.showAutoplayNext&&S())&&!!st()&&!!gt()&&(e.showAds&&I()||!e.showAds)&&p()&&!d()&&!r(Kn)),xo=te(!1),fn=m(()=>Pe()&&P()%180?A().height/A().width:1);ui==null||ui.setContext(Sl());let En=et=>{clearTimeout(dn),et&&(hi.set(!0),Li.set(!0),dn=setTimeout(()=>{Li.set(!1)},e.uiConfig.controls.collapseMobileUnmute),yt||Wi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:En});let Vo=()=>{clearTimeout(Fn),O(yo,!1),_()&&ii.set(!1)},Wi=et=>{Vo(),O(yo,!0),Fn=setTimeout(()=>O(yo,!1),et);let Vt=et-100;Lo=setTimeout(()=>{E()&&pn.set(!1)},Vt>0?Vt:et)},Wo=_o.subscribe(et=>{Ko.set(et),et&&(clearTimeout(cn),cn=setTimeout(()=>Ko.set(!1),e.uiConfig.controls.hide360IconTimeout))}),wo=(...Vt)=>Ct(this,[...Vt],function*(et=xs()){var di,Qi,Ii,Ri,Gi,To;if(et&&!Ed.device.isIOS){let Ni=Ol(),gr=Gn(),jo=Ed.browser.isSamsungBrowser&&Ni===jt();et=Ni===gr||jo}if(et){Wi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ui==null?void 0:ui.remove()}catch(Ni){ut({message:String(Ni)})}try{let Ni=(di=T())!=null&&di.width&&((Qi=T())!=null&&Qi.height)?T():A();yield _h(Ni)}catch(Ni){ut({message:String(Ni)})}}Ge.set(et),e.store.getAdmanWrapper().setFullscreen(et),V()?(Ri=(Ii=e.store.callbacks)==null?void 0:Ii.onFullscreenEnter)==null||Ri.call(Ii):(To=(Gi=e.store.callbacks)==null?void 0:Gi.onFullscreenExit)==null||To.call(Gi)}),pr=et=>{let Vt=et;ci.set({width:Vt.target.width,height:Vt.target.height})};Ut(()=>{var et;return Lc(wo),e.uiConfig.features.annotationsInside&&(Ht==null||Ht.init(r(kn))),ea(ui)&&(ui==null||ui.assignPlayerContainer(r(kn)),ui==null||ui.registryExternalEventHandlers({resize:pr})),O(qn,!Ed.device.isIphoneOrOldIpad),e.interactiveContainer&&((et=Pe().parentElement)==null||et.insertBefore(e.interactiveContainer,Pe().nextSibling)),()=>{clearTimeout(Fn),clearTimeout(Lo),clearTimeout(dn),clearTimeout(cn),Wo(),ui==null||ui.dispose().catch(Vt=>{ut({message:String(Vt)})}),Vc(wo)}});let mn=te(!0),Wn=te(!0),Qn=et=>{let Vt=U()+(et==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Vt<0?(O(mn,!1),Vt=0):Vt>=j()&&(O(Wn,!1),Vt=j()),O(Zi,!0),e.seekTime(Vt)},Gn=()=>{let et=Ed.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!De()?r(kn):De(),Vt=et.getRootNode(),di=Vt instanceof ShadowRoot?Vt.host:Vt,Qi=Q()instanceof HTMLElement&&Q().contains(di);return e.uiConfig.allowChangingFullscreenTarget&&Q()&&Qi?Q():et},fr=()=>Ct(this,null,function*(){try{if(xs())yield Mc(document),ut({message:"exit fullscreen"});else{if(ut({message:"request fullscreen"}),Ed.device.isIOS&&!F())return;yield Ac(Gn())}}catch(et){ut({message:String(et)})}}),Yn=()=>{Ci()},mr=et=>{if(et.preventDefault(),Z()){Yn();return}if(!ae()){e.firstStart(),Wi(e.uiConfig.controls.hideTimeoutCursor);return}O(Zi,!1),w()?Vo():Wi(e.uiConfig.controls.hideTimeoutMobile)},jn=()=>{Si.set(!0)},Zn=()=>{yt||(pn.set(!0),Wi(e.uiConfig.controls.hideTimeoutCursor))},si=et=>{In&&(In(et),Wi(e.uiConfig.controls.hideTimeoutMobile))},vr=et=>{ln&&(ln(et),Wi(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{$o.set(r(it))}),We(()=>{ot.set((r(Ki)||Z()||J()||ne()||fe()||!r(lo)&&(p()||r(yo)&&!r(Zi)))&&!r(zn)&&n()==="video"&&!d())}),We(()=>{!J()&&r(xo)&&!de()&&Wi(e.uiConfig.controls.hideTimeoutMobile),O(xo,ve(J()))}),We(()=>{O(mn,U()>0),O(Wn,ve(!Re()&&U()<j()))}),We(()=>{qa(r(Hn),Z(),Le())});let vn=H("aria_label_video_player"),Qo=H("video360");w1({fullScreenChangeHandler:wo,getFullscreenTarget:Gn}),S1({store:e.store,getFullscreenTarget:Gn});var nt=xx();Et("blur",Us,Yn),He(nt,"aria-label",vn);var At=h(nt);let Ti;At.__click=mr;var ni=h(At);let Xi;ct(ni,et=>Pe(et),()=>Pe()),g(At);var So=M(At,2);Qs(So,Ve,et=>{var Vt=yx(),di=pe(Vt);let Qi=m(()=>n()!=="thumb"||d()||yt&&e.autoplay);xd(di,{get hidden(){return r(Qi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ii=M(di,2);{var Ri=Fe=>{var It=gx(),bi=pe(It);{var No=An=>{let Br=m(()=>e.uiConfig.controls.seekStepMobile/1e3);au(An,{side:"left",get seekStep(){return r(Br)},handleSingleFirstClick:mr,handleSecondClick:()=>Qn("backward")})};R(bi,An=>{r(mn)&&An(No)})}var Zo=M(bi,2);{var Gr=An=>{let Br=m(()=>e.uiConfig.controls.seekStepMobile/1e3);au(An,{side:"right",get seekStep(){return r(Br)},handleSingleFirstClick:mr,handleSecondClick:()=>Qn("forward")})};R(Zo,An=>{r(Wn)&&An(Gr)})}b(Fe,It)};R(Ii,Fe=>{e.canRewindLive&&Ui&&!X().has("TIMELINE")&&Fe(Ri)})}var Gi=M(Ii,2);{var To=Fe=>{let It=m(()=>{var bi;return(bi=e.live)==null?void 0:bi.startTime});wd(Fe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(It)}})};R(Gi,Fe=>{n()==="LiveWaitingStart"&&Fe(To)})}var Ni=M(Gi,2);{var gr=Fe=>{pa(Fe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Ni,Fe=>{n()==="LiveWaitingRecover"&&Fe(gr)})}var jo=M(Ni,2);{var Lr=Fe=>{pa(Fe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(jo,Fe=>{n()==="LiveWaitingRecord"&&Fe(Lr)})}var co=M(jo,2);{var Vr=Fe=>{var It=hx();let bi;var No=h(It);Hl(No,{get adsSlotId(){return Ye()},get adsParams(){return dt()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return ye()},get duration(){return Me()}}),g(It),k(Zo=>bi=ie(It,1,"ads-container svelte-dtyj47",null,bi,Zo),[()=>({hidden:n()!=="ads"})]),b(Fe,It)};R(co,Fe=>{e.showAds&&ae()&&Fe(Vr)})}var Xn=M(co,2);{var Wr=Fe=>{let It=m(()=>!_e()&&e.showAutoplayNext&&S());Am(Fe,{get title(){return st()},get thumb(){return gt()},get isHide(){return r(It)},clickCloseIcon:()=>O(Kn,!0)})};R(Xn,Fe=>{r(lo)&&st()&&gt()&&Fe(Wr)})}var hr=M(Xn,2);{var Rr=Fe=>{_d(Fe,{})};R(hr,Fe=>{B()&&Fe(Rr)})}var _r=M(hr,2);{var Ro=Fe=>{var It=_x(),bi=h(It);Dl(bi,{"aria-label":Qo}),g(It),b(Fe,It)};R(_r,Fe=>{Ne()&&Fe(Ro)})}var gn=M(_r,2);{var Qr=Fe=>{$d(Fe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return re()}})};R(gn,Fe=>{fe()&&Fe(Qr)})}var br=M(gn,2);{var Jn=Fe=>{bd(Fe,{get shifted(){return w()},get captions(){return Be()},get position(){return U()},get playerSize(){return A()},isMobile:!0})};R(br,Fe=>{Ee().value!=="off"&&Fe(Jn)})}var Xe=M(br,2);{var Ft=Fe=>{var It=bx();It.__click=[vx,Z,Pi,Yn];var bi=h(It);yd(bi,{}),g(It),b(Fe,It)};R(Xe,Fe=>{d()&&Fe(Ft)})}var $i=M(Xe,2);{var hn=Fe=>{let It=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),bi=m(()=>n()==="ads"),No=m(()=>e.canRewindLive&&me()!==0);hd(Fe,{get bottomHidden(){return r(It)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(bi)},get canRewindLive(){return r(No)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return rt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return vt()},get nextButtonActive(){return lt()},get prevButtonActive(){return kt()},get isOneVideoPlaylist(){return Kt()},get customFullscreenSupported(){return r(qn)},get endScreenShown(){return r(lo)},toggleFullscreen:fr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:si,onDisabledSeekToInteractiveClick:vr,get playerControlsWrapperRef(){return r(lr)},set playerControlsWrapperRef(Zo){O(lr,ve(Zo))},get playerControlsRef(){return r(dr)},set playerControlsRef(Zo){O(dr,ve(Zo))}})};R($i,Fe=>{ae()&&Fe(hn)})}var _n=M($i,2);{var Pn=Fe=>{var It=$x(),bi=h(It);Td(bi,{get supportLink(){return e.supportLink},returnFocus:mx,get ref(){return r(Hn)},set ref(No){O(Hn,ve(No))}}),g(It),b(Fe,It)};R(_n,Fe=>{Z()&&Fe(Pn)})}var er=M(_n,2);let Te=m(()=>!r(Mr));Ul(er,{get isLive(){return D()},get isHidden(){return r(Te)},get isPlaying(){return ee()},get position(){return U()},get duration(){return j()}});var ft=M(er,2);{var Rt=Fe=>{ra(Fe,{})};R(ft,Fe=>{r(cr)&&Fe(Rt)})}var zt=M(ft,2);{var Yi=Fe=>{Wl(Fe,{})};R(zt,Fe=>{ce()&&Fe(Yi)})}var pi=M(zt,2);{var Zt=Fe=>{Id(Fe,{onClose:un,onSelectAutoQuality:()=>{Mo("auto"),un()}})};R(pi,Fe=>{r(Un)&&Fe(Zt)})}var Nr=M(pi,2);El(Nr,()=>"slot",!1,(Fe,It)=>{we(Fe,null,{name:kd})}),b(et,Vt)});var Co=M(So,2);ct(Co,et=>O(it,et),()=>r(it)),g(nt),ct(nt,et=>O(kn,et),()=>r(kn)),k((et,Vt)=>{Ti=ie(At,1,"video-wrapper svelte-dtyj47",null,Ti,et),Xi=ie(ni,1,"video-container svelte-dtyj47",null,Xi,Vt),tt(ni,`transform: rotate(${P()}deg) scale(${r(fn)})`),He(ni,"data-is-playing",ee())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),Et("click",nt,jn,!0),Et("focusin",nt,Zn,!0),b(t,nt),K(),o()}at(["click"]);function du(t){let e="";return On(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),On(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),On(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),On(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),On(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),On(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),On(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),On(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),On(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),On(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),On(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),On(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),On(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function On(t){return typeof t=="string"&&!t.includes(";")}var kx=L('<div class="root svelte-1cnbt6x"><!></div>'),Ex={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;
330
361
 
331
362
  /* USER DEFINED COLORS */
332
363
 
@@ -360,5 +391,5 @@ Try switching the\xA0quality to\xA0Auto.`},lh=r_;var ss=new Map;ss.set(ch.EN,lh)
360
391
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);}
361
392
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
362
393
 
363
- /* \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 Im(t,e){K(e,!0),G(t,Cx);let[i,o]=Ue(),n=()=>C(zt,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),u=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),p=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),w=v(e,"subtitles",7),y=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),P=v(e,"volume",7,void 0),A=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),R=v(e,"showAds",7),z=v(e,"adsSlotId",7,void 0),j=v(e,"adsParams",7,void 0),U=v(e,"adsPreviewParam",7,void 0),X=v(e,"adsAutoplayParam",7,void 0),ee=v(e,"duration",7,void 0),ne=v(e,"logoClickable",7),ue=v(e,"logoHidden",7),de=v(e,"isMobile",7),Ve=v(e,"showNextPrevButtons",7,!1),Be=v(e,"nextButtonActive",7,!1),J=v(e,"prevButtonActive",7,!1),Le=v(e,"endScreenVideoTitle",7,void 0),Z=v(e,"endScreenVideoThumb",7,void 0),N=v(e,"isOneVideoPlaylist",7,!1),Re=v(e,"supportLink",7),we=v(e,"shadowRootContainer",7,void 0),se=v(e,"outerContainerRef",7,void 0),Ne=v(e,"fullScreenTarget",7,void 0),pe=v(e,"failoverHosts",7,void 0),D=v(e,"showMiniTimer",7,!1),ce=v(e,"saveRate",7),Pe=v(e,"seekToInteractive",7,x1),Ge=v(e,"playPrevChapter",7,x1),lt=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),xe=v(e,"showEndScreen",7,!0),Me=v(e,"keyboardControls",15,void 0),{subscribers:rt,stores:ft}=d();Eg(u());let it=Wt(),Bt=u().logoLink,st=s().ui.debugPanelVisible,mt=s().ui.playerSize,zt=s().state.isLive$,De=s().state.isInteractive&&$x.device.isAndroid,re=te(void 0),Q=null,ae=te(!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}),Og(s(),ft),Ze(()=>{s().ui.isMobile.set(de())});let fe=(H=!1)=>{O(ae,!0),H?s().actions.external.firstStart(R()):s().actions.internal.firstStart(R())},Te=()=>{if(it.features.qualityDetailsSubMenuEnabled){let H=rh(s().videoId);if(H)switch(H.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,H.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,H.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(H.quality);break}}else{sh(s().videoId),Sp()&&s().actions.internal.setTrafficSavingEnabled(!0);let We=$p(s().videoId);We&&s().actions.internal.setQuality(We)}};function He(H){var mi,ao,lo;let We=a()||H;We&&s().initVideo({container:r(re),sources:We,failoverHosts:pe(),subtitles:w(),volumeMultiplier:lt()});let ai=yx.get(Ll)==="true";st.set(ai),E()>0&&s().actions.external.seekTime(E());let Ui=de()?it.volumeDefault:(ao=(mi=P())!=null?mi:_c())!=null?ao:it.volumeDefault,ii=(lo=A())!=null?lo:Jg();if(s().actions.external.setVolume(Ui),s().actions.external.setMuted(ii),s().getAdmanWrapper().setInitialVolume(ii?0:Ui),Te(),it.features.saveRate&&ce()){let co=ih();co&&!n()&&s().actions.internal.setPlaybackRate(co)}if(Ae()){let co=nh();co&&s().actions.internal.setAutoplayNextEnabled(co)}s().ui.isAutoplay.set(I()),I()?fe():S()&&it.features.preload&&s().actions.internal.preload()}let ct=H=>{if(window.ResizeObserver){let We,ai;Q=new ResizeObserver(xx(Ui=>{let ii=Ui[0];if(ii.contentBoxSize){let mi=Array.isArray(ii.contentBoxSize)?ii.contentBoxSize[0]:ii.contentBoxSize;We=mi.inlineSize,ai=mi.blockSize}else ii.contentRect&&(We=ii.contentRect.width,ai=ii.contentRect.height);mt.set({width:We,height:ai})},300)),Q.observe(H)}mt.set({width:H.clientWidth,height:H.clientHeight})},Nt=()=>{document.hidden&&s().actions.external.stop()};Ht(()=>{var ai,Ui,ii,mi;De&&document.addEventListener("visibilitychange",Nt),it.debugLog&&s().actions.internal.startLogging(),ct(r(re));let H=rt.map(ao=>ao.init({store:s(),microStores:ft,config:l(),interactiveController:$(),uiConfig:u()})),We=()=>{De&&document.removeEventListener("visibilitychange",Nt),Q==null||Q.disconnect(),H.forEach(ao=>ao.unsubscribe()),s().destroy()};return((ai=y())==null?void 0:ai.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),We):((Ui=y())==null?void 0:Ui.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),We):(((ii=y())==null?void 0:ii.status)==="finished"||((mi=y())==null?void 0:mi.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),We):(He(),We)});function Ke(){r(ae)?s().actions.external.play():fe(!0)}function gt(){s().actions.external.pause()}function Je(H){s().actions.external.setMuted(H)}function yt(H){de()||H>=0&&H<=1&&s().actions.external.setVolume(H)}function jt(H){s().actions.internal.seekTime(H,wx.UNKNOWN)}function je(H){s().actions.external.seekEpisodeStartTime(H)}function Ct(){s().actions.external.returnFocusToEpisodes()}function ui(H){s().actions.external.setPlaybackRate(H)}function si(H){s().actions.external.setAutoQualityLimits(H)}let Ei=nu(it.view);var Fi=Sx();nt(Fi,Ei);var Ro=h(Fi);{var wo=H=>{Tm(H,{get store(){return s()},uiConfig:it,get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return j()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return X()},get duration(){return ee()},get logoClickable(){return ne()},get logoHidden(){return ue()},logoTargetUrl:Bt,get nextButtonActive(){return Be()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return Z()},get isOneVideoPlaylist(){return N()},get supportLink(){return Re()},get shadowRootContainer(){return we()},get outerContainerRef(){return se()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return D()},get playerStarted(){return r(ae)},get seekToInteractive(){return Pe()},get playPrevChapter(){return Ge()},firstStart:fe,seekTime:jt,get showEndScreen(){return xe()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(We){O(re,_e(We))}})},So=H=>{Sm(H,{get store(){return s()},uiConfig:it,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return R()},get adsSlotId(){return z()},get adsParams(){return j()},get adsPreviewParam(){return U()},get adsAutoplayParam(){return X()},get duration(){return ee()},get logoClickable(){return ne()},get logoHidden(){return ue()},logoTargetUrl:Bt,get nextButtonActive(){return Be()},get prevButtonActive(){return J()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return Z()},get isOneVideoPlaylist(){return N()},get supportLink(){return Re()},get shadowRootContainer(){return we()},get outerContainerRef(){return se()},get fullScreenTarget(){return Ne()},get showMiniTimer(){return D()},get playerStarted(){return r(ae)},get seekToInteractive(){return Pe()},get playPrevChapter(){return Ge()},firstStart:fe,get showEndScreen(){return xe()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(re)},set videoContainer(We){O(re,_e(We))},get keyboardControls(){return Me()},set keyboardControls(We){Me(We)}})};B(Ro,H=>{de()?H(wo):H(So,!1)})}g(Fi),b(t,Fi);var Bo=W({initVideo:He,play:Ke,pause:gt,setMuted:Je,setVolume:yt,seekTime:jt,seekEpisodeStartTime:je,returnFocusToEpisodes:Ct,setPlaybackRate:ui,setAutoQualityLimits:si,get sources(){return a()},set sources(H){a(H)},get store(){return s()},set store(H){s(H)},get microStoresRoot(){return d()},set microStoresRoot(H){d(H)},get videoConfig(){return l()},set videoConfig(H){l(H)},get uiConfig(){return u()},set uiConfig(H){u(H)},get title(){return f()},set title(H){f(H)},get thumbUrl(){return _()},set thumbUrl(H){_(H)},get interactiveContainer(){return p()},set interactiveContainer(H){p(H)},get interactiveController(){return $()},set interactiveController(H){$(H)},get subtitles(){return w()},set subtitles(H){w(H)},get live(){return y()},set live(H){y(H)},get preload(){return S()},set preload(H){S(H)},get autoplay(){return I()},set autoplay(H){I(H)},get volume(){return P()},set volume(H){P(H)},get muted(){return A()},set muted(H){A(H)},get fromTime(){return E()},set fromTime(H){E(H)},get canRewindLive(){return T()},set canRewindLive(H){T(H)},get showAds(){return R()},set showAds(H){R(H)},get adsSlotId(){return z()},set adsSlotId(H){z(H)},get adsParams(){return j()},set adsParams(H){j(H)},get adsPreviewParam(){return U()},set adsPreviewParam(H){U(H)},get adsAutoplayParam(){return X()},set adsAutoplayParam(H){X(H)},get duration(){return ee()},set duration(H){ee(H)},get logoClickable(){return ne()},set logoClickable(H){ne(H)},get logoHidden(){return ue()},set logoHidden(H){ue(H)},get isMobile(){return de()},set isMobile(H){de(H)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(H){Ve(H)},get nextButtonActive(){return Be()},set nextButtonActive(H){Be(H)},get prevButtonActive(){return J()},set prevButtonActive(H){J(H)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(H){Le(H)},get endScreenVideoThumb(){return Z()},set endScreenVideoThumb(H){Z(H)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(H){N(H)},get supportLink(){return Re()},set supportLink(H){Re(H)},get shadowRootContainer(){return we()},set shadowRootContainer(H){we(H)},get outerContainerRef(){return se()},set outerContainerRef(H){se(H)},get fullScreenTarget(){return Ne()},set fullScreenTarget(H){Ne(H)},get failoverHosts(){return pe()},set failoverHosts(H){pe(H)},get showMiniTimer(){return D()},set showMiniTimer(H){D(H)},get saveRate(){return ce()},set saveRate(H){ce(H)},get showAutoplayNext(){return Ae()},set showAutoplayNext(H){Ae(H)},get seekToInteractive(){return Pe()},set seekToInteractive(H){Pe(H)},get playPrevChapter(){return Ge()},set playPrevChapter(H){Ge(H)},get volumeMultiplier(){return lt()},set volumeMultiplier(H){lt(H)},get showEndScreen(){return xe()},set showEndScreen(H){xe(H)},get keyboardControls(){return Me()},set keyboardControls(H){Me(H)}});return o(),Bo}var Tx=$e('<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 km(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Tx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 Em(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");km(t,{get style(){return r(o)}})}var Ix=L('<div class="title svelte-1y9fytq"> </div>'),kx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Ex={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 Pm(t,e){G(t,Ex);var i=kx(),o=h(i);{var n=d=>{var l=Ix(),u=h(l,!0);g(l),k(()=>me(u,e.title)),b(d,l)};B(o,d=>{e.title&&d(n)})}var a=M(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);Em(d,{get isWhite(){return r(l)}})};B(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),k(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as r5}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as s5,InterfaceLanguage as a5,isNonNullable as Nm,Logger as l5,Observable as d5,Subscription as A1,once as c5,InternalsExposure as u5,skip as p5}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as M1,isMobile as f5}from"@vkontakte/videoplayer-core/es2015";import{OneStat as m5,ThinOneStat as v5}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as Px,Subscription as Ax}from"@vkontakte/videoplayer-shared/es2015";var ru=class{constructor(){this.subscription=new Ax,this.logger=new Px,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,a)}catch(s){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,s;let o=Se(e.state.currentPlaybackRate$),n=Se(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(s=(a=navigator.mediaSession).setPositionState)==null||s.call(a,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as Vm,detectEmbed as Nx}from"@vkontakte/videoplayer-shared/es2015";var Mx=$e('<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 Am(t,e){let i=Ee(e,["$$slots","$$events","$$legacy","children"]);var o=Mx();let n;var a=h(o);ve(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=Ce(o,n,q({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 Lx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Vx={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 Mm(t,e){K(e,!0),G(t,Vx);let[i,o]=Ue(),n=()=>C(u,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=ke(),d=Wt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,p=m(()=>n()&&_("pip_dummy_title")),$=nu(d.view);var w=Lx();ie(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),nt(w,$);var y=h(w);let S;var I=h(y);Am(I,{}),g(y);var P=M(y,2),A=h(P,!0);g(P),g(w),k(E=>{S=ie(y,1,"dummy-image svelte-1pbsod4",null,S,E),me(A,r(p))},[()=>({desktop:!a()})]),b(t,w),W(),o()}var Rx=Object.defineProperty,Bx=(t,e,i)=>e in t?Rx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xa=(t,e,i)=>Bx(t,typeof e!="symbol"?e+"":e,i),Lm=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),Dx=460,Ox=280,Pd=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 Vm(!1),isEnabled$:new Vm(!1),type:1}),this.info.isEnabled$=new Vm(e)}isSupported(){let{isEmbed:e}=Nx();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}request(){return Lm(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Dx,height:Ox,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
364
- `),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=os(Mm,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||(Ks(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return Lm(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return Lm(this,null,function*(){yield this.remove()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function w1(t){return t instanceof Pd}var su=class{static getLatestSupportedVersion(e){let i=new Zs,o=new Pd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Ad(t,e){var n,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let s of i)o[s]=(a=(n=e[s])!=null?n:t[s])!=null?a:void 0;return o}var S1="Inner error. Unexpectedly root annotation container null reference exception",C1="Annotation with such name already exists",T1="Annotation with such name does not exist";var Ja=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Hx,Subscription as Fx,throttleFn as Ux}from"@vkontakte/videoplayer-shared/es2015";var zx="1",qx=100,au=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Fx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Ux(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},qx);this.subscriptions.add(Hx(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(S1);if(this.annotations.has(e))throw new Ja(C1);i.style.zIndex=(o=i.style.zIndex)!=null?o:zx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Ja(T1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as lu,Subscription as Kx}from"@vkontakte/videoplayer-shared/es2015";var Ko=class{init({store:e,microStores:i,interactiveController:o,config:n}){return lu(e),lu(i),lu(n),n.interactiveData&&lu(o),this.subscription=new Kx,this.subscription}};var Md=class extends Ko{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=At(q({},le(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 Ld=class extends Ko{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=At(q({},le(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:u,isMobile:f}=a.ui,_=Se(f),p=()=>_&&Se(u);return o.add(u.subscribe($=>{if(!_)return;let w=Se(s);Se(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||p())})),o.add(s.subscribe($=>{if($===null)return;let w=Se(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Vd=class extends Ko{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("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 Wx}from"@vkontakte/videoplayer-shared/es2015";var Rm=le(!1),du=null,Rd=class extends Ko{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=At(q({},Rm),{set:(i,o=!1)=>{i!==Se(Rm)&&(this.clearTimeout(),Rm.set(i),!i&&du&&(du=!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:u}=n.ui.controls;o.add(l.subscribe(_=>{Se(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(Wx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:_,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var w,y;if(!(!_||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&du===null&&(du=!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 Qx,noop as Gx}from"@vkontakte/videoplayer-shared/es2015";var Bd=class extends Ko{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=At(q({},le(null)),{toggle:Gx});this.checkIfShouldHide=i=>Is(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=()=>St(this,null,function*(){if(this.checkIfShouldHide(Se(s)))return;let l=Se(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,p=Se(u),$=Se(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),_.remove(fp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),_.add(fp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(Qx({graphIsOpened:this.state$,currentGridType:s}).subscribe(f=>St(this,[f],function*({graphIsOpened:l,currentGridType:u}){if(this.checkIfShouldHide(u)&&l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};import{ValueSubject as I1}from"@vkontakte/videoplayer-shared/es2015";var Nd=class extends Ko{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new I1(!1),isEnabled$:new I1(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as Zx,filterChanged as Xx}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as Bm}from"@vkontakte/videoplayer-shared/es2015";var k1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Yx({maxCount:t}):void 0,e!==0?jx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Yx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Bm.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}}},jx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Bm.get(e)||"{}")}catch(a){return{}}},o=a=>Bm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(At(q({},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 Dd=class extends Ko{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=k1({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(Xx(),Zx(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var E1=()=>[Md,Ld,Vd,Rd,Bd,Nd,Dd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:At(q({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as Od}from"@vkontakte/videoplayer-shared/es2015";var Jx=Object.defineProperty,e5=Object.defineProperties,t5=Object.getOwnPropertyDescriptors,P1=Object.getOwnPropertySymbols,i5=Object.prototype.hasOwnProperty,o5=Object.prototype.propertyIsEnumerable,Dm=(t,e,i)=>e in t?Jx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Es=(t,e)=>{for(var i in e||(e={}))i5.call(e,i)&&Dm(t,i,e[i]);if(P1)for(var i of P1(e))o5.call(e,i)&&Dm(t,i,e[i]);return t},n5=(t,e)=>e5(t,t5(e)),ei=(t,e,i)=>Dm(t,typeof e!="symbol"?e+"":e,i),cu=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),g5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:a5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:f5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Cn=te(void 0),uu=class extends HTMLElement{constructor(){super(),ei(this,"svelteStubComponent"),ei(this,"svelteRootComponent"),ei(this,"store"),ei(this,"microStoresRoot"),ei(this,"statistics"),ei(this,"sentry"),ei(this,"_shadowRoot"),ei(this,"playerContainer"),ei(this,"rootContainer"),ei(this,"shadowRootContainer"),ei(this,"uiConfig"),ei(this,"coreConfig"),ei(this,"statisticsConfig"),ei(this,"interactiveController"),ei(this,"interactiveContainer"),ei(this,"graphMadePause"),ei(this,"currentPlayingVideoIndex",0),ei(this,"needToRepeatPlaylist",!1),ei(this,"videoConfig"),ei(this,"pictureInPictureApi"),ei(this,"mediaSessionApi"),ei(this,"unsubscribePlayerPhaseSubscription"),ei(this,"logger"),ei(this,"log"),ei(this,"subscription"),ei(this,"interactiveSubscription"),ei(this,"annotationsApi"),ei(this,"slotsApi"),ei(this,"prevIsid"),ei(this,"isInited",!1),ei(this,"internalsExposure",null),ei(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:p,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:I,interactiveData:P}=Ad(this.videoConfig,i),A=(o=P==null?void 0:P.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:R=!1}=e;if(this.uiConfig.features.statistics&&T)return new m5(Es({movieId:T,albumId:d,place:l,trackCode:f,vkAppId:_,autoplay:(s=$&&!this.interactiveController)!=null?s:!1,mobile:y!=null?y:w,clip:R,refDomain:S,deviceId:I},A&&(!this.isInited||E)&&{projectId:Number(A)}),Es({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),Od.create("ui"),this.logger=new l5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new A1,this.interactiveSubscription=new A1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited)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=_e({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=os(Pm,s)}disconnectedCallback(){var e,i,o,n,a;(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(),Od.destroy("ui")}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){let{deviceId:o,preload:n,refreshStatAuthToken:a}=Ad(this.videoConfig,i),{unitedVideoId:s}=e;return new v5.ThinOneStat({deviceId:o,movieId:s,preload:n},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var n,a,s,d,l,u,f,_,p;if(!this.videoConfig)return;let{albumId:$,statPlace:w,statAuthToken:y,preload:S,autoplay:I,volume:P,muted:A,fromTime:E,canRewindLive:T,supportLink:R,showAds:z,adsSlotId:j,adsParams:U={},adsPreviewParam:X,adsAutoplayParam:ee,interfaceLanguage:ne,isCyrillicRelatedInterface:ue,logoClickable:de,logoHidden:Ve,isMobile:Be,isTouch:J,isAudioDisabled:Le,isLiveCatchUpMode:Z,fullScreenTarget:N,failoverHosts:Re,canDownload:we,callbacks:se,interactiveData:Ne,showThumbTimer:pe,additionalButtons:D=[],additionalSettingsMenuItems:ce=[],additionalContextMenuItems:Pe=[],repeat:Ge,saveRate:lt,volumeMultiplier:Ae,showEndScreen:xe,showAutoplayNext:Me}=Ad(this.videoConfig,i),{sources:rt,title:ft,thumbUrl:it,unitedVideoId:Bt,isClip:st=!1,duration:mt,adsParams:zt={},videoEpisodes:Kt,previewThumbsData:De,subtitles:re,live:Q}=e,ae=Es(Es({},U),zt),fe=this.getNextVideoInfo(),Te={sources:rt,title:ft,thumbUrl:it,subtitles:re,unitedVideoId:Bt,isClip:st,live:Q,albumId:$,statPlace:w,autoplay:I,muted:A,volume:P,fromTime:E,canRewindLive:T,showAds:z,adsSlotId:j,adsParams:ae,adsPreviewParam:X,adsAutoplayParam:ee,duration:mt,logoClickable:de,logoHidden:Ve,isTouch:J!=null?J:Be,repeat:Ge,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:fe.nextVideoTitle,endScreenVideoThumb:fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},He={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Te)}`});let ct=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),Nt,Ke=this.createThinOneStat(e,i);(Nt||Ke)&&(this.statistics=new zc(Nt,Ke,ct==null?void 0:ct.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ys(this.uiConfig.sentry,{version:Da,env:vc},{movieId:Bt,albumId:$,place:w,autoplay:(a=I&&!this.interactiveController)!=null?a:!1,mobile:J!=null?J:Be,clip:st}),this.interactiveController&&((l=this.prevIsid)!=null||(this.prevIsid=(d=(s=this.statistics)==null?void 0:s.oneStat)==null?void 0:d.isid$.getValue())),this.sentry=Es(Es({},this.sentry),Ys.getInstance());let Je=!!Ne,yt=[],jt="tooltip_interactive_go_back_disabled_first";if(Je&&this.interactiveController){let si=this.interactiveController.state.isInitialChapter$.getValue(),Ei=this.interactiveController.getHistoryState();si&&yt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||yt.push("SEEK_TO_INTERACTIVE_BUTTON"),Ei.hasPrevChapter$.getValue()||(yt.push("PLAY_PREV_CHAPTER_BUTTON"),si||(Ei.isGoBackLimited$.getValue()?jt="tooltip_interactive_go_back_disabled_limit":jt="tooltip_interactive_go_back_disabled"))}let je=()=>{var si;this.isInited=!1,this.prevIsid=void 0;let Ei=(o==null?void 0:o.info.isEnded$.getValue())&&((si=this.interactiveController)==null?void 0:si.state.isEndChapter$.getValue());se.onReplayInteractiveVideo&&!Ei?se.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Qh({player:o,interfaceLanguage:ne,isCyrillicRelatedInterface:ue,videoId:Bt,isClip:st,isLiveCatchUpMode:Z,isAudioDisabled:Le,statAuthToken:y,callbacks:se,webApi:He,videoEpisodes:Kt,previewThumbsData:De,canDownload:we,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:yt,isInteractive:Je,saveRate:lt,interactiveRanges$:(u=this.interactiveController)==null?void 0:u.state.interactiveRanges$,isInteractiveTime$:(f=this.interactiveController)==null?void 0:f.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:je,playPrevChapterDisabledTooltip:jt,hasInteractiveBranches:!!((p=(_=this.interactiveController)==null?void 0:_.getChapterBranches())!=null&&p.length),additionalButtons:this.uiConfig.features.additionalButtons?D:[],additionalSettingsMenuItems:ce!=null?ce:[],additionalContextMenuItems:Pe!=null?Pe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Ge&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:Ct}=this.microStoresRoot=E1(),ui=()=>{var si,Ei,Fi,Ro,wo,So;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(H=>{var We;return(We=se==null?void 0:se.onCurrentFormatChanged)==null?void 0:We.call(se,H)})),this.subscription.add(Ct.interactiveControlsOpacity$.subscribe(H=>{var We;H!==null&&((We=this==null?void 0:this.interactiveController)==null||We.setDisabledControls(H))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(H=>{var We;return(We=se==null?void 0:se.onThroughputEstimationChanged)==null?void 0:We.call(se,H)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(H=>{var We;return(We=se==null?void 0:se.onTrafficSavingEnabledChanged)==null?void 0:We.call(se,H)})),this.subscription.add(new d5(H=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(We=>H.next(We)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?p5(1):H=>H).subscribe(H=>{var We;return(We=se==null?void 0:se.onCurrentPlaybackRateChanged)==null?void 0:We.call(se,H)})),this.subscription.add(this.store.state.volume$.subscribe(H=>{var We;return(We=se==null?void 0:se.onVolumeChange)==null?void 0:We.call(se,H)})),this.subscription.add(this.store.state.muted$.subscribe(H=>{var We,ai;return H?(We=se==null?void 0:se.onMute)==null?void 0:We.call(se):(ai=se==null?void 0:se.onUnmute)==null?void 0:ai.call(se)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(H=>{var We;return(We=se==null?void 0:se.onVideoBitrateChanged)==null?void 0:We.call(se,H)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(H=>{var We;let ai=(We=this.store)==null?void 0:We.ui.controls.disabledControls$;ai&&(H&&!ai.includes(Vl)&&ai.add(Vl),H||ai.remove(Vl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(H=>cu(this,null,function*(){var We;if(!M1.browser.isSamsungBrowser||!H||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((We=this.videoConfig)==null?void 0:We.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(H=>{var We;return(We=se==null?void 0:se.onVSIDChanged)==null?void 0:We.call(se,H)})),this.initMediaSession(),O(Cn,_e({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:rt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ft,thumbUrl:it,subtitles:re,live:Q,preload:S,autoplay:I,muted:A,volume:P,fromTime:E,canRewindLive:T,supportLink:R,showAds:z,adsSlotId:j,adsParams:ae,adsPreviewParam:X,adsAutoplayParam:ee,duration:mt,logoClickable:de,logoHidden:Ve,isMobile:J!=null?J:Be,failoverHosts:Re,fullScreenTarget:N,saveRate:lt,shadowRootContainer:this.shadowRootContainer,showMiniTimer:pe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:fe.nextVideoTitle,endScreenVideoThumb:fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:xe,showAutoplayNext:Me}));let Bo={target:this.playerContainer,props:r(Cn)};this.svelteRootComponent=os(Im,Bo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Fi=(Ei=(si=this.videoConfig)==null?void 0:si.callbacks)==null?void 0:Ei.onInited)==null||Fi.call(Ei)),(Ro=this.internalsExposure)==null||Ro.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((So=(wo=this.videoConfig)==null?void 0:wo.callbacks)!=null&&So.onDevNullLog)?Od.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Od.destroy("ui")};this.coreConfig.asyncResolveClientChecker?M1.isInited$.subscribe(si=>{si&&(console.log("UI SDK async start"),ui())}):ui()}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:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.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){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Nm(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{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)}initInteractives(){return cu(this,null,function*(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?Se(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,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:u,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$:p,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(p.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]=n5(Es({},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 I,P,A,E,T,R;if(!this.store||!this.microStoresRoot)return;let z=p.getValue();if(y==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Rl)),y==="action-choice-canceled"){let j=Se(this.store.state.isPlaying$)||z;if(((A=(I=this.videoConfig)==null?void 0:I.isTouch)!=null?A:(P=this.videoConfig)!=null&&P.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(E=this.videoConfig)==null?void 0:(T=E.callbacks).onDisabledInteractiveClick)==null||R.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(Rl)})),yield 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 I,P,A;S.length&&((A=(P=(I=this.videoConfig)==null?void 0:I.callbacks)==null?void 0:P.onInteractiveHistoryChanged)==null||A.call(P,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,S,I,P;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(P=(S=this.videoConfig)==null?void 0:(I=S.callbacks).onInteractiveTimeIndicatorClick)==null||P.call(I)})),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,u,f,_,p,$,w,y,S,I,P,A,E,T,R,z,j,U,X,ee,ne;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Ad(g5,s5(e,ue=>ue instanceof HTMLElement?ue:void 0)),this.uiConfig=kg((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 u5("UI"))),Od.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:[r5()]}),Nm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),Nm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?p:!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,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(A=this.uiConfig.ads.slot)!=null?A: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),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(j=this.uiConfig.features.endScreen)!=null?j:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(U=this.uiConfig.features.autoplayNext)!=null?U:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(X=this.uiConfig.features.nextPrevButtons)!=null?X:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ee=this.videoConfig.videos)!=null&&ee[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ue={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=su.getLatestSupportedVersion(ue):this.pictureInPictureApi=new Zs(ue)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ru:void 0,this.slotsApi=this.uiConfig.features.slots?new tu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new au(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(ne=this.slotsApi)==null||ne.init(this.shadowRootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),w1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Cn)&&(r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive(),r(Cn).endScreenVideoTitle=o.nextVideoTitle,r(Cn).endScreenVideoThumb=o.nextVideoThumb,r(Cn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Es({},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})}}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(Cn)&&(r(Cn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return cu(this,null,function*(){var i;yield(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)}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return cu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=Se(this.store.state.positionExact$),s=Se(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(c5()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat&&this.statistics.oneStat.updateContext(e)}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&&Ks(e)}};import{InterfaceLanguage as zX,VKNumericLanguage as qX,loadVKLangPack as KX}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as QX,VideoFormat as GX}from"@vkontakte/videoplayer-core/es2015";var RX=()=>{window.customElements.define("vk-video-player",uu)};export{qc as ControlButtonType,qr as GridTypes,zX as InterfaceLanguage,ql as MenuItemType,js as PlayerPhase,Da as VERSION,qX as VKNumericLanguage,GX as VideoFormat,QX as VideoQuality,KX as loadVKLangPack,RX as registerPlayerWebComponent};
394
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Lm(t,e){q(e,!0),G(t,Ex);let[i,o]=Ue(),n=()=>C(Kt,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),u=v(e,"uiConfig",7),f=v(e,"title",7),_=v(e,"thumbUrl",7),p=v(e,"interactiveContainer",7),$=v(e,"interactiveController",7),w=v(e,"subtitles",7),y=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),P=v(e,"volume",7,void 0),A=v(e,"muted",7,void 0),E=v(e,"fromTime",7),T=v(e,"canRewindLive",7),V=v(e,"showAds",7),U=v(e,"adsSlotId",7,void 0),j=v(e,"adsParams",7,void 0),F=v(e,"adsPreviewParam",7,void 0),Z=v(e,"adsAutoplayParam",7,void 0),J=v(e,"duration",7,void 0),ne=v(e,"logoClickable",7),fe=v(e,"logoHidden",7),de=v(e,"isMobile",7),Re=v(e,"showNextPrevButtons",7,!1),Le=v(e,"nextButtonActive",7,!1),ee=v(e,"prevButtonActive",7,!1),Ve=v(e,"endScreenVideoTitle",7,void 0),X=v(e,"endScreenVideoThumb",7,void 0),B=v(e,"isOneVideoPlaylist",7,!1),Ne=v(e,"supportLink",7),re=v(e,"shadowRootContainer",7,void 0),Ee=v(e,"outerContainerRef",7,void 0),Be=v(e,"fullScreenTarget",7,void 0),me=v(e,"failoverHosts",7,void 0),D=v(e,"showMiniTimer",7,!1),ce=v(e,"saveRate",7),Pe=v(e,"seekToInteractive",7,C1),Ye=v(e,"playPrevChapter",7,C1),dt=v(e,"volumeMultiplier",7),Ae=v(e,"showAutoplayNext",7),ye=v(e,"showEndScreen",7,!0),Me=v(e,"keyboardControls",15,void 0),{subscribers:rt,stores:vt}=d();Mg(u());let lt=Qt(),kt=u().logoLink,st=s().ui.debugPanelVisible,gt=s().ui.playerSize,Kt=s().state.isLive$,De=s().state.isInteractive&&Sx.device.isAndroid,se=te(void 0),Q=null,ae=te(!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}),Ug(s(),vt),We(()=>{s().ui.isMobile.set(de())});let _e=(z=!1)=>{O(ae,!0),z?s().actions.external.firstStart(V()):s().actions.internal.firstStart(V())},Ce=()=>{if(lt.features.qualityDetailsSubMenuEnabled){let z=lh(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{dh(s().videoId),Pp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Yt=Tp(s().videoId);Yt&&s().actions.internal.setQuality(Yt)}};function Oe(z){var oi,ao,ho;let Yt=a()||z;Yt&&s().initVideo({container:r(se),sources:Yt,failoverHosts:me(),subtitles:w(),volumeMultiplier:dt()});let Fi=Cx.get(Ll)==="true";st.set(Fi),E()>0&&s().actions.external.seekTime(E());let Li=de()?lt.volumeDefault:(ao=(oi=P())!=null?oi:wc())!=null?ao:lt.volumeDefault,hi=(ho=A())!=null?ho:ih();if(s().actions.external.setVolume(Li),s().actions.external.setMuted(hi),s().getAdmanWrapper().setInitialVolume(hi?0:Li),Ce(),lt.features.saveRate&&ce()){let Ui=rh();Ui&&!n()&&s().actions.internal.setPlaybackRate(Ui)}if(Ae()){let Ui=ah();Ui&&s().actions.internal.setAutoplayNextEnabled(Ui)}s().ui.isAutoplay.set(I()),I()?_e():S()&&lt.features.preload&&s().actions.internal.preload()}let ut=z=>{if(window.ResizeObserver){let Yt,Fi;Q=new ResizeObserver(Tx(Li=>{let hi=Li[0];if(hi.contentBoxSize){let oi=Array.isArray(hi.contentBoxSize)?hi.contentBoxSize[0]:hi.contentBoxSize;Yt=oi.inlineSize,Fi=oi.blockSize}else hi.contentRect&&(Yt=hi.contentRect.width,Fi=hi.contentRect.height);gt.set({width:Yt,height:Fi})},300)),Q.observe(z)}gt.set({width:z.clientWidth,height:z.clientHeight})},Gt=()=>{document.hidden&&s().actions.external.stop()};Ut(()=>{var Fi,Li,hi,oi;De&&document.addEventListener("visibilitychange",Gt),lt.debugLog&&s().actions.internal.startLogging(),ut(r(se));let z=rt.map(ao=>ao.init({store:s(),microStores:vt,config:l(),interactiveController:$(),uiConfig:u()})),Yt=()=>{De&&document.removeEventListener("visibilitychange",Gt),Q==null||Q.disconnect(),z.forEach(ao=>ao.unsubscribe()),s().destroy()};return((Fi=y())==null?void 0:Fi.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Yt):((Li=y())==null?void 0:Li.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Yt):(((hi=y())==null?void 0:hi.status)==="finished"||((oi=y())==null?void 0:oi.status)==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Yt):(Oe(),Yt)});function Ze(){r(ae)?s().actions.external.play():_e(!0)}function pt(){s().actions.external.pause()}function Je(z){s().actions.external.setMuted(z)}function Pt(z){de()||z>=0&&z<=1&&s().actions.external.setVolume(z)}function ai(z){s().actions.internal.seekTime(z,Ix.UNKNOWN)}function Ge(z){s().actions.external.seekEpisodeStartTime(z)}function ot(){s().actions.external.returnFocusToEpisodes()}function ii(z){s().actions.external.setPlaybackRate(z)}function Pi(z){s().actions.external.setAutoQualityLimits(z)}let Eo=du(lt.view);var Hi=kx();tt(Hi,Eo);var Po=h(Hi);{var zo=z=>{Mm(z,{get store(){return s()},uiConfig:lt,get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return U()},get adsParams(){return j()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Z()},get duration(){return J()},get logoClickable(){return ne()},get logoHidden(){return fe()},logoTargetUrl:kt,get nextButtonActive(){return Le()},get prevButtonActive(){return ee()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return X()},get isOneVideoPlaylist(){return B()},get supportLink(){return Ne()},get shadowRootContainer(){return re()},get outerContainerRef(){return Ee()},get fullScreenTarget(){return Be()},get showMiniTimer(){return D()},get playerStarted(){return r(ae)},get seekToInteractive(){return Pe()},get playPrevChapter(){return Ye()},firstStart:_e,seekTime:ai,get showEndScreen(){return ye()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Re()},get videoContainer(){return r(se)},set videoContainer(Yt){O(se,ve(Yt))}})},Lt=z=>{Pm(z,{get store(){return s()},uiConfig:lt,get title(){return f()},get thumbUrl(){return _()},get interactiveContainer(){return p()},get live(){return y()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return V()},get adsSlotId(){return U()},get adsParams(){return j()},get adsPreviewParam(){return F()},get adsAutoplayParam(){return Z()},get duration(){return J()},get logoClickable(){return ne()},get logoHidden(){return fe()},logoTargetUrl:kt,get nextButtonActive(){return Le()},get prevButtonActive(){return ee()},get endScreenVideoTitle(){return Ve()},get endScreenVideoThumb(){return X()},get isOneVideoPlaylist(){return B()},get supportLink(){return Ne()},get shadowRootContainer(){return re()},get outerContainerRef(){return Ee()},get fullScreenTarget(){return Be()},get showMiniTimer(){return D()},get playerStarted(){return r(ae)},get seekToInteractive(){return Pe()},get playPrevChapter(){return Ye()},firstStart:_e,get showEndScreen(){return ye()},get showAutoplayNext(){return Ae()},get showNextPrevButtons(){return Re()},get videoContainer(){return r(se)},set videoContainer(Yt){O(se,ve(Yt))},get keyboardControls(){return Me()},set keyboardControls(Yt){Me(Yt)}})};R(Po,z=>{de()?z(zo):z(Lt,!1)})}g(Hi),b(t,Hi);var _t=K({initVideo:Oe,play:Ze,pause:pt,setMuted:Je,setVolume:Pt,seekTime:ai,seekEpisodeStartTime:Ge,returnFocusToEpisodes:ot,setPlaybackRate:ii,setAutoQualityLimits:Pi,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 u()},set uiConfig(z){u(z)},get title(){return f()},set title(z){f(z)},get thumbUrl(){return _()},set thumbUrl(z){_(z)},get interactiveContainer(){return p()},set interactiveContainer(z){p(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 S()},set preload(z){S(z)},get autoplay(){return I()},set autoplay(z){I(z)},get volume(){return P()},set volume(z){P(z)},get muted(){return A()},set muted(z){A(z)},get fromTime(){return E()},set fromTime(z){E(z)},get canRewindLive(){return T()},set canRewindLive(z){T(z)},get showAds(){return V()},set showAds(z){V(z)},get adsSlotId(){return U()},set adsSlotId(z){U(z)},get adsParams(){return j()},set adsParams(z){j(z)},get adsPreviewParam(){return F()},set adsPreviewParam(z){F(z)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(z){Z(z)},get duration(){return J()},set duration(z){J(z)},get logoClickable(){return ne()},set logoClickable(z){ne(z)},get logoHidden(){return fe()},set logoHidden(z){fe(z)},get isMobile(){return de()},set isMobile(z){de(z)},get showNextPrevButtons(){return Re()},set showNextPrevButtons(z){Re(z)},get nextButtonActive(){return Le()},set nextButtonActive(z){Le(z)},get prevButtonActive(){return ee()},set prevButtonActive(z){ee(z)},get endScreenVideoTitle(){return Ve()},set endScreenVideoTitle(z){Ve(z)},get endScreenVideoThumb(){return X()},set endScreenVideoThumb(z){X(z)},get isOneVideoPlaylist(){return B()},set isOneVideoPlaylist(z){B(z)},get supportLink(){return Ne()},set supportLink(z){Ne(z)},get shadowRootContainer(){return re()},set shadowRootContainer(z){re(z)},get outerContainerRef(){return Ee()},set outerContainerRef(z){Ee(z)},get fullScreenTarget(){return Be()},set fullScreenTarget(z){Be(z)},get failoverHosts(){return me()},set failoverHosts(z){me(z)},get showMiniTimer(){return D()},set showMiniTimer(z){D(z)},get saveRate(){return ce()},set saveRate(z){ce(z)},get showAutoplayNext(){return Ae()},set showAutoplayNext(z){Ae(z)},get seekToInteractive(){return Pe()},set seekToInteractive(z){Pe(z)},get playPrevChapter(){return Ye()},set playPrevChapter(z){Ye(z)},get volumeMultiplier(){return dt()},set volumeMultiplier(z){dt(z)},get showEndScreen(){return ye()},set showEndScreen(z){ye(z)},get keyboardControls(){return Me()},set keyboardControls(z){Me(z)}});return o(),_t}var Px=$e('<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 Vm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Px();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({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 Rm(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");Vm(t,{get style(){return r(o)}})}var Ax=L('<div class="title svelte-1y9fytq"> </div>'),Mx=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Lx={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 Nm(t,e){G(t,Lx);var i=Mx(),o=h(i);{var n=d=>{var l=Ax(),u=h(l,!0);g(l),k(()=>ge(u,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);Rm(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 d5}from"@vkontakte/videoplayer-shared/es2015";import{cloneDeepWith as c5,InterfaceLanguage as u5,isNonNullable as zm,Logger as p5,Observable as f5,Subscription as V1,once as m5,InternalsExposure as v5,skip as g5}from"@vkontakte/videoplayer-shared/es2015";import{clientChecker as R1,isMobile as h5}from"@vkontakte/videoplayer-core/es2015";import{OneStat as _5}from"@vkontakte/videoplayer-statistics/es2015";import{Logger as Vx,Subscription as Rx}from"@vkontakte/videoplayer-shared/es2015";var cu=class{constructor(){this.subscription=new Rx,this.logger=new Vx,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=xe(e.state.currentPlaybackRate$),n=xe(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 Hm,detectEmbed as Fx}from"@vkontakte/videoplayer-shared/es2015";var Nx=$e('<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 Bm(t,e){let i=ke(e,["$$slots","$$events","$$legacy","children"]);var o=Nx();let n;var a=h(o);he(a,()=>{var s;return(s=e.children)!=null?s:oe}),be(),g(o),k(()=>n=we(o,n,W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i))),b(t,o)}var Bx=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Dx={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 Dm(t,e){q(e,!0),G(t,Dx);let[i,o]=Ue(),n=()=>C(u,"$interfaceLanguage$",i),a=()=>C(f,"$isMobile$",i),s=Se(),d=Qt(),l=!!s.webApi.pictureInPictureApi,u=s.interfaceLanguage$,f=s.ui.isMobile,_=s.ui.t,p=m(()=>n()&&_("pip_dummy_title")),$=du(d.view);var w=Bx();ie(w,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),tt(w,$);var y=h(w);let S;var I=h(y);Bm(I,{}),g(y);var P=M(y,2),A=h(P,!0);g(P),g(w),k(E=>{S=ie(y,1,"dummy-image svelte-1pbsod4",null,S,E),ge(A,r(p))},[()=>({desktop:!a()})]),b(t,w),K(),o()}var Ox=Object.defineProperty,Hx=(t,e,i)=>e in t?Ox(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,el=(t,e,i)=>Hx(t,typeof e!="symbol"?e+"":e,i),Om=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),Ux=460,zx=280,Pd=class{constructor({enabled:e=!0}={enabled:!0}){el(this,"playerDomElement"),el(this,"playerParentShadowRoot"),el(this,"playerDummyElement"),el(this,"svelteContext"),el(this,"pipWindow"),el(this,"info",{isActive$:new Hm(!1),isEnabled$:new Hm(!1),type:1}),this.info.isEnabled$=new Hm(e)}isSupported(){let{isEmbed:e}=Fx();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}request(){return Om(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Ux,height:zx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(u=>u.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=os(Dm,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||(Ws(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return Om(this,null,function*(){return new Promise(e=>{var i;(i=documentPictureInPicture.window)==null||i.close(),e()})})}dispose(){return Om(this,null,function*(){yield 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 T1(t){return t instanceof Pd}var uu=class{static getLatestSupportedVersion(e){let i=new Js,o=new Pd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function pu(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 I1="Inner error. Unexpectedly root annotation container null reference exception",k1="Annotation with such name already exists",E1="Annotation with such name does not exist";var tl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as qx,Subscription as Kx,throttleFn as Wx}from"@vkontakte/videoplayer-shared/es2015";var Qx="1",Gx=100,fu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Kx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Wx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Gx);this.subscriptions.add(qx(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 tl(I1);if(this.annotations.has(e))throw new tl(k1);i.style.zIndex=(o=i.style.zIndex)!=null?o:Qx,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 tl(E1);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 mu,Subscription as Yx}from"@vkontakte/videoplayer-shared/es2015";var Uo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return mu(e),mu(i),mu(n),n.interactiveData&&mu(o),this.subscription=new Yx,this.subscription}};var Ad=class extends Uo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Nt(W({},le(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 Md=class extends Uo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Nt(W({},le(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:u,isMobile:f}=a.ui,_=xe(f),p=()=>_&&xe(u);return o.add(u.subscribe($=>{if(!_)return;let w=xe(s);xe(l)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(l.subscribe($=>{this.state$.set(!$||p())})),o.add(s.subscribe($=>{if($===null)return;let w=xe(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Ld=class extends Uo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("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 jx}from"@vkontakte/videoplayer-shared/es2015";var Fm=le(!1),vu=null,Vd=class extends Uo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Nt(W({},Fm),{set:(i,o=!1)=>{i!==xe(Fm)&&(this.clearTimeout(),Fm.set(i),!i&&vu&&(vu=!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:u}=n.ui.controls;o.add(l.subscribe(_=>{xe(s)&&_&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add(jx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:u}).subscribe(({isPlaying$:_,isInteractiveTime$:p,interactiveTimeIndicator:$})=>{var w,y;if(!(!_||!($!=null&&$.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&vu===null&&(vu=!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 Zx,noop as Xx}from"@vkontakte/videoplayer-shared/es2015";var Rd=class extends Uo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Nt(W({},le(null)),{toggle:Xx});this.checkIfShouldHide=i=>ks(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=()=>Ct(this,null,function*(){if(this.checkIfShouldHide(xe(s)))return;let l=xe(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:_}=n.ui.controls,p=xe(u),$=xe(f);if(l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),_.remove(bp),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),_.add(bp),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add(Zx({graphIsOpened:this.state$,currentGridType:s}).subscribe(f=>Ct(this,[f],function*({graphIsOpened:l,currentGridType:u}){if(this.checkIfShouldHide(u)&&l)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};import{ValueSubject as P1}from"@vkontakte/videoplayer-shared/es2015";var Nd=class extends Uo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(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 P1(!1),isEnabled$:new P1(!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 t5,filterChanged as i5}from"@vkontakte/videoplayer-shared/es2015";import{safeStorage as Um}from"@vkontakte/videoplayer-shared/es2015";var A1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Jx({maxCount:t}):void 0,e!==0?e5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},Jx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,Um.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}}},e5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Um.get(e)||"{}")}catch(a){return{}}},o=a=>Um.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o(Nt(W({},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 Bd=class extends Uo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),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=A1({maxShowCount:a,timeout:s});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe(i5(),t5(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var M1=()=>[Ad,Md,Ld,Vd,Rd,Nd,Bd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Nt(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});import{devNull as Dd}from"@vkontakte/videoplayer-shared/es2015";var o5=Object.defineProperty,n5=Object.defineProperties,r5=Object.getOwnPropertyDescriptors,L1=Object.getOwnPropertySymbols,s5=Object.prototype.hasOwnProperty,a5=Object.prototype.propertyIsEnumerable,qm=(t,e,i)=>e in t?o5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,As=(t,e)=>{for(var i in e||(e={}))s5.call(e,i)&&qm(t,i,e[i]);if(L1)for(var i of L1(e))a5.call(e,i)&&qm(t,i,e[i]);return t},l5=(t,e)=>n5(t,r5(e)),ti=(t,e,i)=>qm(t,typeof e!="symbol"?e+"":e,i),gu=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())}),b5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:u5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:h5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Cn=te(void 0),hu=class extends HTMLElement{constructor(){super(),ti(this,"svelteStubComponent"),ti(this,"svelteRootComponent"),ti(this,"store"),ti(this,"microStoresRoot"),ti(this,"statistics"),ti(this,"sentry"),ti(this,"_shadowRoot"),ti(this,"playerContainer"),ti(this,"rootContainer"),ti(this,"shadowRootContainer"),ti(this,"uiConfig"),ti(this,"coreConfig"),ti(this,"statisticsConfig"),ti(this,"interactiveController"),ti(this,"interactiveContainer"),ti(this,"graphMadePause"),ti(this,"currentPlayingVideoIndex",0),ti(this,"needToRepeatPlaylist",!1),ti(this,"videoConfig"),ti(this,"pictureInPictureApi"),ti(this,"mediaSessionApi"),ti(this,"unsubscribePlayerPhaseSubscription"),ti(this,"logger"),ti(this,"log"),ti(this,"subscription"),ti(this,"interactiveSubscription"),ti(this,"annotationsApi"),ti(this,"slotsApi"),ti(this,"prevIsid"),ti(this,"isInited",!1),ti(this,"internalsExposure",null),ti(this,"createOneStat",(e,i={})=>{var o,n,a,s;let{albumId:d,statPlace:l,statUserSalt:u,statTrackCode:f,statVKAppId:_,refreshStatAuthToken:p,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:I,interactiveData:P}=pu(this.videoConfig,i),A=(o=P==null?void 0:P.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 _5(As({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:I},A&&(!this.isInited||E)&&{projectId:Number(A)}),As({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}),Dd.create("ui"),this.logger=new p5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new V1,this.interactiveSubscription=new V1,this.graphMadePause=!1}connectedCallback(){var e,i;if(this.isInited)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=ve({title:o,thumbUrl:n}),s={target:this.playerContainer,props:a};this.svelteStubComponent=os(Nm,s)}disconnectedCallback(){var e,i,o,n,a;(e=this.annotationsApi)==null||e.destroy(),(i=this.mediaSessionApi)==null||i.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)==null||o.call(this),(n=this.interactiveController)==null||n.destroy(),this.interactiveSubscription.unsubscribe(),(a=this.internalsExposure)==null||a.destroy(),Dd.destroy("ui")}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},o){var n,a,s,d,l,u,f,_;if(!this.videoConfig)return;let{albumId:p,statPlace:$,statAuthToken:w,preload:y,autoplay:S,volume:I,muted:P,fromTime:A,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:U,adsParams:j={},adsPreviewParam:F,adsAutoplayParam:Z,interfaceLanguage:J,isCyrillicRelatedInterface:ne,logoClickable:fe,logoHidden:de,isMobile:Re,isTouch:Le,isAudioDisabled:ee,isLiveCatchUpMode:Ve,fullScreenTarget:X,failoverHosts:B,canDownload:Ne,callbacks:re,interactiveData:Ee,showThumbTimer:Be,additionalButtons:me=[],additionalSettingsMenuItems:D=[],additionalContextMenuItems:ce=[],repeat:Pe,saveRate:Ye,volumeMultiplier:dt,showEndScreen:Ae,showAutoplayNext:ye}=pu(this.videoConfig,i),{sources:Me,title:rt,thumbUrl:vt,unitedVideoId:lt,isClip:kt=!1,duration:st,adsParams:gt={},videoEpisodes:Kt,previewThumbsData:jt,subtitles:De,live:se}=e,Q=As(As({},j),gt),ae=this.getNextVideoInfo(),_e={sources:Me,title:rt,thumbUrl:vt,subtitles:De,unitedVideoId:lt,isClip:kt,live:se,albumId:p,statPlace:$,autoplay:S,muted:P,volume:I,fromTime:A,canRewindLive:E,showAds:V,adsSlotId:U,adsParams:Q,adsPreviewParam:F,adsAutoplayParam:Z,duration:st,logoClickable:fe,logoHidden:de,isTouch:Le!=null?Le:Re,repeat:Pe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ce={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(_e)}`});let Oe=(n=this.interactiveController)==null?void 0:n.state.statistics$.getValue(),ut=(Oe==null?void 0:Oe.oneStat)||this.createOneStat(e,i);ut&&(this.statistics=new Gc(ut,Oe==null?void 0:Oe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Zs(this.uiConfig.sentry,{version:Ha,env:$c},{movieId:lt,albumId:p,place:$,autoplay:(a=S&&!this.interactiveController)!=null?a:!1,mobile:Le!=null?Le:Re,clip:kt}),this.interactiveController&&((d=this.prevIsid)!=null||(this.prevIsid=(s=this.statistics)==null?void 0:s.oneStat.isid$.getValue())),this.sentry=As(As({},this.sentry),Zs.getInstance());let Ze=!!Ee,pt=[],Je="tooltip_interactive_go_back_disabled_first";if(Ze&&this.interactiveController){let ot=this.interactiveController.state.isInitialChapter$.getValue(),ii=this.interactiveController.getHistoryState();ot&&pt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||pt.push("SEEK_TO_INTERACTIVE_BUTTON"),ii.hasPrevChapter$.getValue()||(pt.push("PLAY_PREV_CHAPTER_BUTTON"),ot||(ii.isGoBackLimited$.getValue()?Je="tooltip_interactive_go_back_disabled_limit":Je="tooltip_interactive_go_back_disabled"))}let Pt=()=>{var ot;this.isInited=!1,this.prevIsid=void 0;let ii=(o==null?void 0:o.info.isEnded$.getValue())&&((ot=this.interactiveController)==null?void 0:ot.state.isEndChapter$.getValue());re.onReplayInteractiveVideo&&!ii?re.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=jh({player:o,interfaceLanguage:J,isCyrillicRelatedInterface:ne,videoId:lt,isClip:kt,isLiveCatchUpMode:Ve,isAudioDisabled:ee,statAuthToken:w,callbacks:re,webApi:Ce,videoEpisodes:Kt,previewThumbsData:jt,canDownload:Ne,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:pt,isInteractive:Ze,saveRate:Ye,interactiveRanges$:(l=this.interactiveController)==null?void 0:l.state.interactiveRanges$,isInteractiveTime$:(u=this.interactiveController)==null?void 0:u.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:Pt,playPrevChapterDisabledTooltip:Je,hasInteractiveBranches:!!((_=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?me:[],additionalSettingsMenuItems:D!=null?D:[],additionalContextMenuItems:ce!=null?ce:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Pe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:ai}=this.microStoresRoot=M1(),Ge=()=>{var ot,ii,Pi,Eo,Hi,Po;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Lt=>{var _t;return(_t=re==null?void 0:re.onCurrentFormatChanged)==null?void 0:_t.call(re,Lt)})),this.subscription.add(ai.interactiveControlsOpacity$.subscribe(Lt=>{var _t;Lt!==null&&((_t=this==null?void 0:this.interactiveController)==null||_t.setDisabledControls(Lt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Lt=>{var _t;return(_t=re==null?void 0:re.onThroughputEstimationChanged)==null?void 0:_t.call(re,Lt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Lt=>{var _t;return(_t=re==null?void 0:re.onTrafficSavingEnabledChanged)==null?void 0:_t.call(re,Lt)})),this.subscription.add(new f5(Lt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(_t=>Lt.next(_t)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?g5(1):Lt=>Lt).subscribe(Lt=>{var _t;return(_t=re==null?void 0:re.onCurrentPlaybackRateChanged)==null?void 0:_t.call(re,Lt)})),this.subscription.add(this.store.state.volume$.subscribe(Lt=>{var _t;return(_t=re==null?void 0:re.onVolumeChange)==null?void 0:_t.call(re,Lt)})),this.subscription.add(this.store.state.muted$.subscribe(Lt=>{var _t,z;return Lt?(_t=re==null?void 0:re.onMute)==null?void 0:_t.call(re):(z=re==null?void 0:re.onUnmute)==null?void 0:z.call(re)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Lt=>{var _t;return(_t=re==null?void 0:re.onVideoBitrateChanged)==null?void 0:_t.call(re,Lt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Lt=>{var _t;let z=(_t=this.store)==null?void 0:_t.ui.controls.disabledControls$;z&&(Lt&&!z.includes(Vl)&&z.add(Vl),Lt||z.remove(Vl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Lt=>gu(this,null,function*(){var _t;if(!R1.browser.isSamsungBrowser||!Lt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((_t=this.videoConfig)==null?void 0:_t.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Lt=>{var _t;return(_t=re==null?void 0:re.onVSIDChanged)==null?void 0:_t.call(re,Lt)})),this.initMediaSession(),O(Cn,ve({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Me,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:rt,thumbUrl:vt,subtitles:De,live:se,preload:y,autoplay:S,muted:P,volume:I,fromTime:A,canRewindLive:E,supportLink:T,showAds:V,adsSlotId:U,adsParams:Q,adsPreviewParam:F,adsAutoplayParam:Z,duration:st,logoClickable:fe,logoHidden:de,isMobile:Le!=null?Le:Re,failoverHosts:B,fullScreenTarget:X,saveRate:Ye,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Be,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:dt,showEndScreen:Ae,showAutoplayNext:ye}));let zo={target:this.playerContainer,props:r(Cn)};this.svelteRootComponent=os(Lm,zo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Pi=(ii=(ot=this.videoConfig)==null?void 0:ot.callbacks)==null?void 0:ii.onInited)==null||Pi.call(ii)),(Eo=this.internalsExposure)==null||Eo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Po=(Hi=this.videoConfig)==null?void 0:Hi.callbacks)!=null&&Po.onDevNullLog)?Dd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Dd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?R1.isInited$.subscribe(ot=>{ot&&(console.log("UI SDK async start"),Ge())}):Ge()}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:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var l,u;return d?(l=a.onPiPEnter)==null?void 0:l.call(a):(u=a.onPiPExit)==null?void 0:u.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&&zm(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)}initInteractives(){return gu(this,null,function*(){var e,i,o,n;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:a}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,d=s?xe(s):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:u,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:u,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$:p,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(p.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]=l5(As({},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 I,P,A,E,T,V;if(!this.store||!this.microStoresRoot)return;let U=p.getValue();if(y==="action-choice"&&S==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Rl)),y==="action-choice-canceled"){let j=xe(this.store.state.isPlaying$)||U;if(((A=(I=this.videoConfig)==null?void 0:I.isTouch)!=null?A:(P=this.videoConfig)!=null&&P.isMobile)&&j){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(Rl)})),yield 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 I,P,A;S.length&&((A=(P=(I=this.videoConfig)==null?void 0:I.callbacks)==null?void 0:P.onInteractiveHistoryChanged)==null||A.call(P,S))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var y,S,I,P;(y=this.microStoresRoot)==null||y.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(P=(S=this.videoConfig)==null?void 0:(I=S.callbacks).onInteractiveTimeIndicatorClick)==null||P.call(I)})),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,u,f,_,p,$,w,y,S,I,P,A,E,T,V,U,j,F,Z,J,ne;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=pu(b5,c5(e,fe=>fe instanceof HTMLElement?fe:void 0)),this.uiConfig=Ag((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 v5("UI"))),Dd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((l=this.videoConfig)==null?void 0:l.showAds)],numbers:[d5()]}),zm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(u=this.uiConfig.features.mediaSession)!=null?u:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),zm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(p=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?p:!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,(I=this.videoConfig).autoplay&&(I.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(A=this.uiConfig.ads.slot)!=null?A: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=(U=this.videoConfig.supportLink)!=null?U:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(j=this.uiConfig.features.endScreen)!=null?j:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(F=this.uiConfig.features.autoplayNext)!=null?F:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(Z=this.uiConfig.features.nextPrevButtons)!=null?Z:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((J=this.videoConfig.videos)!=null&&J[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=uu.getLatestSupportedVersion(fe):this.pictureInPictureApi=new Js(fe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new cu:void 0,this.slotsApi=this.uiConfig.features.slots?new su:void 0,this.annotationsApi=this.uiConfig.features.annotations?new fu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(ne=this.slotsApi)==null||ne.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]),T1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(Cn)&&(r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive(),r(Cn).endScreenVideoTitle=o.nextVideoTitle,r(Cn).endScreenVideoThumb=o.nextVideoThumb,r(Cn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=As({},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})}}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(Cn)&&(r(Cn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Cn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Cn).nextButtonActive=this.isNextButtonActive(),r(Cn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return gu(this,null,function*(){var i;yield(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)}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()}replayInteractiveChapter(e){return gu(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=xe(this.store.state.positionExact$),s=xe(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(m5()).subscribe(()=>{s&&n>=s.time?this.seekTime(s.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield 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&&Ws(e)}};import{InterfaceLanguage as eJ,VKNumericLanguage as tJ,loadVKLangPack as iJ}from"@vkontakte/videoplayer-shared/es2015";import{VideoQuality as nJ,VideoFormat as rJ}from"@vkontakte/videoplayer-core/es2015";var WX=()=>{window.customElements.define("vk-video-player",hu)};export{Yc as ControlButtonType,zr as GridTypes,eJ as InterfaceLanguage,ql as MenuItemType,Xs as PlayerPhase,Ha as VERSION,tJ as VKNumericLanguage,rJ as VideoFormat,nJ as VideoQuality,iJ as loadVKLangPack,WX as registerPlayerWebComponent};